HOSTED-CI-PROGRESS: the review's three fixes and how each was checked
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2 files changed,
+51
−0
docs/superpowers/plans/HOSTED-CI-PROGRESS.md+44 −0scripts/runner-reference-allowlist.json+7 −0
CI passed — run details
Intent
diff --git a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md| index 27b80e94..b2638013 100644 |
| --- a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md |
| +++ b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md |
| @@ -487,3 +487,47 @@ containment tests ran there on the real bubblewrap 0.11.0: shard 18, |
| `internal/runner/containment` in the `rest` lane. Two tests passed on |
| their retry: `TestHeadless/4c_rebase` (9 s, load 41) and |
| `TestContractTransferTooLarge` (45 s wait, load 32, a known one). |
| + |
| +### Security review, round 1: three fixes |
| + |
| +Astra found no runtime containment weakened and no teammate route |
| +opened, and asked for three things. Each has a test that was red first. |
| + |
| +1. **Provenance establishes the commit.** `make release` is now |
| + `scripts/release-isolated.sh`: a fresh clone checked out at HEAD under |
| + `$TMPDIR`, clean and at the commit before the build and after it. A |
| + clone, not a git worktree: go stamps a binary with its commit only |
| + where `.git` is a directory, and in a worktree it walked up to a stray |
| + `.git` and failed. `staged-artifacts.py manifest` reads each binary's |
| + build information (`go version -m`) and writes nothing unless |
| + `vcs.revision` is the commit and `vcs.modified` is false. The tool |
| + proxy lost `-buildvcs=false`. A refusal leaves nothing in `releases/`. |
| + Tests: `TestReleaseBuildsFromOneCommit` (dirty, untracked, changed |
| + during the build, another revision, modified, no build information), |
| + `TestStagedArtifactsGate`. |
| +2. **Every pinned program is verified before it runs.** |
| + `containment.New` hashes bubblewrap and compares it with its pin |
| + before running it (`TestNamespaceBubblewrapDigest`: the real program |
| + with one byte appended still says 0.11.0 and is refused). The pins are |
| + the manifest's amd64 digest and, for tests on arm64, the CI box's |
| + (`TestBubblewrapPins`). `equipo-runner verify-installed` holds all |
| + five programs in a runner's own configuration to its release |
| + (`TestVerifyInstalledHoldsEveryProgramToTheRelease`); |
| + `staging-thin.py` runs it before enrolment and before a unit starts, |
| + `cutover-thin.sh` before enrol and start |
| + (`TestCutoverVerifiesInstalledProgramsBeforeStarting`). The Mac |
| + worker's `srt` was already checked against its pin by its probes. |
| +3. **A retry needs a clean exit.** `scripts/ci-test.py`: a process that |
| + exits non-zero has failed whatever its tests printed, and a retry is |
| + green only when its process exits 0 and each test passed |
| + (`TestRetryNeedsACleanExit`: PASS, then a panic in a cleanup). |
| + |
| +Each guard was broken once more and seen red: no check after the build, |
| +build information not read, a dirty tree let through, the bubblewrap |
| +digest not compared, the cutover without `verify-installed`. |
| + |
| +The real thing, at ca9262c on docs-t1: `make release` in 11 s from the |
| +isolated clone; all four binaries say `vcs.revision=ca9262c9...`, |
| +`vcs.modified=false`; `verify` passes; the released runner's |
| +`verify-installed` passes against the installed bubblewrap, claude and |
| +codex with its own tool proxy, and refuses production's current one. |
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json| index 1c883722..1586f142 100644 |
| --- a/scripts/runner-reference-allowlist.json |
| +++ b/scripts/runner-reference-allowlist.json |
| @@ -11037,5 +11037,12 @@ |
| "match": "equipo-runner", |
| "count": 1, |
| "reason": "Retained runner executable, versioned package or user-service path in release tooling, tests or operator steps." |
| + }, |
| + { |
| + "path": "docs/superpowers/plans/HOSTED-CI-PROGRESS.md", |
| + "line_sha256": "0c97d475b33f05a0bf5814079f04d2dc3f630d6fec81fc3fdaeece920a482876", |
| + "match": "equipo-runner", |
| + "count": 1, |
| + "reason": "Progress log: names the retained runner executable and its release directory." |
| } |
| ] |