Repository navigation
Report the deployment turn's own reading before the Threads panel check - #693
Merged
Merged
Conversation
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.
The deployment gate now reports what the hosted turn did before it reports how Threads drew it. When a turn stops without answering, the failure names the revision the page reached, the activity reading it stood under, and any receipts it collected — instead of claiming a reply failed to become visible when there was never a reply to show.
What the failing run showed
Run 34791817280 deployed successfully and then failed
Verify the exact public release in Chromewith:That message is about the panel, but the panel was fine: it held the reader's own comment and nothing else, because the turn never replied.
verify_agent_turnran its fullTURN_LIMIT(652 s of silence between the release line at 00:15:47 and the traceback at 00:26:39), then raised on the presentation reading before reaching the three checks that describe the turn — andprint_agent_profilesits behind that raise too, so the run published no profile, no revision, no activity trace, and no session reference. Recovering any of that took a separate live reproduction against the deployed release.The change
check_turn_answeredcarries the published/replied/answered checks out ofverify_agent_turn, which now records the visible-reply milestone, prints the profile, checks the turn, and only then raises the Threads complaint. Ordering follows the boundary: the container's admitted reading settles what the turn did, and the panel owes the reader a reply only once one exists. The profile now prints on a stalled turn as well as a healthy one, and the visible-reply error keeps its exact wording for the case it actually describes — a turn that answered on the wire and did not reach the reader's screen.Why the run itself needs no product fix
The site was not broken. f5bec4b5 changes only test modules and
CLAUDE.mdfiles, so it cannot reach the Worker, the container, or the runtime. The preceding commit's run verified the same path in 37 s, and the following commit's run 34793155710 published revision 2 and replied in 12 s. I also drove one turn by hand against release446b8fe9— the exact release the failed run could not verify — 40 minutes after the failure: it published revision 2 and replieddeployment verifiedin about 40 seconds. The stall was a hosted dispatch that produced neither a reply nor a failure receipt, which is the gap the Worker already tracks inworker/src/index.ts("recovers a dispatch when its container disappears or it exceeds the Worker'swaitUntilwindow"). Transient record: #694, so a recurrence of this shape has something to count against.Verification
tests/test_website_server.pygains a case that drivescheck_turn_answeredwith the exact reading the failed run produced — no publication, no replies, activityanswering— and asserts the complaint names the revision and the activity rather than the panel. The module passes end to end (69 tests), andpre-commitis clean on both files. Browser-driven verification of the reordered function is out of reach from CI's sandbox, which cannot launch Chrome; the gate itself exercises it on the next deploy.