Repository navigation
Description
Problem Statement
Every release candidate needs proof that a stranger can install it on a clean machine without CloudRoom. Today a person, or an agent by hand, rehearses that install for each candidate (the 0.1.1 agent rehearsal in docs/evidence/2216/rehearsal.md on the 0.1.1 notes branch, and #2226). It is slow, it needs someone free, and nothing stops a ship when it is skipped or goes wrong.
Solution
The Packages workflow that builds a release candidate's archives also rehearses the install on each of them, with no person. For each target, a job on a clean machine takes the archive that same run just built and installs it the way a stranger's agent would, following the install skill's no-CloudRoom path ("This computer", Claude Code). Fakes stand in for GitHub writes and for the harness, so the job needs no secret. It checks the build identity, setup, and a first-fleet dry run, and it goes red on any break. A red or missing rehearsal blocks release candidate from shipping, as one new gate beside the 18 that exist.
Changelog headline
none
User Stories
- As the release agent, I get a rehearsal result on every Packages run, for every target, without rehearsing by hand.
- As the owner, I know a candidate that a stranger couldn't install never ships: a red or missing rehearsal blocks
evaluateandpublish. - As a maintainer, when the rehearsal goes red, its log names the step that failed and the exact output.
- As a security reviewer, I can see the job uses no secret and no write token, and touches no real GitHub repository or account.
Implementation Decisions
-
Where it runs: new jobs in
.github/workflows/packages.yml, afterpackage, using that run's own uploaded artifacts (actions/download-artifact, no token). So it runs on every release candidate's Packages run, at the candidate commit, on exactly the bytes built there. Thepackagejob and its steps stay unchanged.rehearse-linux:ubuntu-24.04with a cleandebian:12container (glibc 2.36). Only Python 3, Git and CA certificates are installed. No Rust, Cargo, Node or npm.rehearse-macos:macos-15foraarch64-apple-darwinandmacos-15-intelforx86_64-apple-darwin, in a freshHOME.rehearsal: one aggregate job that needs every rehearse job and succeeds only when all of them do. It is the check run name the gate reads.
-
No secrets: the jobs read no
secrets.*, keeppermissions: contents: read, check out withpersist-credentials: false, and run with noGITHUB_TOKEN,GH_TOKENor App variable in the rehearsal's environment. -
The runner:
tools/rehearsal/rehearse.py, standard-library Python 3.9, same on Linux and macOS. It runs every command in a stranger's environment (env -i, a freshHOME, an allowlistedPATH). On thatPATH, recordingcargo,rustc,rustup,npm,nodeandnpxfail the run if called, and noroom-cliis present. It follows the install skill at the candidate'swizskills.lockcommit, with the two substitutions the 0.1.1 runbook uses for an unpublished candidate: the installer comes from the candidate commit's checkout, and step 2 usesinstall install --assets(the skill's documented fallback) instead ofdownload. Steps, each a named pass or fail:install preflightpasses, withroom-clireadingmissingand not stopping it.install install --assets <the run's archive folder> --target <target> --root <new root>prints"activated": truewith the version and target.<root>/current/openwiz --build-identityreads the candidate's version and the run's source commit.setup.py checkunder the local host readscloudroom_not_needed, andgithub_login.py statusreads the fake account.- The install skill's step 4 copies the skills into a fresh Claude Code skills folder.
- The first-fleet dry run runs
first_fleet.py where --agents localand the read-only and preview steps up to the host-setting preview on a fake repository. It runs previews only, with no--yes, and the fake GitHub records no write.
-
Fakes:
tools/rehearsal/fakes/: a recordinggh(signed in as a synthetic account; reads answer from a fixture world, any write is recorded and fails the dry run) and aclaudethat answers--versionand nothing else. Reuse the journey tests' fakes where they fit (tools/install/tests/journey/), without editing them. -
The receipt (
contracts/rehearsal.v1.md,openwiz.rehearsal.v1): each rehearse job writesrehearsal.jsonand uploads it as the artifactopenwiz-rehearsal-<version>-<target>, containingschema,version,source(the commit),target,archive_sha256,manifest_sha256,status(passorfail) andsteps([{name, status}], in the order above). The job exits non-zero onfail. -
The gate (in
tools/release/candidate.py): new reasonsrehearsal_*, checked by bothevaluateandpublishbefore the tag. The gate requires all of these:- the latest trusted Packages run at the candidate commit (
.github/workflows/packages.yml, thegithub-actionsapp); - its
rehearsalcheck run completedsuccess; - for every target in
TARGETS, apassreceipt whoseversion,sourceandarchive_sha256match the candidate's sealed artifacts.
Reasons:
rehearsal_missing,rehearsal_failed,rehearsal_untrusted,rehearsal_stale,rehearsal_unreadable. It is a new row, 19, in the README's precondition table. Rows 1 to 18, their functions and their reasons stay byte-for-byte unchanged. Never weaken an existing gate. - the latest trusted Packages run at the candidate commit (
Testing Decisions
- Seam 1, the runner on fixtures (
tools/rehearsal/test_rehearse.py, in CI's installer step). It runs against a synthetic release built like the journey tests'. Green on a good package. Red, naming the step, on each planted break: a flipped archive byte, a manifest of another version, a build identity from another commit, a setup check that needs CloudRoom, a dry-run step that writes to GitHub, and a call tocargo. Red first. - Seam 2, the real job: a Packages run dispatched on the builder's own branch goes red at the named step with one planted-break commit, then green at the head. Both runs are linked on the pull request.
- Seam 3, the gate on fixtures (
tools/release/test_candidate.py): a candidate with no Packages run, a redrehearsal, a receipt for other bytes, or a missing target is blocked with the exact reason. The existing gate tests pass unchanged. - Prior art: the 0.1.1 runbook and its
rehearsal.sh(clean environment, allowlistedPATH), the cold-consumer journey test, andrequired_checkincandidate.py.
Proof
- P1 (Linux rehearsal): seam 1 red first, then seam 2 red and green on
x86_64-unknown-linux-gnu. - P2 (macOS rehearsal): seam 2 red and green on both Mac targets.
- P3 (gate): seam 3 red first, and a review checking that rows 1 to 18 are unchanged.
- P4 (no secrets): review of the workflow diff: no
secrets.*, read-only permissions, no token in the rehearsal environment.
Checkpoints
- One-way door: yes
- User-visible: no
Live check
None beyond seam 2: the job's own runs on GitHub-hosted runners are the live observation. No account, key or real repository is used.
Out of Scope
- The person's rehearsal (0.1.1 NC9: the no-CloudRoom clean-machine rehearsal (a person) #2226) and its record.
- A real first fleet: no builder, reviewer, heartbeat tick or merge runs in CI.
- The CloudRoom and boat.dev paths, Codex, and Linux on ARM.
tools/live-smoke/, release branches, and publishing anything.- Changing the
packagejob, the install skill or the installer.
Further Notes
Authority: Jake's go (J314) and the standing J201 to J204 approval. No new grill: the problem and its shape are taken from the 0.1.1 rehearsal runbook. OpenWiz merges wait for the 0.1.1 cut.
Activity
jparker2006 commentedon Nov 22, 2026
Plan graph, read back from GitHub (2026-11-22). CR1 builds the runner, its fakes, the receipt contract and the Linux job; CR2 adds the Mac jobs on it; CR3 adds the ship gate once every target has a receipt, after polish Q (#2383) frees
tools/release/candidate.py. Link check:pass spec #2437: tickets 3, links 3, real 2, file 1, unlabelled 0, refusals 0.Longest chain: 2 links (#2441 → #2446 → #2451).
Can start at approval: 1 of 3.
jparker2006 commentedon Nov 22, 2026
Machine plan approval, 2026-11-22, revision 1: links, relies, sizes, width and owned paths passed.
Grill confirmed: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7087025217
Checks: 3 tickets; links 3; relies 3; sizes S 0, M 2, L 1; width: chain 3, widest 1; owned paths 3.
Fingerprint:
8af76201c883414ec37209841ff83f1bb2df3753725eb154acadd3255888932bRevision text