Minor Changes
- c440e50: Add opt-in audience-specific instruction paths and make
agent-native.config.tsthe canonical typed config filename.
Patch Changes
-
c440e50: Stop a refused database connection from immediately producing another attempt.
Neon rejects a connection attempt, not a connection: "Failed to acquire
permit to connect to the database. Too many database connection attempts are
currently ongoing." A failed acquire leaves the pool with zero idle clients, so
the nextexecute()callsconnect()again — andretryOnConnectionError
backs off only 100ms. The process answered each refusal by manufacturing the
next attempt, which is what kept the refusal true; production stayed wedged
until the compute was restarted by hand.Every Neon pool now passes through
guardNeonPool(renamed from
attachNeonPoolErrorLogger), which holds a short jittered per-endpoint
cooldown after a failed attempt. Checking out an already-idle client is not an
attempt and still succeeds, so a cooldown degrades throughput instead of taking
a warm instance offline.DbConnectCooldownErroris deliberately not
classified as a connection error, so the retry loop exits instead of re-entering
the storm, and it reads as transient so shed load surfaces as 503 rather than 500. Tune withDB_CONNECT_COOLDOWN_MS.The added
urlargument makes any pool that skips the gate a compile error
rather than a silent bypass. -
c440e50: Offer local source-code handoffs to external coding agents instead of the Builder waitlist.