Implements plan U2 (KTD1/KTD8/KTD12): explicit team/local deployment tiers with fail-closed readiness; DDL+ledger single-transaction migrations with PG advisory-lock serialization and SQLite immediate transactions; unknown-schema refusal; configurable PG pool budget with statement_timeout and sanitized diagnostics.
Also fixes real-PG test defects exposed by the new gate: blind '&search_path=' DSN appends (runmgr/pgbus helpers), pg_trgm per-schema install/drop race, exhausted message-seq retry budget.
Real-service evidence: full suite green twice against local PostgreSQL 18.6+pgvector and Redis 8.10.2 (isolated instance, per-test schemas). Plan ref: proposals/2026-10-11-collaboration-storage-and-distribution.md U2.
Implements plan U2 (KTD1/KTD8/KTD12): explicit team/local deployment tiers with fail-closed readiness; DDL+ledger single-transaction migrations with PG advisory-lock serialization and SQLite immediate transactions; unknown-schema refusal; configurable PG pool budget with statement_timeout and sanitized diagnostics.
Also fixes real-PG test defects exposed by the new gate: blind '&search_path=' DSN appends (runmgr/pgbus helpers), pg_trgm per-schema install/drop race, exhausted message-seq retry budget.
Real-service evidence: full suite green twice against local PostgreSQL 18.6+pgvector and Redis 8.10.2 (isolated instance, per-test schemas). Plan ref: proposals/2026-10-11-collaboration-storage-and-distribution.md U2.
Why: the approved collaboration plan U2 (KTD1/KTD8/KTD12) requires an explicit fail-closed team deployment tier, DDL-and-ledger-atomic migrations serialized across migrators, and a configurable PG connection budget with sanitized effective values.
Evidence: real PostgreSQL 18.6 + pgvector + Redis 8.10.2 local gate - full backend suite green twice with AGENT_PG_TEST_DSN/AGENT_REDIS_TEST_ADDR (isolated svc.sh instance collabtest:8897, redis 6399); SQLite suite green without env.
Impact: config tier+pool keys and validation; store PoolOptions + statement_timeout DSN param + single-transaction migration with PG advisory lock and SQLite _txlock=immediate + unknown-schema-version refusal; app tier guard fail-closed (team requires DSN+auth, no SQLite fallback); CLI flags and explain rows; tests for tier/pool parsing, atomicity fault-injection, racing migrators, old-schema upgrade; fixed pre-existing real-PG test defects (blind &search_path= appends in runmgr/pgbus helpers, pg_trgm per-schema install race, exhausted seq-conflict retries).
Refs: proposals/2026-10-11-collaboration-storage-and-distribution.md U2, KTD1/KTD8/KTD12; R2/R3/R7.
weichen
merged commit 2497508271 into main2026-10-11 03:11:12 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Implements plan U2 (KTD1/KTD8/KTD12): explicit team/local deployment tiers with fail-closed readiness; DDL+ledger single-transaction migrations with PG advisory-lock serialization and SQLite immediate transactions; unknown-schema refusal; configurable PG pool budget with statement_timeout and sanitized diagnostics.
Also fixes real-PG test defects exposed by the new gate: blind '&search_path=' DSN appends (runmgr/pgbus helpers), pg_trgm per-schema install/drop race, exhausted message-seq retry budget.
Real-service evidence: full suite green twice against local PostgreSQL 18.6+pgvector and Redis 8.10.2 (isolated instance, per-test schemas). Plan ref: proposals/2026-10-11-collaboration-storage-and-distribution.md U2.