Skip to content

test(release): rehearse current onboarding from the candidate archive before publication #1340

Open

Description

@EffortlessSteven

Parents and dependency direction

#1339 next advisory release; feeds #816 candidate qualification. Related #327/#811 and #1071.

This is the pre-publication candidate rehearsal, not completion of #811/#1059–#1061. Those issues retain their richer released-adoption contracts after #817. Do not add #811 or #817 as a prerequisite here: that would make the same release depend on already being published.

Prepare the harness now in a file-disjoint test lane. Execute final qualification only after the selected onboarding fixes and candidate installer are merged and #1339's exact candidate archive exists. Existing init/enable/setup-ci owners remain authoritative; do not open replacement implementations.

One-PR outcome

A bounded integration harness installs the exact non-publishing candidate archive and drives the actual current CLI, not renderer helpers alone, through a fresh advisory setup, replay, conflict refusal and rollback. The harness is reusable after publication by #811; it must label candidate versus public distribution honestly.

Scope

Acceptance

  • The executable is the selected archive, proven by digest and version; invoking a similarly named PATH/workspace binary fails the harness.
  • No Cargo/rustc/source compilation is used to install UB Review or generate setup; instrumentation would detect forbidden fallback.
  • Both fresh repository shapes produce valid, understandable advisory files without Bun/maintainer-specific defaults.
  • Each selected refusal is tested through the actual CLI twice with original bytes/path inventory preserved and actionable errors.
  • Generated commands preserve spaces and shell metacharacters as literal paths; inert fixtures perform no network/credential action.
  • Existing CI is preserved and the generated mode cannot silently acquire Required authority.
  • Replay and rollback restore exact owned state and do not remove unrelated files.
  • A versioned bounded receipt records every positive/negative scenario, actual outcome, archive identity and unsupported boundary; omitted/failed scenarios cannot become pass.
  • The same harness has a separate public-release mode for M6: prove fresh-repo adoption, upgrade, and rollback from a released binary #811 after M3e: authorize, publish, and verify the exact next release #817, without relabelling the candidate run.

Proof and closeout

Tests first, demonstrate meaningful regression failure, then focused CLI/onboarding/installer tests, fmt/check/test/Clippy/docs/policy/verifier and exact-head hosted checks. Retain the final candidate rehearsal packet for #816. A merged harness is not an executed candidate proof.

Non-goals / rollback

No new onboarding architecture, RepositoryContract/SharedRunPlan/GateDecisionSummary dependency, provider calls, real GitHub posting, package publication, broad platform support, source-only review service, or branch-protection change. Disable the rehearsal on failure while retaining receipts; fix the existing owning leaf and rerun against fresh candidate identities.


2026-10-23 UTC final-byte continuation: installer identity and generated identity are separate

Existing PR#1382 remains the harness owner, now Draft 26402b044a57745ee4168b27e62329b041fa391b; its preliminary41-command/17-scenario checkpoint is reusable within its stated byte/provenance limits. Fresh metadata shows required run 38125204337 terminal failure and independent baseline 38125202025 success at that head. This is neither an uninspected-row diagnosis nor permission to repeat unchanged qualification.

Current source audit at main ac06293dd0871531c1826e4a3266c8dc537cf4f6 identifies the exact final-campaign boundaries:

Surface Actual source behavior What the existing final-byte campaign must establish
enable --action-sha select_install_strategy chooses an installable latest release before considering the supplied SHA. The SHA permits source fallback; it is not an override selecting a new source candidate. The documented command and controlled candidate metadata identify the intended bytes. Do not label a fallback SHA as an immutable release selector or claim fresh generator behavior reached by a historical public archive.
Generated release workflow Release strategy renders uses: ...@<tag> plus matching release-version and strict release mode; lookup initially recognizes a v-digit tag and expected archive/checksum names. Independently inspect generated YAML and record Action commit, release tag/asset identities and archive/executable digests. Metadata-name recognition alone is not immutable Action identity or byte acceptance. The issue's immutable-ref requirement remains unresolved until the actual selected supported flow proves it.
Action install-mode=auto action.yml accepts an ambient command -v ub-review before release resolution. Explicit release does not take that branch. Final archive/public proof uses strict release mode and records the actual executable path/hash. A similarly named ambient/workspace executable cannot substitute for the selected archive. Preserve auto's declared compatibility semantics rather than silently using it as release-only proof.

No new selector feature is prescribed by this audit. The existing onboarding/source owners must return one concrete supported flow satisfying the selected product requirements, or retain an exact unmet criterion before freeze. Do not expand the tests-only archive lane into an uncoordinated generator rewrite.

Additional final-campaign acceptance

  • A production CLI command-sequence receipt records which generator executable/archive produced the files and which Action/source/release identities those files will execute; those identities cannot be collapsed into one version string.

  • Controlled candidate metadata is labeled candidate_rehearsal; live installed public resolution is separately repeated after M3e: authorize, publish, and verify the exact next release #817 under adoption(release): verify the published advisory install, upgrade, and rollback on clean fixtures #1346.

  • Release-available plus explicit fallback-SHA and release-unavailable plus explicit fallback-SHA cases record their actual strategy. Any source fallback is rejected by release-only acceptance, even if generation itself succeeds.

  • Generated posture/fork behavior/immutable Action pin/model-off controls are parsed from actual selected output and exercised where claimed. Existing current generator limitations remain failures/NOT_PROVEN, not inferred passes from advisory wording or successful file creation.

  • Restore only harness-owned state; preserve every selected unavailable/failed case and the original retained analyzer corpus.

This strengthens existing #1340 acceptance without creating another onboarding harness or making #817/#1346 a prerequisite of the same candidate rehearsal. #1071 retains platform/no-host-Cargo portability, #1342 active guidance, #1066–#1068 analyzer selection/install/behavior, and #816 final freeze.


First-hour investigation acceptance — 2026-10-26

Current-source first-hour controls to carry into candidate-archive acceptance

The 2026-10-26 investigation at main 988dc48 found three bounded current-source defects: #1555 doctor/plan omit already-recorded semantic-policy errors; #1556 init advertises custom but writes no profiles.custom and the generated config later policy-fails; #1557 doctor has an unbounded synchronous version probe. Each has an actual CLI control and explicit local-source limits.

Extend the existing #1382 archive matrix, after those source fixes are selected, with the same valid/invalid config preflight, all accepted init profiles (including auto/custom contract), and deterministic slow-version child controls. Record actual installed archive/executable identity and exact output/exit/cleanup outcomes. Retain successful gh-runner generation and overwrite-refusal controls. Current source-built success and preliminary #1382 bytes cannot substitute for that rerun.

README init→enable conflict was repeated on current main (init exit 0; enable exit 1 already exists; --force). The repair remains owned by #1354/#1388; this update does not create another writer or ask the archive harness to fix the generator. Release-only/no-host-Cargo/public adoption remain with #1071/#1346.

Activity

  1. added
    epic
    on Oct 9, 2026
  2. EffortlessSteven commented on Oct 10, 2026

    @EffortlessSteven
    MemberAuthor

    The current first-run audit is recorded under #1342. Please include an actual command-sequence test, not only independently successful generator tests: the README currently runs init before enable --inspect, but init creates the config that enable then correctly refuses without --force. Preserve the overwrite guard; define an explicit alternative or preserve-existing-config flow rather than recommending blanket force.

    Also assert the current meaning of --inspect: it performs repository-aware generation and writes workflow/config, not a read-only preview. The chosen documented first-run path must state those writes and produce advisory/model-off behavior through supported controls. No hypothetical --model off flag: current cmd_enable accepts only minimax. Existing #1318/#1320/#1324/#1326/#1328/#1329/#1331 regression owners remain unchanged.

    Source read was main7453db0a4f1976b4a6b5481da06e4cfd0837b902 on2026-10-10. This is source-backed test planning; no new CLI execution or candidate-byte acceptance is claimed.

  3. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    Reserving a bounded file-disjoint first archive rehearsal from main 5a72634: new tests/archive_onboarding.rs and docs/ARCHIVE_ONBOARDING_REHEARSAL.md only. Actual Action release resolver, frozen preliminary local archive/checksum, inert download/metadata adapter, Linux x86_64 no-Cargo setup, two repository shapes, substitution/fallback negatives and owned-state rollback. No README/tests/onboarding_readme.rs, tests/cli.rs, Cargo/action/help/runtime/workflow/verifier edits; preserve #1354/#1356/#1357 and #1306/#1317/#1347/#1380 owners. Final selected #816 archive and release acceptance remain pending; draft only, no publication/merge/protection changes.

  4. EffortlessSteven commented on Oct 11, 2026

    @EffortlessSteven
    MemberAuthor

    The reserved first archive-backed slice is now draft #1382, exact head74ebddae10ac0b995b47938cc9228816b90b3476. Evidence checkpoint: real Action strict release resolver + frozen preliminary local archive executable, 41 commands/17 bounded scenarios passing on Rust workspace and mixed native-risk fixture, no Cargo/fallback/substitution, exact harness-owned cleanup/preservation. Local seven-check baseline and hosted independent baseline pass; exact-head Luna review has no blocker; required gate still running. No active owner file overlap or production changes. Final #816 candidate/public/upgrade/full regression/workflow/provider acceptance remains pending, including current generator's mutable tag/model-on/posting/fork-scope boundaries. Keep #1340 open; this is not final archive qualification.

  5. added
    enhancement
    on Oct 23, 2026
  6. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    2026-11-20 candidate-byte custody check

    The preliminary harness landed in #1382 at 681def59d005d3b0b922f23832d73e52c46a84d5. It is present on observed main 1e59e67bdb098aa0c8f9d6736b88eb8484dab7c4 (tree 4fcdc741d562f3fb10b0ea919ddec7609f7b3322). The related neutral-workflow refusal still has an open owner in #1659.

    • Candidate bytes unavailable in this check. Both recorded packaging run artifact listings, 42151472014 and 42027214303, returned empty. Direct download requests for candidate 9b0515bb2b27d727746fbe4a750fa50898bbdefe artifacts 13473250166 and 13473325065 each returned GitHub API 404. The earlier preliminary packet path was also absent in this workspace. The retained_until epoch 1795142329 in the historical #816 readback converts to 2026-11-20 02:38:49 UTC. The receipt text's December date is a conversion error. These observations establish unavailability through the checked routes. A separately retained copy may still exist.
    • Current harness intake boundary. The landed rehearsal admits only phase=preliminary_local_archive before starting the resolver. Feeding it the packaging receipt as-is cannot exercise onboarding. Changing the receipt's phase would lose the distinction between preliminary and selected candidate evidence. This is an exact-source observation. No candidate CLI was executed.

    The next action stays with #816 and this harness lane. Make the selected archive, checksum and producer receipt available read-only from retained custody, or record a fresh non-publishing package identity through the existing producer. For the earlier candidate, the recorded archive SHA-256 is de7d4c303fa46c28373761de2fdff63ef10c004124cb9c88095ac39de3d41dfd and executable SHA-256 is 8cc1ad60f01e24882260e4b5b73bb4578d473e45e706ed79c11cd0fe754718ae. Then bind the producer receipt to the landed harness with an explicit candidate-phase input and run strict release resolution and its host-tool substitution controls against those same verified bytes. #1340 remains unproven for final candidate onboarding.

  7. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Candidate receipt intake contract and offline resolver proof

    This is a follow-up for the original #1382 harness lane. The merged harness is still on main 1e59e67bdb098aa0c8f9d6736b88eb8484dab7c4 (tree 4fcdc741d562f3fb10b0ea919ddec7609f7b3322). I found no open replacement harness PR or custody transfer.

    The current non-publishing package job actually emits authorized-release-packet.json with schema ub-review.authorized_release.v1. The older ub-review.release_candidate.v1 name is legacy. The packet has archive and checksum digests and lengths, and has no executable digest field. Its filename and verifier string do not confer release authorization. Current producer Existing parser and producer identity rules

    Bounded successor contract. Keep the preliminary manifest entry point. Add an explicit candidate entry point that reads the original producer packet and binds the raw packet digest and fields to independently retained source/artifact metadata. Compare repository, commit/tree, workflow/ref, run/attempt, artifact ID/name and retention horizon before resolver invocation. Bind fixed asset names, byte lengths/digests, tag/version and target. Derive the single executable member's digest from the verified archive and compare it with the extracted executable before running onboarding. Reuse the landed Action extraction, inert transport, private PATH and executable-identity checks. Record both candidate source and harness/Action identity, as those revisions may differ. This is an onboarding intake and does not invoke publication authorization or infer unused-tag status. Keep a synthetic fixture receipt explicitly labeled as synthetic.

    Offline verification. A disposable prototype used a deterministic tar.gz containing a version-only shell fixture, the producer's dist/ checksum format and a receipt whose field set matched the live workflow. It ran the verbatim current Action resolver with #1382's adapter. All controls passed:

    • Independently supplied head and tree mismatches and the preliminary schema were each refused before any resolver output or adapter activity.
    • Strict release exited 0 after two local adapter GETs. The resolved executable came from the archive, matched the synthetic member digest and reported the expected version. No host-tool sentinel ran.
    • Auto mode returned the planted PATH executable, which the identity guard rejected. The sentinel self-check separately recorded an invocation and exit 93.
    • A corrupt transport checksum made strict release exit 1 with empty outputs and no host tool or compiler fallback.

    Action SHA-256 328d216a412f47b15227302a33f9861e04742652e9aa6c983bf15a33520ee11d. Synthetic archive cad07fbf591957a4a0bde88e3a43154a0f69b60b06fea931bd38a5a125c6fc22, checksum 17d73f708f720b3f2f6cf1ca03b6c869a3569fd7f7ad0c097e88b9ed8d6bf686, executable 3763ddbca921a07b191903e17c32d96217f5cd83673e0996f56ef3deadaa37e0, producer-shaped receipt 13f98d078ec70ad8278be251cb9c9cb920a72580e042b5dba8689a92a4fdadfa. The prototype is disposable. No Rust harness change, build of UB Review, package workflow, upload or candidate onboarding was performed. The existing owner can implement and automate this contract independently of access to #816 bytes. The final onboarding run still requires those exact bytes.

  8. EffortlessSteven commented on Nov 20, 2026

    @EffortlessSteven
    MemberAuthor

    Docs correction for the local setup-ci --print-pr path. In the CI audit guide’s output table, replace “four PR files when --action-sha is supplied” with “four PR files when --print-pr includes at least one eligible --accept <job>=<command> and a 40-hex --action-sha.”

    The candidate source writes and prints ci-audit/migration-plan.md after validating the audit inputs. With no accepted job, it skips the preview-file writer even when a SHA is supplied. Current main has the same source blob (2afbc5fe8dbae446defa7a3bbe74cf58816a0b9d). The landed onboarding harness passes neither option and checks command success. Its audit-preview scenario therefore supplies no evidence that the four PR files were rendered.

    The historical #816 readback binds this candidate to the inner archive and matching checksum. The packaging run’s artifact listing currently returns zero artifacts. This is a source comparison only. The documentation delta can go through the ordinary local hooks and review. Candidate behavior remains open until #816 supplies the exact archive, checksum and producer packet to the candidate-capable harness and the owner records the actual outputs.

  9. EffortlessSteven commented on Nov 24, 2026

    @EffortlessSteven
    MemberAuthor

    Exact-main offline intake control, fda83bf6. A local executable prototype reuses the existing owner contract, this commit's Action shell and the landed inert transport adapter. Six controls passed, independently rerun on the exact inputs: strict archive install/version with two local GETs; rejection before resolver for independent head/tree/run-attempt mismatch and malformed/duplicate/misattributed receipt metadata; corrupt transport checksum refusal; and denial of unrelated PATH or same-version extracted binaries. Guard-removal controls separately exercised packet identity, executable digest and duplicate-key checks. Fixture code SHA-256 6aee4a5b59baa350f134663700e697d85bf1c25cdef21f027d3581fd72e3dd24.

    This is synthetic fixture proof, not a Rust harness change or a verified #816 archive. Keep the preliminary path and #1659 separate. The existing #1382 harness lane can port the candidate-intake controls and then run full onboarding against independently retained archive/checksum/producer metadata from the exact non-publishing #816 build. No hosted runs, provider calls, publication authority or release selection resulted.

    Rust handoff: the isolated test-only metadata slice is prepared against harness blob dfe9793a, patch SHA-256 7b4714c7111fb694fb222a2885968525b49494940e800f5a2addd957a64faf84. It applies cleanly and adds a focused test for digest, duplicate fields, independent source/attempt identity, schema and retention. It does not wire candidate bytes into the preliminary campaign or touch #1659. Rust compilation has not run; the owner should run cargo test --locked --test archive_onboarding synthetic_candidate_receipt_requires_unambiguous_bytes_and_independent_identity -- --exact before claiming the Rust control. Archive/checksum and executable-member binding plus the real #816 rehearsal remain required.

    Authentic bytes still outstanding. The historical #816 digest receipt survives, but its retention epoch 1795142329 is 2026-11-20T02:38:49.000Z (November 19 in US Eastern), not the December date in the prose. Both historical packaging runs 42027214303 and 42151472014 currently list zero artifacts. A separately retained original may still be usable against those immutable digests. Otherwise, coordinate a fresh non-publishing #816 build only when the consumer is runnable, and capture both artifact identities and the inner archive/checksum/executable evidence immediately; the producer's artifacts are retained for 14 days.

    Offline byte-binding control: six synthetic tests separately verified the Actions ZIP wrapper digest, inner archive and checksum length/digest, the producer's one-line checksum format, the regular executable member, and installed exact bytes (including rejecting a same-version, same-length substitute). Control SHA-256 19c584fd5dfa3ae2050cbf9774b77236e17eab3ef67b20271e0fc5d39233cfa3. This was a Python fixture control; no candidate payload was extracted or executed. Owner path: share the existing xtask/release_bytes.rs inventory contract without inheriting publication admission, then bind the admitted member to the installed executable identity and compile/test the existing Rust intake slice. The historical package jobs succeeded and publish jobs skipped; both real candidate artifacts remain absent from the listed runs.

    An independent clean rerun reproduced all six byte-control passes at the same script digest. This remains synthetic fixture validation; Rust integration and the authentic #816 replay are still open.

    Nov 24 exact local Rust receipt: the one-file tests/archive_onboarding.rs prototype on fda83bf62b45a9b7db4e61945d31c2e83ba01e40 was compiled. With a correctly hashed JSON array in place of object metadata, its focused synthetic_candidate_receipt_requires_unambiguous_bytes_and_independent_identity test went red before the object guard and passed 1/1 with it (local patch SHA-256 05f5f756b693c27c13f91c34d484e1e9a259c4328a5c4157c6f86e1014e73413). Running the full archive_onboarding target returned 5 pass, 1 ignored, and 1 failed at the readiness test with Operation not permitted; not claiming a full pass. The active Codex implementation is separate and still owns the joined archive-to-installed-executable check. This receipt is a synthetic structural negative, not authentic package intake or #816 qualification. No push, hosted rerun, or publication.

    Joined intake candidate: branch codex/1340-offline-candidate-intake, H cba25ab8dfeb4b85375c37cc2180528e1369090b, tree f510a60fcd263270ab2829f5c7d68dee227cb17a, B fda83bf62b45a9b7db4e61945d31c2e83ba01e40. Checks both Actions ZIPs against custody receipts, archive/checksum and installed image identity. The real resolver's initial --version uses the archive-bound staged bytes; the harness checks installed bytes again before its own CLI rows. Synthetic inputs with mode omitted formerly passed as candidate_rehearsal; now fail before receipt-directory/resolver creation. Explicit synthetic_fixture passed 17 scenarios/41 commands through the real local Action path; rewrapped ZIP and same-version different executable controls refused at their intended boundaries. Successor archive target: 8 passed/2 opt-in ignored; broader offline workspace 1,803 passed/4 ignored was measured before the small explicit-mode successor. Independent source reviewer reconstructed exact successor tree and cleared the mode issue, not a second native run. Branch push only; no PR or hosted run. #816 still needs genuine protected candidate artifacts; #1071 separately needs candidate-native OS evidence.

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

    codexenhancementepictest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions