Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate. The closest are [Bug]: Baseline checkpoint failures are only logged #37059 (asks for a visible notice when the baseline fails), [Bug]: Baseline checkpoint capture blocks the provider turn, so every turn in a slow workspace waits 30 seconds #28996 (the baseline blocked the turn; closed) and [Bug]: Checkpoint capture hits the 30 s git timeout in large workspaces and never converges; every killed attempt leaves a tmp_objdir-bulk-fsync-* directory behind #26227 (30 s timeout in huge workspaces). None asks for the cause in the log or for the 5 s budget to cope with a busy host.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
There is no small deterministic repro. It happens whenever the baseline snapshot takes longer than 5 s, and on a loaded host that is common:
- Run T3 on a Linux host under CPU load (here about 8 agent sessions at once on 16 CPUs, load average 14 to 22).
- Start runs on threads that use a git workspace.
- Read the server log. Some runs log
orchestration V2 checkpoint baseline capture failed; starting provider without a baseline.
Expected behavior
- The warning says why the capture failed: the error type and the git command that timed out.
- A busy host does not make runs lose their baseline to a fixed limit. For example, the 5 s budget is configurable, scales with load, or the capture is retried once.
Actual behavior
The handler in RunExecutionService.ts catches every cause that is not an interrupt and logs only the run id:
Effect.logWarning(
"orchestration V2 checkpoint baseline capture failed; starting provider without a baseline",
{ runId: input.run.id },
),The log never says whether the failure was a timeout, a git error or a missing directory. I found the cause by reading T3's own server.trace.ndjson.
The cause is the fixed BASELINE_CAPTURE_BUDGET = "5 seconds" in CheckpointService.ts, applied with Effect.timeout around the whole git capture.
Author's word (not observed by a tool), 2026-11-25T14:00:32Z: Measured from a copy of server.trace.ndjson covering 06:12:47Z to 06:24:35Z on 2026-11-25 (11.8 minutes; the trace files rotate every few minutes, so no longer window was available). It holds 39 spans named RunExecutionService.captureBaseline. Six GitVcsDriver.checkpoints.captureCheckpoint spans ended as Interrupted, after 4.94, 4.99, 5.04, 5.10, 5.56 and 6.65 s, which fits the 5 s budget (6 of 39 is 15%). I did not match each interrupted span to its run, so I am assuming they are the baseline captures. Process spawning was slow in the same window: 8,214 spawn spans, median 0.80 s, 90th percentile 2.35 s, 25 over 5 s. The container's load average was 14.6 on 16 CPUs at 06:20Z. Separately, one warning at 02:04Z the same day came about two minutes after the host's load average rose from about 1 to 12 (1.1 to 2.3, then 7.8 at 02:02Z and 12.0 at 02:03Z, from one-minute host metrics), while T3's container CPU use went from about 2 to 5 cores. I could not find what T3 was doing then, because its traces keep only about 20 minutes.
The run then starts without a baseline, so that run has no per-turn change view. No data is lost.
Impact
Minor bug or occasional failure
Version or commit
Author's word (not observed by a tool), 2026-11-25T14:00:32Z: Quoted code read in pingdotgg/t3code main @ 8f5fd28: RunExecutionService.ts line 1107 and CheckpointService.ts line 41. 0.1.10-nightly.20261116.4800 is the T3 build where the trace above was measured; I did not test a newer build.
Environment
Linux container, headless t3 serve, 16 CPUs, about 8 concurrent agent sessions.
Logs or stack traces
orchestration V2 checkpoint baseline capture failed; starting provider without a baseline
runId=<run id> (nothing else is logged)
Workaround
None found. Lowering the host's load helps.
Sources: ran 0, read 0, live 0, said 2, none 0, unchecked 0; numerals outside tokens: 16
Activity
test(server): baseline capture warning names its cause (repro #42861)