Repository navigation
Description
This was generated by AI during triage.
Problem
A Claude implement session can turn itself into an open-ended loop that waits for a human, holding its Command slot for hours.
On 2026-11-13, preview (thirdshift 0.30.0, Claude Code, claude-opus-5-5 high) ran tourbot #2381. The implement session opened PR #2389, marked it ready, and saw all 18 checks pass. It then kept going: its trace shows ScheduleWakeup calls with delaySeconds: 3600, prompt: "<<autonomous-loop-dynamic>>" and the reason "PR unchanged and awaiting human review; hourly heartbeat for reviews or master drift". Wakeups fired at 22:11 and 22:42 UTC. The Run held preview's only Pickup slot for 2h38m until it was stopped by hand. The Console showed it first as Silent, then as Slow.
The <<autonomous-loop-dynamic>> sentinel means the session entered Claude Code's self-paced /loop mode. Nothing in a Ticket run waits for human review, so this loop can only end when its Command is stopped.
The Claude adapter only disallows WebSearch and WebFetch (src/harness/claude.rs:60). ScheduleWakeup, CronCreate, RemoteTrigger and the loop skill all remain available.
Tension with #1499
#1499 records a legitimate use: a session parked on ScheduleWakeup (1800 s) until its own cargo test run finished, then pushed. Blocking ScheduleWakeup outright would remove that pattern; the session would have to wait on a background task with Monitor or a blocking shell command instead.
Decision for the Day shift
- Disallow scheduling tools in every Harness session:
ScheduleWakeup,CronCreate,CronDelete,RemoteTrigger, and theloop/scheduleskills. Sessions wait on their own work withMonitoror foreground commands. This closes A Run shows as Silent while its session waits on a ScheduleWakeup or background task #1499 by removing the cause. - Allow
ScheduleWakeupbut forbid the autonomous loop: reject a wakeup whose prompt is the<<autonomous-loop…>>sentinel or/loop, or cap the total wakeup time a session may schedule. - Prompt-only: tell implement sessions to end once the PR is delivered and never wait for human review. This is weakest, because the session already ignored the Ticket run's natural end.
Also decide whether other Harnesses with scheduling tools (Codex, grok, agy) need the same rule.
ready-for-human: choosing between 1 and 2 decides how sessions are allowed to wait, and it reverses the premise of #1499.
Related
- A Run shows as Silent while its session waits on a ScheduleWakeup or background task #1499: Silent while a session waits on
ScheduleWakeup - Raise the default inbox.silent_minutes from 10 to 31 #1500: raise
inbox.silent_minutes
Activity