Repository navigation
TOOLS-146: Use committed state for SQL recovery - #180
Merged
Merged
Conversation
Use validated committed SQLite authority instead of blanket write markers and compensating recovery. Keep unresolved driver ownership quarantined and retain dedicated rotation, initialization, publication and OAuth handoff safety.
Exercise supported stopped dry-run maintenance after generic recovery removal. Preserve exact refusal and no-write checks, distinguish settled pre-BEGIN refusal from uncertain commits, and wait for the independent history opener before proxy assertions.
Historical SQL evidence is no longer a live latch. Preserve server error mapping coverage by injecting lost commit acknowledgment in the owning process instead of relying on retired marker semantics.
Exercise real commit-acknowledgment uncertainty rather than retired marker cleanup, prove known busy BEGIN permits new independent writes after settlement, and wait for optional history before calls whose retained evidence is asserted across restart.
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.
Context
TOOLS-146 replaces blanket per-write filesystem recovery with validated committed SQLite authority. Missing acknowledgment must not undo a committed SQL-only change or permit replay.
Changes
maintenance verify-and-recover-storage; retain strict, nonmutating recognition of historical security evidence.Review Notes
Test Plan
make -C agent-gateway verify— passed (modules, formatting, lint)make -C agent-gateway test-unit— passedgo test -race -count=1 -timeout=5mbatches — passed across affected storage, authority, keyring, OAuth, administration, composition, diagnostics and CLI owners-tags=integration -p 1batch — passed across seven affected packages-tags=e2erecovery/startup/credential/retirement scenarios — passednpm run format:checkandgit diff --check— passed