Repository navigation
release: verify-image checks the registry against the manifest's image (060 3.3.3, 3.4.2) - #496
Conversation
AI review (no-findings)Reviewing the diff across all changed files.
No concrete defects found. {"head": "f3632bea0879f25f91af4f92143f8fb2137b0ead", "verdict": "no-findings", "findings": []}Subject: 7b8c0b2...f3632be, diff digest 1460de32cbdc8e15f90855155c014bd8866d9b10cae3017855ed522780eb1a18, 1 call(s). An AI comment is not an approval. |
f3632be to
4d1e758
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and behavioral inconsistencies.
The two-guard match on the tag result: Ok(Some(b)) if digest(&b) != image.index_digest => ...
Ok(Some(b)) if b != expected => ...The second arm is reachable when the manifest's The per-platform check
With
The
The updated test correctly requires that the
The
stdin is closed after No concrete defects found. {"head": "4d1e7586e0d85c79904731dfdeadde5a149b88a2", "verdict": "no-findings", "findings": []}Subject: 7b8c0b2...4d1e758, diff digest 20b902f46e4d4e6636996158563ee98abe4c1a611ebd10b5d9dfff11f4abb20c, 1 call(s). An AI comment is not an approval. |
4d1e758 to
6b77919
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies. Security controls in
The two-curl flow (token then manifest) looks correct. HTTP status is captured via
The three-arm match on the tag lookup is:
Arm 2 fires only when This is not a correctness defect in behavior — Arm 1 covers every reachable case when the manifest is internally consistent — but Arm 2 is dead code in normal operation and the spec's coverage claim is slightly inaccurate.
The Permission checks The updated Command dispatch
No concrete security defect or behavioral bug is supported by the supplied evidence. {"head": "6b7791968cdb5bae2d7abf2cadf08708fe24b8db", "verdict": "no-findings", "findings": []}Subject: 7b8c0b2...6b77919, diff digest b5f63287653d359d7101b96f688cbf7aa81746dee9063ea69cd914d1b7e977c9, 1 call(s). An AI comment is not an approval. |
7b8c0b2 to
99f0a71
Compare
6b77919 to
c6f7307
Compare
AI review (no-findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The
The double-guard
The updated line-by-line scan correctly tracks the current job by detecting 2-space-indented, colon-terminated headers and checking that
Minor: No concrete bugs or security defects found in the changed paths. {"head": "c6f7307c59ae9f4908a6cae345835658f3cb56c4", "verdict": "no-findings", "findings": []}Subject: 99f0a71...c6f7307, diff digest ca921d65a4acf90eb7666abb095f027a6aa324698d564c3084076a77bf8db521, 1 call(s). An AI comment is not an approval. |
99f0a71 to
2a368e2
Compare
c6f7307 to
0b88a35
Compare
AI review (no-findings)Reviewing the diff for
Token is passed to curl via stdin (curl config file), never on the command line. The
The two guards on Name validation
Workflow test update
Spec doc The ratification claim and the increment 4b text are consistent with each other; the ratification date in the spec (2026-11-03) matches the increment date and is part of PR DIFF data, not governance authority. No concrete defects found. {"head": "0b88a35924d2aa186a552f6252573749b1607c8b", "verdict": "no-findings", "findings": []}Subject: 2a368e2...0b88a35, diff digest ca921d65a4acf90eb7666abb095f027a6aa324698d564c3084076a77bf8db521, 1 call(s). An AI comment is not an approval. |
0b88a35 to
4243807
Compare
AI review (findings)Looking at this PR, I'll review the new Security review of The token handling looks correct: Logic in The match arms are ordered correctly: registry error → absent → wrong digest → wrong content → pass. The fourth arm ( Spec citation inconsistency — concrete defect In // Spec 060 3.3.2 and 3.3.3: the index bytes to push, and whether the tag isBut the error message for the "manifest names no image" branch cites 3.3.1: .ok_or("060 3.3.1: the manifest names no image; nothing is pushed")?;This is internally inconsistent: the outer comment and the main.rs docblock both associate this function with 3.3.2/3.3.3, while the error message points to a different section. If 3.3.1 is the precondition ("manifest names an image"), the error message is using the wrong section to characterise a violation of that precondition, which will mislead anyone debugging a failed run. {"head": "4243807287aec193253027d4c94645d9e1d38397", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/main.rs", "line": 1072, "summary": "image_tag_cmd's error message cites spec section 3.3.1 for the 'manifest names no image' case, inconsistent with the function's own comment and the top-of-file docblock which both attribute this command to sections 3.3.2 and 3.3.3."}]}Subject: adcaa4c...4243807, diff digest ca921d65a4acf90eb7666abb095f027a6aa324698d564c3084076a77bf8db521, 1 call(s). An AI comment is not an approval. |
4243807 to
b0aa35d
Compare
AI review (no-findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The
The function accepts only
The match arms are tried in order: digest mismatch fires first; Failed-lookup safety Both
The original parsed-job assertion ( Repository name URL-safety
The error No concrete defects are supported by the evidence in the diff. {"head": "b0aa35d2227fac4ad4bf03a4a8265167262bb88e", "verdict": "no-findings", "findings": []}Subject: adcaa4c...b0aa35d, diff digest a88281cc04704f536d4df7880aafba7298490ad3ecb815fdc185df181a6b3c6d, 1 call(s). An AI comment is not an approval. |
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies across the five changed source files and the spec update.
Security properties of the curl invocation look sound: the Concrete defect — stderr discarded on curl failure (line ~141–143): let o = child.wait_with_output().map_err(|e| format!("curl: {e}"))?;
if !o.status.success() {
return Err("registry transport failed".into());
}
Ok(Some(b)) if digest(&b) != image.index_digest => problems.push(...),
Ok(Some(b)) if b != expected => problems.push(
"060 3.4.2: the index {} is not the index of the manifest's platform digests"
),The second arm is reachable only when Everything else looks correct:
{"head": "b0aa35d2227fac4ad4bf03a4a8265167262bb88e", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/image_registry.rs", "line": 143, "summary": "Ghcr::curl captures stderr with Stdio::piped() but discards o.stderr when curl exits non-zero, returning only the fixed string \"registry transport failed\" and losing all curl diagnostic output (TLS errors, DNS failures, timeouts) that would be needed to diagnose a live-registry failure."}, {"path": "tools/rustev-release/src/image_registry.rs", "line": 72, "summary": "The second Ok(Some(b)) if b != expected arm in verify() is dead code absent a SHA-256 collision; if reached it would emit a misleading error blaming the registry when the actual defect would be an inconsistency in ImageRelease (index_digest not matching digest(index_bytes(&platforms)))."}]}Subject: adcaa4c...b0aa35d, diff digest a88281cc04704f536d4df7880aafba7298490ad3ecb815fdc185df181a6b3c6d, 1 call(s). An AI comment is not an approval. |
b0aa35d to
4680db1
Compare
AI review (no-findings)Review
|
4680db1 to
1287116
Compare
AI review (no-findings)Reviewing the diff across all changed files for bugs, security problems, and inconsistencies.
Token handling:
Failed-lookup handling:
The
Increment 4b prose is consistent with the code: No concrete defects found. {"head": "128711614cfb8a25791168bfa1da019bdbd9702b", "verdict": "no-findings", "findings": []}Subject: c95ee4e...1287116, diff digest 8256d484d0268b645d579356dec23c47226eab151804502083ea90af8c6771d1, 1 call(s). An AI comment is not an approval. |
…e, image-tag refuses a moved tag (060 3.3.3, 3.4.2)
1287116 to
720928c
Compare
AI review (no-findings)Reviewing the diff across the seven changed paths.
No concrete defects found. {"head": "720928c28079df9a214ff50a91907cbf33369130", "verdict": "no-findings", "findings": []}Subject: b4b19e8...720928c, diff digest 9c21fadeed8e0ec74d8f5d142a486944592a8ec791dd64ab42ae931e6c3e88de, 1 call(s). An AI comment is not an approval. |
…0 3.1) [held for owner decision] (#499) Spec 060 increment 5 (3.1): membership. DRAFT, DO NOT MERGE until the owner decides 060 decision 2 and the other prerequisites below hold. - `tools/rustev-release/release-set.json` names the image under `image` (`ghcr.io/statecrafting/rustev-serve`, `linux/amd64`, `linux/arm64`) and drops its `absent` entry. This is the switch that makes the next release name the image in its manifest, gate its scan through `image-exceptions.json`, push and attest it (`publish-image`), verify it and qualify it. - Tests that are not about the image (`tests/family.rs`, `tests/tagged.rs` fixtures) set `image` to none; `tests/npm.rs` and `tests/image.rs` no longer read an image absence from the committed set. Prerequisites before merging: 1. The base move to `gcr.io/distroless/cc-debian13:nonroot` (#502), decided by the owner on 2026-11-03. 2. The owner's ruling on each of the 44 findings on that base (one decision row and one `image-exceptions.json` entry per (id, package), at most 90 days). With the image a member, any uncovered finding fails `image-checks`. 3. The image qualification of 060 3.4.3 as amended (#500 harness, #501 workflow). 4. Spec 042 is complete (#477), so 3.1.1's condition holds. The owner makes the ghcr package public after the first push. Stacked on #498 (on #496, #494). Checks: `cargo test -p rustev-release --locked` passed (all binaries); `make gate` passed.
Spec 060 increment 4b (3.3.3, 3.4.2): the image's registry state against the manifest. Stacked on #494.
image_registry::ImageRegistry: read a manifest/index by tag orsha256:digest; tests use a fake.Ghcrreadsghcr.io's registry API through the systemcurl(no HTTP crate):GH_TOKEN, when set, is exchanged for a pull token via curl's config on standard input (never argv, never printed); only anX.Y.Ztag or asha256:digest reaches a URL; 404 is absent, any other non-200 is an error.verify/rustev-release verify-image <release-dir>: the tag must name the manifest's index digest, the index bytes must be the index of the manifest's platform descriptors, and each platform manifest must be present by digest with its size. A failed lookup fails. A manifest naming no image passes with nothing to check.tag_state/rustev-release image-tag <release-dir> <index-out>: writes the index bytes to push; printsabsentorpresent(the run's index); fails when the tag names another digest (3.3.3). Neither command pushes.Tests:
tools/rustev-release/tests/image_registry.rscover section 5's "tag names another index digest" and "registry's index or platform digest differs from the manifest".Workflow tests (tolerant, pass on the current workflow):
packages: writeis admitted only on a job namedpublish-image, with exactlycontents: read,packages: write,id-token: write,attestations: write; once that job exists it must followapprove,image-checks,manifest,publish-crates,publish-npm,github-releasemust follow it, it must run only onneeds.tag.outputs.image == 'true', and it writes nolatesttag. Checked locally against the workflow change that follows.Limitation: the
Ghcradapter has not met the live registry (no live calls in this change); thepublish-image/verify-releaseworkflow change runs it first.Checks:
cargo test -p rustev-release --lockedpassed; clippy-D warningspassed;spec-spine verify 031passed (4 commands);make gatepassed;check-authored-content.shclean.