feat(deletion): drain post-deletion access credentials - #20
Open
dzdidi wants to merge 1 commit into
Open
Conversation
Signed-off-by: dzdidi <dzdidi@users.noreply.github.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.
Summary
Part 4 of the graceful-deletion stack. Depends on Part 3.
Adds the final credential and final-read lifecycle required before guarded content can be removed.
The change:
The bearer credential is never persisted as plaintext. Retries replay the exact encrypted winner rather than generating a replacement credential.
Contract and risk impact
Migration:
0016_content_lock_access_drains.sqlTime and lease validity are half-open:
now < expires_at. Equality is expired.PostgreSQL samples database time after obtaining the relevant row lock. The in-memory implementation samples its injected clock after obtaining the state fence.
Verification
The following commands were run successfully on the final combined stack:
cargo fmt --all -- --checkcargo test --workspace --all-targets --all-featurescargo clippy --workspace --all-targets --all-features -- -D warningsbash scripts/test-compose-bootstrap.shgit diff --check codex/bitkit-local-e2e-fixes..stack/graceful-deletion/05-executionThe final run included:
locks-servicelibrary: 355 passed;This intermediate slice was not independently rerun after restacking; its isolated CI result should be recorded before merge.
Documentation
Updated:
README.mddocs/LOCAL_OPERATOR_DEMO.mddocs/RUNTIME.mddocs/plans/2026-08-10-graceful-content-lock-deletion.mdexamples/js-sdk/README.mdThe documentation covers final credential issuance, final-read windows, runtime master-key configuration, and local Compose bootstrap behavior.
Checklist