(MOT-3875) feat(shell): write journal + coder::undo / coder::checkpoints - #417
(MOT-3875) feat(shell): write journal + coder::undo / coder::checkpoints#417ytallo wants to merge 1 commit into
Conversation
Every mutating coder call (update-file, create-file, delete-file, move, apply-patch) records bounded before-images into a per-root journal (journal.dir / max_bytes 64MiB / max_records 500, hot-reloading, oldest-first eviction, raw-byte blob sidecars — binary-safe). The harness fs_scope stamp gains session_id/turn_id so records attribute to the turn that wrote them. coder::undo reverts the last N records or everything a turn changed: restores run newest-first, every path re-validates through the LIVE jail, files that did not pre-exist are removed, and the undo journals its own pre-undo state first — undoing an undo redoes the change. Unrecoverable gaps (oversized images, directory deletes/moves) are reported in skipped, never silently ignored. coder::checkpoints lists the journal (newest first) as the undo picker. Catalog grows to 15.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
skill-check — worker0 verified, 32 skipped (no docs/).
Four for four. Nicely done. |
|
Consolidated into #423. |
Every mutating coder call (update-file, create-file, delete-file, move,
apply-patch) records bounded before-images into a per-root journal
(journal.dir / max_bytes 64MiB / max_records 500, hot-reloading,
oldest-first eviction, raw-byte blob sidecars — binary-safe). The
harness fs_scope stamp gains session_id/turn_id so records attribute to
the turn that wrote them.
coder::undo reverts the last N records or everything a turn changed:
restores run newest-first, every path re-validates through the LIVE
jail, files that did not pre-exist are removed, and the undo journals
its own pre-undo state first — undoing an undo redoes the change.
Unrecoverable gaps (oversized images, directory deletes/moves) are
reported in skipped, never silently ignored. coder::checkpoints lists
the journal (newest first) as the undo picker. Catalog grows to 15.
Refs MOT-3875