Agent Sandbox Registry

python-sdk

Verification: SDK defects KI-001 to KI-007 and KI-010 fixed (python-sdk client-sdk)

无中文版

.agents/evidence/verify/2026-10-12-ki-sdk-fixes.md

Verification: SDK defects KI-001 to KI-007 and KI-010 fixed (python-sdk client-sdk)

Protocol evidence (captured from a real sandbox)

Commands run

cd client-sdk && python -m pytest tests -m "not integration"      # 2222 passed, 1 skipped, 1 failed (see below)
cd client-sdk && python -m pytest tests/test_known_issues          # 81 new regression tests, all pass
cd client-sdk && ruff check src tests && mypy src/agent_sandbox/    # clean
cd e2e && python -m pytest -m "e2e and not e2e_docker and not e2e_slow" -ra     # fast path (make e2e)
python scripts/e2e-cleanup.py --all-tagged                         # dry run: 0 leftovers

Results

Run Selection Result
unit client-sdk -m "not integration" 2222 passed, 1 skipped, 1 failed: test_agent/test_mcp_stdio.py::...ping_is_answered_while_a_tool_call_is_in_flight fails identically before any of these changes (baseline: 2141 passed, same single failure)
unit client-sdk/tests/test_known_issues/ (new) 81 passed (KI-001 ... KI-008, KI-010)
real cloud test_03_commands.py (17 tests) 17 passed, including the formerly xfailed per_call_env, command_timeout_raises_command_timeout_error, kill_and_signal_terminate_a_process[kill/signal_term/signal_kill], send_input_reaches_stdin, plus the new timed_out_command_is_not_left_running
real cloud test_01_platform.py all passed, including wrong_api_key_raises_authentication_error and connect_to_missing_sandbox_raises_sdk_error (now SandboxNotFoundError)
real cloud test_04_files_envd.py list_and_stat_report_directory_type, read_missing_file_raises_sdk_file_error (FileNotFoundError_), list_missing_directory_raises (FileNotFoundError_) pass; see the throughput note
real cloud test_07_declarative.py async_decorated_function passes (42)
real cloud fast path make e2e selection 79 passed, 1 xfailed (KI-009, platform), 1 failed (test_medium_file_roundtrip_matches_remote_checksum, see below)

Throughput-bound test (not a regression)

test_medium_file_roundtrip_matches_remote_checksum uploads 400 KB. From this host the upload rate measured 20-30 s for 400 KB in the later runs (it passed in the first run after the fixes), i.e. right at the 30 s default HTTP timeout (KI-008). It now fails with FileOperationError: Upload to <path> (400000 bytes) timed out; the transfer took longer than the HTTP timeout plus the ABX_HTTP_TIMEOUT hint instead of a bare httpx.ReadTimeout. The upload code path is otherwise unchanged.

Test-suite fixes made on the way

Cleanup

Every sandbox was tracked and deleted by the session finalizer (leaked_after_cleanup=0 in every run); python scripts/e2e-cleanup.py --all-tagged reports no tagged sandbox. Probe sandboxes created while investigating were killed in finally blocks.

Not fixed / out of scope