Repository navigation
impl(021): the manifest source rule covers the release closure (R-49) - #156
Conversation
AI review (no-findings)Reviewing the four changed files for bugs, security issues, and governance consistency.
The two-phase traversal matches the spec:
The Members themselves are not added to The
The three sub-cases are complete:
The test uses package IDs (not names) as
The 3.4 text amendment and the dated rationale entry are consistent with R-49. The rationale names the new test
R-49 is internally consistent with the code and spec. The "without a resolve graph" fallback is correctly stated. The disclaimer "No release, publication or upload is authorized" is present as required. No concrete defects found. {"head": "07cd08aa2be5ff065d0835ae236f711741742360", "verdict": "no-findings", "findings": []}Subject: 0cc3b1e...07cd08a, diff digest 7b08ac1b82f3f390277c31d42ee7c63ecd404f58664d71f04ee83173c5b0dc75, 1 call(s). An AI comment is not an approval. |
Spec 029 increment 1: the statistics core of evaluation repeatability
(3.3 to 3.5). Library only; no CLI, no repeat set, no live run, provider
call or spend. `implementation: in-progress`; 029 joins `make verify` at
completion.
- `rustev-eval/src/generator.rs`: `xoshiro256starstar-splitmix64/1` on
wrapping `u64` arithmetic (3.4.2), stream seeds through the contract's
`tagged_digest` (3.4.3), the rejection-sampled uniform index (3.4.4) and
run seeds (3.4.6). No dependency added.
- `rustev-eval/src/repeat_config.rs`: `rustev.repeat-config/1`
(`REPLAY_V1`, canonical identity, unknown fields and duplicate keys
refused, no binary64), every rule of 3.3.1.
- `rustev-eval/src/repeat_stats.rs`: per-run values, `mean`, `sd`,
`min`,
`max`, `pooled` (3.3.2, 3.3.3); the case-clustered percentile bootstrap
with exact integer ranks, one stream per cohort, `B * C * N` above 10^9
refused before drawing (3.4); noise bands with their basis (3.5).
Unknown run values, undefined resamples and unknown band inputs stay
unknown, never a default.
- `tests/data/bootstrap/`: `generators.c` (the authors' reference C
implementations, CC0) printed `generators.json`; `reference.py` (Python
3
standard library only, written from the spec text) writes
`expected.json` from `cases.json` with every binary64 as its bit
pattern and checks the C vectors; `python3 -I reference.py --check`
regenerates and compares bytes.
- `tests/bootstrap.rs`: generators, stream and run seeds, index draws,
ranks, statistics and intervals bit for bit against the reference;
the size bound; shape refusals. `tests/repeat_config.rs`: every 3.3.1
rule and bound, identity, bands, and the section 5 rows on a one-run
`captured` band and a zero `deterministic_replay` band.
- `tools/rustev-release/archive-policy.json`: the three new source files
join the reviewed archive list (spec 029 gains an additive `extends`
edge on `tools/rustev-release/`, as spec 026 did).
- Spec 029: frontmatter, increment plan, implementation record and the
engineering choices made by the implementing agent.
Size: about 1,900 authored lines; `expected.json`, `generators.json`,
`cases.json` and the derived shards are generated.
Local verification (macOS arm64): `make gate` passes with spec-spine
0.31.0; `python3 -I reference.py --check` passes. Cargo build and tests
are left to CI here: the shared target was locked by other lanes'
builds.
Round 1 CI: clippy `collapsible_if` in `repeat_config.rs` (fixed).
Review round 1 (1 finding, not a defect, evidence added): the finding
says
`reference.py`'s `total_key` sorts negative values above positive ones.
Python's `^` with the non-negative mask `0x7FFFFFFFFFFFFFFF` keeps a
negative integer negative, so the key is the IEEE 754 total order:
`sorted([1.0, -1.0, 0.0, -0.0, -2.0, 3.5, float('-inf')],
key=total_key)`
gives `[-inf, -2.0, -1.0, -0.0, 0.0, 1.0, 3.5]` with keys
`-9218868437227405313, ..., -1, 0, ...`. To make this checked rather
than
argued, `cases.json` gains a set with negative values and zeros of both
signs (two quantiles and a mean), so the Rust test now compares that
order
bit for bit, and `total_key` carries a comment saying why it holds. Also
in this round: the bootstrap function refuses a seed, level or resample
count outside 3.3.1 (it is public, so it does not rely on the document's
check), and a contribution with a zero denominator is refused.
Review round 2: no findings. Round 2 CI: clippy
`cloned_ref_to_slice_refs` in `tests/bootstrap.rs` (fixed).
Rebased onto `main` after #147 (no conflict).
Review round 3 (1 finding, fixed): the `MAX_DENOMINATOR` comment claimed
the case count was bounded, but nothing bounds it, so a saturating `u64`
sum could in principle saturate. Integer sums are now `u128` (at most
`u32::MAX` per contribution, 64 runs and fewer than 2^64 drawn cases
stay
below 2^102), with no saturating arithmetic left; the record states it.
Round 3 CI: `code` passed, including the bit-for-bit reference test.
Review round 4: no findings. Rebased onto `main` after #156 (no
conflict).
Spec 010, increment 2: the `rustev-aicortex` adapter, a non-released integration. Follows #156 (spec 021 3.4, R-49, merged), which makes the `rustev-aicortex` binding record's item 1 pass; rebased onto `main` after it. Nothing here authorizes a release, publication, live service call, spend or real-user data. ## Changes - `integrations/rustev-aicortex/`: `AicortexContext`, a bounded read of one claim-history page per bound subject under an explicit transaction bound, mapped through a declared projection of 1 to 64 field bindings into attributed snapshot entries (values, conflicts, refusals and missing fields named; no partial history read as complete), and `stage_observation`, an observation proposal with its Rustev lineage staged into the host's `TxnBuilder` and never committed. Aicortex is pinned at the record's revision `6415b765e5267188b4ecf302a93869352e28cccc`, with Rahi `=0.6.0`, which that revision pins. Tests: unit tests of the projection, kind mapping, identities and refusals, and integration tests against a single-voter Rahi 0.6.0 store with Aicortex's schema on loopback. The code is the adapter kept on `wip/010-rustev-aicortex-adapter` (`c776546`), unchanged. - `specs/010-integrations/spec.md`: the `rustev-aicortex` record's item 1 passes under R-49 (its Git dependency is outside the release closure; every release member still resolves from crates.io only), so the record passes every row; `planned: true` is removed from its `establishes` entry; the Verification block runs its tests, clippy and build and the authorization-type grep; the implementation record describes increment 2. - `tools/rustev-release/release-set.json`: `rustev-aicortex` is excluded from the release family. `docs/backlog.md` RUSTEV-015 state. - `tools/rustev-release/tests/manifests.rs`: #156's `a_git_source_only_an_excluded_package_reaches_is_not_judged` asserted exactly one violation when the resolve graph is absent, which held only while no workspace package had a Git source. With `rustev-aicortex` its real Aicortex packages are judged too (`code` failed on `b988788`), so that case now asserts the added package is among the violations and every violation is a source violation. - `Cargo.lock`: regenerated by Cargo for the Aicortex revision and Rahi 0.6.0's graph (Rahi 0.7.1's entries stay; Cargo now names the two Rahi versions explicitly in dependency lists). ## Limitation The adapter pins Rahi 0.6.0 and `rustev-rahi` pins 0.7.1, so one host cell cannot link both until Aicortex adopts Rahi 0.7.1 (record item 1). `rustev-serve` stays unimplemented (its record refuses). ## Review history Round 1 on `374a86b` (stacked on #156): no findings. Rebased onto `main` at `3a238a1` after #156 merged (no conflict, derived shards unchanged). Round 2 on `b988788`: no findings, but the `code` job failed on the manifest test above; fixed in this head. Round 3 on `413c222` (1 finding, rejected with evidence): it read `serde_core` in `uuid`'s dependency list as an unrecognized crate. `serde_core` is serde's own core crate, which `serde` 1.0.220 and later depend on; `main` at `3a238a1` already locks it (`Cargo.lock`: `name = "serde_core"`, `version = "1.0.229"`, crates.io, checksum `67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48`), and `serde` 1.0.229's entry lists it. This PR adds no `serde_core` package entry; only the `uuid` edge is new, because Aicortex enables `uuid`'s `serde` feature. Round 3 rerun on `413c222` (the `code` job had a timing flake in `rustev-remote-http`'s `runtime_batch`, untouched here; run re-run): no findings. Rebased onto `main` at `fd19273` (#155, no conflict). Round 4 on `2a80b7b`: no findings. Rebased onto `main` at `70a6424` (#154, no conflict). Round 5 on `199b201`: no findings; held for the coordinator's merge hold. Rebased onto `main` at `cf6665c` (#151, no conflict; `Cargo.lock` still resolves with `--locked`). Round 6 on `0024f6c`: no findings; held for the coordinator's merge hold. Rebased onto `main` at `70b99ea` (#158): `release-set.json` kept both the new `rustev-otel` exclusion and this one; the manifest tests pass locally (18 of 18). Round 7 on `0550224`: no findings. Rebased onto `main` at `68f40c0` (#161, no conflict). Round 8 on `2ccb9f9` (1 finding, the same `serde_core` question as round 3): the `rustev-aicortex` record's item 1 now states the new `uuid -> serde_core` edge and where `serde_core` comes from, so the evidence is inside the diff. Round 9 on `242c75f`: no findings. Rebased onto `main` at `1b0ce68` (#159, no conflict).
Spec 021 3.4: the manifest source rule covers the release closure (R-49), the owner's choice of route for
rustev-aicortex(spec 010). No release, publication or upload is authorized.Changes
specs/021-packaging-and-first-release/spec.md3.4: "the package graph" is defined as the release closure: every package the eight members reach through a normal, build or development edge, then through normal and build edges from there. A package outside it, which only an excluded workspace package reaches, is not judged by the source rule; without a resolve graph every resolved package is judged. Implementation record: a dated paragraph.tools/rustev-release/src/lib.rs:release_closureand its use incheck_manifests. Every other manifest rule is unchanged, and the dependency audit (3.6, cargo-deny over the eight members) already covered only the members.tools/rustev-release/tests/manifests.rs:a_git_source_only_an_excluded_package_reaches_is_not_judgedadds a Git package to the workspace's own metadata three ways: reached only by an excluded package (passes), reached byrustev-core(fails, the negative control), and with no resolve graph (fails).docs/decisions/00-founding-decisions.md: R-49.Owner decision
R-49: the owner chose, on 2026-10-21, to narrow spec 021's source check to the release closure rather than wait for Aicortex to publish its crates. 021 is approved; this amendment is that owner-approved change. R-46 to R-48 are reserved by parallel lanes, so a gap before R-49 can be expected until they land.
What follows
The
rustev-aicortexadapter (spec 010 increment 2) lands in a separate PR on top of this one; its binding record's item 1 passes once this merges.