derive-reports-survive-partial-runs
IN premise
`cmd_derive` and `cmd_review_beliefs` write partial JSON reports after each round/batch via `_write_derive_report`, so crash recovery is possible from the last completed step.
Summary
Even if the derive or review-beliefs command crashes mid-run, no work is lost — each round's results are saved to disk as they complete, so a restart can pick up from the last successfully written checkpoint rather than starting over from scratch.
Dependents
These beliefs depend on this one:
- derive-resilience-preserves-progress-on-error — The derive pipeline is resilient to partial failures: partial results are persisted via JSON reports after each round, and error states are signaled through return codes (-1 for error, 0 for saturation, positive for progress) rather than exceptions, enabling callers to recover and resume.
Details
| Source | entries/2026/05/08/reasons_lib-cli.md |