Your free trial has ended.

Try the live demo or log in .

2d97db78

Created Cancelled

By: ValentinHirschi <valentin.hirschi@gmail.com>

R-B2 residual: set aside an orphan trace of a first checkpoint that never committed; every resume storage refusal is a storage stop

Astra R-B final findings (3) and (4) on rb-final 48226add3: a short write of
the FIRST state.tmp (trace written, no state.bin ever published) left an
orphan ops.bin that every retry refused (spill.rs), and reduce-files
committed that refusal as the chunk result (exit 0, 0 of 12 rows; the next
launch skipped the file).

- spill.rs (Spill::at, no saved state): a non-empty ops.bin with no state.bin
  is set aside as ops.bin.orphan-<utc> (kept, unchanged, for inspection) and
  the request starts afresh. If it cannot be set aside the resume is refused
  as before, now as a storage stop. RUSTRED_RESUME_DISCARD_TRACE=1 still
  truncates. A request with a saved state is unchanged (its trace prefix is
  verified and cut back as before).
- ordered_reduction/mod.rs: a failed resume bind without a state (orphan
  that cannot be set aside, unwritable directory) records a storage stop,
  as the refused restore of a saved state (unreadable state, missing or
  short trace, digest mismatch) already did.
- modular/sampled.rs: the sample store's storage refusals (unreadable store,
  torn tail that cannot be cut, low disk, failed write) record a storage
  stop too.
- So reduce-files never records such a refusal as a chunk result: exit 3,
  no output, the chunk is retried by the next launch.
- Tests: the spill unit test now checks the set-aside (orphan kept byte for
  byte, fresh empty trace); a new unit test: an orphan that cannot be set
  aside (read-only directory) is refused, kept and a storage stop; the
  sample-store refusal tests check their storage stop; the tests that read
  the process-wide stop share one lock (resume.rs); e2e (first-state partial write + single retry,
  three reduce-files launches, refused set-aside and missing trace in
  reduce-files, and all earlier R-B2 arms incl. prior-state recovery) in
  engine-line/rbf2-b/e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub
1 of 1 jobs done 1 Cancelled More jobs to come