Skip to content

Extend the paid smoke test to the supervision tools - #7

Merged
yoch merged 3 commits into
mainfrom
ccr-e9d4cfba-t6i5xz
Oct 6, 2026
Merged

yoch merged 3 commits into
mainfrom
ccr-e9d4cfba-t6i5xz

Conversation

@yoch

@yoch yoch commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

scripts/smoke_live.py now checks the 0.3 tools on the real API. To keep the cost down, almost every new check is a read on runs the script already pays for. All agents use composer-2.5.

What the smoke now covers

  • Free checks (reads only):
    • tool annotations: cursor_create_run is destructive, cursor_supervise is read-only;
    • an error comes back as pure JSON (a 404 → NOT_FOUND);
    • tail on a finished run;
    • activity: complete, then served from the cache on a second read, and activity=false;
    • cursor_supervise: statuses, exact limit with its cursor, and activity.
  • replace_active adds two short runs:
    • a run that starts sleep 600 in the background and then waits on sleep 120 in the foreground;
    • a one-word follow-up that replaces it.
    • The replaced run (CANCELLED, no result) then shows whether the background task was detected.

Real runs

  • First run: 47/48 PASS.
    • replace_active worked on the real API for the first time, and the background task was detected (last_state: running).
    • The one FAIL was the existing check cursor_read_run_events (cursor mode, right after creation). Its error code was not printed, and two throwaway agents (about 2 cents) did not reproduce it.
  • Re-run on 7b911ea: 48/48 PASS.
    • cursor_read_run_events passed (4 events), so the earlier failure was intermittent.
    • Two WARNs, neither a failure:
      • artifacts, a known API limit;
      • background task not detected: the agent did not start a background command this time. The replaced run's activity was complete and listed none. This depends on how the agent runs the prompt, not on this server.
    • Both agents were deleted.

Changes after the first run

  • The cursor_read_run_events check now prints the error code and message, so the next occurrence can be diagnosed.
  • One plausible cause is closed, without claiming it was the cause. When closing the stream overran its 0.5 s grace after the events were read, the call failed with TIMEOUT and lost them. read_run_events and the replay walk now return what they read. A test covers it, and that test fails on ab6f053.

Verification

  • uv run pytest: 124 passed on 3.13 and 3.12. Ruff is clean.
  • Paid smoke on 7b911ea: 48/48 PASS.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP

claude added 3 commits October 6, 2026 09:53
Free checks on the runs the script already pays for: pure-JSON errors, tool
annotations, tail, activity (with the terminal-run cache and activity=false),
and cursor_supervise (statuses, exact limit with its cursor, activity). Only
replace_active adds two short composer-2.5 runs: one that starts a background
job then waits, replaced by a one-word follow-up; the replaced run's activity
then shows whether the background task was detected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP
…ror codes.

The extended paid smoke passed 47 of 48 checks on the real API, including the
first real replace_active (run replaced, replacement finished, background task
detected on the replaced run). The one failure, cursor_read_run_events right
after creation, could not be reproduced on two throwaway agents, and the
script did not print its error code: it now does.

One plausible cause is closed: when closing the stream overran the 0.5 s grace
after the events were read, the call failed with TIMEOUT and lost them. Both
the cursor read and the replay walk now return what they read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP
@yoch
yoch marked this pull request as ready for review October 6, 2026 12:46
@yoch
yoch merged commit 0dc8147 into main Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants