Repository navigation
fix(sqlite): address Action Audit WAL contention and bounded Session recovery - #1457
Draft
twincelin-bot wants to merge 1 commit into
Draft
twincelin-bot wants to merge 1 commit into
twincelin-bot wants to merge 1 commit into
Conversation
…sions Reserve audit write transactions before inventory reads, bound retries for transient lock contention, and retry pending session persistence without requiring a new mutation. Add concurrent-write and recovery regression tests.
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.
Summary
Related to #1456; follow-up to the merged Session WAL reservation fix in #1452 (which closed #1451). This draft is for design feedback, not a request to merge yet.
Evidence
Issue #1456 contains redacted runtime observations and an isolated SQL-level reproduction. The remaining audit risk on current unpatched main is inferred from source and the SQL fixture, not a confirmed production reproduction on that revision. Historical failures cannot all be attributed to this mechanism.
Validation
Base:
13e4e1840cc8af52b6f2d109cc98513c8c145274.cargo test --locked -p webcodex-store -p webcodex-workflow-session --lib -- --test-threads=2on isolated Linux fixtures:The four new focused tests also passed separately (not counted twice). The upstream WAL regression passed.
git diff --checkpassed.Limitations and review questions
Prepared with coding-agent assistance and reviewed against the focused module test results. No private environment logs or credentials are included.