Skip to content

spec(021): run the archive check in pull-request CI with doubled bounds (A-81) - #516

Merged
bartekus merged 1 commit into
mainfrom
spec/021-archive-check-in-ci
Nov 6, 2026
Merged

bartekus merged 1 commit into
mainfrom
spec/021-archive-check-in-ci

Conversation

@bartekus

@bartekus bartekus commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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's release-checks workflow, 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/main fabfc5f (0.4.1) with cargo package --locked --no-verify over the release set, then rustev-release archives (the check candidate.sh runs): every member passed. The table is in 021's implementation record.

rustev-surface: the concurrent move of rustev-cli's src/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, including tests/archives.rs), make gate (pass), shards refreshed with make refresh.

Owner decision (2026-11-06): keep the 320 KiB per-file bound.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

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 archive-policy.json against the implementation record table:

For every package except rustev-pkg-lodging the table's "old bound" matches the JSON baseline, the new-bound arithmetic (2× measured, rounded up to 16 KiB) is correct, and the JSON change agrees with the table.

rustev-pkg-lodging inconsistency:

The spec.md table (newly added) states:

Member Measured (unpacked) Old bound New bound
rustev-pkg-lodging 70,624 196,608 (192 KiB) 196,608 (unchanged)
rustev-live 183,195 327,680 (320 KiB) 376,832 (368 KiB)

The archive-policy.json diff shows the section keyed "rustev-pkg-lodging" changing:

-      "max_unpacked_bytes": 327680
+      "max_unpacked_bytes": 376832

Two direct contradictions:

  1. The table says the old bound for rustev-pkg-lodging was 196,608; the JSON base value was 327,680.
  2. The table says the new bound for rustev-pkg-lodging is 196,608 (unchanged); the JSON sets it to 376,832.

The numbers 327,680 → 376,832 correspond exactly to the rustev-live row in the table (and the arithmetic checks out for rustev-live: 2 × 183,195 = 366,390, rounded to 23 × 16,384 = 376,832). The diff has no hunk for a rustev-live section.

Amendment-rule violation in the JSON: With rustev-pkg-lodging's actual base value of 327,680 and measured size 70,624, the ratio is 327,680 / 141,248 ≈ 2.3×. The rule says such a bound stays; the JSON raises it to 376,832 instead.

Missing change: rustev-live's old bound 327,680 is below 2 × 183,195 = 366,390, so it must be raised to 376,832 per the rule. No corresponding hunk appears in the diff.

The most parsimonious reading: the values intended for rustev-live were applied to the rustev-pkg-lodging key in the JSON (or the table rows were labeled in reverse), producing both the wrong JSON update and the wrong spec documentation simultaneously.


{"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.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 6, 2026 00:45 — with GitHub Actions Inactive
@bartekus

bartekus commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Review note: the rustev-pkg-lodging finding is a false positive. The reviewer took the hunk header's function context (@@ -429,7 +429,7 @@ ... "rustev-pkg-lodging"-style context line) for the key being changed. Parsing both versions of tools/rustev-release/archive-policy.json and diffing per member shows the 327,680 to 376,832 change is on rustev-live (max_unpacked_bytes), exactly as the table in 021's record states; rustev-pkg-lodging is unchanged. The file list in that hunk (src/fault_injection.rs, src/gate.rs, src/journal.rs, src/probe.rs, ...) is rustev-live's. Every other change agrees with the table, as the review itself says.

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.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 6, 2026 01:01 — with GitHub Actions Inactive
@bartekus
bartekus enabled auto-merge November 6, 2026 01:03
@bartekus
bartekus added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 4aaea4b Nov 6, 2026
48 of 49 checks passed
@bartekus
bartekus deleted the spec/021-archive-check-in-ci branch November 6, 2026 01:48

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 25f946f1 Deployed Nov 6, 2026 by bartekus via review-exception #3471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant