Skip to content

fix(agents): the waiting brief matches the harness (v0.448.2) - #836

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/waiting-brief
Sep 18, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/waiting-brief

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Follow-up to #834 (which made Monitor governed — this brief now recommends it).

Two false premises, both measured

  • The brief prescribed for i in $(seq 1 12); do … sleep 5; done. claude-code now REFUSES a foreground sleep: Blocked: sleep N followed by …. To wait for a condition, use Monitor with an until-loop… Do not chain shorter sleeps to work around this block. Fleet transcripts show agents hitting that block repeatedly.
  • Its central argument was a ~5-minute prompt-cache TTL. Cache writes on these runs are essentially all 1-hour: instapods 8,793 ephemeral_1h vs 0 ephemeral_5m (~8.8k responses), expresstech ~20k vs 12, instawp all 1h. The "one 10-minute wait costs more than twenty polls" claim doesn't hold.
  • Also: long-running-thing &run_in_background: true ("No & needed", survives across turns, notifies on exit); the 2-minute limit is now a kill or an auto-background depending on build.

Kept: the ~2-minute foreground cut-off, "make each wait earn its turn", "do not read this as batch less", the SINGLE-call scoping, both-lane wiring.

The retired TTL argument (with its original measurement) is preserved in the source comment so it isn't reinstated later. waiting-brief-test.cjs updated to pin the NEW claims and to assert the 5-minute argument does not come back; context-injection-test.cjs learns that timeout_ms is a tool field, not a tool.

🤖 Generated with Claude Code

Foreground sleep is blocked by claude-code and the 5-minute cache premise is
gone (fleet cache writes are ~100% 1h), so the brief now teaches
run_in_background / Monitor instead of a sleep poll loop.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vikasprogrammer
vikasprogrammer merged commit 29a5423 into main Sep 18, 2026
1 check passed
@vikasprogrammer
vikasprogrammer deleted the feat/waiting-brief branch September 18, 2026 05:27
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.

1 participant