Skip to content

Infra RL7: the release smoke kit for the public repository (collectors, inputs, App token, its own port) #772

Closed

Description

@jparker2006

Parent

Ticket RL7 of infra spec #437 (was ClosedWiz #2183). No version milestone. It blocks #18 (RL5).

What to build

Make the candidate-bound live smoke runnable for a public release from the PC, which is where #18's smoke must run. On 2026-11-15 its preparation stopped safely: the kit's private inputs and collectors were never exported after the cut-over, there was no scratch-install App token, and the TUI step needed port 7370.

  1. Collectors on main. Export the AC6 collectors that tools/live-smoke/prepare.py needs to OpenWiz main, each with its reader row and privacy-clean, so the public checkout can build kit.json.
  2. Inputs from private records. A small PC-side step assembles the kit's private inputs (throwaway thread and project ids, scratch fleet and the like) from the existing private records into one owner-only file on the PC (mode 0600, outside the checkout). The kit reads that file by an absolute path. Values never appear in public text, logs or the kit digest's public record.
  3. Scratch-install App token route. A documented, owner-only way to supply OPENWIZ_SMOKE_APP_TOKEN for the scratch install's App-permission steps, using the existing approved App and no new permissions. The App-permission rows (tools/github-app and the github adapter) need this.
  4. Its own port. The TUI and service steps bind a dedicated free port chosen at run time, never 7370 (my.openwiz.dev's server). The kit records the port it used.
  5. A dry run. prepare.py then smoke.py in dry mode on the PC, against a synthetic candidate, proves the kit builds and each step resolves, with no live write.

Owned paths

  • tools/live-smoke/**
  • .github/actions/docs-only/ci-reads.txt (reader rows for exported collectors only)
  • tools/open-import/paths.json (classification rows for exported files only, with the POLICY_SHA256 re-pin)

Relies on: contracts/release-candidate.v1.md

Links

none

Acceptance criteria

  • On a clean public checkout plus the owner-only PC inputs file, prepare.py builds kit.json and prints its kit and scope sha256.
  • No private value appears in the repository, CI logs, public comments or committed evidence; the privacy check passes.
  • The App-permission steps run with the scratch-install token route and no new App permission.
  • No step binds 7370; a test refuses a kit that asks for it.
  • A PC dry run against a synthetic candidate resolves every step with no live write, recorded in private evidence.
  • LV1 is unchanged: throwaway threads only, no phones, no spending beyond normal Cloud Credits.

Activity

  1. added
    ready-for-agent
    on Nov 15, 2026
  2. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/772-rl7-release-smoke-kit

  3. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    PC runbook for #772 (AC5): the kit dry run. Updated for SHIP-3's scope. For a Local PC agent. The manager arranges the run through the orchestrator. This runbook has no private values. It replaces the earlier 64-name version: the kit now checks only install, help --agent/ls/show, one send and one new thread.

    Rules (LV1): throwaway targets only, no phones, no spending, no live write: no send, no new thread, no GitHub or CloudRoom write. Never bind or connect to 7370, which is my.openwiz.dev's server; leave it alone. Start no service or server, and don't run install open. Values come only from existing private records or a read-only discovery spike under the standing approval; never guess one. On any stop, report the reason and the names only.

    1. Clean public checkout and private folders

    set -eu
    umask 077
    SRC="$(mktemp -d "$HOME/openwiz-rl7-src.XXXXXX")"
    git clone -q https://github.com/openwizdev/OpenWiz.git "$SRC"
    git -C "$SRC" checkout -q ca942f806fd81e53c64ee30acb93397f238923a5   # PR #777's head; use main's merge commit once it merges
    test -z "$(git -C "$SRC" status --porcelain)"
    RUN="$(mktemp -d "$HOME/openwiz-rl7-run.XXXXXX")"   # outside every Git checkout
    mkdir -m 700 "$RUN/records" "$RUN/cwd" "$RUN/install-root" "$RUN/install-state" "$RUN/assets"
    K="$SRC/tools/live-smoke"

    2. Install through the normal route, into the throwaway folders (local only)

    Put the candidate's verified package files (checksum file, manifest, archive for x86_64-unknown-linux-gnu) into $RUN/assets. For this dry run, use any verified Packages run's files; the live run uses the sealed candidate's.

    python3 -I "$SRC/tools/install/install" install --assets "$RUN/assets" --target x86_64-unknown-linux-gnu \
        --root "$RUN/install-root" --state-root "$RUN/install-state"
    # keep "build" from its JSON (it must say "activated": true); a refusal is a stop

    3. Records (owner-only JSON, from private records only)

    Write one or more JSON objects into $RUN/records/*.json, mode 0600. Together they must hold exactly these 27 names:

    artifacts, cwd, effort, env, expected_catalogue_commands, harness, install_build, install_entry, install_root, install_state, mode, model, new_op, new_preview_checks, new_status_checks, openwiz, project, python, release, release_source, release_target, release_version, send_lookup_checks, send_op, send_preview_checks, send_thread, source

    Each name's meaning is in tools/live-smoke/README.md, in the inputs table. A missing record means: report the missing names and stop.

    chmod 600 "$RUN"/records/*.json
    python3 -I "$K/inputs.py" $(for f in "$RUN"/records/*.json; do printf -- '--records %s ' "$f"; done) --out "$RUN/inputs.json"
    python3 -I "$K/prepare.py" --inputs "$RUN/inputs.json" --out "$RUN/kit.json"
    # {"prepared": true, "kit_sha256": ..., "scope_sha256": ...}

    A refusal prints only the reason, plus names for missing_input and unused_input. Fix the record, never the kit.

    4. A synthetic candidate, then the dry run

    python3 -I - "$RUN" <<'PY'
    import hashlib, json, os, sys
    run = sys.argv[1]
    kit = json.load(open(run + '/kit.json'))
    canon = lambda v: json.dumps(v, sort_keys=True, separators=(',', ':'), ensure_ascii=False).encode()
    body = {'kit': {'sha256': hashlib.sha256(json.dumps(kit, sort_keys=True, ensure_ascii=True, separators=(',', ':')).encode()).hexdigest(),
                    'scope_sha256': hashlib.sha256(canon(kit['release']['scope'])).hexdigest()},
            'synthetic': 'RL7 dry run only; never sealed'}
    fd = os.open(run + '/candidate.json', os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
    os.write(fd, json.dumps({'schema': 'openwiz.release-candidate.v1', 'candidate': body,
                             'candidate_sha256': hashlib.sha256(canon(body)).hexdigest()}).encode())
    PY
    python3 -I "$K/smoke.py" --kit "$RUN/kit.json" --state "$RUN/checkpoint" --dry-run --candidate "$RUN/candidate.json"
    test ! -e "$RUN/checkpoint"

    Pass: exit 0, verdict: not_run, reason: dry_run, and claims exactly install, json, send and new, all not_run, with the kit digest matching prepare's. It runs no product, probe or API command. Any other reason is a stop (for example candidate_mismatch, reserved_port, missing_claim or invalid_kit): report it.

    5. Records

  4. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    PC dry run: stopped (missing_input). kit sha256: none (not prepared). scope sha256: none (not prepared).
    Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6901984475

  5. added 2 commits that reference this issue on Nov 15, 2026
  6. added 4 commits that reference this issue on Nov 15, 2026
  7. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

  8. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    PC dry run: resolved. kit sha256: 0ff3f124769502a44a7c496e558329f5142f6632d8c592be880ecc2d5864583c. scope sha256: 459991bf6c45390310c394749ec999c8305d635c1c2842468055402078e3d72d.
    Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6905463226

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions