Repository navigation
release: the image scan gates through expiry-bounded image exceptions (060 3.2) - #491
Conversation
AI review (findings)Reviewing the diff for the image scan gate (spec 060 increment 3).
The spec states the check "fails on an entry with... an empty field" as a distinct condition. The validation at lines ~184–191 covers if [&e.id, &e.package, &e.reason]
.iter()
.any(|s| s.trim().is_empty())The The No other concrete defects found. The civil-date round-trip validation in {"head": "e1072875c99c612fe24a4da10f380512313d1253", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/image_scan.rs", "line": 184, "summary": "The empty-field guard checks only id, package, and reason; an empty decision field is not caught as 'empty field' but falls through to the 'no owner decision row' error, inconsistent with the spec's separate taxonomy of failure causes."}]}Subject: e3f6b9a...e107287, diff digest 5e015acc469496a7811367cf3fc9139dba9022c7e64419511bfc6f2724395231, 1 call(s). An AI comment is not an approval. |
e107287 to
a219790
Compare
AI review (no-findings)Reviewing the diff across the five changed source files and the spec increment.
The validation checks month ∈ [1, 12] and day ≥ 1, but not day ≤ 31. Values like day=99 rely on the round-trip through
An expired entry is not added to
The heuristic works for the actual file format as long as the date is the rightmost populated column. The integration test
Both are
Spec text vs. code alignment The spec says No concrete defects found. {"head": "a219790a26541a50c99a7d880281a2c142b3223f", "verdict": "no-findings", "findings": []}Subject: e3f6b9a...a219790, diff digest ede2f743629d12daf83f6d2d8c1b002f10838b2a556eb630c8c3d08443bb75a0, 1 call(s). An AI comment is not an approval. |
a219790 to
eb88a21
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies.
No concrete defects found. {"head": "eb88a215fabcbdfa26f16444204238fc5d6f0064", "verdict": "no-findings", "findings": []}Subject: 983b4ac...eb88a21, diff digest ede2f743629d12daf83f6d2d8c1b002f10838b2a556eb630c8c3d08443bb75a0, 1 call(s). An AI comment is not an approval. |
eb88a21 to
42d9427
Compare
AI review (no-findings)Reviewing the diff for
Schema enforcement No concrete defect found. {"head": "42d9427f5012571832fa797add99db5f634773b8", "verdict": "no-findings", "findings": []}Subject: adcaa4c...42d9427, diff digest c2b466507ec6eb273212a4048d173b06b2c75e037e88c404c562b63fea99d0e0, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The round-trip guard
A duplicate entry adds an error but the first occurrence remains in
The trailing
Intentionally unquoted for word splitting; the
No concrete defects found. {"head": "42d9427f5012571832fa797add99db5f634773b8", "verdict": "no-findings", "findings": []}Subject: adcaa4c...42d9427, diff digest c2b466507ec6eb273212a4048d173b06b2c75e037e88c404c562b63fea99d0e0, 1 call(s). An AI comment is not an approval. |
…image exceptions (060 3.2)
42d9427 to
dc3e189
Compare
AI review (no-findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The civil-date formula is a standard proleptic Gregorian calculation. The round-trip check (
The initial empty-field guard covers
An expired entry pushes "expired" and then
The function takes the last non-empty pipe-delimited cell, validated by
The command enforces that the caller's date argument matches the actual UTC clock, preventing use of a future date to avoid an expired exception. This is a correct security control per the spec.
No concrete defects found. {"head": "dc3e1891532133036ffd12460f5eb5ef3cce764d", "verdict": "no-findings", "findings": []}Subject: c95ee4e...dc3e189, diff digest d18c0d85ad24b956924fc4d392fc1dab5624ecc4fdff9b970102c126ebfbb6ef, 1 call(s). An AI comment is not an approval. |
Spec 060 increment 3 (3.2, the scan gate).
tools/rustev-release/image-exceptions.json(rustev.image-exceptions/1), committed empty. An entry:idandpackageas grype reports them, the owner'sdecisionrow,expires(last day, UTC) andreason. The row's date comes fromdocs/decisions/00-founding-decisions.md(embedded at build time);expiresmay be at most 90 days after it.rustev-release image-scan <today> <platform>=<grype.json>...(image_scan::check) fails on an uncovered finding, an expired entry, an unused entry, and on an entry with no decision row, more than 90 days, a malformed date, an empty field or a duplicate.<today>must be today's UTC date (as forexceptions). It prints each report's scanner database build date (060 3.2.3).artifacts.sh scan-imageruns it in place of its own count. With the image absent from the release set (as now), a failing verdict is recorded and does not gate, as before; once the image is a member it failsimage-checks.Stacked on
release/bump-0.4.0(#480). Independent of #487/#489 except that both append to 060's implementation record (keep both paragraphs on rebase).Checks:
cargo test -p rustev-release --lockedpassed; clippy-D warningspassed;spec-spine verify 031passed (4 commands);make gatepassed;shellcheck artifacts.shclean;check-authored-content.shclean.Review round 1: an empty
decisionis now reported with the other empty fields ("lacks ... decision row ..."), tested.