Repository navigation
test(067): live conformance cases and their Rust runner (increment 3, part 1) - #557
Conversation
85973dc to
b66292a
Compare
AI review (findings)Reviewing the diff. It introduces new live-case conformance test infrastructure ( Scan results:
No security defects, no governance/ratification changes, no authority changes found. {"head": "b66292ae294b3bcd01c947efc37f3b8eb37b9a4f", "verdict": "findings", "findings": [{"path": "tools/rustev-conformance/src/live.rs", "line": 182, "severity": "low", "category": "correctness", "summary": "path.parent().unwrap() panics on None; safe in practice because dir.0 is always absolute, but no input is named on which it would actually fail."}]}Subject: e8f6653...b66292a, diff digest cd48c4bcad5be1e8fc202a471bf4783ecfc20a169d3420469adaf8d552d967fd, 1 call(s). An AI comment is not an approval. |
|
Review note: the one finding (src/live.rs:182, |
… part 1) A live case kind in the conformance suite: the files eval live and liveRun read, liveRun's camel-case options, the runtime cases' scripted backend scripts and drive steps, and sequential runs on one journal and output directory. The Rust runner resolves the inputs through rustev_surface::live over a real filesystem and runs rustev_live::run on a runtime with scripted backends, a manual clock and the configuration's rule authorizer; each case pins every file under out, the journal and each run's status and code. The six cases of spec 067 3.8.2 (full run, probe-only, probe failure, spend_capped by the run cap and by the journal cap, resume after a mid-run abort) each mirror a rustev-live test and are checked against what it asserts. Surfaces are rust-api for now; the native runner over engine.liveRun follows increment 2b.
b66292a to
ec59624
Compare
AI review (no-findings)Reviewing the diff: a new live-reexecution conformance harness (
fn join(&self, dir: &str, name: &str) -> String {
format!("{dir}/{name}")
}Every other The split: serde_json::to_value(o.split)
.map_err(err)?
.as_str()
.unwrap() // panics instead of returning Err
.into(),The guard at the top of
while b.gated() != count {
tokio::task::yield_now().await;
}With The The 20-second
Expected fixtures — the journal sequence numbers, digest values, checkpoint states, spend accounting, and exit codes are internally self-consistent across all six scenarios (full, probe-only, probe-failure, run-cap, journal-cap, resume). No concrete defect with an input that demonstrates misbehaviour was found. {"head": "ec59624af96d6fa937d3cd7a2e8a457bc9fe8842", "verdict": "no-findings", "findings": []}Subject: 35ab7e5...ec59624, diff digest 8909c088a94d712600eef1f35ed1865fe2b3cfd5c212a4c93b0f1dd8147cafbe, 1 call(s). An AI comment is not an approval. |
Summary
Spec 067 increment 3, part 1: the live conformance cases of 3.8.2 and their Rust runner, in
tools/rustev-conformance(067'sextendsedge, 027 additive). Builds on #549 (the suite depends onrustev-live) and #548 (the input resolution inrustev_surface::live).livebesideruntimein the manifest (Case.live), cases undercases/live/, one shared set of inputs underfixtures/live/(plus the journal-cap case's pre-existing journal, the run-cap live configuration and the resume dataset), expected bytes underexpected/live/<id>/. Generated and blessed bytests/live.rsastests/runtime.rsdoes for runtime cases (RUSTEV_BLESS=1);aggregate()readscases/live/.rustev eval liveandliveRunread,liveRun's camel-case options as paths (3.2.1), the runtime cases'BackendScripts (cost model and bound declared per backend, 3.3.1), drive steps (wait_gated,release_all,abort) and sequential runs on one journal and output directory (for resume, 3.7.2).src/live.rs): resolves the inputs throughrustev_surface::liveover a real filesystemHost,rustev_live::run::prepare, a temporarytestingjournal,executeon aRuntimewith the Rust scripted backends, aManualClockand a rule authorizer deciding as the CLI's and the binding's (3.5.1, references<LiveConfigId>#<rule index>). Each case pins every file underout, the journal and each run's status and exit code, without normalization.live.full(evaluated_live),live.probe-only(probed),live.probe-failure(probe_failed, 15, no dataset case sent),live.run-capandlive.journal-cap(spend_capped, 14),live.resume(interrupted, 16, after an abort with an item in flight, then evaluated_live on resume with the completed item not re-sent and the interrupted one incomparable). Each names thecrates/rustev-live/tests/run.rstest it mirrors, andtests/live.rschecks the blessed outputs against what that test asserts.rust-apionly in this part, so the native runner does not meet a case it cannot run; part 2 adds the native runner overengine.liveRun(after increment 2b) and thenativesurface. No acceptance item is claimed yet: 3.8.2 needs both runners.Every existing case, golden and expected file is unchanged;
cases/manifest.jsongains the six cases (cases/is review-excluded and checked bytests/manifest.rs).tests/cli.rsaccepts a.jsonlgolden (the journal) line by line.Spec
067 3.8.2, 3.7.2 (resume), I-3. The implementation record paragraph is held for the spec 067 closure pull request (increment 4), which writes every 067 record paragraph at once, so 067's derived shards do not collide in the queue.
Spec-Drift-Waiver: test tooling under 067's approved
extendsedge ontools/rustev-conformance/(027, additive) for 3.8.2; no spec claim changes here; 067's record and closure land in its increment 4 pull request (coordinated per-spec record policy for 0.6.0, owner preapproval of 2026-11-07).Checks
cargo test -p rustev-conformance --locked(full suite, 20 tests),cargo clippy --workspace --all-targets --locked -- -D warnings,cargo fmt --all --checkandmake gatepass. No live or paid call (R-1): scripted backends only.