Harden read-before-edit: durable post-edit anchors and fail-closed apply confirmation - #59
Merged
AnzoBenjamin merged 2 commits intoAug 16, 2026
Conversation
…rwrite Keep whole-file post-edit authority across turns via issuer-bound remint. Grant sticky-from-apply only when a mintable whole-file cap can be surfaced. Classify stale_snapshot from structured errorCodes (path-scoped revoke). Keep context_compacted after unique str_replace so write_file stays blocked.
…teratively Restrict afterHash/covering-action checks to confirmationPaths so excluded no-op snapshots cannot undo an applied subset. Classify SDK stale_state as stale_snapshot, revoke nameless structured stale to every coordinated path, and inspect untrusted tool output with a depth-bounded iterative walk.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hardens the read-before-edit contract: persist issuer-bound confirmed post-edit anchors, keep context_compacted after unique str_replace, restrict afterHash checks to confirmationPaths, classify SDK stale_state as stale_snapshot, and inspect untrusted tool output with a depth-bounded iterative walk.
Commits: 93a6f4f Persist confirmed post-edit anchors; 54aaa33 Confirm no-op snapshots without afterHash veto.
Tested: bun test src/tools/handlers/tool/tests/edit-application-coordinator.test.ts (36 pass); agent-runtime typecheck.
This change is