Add atomic HA credential authority - #23
Merged
Merged
Conversation
rblake2320
marked this pull request as ready for review
July 21, 2026 02:46
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.
Scope
Adds the missing bounded HA
TumblerMapStoresource authority needed by the Enterprise independent-state acceptance lane.This reuses the merged TSK HA protocol. It does not add a second replication protocol and does not make a new HA or promoted-authentication claim.
Evidence
npm testnpx vitest run packages/server/tests/ha-outbox-contract.test.ts(13)npm run test:hotp-outbox -w packages/server(25)npm run test:pg-transactor -w packages/server(27)npm run test:http-outbox -w packages/server(24)npm run test:credential-authorityagainst two independent PostgreSQL 16 instances (48 checks, 9 ordered records, zero duplicate effects, zero stale writes, zero secret-bearing replica records)npm run test:pack(4/4 package boundary)npm run typechecknpm run buildBoundary
A separate provisioning identity installs the DDL, ticket keys, and runtime grants. The application runtime receives only a bounded signer; its database identity has no DDL, authority-table DML, inherited owner authority, or ticket-key read privilege. Public replica state is staging evidence, not an authentication credential. Signed cutover activation, target-only secret reprovisioning, the full multi-site topology/fault/failback matrix, and the production claim remain gated by
selfconnect-enterpriseissue #28.