Repository navigation
impl(031): increment 3, the changelog generator and the crates' SBOMs - #144
Conversation
AI review (findings)Reviewing the diff across the six changed files. 1. Misleading error label in
for name in sboms.chain(["changelog.md".to_string()]) {
let bytes =
std::fs::read(dir.join(&name)).map_err(|e| format!("031 3.9: {name}: {e}"))?;The comment above the block says "3.9.1 and 3.10", but the error prefix is hard-coded as 2. SBOM primary search uses a depth-1 glob that will miss workspace-layout paths
f=$(git ls-files --others --ignored --exclude-standard -- "*/$p.cdx.json" | head -n 1)
No other material bugs found. The {"head": "8732d3cb7e5082a2ff92b2b91aafb9189865809e", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/main.rs", "line": 647, "summary": "Error label for a missing changelog.md says '031 3.9' but changelog is spec 3.10, making failure messages misleading during debugging."}, {"path": "tools/rustev-release/candidate.sh", "line": 98, "summary": "SBOM primary search uses the depth-1 glob '*/$p.cdx.json' which never matches the actual two-level workspace paths (e.g. crates/foo/foo.cdx.json), so the search always silently falls through to the find fallback."}]}Subject: b959ac9...8732d3c, diff digest 69f4e0ab5070e3bf455c6d8a8353b212c14cc41f731ee487f76b2cf6e469497e, 1 call(s). An AI comment is not an approval. |
b959ac9 to
5c58688
Compare
8732d3c to
5261a65
Compare
AI review (findings)Looking at the changed files for bugs, security issues, and inconsistencies. Makefile -- changelog.rs -- main.rs, command_line("git", &["archive", "--output", &archive, tag])?; // early return here …
command_line("tar", &["-xf", &archive, "-C", &dir_s])?; // … or here
let r = registry(&dir_s);
let _ = std::fs::remove_dir_all(&dir); // never reached on the two ? above
r?If either shell command fails, candidate.sh -- SOURCE_DATE_EPOCH=$epoch cargo cyclonedx --format json --spec-version 1.5 --target all \
>"$out/sbom.log" 2>&1
for p in $packages; do
f=$(find . -name "$p.cdx.json" -not -path './target/*' | head -n 1)
{"head": "5261a656063a2248169e03771daba0eb292a5191", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/main.rs", "line": null, "summary": "Temp directory created for git-archive extraction is not cleaned up when git-archive or tar fails because the early-return via ? runs before the remove_dir_all call."}, {"path": "tools/rustev-release/candidate.sh", "line": 97, "summary": "find | head -n 1 silently selects an arbitrary SBOM when cargo-cyclonedx --target all emits multiple files per crate, making the SBOM evidence entry non-reproducible and potentially wrong without any error."}]}Subject: 5c58688...5261a65, diff digest 2e8ace7cba20900f725c14c522a1ca1f2288d899d1bc8a522c05ec1fdb1a48c4, 1 call(s). An AI comment is not an approval. |
5c58688 to
f6a22ef
Compare
5261a65 to
2e95b4d
Compare
AI review (findings)Reviewing the six changed files for bugs, security problems, and spec inconsistencies.
The let first = meta.packages.iter()
.find(|p| Some(&p.name) == set.upload_order.first())...;
...
msrv: first.rust_version.clone().unwrap_or_else(|| "unknown".into()),
edition: first.edition.clone(),The spec text says "MSRV and edition from the members' manifests" (plural). If any non-first member specifies a stricter
The
The The
The
No issues found. {"head": "2e95b4d7215e89e02a445843bd56e1c4d95cc4d4", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/main.rs", "line": null, "summary": "MSRV and edition are read from only the first upload-order member; if any other member specifies a stricter rust-version, the changelog silently reports a lower MSRV than the release actually requires."}, {"path": "tools/rustev-release/candidate.sh", "line": null, "summary": "cargo cyclonedx output is captured entirely to sbom.log; a build failure exits the script (via set -e) without printing the underlying error to stderr, making the failure cause opaque without examining the log."}, {"path": "tools/rustev-release/src/changelog.rs", "line": 44, "summary": "text_digests filters sections using .contains(\"implementation-record\") rather than exact key matching, so any future section anchor that happens to include that substring would be silently excluded from approved-text change detection."}]}Subject: f6a22ef...2e95b4d, diff digest 72f25f41c515443c5befdb11d4dcc3a2054cdecbbf6698878f857c102e07d79b, 1 call(s). An AI comment is not an approval. |
2e95b4d to
136f760
Compare
AI review (findings)Review
|
136f760 to
576b390
Compare
AI review (findings)Looking at the six changed files for bugs, security problems, and inconsistencies: Makefile – The target invokes "$$(cargo run --quiet --locked -p rustev-release -- field target)/debug/rustev-release" \
changelog "..." $(PREVIOUS)A
found=$(find . -name "$p.cdx.json" -not -path './target/*')
count=$(printf '%s' "$found" | grep -c . || true)
let dir = std::env::temp_dir()
.join(format!("rustev-changelog-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir)…The directory name is derived from the PID, which is predictable. A concurrent second invocation of
The pattern
Removed specs come from
Traced all four test anchors; the stripping loop correctly handles numbered prefixes and doesn't strip non-numeric components. {"head": "576b3907acdb2b5af5bb6fb03d1d63f8150ad895", "verdict": "findings", "findings": [{"path": "Makefile", "line": 78, "summary": "$(PREVIOUS) is unquoted in the shell recipe, so a value with spaces would be word-split into multiple arguments; use \"$(PREVIOUS)\" for safety."}, {"path": "tools/rustev-release/candidate.sh", "line": 101, "summary": "SBOM count uses `grep -c .` (line count) rather than a file count, so a path containing an embedded newline would inflate count and trigger a false failure."}, {"path": "tools/rustev-release/src/main.rs", "line": 502, "summary": "The temp directory for git-archive extraction is named by PID alone; concurrent invocations race on the same path, and the leading remove_dir_all creates a symlink-attack window on shared machines."}]}Subject: f6a22ef...576b390, diff digest a1efcf8fecf54a7d577a8f18e949c56e0cbd97115fb99a339d128b72adccad1c, 1 call(s). An AI comment is not an approval. |
37f0d57 to
8840641
Compare
576b390 to
3f31e07
Compare
AI review (findings)Reviewing the diff across all five changed files for bugs, security issues, and inconsistencies.
Lines ~109-114:
Around the plan-identity loop (approx. line 580 in the diff): let before = previous
.and_then(|p| command_line("git", &["show", &format!("{p}:{path}")]).ok())
.and_then(|t| plan_id(&t));
{"head": "3f31e07725d38d46ce27d716782058562972fa48", "verdict": "findings", "findings": [{"path": "tools/rustev-release/candidate.sh", "line": 109, "summary": "Two separate `find` invocations for `found` and `count` introduce a TOCTOU race: if a file appears or disappears between the two calls, `count` can be 1 while `found` holds an inconsistent (empty or multi-path) result, causing a wrong copy or a misleading error message."},{"path": "tools/rustev-release/src/main.rs", "line": null, "summary": "`.ok()` on the `git show` call that reads a plan's previous `plan_id` silently converts any git error into `before: None`, which causes the changelog to report no plan-identity change even when the PlanId actually changed, masking a breaking-change flag."},{"path": "tools/rustev-release/src/changelog.rs", "line": 134, "summary": "`change()` does not compare the `amends` field, so a spec whose only diff is gaining or losing amendment edges is omitted from the changelog entirely, even though `amends` is rendered in entries that do appear."}]}Subject: 8840641...3f31e07, diff digest f20334726392e87f5e41b747096c37ff242ca2de7a7c7868564f942944efa5b5, 1 call(s). An AI comment is not an approval. |
8840641 to
3451a98
Compare
3f31e07 to
f89344a
Compare
AI review (findings)Reviewing the six changed files for bugs, security problems, and inconsistencies.
$(if $(PREVIOUS),"$(PREVIOUS)")When
dir=$(cargo metadata --format-version 1 --no-deps --locked | P="$p" node -e '...')
Lines ~235-239 (inside for id in &removed {
any = true;
out += &format!("### {id}\n\n- removed from the corpus.\n\n");
}New and changed specs emit
let number = s.id.split('-').next().unwrap_or("");
let named = [format!("ratified spec `{number}`"), ...];Because the closing backtick is part of the pattern, the match cannot fire on
Both are correct. The first assertion in the determinism test (
{"head": "f89344ab726591d833eb842a1df0180f72771761", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/changelog.rs", "line": 237, "summary": "Removed-spec entries in render() emit '### {id}' with no title, inconsistent with new/changed entries that emit '### {id}: {title}'; the full Spec (including title) is available in the `before` BTreeMap and should be used."}, {"path": "tools/rustev-release/candidate.sh", "line": 99, "summary": "The SBOM directory is resolved by piping cargo metadata to an inline Node.js script with no prior check that `node` is in PATH; if node is absent the failure message blames a missing SBOM file rather than the missing runtime."}]}Subject: 3451a98...f89344a, diff digest f17290d2d7327b4c0309137f198c31d404b2f4a2368712d6914f9a43d034c02e, 1 call(s). An AI comment is not an approval. |
3451a98 to
4bb19af
Compare
f89344a to
707b015
Compare
AI review (findings)Reviewing the changelog generation feature across the five changed files. Makefile The candidate.sh
changelog.rs
test assert_eq!(a, render(&inputs())); // calls inputs() not i
assert_eq!(a, render(&i));The first assertion compares main.rs —
{"head": "707b01522206d895241f5de0385c2775a177e479", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/changelog.rs", "line": 325, "summary": "The first assertion in `rendering_is_deterministic_and_order_independent` calls `render(&inputs())` instead of `render(&i)`, making it a tautology that tests nothing about determinism across equivalent-but-differently-ordered inputs."}]}Subject: 4bb19af...707b015, diff digest 1f75a6688eec333bc7cc6fd0c91bf833784b5d6d7f669322a4dc10d6577351b1, 1 call(s). An AI comment is not an approval. |
707b015 to
2c95db1
Compare
f98ebd1 to
8ba58f9
Compare
af4359d to
87f7124
Compare
AI review (findings)Looking at the diff, I'll examine each changed file for bugs, security issues, and inconsistencies.
A concrete bug in the Node.js script used to locate each package's manifest directory: dir=$(printf '%s' "$meta" | P="$p" node -e '
...
if (m) process.stdout.write(require("path").dirname(m.manifest_path));
') || { echo "031 3.9.1: could not read $p's manifest path from cargo metadata" >&2; exit 1; }
f="$dir/$p.cdx.json"
if [ -z "$dir" ] || [ ! -f "$f" ]; then
echo "031 3.9.1: no SBOM was generated for $p (expected $f)" >&2
exit 1
fiWhen the package name is not found in the metadata JSON, the Node script exits 0 (success) and writes nothing to stdout. The
Increment 3 text accurately describes the implemented behavior (pure function, two-run digest identity, SBOM per member from run a, manifest evidence requirements). {"head": "87f71247bbf398efce35a1ac834a527ae4034390", "verdict": "findings", "findings": [{"path": "tools/rustev-release/candidate.sh", "line": 115, "summary": "When a package name is absent from cargo metadata, the Node.js script exits 0 and writes nothing, so `dir` becomes empty and the subsequent error message reports a nonsensical expected path (`/$p.cdx.json`) instead of the package's actual manifest directory."}]}Subject: 8ba58f9...87f7124, diff digest 731de1ddd6dc6ac8c5c39df268dd71d114af97858c8eb9bda629170ad903457f, 1 call(s). An AI comment is not an approval. |
8ba58f9 to
2434e49
Compare
87f7124 to
8eafab3
Compare
AI review (no-findings)Reviewing the PR, which adds changelog.rs — changelog.rs — changelog.rs — main.rs — candidate.sh — SBOM flow: Makefile — Redundant filter: No concrete bugs, security problems, or governance inconsistencies found. {"head": "8eafab35bd19cdee29dc3a515a78ae3639038468", "verdict": "no-findings", "findings": []}Subject: 2434e49...8eafab3, diff digest f9e5f1000ad0a3e86eb73ca122803615a2cdd5eb92b7b8f3107b6ae3ba9c4aff, 1 call(s). An AI comment is not an approval. |
da2933e to
8ff8e80
Compare
8eafab3 to
b77a39f
Compare
AI review (findings)ReviewFinding 1 — Makefile: shell injection via
|
AI review (findings)Reviewing the six changed files for concrete defects.
The new text reads: "For the first release it lists all 47 specs." The repo context at the base commit lists spec-registry shards for No security issues found. The {"head": "b77a39f051ae918b78e566c60b4d4d90b8c67aa1", "verdict": "findings", "findings": [{"path": "tools/rustev-release/src/changelog.rs", "line": 244, "summary": "Removed specs are appended after all changed/new specs rather than merged in combined ID order, so a low-numbered removed spec appears after higher-numbered changed specs in the generated markdown."}, {"path": "specs/031-public-api-and-release-family/spec.md", "line": 724, "summary": "Increment 3 states 'all 47 specs' for the first release, but the corpus at this commit contains 48 non-bootstrap specs (001–048), making the count incorrect by one."}]}Subject: 7d65c1b...b77a39f, diff digest 1c79b99bb6e7519ac92a21174e562502447e2150a5dd219d2c642f7d32e0a5e6, 1 call(s). An AI comment is not an approval. |
rustev-release changelog generates the release changelog from spec-spine registry queries at HEAD and at the previous tag, with the compatibility facts of 3.6 and 3.7; deterministic over fixed inputs.
b77a39f to
7484476
Compare
AI review (no-findings)Reviewing each changed file in turn. Makefile The specs/031-public-api-and-release-family/spec.md Increment text is internally consistent with the implementation. The claim "For the first release it lists all 47 specs" is documentation, not a code path — not flagging it. tools/rustev-release/candidate.sh The Node inline script passes the package name via tools/rustev-release/src/changelog.rs
tools/rustev-release/src/main.rs
No defect found. {"head": "74844762298e799a48808a82bdf4c73177c1ca3a", "verdict": "no-findings", "findings": []}Subject: 7d65c1b...7484476, diff digest 268e8fbff620fb41e236ef642829606bd1309e2ac88a3ca46eb590052967ef1f, 1 call(s). An AI comment is not an approval. |
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 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'sPlanId(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 changedPlanId, 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 viagit archive, never from.statecraft/derived/directly) and prints the changelog's digest.candidate.sh: requirescargo-cyclonedx0.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 eachsbom-<member>.cdx.jsonandchangelog.mddigest; a missing one fails the candidate.#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 changelogat one commit twice gives byte-identical output (47 specs for the first release, both referencePlanIds listed).cargo cyclonedx0.5.9 run on the workspace writes<member>.cdx.jsonfiles with no serial number and theSOURCE_DATE_EPOCHtimestamp. 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):
changelog.mdwas reported under "031 3.9"; each evidence file now carries its own clause (SBOMs 3.9.1, changelog 3.10).git ls-files --others --ignored) could never match, since the generated files are untracked but not ignored; it is removed, and the lookup is thefind(outsidetarget/) that always did the work.Rebased onto #143's review rounds.
Review round 2 (2 findings, fixed):
git archiveortarfailed (?returned first); the three steps are now chained and their result taken after the directory is removed.findmatch. It now requires exactly one<member>.cdx.jsonoutsidetarget/and fails naming the count and paths otherwise (cargo cyclonedxwithout--target-in-filenamewrites one per member, which the local run showed).Rebased onto #143's round 4.
Review round 3 (3 findings, fixed):
cargo cyclonedxstopped the candidate with its output only insbom.log; the log is now printed to stderr first.3-10-changelog-from-implementation-recordsfrom approved-text detection. It now matchesimplementation-recordor a numbered<n>-implementation-recordexactly; 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):
command_linereturnsstdout.trim(), so it cannot; the generated changelog's first line showed the bare hash. A comment at the call now says so.is_implementation_recordnow drops every leading<digits>-group, so3-2-implementation-recordcounts as the record too; the unit test covers it.Review round 5 (3 findings, fixed):
make changelogpassed$(PREVIOUS)unquoted; it is now quoted when given and omitted when not (make -nshows both forms).mktemp -d(fresh, private), with nothing removed beforehand.Rebased onto #143's round 5. Local note: the run of
changelogagainst a previous ref after this change is waiting on this Mac'ssyspolicyd, which has held the freshly built binary in_dyld_startfor 30 minutes; the first-release path ran earlier.Review round 6 (3 findings, fixed):
find(twice); each member's SBOM path now comes from its manifest directory incargo metadata, so there is no search to race or miscount.git showfailure for a previousPlanIdread as "unchanged"; a golden absent at the previous release isNone, and one present but unreadable (or without aplan_id) is an error.amendsis now listed, with a unit test.Rebased onto #143's round 6. Locally against
origin/mainas the previous ref (after round 5): 3 specs listed as changed, bothPlanIds unchanged, and the temporary tree removed.Review round 7 (2 findings, fixed):
### <id>: <title>from the previous registry, with a unit test.nodeis on PATH first and says so, rather than reporting a missing SBOM.Local note: this Mac's
syspolicydcurrently holds new build scripts and test binaries in_dyld_startfor 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 withais 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 checkgolden at HEAD without aplan_idwas skipped silently while the same condition at the previous release was an error; both are errors now (everyplan checkgolden carries one).Review round 10 (1 finding, mistaken, answered in the diff): "
cargo cyclonedxneeds--workspacein a virtual workspace." The pinned cargo-cyclonedx 0.5.9 has no such flag:cargo cyclonedx --workspaceexits with "unexpected argument '--workspace' found". Run at the root of this virtual workspace, it writes<name>.cdx.jsonbeside every member's manifest (the local run did, for every member). The candidate then requires each release member's file by itscargo metadatapath 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):
make changelograncargo run ... field targettwice 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.cargo metadatafailure 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 $#'prints0. 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 metadatagave an empty directory and the message "expected /.cdx.json"; the lookup now fails, and the candidate says "cargo metadata lists no package ".Rebased onto #143's round 12.
Rebased onto
mainafter #143 merged (derived shards only).Review round 14 (2 findings, fixed):
make changelogspliced$(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.SPEC_SPINEcould point the changelog at any binary; the generator now accepts a spec-spine only when--versionequals the exact pin inspec-spine.toml(=0.31.0), whichever path supplies it.