Repository navigation
impl(061): increment 4, host baselines, reproducibility and selection in the library - #492
Conversation
AI review (findings)Reviewing the diff across all changed paths: the
let ids = |e: &HostSetEvidence<'_>| -> Option<Vec<String>> {
Some(e.cases.first()?.cases.iter().map(|c| c.case.clone()).collect())
};
if ids(b) != ids(c) { return Err("case lists or order differ".into()); }Only the first element of
Spec increment 4 accurately describes the implementation: The concrete, evidence-supported defect is the case-list check in {"head": "916ebc619e967a3999f65e99b450c63a02f81e3d", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/src/host_select.rs", "line": 296, "summary": "The `ids()` closure uses `.first()?` and so only compares the first run's case list between baseline and candidate; if subsequent runs in either set carry a different case list the precondition 'case list and order' check passes silently."}]}Subject: 7eb1a08...916ebc6, diff digest 8f677641ad44236a74fd03c7f3a92382067213cd581bd1c40c59a634feccb59c, 1 call(s). An AI comment is not an approval. |
916ebc6 to
0e4a27d
Compare
AI review (no-findings)Reviewing the diff carefully across all changed paths.
No finding rises to a concrete defect with clear incorrect behavior: the {"head": "0e4a27d6335737308eced1610d00f0f301ec9194", "verdict": "no-findings", "findings": []}Subject: 7eb1a08...0e4a27d, diff digest 2a64358de4163747afc44fc71730b09b462ac7d1a2ab233184d8a311243db49a, 1 call(s). An AI comment is not an approval. |
7eb1a08 to
470ec4a
Compare
0e4a27d to
a89466b
Compare
AI review (no-findings)Reviewing the diff for spec 061 increment 4: host baselines, reproducibility and selection in
Tests — Cover provenance separation, baseline binding, tampering, reproducibility at and one ULP below the band, selection qualifies/rejects/unknown cases, exit codes, and held-out / post-import-tampering unknowns. The
No concrete defects found. {"head": "a89466b5af7c493b6e35eda4d044824b2024b93a", "verdict": "no-findings", "findings": []}Subject: 470ec4a...a89466b, diff digest 231d5e4eef02d3b64ae4d89e7b5473cba673a2e3e64ac162472ce3a48f7c689b, 1 call(s). An AI comment is not an approval. |
808f0eb to
74be481
Compare
6309789 to
0bfea28
Compare
AI review (no-findings)Reviewing the diff across all changed paths: the new
No concrete defects found. {"head": "0bfea288d373427e94e343e264ed1b54f0f6769b", "verdict": "no-findings", "findings": []}Subject: 74be481...0bfea28, diff digest 09dcc26960cef1f0e5fc3fc1b93fe06012c0550d174c4fd02a5f3732c49d4622, 1 call(s). An AI comment is not an approval. |
74be481 to
36cc344
Compare
0bfea28 to
022de40
Compare
AI review (no-findings)Reviewing the diff carefully against the governance documents and the visible repo context.
No concrete defects found. {"head": "022de40f8e0ce8848df7d9c036fbdc32af22149c", "verdict": "no-findings", "findings": []}Subject: 36cc344...022de40, diff digest 09dcc26960cef1f0e5fc3fc1b93fe06012c0550d174c4fd02a5f3732c49d4622, 1 call(s). An AI comment is not an approval. |
36cc344 to
d4336a0
Compare
022de40 to
a17b737
Compare
… in the CLI (#495) Spec 061 (host-scored repeat sets, A-77), increment 5: `baseline record`, `eval reproducibility` and `gate select` over host sets, with the `mixed-provenance` refusals (3.6.2, 3.7, 3.9). Stacked on #492 (increment 4). - `crates/rustev-cli/src/host_sets.rs`: schema-only provenance routing before any parse (a mix is `invalid_input`, `mixed-provenance`, nothing written), import output read-back, and the host baseline, reproducibility and selection commands. A candidate that no longer re-assembles is the library's `unknown` (`reconcile`), not a refusal. - `crates/rustev-cli/src/repeat.rs`: three early returns into the host path; spec 029's path and outputs are unchanged when inputs are Rustev-evaluated (every existing repeat test and seed anchor untouched). - Spec 061 record paragraph. - Tests: `crates/rustev-cli/tests/host_sets.rs`, goldens under `crates/rustev-cli/tests/golden/host/` (exit codes 0, 11, 12, 13 and every `mixed-provenance` row).
AI review (findings)Reviewing the diff, I'll focus on the new
The spec 061 §3.7.4 precondition is "equal case list and order." The implementation computes let ids = |e: &HostSetEvidence<'_>| -> Option<Vec<String>> {
Some(
e.cases
.first()?
.cases
.iter()
.map(|c| c.case.clone())
.collect(),
)
};
if ids(b) != ids(c) {
return Err("case lists or order differ".into());
}If No other concrete defects were found. The refactoring of {"head": "a17b737980d29f234cff7a50f9aa4e60e4a74240", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/src/host_select.rs", "line": null, "summary": "comparable() uses .first()? and therefore only checks the first run's case list; mismatches in subsequent runs are silently ignored, violating the spec 061 §3.7.4 precondition that case list and order be equal across the whole set."}]}Subject: 9fc59f6...a17b737, diff digest 09dcc26960cef1f0e5fc3fc1b93fe06012c0550d174c4fd02a5f3732c49d4622, 1 call(s). An AI comment is not an approval. |
Spec 061 (host-scored repeat sets, A-77), increment 4: host baselines, the reproducibility check and selection, in the library (3.6 to 3.8).
Stacked on #488 (increment 3). It needs only #486's library, but increment 5 (the CLI) needs both, so the chain stays linear.
crates/rustev-eval/src/host_select.rs:provenance/one_provenance(mixed-provenance, I-1),rustev.host-baseline/1andrecord,reproducibility(3.7.2),rustev.host-selection/1andevaluate_selectionwith the 3.7.4 preconditions (no stable-cohort comparison, decision 4) and 3.7.5 coverage clauses.crates/rustev-eval/src/selection.rs: spec 029's clause, verdict and ranking code moved intojudgeandsort_ranksover aSide, which both selections call.baseline.rs: the 3.9 comparison moved intostability.comparison.rs:check_name_list. No behavior change; every existing selection, comparison and diff test passes unchanged.crates/rustev-eval/mutation/seeds.py: the "unknown selection qualifies" anchor follows the moved line (indentation only).archive-policy.jsonlistssrc/host_select.rs.crates/rustev-eval/tests/host_select.rs.Archive size:
rustev-evalpackages to 782,692 unpacked and 193,712 compressed bytes, under #480's 786,432 and the 196,608 archive bound, with little headroom.