Conversation
jserv
force-pushed
the
report
branch
2 times, most recently
from
October 2, 2026 10:09
694b1a7 to
c1a16ac
Compare
ColtenOuO
reviewed
Oct 2, 2026
An interview that reached its end could still lose every score to a Gemini 503 or the report deadline, and the only way back was to sit the whole interview again. The agent now publishes that failure as a provisional report, keeps the frozen assessment in memory for five minutes, and lets the connected candidate ask once for a regeneration with its own five-call pool, so final reporting stays within ten HTTP calls. The wait is 30 seconds, or until the key rotation can answer, and a retry is checked against the keys again when it arrives. The agent answers each request on the control topic as accepted, early or closed, and a candidate who drops has 30 seconds to rejoin before the wait or a regeneration under way is given up. Rejected credentials, schema failures, salvaged reports and a candidate already gone get no window, and the Live session closes after the report as before. The page saves the provisional failure on arrival under one report id per interview, and the final outcome replaces it in local history and in the account, whose saves for one id now land in order, so a crashed or closed tab keeps the failure rather than nothing. A fixed local room whose agent is finalizing refuses a new start as finalizing instead of claiming the server is full. Closes #97
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.
An interview that reached its end could still lose every score to a Gemini 503 or the report deadline, and transport retries were already exhausted by then, so the only way back was to sit the whole interview again. The agent now publishes that failure as a provisional report, keeps the frozen assessment in process memory for five minutes, and lets the connected candidate request one regeneration after a 30-second cooldown (60 for quota, and a missed deadline checks the key rotation too). The regeneration reuses the frozen prompt and state with its own five-call pool, so final reporting stays within ten HTTP calls per interview. The agent answers each request on the control topic as
accepted,earlyorclosed, and the page times the regeneration from its request or the acceptance rather than from its own clock. Rejected credentials, schema failures, salvaged reports and a candidate who already left get no window.docs/provider-cost-and-degradation.mdstates the new retention, call bound, LiveKit minutes and log lines.The page saves the provisional failure on arrival under one report id per interview, and the final outcome replaces it in local history and in the account, whose saves for one id now land in order, so a crashed or closed tab keeps the failure rather than nothing. A fixed local room whose agent is finalizing now refuses a new start as
reason=finalizinginstead ofat_capacity; this includes a reload during an ordinary ending.Verified with
./scripts/test.sh(green; the Chromium/Playwright lanes, cargo-audit and shellcheck skipped locally for missing tools), including an end-to-end test that drives five 503s from a local HTTP server through the offer, an accepted retry and a complete regenerated report on identical prompts in six calls.cargo mutants --in-diffleaves no survivors outside the documented.cargo/mutants.tomlentries for code that only runs against a live LiveKit room. Not exercised against live LiveKit and Gemini credentials. Reload and process-restart recovery remain out of scope, as the doc says.Closes #97
Summary by cubic
Lets a candidate regenerate a report that failed due to a Gemini 503 or the report deadline, without rerunning the interview.
New Features
Bug Fixes
finalizinginstead ofat_capacity.Closes #97.
Written for commit d3afaec. Summary will update on new commits.