Repository navigation
spec(045, 046): ratify 045, the command surface in the release family; draft 046, the WebAssembly size budget - #127
Conversation
AI review (findings)The spec is a self-consistent amendment to 031, well-scoped and internally coherent. One substantive issue worth flagging: Section 3.1.3 (line ~87) narrows 031 3.1's stated principle without declaring it as a formal amendment to that principle. 031 3.1 says "Adding a member never requires editing a check to make it pass." This spec redescribes that as applying only to "policy checks (manifests, archives, audit, reproducibility), which stay generic" -- while simultaneously requiring that adding a member edits the release-set test's member list in the same change. Under this spec, adding a member does require editing a check (the member list) to make it pass. The spec's Territory section (section 2) says it amends "031 3.1 (release family members and layer order)," but the redefinition of that core principle isn't listed in the obligations or called out as a named amendment. A future reader of 031 3.1 would have conflicting guidance. It should be stated explicitly: "031 3.1's principle 'Adding a member never requires editing a check' is amended to apply to policy checks only; the member list is a deliberate record and must be updated." No bugs, no security issues, no layer-assignment contradictions within what this spec introduces. {"head": "0f8fa4d5c08389178e8aaadc567603f85ed478d6", "verdict": "findings", "findings": [{"path": "specs/045-command-surface-release-layer/spec.md", "line": 87, "summary": "Section 3.1.3 narrows 031 3.1's 'Adding a member never requires editing a check to make it pass' principle to policy checks only, while requiring member-list edits for every membership change, but does not declare this narrowing as a formal amendment to that principle, leaving readers of 031 3.1 with conflicting guidance."}]}Subject: d2a8b42...0f8fa4d, diff digest e2e528386f4ff8d938d6c7a331232c1815d0d65df162b7c6d97a51c4f44c5a6d, 1 call(s). An AI comment is not an approval. |
0f8fa4d to
5654dec
Compare
AI review (findings)The spec is a draft amendment to 031, adding Layer 4 placement is asserted but not grounded. The entire purpose of this spec is that inserting Minor: {"head": "5654deccc0d6b60e6d88c1d375a5d374ed9063f2", "verdict": "findings", "findings": [{"path": "specs/045-command-surface-release-layer/spec.md", "line": 108, "summary": "Section 3.2 asserts rustev-surface belongs at layer 4 (forcing CLI to layer 5) but never identifies which layer-3 crate(s) it will depend on; if surface needs only layer 1/2 dependencies it lands at layer 3 and the CLI stays at layer 4, making the entire amendment unnecessary."}]}Subject: 4af0b63...5654dec, diff digest e8bd49dd06214395adae51ebab5dc80e063fa37f4e14148baf7f6d438f2ce862, 1 call(s). An AI comment is not an approval. |
5654dec to
b4b02f3
Compare
AI review (no-findings)The spec is a narrow, well-scoped amendment. I checked it for internal consistency, layer arithmetic, and cross-reference integrity. Layer arithmetic: Admission rule change (3.1.2): The new rule (admit a dependency crate as soon as it exists and passes checks, regardless of its owning spec's implementation status) is a deliberate, clearly stated amendment to 031 3.1's existing rule. The rationale (a dependent can't release without it) is sound and no contradictory constraint is introduced. Obligation wording vs. body: Obligation I-2 matches section 3.2(1) exactly. Obligation I-1 matches the invariant in section 3.1(1).
Cross-references: The claim that spec 027 section 2 lists No bugs, security problems, or inconsistencies found. {"head": "b4b02f3a650694134d158e9beaec51dd576aef70", "verdict": "no-findings", "findings": []}Subject: 4af0b63...b4b02f3, diff digest 55a93a57e59c614a5af8461d67f55a48fd8df806a198cc5b5b52392d35fb6ca1, 1 call(s). An AI comment is not an approval. |
b4b02f3 to
90e7389
Compare
AI review (no-findings)Reviewing both spec files for internal consistency, mathematical correctness, cross-reference integrity, and logical soundness. spec 045 — layer arithmetic
spec 046 — budget arithmetic
No bugs, security issues, or inconsistencies found in either file. {"head": "90e73898db6dd88e416597f743efaf3d02a5b0a0", "verdict": "no-findings", "findings": []}Subject: 355db90...90e7389, diff digest 656ed4786a1ac3b602a927306638afb392e815fb94cd95e0a612bee4c5ffc481, 1 call(s). An AI comment is not an approval. |
90e7389 to
dc1b197
Compare
AI review (no-findings)Both specs are draft proposals amending earlier approved specs. I reviewed them for internal consistency, numerical correctness, and logical coherence. Spec 045:
Spec 046:
Nothing actionable found in either spec. {"head": "dc1b19775eaa6d944f632f85ee12ef40f2a56c05", "verdict": "no-findings", "findings": []}Subject: d29059a...dc1b197, diff digest 656ed4786a1ac3b602a927306638afb392e815fb94cd95e0a612bee4c5ffc481, 1 call(s). An AI comment is not an approval. |
dc1b197 to
f4391b5
Compare
AI review (no-findings)Both specs are draft amendments -- no code changes. I checked math, internal cross-references, and consistency with the repo context. spec 045 -- layer arithmetic is internally consistent: spec 046 -- all numbers check out: 2,215,589 − 2,097,152 = 118,437 bytes over (5.648% ≈ 5.6%); 786,432 − 762,689 = 23,743 bytes headroom on gzip (3%). New budget 2.5 × 1,048,576 = 2,621,440. Obligation R-1 matches section 3. Nothing rises to a reportable finding. {"head": "f4391b523cf3703e02b521851886c31890916db8", "verdict": "no-findings", "findings": []}Subject: da2ccd6...f4391b5, diff digest 656ed4786a1ac3b602a927306638afb392e815fb94cd95e0a612bee4c5ffc481, 1 call(s). An AI comment is not an approval. |
f4391b5 to
7598c0b
Compare
AI review (no-findings)Both files are spec-only, draft amendments. I'll check internal consistency, cross-references, and arithmetic. Spec 045
Spec 046
No bugs, security issues, or logical inconsistencies found. {"head": "7598c0b8d0dc36d510c5132e554a3ae79aae554e", "verdict": "no-findings", "findings": []}Subject: 124d1c9...7598c0b, diff digest 656ed4786a1ac3b602a927306638afb392e815fb94cd95e0a612bee4c5ffc481, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the three changed files: docs/decisions/00-founding-decisions.md specs/045-command-surface-release-layer/spec.md
specs/046-wasm-size-budget/spec.md
No bugs, security issues, or inconsistencies found. {"head": "1d91e0286cdf78ae93f1d84a5dad3793a0fc0ed6", "verdict": "no-findings", "findings": []}Subject: 124d1c9...1d91e02, diff digest 2eeadd9e2528441e1d50d00f8fc40e6316ef7db2d0e0d8082c3fd317a17b84c2, 1 call(s). An AI comment is not an approval. |
1d91e02 to
33783e7
Compare
AI review (no-findings)Reviewing all three changed files. docs/decisions/00-founding-decisions.md (A-42): The entry correctly records ratification of spec 045 and explicitly excludes spec 046 ("Draft spec 046...is not ratified"). Consistent with both specs' specs/045-command-surface-release-layer/spec.md: Internally consistent. Layer arithmetic checks out: specs/046-wasm-size-budget/spec.md: All arithmetic verified:
No bugs, security issues, or inconsistencies found. {"head": "33783e7e550075f18c8bb2d15a643cfd5666a1ca", "verdict": "no-findings", "findings": []}Subject: 10210e9...33783e7, diff digest 2eeadd9e2528441e1d50d00f8fc40e6316ef7db2d0e0d8082c3fd317a17b84c2, 1 call(s). An AI comment is not an approval. |
Spec 027, increment 3 of 7: `rustev-surface`, the shared command surface, adopted by the CLI. Stacked on #126. **Merges only after the owner ratifies draft spec 045 (#127)**, which admits `rustev-surface` to the release family in its own layer before the CLI. - `crates/rustev-surface`: `plan check|compile|show`, offline `replay`, `eval`, `gate`, `calibrate fit|qualify`, shared dependency reading, the task adapter, command output and exit codes, and the `run` result envelope. The CLI's code, moved: typed arguments plus a `Host` (bounded/budgeted reads by label, never-overwrite publication, all-or-none writes, label joining) and a rules-descriptor hook. Depends on contract, core, eval, serde, serde_json only. - The CLI keeps argument parsing, its file-system host (`Reads` implements `Host`), the store resolver, the rules backend and the runtime; each command checks flags and calls the surface; `run` prints through the surface envelope. - Every CLI test passes with goldens unchanged (none re-blessed). `tests/memory_host.rs` drives the surface from an in-memory host and gets the CLI's golden bytes for `plan check` and `plan show`. - Release tooling: `rustev-surface` in `release-set.json` (layer 4, CLI layer 5, upload order), the release-set test's member list, and `archive-policy.json` (new surface allowlist; `adapter.rs`/`out.rs` leave the CLI's). `rustev-release` manifests and archives tests pass; `make boundaries` passes. Review round 1 (3 findings): (1) the merge precondition is deliberate: spec 045 is drafted in #127 for the owner's ratification and this increment waits on it, as its record says; (2) fixed: the test host's `write_all` removes what it wrote when a later write fails; (3) the test host reads at most `max` bytes, exactly as the CLI's file host does (a caller detecting an oversized input asks for its limit plus one and compares lengths); it has no aggregate budget, so it reports none; the code says so. Review round 2 (1 finding): as in round 1, the precondition is deliberate and tracked: spec 045 is drafted in #127 for ratification; this pull request is not merged before it. Review round 3 (3 findings): (1) the spec 045 precondition stands as stated (#127, awaiting ratification); (2) `Host::ensure_absent` is documented as a pure, repeatable check, which every command relies on; (3) fixed: `addressing` is private to the envelope; `judged` is the public entry. Review round 4 (2 findings): (1) the spec 045 precondition stands (#127, awaiting ratification); (2) Cargo adds `Cargo.toml.orig`, `Cargo.lock`, `.cargo_vcs_info.json` and the workspace readme beyond `include` (as for every release member), and `rustev-release`'s archives test compares `cargo package --list` with the policy; the manifest comment says so. Review round 5 (2 findings): (1) the spec 045 precondition stands (#127, awaiting ratification); (2) the test host reads at most `max` bytes exactly as the CLI's file host does; a caller detecting an oversized input asks for its limit plus one byte and compares lengths, which the surface's callers do. (Increment 5 replaces this test host with the shared `host::Memory`.) Review round 6 (1 finding): spec 045 is added by #127, not this branch, by design: this PR is held (no auto-merge) until #127 merges and the owner ratifies 045. The spec record now names that dependency and the hold explicitly. Restacked on #126. Review round 7 (1 finding, fixed): `eval::write_all` takes its files by value and moves the bytes into the host's list; nothing is copied. Review round 8 (1 finding): `cargo package` writes `Cargo.lock` into every archive, library or not (`cargo package -l -p rustev-surface` lists it), and every member's allowlist names it; the archive test compares against real `cargo package` output and passes. The spec record now says so, and records spec 045's ratification (A-42). Review round 9 (3 findings): (1, 2) Spec 045 is ratified (A-42) and lands with #127, which waits only on the owner's environment approval; this branch is rebased onto main after #127 merges, before it can merge, so 045 is in the tree it merges into. (3) fixed: the crate's keywords and category describe a library (`decision-engine`, `commands`, `bindings`; `development-tools`). CI `verify` (spec 006's mutation seeds) failed on this branch: the seeds still named `crates/rustev-cli/src/` files whose command logic this PR moves into `rustev-surface`. Fixed: the 13 seeds in moved code now name the surface file their anchor lives in (one anchor changed with the move: `host.ensure_absent`), and run the CLI's tests and the surface's own, since the adapter's unit tests moved with it. Locally all 29 seeds were run: 27 detected by the CLI's tests alone, and the two adapter seeds detected once the surface's tests run too (4/4 in the adapter category). The spec record says so.
Draft spec 045, for the owner's ratification: the command surface in the release family (amends 031).
Spec 027 requires the CLI to call the new
rustev-surfacecrate instead of its own copy of the rendering (027 section 2). The CLI is a crates.io release member, sorustev-surfacemust be published in the same release, in a crate layer before the CLI; 031 3.1's layer table has no slot betweenrustev-eval(layer 3) and the CLI.This amendment:
rustev-surfaceto the release family as a crate member;cargo metadata(contract 1, core 2, runtime/eval/rules/remote-http/support-routing 3, surface 4, CLI 5; facade last; npm, image and hosted release after, in order);Spec only; no code. Spec 027 increment 3 (the surface crate and the CLI adopting it) applies the release-set change and waits on this spec's approval.
Review round 1 (1 finding, fixed): 3.1.3 now states the amendment of 031 3.1's sentence explicitly, with its replacement text.
Review round 2 (1 finding, fixed): 3.2.2 names the dependency that places
rustev-surfacein layer 4:rustev-eval(layer 3), which offline replay, evaluation, gates and calibration need (027 section 2).Draft spec 046 is added to this pull request so both ratifications come in one review: it raises spec 027 3.10.4's uncompressed WebAssembly budget from 2,097,152 to 2,621,440 bytes. The first measurement (#130) is 2,215,589 bytes uncompressed (5.6% over), 762,689 bytes gzip (under its 786,432 budget, which stays), and a 3.5 ms Node instantiation median (budget 50 ms). Most of the module is the contract's document types added by specs 032 and 033 after the budget was declared; shrinking it would mean restructuring spec 002's serialization, which is not proposed.
Ratification: the owner ratified spec 045 on 2026-10-20 (decision A-42): status
approved, the draft notes replaced by the approval. Spec 046 stays a draft.