Agent Sandbox Registry

python-sdk

Decision: Server SDK 42-endpoint capability audit and retention decision

无中文版

.agents/notes/implemented/feature/2026-09-23-server-endpoint-audit.md

Decision: Server SDK 42-endpoint capability audit and retention decision

Status: implemented Implemented: 2026-09-23

Problem

The Server module was expanded from 6 to 42 endpoints (see 2026-09-09-server-capability-expansion.md), covering 8 capability groups. After the expansion, a systematic audit was required to confirm: 1. Whether each endpoint has a clear use case and a real caller. 2. Whether the default enable/disable policy for the 8 capability groups is reasonable. 3. Whether any endpoints are redundant and can be merged or should be removed.

This ADR records the audit conclusions and retention decisions; it does not repeat the design details in server-capability-expansion.md.

Decision

All 42 endpoints are retained. Audit conclusions are as follows:

Capability-group decisions

Group Endpoints Decision Rationale
CORE 2 Always enabled, not disable-able /health and /capabilities are infrastructure endpoints
COMMANDS 2 Enabled by default The core WIRE CONTRACT of @sandbox.register
FILE_OPS 11 Enabled by default Backend for the CLI sandbox files subgroup; covers full CRUD + search + archive
PROCESS 6 Enabled by default Backend for the CLI sandbox process subgroup; includes SSE streaming shell
SYSTEM 6 Enabled by default Backend for the CLI sandbox system subgroup; includes env management and metrics
TERMINAL 3 + WS Enabled by default The PTY terminal is a core capability for interactive debugging
DEV_TOOLS 3 Disabled by default code/run and git operations are not general-purpose; opt-in
BROWSER 8 Disabled by default Heavy Playwright dependency; only the browser-automation template needs it

Security decisions

No redundant endpoints

API Design

N/A — this decision does not involve API changes. It is an audit/retention decision on the existing 42 endpoints; endpoint contracts remain as defined in 2026-09-09-server-capability-expansion.md.

Alternatives considered

Dependencies

Test Strategy

Acceptance criteria