Repository navigation
impl(010): binding records, the rustev-rahi evidence sink and the spec 001 3.5 confirmation rule - #147
Conversation
AI review (no-findings)Reviewing the PR for the Governance review
Cargo.toml / release-set
No concrete defects found. {"head": "a026dc74400698b6d80273bb9db5885127d51b94", "verdict": "no-findings", "findings": []}Subject: 1204bc8...a026dc7, diff digest 3d5fef3225a3f5341c236272eb8dc2e28e6ea50250a02460196703d0a31cd8df, 1 call(s). An AI comment is not an approval. |
a026dc7 to
45499f6
Compare
AI review (no-findings)I reviewed the diff carefully, checking the new
Cargo.lock checksums vs binding record —
Governance — R-44/A-45 acknowledge the bootstrap order (approval before text; text confirmed in review). Not a code defect. No concrete defects found. {"head": "45499f61f32e6ff02443cf0e7ba840410e1bb9f6", "verdict": "no-findings", "findings": []}Subject: df053f6...45499f6, diff digest 8d7dddaeba44d2495f3b2c1f4b97bafe611b8d348a04f2fa227550204e05f7bd, 1 call(s). An AI comment is not an approval. |
45499f6 to
8e6ab24
Compare
AI review (findings)ReviewGovernance and decision recordsR-44 / A-45 record that the binding text was written by the agent after the owner's approval in a coordinating session ("bindings approved so unblock 010"), with confirmation deferred to review of this PR. The documents disclose this accurately. No governance defect in that alone, but it means this review is the first full check of the written record text against what was approved. Spec 010 binding records
Implementation (
|
35544f4 to
e49ef93
Compare
AI review (no-findings)Reading through the diff carefully, examining the new
No concrete defects found in code, security, or governance consistency. {"head": "e49ef939257641022149d64b1ea15cc7e629881e", "verdict": "no-findings", "findings": []}Subject: 2d6a1f2...e49ef93, diff digest a865a375048647c5827dc5b189e1055ddf3e1183ec618ecd09a7e470a515f6a3, 1 call(s). An AI comment is not an approval. |
Review of e49ef93 (pure rebase of 35544f4; range-diff shows only derived shards and the Makefile context line)Not ready to merge. Three items block, three should be fixed in this PR, and the owner still has to confirm the record text. Blocking
Should fix in this PR
Notes (no change required, but the record should say so)
Verified
For the ownerR-44 and A-45 make this review the moment the owner confirms the written binding records, and this comment is not that confirmation. Rows worth the owner's own read:
|
e49ef93 to
467b33a
Compare
AI review (findings)Reviewing the PR for bugs, security problems, and governance inconsistencies. Boundary tool implements R-45 without owner ratification R-45 in Conflict sentinel string is inconsistent with the binding record's description
{"head": "467b33a671d4d19b9b79dd4a71efc636121e733e", "verdict": "findings", "findings": [{"path": "tools/rustev-boundaries/src/main.rs", "line": 36, "summary": "The R-45 confirmation logic is implemented here (and in lib.rs) but R-45 explicitly states it awaits owner approval of an amendment to the approved spec 001; no ratification entry exists, violating the governance rule that behavioral changes to approved specs require owner ratification before implementation lands."}, {"path": "integrations/rustev-rahi/src/sink.rs", "line": 371, "summary": "The CollisionRedelivered path sets stored to the sentinel string 'another digest', contradicting the binding record item 5 and spec 010 implementation record, which both state this case yields a conflict with no stored digest."}]}Subject: 00a4b7c...467b33a, diff digest 0391d6554083d0d9140d3b611812ef4b0c80104e76b36a5d02c542f85ed424bc, 1 call(s). An AI comment is not an approval. |
467b33a to
cc9afd4
Compare
AI review (no-findings)Reviewing the diff for the
Governance — R-44's circular framing ("owner confirms in review of this PR") is noted, but enforcement of owner acts is outside review scope per the instructions. No concrete defects found. {"head": "cc9afd451b5ffe64e114db67279ee9b3eb267df0", "verdict": "no-findings", "findings": []}Subject: 00a4b7c...cc9afd4, diff digest 2995b97ac5ed715d7e6beacd5b16e5a3040ce5aa9c1103256f57fea3d9b92bcd, 1 call(s). An AI comment is not an approval. |
…c 001 3.5 confirmation rule
cc9afd4 to
39475e7
Compare
AI review (no-findings)I reviewed each changed file for bugs, security problems, and inconsistencies, with particular attention to the new crate (
Boundary checker (
Spec / decision text: R-45 in spec 001 3.5 and the new paragraph in No concrete defects found. {"head": "39475e71c07815c2226ea71c1fcb76d56354d8fd", "verdict": "no-findings", "findings": []}Subject: 4552b3e...39475e7, diff digest 2995b97ac5ed715d7e6beacd5b16e5a3040ce5aa9c1103256f57fea3d9b92bcd, 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 1: the three section 3.4 binding records and the
rustev-rahievidence sink. Onlyrustev-rahiis implemented, because only its record passes every row (3.4.8). Nothing here authorizes a release, publication, deployment, live service call, spend or real-user data.Changes
specs/010-integrations/spec.md: the binding records forrustev-aicortex(refuses on item 1: its git-revision dependency fails the workspace supply-chain check oftools/rustev-release),rustev-rahi(passes) andrustev-serve(refuses on item 2, Sigstore row unverified).implementation: in-progress; the Verification block and the implementation record for increment 1. Thecargo tree | grepverify loop capturescargo treeoutput first and fails whencargo treefails.integrations/rustev-rahi/:RahiEvidenceSinkoverrahi-store =0.7.1receipts, therustevmigration set,stage_erasure, and a closedDeliveryoutcome (accepted, duplicate, conflict, rejected, unavailable, acceptance unknown). Receipts arerahi:<durability>:<external_id>:<digest>andrahi:duplicate:<external_id>:<digest>, so the external record identity (3.6.2) reaches the run record through theEvidenceSinkseam. AChangedhead without an accepted digest (Rahi reports"") and a recorded collision are a conflict withstored: None, neversha256:or a placeholder string. Tests: every item 5 row against a scripted store, and accepted, duplicate, conflict, erased and refused deliveries against a single-voter Rahi 0.7.1 store on loopback, each opened through the bounded port-retryingopen_with.specs/001-boundaries-and-authority/spec.md3.5 andtools/rustev-boundaries/: amendment R-45. A transitive violation found in the workspace-widecargo metadataresolution stands only when the crate's owncargo tree -p <crate> -e normal,build --lockedresolution (every target, orwasm32-unknown-unknownfor the WebAssembly binding) also lists a forbidden package. The check prints how many paths it dismissed, and fails closed: when that graph cannot be read, the violation stands. Declared-edge rules are unchanged. Why: Rahi's graph switches oncrypto-common's optionalrand_coreedge, and the unconfirmed checker reported 7 paths endingrand_core -> getrandom [-> js-sys]for the pure crates and bindings that their own builds do not hold.docs/decisions/00-founding-decisions.md: R-44 and A-45 (binding records), R-45 (the 001 3.5 amendment).docs/backlog.mdRUSTEV-015 state.Makefile: 010 joinsVERIFIED_SPECS.tools/rustev-release/release-set.json:rustev-rahiis excluded from the release family.Cargo.lock: Rahi 0.7.1's graph added, no existing entry changed.Owner acts
Not in this PR: any
rustev-aicortexcode. The owner chose to narrow spec 021's source check to the release closure; that amendment and the adapter follow in a separate PR after this one merges, so therustev-aicortexrecord here still refuses on item 1.Recorded, no code change
AcceptanceUnknownthe store's own error (for exampleIo) does not reach the run record, and the delivery holds its slot for the full delivery timeout. That follows from spec 003 3.9.4's seam, which reports uncertainty only by timing out; therustev-rahirecord item 5 now states the evidence loss.Review history
Earlier rounds on this branch: round 1 (0 findings), round 2 (0), round 3 (1 finding, fixed:
Delivery::Unavailableafter a refused transaction is documented, recorded and tested), round 4 (0). The owner-side review (issue comment 6325417338) items 1 to 6 and both notes are addressed above. Round 5 on467b33a(2 findings, both fixed): R-45 was implemented while recorded as awaiting approval (the owner has since approved it, and the records say so);Delivery::Conflictcarried the placeholderanother digestwhere the record says no digest is reported, sostoredis nowOption<String>and the seam detail names no digest. Round 6 oncc9afd4: no findings. The branch is rebased ontomainat4552b3e(#149, no conflict; derived shards unchanged bymake refresh) and squashed to one commit.