Skip to content

A Claude session can enter an autonomous /loop that waits for human review and holds its Command for hours #2171

Open

Description

@JacobStephens2

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

  1. Disallow scheduling tools in every Harness session: ScheduleWakeup, CronCreate, CronDelete, RemoteTrigger, and the loop/schedule skills. Sessions wait on their own work with Monitor or foreground commands. This closes A Run shows as Silent while its session waits on a ScheduleWakeup or background task #1499 by removing the cause.
  2. Allow ScheduleWakeup but 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.
  3. 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

Activity

  1. added
    bug
    ready-for-human
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions