Skip to content

office-hours-spec-review E2E deterministically hits error_max_turns (9 turns) on main #2473

Closed

Description

@garrytan

office-hours-spec-review (in test/skill-e2e-plan.test.ts, ~line 560) fails deterministically with error_max_turns at exactly 9 turns, everywhere:

The deterministic 9-turn ceiling on every run suggests the scenario's turn budget no longer fits the flow (a skill prose change or CC version shift added turns), rather than flakiness. Candidate next steps: dump the failing transcript (the harness drops reasoning/tool traces on failure — see the E2E observability TODO), check what the agent spends turns 1-9 on, and either raise maxTurns or trim the scenario's prompt scope.

Not caused by PR #2472 (receipts above — identical failure on main without the branch).

Activity

  1. garrytan commented on Aug 7, 2026

    @garrytan
    OwnerAuthor

    Root-caused and fixed in PR #2472 (commits 7d1b9e9, c7bf129, 85804bb). Three distinct budget problems, all verified fail-first and green on CI run 3:

    1. office-hours-spec-review: the Spec Review Loop content is carved into office-hours/sections/, so the agent needs discovery hops before writing — 8 tool turns + closing text = 9 > the pre-carve 8-turn budget. maxTurns 8 → 12.
    2. review-dashboard-via: session startup starves under the file's concurrent sessions on a loaded runner; a clean run measures 231-270s against a 180s budget. Inner 180s → 300s, outer 240s → 360s.
    3. retro-base-branch: clean pass measures 225-239s against a 240s budget — one second of headroom (local receipt: PASS at exactly 239s). Inner 240s → 360s, outer 300s → 480s.

    Closes with #2472's merge via the PR reference.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions