### SEQUENTIAL — the workload in the scheduler process
-- emit_metric
rc=0
-- emit_metric (no task)
rc=0
-- mark_queue_state
rc=0
-- reactivate_queue_state
rc=0
-- mark_queue_state (DONE)
rc=0
-- requeue_spec_line
rc=0
-- requeue_spec_line (no line)
rc=1
-- write_blocker
rc=0
-- write_blocker (extra)
rc=0
-- clear_bug_escalation_ledger (none yet)
rc=0
-- record_bug_dispatch
rc=0
-- record_bug_reopen
[ERROR 2026-10-18 00:00:00]   x BUG-1 stays open (bug-reverification-failed) — chain grew (+T-S@attempt-1), reopen_count=1, fix re-queued
rc=0
-- record_bug_reopen (no reason)
[ERROR 2026-10-18 00:00:00]   x BUG-1 stays open (unknown) — chain grew (+T-S@attempt-2), reopen_count=2, fix re-queued
rc=0
-- record_bug_dispatch (first write wins)
rc=0
-- clear_bug_escalation_ledger (other bug)
rc=0
-- inbox_write_event
rc=0
-- inbox_write_event (dir)
rc=0
-- inbox_write_event (no name)
rc=0
-- log / log_section / error / warn
[2026-10-18 00:00:00] a log line
rc=0
[2026-10-18 00:00:00] ======================================================
[2026-10-18 00:00:00]  a section
[2026-10-18 00:00:00] ======================================================
[ERROR 2026-10-18 00:00:00] an error line
rc=0
[WARN 2026-10-18 00:00:00] a warning
-- lane_enter
rc=1 LANE_ACTIVE=false
-- lane_exit
rc=0 LANE_ACTIVE=false LANE_WORKTREE=[<unset>] WORK_ROOT=[<T>/ctl]
-- lane_enter (after exit)
rc=1
-- lease_update
rc=0
-- lease_update (no lease)
rc=1
-- handle_runner_exhaustion
CALL runner_exhausted_reset_time [task-T-S.log]
CALL schedule_backoff_restart [task-T-S.log] [window-untimed]
rc=0 RESTART_SCHEDULED=true
-- handle_runner_exhaustion (again)
CALL runner_exhausted_reset_time [task-T-S.log]
CALL schedule_backoff_restart [task-T-S.log] [window-untimed]
rc=0
-- sentinel: raised=no task_log=[]
== control state
   -- .queue-guard/hash
      f20b1af23c002f4fa154cab0efe849591163e687
   -- blockers.md
      
      ## 2026-10-18 00:00 · T-S
      
      - Spec: docs/s.md#t-s
      - Failure: a reason
      - Class: blocked
      - Log: <T>/ctl/harness/state/logs/orchestrate-golden.log
      - Severity: P2
      - Status: needs-investigation
      
      ## 2026-10-18 00:00 · T-S
      
      - Spec: docs/s.md#t-s
      - Failure: test-fail
      - Class: test-fail
      - Log: <T>/ctl/harness/state/logs/orchestrate-golden.log
      - Lane: 2
      - Severity: P2
      - Status: needs-investigation
   -- bug-escalation/harness/stories/STORY-9/bugs/BUG-1.md.yml
      ---
      dispatched_at: 2026-10-17T00:00:00+00:00
      caused_by_chain: [T-S@attempt-1, T-S@attempt-2]
      reopen_count: 2
      ---
   -- inbox-alt/ev-2.yaml
      type: requeue
   -- inbox/ev-1.yaml
      type: enqueue-bug
   -- leases/.gitignore
      # Task leases: runtime ownership records, never committed (STORY-213).
      *
   -- leases/T-S/record
      pid: <PID>
      pid_start: <PID-START>
      lane_id: 2
      worktree: <T>/ctl/harness/state/lanes/2
      base_sha: abc1234
      started_at: 1792281600
      heartbeat_at: 1792281600
      spec: docs/s.md#t-s
   -- logs/orchestrate-golden.log
      [ERROR 2026-10-18 00:00:00]   x BUG-1 stays open (bug-reverification-failed) — chain grew (+T-S@attempt-1), reopen_count=1, fix re-queued
      [ERROR 2026-10-18 00:00:00]   x BUG-1 stays open (unknown) — chain grew (+T-S@attempt-2), reopen_count=2, fix re-queued
      [2026-10-18 00:00:00] a log line
      [2026-10-18 00:00:00] ======================================================
      [2026-10-18 00:00:00]  a section
      [2026-10-18 00:00:00] ======================================================
      [ERROR 2026-10-18 00:00:00] an error line
      [WARN 2026-10-18 00:00:00] a warning
   -- metrics.jsonl
      {"event":"x","task_id":"T-S","at":"t","story_id":"STORY-9"}
      {"event":"y","at":"t"}
      {"event":"task_blocked","task_id":"T-S","reason":"a reason","class":"blocked","at":"2026-10-18T00:00:00+00:00","story_id":"STORY-9"}
      {"event":"task_blocked","task_id":"T-S","reason":"test-fail","class":"test-fail","at":"2026-10-18T00:00:00+00:00","story_id":"STORY-9"}
      {"event":"bug_reopened","bug_id":"BUG-1","bug":"harness/stories/STORY-9/bugs/BUG-1.md","reason":"bug-reverification-failed","reopen_count":1,"at":"2026-10-18T00:00:00+00:00","story_id":"STORY-9"}
      {"event":"bug_reopened","bug_id":"BUG-1","bug":"harness/stories/STORY-9/bugs/BUG-1.md","reason":"unknown","reopen_count":2,"at":"2026-10-18T00:00:00+00:00","story_id":"STORY-9"}
   -- queue.txt
      # queue
      # [DONE] docs/s.md#t-s
      harness/stories/STORY-9/bugs/BUG-1.md#bug-1
== control stories
   -- STORY-9/bugs/BUG-1.md
      ---
      id: BUG-1
      severity: P2
      status: fixing
      caused_by_chain: []
      ---
      body
== lane 2 tree
   -- stories/STORY-9/bugs/BUG-1.md
      ---
      id: BUG-1
      severity: P2
      status: fixing
      caused_by_chain: []
      ---
      body
