Repository navigation
impl(023): increment 1, the qualification procedure and its refusals - #149
Conversation
AI review (findings)Reviewing the diff across all five changed paths for bugs, security issues, and inconsistencies. dataset.rs — The logic is well-structured. The slice-validation condition report.rs — The three-way consistency check (manifest id == admission dataset == freeze record dataset) is applied redundantly in Concrete defect — misleading doc comment on /// One figure. A ratio carries its numerator and denominator; a value is a
/// spec 004 measurement with its count. Unknown is never a figure.
pub enum Figure {
Ratio { numerator: u64, denominator: u64 },
Value { value: f64, n: u64 },
Unknown { reason: String }, // ← contradicts the doc
}"Unknown is never a figure" directly contradicts the existence of the Mutation seeds All eight seeds target distinct guard conditions, each paired with a test that observes the specific error variant. The seed descriptions correctly identify which spec row and function they exercise. test The Spec update The verification block now names concrete {"head": "90a254a2b9b655ed7c9b7dce85ce7f44eec50996", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/src/report.rs", "line": null, "summary": "The doc comment on `Figure` says \"Unknown is never a figure\" but `Unknown` is a variant of the same enum, directly contradicting the comment and risking removal of the arm by a future maintainer who trusts the documentation."}]}Subject: 1204bc8...90a254a, diff digest c3f2de5aaf07c4618eac59055f96f3ebde33e750f989ecac82d19a485f622e9b, 1 call(s). An AI comment is not an approval. |
90a254a to
26b0200
Compare
AI review (no-findings)I reviewed the five changed files carefully: the new
No concrete defect found. {"head": "26b0200b3ca762e4fc025b2a442e6770d48ba5d6", "verdict": "no-findings", "findings": []}Subject: df053f6...26b0200, diff digest 07863d6ec078c93d3b438203d5250ff8bc12710b48ad6d9e9ef0837ad88c9973, 1 call(s). An AI comment is not an approval. |
26b0200 to
55d9d25
Compare
AI review (no-findings)I'll review the changed files carefully against the governance documents and for code defects.
The
The test fixture uses
The verification block's No concrete defects found. {"head": "55d9d25a1542d6bb762fedcb24b6cdfff60c5c5e", "verdict": "no-findings", "findings": []}Subject: 2d6a1f2...55d9d25, diff digest 07863d6ec078c93d3b438203d5250ff8bc12710b48ad6d9e9ef0837ad88c9973, 1 call(s). An AI comment is not an approval. |
Spec 023 increment 1: what can be built and proven without an admitted dataset. Implementation stays pending; no dataset is admitted and no quality, calibration or usefulness claim is made. - `rustev-eval/src/dataset.rs`: `rustev.dataset-admission/1` with every statement of 3.1 and 3.2, and `admit`, which refuses synthetic manifests (I-1), incomplete records, real-user-derived data without a privacy decision, labels from a system under test or its family, missing labels that do not reconcile, and split, slice or exposure statements the manifest does not hold. - `rustev-eval/src/report.rs`: `rustev.qualification/1` and `freeze` (3.3: admitted data only, the frozen v2 configuration with the admitted rules digest, independent candidate, slice minimums, calibrations qualified off the final test, replacements on a new final test); `measure` (3.4: reports by role on the frozen dataset, split, configuration and bindings, `ConfigChanged` otherwise; coverage and abstention rows before accuracy; slices below their minimum and exposed cases unknown); `regression` through spec 004 gates; `scope_claim` (3.5: the sentence composed from the freeze and admission, another population rejected). - `tests/qualification.rs`: one test per section 5 row on synthetic fixtures, no real data, no network; 8 seeded defects, all detected. - Code sits in existing files so spec 021's reviewed archive list is untouched. - Spec 023: verification block and implementation record, with the limits found (spec 004 reports cannot exclude exposed cases or give per-slice error; cross-qualification regression gates are unknown).
55d9d25 to
2a4243e
Compare
AI review (no-findings)I reviewed the five changed files carefully against the governance context and diff.
No concrete defects found. {"head": "2a4243e3a1657f06a4f174509c9c721c75516a25", "verdict": "no-findings", "findings": []}Subject: 00a4b7c...2a4243e, diff digest 1f28443260f30e00a3c0a9f36a3793b9a23ecd158ca57842ec9ce78e1f19791b, 1 call(s). An AI comment is not an approval. |
…c 001 3.5 confirmation rule (#147) Spec 010, increment 1: the three section 3.4 binding records and the `rustev-rahi` evidence sink. Only `rustev-rahi` is 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 for `rustev-aicortex` (refuses on item 1: its git-revision dependency fails the workspace supply-chain check of `tools/rustev-release`), `rustev-rahi` (passes) and `rustev-serve` (refuses on item 2, Sigstore row unverified). `implementation: in-progress`; the Verification block and the implementation record for increment 1. The `cargo tree | grep` verify loop captures `cargo tree` output first and fails when `cargo tree` fails. - `integrations/rustev-rahi/`: `RahiEvidenceSink` over `rahi-store =0.7.1` receipts, the `rustev` migration set, `stage_erasure`, and a closed `Delivery` outcome (accepted, duplicate, conflict, rejected, unavailable, acceptance unknown). Receipts are `rahi:<durability>:<external_id>:<digest>` and `rahi:duplicate:<external_id>:<digest>`, so the external record identity (3.6.2) reaches the run record through the `EvidenceSink` seam. A `Changed` head without an accepted digest (Rahi reports `""`) and a recorded collision are a conflict with `stored: None`, never `sha256:` 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-retrying `open_with`. - `specs/001-boundaries-and-authority/spec.md` 3.5 and `tools/rustev-boundaries/`: amendment R-45. A transitive violation found in the workspace-wide `cargo metadata` resolution stands only when the crate's own `cargo tree -p <crate> -e normal,build --locked` resolution (every target, or `wasm32-unknown-unknown` for 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 on `crypto-common`'s optional `rand_core` edge, and the unconfirmed checker reported 7 paths ending `rand_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.md` RUSTEV-015 state. `Makefile`: 010 joins `VERIFIED_SPECS`. `tools/rustev-release/release-set.json`: `rustev-rahi` is excluded from the release family. `Cargo.lock`: Rahi 0.7.1's graph added, no existing entry changed. ## Owner acts 1. **R-44 / A-45: confirmed.** The owner confirmed the three written binding records as this PR states them on 2026-10-21; the decision record, spec 010 and the backlog say so. 2. **R-45: approved.** The owner approved the spec 001 3.5 amendment on 2026-10-21; R-45, A-45 and 001's decision history say so. Not in this PR: any `rustev-aicortex` code. 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 the `rustev-aicortex` record here still refuses on item 1. ## Recorded, no code change - With `AcceptanceUnknown` the store's own error (for example `Io`) 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; the `rustev-rahi` record 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::Unavailable` after 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 on `467b33a` (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::Conflict` carried the placeholder `another digest` where the record says no digest is reported, so `stored` is now `Option<String>` and the seam detail names no digest. Round 6 on `cc9afd4`: no findings. The branch is rebased onto `main` at `4552b3e` (#149, no conflict; derived shards unchanged by `make refresh`) and squashed to one commit.
Spec 023 increment 1: the qualification procedure and its refusals, built and proven on synthetic fixtures without an admitted dataset. Spec 023 stays
implementation: pending: no dataset is admitted, no qualification exists, and nothing here makes or implies a quality, calibration or usefulness claim.crates/rustev-eval/src/dataset.rs:rustev.dataset-admission/1(AdmissionRecord, identified by its digest) with every statement of 3.1 and 3.2, andadmit, the only way to make anAdmitted. It refuses a synthetic manifest (I-1), a record for another manifest, any empty statement, real-user-derived data without a privacy decision, a model labeler that is a system under test or of its family, another adapter, a source label mapped twice, missing labels that do not reconcile with the manifest, split counts or slice sizes the manifest does not hold, and exposed cases outside the final test.crates/rustev-eval/src/report.rs:rustev.qualification/1(QualificationRecord).freeze(3.3): admitted data only; the frozen version 2 evaluator configuration with the admitted rules digest and adapter; an independent candidate; an exact baseline or the reason the task allows none; positive final-test target and slice minimums; frozen calibrations qualified by spec 004'sfit::qualifyagainst the final test; replacements that supply what they supersede on a new final test (3.3.3).measure(3.4): spec 004 reports by role on the frozen dataset, split, configuration and bindings,ConfigChangedotherwise; coverage, exclusions, acceptance, abstention and labeled-proposal rows (numerator and denominator) before error among accepted and probability figures (R-1); slices below their minimum and exposed cases unknown.regression: each frozen gate through spec 004'sevaluate_gate.scope_claim(3.5): the claim sentence composed from the freeze and the admission, with the admission's limits; another population, another freeze's measurement, missing call dates and unknown figures are rejected.crates/rustev-eval/tests/qualification.rs: one test per section 5 row plus the positive path, admission completeness, exposure, report refusals, freeze preconditions and regression (12 tests). Synthetic fixtures only, no real data, no network; every report is built by hand.crates/rustev-eval/mutation/seeds.py: categoryqualification refusals, one seeded defect per refusal; 8 of 8 detected.verify:cliblock and implementation record, including the limits below. Derived shards regenerated.What remains (blocked on owner-supplied inputs): an admitted dataset per task (6.1), its admission and qualification records, the live or retained candidate runs, and the owner's review of each record (acceptance item 2).
Owner decisions:
regressionreports that unknown rather than a pass.dataset.rsandreport.rsrather than a new file, because a new source file would change spec 021's reviewed archive list (tools/rustev-release/archive-policy.json). Moving it to its own module is mechanical once that list may change.Local verification (macOS arm64):
make gate,make code(build, test, clippy-D warnings, fmt, boundaries),.bin/spec-spine verify 023(3 commands: the qualification tests, clippy forrustev-eval, seeds 8/8 detected),bash scripts/check-authored-content.sh.Rebased onto
mainafter #145 merged (derived shards regenerated, unchanged).Review round 2: no findings.
Rebased onto
mainafter #143 and #144 merged (derived shards regenerated, unchanged).