Repository navigation
impl(031): increment 2, adoption subsets, MSRV and API compatibility checks - #143
Conversation
AI review (findings)Reviewing the three new shell scripts and the Makefile and spec additions.
The increment-2 paragraph ends with: "The CI jobs that run these are registered with spec 027's
A
printf '%s\n' "$result" | grep -q 'test result: ok. 1 passed'The {"head": "2508c35aab17b95546d0a5987b179d4d7e899ce6", "verdict": "findings", "findings": [{"path": "specs/031-public-api-and-release-family/spec.md", "line": 695, "summary": "Increment 2 states CI jobs 'are registered' with spec 027's bindings job, but no workflow file is changed in this PR, making the claim inaccurate."}, {"path": "tools/rustev-release/semver.sh", "line": 41, "summary": "mktemp body file created inside the loop is not covered by a trap; a node or network failure after the HTTP 200 branch leaks the temp file."}, {"path": "tools/rustev-release/adoption.sh", "line": 92, "summary": "grep pattern 'test result: ok. 1 passed' uses an unescaped regex dot instead of a literal period; should use grep -qF or escape the dot."}]}Subject: 26382b2...2508c35, diff digest f753114082542abf7099646b4b4d648b6e08c44315a4675503615f3597dcff14, 1 call(s). An AI comment is not an approval. |
2508c35 to
0d6bda0
Compare
AI review (findings)Looking at the three new shell scripts and the Makefile additions.
The baseline-finding Node.js snippet is invoked as: baseline=$(node -e '
const [file, current] = process.argv.slice(1);
...
' "$body" "$version")When Node.js is run with
Every generated test file (for every subset) unconditionally emits: printf ' let _ = rustev::decision_core::compile;\n'The {"head": "0d6bda0179b19607f88a91398565057e877a0498", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 56, "summary": "process.argv.slice(1) is off-by-one when node is invoked with -e: argv[1] is empty/[eval], so `file` gets the wrong value and readFileSync throws, breaking baseline lookup for every package."}, {"path": "tools/rustev-release/adoption.sh", "line": 62, "summary": "The generated test unconditionally references rustev::decision_core::compile even for the `documents` subset which declares features=[], causing a compile failure if that symbol is feature-gated in the facade."}]}Subject: 26382b2...0d6bda0, diff digest 94d3281db8757fa1553a18278482bc391da6389c2a4a4b6f8b5df157e847ce16, 1 call(s). An AI comment is not an approval. |
0d6bda0 to
b959ac9
Compare
AI review (findings)Looking at the three new shell scripts and the Makefile changes.
The inline const [file, current] = process.argv.slice(1);In Node.js 12+ (and documented since Node.js 4), when the interpreter is started with The comment on the line tries to explain the intent ( Everything else looks correct: the crates.io sparse-index path layout ( {"head": "b959ac9035834e02844a1538b5e989db26db7b02", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 53, "summary": "process.argv.slice(1) gives ['', body_file, version] under node -e in Node.js 12+, so `file` is assigned the empty string and readFileSync throws ENOENT whenever a crate has a prior release; must be process.argv.slice(2)."}]}Subject: 26382b2...b959ac9, diff digest cdbfbc52fdb5d4a3b8b3a2964c5e81641964b52a057090435412bc3ca46dcf2c, 1 call(s). An AI comment is not an approval. |
b959ac9 to
5c58688
Compare
AI review (findings)Reviewing the three new shell scripts and the Makefile change for bugs, security problems, and inconsistencies. adoption.sh The script copies the workspace The generated test unconditionally emits semver.sh Both Makefile The No credential exposure, no injection paths, and the crates.io {"head": "5c58688d4fddf7c8e569d6114827dbced191278e", "verdict": "findings", "findings": [{"path": "tools/rustev-release/adoption.sh", "line": 86, "summary": "cargo test and cargo tree lack --locked, so Cargo may silently regenerate the copied lockfile and resolve different dependency versions than the workspace uses, defeating the stated 'reviewed versions' guarantee."}, {"path": "tools/rustev-release/semver.sh", "line": 46, "summary": "curl calls to both crates.io and npm carry no timeout flag (-m/--max-time), so an unresponsive registry will hang the CI job indefinitely."}, {"path": "tools/rustev-release/adoption.sh", "line": 55, "summary": "The generated test unconditionally emits 'use rustev::contract::Document;' but Document is never referenced in the test body, producing an unused-import warning in every consumer build."}]}Subject: 26382b2...5c58688, diff digest c89f95edb894d6ed81a97c3e09ad8fe9d4466c2af81b8b0a9b76c80148e4085a, 1 call(s). An AI comment is not an approval. |
f6a22ef to
37f0d57
Compare
AI review (findings)Reviewing the three new shell scripts and Makefile additions.
The Node.js version comparator at the core of baseline selection: const cmp = (a, b) => { const x = a.split(".").map(Number), y = b.split(".").map(Number);
for (let i = 0; i < 3; i++) if (x[i] !== y[i]) return x[i] - y[i]; return 0; };
The lockfile-drift awk script (line ~80–97) processes The The
The {"head": "37f0d57fd2daf8e559ea5e83f5a3449e0d32aae6", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 54, "summary": "The Node.js cmp() comparator returns NaN when CURRENT ($version) contains a pre-release suffix, making cmp(e.vers, current) < 0 always false and causing every crate to report no-baseline even when a real earlier release exists on crates.io."}]}Subject: 26382b2...37f0d57, diff digest b89ef437fd4a8177896ee80f440b492dfe426430fe6cf327115b5a038db131f6, 1 call(s). An AI comment is not an approval. |
37f0d57 to
8840641
Compare
AI review (findings)Reviewing the three new shell scripts and the Makefile additions for logic bugs, robustness, and security issues.
The shell pattern: case $version in
*[!0-9.]* | .* | *. | *..*)rejects non-digit/dot chars, leading/trailing dots, and consecutive dots, but it does not reject a four-segment version like const cmp = (a, b) => { const x = a.split(".").map(Number), y = b.split(".").map(Number);
for (let i = 0; i < 3; i++) if (x[i] !== y[i]) return x[i] - y[i]; return 0; };A
printf '[package]\nname = "rustev-adoption-%s"\nversion = "0.0.0"\nedition = "2024"\npublish = false\n\n' "$name"
printf '%s\n' "$result" | grep -qF 'test result: ok. 1 passed' || {This checks the exact human-readable summary line emitted by Rust's built-in test harness. Rust's test output format is not a stable API; future compiler/harness versions could reword this line (e.g. changing punctuation, adding fields) and cause the subset check to report a false failure even when the test passed. The correct gate is the exit code of
have=$(cargo semver-checks --version 2>/dev/null || true)
if [ "$have" != "cargo-semver-checks $PIN" ]; thenThis check runs on every iteration of the package loop where a baseline exists, and it's suppressed ( {"head": "8840641ef1b59b40b2e2de3f24d1cc3a1b94e654", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 27, "summary": "Version format validation does not reject four-segment versions like 1.2.3.4; the JS comparison only checks three segments so 1.2.3 would compare equal to 1.2.3.4 and no baseline would be found even if one exists."}, {"path": "tools/rustev-release/adoption.sh", "line": 55, "summary": "edition = \"2024\" is hardcoded in generated consumer Cargo.toml; if the workspace toolchain ever falls below Rust 1.85 all subset checks fail with an opaque compiler error rather than a clear diagnostic."}, {"path": "tools/rustev-release/adoption.sh", "line": 83, "summary": "Subset pass is gated on the human-readable string 'test result: ok. 1 passed' which is not a stable Rust test harness API and will produce a false failure if the output format changes in a future toolchain."}, {"path": "tools/rustev-release/semver.sh", "line": 87, "summary": "cargo-semver-checks version probe runs inside the package loop with the missing-tool path silenced via '|| true'; if no package has a baseline, an absent or wrong-version tool goes undetected."}]}Subject: 26382b2...8840641, diff digest 7e0e64ea9b9d840f852587590a826bb4e812948983d331339a0cf0a879e4d6d9, 1 call(s). An AI comment is not an approval. |
8840641 to
3451a98
Compare
26382b2 to
a8112c9
Compare
AI review (findings)Reviewing the three new scripts and the Makefile additions. adoption.shThe pipe-into- The awk drift-check reads TOML fields as raw The The msrv.shNo issues found. Leading-space in semver.sh — real bugbaseline=$(INDEX_FILE="$body" CURRENT="$version" node -e '...')
if [ -z "$baseline" ]; then
echo "$name: no-baseline: ..."
continue
fiIf The fix is a guard after the substitution, e.g.: baseline=$(INDEX_FILE="$body" CURRENT="$version" node -e '...') || {
echo "$name: node failed while computing baseline" >&2; exit 1
}MakefileThe inline {"head": "3451a987c157e257ec24d73a23a5d7510ea880ca", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 82, "summary": "If `node` exits non-zero during baseline lookup, the command-substitution assignment silently sets `baseline` to empty (POSIX/bash `set -e` does not fire on substitution failures inside assignments), causing a corrupt sparse-index response or a Node exception to be misreported as a valid `no-baseline` result instead of aborting the check."}]}Subject: 26382b2...3451a98, diff digest fbb9e8407fa438bc1ef481f9851732537f7b254b1cd3c226124359f5d97ed5d4, 1 call(s). An AI comment is not an approval. |
3451a98 to
4bb19af
Compare
a8112c9 to
fd00730
Compare
4bb19af to
3305bd4
Compare
3305bd4 to
6fe78e7
Compare
AI review (findings)Reviewing the three new shell scripts and Makefile changes.
The
The report path is computed inline via
The awk reads {"head": "6fe78e7140b64eb4c91e2377b76440c4bcacb5db", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 83, "summary": "When `node` is not installed the error handler prints 'could not read its index response' rather than the real cause (missing tool), obscuring diagnostics; `node` is never checked upfront the way `cargo semver-checks` is."}, {"path": "Makefile", "line": 80, "summary": "If `node` is absent the inline command substitution that computes the report path returns empty, making the argument to semver.sh the bare path `/semver.txt` and producing a misleading permission-denied failure."}, {"path": "tools/rustev-release/adoption.sh", "line": 46, "summary": "A subset name passed by the caller that matches neither the active subsets nor the skipped list is silently ignored and the script exits 0, hiding typos or stale names in CI invocations."}]}Subject: 541f3ca...6fe78e7, diff digest 772dc07d69731e75c8dd80cb208acd1f99f168a08ca1e12d9ceaab2d236ddf3c, 1 call(s). An AI comment is not an approval. |
51447a9 to
f86875c
Compare
AI review (findings)Reviewing the three new shell scripts and the Makefile/spec additions. adoption.sh The The
The msrv.sh The semver.sh
The Node.js inline script correctly uses newline-delimited JSON from the sparse index, and The one real finding: {"head": "f86875ce30bc2e9e398b8ae948e81a96424d5af4", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 17, "summary": "Node.js is a hard runtime dependency (needed to parse the JSON sparse-index response) but is undocumented in the spec, the Makefile comment, and the script's own header; the requirement is only discovered at runtime when the tool check fires."}]}Subject: 541f3ca...f86875c, diff digest 9443606928c0bb2fa72f1e92cb4b3d5e7ea522ba6f064d6b4e96a3e28436b667, 1 call(s). An AI comment is not an approval. |
f98ebd1 to
8ba58f9
Compare
AI review (findings)I reviewed the Makefile, spec increment text, and all three new scripts. Here are my findings.
The spec text added in this PR states: "
Both the inline comment (line 14) and the spec text say "Node 20 or later." The upfront check (line 19) only tests that
The {"head": "8ba58f960c6a5911ba2c445b15a19c18bfe059fa", "verdict": "findings", "findings": [{"path": "tools/rustev-release/semver.sh", "line": 18, "summary": "cargo-semver-checks is not included in the upfront tool-existence loop, so a missing pinned checker is only discovered after cargo build and cargo run complete, violating the spec's 'each refused by name when missing' requirement."}, {"path": "tools/rustev-release/semver.sh", "line": 19, "summary": "Only the presence of 'node' is checked, not that its version meets the Node 20 minimum required by both the spec text and the inline comment."}, {"path": "tools/rustev-release/adoption.sh", "line": 33, "summary": "The remote-http subset enables the runtime feature (which carries tokio) but places tokio in neither chosen nor omitted, leaving the graph check incomplete relative to the runtime-only subset which does verify tokio's presence."}]}Subject: 1204bc8...8ba58f9, diff digest e6fd8240ae2f9dcfb90e01056b63492d5da8a27e876d11a163dd5c9fa4e79047, 1 call(s). An AI comment is not an approval. |
8ba58f9 to
2434e49
Compare
AI review (findings)I'll review the three shell scripts and the spec update for bugs, security issues, and inconsistencies. Reviewing Subset table (lines 23–31) defines The Consequence: the boundary check for the The same gap exists for
{"head": "2434e4984d21bc5c064588ef082b73ace338de82", "verdict": "findings", "findings": [{"path": "tools/rustev-release/adoption.sh", "line": 26, "summary": "The `embedded` subset enables the `runtime` feature but omits `tokio` from its `chosen` crates list, so the graph-boundary check never verifies `tokio` is present, inconsistent with the `runtime` subset (line 29) which lists `tokio` as a required chosen crate for the same feature."}]}Subject: 1204bc8...2434e49, diff digest 4f6ed5f07f925e41eed029b9fd33e0717f80f0d5a3502ed596890841b6ed4192, 1 call(s). An AI comment is not an approval. |
2434e49 to
da2933e
Compare
AI review (no-findings)I reviewed the Makefile additions, spec increment 2 text, and the three new shell scripts. Makefile — The three new targets ( specs/031-public-api-and-release-family/spec.md — The increment 2 paragraph accurately describes what the scripts implement: subset checks, MSRV check, semver check with no-baseline semantics, npm no-baseline handling, and the deferral of CI workflow registration. Spec text and implementation are consistent. tools/rustev-release/adoption.sh — Examined in detail:
tools/rustev-release/msrv.sh — Short and clean. Guards against an empty package list before expanding tools/rustev-release/semver.sh — Examined in detail:
No concrete defects found. {"head": "da2933e59e125c55d654396f4d12577b802e81f6", "verdict": "no-findings", "findings": []}Subject: 1204bc8...da2933e, diff digest 2bada3d0c01d3f1c189bb9e1f05a9d68f01ad5a246faebcbb735351f7cf0d24a, 1 call(s). An AI comment is not an approval. |
…checks make adoption builds each partial-adoption subset as a fresh consumer of the facade and checks its graph; make msrv tests every release member at the MSRV; make semver runs cargo-semver-checks against the previous release or records no-baseline.
da2933e to
8ff8e80
Compare
AI review (no-findings)Looking at the three new shell scripts and the associated spec and Makefile changes. Makefile - clean additions to specs/031-public-api-and-release-family/spec.md - the Increment 2 prose is consistent with what the scripts implement: 5 skipped subsets named, no-baseline semantics described correctly, Node 20+ and curl declared as prerequisites, CI jobs deferred explicitly. tools/rustev-release/adoption.sh
tools/rustev-release/msrv.sh
tools/rustev-release/semver.sh
No concrete defects found. {"head": "8ff8e80fc521ed53feac27184e2f8f4aa494b2a1", "verdict": "no-findings", "findings": []}Subject: df053f6...8ff8e80, diff digest 3ebbd611eb1b4431be8c8d244cb011d9c3bc3c837cff0cb81e1e62270baf1ffc, 1 call(s). An AI comment is not an approval. |
…#144) Spec 031 increment 3: the release changelog generated from the governed corpus (3.10, R-4), and the crates' SBOMs in the candidate (3.9.1). - `tools/rustev-release/src/changelog.rs` (new): `render(&Inputs)` is a pure function of the specs at the previous release and now (`spec-spine registry list --json`), the decision rows that ratified or approved each spec, the commits since the previous release that touched it, and the compatibility facts of 3.6 and 3.7. A spec is listed when new, when its status or implementation state changed, or when its approved text changed (every section digest except the implementation record's). Compatibility comes first: MSRV and edition, each reference plan's `PlanId` (a change stated as breaking under 3.6.4), superseded versions with end dates. Unit tests: what is listed and in what order, order independence of the inputs, a changed `PlanId`, an implementation-record-only change, decision-row parsing. - `rustev-release changelog <out> [<previous tag>]` (`make changelog`, `PREVIOUS=<tag>`): gathers those inputs at a clean commit (the previous corpus from the tag's tree via `git archive`, never from `.statecraft/derived/` directly) and prints the changelog's digest. - `candidate.sh`: requires `cargo-cyclonedx` 0.5.9 exactly; run a's clean tree writes one CycloneDX 1.5 SBOM per crate member (all targets' dependencies) at the source date; the changelog of the candidate commit is generated as a step. - `release-manifest.json`'s evidence map now carries each `sbom-<member>.cdx.json` and `changelog.md` digest; a missing one fails the candidate. - Spec 031: implementation record. #143 has merged; this PR is rebased onto `main`. Local verification (macOS arm64): `cargo test -p rustev-release` (all pass, changelog 5 unit tests), `cargo clippy -p rustev-release --all-targets -D warnings`, `cargo fmt --check`, `sh -n candidate.sh`; `rustev-release changelog` at one commit twice gives byte-identical output (47 specs for the first release, both reference `PlanId`s listed). `cargo cyclonedx` 0.5.9 run on the workspace writes `<member>.cdx.json` files with no serial number and the `SOURCE_DATE_EPOCH` timestamp. The full candidate with SBOMs runs at the release-candidate step; `make gate`, `bash scripts/check-authored-content.sh`. Review round 1 (2 findings, fixed): 1. A missing `changelog.md` was reported under "031 3.9"; each evidence file now carries its own clause (SBOMs 3.9.1, changelog 3.10). 2. The SBOM lookup's first search (`git ls-files --others --ignored`) could never match, since the generated files are untracked but not ignored; it is removed, and the lookup is the `find` (outside `target/`) that always did the work. Rebased onto #143's review rounds. Review round 2 (2 findings, fixed): 1. The changelog's temporary tree was left behind when `git archive` or `tar` failed (`?` returned first); the three steps are now chained and their result taken after the directory is removed. 2. The SBOM lookup took the first `find` match. It now requires exactly one `<member>.cdx.json` outside `target/` and fails naming the count and paths otherwise (`cargo cyclonedx` without `--target-in-filename` writes one per member, which the local run showed). Rebased onto #143's round 4. Review round 3 (3 findings, fixed): 1. MSRV and edition came from the first member alone. The release policy already refuses a member that differs, and the changelog now also checks every member and refuses to state an MSRV the members disagree on. 2. A failing `cargo cyclonedx` stopped the candidate with its output only in `sbom.log`; the log is now printed to stderr first. 3. The implementation-record exclusion matched by substring, which would have excluded spec 031's own section `3-10-changelog-from-implementation-records` from approved-text detection. It now matches `implementation-record` or a numbered `<n>-implementation-record` exactly; a unit test covers both anchors and the 3.10 section counting as text. Review round 4 (2 findings: 1 fixed, 1 answered in the diff): 1. "The commit may carry a trailing newline into the Markdown." `command_line` returns `stdout.trim()`, so it cannot; the generated changelog's first line showed the bare hash. A comment at the call now says so. 2. Only one leading section number was stripped. `is_implementation_record` now drops every leading `<digits>-` group, so `3-2-implementation-record` counts as the record too; the unit test covers it. Review round 5 (3 findings, fixed): 1. `make changelog` passed `$(PREVIOUS)` unquoted; it is now quoted when given and omitted when not (`make -n` shows both forms). 2. The SBOM count counted lines of the path list; it now counts files (one character per file found), so no path content can change it (checked on a scratch tree with two matches: 2). 3. The changelog's temporary tree used a PID-named path and removed it first; it now comes from `mktemp -d` (fresh, private), with nothing removed beforehand. Rebased onto #143's round 5. Local note: the run of `changelog` against a previous ref after this change is waiting on this Mac's `syspolicyd`, which has held the freshly built binary in `_dyld_start` for 30 minutes; the first-release path ran earlier. Review round 6 (3 findings, fixed): 1. The SBOM was located by `find` (twice); each member's SBOM path now comes from its manifest directory in `cargo metadata`, so there is no search to race or miscount. 2. Any `git show` failure for a previous `PlanId` read as "unchanged"; a golden absent at the previous release is `None`, and one present but unreadable (or without a `plan_id`) is an error. 3. A spec whose only change was its amendment edges was omitted; a change of `amends` is now listed, with a unit test. Rebased onto #143's round 6. Locally against `origin/main` as the previous ref (after round 5): 3 specs listed as changed, both `PlanId`s unchanged, and the temporary tree removed. Review round 7 (2 findings, fixed): 1. A removed spec was listed without its title; it now prints `### <id>: <title>` from the previous registry, with a unit test. 2. The candidate reads SBOM paths with Node; it now checks `node` is on PATH first and says so, rather than reporting a missing SBOM. Local note: this Mac's `syspolicyd` currently holds new build scripts and test binaries in `_dyld_start` for 30 minutes or more, so the new unit test is verified by CI on this push. Review round 8 (1 finding, answered in the diff): "`render(&inputs())` compared with `a` is a tautology." It is the repeatability check 3.10 asks for (a second run on the same inputs gives identical bytes); the next assertion is the order-independence one. Both now carry a comment and an assertion message saying which is which. Review round 9 (1 finding, fixed): a `plan check` golden at HEAD without a `plan_id` was skipped silently while the same condition at the previous release was an error; both are errors now (every `plan check` golden carries one). Review round 10 (1 finding, mistaken, answered in the diff): "`cargo cyclonedx` needs `--workspace` in a virtual workspace." The pinned cargo-cyclonedx 0.5.9 has no such flag: `cargo cyclonedx --workspace` exits with "unexpected argument '--workspace' found". Run at the root of this virtual workspace, it writes `<name>.cdx.json` beside every member's manifest (the local run did, for every member). The candidate then requires each release member's file by its `cargo metadata` path and fails if one is missing. A comment at the call now says so. Rebased onto #143's rebase onto `main`. Review round 11 (2 findings, fixed): 1. `make changelog` ran `cargo run ... field target` twice in one line; it now resolves the target directory once into a shell variable and uses it for both the binary and the output path. 2. A `cargo metadata` failure in the SBOM step surfaced as "no SBOM generated": the metadata is now read once before the loop with an explicit failure message, and a failed path lookup for a member says so. Rebased onto #143's round 8. Review round 12 (1 finding, mistaken, answered in the diff): "`${PREVIOUS:-}` passes `""` when unset." Unquoted, an empty expansion is removed by field splitting and passes no argument: `sh -c 'set -- ${PREVIOUS:-}; echo $#'` prints `0`. So the first-release form (`changelog <out>`) runs. A comment at the call now says this is deliberate. Rebased onto #143's round 9. Rebased onto #143 after #146 (profile revision 17, spec-spine 0.31.0): derived shards regenerated with 0.31.0. Review round 13 (1 finding, fixed): a member absent from `cargo metadata` gave an empty directory and the message "expected /<name>.cdx.json"; the lookup now fails, and the candidate says "cargo metadata lists no package <name>". Rebased onto #143's round 12. Rebased onto `main` after #143 merged (derived shards only). Review round 14 (2 findings, fixed): 1. `make changelog` spliced `$(PREVIOUS)` into the recipe's text; the recipe now reads it from the environment (`${PREVIOUS:+"$PREVIOUS"}`; make exports command-line variables), so its contents are never shell syntax. Checked with a scratch Makefile: `PREVIOUS='a"b; echo pwned'` arrives as one literal argument. 2. `SPEC_SPINE` could point the changelog at any binary; the generator now accepts a spec-spine only when `--version` equals the exact pin in `spec-spine.toml` (`=0.31.0`), whichever path supplies it.
Spec 026, increments 1 and 2: live re-execution of a recorded decision shape as a new decision, behind a host authorization seam, and its comparison with the verified historical case. - `crates/rustev-contract` (`src/live.rs`, new): the `rustev.live-reexecution/1` document (`LiveReexecution`): the new decision, plan and computed snapshot identities, evaluation time, opaque subject and scope, the historical case as a `HistoricalLink` (identities, evaluation time and the bundle's record digest, never content) or explicit `none`, admission, the new run record's digest, termination and cost summary, one `LiveEffect` per proposed external attempt (with the host's `AuthorizationReference` or the typed refusal, and the dispatch observation), unreconciled attempts, delivery, capture and retention posture, and the comparison section. `check` bounds every list and free text and refuses an effect or liability not attributable to the new decision, or a new decision id equal to the historical one. `AuthorizationRequest` and its tagged digest (`rustev.live-authorization/1`) bind an answer to exactly one attempt; refusals are `missing`, `expired`, `mismatched`, `errored` and `refused`. - `tests/live.rs`: bounds, refusals, digest binding and round trips. - `crates/rustev-runtime` (`src/live.rs`, new; `src/driver.rs`): `Runtime::reexecute_live(plan, LiveRequest, &dyn LiveAuthorizer, cancel)`, the only function that takes an authorizer. Before admission it refuses a reused historical decision id, a snapshot whose computed `SnapshotId` differs from the stated one, an invalid capture configuration, an out-of-range historical decision id, and a plan whose worst-case attempts exceed the document bound. It then runs an ordinary spec 003 decision; in the attempt driver, after the full worst-case reservation and the deadline and cancellation re-check, the host is asked about that exact attempt (a panic is contained as `errored`). An allow counts only if it names the presented digest and is still valid by the runtime clock. A refusal releases the reservation, sends nothing and stops the request; retries and fallbacks are each authorized again. - `tests/live.rs`: section 5 rows 2 to 6 and 9; allow, refusal, mismatch, error, panic, expiry, retry, fallback, cancellation, unknown charge, possibly continuing work and sink failure with exact attempt attribution; exact steps still judge when the host refuses all external work; cache and batch bypass; capture. Compile-fail examples show `decide` and `decide_with_capture` take no authorizer. - `crates/rustev-eval` (`src/live.rs`, new): `compare_live(LiveCase)`, a pure function over host-supplied documents. It refuses a document that does not check, an unbound run record, a plan that is not the document's, and a bundle other than the linked one; verifies the historical case by spec 004 reproduction (an unavailable item makes the comparison `unavailable`, nothing restored); then reports `agreement`, `live-diverged` (`proposal_changed` or `unresolved_category_changed`) or incomparable, with snapshot, plan, evaluation-time, artifact, backend, definition, policy, calibration, runtime count, cost, termination, cancellation, remote-state, retention and delivery differences reported apart. `with_comparison` returns a copy; no source is modified. - `tests/live.rs`: section 5 rows 1, 7 and 8; byte-identical sources after a live run and its comparison; a source scan showing eval names no runtime, backend or authorizer. - Mutation seeds: eight `live:` seeds in `crates/rustev-runtime/mutation/seeds.py` and two `live-comparison` seeds in `crates/rustev-eval/mutation/seeds.py`; all ten detected. - `Makefile`: 026 joins `VERIFIED_SPECS`. `tools/rustev-release/archive-policy.json`: the new source files in the contract, runtime and eval archives. - Spec 026: implementation record. Derived shards regenerated. What remains: the comparison reports the first unavailable item reproduction meets, not every item; served identity stays `unknown` until a run record carries it; the live document's later members (spec 043 3.9) are not part of this implementation. Owner decisions (engineering choices made within the spec, open to review; see the implementation record): - E-26-1: an authorization refusal is typed in the live document, and the core is supplied `backend_unavailable` with detail `authorization_refused: <refusal>` (the spec 003 3.6.4 form). Spec 002's four runtime reasons, `rustev.run/1` and the core are unchanged. - E-26-2: the authorizer is synchronous and lives in `rustev-runtime`, not in the core seams; its answer is neither serializable nor clonable, and only its reference is kept. Validity is a duration judged by the runtime's clock. - E-26-3: live runs bypass the memory cache and general batching (a diagnostic says so when the plan enables either); each attempt is fresh work, authorized on its own. - E-26-4: no JSON Schema yet: the live document is not added to spec 027's emitted schemas, since that would regenerate the committed TypeScript declarations. A spec 027 follow-up. Local verification (macOS arm64): `make gate`, `make code` (build, test, clippy `-D warnings`, fmt, boundaries), `.bin/spec-spine verify 026` (10 commands, 10/10 seeds detected), `bash scripts/check-authored-content.sh`. Review round 1 (1 finding, fixed): `LiveReexecution::check` refused a historical decision id longer than 256 bytes but not an empty one, so a parsed document linking an empty historical id passed `check` although `reexecute_live` refuses it. `check` now refuses it too; `the_historical_decision_id_is_one_to_256_bytes` checks 0 and 257 bytes (refused) and 256 bytes (accepted). Rebased onto `main` after #143, #144 and #145 merged (derived shards regenerated). Review round 2 (0 findings). Review round 3 (0 findings), after the rebase onto #144.
Spec 020: remote protocol refinements, increments 1 to 6 (phase
ceilings, the host-endpoint principal reference and `rustev.remote/2`,
bounded connection reuse, `rustev.run/2`, runtime-planned remote
batches, Jev and verification). Every refinement is disabled by default,
and a binding with every refinement disabled keeps its spec 009 bytes,
artifact and `PlanId`.
**Awaiting the owner.** Spec 020 stays `implementation: pending`, and so
stays out of `make verify`, because two acceptance items are not
verifiable as written (recorded in the spec's implementation record):
1. Multiplex cancellation (pool acceptance). The HTTP binding speaks
HTTP/1.1 only, so a pool policy must declare one stream per connection;
nothing is multiplexed and there is no multiplexed cancellation to test.
Covering it needs an HTTP/2 binding, a new dependency that spec 021's
audit would have to admit.
2. "New qualification evidence for every enabled refinement" (Jev). No
refinement is enabled on the Jev adapter, so there is none to produce;
enabling one would need a new mapping version and a newly authorized
qualification, which this spec does not authorize (3.7).
The ruling on these two decides whether 020 can be marked implemented.
## Per increment
- **1, phase ceilings (3.4, 3.1).** `rustev-remote-http/src/phases.rs`
(new): `PhasePolicy` (a positive ceiling per phase; zero refused at
construction), `TransportPhases` (disabled by default), `PhaseClock`
(each phase's allowance is the lesser of its ceiling and the budget left
when it starts; phases only move forward) and `phased`.
`HttpTransport::with_phases` enters resolution, connect, TLS handshake,
request write, first response byte and response body on the real
connection; `TransportError::PhaseExpired`. An expiry before request
bytes is `transport_unsent`, after them `transport_interrupted`; no
retry is added. The cancellation acknowledgement ceiling bounds every
cancel exchange. `rustev.remote-exchange/1` gains an optional
`phase_expiry`; `AdapterBinding::transport_phases` is not written when
disabled.
- **2, principal reference and `rustev.remote/2` (3.6, 3.7).**
`rustev-contract`: `PROTOCOL_V2`, `InferRequest::principal`
(`WirePrincipal`, omitted when absent, refused in version 1 or when not
canonical) and its domain-separated evidence digest; the exchange
record's optional `principal` holds only that digest.
`rustev-remote-http/src/principal.rs` (new): `EndpointOperator`,
`PrincipalSource`, `HandleAsReference`, `PrincipalPosture`,
`PrincipalWire`. The client negotiates exactly `protocol_major` (1 by
default) and refuses a principal for a third-party endpoint, over
version 1, or with a bad label. The server serves
`ServerConfig::versions` (`[1]` by default) and includes the principal
in idempotency content. Redirects stay unfollowed.
- **3, bounded connection reuse (3.5).**
`rustev-remote-http/src/pool.rs` (new): `PoolPolicy`, host-owned
`ConnectionPool`, `KeyMaterial` (every isolation member; credential and
principal only as digests; unknown material never reuses).
`HttpTransport::post_observed` swaps stream hooks per exchange, so the
tracker and phase clock are always the current exchange's. A stale
connection is never replaced mid-exchange; exhaustion is
`transport_unsent` with `observed{0}`. The exchange record gains an
optional `connection`; the binding gains `connection_pool`, not written
when disabled.
- **4, `rustev.run/2` (3.2, I-4).** `rustev-contract`: `RUN_V2`,
`RunRecord::remote_evidence` and `remote_evidence_truncated` (absent in
every other version, so version 1 and 3 bytes are unchanged), bounded
`RemoteEvidence`, `check_version_members`, `project_v1`. `rustev-core`:
`EvidenceSink::run_schema` and `DecisionBackend::take_remote_evidence`,
both defaulted. `rustev-runtime`: version 2 exactly when the sink
selects it; one entry per remote attempt in order; a rejected version 2
record is never retried as version 1. `rustev-remote-http`:
`ClientConfig::run_evidence`, `ExchangeSink::deliver_located`, and
`Exchanges::deliver` now returns the record digest and delivery result.
`rustev-eval`: bundles hold the version 1 projection, so replay is
unchanged and offline; `remote_evidence::availability` checks references
against a host store, apart from judgment parity.
- **5, runtime-planned remote batches (3.3).** `RemoteClient` offers
spec 017's `batch_capability` only when `ClientConfig::batch_dispatch`
and the negotiated terms both allow shared-state batching (bound is the
lesser). `infer_batch` refuses an oversized or mixed batch before any
byte, checks each member as an independent attempt, sends one exchange
in the runtime's order bounded by the earliest member budget, and
answers each member from its own answer. New exchange attribution
`runtime_planned`.
- **6, Jev, drift, verification.** A negotiated endpoint answering
another protocol version is `identity_mismatch`.
`rustev-jev/tests/refinements.rs`: Jev offers no general batch seam, its
adapter-scoped batch stays shared-state, and no spec 020 member or
remote evidence appears; its binding and mapping are unchanged. Spec
020: acceptance mapped item by item and a declared `verify:cli` block.
Amended specs whose shared APIs change: 003 (runtime run/2 delivery),
004 (eval bundles and availability), 009 (binding members, exchange
record, `TransportError`, `Exchanges::deliver`), 012 (Jev), 017 (the
batch seam's remote side). Their verify passes.
## Interpretations recorded in the implementation record
- 3.1's explicit `disabled` values are explicit in the configuration
types but not written into the binding document, so every existing
adapter's artifact and `PlanId` stay byte-identical (section 2).
- The request-write phase ends at the first completed flush after the
connection took the request body; the response-body phase includes the
response head.
- The cancellation acknowledgement ceiling bounds the whole cancel
exchange, whose own transport phases also apply.
- `rustev.remote/2` keeps the HTTP paths `/rustev/remote/1/...` and the
schema strings; the `version` member distinguishes it. A version 1
server refuses a version 2 describe with 400, reported at construction
as a negotiation failure.
- The isolation key's authority is the configured scheme, host and port,
not the resolved address.
- Replay never consults an exchange store; "without a transport or store
call" is read as that, and availability is a separate, explicit check.
- A plan 3 decision's record stays `rustev.run/3` without remote
evidence even for a sink that selected version 2.
- Spec 017's batch report has one cancellation answer and one remote
state, so one possibly continuing member makes every member of its batch
possibly continuing with charge unknown: never understated, possibly
overstated until the host reconciles.
- A host-operated server hands a version 2 request's reference to the
hosted backend as `CallContext::principal_handle`; version 1 keeps spec
009's empty handle.
## Local verification (macOS arm64)
Rebased onto `main` at df053f6 (4cecab0 dropped as already applied as
#146), then onto 2d6a1f2 after #143 and #144 merged, then onto c58c52e
after #150 (spec 026) merged; no conflicts and no call sites to fix.
`.bin/spec-spine verify 026` also passes. `make gate`, `make code`
(build, test, clippy `-D warnings`, fmt, boundaries), `.bin/spec-spine
verify` for 020, 003, 004, 009, 012 and 017 (spec-spine 0.31.0), `bash
scripts/check-authored-content.sh`.
Review round 1 (1 finding, reported by two groups, fixed): the
`RustevRun1` and `RustevRun3` declarations (both packages) carried
`remote_evidence` and `remote_evidence_truncated`, which spec 020 says
are `rustev.run/2` only. The declarations were faithful to the schemas,
and the schemas to the parser: the run record's parser read every
version with one type and did not refuse those members outside version
2. Fixed at the source: `versioned_document!` takes an optional `check =
f` rule, and the run record's parser applies `check_version_members`
(refusing either member in version 1 or 3, and a version 2 record
without the list or beyond its bounds, as `ParseError::Schema`). The run
schemas now state that rule: `rustev.run-1` and `rustev.run-3` drop both
members and their now-unreferenced `$defs` (byte-identical to `main`
again), and `rustev.run-2` requires a non-null list. Declarations
regenerated with `gen-types.mjs`.
`crates/rustev-contract/tests/run_v2.rs`
(`the_parser_and_the_schemas_hold_the_version_rule`) checks parser and
schemas agree for each case; the implementation record says so.
Review round 2 (1 finding, fixed): an attempt that passed `prepare`
(which records its evidence as `pending`) and was then withdrawn from a
coalescing exchange before it sent kept `pending`: `finish` completes
only the members in the exchange record, and `note_unexchanged` leaves
an existing entry alone. Both "stopped before sending" paths of
`cancel_member` (withdrawn while collecting, and a lone member that
stops the send) now go through `stopped_unsent`, which turns a
still-pending entry into `no_exchange` with code `cancelled` and charge
provenance `nothing_sent`. `tests/batching.rs`
(`a_member_withdrawn_before_sending_has_no_exchange_in_its_evidence`)
fails without the fix and passes with it; the implementation record says
so. Round 2's review job reached its 15-minute limit right after posting
its comment, so that run recorded no evidence artifact; this push runs a
fresh review.
Review round 3 (0 findings), after the rebase onto #150. The first
attempt of this round reached the review job's 15-minute limit without a
verdict; the rerun returned no findings in both groups.
Spec 019, increments 1 and 2: dynamic questions as a narrow evaluated
class. The documents, pure validation and identity, `ask_dynamic`,
offline reproduction and the dynamic evaluation report. Scripted
backends only; nothing here selects a backend, authorizes live inference
or spend, or claims accuracy or calibration.
- `crates/rustev-contract/` (`src/dynamic.rs`, `ids.rs`, `limits.rs`):
`rustev.dynamic-question/1`, `rustev.dynamic-capability/1` (identified
by `DynamicCapabilityId`) and `rustev.dynamic-outcome/1` (`RECORD_V1`);
`DynamicRequestId`, `TemplateId`; the `DYNAMIC_QUESTION_V1` scan limits.
Parsing scans the bytes first, then checks the structural bounds of 3.2
(sizes, counts, byte-exact uniqueness of labels and context names, 64
KiB of context values, 128 KiB canonical); unknown members are refused.
The canonical request identity covers what a backend computes from,
including label order, template and preprocessing; the backend receives
a projection under fixed member names only.
- `crates/rustev-core/` (`src/dynamic.rs`, `seams.rs`): `validate`
builds the only `ValidatedQuestion`; `admit` (capability fit, no
truncation, `bounded` cost model only), `admit_cost` (enforceable bound
at or below the hard cap), `judge` (exact support, non-answer material
is invalid, pinned served identity, named abstention rules), `proposal`
(`model-derived`, with lineage). `DynamicBackend` and
`DynamicEvidenceSink` seams, separate from `DecisionBackend`, with no
tool, function or retrieval surface. Compile-fail tests with a compiling
control keep dynamic outcomes, raw outputs and proposals out of
`Supplied`, `Evaluation::supply` and `Judgment`, and keep
`ValidatedQuestion` unforgeable.
- `crates/rustev-runtime/` (`src/dynamic.rs`): `ask_dynamic`, one
attempt under a fresh hard ledger at the request's cap (and the optional
host ledger), deadline over every phase, spec 003/013 cancellation
evidence, optional sink whose delivery never changes the outcome. No
retry, fallback, batching or cache on this path.
- `crates/rustev-eval/` (`src/dynamic.rs`): `reproduce` takes no
backend; a changed canonical identity is `incomparable{request_changed}`
(section 5's last row: reordered labels), another declaration
`capability_changed`, a missing raw response `raw_response_unavailable`,
a different judgment `diverged`. `rustev.dynamic-dataset/1` and
`rustev.dynamic-evaluator-config/1` bind task family, exact question
schema, artifact and template; the dataset requires an
injection-adversarial case and refuses leakage across splits.
`rustev.dynamic-eval-report/1`: coverage, abstention by reason, accepted
error, uncalibrated Brier and log loss or mean level distance, overall
and over adversarial cases; `uncalibrated`, `mechanics_only` on
synthetic data, every gate `unknown`.
- Tests: `rustev-contract/tests/dynamic_wire.rs`,
`rustev-core/tests/dynamic.rs` (including adversarial text in every
caller-controlled field), `rustev-runtime/tests/dynamic.rs` (section 5
rows 1 to 7 with a dispatch counter), `rustev-eval/tests/dynamic.rs`.
- `tools/rustev-release/archive-policy.json`: the four new source files
join the reviewed archive lists; 019 now `extends`
`tools/rustev-release/` (additive) for it.
- `tools/rustev-conformance/fp-corpus` (spec 027, 3.11.3): the dynamic
log loss's `rustev_core::math::ln` call joins the differential corpus as
`eval.dynamic_log_loss.ln` (probability domain, as the existing log-loss
site), with its digests committed in `expected.json`; 019 `extends`
`tools/rustev-conformance/` (additive) and its verification runs the
corpus test.
- `Makefile`: 019 joins `VERIFIED_SPECS`.
- Spec 019: `implementation: complete`, Verification declares the
acceptance commands, implementation record. No existing document,
golden, plan id or test changed.
What remains: nothing in 019's acceptance. Calibration of a dynamic task
family needs a separately fitted artifact with its own binding; none
exists and none is claimed.
Owner decisions:
1. Whether the dynamic documents join spec 027's JSON Schema emitter
(3.2.2, "every public document type"). They are not emitted here: doing
so adds schema files under `crates/rustev-contract/schema/` and changes
the generated binding types under `integrations/rustev-wasm/types/` that
spec 027 owns, and neither spec says whether dynamic documents belong in
the binding surface.
2. Defaults chosen where the spec is silent, recorded in the
implementation record:
- `DISTRIBUTION_TOLERANCE` is 0.000001, equal to the reference plans'
tolerance.
- `min_margin` is top mass minus the second mass; ties go to the earlier
declared label.
- Free-text backend output retained in an outcome is cut to 256 bytes.
- Every evaluation gate is reported `unknown`: over synthetic data a
gate would claim quality from mechanics, and real data needs separately
governed admission (spec 023) that no dynamic dataset binds yet.
Local verification (macOS arm64): `make gate`, `make code` (build, test,
clippy `-D warnings`, fmt, boundaries), `.bin/spec-spine verify 019` (12
commands, passed), `rustev-fp-corpus check` (5 sites agree natively).
The WebAssembly corpus runs (`make bindings`) were not run locally: this
toolchain lacks the `wasm32-unknown-unknown` target. Rebased onto `main`
after #146, again after #143 to #145 merged (#145's corpus test required
the new site), and again after #150 (`VERIFIED_SPECS` and the contract's
schema constants unioned); derived shards regenerated each time.
Review round 1 (1 finding, fixed): `bounded_raw` kept NaN and infinite
distribution masses, so the outcome for that invalid output could not be
serialized and the evidence was lost. Such a distribution is now
recorded, and judged, as `Unrecognized { shape: non_finite_mass }` with
the masses as text (a new `ResponseShape` variant), so the outcome stays
a writable record and offline reproduction judges exactly what was
recorded.
`adapter_failures_and_malformed_outputs_are_named_and_never_retried` now
includes a NaN and an infinite distribution, asserts the recorded shape
and round-trips both outcomes. The implementation record says so.
Review round 1 (1 finding, fixed): `bounded_raw` kept NaN and infinite
distribution masses, so the outcome for that invalid output could not be
serialized and the evidence was lost. Such a distribution is now
recorded, and judged, as `Unrecognized { shape: non_finite_mass }` with
the masses as text (a new `ResponseShape` variant), so the outcome stays
a writable record and offline reproduction judges exactly what was
recorded.
`adapter_failures_and_malformed_outputs_are_named_and_never_retried` now
includes a NaN and an infinite distribution, asserts the recorded shape
and round-trips both outcomes. The implementation record says so.
Review round 2 (0 findings) on the rebased head 48c6c15.
Review round 3 (1 finding, fixed in the docs, behavior kept):
"`proposal()` omits `abstention` from `exact_processing` for label
answers, contradicting its doc comment and the implementation record."
The behavior is intended: under the explicit `label_only` posture no
abstention rule runs (`judge` returns `AbstentionDecision::LabelOnly`),
so listing `abstention` would claim an exact step that never ran. The
doc comment and the implementation record were wrong and now say
`validate` always, `abstention` only when thresholds were applied. The
core test for label output now builds the proposal and asserts its
lineage is exactly `["validate"]`.
Review round 4 (0 findings) on f9c4045. Rebased onto `main` after #152
(no conflicts, shards current).
Review round 5 (0 findings) on 54587eb; ci-gate passed.
Spec 031 increment 2: the partial-adoption subsets, MSRV and API-compatibility checks, as repository commands (3.5, 3.6.7, 3.8).
tools/rustev-release/adoption.sh(make adoption [subset ...]): each subset is a fresh consumer project outside the workspace (its own empty[workspace], the workspace'sCargo.lockandrust-toolchain.tomlcopied in) depending on the facade by path withdefault-features = falseand exactly the subset's features (plusrustev-pkg-support-routingfor embedded decisions). Its test names every module the subset takes and parses a definition through the facade, and must run and pass (a build alone fails);cargo tree -e normalmust contain each chosen crate and none of the omitted ones (tokio and hyper included where omitted). Subsets: documents (no feature), embedded (runtime,rules), evaluation (eval), remote over HTTP (runtime,remote-http), andruntime,rules,remote-httpalone.serve,bedrock,typesafe,otel,local-embedprint "skipped, not passed" with the reason their crate is not in this release.tools/rustev-release/msrv.sh(make msrv):cargo +<MSRV> test --lockedof every release member, the MSRV read by the release policy from the members'rust-version.tools/rustev-release/semver.sh(make semver): for each member, the newest earlier non-yanked version in the crates.io sparse index; with one,cargo semver-checks check-releaseat the exact pin 0.51.0 (refusing any other version); with none,no-baseline, written as "not applicable, not passed". The npm packages reportno-baselinewhile unpublished and refuse a verdict once published until their declaration diff exists; the service API has no crate in this release. Registry reads only, with a project User-Agent; no credential.Makefile:adoption,msrv,semver.The CI jobs that will run these come in a later workflow change, together with spec 027's
bindingsjob (onestatecraft-review-exceptionapproval); this PR changes no workflow.#142 has merged; this PR is rebased onto
main.Local verification (macOS arm64):
make adoption: all 7 subsets pass (normal graphs of 30 to 62 crates), 5 skipped with reasons.make semver: 11 crates and 2 npm packagesno-baseline; nothing compared.make msrv: every member builds at 1.88 and its tests started, but this Mac'ssyspolicydheld the freshly built CLI binaries in_dyld_startfor over 20 minutes inrustev-cli'sactionabilitytest, so I stopped it; the MSRV test run is not locally verified. The CI job is the verdict.make gate,bash scripts/check-authored-content.sh.Review round 1 (3 findings, fixed):
bindingsjob, and that this increment changes no workflow (this body likewise).semver.shcreated a temporary file per crate outside any trap; it now uses one scratch directory removed by anEXITtrap.adoption.shmatchedtest result: ok. 1 passedas a regex; it is now a fixed-string match (grep -qF).Review round 2 (2 findings, both mistaken, answered in the diff):
process.argv.slice(1)is off by one undernode -e." Under-ethere is no script path, so the first argument after the program isargv[1]:node -e 'console.log(process.argv.slice(1))' a bprints["a","b"](checked on Node 24). A comment at the call now says so, and the localmake semverrun read the index responses this way.rustev::decision_core::compile, which may be feature-gated." It is not:contractanddecision_coreare the facade's always-present modules (031 3.2.1,#[cfg]-free inlib.rs, checked bytests/public_items.rs), and the documents subset passed locally. A comment in the generator now says so.Review round 3 (1 finding, the round-2 claim again, made moot): the index file and version now reach the inline script as environment variables (
INDEX_FILE,CURRENT) rather than arguments, so no argument indexing remains to dispute. Checked locally on a synthetic index (0.0.9,0.1.0, yanked0.0.5, current0.1.0): it selects0.0.9.Review round 4 (3 findings: 2 fixed, 1 answered in the diff):
--locked.--lockedcannot hold for a fresh consumer (the copied lockfile names the workspace's packages, which the consumer's root replaces), so the guarantee is now checked directly: after the build, every registry package in the consumer's lockfile must be at a version the workspace'sCargo.lockpins, or the subset fails naming it. Seeded locally on a copy of the lockfile: identical gives nothing;serdeat9.9.9is reported.curlhad no timeout; every registry request now has--max-time 60.use rustev::contract::Documentis unused." It is the trait whoseparsethe generated test calls (Definition::parseisDocument::parse); a comment in the generator now says so.Review round 5 (1 finding, answered and guarded): "a pre-release family version makes the comparator return NaN." The release policy refuses any family version that is not
X.Y.Z(check_set, 021 3.2), so none reaches this script.semver.shnow also refuses a non-X.Y.Zversion itself before comparing (checked locally:0.1.0accepted,0.1.0-rc.1and1..0refused).The previous round's review was cancelled at its time limit; it was rerun once by re-signing the commit.
Review round 6 (4 findings, fixed):
edition, read from the root manifest (refusing when absent).RUSTEV_ADOPTION_MARK) and the script checks that file instead.cargo-semver-checkswas probed only when a baseline existed; it is now required up front on every run (exact version), so a missing or wrong tool is found before the first release needs it. The CI job installs it.Review round 7 (1 finding, answered and made explicit): "a failing
nodeleavesbaselineempty and reads asno-baseline." In POSIXshan assignment's exit status is its command substitution's, soset -ealready stops the script (sh -c 'set -eu; b=$(false); echo reached'prints nothing and exits 1). The lookup now also has an explicit|| { ...; exit 1; }naming the crate ("could not read its index response; no verdict"), checked against a non-JSON index file.Rebased onto
mainafter #142 merged. The round-7 review (on3451a98) repeated thenodesubstitution finding, which3305bd4had already answered with the explicit guard (|| { echo "$name: could not read its index response; no verdict" >&2; exit 1; }); that head's review was cancelled at the time limit, so this push is its rerun.Review round 8 (3 findings, fixed):
nodesurfaced as "could not read its index response":semver.shnow checksgit,cargo,curlandnodeon PATH before anything else and names the missing one.make semvercomputed the report path with an inlinenodecall, so a missingnodegave/semver.txt: the script now defaults the report tosemver.txtin the cargo target directory it already resolves, and the Makefile target passes nothing.adoption.shignored an unknown subset name: a requested name that is neither a present nor a skipped subset now exits 2 naming it (checked locally:adoption.sh nosuchgives "no subset named 'nosuch'").Review round 9 (1 finding, mistaken, answered in the diff): "
IFS='|'onreadpersists into the loop body, so the lists split as one token." A prefix assignment to a regular built-in such asreadlasts for that command only (POSIX);sh -c 'printf "a|x y z\n" | while IFS="|" read -r n l; do for c in $l; do echo $c; done; done'printsx,y,zon separate lines (macOSshandbash). The local adoption run is the same evidence: the embedded subset's chosen-crate check passed over three names, which it could not with|as the separator. A comment at the loop now says so.Review round 10 (1 finding, fixed): an empty member list from the release policy would have run
cargo testover the whole workspace;msrv.shnow refuses an empty package list or MSRV.Review round 11 (1 finding, fixed): Node's role in
semver.shis now documented where a user meets it: the script's header, the Makefile target's comment and the spec record each state thatmake semverneedscurl, Node 20 or later (to read the index's JSON lines) and the pinnedcargo-semver-checks; the script still refuses each by name when missing.Rebased onto
mainafter #146 (profile revision 17, spec-spine 0.31.0): derived shards regenerated with 0.31.0.Review round 12 (3 findings, fixed):
cargo-semver-checksis now checked with the other tools, before anything is built.tokioin their graph (the remote binding depends on it normally), as the runtime-only subset does.Review round 13 (1 finding, fixed): the embedded subset (which enables
runtime) now also requirestokioin its graph, like every subset that takes the runtime or the remote binding.Rebased onto
mainafter #145 merged (derived shards only).