Repository navigation
impl(043): resumed probes take fresh decision ids - #440
Conversation
A resumed run's probe decisions are live/<run_id>/.probe/resume-<n>/..., so the journal never holds a repeat reservation of a probe attempt id.
AI review (no-findings)Reviewing the five changed files for bugs, security issues, and spec/implementation inconsistencies.
The method collects all attempt keys with the given prefix. The docstring claims "reservation sequence order" but
Non-resume path returns the original
The new decision_id format
Passes
The prose description matches the implementation exactly: No concrete defects found. {"head": "4f7fb55e0e7e5716eba83ed93bae5c81a7c6e378", "verdict": "no-findings", "findings": []}Subject: cf797a0...4f7fb55, diff digest 10d3bd9f33aedd5f02ca6ffd0a44a49e8110c3f5e45b16f854ae870a014d4b92, 1 call(s). An AI comment is not an approval. |
Summary
Spec 043 follow-up: a resumed run's probe calls take fresh decision ids, so the journal never holds a repeat reservation of a probe attempt id.
crates/rustev-live/src/probe.rs: on--resume, probe decisions arelive/<run_id>/.probe/resume-<n>/<binding>/<call>, withnone more than the largestresume-<n>reserved under the run's probe prefix (0 if none). The sequence is read once before dispatch from every reservation, including released and crash-liability ones, so a probe interrupted during a resume is found and the next resume takesn + 1.crates/rustev-live/src/journal.rs:SpendJournal::attempts_with_prefix(crate-private), a typed query over the in-memory reservations; the journal file is never re-read.probe/file names of 3.13.3 are unchanged. No normative change: probe decision ids are fixed only in increment 4's record.Spec: a dated paragraph in 043's implementation record.
Verification
cargo test -p rustev-live --locked(new:resumed_completed_probe_reserves_fresh_ids,crash_mid_resumed_probe_advances_reserved_sequence),cargo test -p rustev-live-crash --locked, clippy-D warningsonrustev-livewith and withoutfault-injection,cargo fmt --all --check,make gate,scripts/check-authored-content.sh.