Repository navigation
spec(021): run the archive check in pull-request CI with doubled bounds (A-81) - #516
Conversation
AI review (findings)Reviewing the three changed files for consistency, arithmetic correctness, and adherence to the amendment rule. Amendment rule (spec.md, new §3.5 text): "A bound already above twice its measured size stays as it is, never lowered by this rule." Checking For every package except
The spec.md table (newly added) states:
The archive-policy.json diff shows the section keyed - "max_unpacked_bytes": 327680
+ "max_unpacked_bytes": 376832Two direct contradictions:
The numbers 327,680 → 376,832 correspond exactly to the Amendment-rule violation in the JSON: With Missing change: The most parsimonious reading: the values intended for {"head": "25f946f1328e63fbd1fb2b399ab326d9b26a8fe7", "verdict": "findings", "findings": [{"path": "tools/rustev-release/archive-policy.json", "line": 429, "severity": "medium", "category": "correctness", "summary": "rustev-pkg-lodging.max_unpacked_bytes is raised from 327,680 to 376,832, violating the amendment rule that a bound already above twice its measured size (70,624 × 2 = 141,248 ≪ 327,680) must stay unchanged; the 327,680 → 376,832 change belongs to rustev-live (measured 183,195, old bound below 2×), which has no corresponding hunk in this diff."}, {"path": "specs/021-packaging-and-first-release/spec.md", "line": 1009, "severity": "medium", "category": "correctness", "summary": "The implementation record table documents rustev-pkg-lodging's old unpacked bound as 196,608 and new as 196,608 (unchanged), directly contradicting the archive-policy.json diff which shows the baseline value was 327,680 and it is being raised to 376,832; the rustev-live row (327,680 → 376,832) in the same table has no matching JSON change."}]}Subject: fabfc5f...25f946f, diff digest 8b150961ec1879804cef2cf62f54bd67f5fb9b4da92bcda3b2aee79934a9f6ac, 1 call(s). An AI comment is not an approval. |
|
Review note: the Per-member changes (old to new): rustev-contract archive 229376->376832, unpacked 917504->1638400; rustev-core 393216->589824, 1376256->2637824; rustev-runtime 163840->262144, 589824->1097728; rustev-eval 196608->393216, 851968->1589248; rustev-remote-http 163840->196608, 393216->737280; rustev-surface unpacked 262144->278528; rustev-cli unpacked 262144->442368; rustev-pkg-support-routing unpacked 131072->163840; rustev-live unpacked 327680->376832; rustev-otel 65536->131072, 262144->458752. |
Amends spec 021 3.5 on the owner's decision of 2026-11-03 (recorded as A-81): the archive check (file lists, archive, unpacked and per-file byte bounds, prohibited-content scan of
tools/rustev-release/archive-policy.json) also runs in pull-request CI, in spec 031'srelease-checksworkflow, so the change that crosses a bound raises it with its reason instead of the release run finding it. "Exceeding a reviewed bound is a failure, not an automatic bound increase" stays.Bounds become headroom: each member's archive and unpacked bound is the larger of its reviewed bound and twice its measured size, rounded up to a multiple of 16 KiB; no bound is lowered. The per-file bound goes from 192 KiB to 320 KiB (twice
rustev-core's largest file, 156,535 bytes). File lists and the scan are unchanged.Measured at
origin/mainfabfc5f(0.4.1) withcargo package --locked --no-verifyover the release set, thenrustev-release archives(the checkcandidate.shruns): every member passed. The table is in 021's implementation record.rustev-surface: the concurrent move ofrustev-cli'ssrc/repeat.rs(39,321 bytes) fits; 131,461 + 39,321 is about 171,000 bytes against the new 278,528 (2x already exceeds current + 60 KiB, so 2x is used).The workflow change is the stacked follow-up PR (
ci/021-archive-check-in-ci).Checks:
lane1 cargo test -p rustev-release --locked(all pass, includingtests/archives.rs),make gate(pass), shards refreshed withmake refresh.Owner decision (2026-11-06): keep the 320 KiB per-file bound.