Skip to content

0.1.2 CR1: the Linux clean-machine install rehearsal in the Packages run #2441

Closed

Description

@jparker2006

Parent

Ticket CR1 of spec #2437 (0.1.2), the Linux rehearsal. Size: L.

What to build

The rehearsal runner, its fakes, its receipt contract, and the Linux job in the Packages workflow, as spec #2437's Implementation Decisions fix them.

  • tools/rehearsal/rehearse.py: standard-library Python 3.9. Given the run's archive folder, the target, the candidate's OpenWiz checkout and the install skill at its wizskills.lock commit, it runs the six named steps in a stranger's environment: env -i, a fresh HOME, an allowlisted PATH, recording build tools that fail the run, and no room-cli. It writes rehearsal.json (openwiz.rehearsal.v1) and exits non-zero on any failed step, printing that step's exact output.
  • tools/rehearsal/fakes/: a recording gh (a synthetic signed-in account; reads from a fixture world; any write recorded and failing the dry run) and a claude that answers --version only.
  • contracts/rehearsal.v1.md: the receipt's fields and the artifact name openwiz-rehearsal-<version>-<target>, exactly as the spec fixes them.
  • .github/workflows/packages.yml: a rehearse-linux job, which needs package, runs in a debian:12 container on ubuntu-24.04, downloads this run's Linux artifact and runs the runner. Also the aggregate rehearsal job, which for now needs rehearse-linux only. No secrets.*, permissions: contents: read, persist-credentials: false, and no token in the rehearsal's environment. The package job is unchanged.
  • tools/rehearsal/test_rehearse.py: the fixture suite, with one line added to CI's installer step to run it.
  • A short tools/rehearsal/README.md: what it proves, and what it doesn't (no real fleet, no real account).

Owned paths

  • tools/rehearsal/ (new: the runner, fakes, tests, fixtures and README)
  • contracts/rehearsal.v1.md (new)
  • .github/workflows/packages.yml (shared: only the new rehearse-linux and rehearsal jobs)
  • .github/workflows/ci.yml (shared: only one new line in the release job's installer step)
  • changes/2441.md

Relies on: nothing

Links

none

Acceptance criteria

  • On a synthetic release, test_rehearse.py is green on a good package and 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 GitHub write, and a cargo call
  • A Packages run dispatched on the builder's branch with one planted-break commit goes red at the named step in rehearse-linux and rehearsal, and the head's run is green. Both are linked on the pull request
  • The uploaded receipt matches contracts/rehearsal.v1.md and the archive's real sha256
  • The workflow diff has no secrets.*, no write permission and no token in the rehearsal's environment, and the package job is byte-for-byte unchanged
  • Nothing under tools/install/ or tools/live-smoke/ changes

Proof

P1 (Linux rehearsal): seam 1 red first, then seam 2's red and green Packages runs. P4 (no secrets) in review.

Activity

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Hand checks before the builder starts (lead of spec #2437, under machine plan approval revision 1): the ticket is open; its only label is ready-for-agent; no claim, builder or pull request; no blockers; no open pull request touches its owned paths (.github/workflows/ci.yml is shared, one new line). Builder: Claude Code Opus 5.5, medium effort.

  4. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: Claude Code
    model: Opus 5.5
    skills: build-ticket@0.2.2
    step: Opened the pull request; seam 1 and both seam 2 Packages runs are linked on it, CI pending.
    time: 2026-11-22T23:47:51Z
    pr: #2620

  5. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder note on step 6 (the first-fleet dry run), for the lead to overrule if wrong:

    The spec says the dry run runs first_fleet.py where --agents local "and the read-only and preview steps up to the host-setting preview", with no --yes and no GitHub write. At the pinned install skill (0.3.0 on main, and 0.4.0 in #2397), setting needs a recorded host (where --yes), a carried setup (continue) and a recorded mode; continue needs a verified project and the private brain, which only openwiz init --yes makes, and that is a GitHub write. So the host-setting preview can't be reached with previews only.

    My pick: the dry run runs every step a stranger reaches with no --yes and no write: where --agents local --build <build> (must be the exit-12 preview naming Claude Code and the local driver), select --repo <fake> (the onboarding's own private state file), github_login.py status --repository <fake> (must read identity_verified), and next (must name the next step). The fake GitHub must record no write and the recording build tools no call. Step 4's setup.py prepare --host local takes its own --yes: it writes only the owner-only local setup state, and setup.py check can't read cloudroom_not_needed without a prepared local host. Both are rulings in the pull request.

  6. added 3 commits that reference this issue on Nov 22, 2026
  7. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Lead ruling on step 6 (spec #2437): your pick stands. The spec's binding rules are previews only, no --yes and no GitHub write. The host-setting preview can't be reached under them, because it needs openwiz init --yes, a write. So the dry run stops at the furthest step a stranger reaches without one. Those steps are where --agents local --build <build> (the exit-12 preview naming Claude Code and the local driver), select --repo <fake>, github_login.py status --repository <fake> reading identity_verified, and next naming the next step. The fake GitHub must record no write, and the recording build tools must record no call. setup.py prepare --host local --yes in step 4 is allowed: it writes only owner-only local state, never GitHub. Put both rulings, and why the dry run stops before setting, in tools/rehearsal/README.md and in the pull request.

  8. added 2 commits that reference this issue on Nov 22, 2026
  9. added 3 commits that reference this issue on Nov 23, 2026
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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions