Establish exact PostgreSQL connection identities and leases - #1754
Draft
Zetazzz wants to merge 1 commit into
Draft
Establish exact PostgreSQL connection identities and leases#1754Zetazzz wants to merge 1 commit into
Zetazzz wants to merge 1 commit into
Conversation
Zetazzz
force-pushed
the
agent/pg-checkout-sanitation
branch
from
September 6, 2026 02:24
b96752d to
3ed4803
Compare
Zetazzz
force-pushed
the
feat/exact-pg-identity-notification-broker
branch
from
September 6, 2026 02:28
1326b6d to
b1e5666
Compare
Zetazzz
force-pushed
the
agent/pg-checkout-sanitation
branch
from
September 9, 2026 04:27
3ed4803 to
aa8ee79
Compare
Zetazzz
force-pushed
the
feat/exact-pg-identity-notification-broker
branch
from
September 9, 2026 04:30
b1e5666 to
f2bcd12
Compare
This was referenced Sep 9, 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.
Pool reuse now uses an opaque process-local HMAC of the complete connection contract: driver generation, target, credentials, TLS, pool policy, purpose, and checkout behavior.
acquirePgPooladds an idempotent lease; leased pools survive LRU/TTL eviction, capacity admission fails when no pool can be safely reclaimed, and teardown awaits detached disposals. The compatibilitygetPgPoolAPI and database cleanup aliases remain available.This PR now contains only connection identity and lease ownership. The original notification role/broker commits and runtime credential commits are split into separate stacked PRs. It stays on #1752 and preserves the default checkout sanitation contract.
Validation: pg-cache 43 tests, pg-env 5 tests, and 13 real PostgreSQL sanitation/request-context tests passed. Both affected packages build as CJS/ESM; the frozen install passed. Full CI passed all 17 jobs on
f2bcd121cd566bd5c53d9c12571d69cb62ee14e2.Landing order: #1744 → #1752 → this PR → notification broker #1820 → runtime wiring. Runtime wiring additionally depends on #1747's awaited service release. No PR in this stack is merged by this task.
Refs constructive-io/constructive-planning#1693 (F01).
Runtime wiring is now split into #1821, stacked on #1820, with an explicit #1747 release prerequisite.