You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consumer recording: follow-ups of #571 (grant recheck after the hold, superseding edge cases, back-pressure on other consumers, stream error frames) #574
Follow-ups of the consumer recording switch (#571, PR #573). None of them lets a served request of a recording consumer go without its recorded request; they are the points the last review round and the build left open.
From the last review round (all rated minor)
Grant and alias generation between Open and the first wire call (go/internal/oai/chat.go, the walk). The recording row is opened before the watcher starts, and the watcher checks the grant on its first tick. Opening can take up to its statement deadline, so a grant revoked in that span is noticed later than without recording. Recheck the grant and the alias generation after Open, before the first backend attempt; the same for embeddings and rerank.
A row past retention that is still open (go/internal/llmlog/recordings.go, Finish and the insert's conflict branch). Once the retention run has cleared a row's request body, a later outcome write must not put a response body into it.
A failed superseding write after a revocation (go/internal/oai/record.go, release): count the request as unfinished there too, like the other superseding paths.
A panic between the committed answer and its first byte (go/internal/oai/record.go, end): supersede the committed 200 with the recovery answer the client gets.
Docs (docs/operations.md, "Recording a consumer"): the sentence that a withheld answer can never stay in the row needs the exception the next paragraph already names (the acknowledgement and the superseding write both fail); and recorded counts requests that left flight, so the row-count check holds for rows of requests that have ended — an open row of a request in flight is in the table before it is in recorded.
Two tests that sleep instead of waiting for the state they measure (go/internal/oai/record_route_test.go: the refused row waiting for the recording account; the four captures waiting for a statement slot).
From the build
Back-pressure reaches other consumers. With a slow database, refused requests of a recording consumer hold the gateway's shared in-flight reservation until their row is written (about 10 s at most); meanwhile other consumers can be answered 503 server_overloaded. Measure it under load and decide whether recording needs its own share of the budget.
An error frame inside a running stream. Whether such a frame can carry backend text is not examined; these frames are not part of the recorded answer.
The routes still build the LLM-log body text of a recording consumer before it is dropped (cost, not correctness).
The read-back of the switch after an update reads without a lock when the re-read fails and can show a value that was just switched.
Rejected-request rows of a 413 hold only the declared size: the gateway never reads such a body.
Not checked in #573: a real SIGTERM with recorded requests in flight, the retention run's cost from a million rows on, the latency of refused requests under a slow database.
More open points, from the recordings page (#575, PR #576, v5.91.0):
Backend error text in the log lines of the other pipelines. The translation call of the recordings page seals its errors to class and status (ChainCall.SealErrors), and the retry log line names the kind of error only. The chain's warning line and the LLM-log error column of every other pipeline still carry up to 1 KiB of a backend's error body, which can echo the prompt.
Bytes a backend pushes on an idle connection are logged by Go's HTTP client itself ("Unsolicited response received on idle HTTP channel"); documented in docs/security.md, not closed.
Splitting a recording of very many tiny elements allocates far more than the body (measured: 594 MiB of allocation for an 8 MiB token list); the detail view pages its answer, the peak heap of the split itself is not measured.
Content reads run one after another per process (one slot): several server-admins reading large recordings at once wait for each other.
Not checked in #576: the page in a browser session against the live instance (the routes and the translation were probed over the API on a throwaway consumer's rows).
Activity
GottZ commentedon Nov 27, 2026
More open points, from the recordings page (#575, PR #576, v5.91.0):
ChainCall.SealErrors), and the retry log line names the kind of error only. The chain's warning line and the LLM-log error column of every other pipeline still carry up to 1 KiB of a backend's error body, which can echo the prompt.docs/security.md, not closed.total_transfer_bytes769 000 B — 73 B of room. The next wave with a frontend part will need the documented re-calibration (sum × 1.25) as a visible decision of its own.Not checked in #576: the page in a browser session against the live instance (the routes and the translation were probed over the API on a throwaway consumer's rows).