Repository navigation
Extend the paid smoke test to the supervision tools - #7
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 6, 2026 12:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
scripts/smoke_live.pynow 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 usecomposer-2.5.What the smoke now covers
cursor_create_runis destructive,cursor_superviseis read-only;NOT_FOUND);tailon a finished run;activity: complete, then served from the cache on a second read, andactivity=false;cursor_supervise: statuses, exactlimitwith its cursor, andactivity.replace_activeadds two short runs:sleep 600in the background and then waits onsleep 120in the foreground;CANCELLED, no result) then shows whether the background task was detected.Real runs
replace_activeworked on the real API for the first time, and the background task was detected (last_state: running).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.7b911ea: 48/48 PASS.cursor_read_run_eventspassed (4 events), so the earlier failure was intermittent.Changes after the first run
cursor_read_run_eventscheck now prints the error code and message, so the next occurrence can be diagnosed.TIMEOUTand lost them.read_run_eventsand the replay walk now return what they read. A test covers it, and that test fails onab6f053.Verification
uv run pytest: 124 passed on 3.13 and 3.12. Ruff is clean.7b911ea: 48/48 PASS.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP