Repository navigation
FEAT-001 — write runtime and signed ledger: propose, apply, undo (#170) - #195
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Undo re-validates policy and columns, UPDATE restores only writable columns plus the key, propose never runs DML, atomic claim of a change, owner binding, row locks, key-set check, ledger file hardening. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Refs #170. Stage A of the rest of the issue: the engine-side runtime, without MCP tools yet (stage B).
write_runtime.py:propose(counts and previews with SELECT, never runs DML),apply(explicit approval, atomic claim in the ledger, policy re-check, count equals the proposal and withinmax_rows, primary-key set equal to the proposal's, row locks on PostgreSQL, MySQL and SQL Server, before and after images),undo(UPDATE and DELETE, drift check,forceonly skips drift, policy and columns re-validated).ledger.py: SQLite file with mode 0600, HMAC-signed records (key file orSQLGUARD_LEDGER_KEY), retention and purge.Leaves out #155, #156, versions and release.yml.
🤖 Generated with Claude Code