Repository navigation
impl(056): part b2, the fresh-consumer qualification harness - #328
Conversation
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
AI review (findings)Reviewing the diff across all changed files.
In the tar.extractall(path, members=members, filter='data')The
When
The lockfile does not change between the two invocations, so the second call is redundant. If the first check is meant to be an early fail-fast guard and the second was intended to serve only for evidence collection, the re-validation is an oversight. No other concrete defects were found. The {"head": "5ae419d330f6e948bbd42d17ff1948842f14e78f", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/harness.py", "line": 339, "summary": "tar.extractall() is called with filter='data', a keyword argument added in Python 3.12; on Python 3.11 (the stated minimum) this raises TypeError and crashes the cli step."}, {"path": "tools/rustev-release/adoption.sh", "line": 148, "summary": "In registry mode (non-empty $version), harness.py lock is invoked twice against the same unchanged Cargo.lock—once after cargo generate-lockfile and once in the drift-check else branch—making the second call redundant."}]}Subject: ddd160f...5ae419d, diff digest 998fe0b3026ded423491b83479545996067e0d1e192ea5ac00b290552dd589d6, 1 call(s). An AI comment is not an approval. |
5ae419d to
432b029
Compare
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
AI review (findings)Reviewing the qualification harness, workflow, and adoption-script changes for concrete bugs and security issues. Finding 1 — In the msrv=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["msrv"])' release/release-manifest.json …)
echo "msrv=$msrv" >> "$GITHUB_OUTPUT"That value is then consumed in the next step: run: rustup toolchain install "$PINNED" "$MSRV" --profile minimalThe manifest signature is not verified until Finding 2 —
root = tomllib.loads(lock.with_name('Cargo.toml').read_text())['package']['name']The Finding 3 —
probe = subprocess.run(prefix + ['true'], cwd=self.work, env=self.env,
stdout=self.log, stderr=self.log, …)
{"head": "29c54df7b8f3bf8cb4f0dc25adcc42d4f2318aa7", "verdict": "findings", "findings": [{"path": ".github/workflows/qualify.yml", "line": 57, "summary": "The MSRV field is read from the downloaded manifest and used to install a Rust toolchain before the manifest signature is verified by qualify.sh, trusting unverified manifest content ahead of the stated verification step."}, {"path": "tools/rustev-release/qualify/harness.py", "line": 55, "summary": "lock_checks unconditionally reads ['package']['name'] from the adjacent Cargo.toml; if that file is a virtual workspace with no [package] table the call raises KeyError and causes every registry-mode adoption subset to fail with exit 2."}]}Subject: ddd160f...29c54df, diff digest eb15a3acd1791d2f566c0612af9963770609e1e11bfe78341237df2e1566b8cd, 1 call(s). An AI comment is not an approval. |
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
29c54df to
0795d32
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
0795d32 to
3a99047
Compare
AI review (findings)Reviewing the diff across all changed paths.
Concrete defect:
{"head": "3a99047fbf808324f49dd87a54cf11e77e42be45", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify.sh", "line": 11, "summary": "The Python presence check passes for Python 3.10 or earlier, producing an opaque ModuleNotFoundError instead of the advertised 'Python 3.11 or later required' diagnostic, because tomllib is not available before 3.11."}]}Subject: ddd160f...3a99047, diff digest 99e3af4c11a0f08c8ec3d9eca9b1183cb07105778b7f5fb9add06ba0e5c1825b, 1 call(s). An AI comment is not an approval. |
3a99047 to
5704503
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
AI review (findings)Looking at the changed files for bugs, security problems, and inconsistencies. harness.py – exclusion reason for the In required = ... any(a['kind'] == ('binary' if kind == 'cli' else kind) for a in self.m['artifacts'])But the exclusion message uses status = {'excluded': {'reason': 'the signed manifest names no container image'
if kind == 'image' else 'the signed manifest names no ' + kind}}When qualify.yml – workflow file under Per AGENTS.md: "Any change under No other concrete defects are supported by the supplied evidence. {"head": "57045036a6192b3ac1c8114d09b124e923367052", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/harness.py", "line": 305, "summary": "Exclusion reason for the 'cli' step says 'the signed manifest names no cli' but the manifest artifact kind for CLI archives is 'binary', making the reason string inconsistent with the manifest's own terminology."}]}Subject: ddd160f...5704503, diff digest 6c6f969f54e7c096425a0e1e18d43badf6f88643370e5692bf588f7788d8b6d8, 1 call(s). An AI comment is not an approval. |
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
5704503 to
effb839
Compare
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
AI review (no-findings)I reviewed the diff carefully across all seven changed paths against the governance documents and repo context.
No concrete defects found in the supplied evidence. {"head": "effb83946fcb7b42e7e179b8a30b4eeb351eb666", "verdict": "no-findings", "findings": []}Subject: ddd160f...effb839, diff digest 940cf1b5fa24778e783159af20e35f01234c03f5e3cb89a12a416a411aca18ab, 1 call(s). An AI comment is not an approval. |
ddd160f to
24ee6f3
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
effb839 to
5ffe863
Compare
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
eee935f to
dd90b2b
Compare
dd20183 to
6080ccb
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
dd90b2b to
a1f97c2
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
6080ccb to
68e1919
Compare
AI review (findings)Reviewing the PR, which adds a fresh-consumer qualification harness (spec 056, parts b2 and c). Finding: adoption.sh subset tests in registry mode do not enforce offline execution
However, in # harness.py, crates() method
self.offline_run('cargo', '+' + toolchain, 'test', '--locked', '--offline', cwd=example)
...
self.run('sh', HERE.parent / 'adoption.sh') # no network sandboxAnd in # adoption.sh ~line 127
if ! result=$(cd "$dir" && RUSTEV_ADOPTION_MARK="$mark" cargo test --quiet ${version:+--locked} --test subset 2>&1)The example-project tests (run via {"head": "68e1919c9a07f2381f84a050da3472eaad9bb417", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/harness.py", "line": null, "summary": "adoption.sh is invoked via self.run() rather than self.offline_run(), so adoption subset cargo tests lack both --offline and the OS-level network sandbox, contradicting the README's explicit claim that both pinned and MSRV consumer tests run with Cargo offline."}, {"path": "tools/rustev-release/qualify/README.md", "line": 30, "summary": "Claims 'Both pinned and MSRV consumer tests run with Cargo offline' but adoption.sh subset tests use only --locked, not --offline, and receive no network sandbox."}]}Subject: a1f97c2...68e1919, diff digest c8e11f7ea9081b3db8410d5a2fdd03034fdd1d9a8a980cedb5758d9d54604db6, 1 call(s). An AI comment is not an approval. |
68e1919 to
b177daa
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
AI review (findings)Reviewing the new qualification harness, workflow, and supporting scripts for concrete defects.
serde_json::from_slice::<serde_json::Value>(pkg::EXAMPLE_JUDGMENT).unwrap()["outcome"]So In if read(path / 'record.json')['core']['recorded']['judgment']['outcome'] != read(path / 'expected.json'):
raise ValueError('CLI example outcome mismatch')The left side is the outcome value extracted from the CLI record; the right side is the full No other concrete defects found. The workflow file requires the {"head": "b177daa501a6ed24dfe404b77e3413ea82196539", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/harness.py", "line": null, "summary": "cli_smoke compares the CLI run's judgment outcome value against the full expected.json dict; consumer.rs confirms EXAMPLE_JUDGMENT is a judgment object with an 'outcome' key, so the right-hand side must be read(path / 'expected.json')['outcome'], otherwise the check always raises ValueError('CLI example outcome mismatch')."}]}Subject: 8dcbf53...b177daa, diff digest c8e11f7ea9081b3db8410d5a2fdd03034fdd1d9a8a980cedb5758d9d54604db6, 1 call(s). An AI comment is not an approval. |
b177daa to
3ebd1a8
Compare
Spec 056, part c: the qualification workflow. Stacked on #328. - `.github/workflows/qualify.yml` (056 3.3), dispatched after publication with the release tag. It downloads `release-manifest.json` and its `.sig` from the hosted release, installs the pinned toolchain and the manifest's MSRV, and runs `tools/rustev-release/qualify.sh` on each of release.yml's seven platforms (spec 027 3.13.1). The musl platforms run the harness in an Alpine 3.22 container (pinned by digest) on the host, so the harness sees the platform's libc. - Each platform's step files are uploaded as `qualify-<platform>`; `rustev-release qualify` over the collected evidence records the lifecycle, never this workflow. - Read-only permissions (`contents`, `attestations`); actions pinned as in release.yml. Not a required check, so not in `ci.extra_required_jobs`. - A change under `.github/workflows/`, so it needs the owner's `statecraft-review-exception` approval once. - Spec 056: part c record, and what remains for `implementation: complete`. Checked locally: `actionlint`, `make gate`. Review note (7d7dc75): fixed. The Alpine image is pinned by its multi-platform index digest (`alpine@sha256:2e0b81d6...`), like the actions' commit pins.
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
3ebd1a8 to
cca8d54
Compare
AI review skipped: transientthe reviewer call stalled twice (no event for 180 seconds) This pull request was not reviewed by the AI reviewer. A green ci-gate does not say otherwise. |
Spec 056, part b2: the fresh-consumer qualification harness. Stacked on #326.
tools/rustev-release/qualify.sh <version> <manifest> <evidence-dir>runstools/rustev-release/qualify/harness.pyin a new temporary directory (3.3). It refuses a workspace ancestor and any path, Git, patch, source-replacement or alternate-registry configuration, starts with empty Cargo and npm homes and no registry token, and checks every lockfile source and checksum against the signed manifest.rustev.qualification-step/1file per kind and platform:qualify/consumer.rs(bounded decision over contract, core, runtime and rules; the declared example of 3.2 offline; the remote HTTP client and loopback server;cargo install rustev-cli), plus each partial-adoption subset throughadoption.sh's new registry mode (RUSTEV_ADOPTION_VERSION, same subset list);npm audit signatures, required provenance,qualify/smoke.cjs;gh attestation verify, smoke commands;excludedwhen the manifest names none.A step the host cannot run is
not_run, neverexcludedor passed.adoption.shwithoutRUSTEV_ADOPTION_VERSIONkeeps its workspace path mode.Tests:
tools/rustev-release/tests/qualify_harness.rs(offline: usage, freshness refusals, a dry run whosenot_runstepsqualifyrefuses). A live run needs a published version after0.1.0.Review note (5ae419d): the tar extraction filter is used when the interpreter has it (3.12 and 3.11.4 onward), and the member checks still refuse links, special files and paths outside the root. In registry mode the subset test now runs
--locked, so the lockfile checked against the signed manifest before the build is the one built; the duplicate check after the test is removed.Review note (29c54df): qualify.yml now reads the MSRV from the workspace Cargo.toml at the checked-out tag, not from the manifest before its signature is verified; the harness then requires the verified manifest's msrv to be an installed toolchain, or the crates step is not_run and qualification refuses. The lock_checks
[package]finding is a false positive: both writers of that Cargo.toml (Harness.project and adoption.sh line 71) always emit a [package] table, and a missing one exits 2, never skipped (in-hunk comment added).Review note (3a99047): qualify.sh now checks that python3 is 3.11 or later (tomllib) before running the harness, so an older interpreter gets the stated diagnostic.
Review note (5704503): an excluded step's reason now uses the manifest's own artifact kind (binary artifact for cli, npm artifact, container image).
Review note (fbc09c9):
example()now removes a partial example project left by a step that failed part way and rebuilds it, so a later step neither trips on nor trusts it; qualify.yml refuses a tag whose Cargo.toml declares no rust-version instead of installing.0.Review note (541299d): the crates step now runs the installed CLI as
rustev.exeon win32, as the cli step does.Review note (476e69e): qualify.yml now checks the tag is
v<major>.<minor>.<patch>in its first step, before any checkout. The[package]point is a repeat false positive: adoption.sh emits the table in its subset loop (printf '[package]...', line 71) before[workspace]; lock_checks now refuses a Cargo.toml without one with an explicit error instead of a KeyError.Review note (c5526b7): lock_checks no longer reads Cargo.toml at all. The consumer root is the lockfile's only package without a source, and it must be a generated
rustev-adoption-*orrustev-qualification-*consumer; any other source-less package is refused as a path dependency. The lock test now writes no Cargo.toml.Review note (68e1919): not a defect. Spec 056 3.3 requires offline (network denied where the platform allows it) only for the declared example, which
offline_rundoes; the partial-adoption subsets run "against the registry" by design,--lockedafter the lockfile is checked against the signed manifest. The README sentence overstates this; narrowing it is tracked in #342 and left out of this PR.Review note (b177daa): fixed.
cli_smokenow compares the recorded outcome withexpected.json'soutcome(the file holds the whole SYNTHETIC judgment), as consumer.rs already did.Split (2026-10-28): part c (
.github/workflows/qualify.yml) moved back out to #350, stacked on this PR, so this one changes no workflow file and needs no review exception. The harness fixes from the review rounds stay here.Armed on cca8d54 with the owner's approval (2026-10-28): the reviewer stalled on this head five times; its last completed review (b177daa) found the outcome-comparison defect, fixed here, and nothing else changed since.