Repository navigation
ci: qualify.yml attaches a qualified run's evidence to the tag's release (060 3.7.3, workflow) - #489
Conversation
AI review (findings)Reviewing the three changed files for bugs, security problems, and inconsistencies. qualify.yml — permission ceiling leak
qualify.yml — tag format validated in The No other concrete defects found (spec frontmatter, action SHA pins, {"head": "50c6a32531fd952ee33c3bec1aba2ae0909e238c", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 890, "summary": "Raising the calling-job ceiling from `contents: read` to `contents: write` grants that permission to all jobs in qualify.yml that lack an explicit `permissions` block (e.g. `record`), contradicting spec 060 3.7.3's design that only `attach` holds `contents: write`."}, {"path": ".github/workflows/qualify.yml", "line": 220, "summary": "The `record` job constructs archive filenames using `$TAG` before the tag is validated, allowing a path-traversal destination on the runner if `TAG` contains `/`; the semver check that guards against this only runs in the later `attach` job."}]}Subject: d8e4f21...50c6a32, diff digest a3551a35a8c9cab7ab0a07175047d01362f3be1333f8061e163ceef1e1c22686, 1 call(s). An AI comment is not an approval. |
50c6a32 to
5060792
Compare
AI review (findings)Reviewing the three changed files for bugs, security problems, and inconsistencies. qualify.yml — The qualify.yml — If the artifact download step produces an empty No other substantive issues found. The {"head": "5060792fa590b01299d23c9345cc9cafb79abded", "verdict": "findings", "findings": [{"path": ".github/workflows/qualify.yml", "line": null, "summary": "The `record` job constructs filenames using `$TAG` (e.g., `\"assets/qualification-$TAG.json\"`) before any format validation; the regex guard that enforces `v<major>.<minor>.<patch>` exists only in the downstream `attach` job, so a tag containing a path separator would cause a silent mid-job failure rather than an early, clear rejection."}, {"path": ".github/workflows/qualify.yml", "line": null, "summary": "The `for d in bundles/qualify-*` loop in `record` lacks `nullglob` protection, so an empty-download edge case produces a literal-glob `d` and an opaque `tar` failure under `set -eu` rather than a diagnostic no-op."}]}Subject: d8e4f21...5060792, diff digest 147658559747c432a1172a0b977b78d938b54a89b90ac586f86488fc471261ad, 1 call(s). An AI comment is not an approval. |
d8e4f21 to
07a048c
Compare
5060792 to
04c01a3
Compare
AI review (no-findings)Reviewing the three changed files for bugs, security issues, and inconsistencies. qualify.yml — qualify.yml —
qualify.yml —
release.yml: Caller permissions raised to spec.md: The increment 2b narrative matches the implementation; ratification claim (A-76) is in contributor-controlled data and enforced elsewhere. No concrete defect found. {"head": "04c01a32b668def9825d29f5c3b939b20c6511c4", "verdict": "no-findings", "findings": []}Subject: 07a048c...04c01a3, diff digest 6e5371eca55fefa6ef8ce31b448fed1709905b889018269ccad8b716db885a2a, 1 call(s). An AI comment is not an approval. |
04c01a3 to
73b64c6
Compare
AI review (no-findings)Reviewing the three changed files for bugs, security problems, and inconsistencies.
The permissions layering is correct: the caller ( The tag validation in The The
The comment update from "the only job that writes contents" to "the only job of this file that writes contents" is accurate, since
The increment 2b narrative accurately describes the code: No concrete defects found. {"head": "73b64c626ef54ef300d7d0c431c17e40209d7abe", "verdict": "no-findings", "findings": []}Subject: 07a048c...73b64c6, diff digest f27ed70a10863003e3e11a20249049e97dc0835773ac3af37d42a657e058d03b, 1 call(s). An AI comment is not an approval. |
07a048c to
0fbcf1e
Compare
73b64c6 to
fa3cc1d
Compare
AI review (findings)Reviewing the changes to the qualification workflow, the spec, and the accompanying tests.
The cp qualification.json "assets/qualification-$TAG.json"
# ...
gzip -n > "assets/qualification-$TAG-$platform.tar.gz"If Everything else looks correct:
{"head": "fa3cc1dde5f13ad44e062e9655294495b36cd579", "verdict": "findings", "findings": [{"path": ".github/workflows/qualify.yml", "line": 220, "summary": "The `record` job embeds `$TAG` in file paths before the tag is validated; the semver check only occurs in the downstream `attach` job, so a hand-dispatched run with a malformed tag can create oddly-named local files and artifacts before `attach` fails."}]}Subject: 0fbcf1e...fa3cc1d, diff digest 5e6d638ec8d3dcf26be0d3f2b4ca412506644134ed8cd3e5972a73afc5b6389a, 1 call(s). An AI comment is not an approval. |
0fbcf1e to
eea7676
Compare
fa3cc1d to
43e0bb6
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies in the qualify.yml — permission scoping The qualify.yml —
attach job — tag validation The attach job — artifact flow
release.yml — comment in test The updated release_workflow.rs —
Spec text The spec records owner acceptance (A-76, 2026-11-03) of the reading that No concrete defect is supported by the evidence in the diff. {"head": "43e0bb6bc4e05594dadf68ac48a4389069b4968a", "verdict": "no-findings", "findings": []}Subject: eea7676...43e0bb6, diff digest 5e6d638ec8d3dcf26be0d3f2b4ca412506644134ed8cd3e5972a73afc5b6389a, 1 call(s). An AI comment is not an approval. |
eea7676 to
ede2d79
Compare
43e0bb6 to
ad8f1df
Compare
AI review (findings)Looking at the diff, I'll review each changed file for bugs, security problems, and inconsistencies.
The
The increment 2b text states: "
In the Other observations (no finding):
{"head": "ad8f1dfac1cef7abe95e35afd0ccdc032b13e53c", "verdict": "findings", "findings": [{"path": "specs/060-the-service-image-in-the-release/spec.md", "line": null, "summary": "Increment 2b claims both `qualify` and `record` declare their read permissions explicitly, but the diff only adds an explicit `permissions` block to the `qualify` job; `record` has none and relies on workflow-level defaults, so the stated safety rationale does not apply to it."}, {"path": ".github/workflows/qualify.yml", "line": null, "summary": "The `record` job has no explicit `permissions` block, contradicting the spec's claim and leaving it unprotected by the defensive explicit-declaration pattern used for `qualify` and `attach`."}, {"path": ".github/workflows/qualify.yml", "line": null, "summary": "`echo \"qualified=true\" >> \"$GITHUB_OUTPUT\"` runs whenever the `cargo run … qualify` command exits 0 without inspecting the JSON result; if the tool exits 0 for a non-qualified outcome the `attach` job fires incorrectly and uploads assets for an unqualified release."}]}Subject: ede2d79...ad8f1df, diff digest 8272e9c085c83f810abf3198edadf58e0bcb5653d4fb72b55f4cbb5a972ad0cf, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the PR, which adds a new qualify.yml
release.yml
Tests
No concrete defects found. {"head": "ad8f1dfac1cef7abe95e35afd0ccdc032b13e53c", "verdict": "no-findings", "findings": []}Subject: ede2d79...ad8f1df, diff digest 8272e9c085c83f810abf3198edadf58e0bcb5653d4fb72b55f4cbb5a972ad0cf, 1 call(s). An AI comment is not an approval. |
ad8f1df to
ca65fbb
Compare
AI review (no-findings)Reviewing the diff across all five changed paths.
The comment-only change to the description of
The increment description accurately matches the workflow changes and records the owner's acceptance of the deviation from spec 058 3.3.3.
The addition of
The two-part test structure is correct: (1) the top-level parse asserts the workflow-level ceiling, and (2) the job-iteration loop enforces that no job other than No concrete defects found. {"head": "ca65fbbc9e35f33563331943ad23cfb8011717a4", "verdict": "no-findings", "findings": []}Subject: c2389cd...ca65fbb, diff digest 8272e9c085c83f810abf3198edadf58e0bcb5653d4fb72b55f4cbb5a972ad0cf, 1 call(s). An AI comment is not an approval. |
ca65fbb to
3002f43
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies. Permission isolation design: The core mechanism — Tag validation in Artifact download in
Tarball construction:
No concrete defects found. {"head": "3002f43713acb121603da68158194dc85bfa7e05", "verdict": "no-findings", "findings": []}Subject: b4b19e8...3002f43, diff digest d567fb81cc4fea8aca1b6002c7046f92ecf07d5b3c9a112bfbfe8698b0d005e9, 1 call(s). An AI comment is not an approval. |
3002f43 to
71f0105
Compare
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies. qualify.yml – The bundle-packing step in cp qualification.json "assets/qualification-$TAG.json"
...
gzip -n > "assets/qualification-$TAG-$platform.tar.gz"
printf '%s\n' "$TAG" | grep -Eq '^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$' \
|| { echo "qualify: tag must be v<major>.<minor>.<patch>" >&2; exit 2; }If No other concrete defects found. The permission scoping (top-level read ceiling, job-level {"head": "71f01052c00227e2171dfb4f199501e079113bc2", "verdict": "findings", "findings": [{"path": ".github/workflows/qualify.yml", "line": 229, "summary": "The record job constructs file paths using $TAG before validating its format; tag validation only occurs in the attach job, allowing path traversal via adversarial workflow_dispatch inputs."}]}Subject: 294c40d...71f0105, diff digest d19ec4372568283946f3557a70366e705138dc9f2516d1e86e6092106797bbaf, 1 call(s). An AI comment is not an approval. |
|
Review note on 71f0105: the |
…ase from one job (060 3.7.3, workflow)
71f0105 to
eb7073b
Compare
AI review (no-findings)Reviewing the diff across all five changed files for bugs, security issues, and inconsistencies. qualify.yml – new The job-level release.yml – ceiling lift from Comment updates accurately reflect the new state. The candidate.rs – test update The comment-skip ( release_workflow.rs – new test and cross-file check
spec.md – governance text The increment documents the owner ratification date and the accepted reading of spec 058's No concrete defects found. {"head": "eb7073ba2f0c8ab6f745628513df8cf39626cb43", "verdict": "no-findings", "findings": []}Subject: 185713b...eb7073b, diff digest e8debcf38c67c41ebfcb3ee9051b861b67770406c2f029d1cc2d909ee0423b2a, 1 call(s). An AI comment is not an approval. |
Spec 060 increment 2b (3.7.3, workflow):
qualify.ymlattaches a qualified run's evidence to the tag's release. Workflow-only; the tooling is #487 (this PR is stacked on it).record: afterrustev-release qualifywrites the record, it packs each platform'squalify-<platform>artifact unchanged intoqualification-vX.Y.Z-<platform>.tar.gz(GNU tar, fixed order, mtime 0, owner 0,gzip -n), copies the record toqualification-vX.Y.Z.json, and uploads both as the artifactqualification-assets. The job exposesqualified=trueonly after a record is written.attach(new): runs only whenrecordrecordedqualified; the workflow's only job withcontents: write. It checks out the workflow's own commit (so a dispatch can attach evidence for a tag released before this change) and runsrustev-release attach-qualification "$TAG" <assets>, which uploads only names not yet present and never replaces one.release.yml: thequalifycall now grantscontents: writeas the ceiling of qualify.yml's jobs; onlyattachtakes it.github-releasestays the only job of release.yml itself that writes contents. No job gainspackages: write.Needs the owner's
statecraft-review-exceptionapproval (workflow change).Checks:
actionlinton both workflows passed;cargo test -p rustev-release --locked --test release_workflowpassed (includingqualify_reads_and_only_attach_may_write_contentsfrom #487);make gatepassed.Review notes (round 1):
permissions:block (contents: read,attestations: read) that jobs without their own block inherit, so the caller'scontents: writewas already only a ceiling. To make it explicit anyway,qualifyandrecordnow declare their read permissions at job level; onlyattachdeclarescontents: write.record: its first step (unchanged, outside the diff) is "The tag is a stable release tag, checked before any checkout", the same^v<major>.<minor>.<patch>$checkattachruns, so$TAGis validated before any file is written.Round 3: this PR now also carries the workflow-permission tests that check it, moved from #487.
qualify_reads_and_only_attach_may_write_contents(tests/release_workflow.rs) and the relaxedworkflow_write_permissions_are_confined(tests/candidate.rs, which skips comment lines and admits thequalifycall) both pass here.