Skip to content

Report the deployment turn's own reading before the Threads panel check - #693

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-34791817280
Sep 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-34791817280

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

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 Chrome with:

RuntimeError: https://leaf.page/examples/triage-board/ reply never became visible in Threads: {'panel': True, 'messages': [{'author': ['lf-msg', 'user'], 'hasText': True, 'visible': True}]}

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_turn ran its full TURN_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 — and print_agent_profile sits 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_answered carries the published/replied/answered checks out of verify_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.md files, 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 release 446b8fe9 — the exact release the failed run could not verify — 40 minutes after the failure: it published revision 2 and replied deployment verified in 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 in worker/src/index.ts ("recovers a dispatch when its container disappears or it exceeds the Worker's waitUntil window"). Transient record: #694, so a recurrence of this shape has something to count against.

Verification

tests/test_website_server.py gains a case that drives check_turn_answered with the exact reading the failed run produced — no publication, no replies, activity answering — and asserts the complaint names the revision and the activity rather than the panel. The module passes end to end (69 tests), and pre-commit is 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.

@max-sixty
max-sixty merged commit 16d16ca into main Sep 14, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-34791817280 branch September 14, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants