Skip to content

0.1.2 spec: the clean-machine install rehearsal as a CI job #2437

Open
3 of 3 issues completed
Open

Description

@jparker2006

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

  1. As the release agent, I get a rehearsal result on every Packages run, for every target, without rehearsing by hand.
  2. As the owner, I know a candidate that a stranger couldn't install never ships: a red or missing rehearsal blocks evaluate and publish.
  3. As a maintainer, when the rehearsal goes red, its log names the step that failed and the exact output.
  4. 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, after package, 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. The package job and its steps stay unchanged.

    • rehearse-linux: ubuntu-24.04 with a clean debian:12 container (glibc 2.36). Only Python 3, Git and CA certificates are installed. No Rust, Cargo, Node or npm.
    • rehearse-macos: macos-15 for aarch64-apple-darwin and macos-15-intel for x86_64-apple-darwin, in a fresh HOME.
    • 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.*, keep permissions: contents: read, check out with persist-credentials: false, and run with no GITHUB_TOKEN, GH_TOKEN or 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 fresh HOME, an allowlisted PATH). On that PATH, recording cargo, rustc, rustup, npm, node and npx fail the run if called, and no room-cli is present. It follows the install skill at the candidate's wizskills.lock commit, 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 uses install install --assets (the skill's documented fallback) instead of download. Steps, each a named pass or fail:

    1. install preflight passes, with room-cli reading missing and not stopping it.
    2. install install --assets <the run's archive folder> --target <target> --root <new root> prints "activated": true with the version and target.
    3. <root>/current/openwiz --build-identity reads the candidate's version and the run's source commit.
    4. setup.py check under the local host reads cloudroom_not_needed, and github_login.py status reads the fake account.
    5. The install skill's step 4 copies the skills into a fresh Claude Code skills folder.
    6. The first-fleet dry run runs first_fleet.py where --agents local and 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 recording gh (signed in as a synthetic account; reads answer from a fixture world, any write is recorded and fails the dry run) and a claude that answers --version and 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 writes rehearsal.json and uploads it as the artifact openwiz-rehearsal-<version>-<target>, containing schema, version, source (the commit), target, archive_sha256, manifest_sha256, status (pass or fail) and steps ([{name, status}], in the order above). The job exits non-zero on fail.

  • The gate (in tools/release/candidate.py): new reasons rehearsal_*, checked by both evaluate and publish before the tag. The gate requires all of these:

    • the latest trusted Packages run at the candidate commit (.github/workflows/packages.yml, the github-actions app);
    • its rehearsal check run completed success;
    • for every target in TARGETS, a pass receipt whose version, source and archive_sha256 match 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.

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 to cargo. 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 red rehearsal, 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, allowlisted PATH), the cold-consumer journey test, and required_check in candidate.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 package job, 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.

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    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.

    flowchart LR
      T0["#35;2383 · M · 0.1.1 polish Q: the release tools"]:::building
      T1["#35;2441 · L · CR1: Linux rehearsal in the Packages run"]:::waiting
      T2["#35;2446 · M · CR2: macOS rehearsal in the Packages run"]:::waiting
      T3["#35;2451 · M · CR3: a red or missing rehearsal blocks ship"]:::waiting
      T0 -.->|file: tools/release/candidate.py and tests| T3
      T1 -->|real: Runner, receipt and rehearsal job| T2
      T2 -->|real: Receipts for every target| T3
      classDef merged fill:#dcfce7,stroke:#15803d,color:#111827
      classDef building fill:#dbeafe,stroke:#1d4ed8,color:#111827
      classDef waiting fill:#f3f4f6,stroke:#6b7280,color:#111827
      classDef jake fill:#f3e8ff,stroke:#7e22ce,color:#111827
      classDef bracket fill:transparent,stroke:transparent,font-weight:bold
      linkStyle 1,2 stroke-width:4px
    
    Loading

    Longest chain: 2 links (#2441 → #2446 → #2451).
    Can start at approval: 1 of 3.

  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    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.

    Ticket Title Blocked by Label
    #2441 0.1.2 CR1: the Linux clean-machine install rehearsal in the Packages run none ready-for-agent
    #2446 0.1.2 CR2: the macOS clean-machine install rehearsal in the Packages run #2441 ready-for-agent
    #2451 0.1.2 CR3: a red or missing rehearsal blocks release candidate's ship #2383 #2446 ready-for-agent

    Fingerprint: 8af76201c883414ec37209841ff83f1bb2df3753725eb154acadd3255888932b

    Revision text
    plan-graph revision v2
    spec #2437 body sha256 210a129a61699f8ca93564053dd8edb18bc6a602a1c8b2f9ee6acc3605720533
    ticket #2441 blocked-by none body sha256 0ca29ed5668ddc314e094553e75767dfa0dfdbedb5caa959ed8db36f227909f3 title 0.1.2 CR1: the Linux clean-machine install rehearsal in the Packages run
    ticket #2446 blocked-by #2441 body sha256 1f7a087e1df8dddfb450a398237a805cc89e605f9f3c9a47bb404b06566c3b57 title 0.1.2 CR2: the macOS clean-machine install rehearsal in the Packages run
    ticket #2451 blocked-by #2383 #2446 body sha256 c158b54e0b5909d0049f0dd105510d84b7ef27df59bc7094f566a8d174813305 title 0.1.2 CR3: a red or missing rehearsal blocks release candidate's ship
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions