feat(#512): add epoch-fenced connection lifecycle - #523
Merged
Conversation
This was referenced Jul 28, 2026
Open
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
Phase 1 of #512 establishes one authoritative connection lifecycle before the
application-shell suspension work begins.
ConnectionSession, neverserverVersionteardown with in-shell suspension and absorbs onAuthLost bypasses mandatory authenticated-session teardown #502/Basic-mode teardown requests (KILL QUERY/export-cancel) get the wrong Authorization scheme after credentials clear #520
Review notes
The architecture review found and this branch fixes:
The architecture gate now mechanically rejects
serverVersionreadinessinference in lifecycle/transport/header authority modules and makes
connection-chip projection exclusive to the lifecycle projector/header. The
mounted DOM contract covers all seven lifecycle states.
The lifecycle and execution boundary are deliberately separate. This PR does
not yet preserve the mounted workbench after auth loss; that is the next phase.
Verification
npm test— 188 files, 6,175 tests; 100% statements/linesnpm run check:archnpm run check:typesnpm run buildPart of #512