Skip to content

[Bug]: Baseline capture failure logs no cause, and the fixed 5 s budget drops baselines on a busy host #42861

Done

Description

@cartwmic

Before submitting

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:

  1. Run T3 on a Linux host under CPU load (here about 8 agent sessions at once on 16 CPUs, load average 14 to 22).
  2. Start runs on threads that use a git workspace.
  3. 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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions