Repository navigation
test(computer): an agent on a computer sets off triggers and wakes for world events as the clock jumps - #718
Merged
Conversation
…r world events as the clock jumps A multi env of the items server and the desktop computer: the agent's computer calls set off action and state triggers (input calls only), a world event and a scheduled check wake it through the advance-to-next-event hook, a counterpart waits for his working hours, and the computer's clock follows each jump. Part of FD-5421. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
earakely-scale
marked this pull request as ready for review
November 16, 2026 19:59
…ed write Co-Authored-By: Claude Opus 5.5 <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.
Part of FD-5421.
Why
No test ran triggers on a multi env that has a computer. The HB2 spike checked that combination for the Hark bench, and this test keeps what it found from regressing.
What it pins
One slow-tier test,
tst/integration/computer/computer_triggers_test.py, on a multi env of the items MCP server and the shippeddesktopcomputer. A scripted agent calls as roleperson, and the realadvance-to-next-eventhook moves the frozen clock.desktop_computer_clicksets off an action trigger.desktop_computer_wait.worldand sends anotifyonMail.nothing_can_wake_the_agent.virtual_time.The spike's other findings are in the design page, Triggers on Computers, and in FD-5944 and FD-4151. This PR changes no behaviour.
Testing
pytest tst/integration/computer/computer_triggers_test.pypassed on a Linux host with Docker and the local registry. It took 1 min 56 s with the desktop image already composed, and 5 min 26 s composing it from scratch; the slow tier caches computer images.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Adds a slow integration test for computer calls, triggers, scheduled checks, and clock jumps.
Reviews (2) · Last reviewed commit: "test(computer): let the click's state ch..." · Reviewed by Greptile