Repository navigation
release: image qualification serves one decision of an exact-only synthetic plan (060 3.4.3, amended) - #500
Conversation
AI review (findings)Looking at the diff for spec 060 increment 6a: the image qualification harness, its fixtures, Rust logic, and tests. Findings: 1. Committed compiled Python bytecode cache file
2. In 3. compiled = subprocess.run([str(cli), 'plan', 'compile', ...], capture_output=True, check=True)
self.log.write(compiled.stdout)
plan_id = json.loads(compiled.stdout)['plan_id']If the CLI ever emits a trailing newline or any additional output after the JSON object, {"head": "09960be997e8804bf7779c5ef953eb8a66ccc9b3", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/__pycache__/harness.cpython-314.pyc", "line": null, "summary": "Machine- and interpreter-version-specific compiled Python bytecode committed; should be excluded via .gitignore and not tracked in version control."}, {"path": "tools/rustev-release/qualify/harness.py", "line": 419, "summary": "The curl -w '%{http_code}\\n' status code is written to subprocess stdout and logged but never read back or validated, so non-2xx HTTP responses from the service are only caught incidentally if the JSON body schema mismatches."}]}Subject: 7b8c0b2...09960be, diff digest 57f74280a778609dc16e270baa51205a1f102bfdefdb3cc9dcadabad1027c129, 1 call(s). An AI comment is not an approval. |
09960be to
6077e13
Compare
AI review (no-findings)Reviewing the PR, which implements spec 060 §3.4.3's image qualification step: an exact-only synthetic plan is registered unsigned, one decision is served, and the judgment is compared against a golden file. Rust side ( Harness (
Golden files
Configuration ( Spec text No concrete defects found. {"head": "6077e139f00c17e6051ad8d8220f8583488e99da", "verdict": "no-findings", "findings": []}Subject: 7b8c0b2...6077e13, diff digest d891e9addf123b68adb000daa4ea4efb5e0b61c44246ea6b9481649f311251fd, 1 call(s). An AI comment is not an approval. |
7b8c0b2 to
99f0a71
Compare
6077e13 to
a34e751
Compare
AI review (findings)Review
|
99f0a71 to
2a368e2
Compare
a34e751 to
c2e8e35
Compare
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies.
The
expected = read(HERE / 'image/judgment.json')
expected['plan_id'] = plan_id
...
if decision.get('judgment') != expected:
raise ValueError('the judgment differs from the golden')The golden (
The two-branch exclusion: if not required and kind == 'image' and self.m.get('image'):
status = {'excluded': {'reason': 'the image is qualified on linux/amd64 and linux/arm64 only ...'}}
elif not required:
...is consistent with the Rust
The amendment is recorded with rationale and date. The increment notes are self-consistent with the code. No other defects found. The compile-report structure in {"head": "c2e8e35795a4e24d1bcd8550664b4990e891fe66", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/image/judgment.json", "line": 5, "summary": "The golden judgment contains `\"evaluation_time_ms\": 0`, a measured wall-clock value that is not deterministically zero; under a loaded CI runner the service may return 1, failing the strict equality comparison in harness.py and misreporting the qualification as failed."}]}Subject: 2a368e2...c2e8e35, diff digest 9a400eaf872de248aed795c067d968bdac04d278dfbab6c6e4471e60810e0245, 1 call(s). An AI comment is not an approval. |
c2e8e35 to
ed2f085
Compare
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies. harness.py – qualification.rs –
No other concrete defects were found. {"head": "ed2f08531380fd31300441f811d7df2f45876d92", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/image/judgment.json", "line": 3, "summary": "Golden file fixes evaluation_time_ms at 0, but the harness compares actual judgment with strict equality; the service returns real elapsed time, so any non-zero measurement in CI will cause the image qualification step to fail."}]}Subject: adcaa4c...ed2f085, diff digest 9a400eaf872de248aed795c067d968bdac04d278dfbab6c6e4471e60810e0245, 1 call(s). An AI comment is not an approval. |
|
Review note on ed2f085: the finding on |
ed2f085 to
e3cf225
Compare
AI review (no-findings)Reviewing each changed file for bugs, security problems, and inconsistencies.
The The 60-second readiness poll uses the absolute The The
Spec text The amendment is recorded under "Decisions at approval" as an owner act dated 2026-11-03, consistent with the governance model (ratification and amendment are both owner acts). The amendment note is clear and self-consistent. No concrete defect found. {"head": "e3cf2255188f071c6f1bcc78c0bac1952bf98ef6", "verdict": "no-findings", "findings": []}Subject: c2389cd...e3cf225, diff digest 77b3d06bee48d1540878198ca3c9c10e3969e87ee0ae1bf25412f22668ab5069, 1 call(s). An AI comment is not an approval. |
e3cf225 to
1566f52
Compare
AI review (findings)Reviewing the PR for spec 060 increment 6a: image qualification harness, golden fixtures, and Finding 1 — In self.run('sudo', '-n', 'chown', '65532:65532', sock) # sock now root/65532-owned
...
self.run('docker', 'run', '-d', '--name', name, ...) # outside the try:
try:
...
finally:
...
subprocess.run(['sudo', '-n', 'rm', '-rf', str(sock)], ...)If Finding 2 —
expected = read(HERE / 'image/judgment.json')
expected['plan_id'] = plan_id
if decision.get('judgment') != expected:
raise ValueError('the judgment differs from the golden')
{"head": "1566f5283dc83e8880d28aad7949455ef63ef46e", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/harness.py", "line": null, "summary": "In image_serve, docker run is called before the try: block; if it fails after sudo chown 65532:65532 sock, the finally cleanup (sudo rm -rf sock) is skipped, leaving a root/65532-owned directory the qualifying user cannot remove."}, {"path": "tools/rustev-release/qualify/image/judgment.json", "line": 4, "summary": "evaluation_time_ms: 0 is included in a strict full-document equality check against the actual decision; any CI runner returning ≥ 1 ms for the exact computation will fail release qualification."}]}Subject: b4b19e8...1566f52, diff digest 611c7f9562fa241195ca7a470dd424cb8fa6469def077c1ff565a20361719b54, 1 call(s). An AI comment is not an approval. |
1566f52 to
6bb7af2
Compare
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies. Spec (
|
6bb7af2 to
846a912
Compare
AI review (findings)Reviewing the diff for spec 060, increment 6a: image qualification with an exact-only synthetic plan. Structural / correctness checks
Concrete inconsistency between
"then": {"propose": {"action": "review", "params": []}}
"outcome": {"propose": {"action": "review", "params": {}}}
These are different JSON types. The correct form for an empty parameter map is {"head": "846a91228db5193d86f9993f630b2930d9516416", "verdict": "findings", "findings": [{"path": "tools/rustev-release/qualify/image/definition.json", "line": 1, "summary": "The propose rule uses `\"params\": []` (array) while the judgment golden expects `\"params\": {}` (object); the types differ and the golden comparison passes only because the runtime happens to normalise empty arrays to empty objects."}]}Subject: b4b19e8...846a912, diff digest 7835538c53fb52915cd8b018c7b3572ea32c6305f1e0cecde6ed4f8e6a4504b3, 1 call(s). An AI comment is not an approval. |
|
Review note on 846a912: the |
…ly synthetic plan (060 3.4.3, amended; harness)
846a912 to
0e84a5d
Compare
AI review (findings)Review
|
|
Review note on 0e84a5d: repeat of the false positive noted on ed2f085. |
…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 6a: 3.4.3 amended and implemented in the harness. Stacked on #494 (the manifest's
image).qualification.rs:requiredreads a named image fromm.image;required_onrequires the image step onlinux-x64-gnuandlinux-arm64-gnuonly (IMAGE_PLATFORMS); elsewhere it must be excluded with a reason.qualify/harness.pyimagestep:gh attestation verify oci://...for the index's provenance and the platform's CycloneDX SBOM;check.sh;plan compile);--read-only --network nonewithqualify/image/serve.jsonread-only and its socket in a private dir owned by 65532;judgedplus a judgment equal toqualify/image/judgment.json.qualify/image/{definition,serve,decide,judgment}.json. README updated.a_named_image_is_qualified_on_amd64_and_arm64_linux_only(tests/image.rs).Local evidence: on the Debian 13 image built for linux/arm64 from this tree, the configuration, registration and decision answered
judgedwith a judgment equal to the golden. The socket was on a Docker volume there, because Docker Desktop host mounts cannot hold a Unix socket; Linux runners bind-mount it as the harness does. Pull and attestation verification run first in a release.The
qualify.ymlchange (ghcr login,packages: read) follows as its own workflow PR.Checks:
cargo test -p rustev-release --locked --test image --test family --test qualify_harnesspassed;make gatepassed;check-authored-content.shclean.Review fixes (round 1): the stray
__pycache__bytecode is removed from the commit. Each request now checks curl's HTTP status (200 required), not only the response schema.Full checks at 6077e13:
cargo test -p rustev-release --lockedpassed; clippy-D warningspassed;spec-spine verify 031passed (4 commands).