feat(db): add durable identity binding lifecycle - #4772
Draft
cea-block wants to merge 5 commits into
Draft
Conversation
Preserve published binding history while projecting authoritative lifecycle state into additive tables. Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Serialize binding transitions and retain tombstone authority across enrollment, rotation, and revocation paths. Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Exercise lock ordering, restart boundaries, and migration ambiguity with deterministic checkpoints. Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Fail closed across database and relay authority paths when identity state is ambiguous, stale, revoked, or unreadable. Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
This was referenced Aug 4, 2026
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.
Why
Identity bindings need durable migration state and serialized lifecycle transitions so authorization remains fail closed during enrollment, rotation, revocation, restart, and ambiguous legacy state.
What
Risk Assessment
Medium. This adds a database migration and changes authorization paths. The migration is additive, ambiguous state fails closed, and deterministic tests cover rollback and restart boundaries.
Testing
cargo test -p buzz-db identity_binding -- --ignored --test-threads=1— 22 passedcargo test -p buzz-db identity_lifecycle -- --ignored --test-threads=1— 17 passedcargo test -p buzz-db identity_0029 -- --ignored --test-threads=1— 11 passedjust ci— changed-area checks passed; the full command remains blocked by a pre-existing mobile follow-mode test failure reproduced on the base branchReferences
Generated with Codex