Repository navigation
impl(061): increment 2, host repeat reports in the library - #486
Conversation
AI review (findings)Reviewing the diff for spec 061 increment 2:
// host_repeat.rs, reassemble
let same_cases = again.cases.len() == cases.len()
&& again
.cases
.iter()
.zip(cases)
.all(|(a, b)| a.record_canonical().ok() == b.record_canonical().ok());
{"head": "e1524a436e92bc77ed8b520e488d03d4202df6d0", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/src/host_repeat.rs", "line": 497, "summary": "reassemble swallows canonicalization errors via `.ok()` when comparing case documents, so if record_canonical() fails on both sides the comparison returns None == None (true), silently bypassing the byte-for-byte reconciliation check required by spec 061 §3.3.4."}]}Subject: f1dfc03...e1524a4, diff digest 7f223ef0e57d377590087423b89a70b447bdd1cfc282dcca6539b26fef46816a, 1 call(s). An AI comment is not an approval. |
e1524a4 to
a9acbc9
Compare
AI review (findings)Reviewing the diff for
Concrete defect — No other concrete defects found. The archive-policy addition, spec increment text, and test coverage are consistent with the implementation. {"head": "a9acbc967a189d5fd90b25512d6cca19ac42a463", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/src/host_repeat.rs", "line": 184, "summary": "check_runs calls .expect(\"bound\") on runs[0].views and run.views (line 194) rather than returning Err, so an HostRunInputs with views: None panics instead of producing the HostError the Result contract requires."}]}Subject: f1dfc03...a9acbc9, diff digest 39ee8e0e609ae9d066a649bceef1920e095762ffee5d0dd6b8eceae9571cd82d, 1 call(s). An AI comment is not an approval. |
f1dfc03 to
8bab679
Compare
a9acbc9 to
771c140
Compare
AI review (no-findings)Reviewing the PR, which adds
The extraction of Other items
No concrete defects found. {"head": "771c140164cc38a4d6731088e46aeb4947bc0474", "verdict": "no-findings", "findings": []}Subject: 8bab679...771c140, diff digest 2efdc544f8e291628597db06c56a953c1fd8471a0c37bcd34559ffffde9a481b, 1 call(s). An AI comment is not an approval. |
771c140 to
2fadb8e
Compare
AI review (no-findings)Reviewing the PR: new
No concrete defects found. {"head": "2fadb8e71a1bc23275fbb959392ebb68d56239ba", "verdict": "no-findings", "findings": []}Subject: 3ab57f8...2fadb8e, diff digest 2efdc544f8e291628597db06c56a953c1fd8471a0c37bcd34559ffffde9a481b, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the diff across all changed paths.
No concrete defect found. {"head": "2fadb8e71a1bc23275fbb959392ebb68d56239ba", "verdict": "no-findings", "findings": []}Subject: 3ab57f8...2fadb8e, diff digest 2efdc544f8e291628597db06c56a953c1fd8471a0c37bcd34559ffffde9a481b, 1 call(s). An AI comment is not an approval. |
2fadb8e to
f45a5b5
Compare
AI review (no-findings)Reviewing the diff for
The original let across = |m: &str| -> Option<Vec<Figure>> {
(!derived(m)).then(|| { runs.iter().map(|r| { … }).collect() })
};And
let views = runs[0].views.expect("bound");If a caller supplies a
The closure returns Spec text vs implementation The spec describes No concrete defects found. {"head": "f45a5b569e3d18d57fc08c082ecce7f122c5644e", "verdict": "no-findings", "findings": []}Subject: a3c1eab...f45a5b5, diff digest 2efdc544f8e291628597db06c56a953c1fd8471a0c37bcd34559ffffde9a481b, 1 call(s). An AI comment is not an approval. |
Spec 061 (host-scored repeat sets, A-77), increment 3: `rustev eval repeat import` (3.2). Stacked on #486 (increment 2), which this depends on. - `crates/rustev-cli/src/host_sets.rs`: reads `--repeat-config`, `--config` and each `--run` directory (`host-run.json`, `views.json`, `scores/`), calls `host_repeat::import`, and writes the import output of 3.2.5 all or none through spec 029's staged, no-clobber publication. Stdout `imported` labels every figure `host-asserted`. - `crates/rustev-cli/src/args.rs`, `lib.rs`: the command path and help line. `repeat.rs`: its session, directory listing and publication helpers become crate-visible, unchanged. - `crates/rustev-eval/src/host_repeat.rs`: an unknown pooled figure caused by one case names the run and case. - Spec 061 record paragraph; `archive-policy.json` lists `rustev-cli`'s `src/host_sets.rs`. - Tests: `crates/rustev-cli/tests/host_sets.rs`, goldens under `crates/rustev-cli/tests/golden/host/` (outside the harvested conformance goldens: no binding surface runs host commands, 3.10).
… in the library (#492) 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/1` and `record`, `reproducibility` (3.7.2), `rustev.host-selection/1` and `evaluate_selection` with 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 into `judge` and `sort_ranks` over a `Side`, which both selections call. `baseline.rs`: the 3.9 comparison moved into `stability`. `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). - Spec 061 record paragraph; `archive-policy.json` lists `src/host_select.rs`. - Tests: `crates/rustev-eval/tests/host_select.rs`. Archive size: `rustev-eval` packages to 782,692 unpacked and 193,712 compressed bytes, under #480's 786,432 and the 196,608 archive bound, with little headroom.
Spec 061 (host-scored repeat sets, A-77), increment 2: host repeat reports in the library. The CLI import (
rustev eval repeat import) follows as increment 3; the plan in the spec record is revised accordingly.Stacked on #484 (increment 1), which this depends on.
crates/rustev-eval/src/host_repeat.rs:rustev.host-repeat-report/1,import(3.2.3 cross-run checks:mixed-runs,duplicate-run;top-k-not-observed; 3.4 statistics, 3.5 labels; 3.8 held-out unknown) andreassemble(3.3.4,reconcile).crates/rustev-eval/src/repeat.rs: spec 029's per-cohort loop moved, unchanged in behavior, intocohort_reports, which both Rustev and host sets call. Every existing 029 eval test passes unchanged.archive-policy.jsonlistssrc/host_repeat.rs.crates/rustev-eval/tests/host_repeat.rs, including the acceptance item that a host set's statistics equal 029's functions over the same measures, bit for bit.Archive size:
rustev-evalstays under the 786,432 bound of #480.