Repository navigation
Add the rule to wait for the event that ends the work - #5990
Merged
Merged
Conversation
The tests had a rule against depending on speed (tests/AGENTS.md, "Results do not depend on execution speed"); the product had none. A review of Leaf's timers found five that could fail work a slow machine would finish, each of which this rule rules out. Max picked this wording from a draft on the review's page.
leaf-agent
approved these changes
Nov 14, 2026
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.
Adds "Wait for the event that ends the work" to the root
AGENTS.md's cross-runtime invariants: code waits for the event that ends the work, and a deadline stands only where an outside party imposes one or to cap a cost, as that party's whole budget, at least ten times above the work on a loaded machine, taking a slower path on expiry where one exists.The tests already had this rule (
tests/AGENTS.md, "Results do not depend on execution speed"); the product had none. A review of Leaf's timers that Max asked for found five that could fail work a slow machine would finish, each of which the rule would have ruled out: the prompt hook's 5 s server start (removed in #5973), the browser's 10 s state read (removed in #5975), the Codex adapter's two 20 s bounds, and the render check's 180 s wall-time cap. Max picked this wording from a draft on the review's page.No tests; prose only.