Repository navigation
impl(061): increment 5, host baselines, reproducibility and selection in the CLI - #495
Conversation
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies.
The // reproducibility (line ~350 in host_sets.rs)
let (baseline, base) = bound_baseline(&s, p)?; // verifies baseline ↔ importThe // select (line ~430 in host_sets.rs)
let baseline: HostBaseline = s.doc(p.req("baseline"))?;
let base = ImportFiles::read(&s, p.req("baseline-eval"))?;
// ← no verify_baseline / bound_baseline call
let selection = host_select::evaluate_selection(
&gate, &baseline, &base.evidence(&base_runs), &candidates,
)?;The spec text in the same PR states that the host path "verifies the host baseline against its import output" and No other concrete defects found. (The TOCTOU pattern in {"head": "a69546e9efa3f9b8a5955427676720acdd1a209c", "verdict": "findings", "findings": [{"path": "crates/rustev-cli/src/host_sets.rs", "line": null, "summary": "The `select` function reads the baseline and its import output but never calls `host_select::verify_baseline` (via `bound_baseline`), so a tampered baseline is accepted silently for selection, unlike `reproducibility` which explicitly verifies via `bound_baseline` before proceeding."}]}Subject: 0e4a27d...a69546e, diff digest 2fee3fd62c7baa54049a06c6a694d87bb4f59c59ce1f375f9823222b9ad67e5c, 1 call(s). An AI comment is not an approval. |
0e4a27d to
a89466b
Compare
a69546e to
f486fe2
Compare
AI review (no-findings)Reviewing the diff for bugs, security problems, and inconsistencies.
Spec 061 increment 5 text No concrete defects found. {"head": "f486fe280dde2a6f19da74c49e8d07cc0d749476", "verdict": "no-findings", "findings": []}Subject: a89466b...f486fe2, diff digest ed28a5362fdd4afd5d89efb07422ce71d77ac8a5003f3ef82c49b8b4ca2948b0, 1 call(s). An AI comment is not an approval. |
a89466b to
6309789
Compare
f486fe2 to
20be5c6
Compare
AI review (no-findings)Reviewing the diff for spec 061 increment 5: host baselines, reproducibility, and selection in the CLI.
Golden files — the stdout and JSON goldens are consistent with the described behaviors (exit codes 0/11/12/13, No concrete defects found. {"head": "20be5c67e4ed897606e98aca2d69c845b0ba05e3", "verdict": "no-findings", "findings": []}Subject: 6309789...20be5c6, diff digest ed28a5362fdd4afd5d89efb07422ce71d77ac8a5003f3ef82c49b8b4ca2948b0, 1 call(s). An AI comment is not an approval. |
6309789 to
0bfea28
Compare
20be5c6 to
8f1f614
Compare
AI review (findings)Reviewing the PR for spec 061 Increment 5. The changes add host-baseline, reproducibility, and selection CLI paths in Finding:
let Some(bytes) = s
.reads
.read_bounded(path, REPLAY_V1.max_bytes.saturating_add(1))
…
Ok(
rustev_contract::bounded::parse_bounded::<Schema>(&bytes, &REPLAY_V1)
.ok()
.map(|d| d.schema),
)
No other concrete defects were found. The exit-code mapping, lifetime structure of {"head": "8f1f6144d2651f276b605e8aec15942550ee00d9", "verdict": "findings", "findings": [{"path": "crates/rustev-cli/src/host_sets.rs", "line": null, "summary": "schema_of uses REPLAY_V1.max_bytes to read and parse baseline, repeat-report, and cases documents; any file that legitimately exceeds that replay-document limit has its schema silently dropped, allowing a mixed-provenance input to bypass the invalid_input guard."}]}Subject: 0bfea28...8f1f614, diff digest ed28a5362fdd4afd5d89efb07422ce71d77ac8a5003f3ef82c49b8b4ca2948b0, 1 call(s). An AI comment is not an approval. |
0bfea28 to
022de40
Compare
8f1f614 to
1b4e846
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies.
Spec text vs. code: "Leaves a candidate that does not re-assemble to the library, which makes it Golden files and test coverage: The golden stdout values ( No concrete defects found. {"head": "1b4e846ad05d1efc759b95c2e1e84f5534df244c", "verdict": "no-findings", "findings": []}Subject: 022de40...1b4e846, diff digest b6714281157064c2084897ba85b6df0861201cb4aecb42031a74a188125f0a0d, 1 call(s). An AI comment is not an approval. |
022de40 to
a17b737
Compare
1b4e846 to
e270d75
Compare
Spec 061 (host-scored repeat sets, A-77), increment 6 of 6: mutation seeds, declared verification and closure. Stacked on #495 (increment 5). - `crates/rustev-eval/mutation/seeds.py`: the seven acceptance seeds under `spec 061` (joins `OWN_RUNS`): mixed provenance accepted, an unknown latency skipped, unknown cost counted as zero, failed cases included in latency, stable cohorts compared for host sets, `observation: "host"` treated as historical, a duplicate `host.run` accepted. `tests/host_run.rs` adds the unknown-cost case. - Spec 061: the `verify:cli` block, `extends` edges on `Makefile` and `scripts/acceptance/` (001, additive), the increment 6 record and `implementation: complete`. - `Makefile`: 061 in `VERIFIED_SPECS`. `scripts/acceptance/verify.py`: 061 in `cli-backends` beside 029 and 041.
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies.
Golden files: The Spec text: The Increment 5 paragraph correctly summarises the implementation, including the mixed-provenance table, the No concrete defect found. {"head": "e270d755498076bcaad6ff6ed1f13bc6719d32e6", "verdict": "no-findings", "findings": []}Subject: 5feed59...e270d75, diff digest b6714281157064c2084897ba85b6df0861201cb4aecb42031a74a188125f0a0d, 1 call(s). An AI comment is not an approval. |
Spec 061 (host-scored repeat sets, A-77), increment 5:
baseline record,eval reproducibilityandgate selectover host sets, with themixed-provenancerefusals (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 isinvalid_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'sunknown(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).crates/rustev-cli/tests/host_sets.rs, goldens undercrates/rustev-cli/tests/golden/host/(exit codes 0, 11, 12, 13 and everymixed-provenancerow).