Repository navigation
fix(llm-helper): a server-side statement_timeout on the audit store's pool; pgweb restarted on failure - #62
Merged
Merged
Conversation
… pool, and pgweb restarted on failure The live drive of the transcript audit store showed a paused PostgreSQL holding the pooled connection's statement, and with it the audit function's mailbox, for the outage's length, while a stopped one failed within the connection timeout as designed; the statement now times out on the server after the same timeout.ms. The development browser did not outlive its database's restart; the up-script restarts it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…as PR #62 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…low-up PR #62) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
acn-ericlaw
added a commit
that referenced
this pull request
Nov 17, 2026
…FC-0012 thread closed, the fact's -D note corrected Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
What
_postgres_audit_storepassesoptions=-c statement_timeout=<llm.transcript.audit.postgres.timeout.ms>to the pool, besideconnect_timeoutand the pool's wait; the test of the connection keys pins the option (the configured and the default case). README row; CHANGELOG Unreleased Changed.dev/postgres-up.shruns pgweb with--restart on-failure.Why
The live drive of the transcript audit store (mercury-composable
docs/test-reports/transcript-audit-live-drive.md, 2026-11-17) showed a stopped PostgreSQL failing a write by type within the connection timeout, as designed, and the sweep repairing the record afterwards - but a paused one, a TCP black hole, holding the pooled connection's statement, and with it the audit function's mailbox, for the outage's length. The statement now times out on the server after the sametimeout.ms, so a stalled database behaves like a stopped one: a logged failure, repaired by the sweep. pgweb exited when its database was stopped under it and did not come back after the restart; the up-script restarts it. In lockstep with the Node pack.🤖 Generated with Claude Code
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com