Skip to content

(MOT-3875) feat(shell): write journal + coder::undo / coder::checkpoints - #417

Closed
ytallo wants to merge 1 commit into
feat/edit-fidelityfrom
feat/coder-undo
Closed

(MOT-3875) feat(shell): write journal + coder::undo / coder::checkpoints#417
ytallo wants to merge 1 commit into
feat/edit-fidelityfrom
feat/coder-undo

Conversation

@ytallo

@ytallo ytallo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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

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.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
workers Ready Ready Preview, Comment Jul 6, 2026 11:41am
workers-tech-spec Ready Ready Preview, Comment Jul 6, 2026 11:41am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 008cdf50-2ed4-4caf-ab65-7ba4f924008e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/coder-undo

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

skill-check — worker

0 verified, 32 skipped (no docs/).

Layer Result
structure
vale
ai
render

Four for four. Nicely done.

@ytallo

ytallo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Consolidated into #423.

@ytallo ytallo closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant