### the lane bookkeeping
-- slots (in flight: 0, free: [1], pool: 3):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
   3: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=0 failed=0 consecutive=0 draining=false
-- leases: 
lanes_any_exited (none tracked) rc=1
lanes_any_exited (one live) rc=1
lanes_any_exited (one exited) rc=0
-- slots (in flight: 2, free: [2], pool: 3):
   1: pid=set task=[T-L] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
   3: pid=set task=[T-D] story=[] outputs=[] branch=[]
-- counters: completed=0 failed=0 consecutive=0 draining=false
-- leases: 
-- slot 2 disabled: free=[] pool=2
-- slot 3 freed: free=[3] pool=2
### lane_pid_exited — a running child, an exited one, no pid
running child rc=1
killed + collected rc=0
empty pid rc=1
### lanes_collect_exits / lanes_reap_finished — two exits in one tick, real statuses
collect: LANES_EXIT_PENDING=2 recorded=2
CALL lane_reap_slot [1] [status 0]
CALL lane_reap_slot [2] [status 7]
reap: LANES_REAPED=2 left=0
### lanes_wait_tick — nothing in flight: one full tick, then returns
rc=0 LANES_EXIT_PENDING=0
### lane_reap_slot — every arm, from a prepared slot and result file
## reap: T-R1 status=12 outcome=success
METRIC {"event":"from_the_lane","task_id":"T-R1"}
CALL qa_findings_sweep_lane [1] [T-R1]
CALL run_scoped_tests
LOG   + Integrator: main fast-forwarded to <SHA8> (factory/task/T-R1)
METRIC {"event":"integration_completed","task_id":"T-R1","branch":"factory/task/T-R1","base_sha":"<SHA>","at":"2026-10-18T00:00:00+00:00"}
CALL run_hooks [pre_commit]
LOG   + Committed orchestrator state (T-R1 integrated)
LOG   + Lane 1: T-R1 complete (1 so far, took 0s)
METRIC {"event":"lane_finished","task_id":"T-R1","slot":1,"outcome":"done","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R1] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=0 consecutive=0 draining=false
-- leases: 
## reap: T-R2 status=0 outcome=failed (test-fail)
METRIC {"event":"from_the_lane","task_id":"T-R2"}
CALL qa_findings_sweep_lane [1] [T-R2]
LOG   x Lane 1: T-R2 → failed (test-fail), 0s
METRIC {"event":"lane_finished","task_id":"T-R2","slot":1,"outcome":"failed","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R2]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=1 consecutive=1 draining=false
-- leases: 
## reap: T-R3 status=0 outcome=qa-failed (qa-failed)
METRIC {"event":"from_the_lane","task_id":"T-R3"}
CALL qa_findings_sweep_lane [1] [T-R3]
LOG   x Lane 1: T-R3 → qa-failed (qa-failed), 0s
METRIC {"event":"lane_finished","task_id":"T-R3","slot":1,"outcome":"qa-failed","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R3]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=2 consecutive=2 draining=false
-- leases: 
## reap: T-R4 status=0 outcome=merge-conflict (rebase-conflict)
METRIC {"event":"from_the_lane","task_id":"T-R4"}
CALL qa_findings_sweep_lane [1] [T-R4]
LOG   x Lane 1: T-R4 → merge-conflict (rebase-conflict), 0s
METRIC {"event":"lane_finished","task_id":"T-R4","slot":1,"outcome":"merge-conflict","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
ERR Reached 3 consecutive failures (limit 3). Noting and continuing to the next task with satisfied dependencies (use --stop-on-failure to halt instead).
METRIC {"event":"consecutive_fail_limit_reached","consecutive_fails":3,"limit":3,"action":"continue","at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R4] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
## reap: T-R5 status=75 outcome=-
METRIC {"event":"from_the_lane","task_id":"T-R5"}
CALL qa_findings_sweep_lane [1] [T-R5]
LOG   o Lane 1: T-R5 parked (runner-exhausted) after 0s — the sweep will return it to pending
METRIC {"event":"lane_finished","task_id":"T-R5","slot":1,"outcome":"parked","reason":"","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R5] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
## reap: T-R6 status=13 outcome=deferred (semaphore-timeout:live-qa)
METRIC {"event":"from_the_lane","task_id":"T-R6"}
CALL qa_findings_sweep_lane [1] [T-R6]
LOG   o Lane 1: T-R6 returned to pending (deferred: semaphore-timeout:live-qa) after 0s
METRIC {"event":"lane_finished","task_id":"T-R6","slot":1,"outcome":"deferred","reason":"semaphore-timeout:live-qa","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R6] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
## reap: T-R7 status=3 outcome=-
METRIC {"event":"from_the_lane","task_id":"T-R7"}
CALL qa_findings_sweep_lane [1] [T-R7]
ERR   ! Lane 1 (T-R7) exited 3 with no result — returning the task to pending
LOG   o Lane 1: T-R7 returned to pending (unexplained) after 0s
METRIC {"event":"lane_finished","task_id":"T-R7","slot":1,"outcome":"unexplained","reason":"","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R7] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
## reap: T-R8 status=74 outcome=-
METRIC {"event":"from_the_lane","task_id":"T-R8"}
CALL qa_findings_sweep_lane [1] [T-R8]
ERR   ! Lane 1 (T-R8) halted: this run's staged copy is gone — infrastructure, returning the task to pending
LOG   o Lane 1: T-R8 returned to pending (run-copy-lost: run copy vanished) after 0s
METRIC {"event":"lane_finished","task_id":"T-R8","slot":1,"outcome":"run-copy-lost","reason":"run copy vanished","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R8] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
## reap: T-R9 status=137 outcome=-
METRIC {"event":"from_the_lane","task_id":"T-R9"}
CALL qa_findings_sweep_lane [1] [T-R9]
LOG   o T-R9 cancelled by the operator — back to pending; not re-selected this run
METRIC {"event":"task_cancelled","task_id":"T-R9","preserved":"","at":"2026-10-18T00:00:00+00:00"}
LOG   o Lane 1: T-R9 returned to pending (cancelled: cancelled by the operator) after 0s
METRIC {"event":"lane_finished","task_id":"T-R9","slot":1,"outcome":"cancelled","reason":"cancelled by the operator","start_epoch":1792281600,"end_epoch":1792281600,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
CALL qa_findings_publish [T-R9] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
-- CANCELLED_THIS_RUN=[ T-R9 ]
## a success whose integration conflicts: one automatic retry (unlanded_requeued 0)
CALL qa_findings_sweep_lane [1] [T-R10]
ERR   x Integrator: factory/task/T-R10 conflicts with the base — rebase aborted, branch kept
CALL unlanded_requeued [T-R10] [docs/tasks/t-r10.md#t-r10] [1] [factory/task/T-R10] [rebase-conflict]
CALL qa_findings_publish [T-R10] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=3 consecutive=0 draining=false
-- leases: 
## …and when the retry is spent (unlanded_requeued 1): [MERGE-CONFLICT]
CALL qa_findings_sweep_lane [1] [T-R11]
ERR   x Integrator: factory/task/T-R11 conflicts with the base — rebase aborted, branch kept
CALL unlanded_requeued [T-R11] [docs/tasks/t-r11.md#t-r11] [1] [factory/task/T-R11] [rebase-conflict]
CALL write_blocker [T-R11] [docs/tasks/t-r11.md#t-r11] [rebase-conflict] [orchestrate-golden.log]
METRIC {"event":"merge_conflict","task_id":"T-R11","reason":"rebase-conflict","branch":"factory/task/T-R11","slot":1,"at":"2026-10-18T00:00:00+00:00","duration_s":0}
METRIC {"event":"task_failed","task_id":"T-R11","reason":"rebase-conflict","class":"blocked","slot":1,"at":"2026-10-18T00:00:00+00:00","duration_s":0}
ERR   x Lane 1: T-R11 could not be integrated — reason: rebase-conflict
ERR     Branch factory/task/T-R11 is kept. Resolve, then re-queue with --retry-failed.
CALL qa_findings_publish [T-R11] [events]
rc=0
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=4 consecutive=1 draining=false
-- leases: 
-- queue.txt:
   docs/tasks/t-u1.md#t-u1
   docs/tasks/t-u2.md#t-u2
   # [DONE] docs/tasks/t-r1.md#t-r1
   # [RUNNING] docs/tasks/t-r2.md#t-r2
   # [RUNNING] docs/tasks/t-r3.md#t-r3
   # [RUNNING] docs/tasks/t-r4.md#t-r4
   # [RUNNING] docs/tasks/t-r5.md#t-r5
   docs/tasks/t-r6.md#t-r6
   docs/tasks/t-r7.md#t-r7
   docs/tasks/t-r8.md#t-r8
   docs/tasks/t-r9.md#t-r9
   # [RUNNING] docs/tasks/t-r10.md#t-r10
   # [MERGE-CONFLICT] docs/tasks/t-r11.md#t-r11
-- main:
   advance main
   chore(state): T-R1 integrated
   T-R1 work
   base
### lane_fork — the lane cannot be made ready
LOG   Lane 2 acquired in 0s (cold)
METRIC {"event":"lane_pool_acquire","task_id":"T-U1","slot":2,"mode":"cold","duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
LOG   Lane 2 cold sync: echo boom; exit 4
ERR   ! Lane sync failed after 0s (<T>/ctl/harness/state/logs/lane-bootstrap-<SHA8>-000000-T-U1.log) — deferring T-U1
METRIC {"event":"lane_bootstrap_failed","task_id":"T-U1","slot":2,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
bootstrap fails rc=1
LOG   Lane 2 acquired in 0s (reset)
METRIC {"event":"lane_pool_acquire","task_id":"T-U1","slot":2,"mode":"reset","duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
ERR   ! Lane 2: environment is DEGRADED (false failed) — repairing before T-U1
ERR     No repair command is configured — releasing the lane. An environment failure, not a defect in T-U1.
METRIC {"event":"lane_env_repair_failed","task_id":"T-U1","slot":2,"reason":"no-repair-command","at":"2026-10-18T00:00:00+00:00"}
env check fails rc=1
LOG   Lane 2 acquired in 0s (reset)
METRIC {"event":"lane_pool_acquire","task_id":"T-U1","slot":2,"mode":"reset","duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
LOG   Lane 2 build: exit 2
ERR   ! Lane build failed after 0s (<T>/ctl/harness/state/logs/lane-build-<SHA8>-000000-T-U1.log) — releasing the lane for T-U1
ERR     This is an environment failure, not a defect in T-U1.
METRIC {"event":"lane_build_failed","task_id":"T-U1","slot":2,"duration_s":0,"at":"2026-10-18T00:00:00+00:00"}
build fails rc=1
mkdir: cannot create directory '<T>/nope': Not a directory
ERR   ! Lane 2 removed from the pool for T-U1: worktree creation failed
ERR     The run continues with a smaller pool. Re-enable by removing <T>/nope/lanes/meta/2/disabled.
METRIC {"event":"lane_unavailable","task_id":"T-U1","slot":2,"reason":"worktree creation failed","at":"2026-10-18T00:00:00+00:00"}
METRIC {"event":"lane_pool_disabled","slot":2,"reason":"worktree creation failed","at":"2026-10-18T00:00:00+00:00"}
no slot rc=1
-- slots (in flight: 0, free: [1], pool: 2):
   1: pid=- task=[] story=[] outputs=[] branch=[]
   2: pid=- task=[] story=[] outputs=[] branch=[]
-- counters: completed=1 failed=4 consecutive=1 draining=false
-- leases: 
