You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Run shows as Silent while its session waits on a ScheduleWakeup or background task #1499
A healthy Run shows as Silent whenever its Claude session parks on ScheduleWakeup with a delay longer than inbox.silent_minutes. The silence check counts only Session trace activity. A session waiting on a scheduled wakeup writes nothing until the wakeup fires, even though it is working as intended and its background work is still running.
Evidence (2026-10-27, orchestrate.etadventures.com, thirdshift 0.17.1, Claude Code 2.1.312)
thirdshift show '<…>/commands/pickup/1378-20261027T191002-0400~0IW1wcANzTc54wWF.command.json::pickup-20261027T191002-0400' --json at 19:54 gave, for the dispatched Run of #1378:
The implement session's last records (19:43:04) are:
a ScheduleWakeup call with delaySeconds: 1800 and the prompt "when the full Rust suite (/tmp/full-1378.log) finishes, … push";
the tool result "Next wakeup scheduled for 20:14:00 (in 1857s)", then end_turn.
At 19:54 the claude -p process was alive, its cargo test --no-fail-fast child was running, and /tmp/full-1378.log had been written within the last second. Nothing was wrong. The stage was 2646 s old, inside its Usual range of 2366-3736 s.
Expected
A Run waiting on a scheduled wakeup should not read as Silent before the wakeup is due. latest_event already names ScheduleWakeup, so the delay is in the trace. Some ways to get there:
when the latest event is a ScheduleWakeup tool use, move the silence deadline to the scheduled wakeup time plus the threshold;
count growth in the output files of the session's background tasks;
show a distinct "waiting until HH:MM" state in place of Silent.
The Day shift picks one.
Related
#1495 (same false Silent, for an Experiment's Trials), #815.
changed the title [-]A Run shows as Silent while its session waits on a ScheduleWakeup longer than inbox.silent_minutes[/-][+]A Run shows as Silent while its session waits on its own background work longer than inbox.silent_minutes[/+]on Oct 28, 2026
Triage notes: a second trigger, end_turn with a background task running
The same false Silent shows up without any ScheduleWakeup. This issue is retitled to cover both: a session that is waiting on its own background work writes nothing, so it reads as Silent.
Evidence (2026-10-27, Jacob-MacBook-Pro, Claude Code 2.1.312)
The dispatched Run of #1482, in Pickup run pickup-20261027T195741-0400, PR #1505:
20:24:01: the implement session started cargo test -- --test-threads=3 in the background (task bb2cn7cp9).
20:24:16: it said "Waiting for the local run on the merged head to finish." and wrote a result with stop_reason: end_turn.
claude -p stayed alive and the cargo test child kept running new test binaries, but the task's output file stayed at 0 bytes. Nothing reached the Session trace or the Command log.
thirdshift show … --json at 21:02 gave "health": {"state": "silent", "step": 2, "seconds": 2272, "threshold_seconds": 600}.
So the Run was healthy but read as Silent for about 47 minutes, 38 of them at step 2.
What this case changes about the options above
Deadline taken from ScheduleWakeup: does not apply here, because there was no wakeup.
Counting growth in background tasks' output files: would not have caught it. The output file was empty for the whole run, apparently because the output is buffered.
A signal that covers both triggers: the Session trace's latest record is a result (or a ScheduleWakeup tool result followed by one) while the session's process is still alive. That session is waiting on its own work, not hung. It could get a distinct waiting state in place of Silent, with a longer limit of its own so a task that really hangs still surfaces. The Day shift still picks the approach.
Related
The implement prompt tells the session that ending its turn kills its background tasks. This case shows Claude Code -p does not. Filed separately as #1517.
The silence history in #1500 shows ScheduleWakeup isn't the only cause of this. Four more false Silents came from the same pattern with a background task: the session started a test suite with run_in_background, ended its turn, and woke when the task's task_updated (status: completed) record arrived.
Together with this issue's ScheduleWakeup case (#1378, 28 min), these are the five longest silences out of 147 Runs on orchestrate.etadventures.com. With both kinds of wait handled, no silence on that machine would have run past 10 minutes.
So the fix should cover a session that ended its turn while a background task was still running, not only a pending ScheduleWakeup. Possible signals:
the Session trace's last records are a result with stop_reason: end_turn while a task_started has no matching completion;
changed the title [-]A Run shows as Silent while its session waits on its own background work longer than inbox.silent_minutes[/-][+]A Run shows as Silent while its session waits on a ScheduleWakeup or background task[/+]on Oct 28, 2026
The classifier limitation remains present at Base checkout 9712feb. The reported original Claude sessions were not independently reproduced.
Confirmed evidence:
src/logs/reading/captured_activity.rs:35-60 considers only the owning Command log and current Session trace, bounding quiet age by stage age. Background output files and task lifecycle records do not affect this calculation.
src/logs/reading/health.rs:104-120 assigns Silent once quiet age reaches inbox.silent_minutes and escalates at three times that threshold. It has no scheduled-wakeup or background-wait exception.
src/logs/reading/inbox.rs:938 maps Silent health into Needs you, explaining the misleading attention row.
src/harness/interpretation/stream.rs:3 explicitly recognizes that a result ends a turn without necessarily ending the session. Its TaskState parser at line 91 recognizes task_started, task_updated and task_notification. That existing interpretation is not a health observation of pending waits.
src/logs/reading/selection.rs:403 derives latest_event as condensed display text. Its presence does not mean health knows the wakeup deadline. A robust fix should use structured Session lifecycle evidence rather than matching that display text.
The supplied Trusted comments also establish why narrower fixes are insufficient: a healthy background wait lasted approximately 47 minutes without ScheduleWakeup and with an empty task output file. Raising the threshold to 31 minutes or watching output-file growth alone would miss that case.
Recommended direction
Introduce an explicit, bounded waiting observation covering both a pending scheduled wakeup and a root turn that ended with an unfinished background task. Do not treat process liveness plus end_turn alone as proof of healthy progress. Recommend allowing a scheduled wait until its due time plus the ordinary silence threshold; the Day shift must choose the finite allowance for background tasks without a deadline and the interaction with Slow.
After those decisions, shape one Ticket covering lifecycle interpretation, shared health and Inbox presentation, and time-based refreshes through src/logs/status/watching.rs. Preserve ordinary silence detection when wait evidence is absent, and clear waiting on task completion, failure, cancellation, resumed work or process exit. Avoid relying solely on the bounded tail used for latest_event, which can omit an older task start.
Regression coverage should include both triggers with stale Command and Session files, empty background output, overdue waits, task completion and cancellation, a result without pending work, process death, and parity across status/show JSON and Console Inbox behavior. The proposed waiting exception extends GLOSSARY.md:350 and ADR 0019's file-growth description; amend those explicitly and update the manual and affected hand-written site descriptions.
Validation: cargo test --test run_health -- --test-threads=3 passed (5 passed, 1 ignored). These tests validate existing silence behavior, not the missing wait cases. scripts/affected-tests main passed with 'No changed files; no affected tests.'
Related open issues #1495, #1500 and #1517 address Experiment waits, the default threshold and prompt wording respectively. None replaces this issue. No source or Git-history changes were made, and nothing was written to GitHub.
Questionnaire
For the Day shift: #1499's current health check ignores intentional Claude waits. Both scheduled wakeups and background tasks need coverage; the supplied evidence includes a healthy background wait lasting about 47 minutes with no output-file growth.
Approve the recommended explicit waiting state in status, show and the Console, outside Needs you while within its allowance, or choose another presentation. For scheduled wakeups, should the allowance end at the scheduled due time plus inbox.silent_minutes?
For an unfinished background task without a deadline, what finite maximum wait should apply, measured from the root turn ending with that task still pending? Specify the duration and whether it should be configurable. This determines when a genuinely hung task needs attention while accommodating the reported 47-minute healthy wait.
During an allowed wait, should Slow remain eligible based on the stage's Usual range, or should waiting suppress both Slow and Silent until its allowance expires? This determines whether healthy waits still appear in Needs you.
Activity
[-]A Run shows as Silent while its session waits on a ScheduleWakeup longer than inbox.silent_minutes[/-][+]A Run shows as Silent while its session waits on its own background work longer than inbox.silent_minutes[/+]JacobStephens2 commentedon Oct 28, 2026
Triage notes: a second trigger,
end_turnwith a background task runningThe same false Silent shows up without any
ScheduleWakeup. This issue is retitled to cover both: a session that is waiting on its own background work writes nothing, so it reads as Silent.Evidence (2026-10-27, Jacob-MacBook-Pro, Claude Code 2.1.312)
The dispatched Run of #1482, in Pickup run
pickup-20261027T195741-0400, PR #1505:cargo test -- --test-threads=3in the background (taskbb2cn7cp9).resultwithstop_reason: end_turn.claude -pstayed alive and thecargo testchild kept running new test binaries, but the task's output file stayed at 0 bytes. Nothing reached the Session trace or the Command log.thirdshift show … --jsonat 21:02 gave"health": {"state": "silent", "step": 2, "seconds": 2272, "threshold_seconds": 600}.cargo exit 0, 3162 passed). It updated the PR body and ended normally. PR Show an Experiment's cost before its first Trial, and ask (#1482) #1505 merged at 2026-10-28T03:06Z.So the Run was healthy but read as Silent for about 47 minutes, 38 of them at step 2.
What this case changes about the options above
ScheduleWakeup: does not apply here, because there was no wakeup.A signal that covers both triggers: the Session trace's latest record is a
result(or aScheduleWakeuptool result followed by one) while the session's process is still alive. That session is waiting on its own work, not hung. It could get a distinct waiting state in place of Silent, with a longer limit of its own so a task that really hangs still surfaces. The Day shift still picks the approach.Related
The implement prompt tells the session that ending its turn kills its background tasks. This case shows Claude Code
-pdoes not. Filed separately as #1517.JacobStephens2 commentedon Oct 28, 2026
The silence history in #1500 shows
ScheduleWakeupisn't the only cause of this. Four more false Silents came from the same pattern with a background task: the session started a test suite withrun_in_background, ended its turn, and woke when the task'stask_updated(status: completed) record arrived.Together with this issue's
ScheduleWakeupcase (#1378, 28 min), these are the five longest silences out of 147 Runs on orchestrate.etadventures.com. With both kinds of wait handled, no silence on that machine would have run past 10 minutes.So the fix should cover a session that ended its turn while a background task was still running, not only a pending
ScheduleWakeup. Possible signals:resultwithstop_reason: end_turnwhile atask_startedhas no matching completion;[-]A Run shows as Silent while its session waits on its own background work longer than inbox.silent_minutes[/-][+]A Run shows as Silent while its session waits on a ScheduleWakeup or background task[/+]JacobStephens2 commentedon Nov 10, 2026
Investigation summary
The classifier limitation remains present at Base checkout 9712feb. The reported original Claude sessions were not independently reproduced.
Confirmed evidence:
The supplied Trusted comments also establish why narrower fixes are insufficient: a healthy background wait lasted approximately 47 minutes without ScheduleWakeup and with an empty task output file. Raising the threshold to 31 minutes or watching output-file growth alone would miss that case.
Recommended direction
Introduce an explicit, bounded waiting observation covering both a pending scheduled wakeup and a root turn that ended with an unfinished background task. Do not treat process liveness plus end_turn alone as proof of healthy progress. Recommend allowing a scheduled wait until its due time plus the ordinary silence threshold; the Day shift must choose the finite allowance for background tasks without a deadline and the interaction with Slow.
After those decisions, shape one Ticket covering lifecycle interpretation, shared health and Inbox presentation, and time-based refreshes through src/logs/status/watching.rs. Preserve ordinary silence detection when wait evidence is absent, and clear waiting on task completion, failure, cancellation, resumed work or process exit. Avoid relying solely on the bounded tail used for latest_event, which can omit an older task start.
Regression coverage should include both triggers with stale Command and Session files, empty background output, overdue waits, task completion and cancellation, a result without pending work, process death, and parity across status/show JSON and Console Inbox behavior. The proposed waiting exception extends GLOSSARY.md:350 and ADR 0019's file-growth description; amend those explicitly and update the manual and affected hand-written site descriptions.
Validation: cargo test --test run_health -- --test-threads=3 passed (5 passed, 1 ignored). These tests validate existing silence behavior, not the missing wait cases. scripts/affected-tests main passed with 'No changed files; no affected tests.'
Related open issues #1495, #1500 and #1517 address Experiment waits, the default threshold and prompt wording respectively. None replaces this issue. No source or Git-history changes were made, and nothing was written to GitHub.
Questionnaire
For the Day shift: #1499's current health check ignores intentional Claude waits. Both scheduled wakeups and background tasks need coverage; the supplied evidence includes a healthy background wait lasting about 47 minutes with no output-file growth.