Commit d686eb1
authored
feat: supply-chain monitoring + credential scanning + console settings
## Supply-chain monitoring (V1)
- `installer/upstreams.yaml` + `installer/manifest.py` — single source of truth for every upstream (37 entries: 13 npm + 13 brew + 7 curl + 4 pypi). Every entry pinned by exact version + sha256 (curl) + last_audited.
- `installer/steps/dependencies.py` + `prerequisites.py` — every install_* reads the manifest. `--ignore-scripts` denied by default; `better-sqlite3` is the only allow with documented justification. `_curl_pipe_with_hash_verify` helper does sha256-verified curl-then-execute with 0o600 temp files and cleanup on success/mismatch. Soft-pin path for vendor-managed endpoints (`claude.ai/install.sh`) warns + proceeds. `_verify_homebrew_tap` rejects formulas from unexpected taps before `brew install`.
- `.mcp.json` + `pilot/.mcp.json` — every npx-launched MCP server pinned `@<version>`.
- `install.sh` + `launcher/build.py` — bootstrap surface pinned: `uv` installer sha256-verified; every `--with` pinned (`rich==14.2.0`, `certifi==2026.4.22`, `PyYAML==6.0.3`, `cryptography==46.0.6`).
- `scripts/check_manifest_drift.py` — regex drift checker (6 files, MCP cross-ref, `# noqa: drift-check` requires non-empty justification, strict semver, UnicodeDecodeError → Finding).
- `.github/workflows/supply-chain.yml` — schema validation + drift gate on PR + push + nightly cron + manual dispatch. Lean (~50 lines).
- `.github/renovate.json` — manifest-aware customManagers for npm/brew/curl/pypi; high-risk packages get individual PRs; non-GitHub curl entries get `needs-manual-bump` label; majors disabled; pinDigests off; devDeps grouped weekly; docs/site + docs/docusaurus skipped.
- `release.yml` + `release-dev.yml` — `supply-chain-gate` job uses GitHub Checks API to block release tags when supply-chain is red (12-min poll handles same-push race).
V1 explicit non-goals: OpenSSF Scorecard scoring loop, Socket.dev workflow step, branch-protection required check.
## Credential scanning hooks
- `pilot/hooks/credential_scanner.py` + `_lib/secret_scanner.py` + `_lib/allow_tags.py` — block credentials in prompts, file reads, bash commands, and git commits. `[allow-secret]` / `[allow-all]` tags from user-role messages bypass per-call.
- `pilot/rules/security-credentials.md`.
## Console + spec/fix workflow
- Settings UI: Console + Security side-by-side (2-col grid), both before Spec Workflow Review Agents. Worker URL no longer truncates; cards stretch to equal height.
- `launcher/model_config.py`: spec-implement + spec-verify default to `opus` (the v9 migration assumption). Max plan users now correctly land on `opus[1m]` instead of `sonnet[1m]` (Max doesn't include sonnet 1M).
- `installer/steps/config_migration.py`: fresh installs now run all migrations (including v9's subscription-aware spec-implement/spec-verify defaulting) instead of skipping when config.json doesn't exist.
- `pilot/skills/{fix,spec-plan,spec-verify}` — improved review flow.
- `pilot/agents/{changes,spec}-review-codex.md` — Codex prompt templates.
- `pilot/hooks/spec_stop_guard.py` — tighter stop-guard.
## Tests
2168 Python pass; 1485 console pass; drift checker green.1 parent c28cb23 commit d686eb1
56 files changed
Lines changed: 6141 additions & 408 deletions
File tree
- .devcontainer
- .github
- workflows
- console
- src
- services/worker/http/routes
- ui/viewer
- hooks
- views/Settings
- tests
- installer
- steps
- tests/unit
- steps
- launcher
- tests/unit
- pilot
- agents
- hooks
- _lib
- tests
- rules
- scripts
- skills
- benchmark/tests
- fix
- steps
- spec-plan/steps
- spec-verify/steps
- ui
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
15 | 51 | | |
16 | 52 | | |
17 | 53 | | |
18 | 54 | | |
19 | 55 | | |
| 56 | + | |
20 | 57 | | |
21 | 58 | | |
22 | 59 | | |
| |||
65 | 102 | | |
66 | 103 | | |
67 | 104 | | |
| 105 | + | |
68 | 106 | | |
69 | 107 | | |
70 | 108 | | |
| |||
100 | 138 | | |
101 | 139 | | |
102 | 140 | | |
| 141 | + | |
103 | 142 | | |
104 | 143 | | |
105 | 144 | | |
| |||
132 | 171 | | |
133 | 172 | | |
134 | 173 | | |
| 174 | + | |
135 | 175 | | |
136 | 176 | | |
137 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
63 | 102 | | |
64 | 103 | | |
65 | 104 | | |
66 | 105 | | |
67 | 106 | | |
68 | | - | |
| 107 | + | |
69 | 108 | | |
70 | 109 | | |
71 | 110 | | |
| |||
114 | 153 | | |
115 | 154 | | |
116 | 155 | | |
117 | | - | |
| 156 | + | |
118 | 157 | | |
119 | 158 | | |
120 | 159 | | |
| |||
149 | 188 | | |
150 | 189 | | |
151 | 190 | | |
152 | | - | |
| 191 | + | |
153 | 192 | | |
154 | 193 | | |
155 | 194 | | |
| |||
181 | 220 | | |
182 | 221 | | |
183 | 222 | | |
184 | | - | |
| 223 | + | |
185 | 224 | | |
186 | 225 | | |
187 | 226 | | |
| |||
227 | 266 | | |
228 | 267 | | |
229 | 268 | | |
230 | | - | |
| 269 | + | |
231 | 270 | | |
232 | 271 | | |
233 | 272 | | |
| |||
0 commit comments