Skip to content

Add the rule to wait for the event that ends the work - #5990

Merged
max-sixty merged 1 commit into
mainfrom
timeout-events
Nov 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
timeout-events

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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.

This was written by Claude Code on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit 28b68d2 into main Nov 15, 2026
5 checks passed
@max-sixty
max-sixty deleted the timeout-events branch November 15, 2026 01:54
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