Repository navigation
feat(skills): sandbox, tunnels, remote, llm-endpoint and decision tool family docs (lot 10e-1) - #3049
Conversation
There was a problem hiding this comment.
Summary
Adds hand-written tool family docs for five families — sandbox, tunnels, remote, llm-endpoint, decision — registers them in TOOL_FAMILY_DOCS, removes the corresponding 32 tools from LEGACY_UNDOCUMENTED_TOOLS, and drops the now-covered remote/sandbox/tunnel exceptions from the skill pack's cli-verbs.json.
Verification performed locally:
packages/runtime/src/__tests__/tool-docs.test.ts— 283/283 pass (partition, CLI verb bounds, live zod validation of every example, no silently-stripped keys, no deprecated fields used).packages/skill-pack-agentprotosuite — 46/46 pass (the cli-verbs removal is consistent with family-doc coverage).tsc --noEmiton@agentproto/runtime— clean.- Spot-checked prose against source (
sandbox-execlimits,sandbox-attachfailure codes,tunnel_createCLI/purge,remote-controllerreturn shapes,llm_endpoint_startport/accessTokens); the documented limits, codes, and return fields match.
Changeset
.changeset/tool-docs-10e-1.md bumps @agentproto/runtime (patch) and already covers the publish-affecting change. list-changed-packages.mjs also lists @agentproto/skill-pack-agentproto, but its only change (cli-verbs.json) is not in that package's files[], so check-changeset-coverage.mjs and changeset-gate.mjs both pass — no additional changeset is owed. None added.
Findings
No blocking findings. The docs are data-only, the typed tools keys are enforced at compile time, and the test suite validates every example against the real schema. A few prose claims are inherently unverifiable by CI (e.g. decision stage semantics), but the sampled ones match the implementation.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_5a92cb1f (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_ee7d8978 · $0.0237 · run 46553783600 · sha acd08c0fc07345c881f4b555ec052669645a02d1
acd08c0 to
9aec8fc
Compare
There was a problem hiding this comment.
Summary
Incremental review of the small follow-up commit (9aec8fc) on top of the already-approved lot 10e-1 tool family docs. It adds two prose items:
remote.ts: ahumanGateonremote_enabledescribing the gateway-mode (targetPortunset) exposure — nobody is asked to confirm, the one-timebearerTokenis shown once, and re-runningremote_disable/remote_enablerotates it.decision.ts: a pitfall noting that an escalation session which asks for human input returnswait: "human-input-required"and the policy default applies (no human gate).
Both claims were checked against source and are accurate:
remote-controller.ts:105,114—bearerToken/mcpConfigSnippetare omitted for arbitrary-target tunnels; the tool doc accurately scopes the gate to gateway mode.decision-escalation.ts:208— the awaiting-input path returns exactlywait: "human-input-required"with the "policy default applies" message.
Verification: npx vitest run src/__tests__/tool-docs.test.ts → 349/349 pass (live zod validation of every example still green).
Changeset
No additional changeset owed. The increment touches only @agentproto/runtime source docs, already covered by .changeset/tool-docs-10e-1.md (patch). @agentproto/skill-pack-agentproto is unchanged by this commit and, as established, its cli-verbs.json is not in that package's files[].
Findings
No blocking findings. The two additions are data-only prose, match the implementation, and pass the schema-backed test suite.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_be3411b8 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_690eb27f · $0.0332 · run 46557282243 · sha 9aec8fc1979d09032be0e03f1062ed1ce037dab7
9aec8fc to
6d1cfaa
Compare
There was a problem hiding this comment.
Summary
Incremental review of the follow-up commit 6d1cfaacb (rebased twin of the previously reviewed increment) on top of the already-approved lot 10e-1 tool family docs. It adds two prose items:
remote.ts: ahumanGateonremote_enabledescribing the gateway-mode (targetPortunset) exposure — nobody is asked to confirm, the one-timebearerTokenis shown once, and re-runningremote_disable/remote_enablerotates it.decision.ts: a pitfall noting that an escalation session which asks for human input returnswait: "human-input-required"and the policy default applies (no human gate).
Both claims were checked against source and are accurate:
remote-controller.ts:96-119—bearerToken/mcpConfigSnippetare omitted for arbitrary-target tunnels; the tool doc correctly scopes the gate to gateway mode.decision-escalation.ts:208— the awaiting-input path returns exactlywait: "human-input-required"with the "policy default applies" message.
Verification: npx vitest run src/__tests__/tool-docs.test.ts → 461/461 pass (live zod validation of every example still green).
Changeset
No additional changeset owed. node scripts/check-changeset-coverage.mjs reports "All changed publishable packages are in a changeset: @agentproto/runtime" — the existing .changeset/tool-docs-10e-1.md (patch) covers it. The @agentproto/skill-pack-agentproto cli-verbs.json change is not in that package's files[] and does not require a bump.
Findings
No blocking findings. The two additions are data-only prose, match the implementation, and pass the schema-backed test suite.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_7faa12cb (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_dc9ae890 · $0.0076 · run 46561335614 · sha 6d1cfaacb5d12e6ce1002d92f4660006af8a9cb0
6d1cfaa to
c83a45e
Compare
There was a problem hiding this comment.
Summary
Incremental review of the tip commit c83a45e1f (rebased twin of the previously reviewed 6d1cfaacb) on top of the already-approved lot 10e-1 tool family docs. It adds two prose items:
remote.ts: ahumanGateonremote_enabledescribing the gateway-mode (targetPortunset) exposure — nobody is asked to confirm, the one-timebearerTokenis shown once, and re-runningremote_disable/remote_enablerotates it.decision.ts: a pitfall noting that an escalation session which asks for human input returnswait: "human-input-required"and the policy default applies (no human gate).
Both claims were re-checked against source and remain accurate:
remote-controller.ts:301-305—bearerToken/mcpConfigSnippetare only populated whenexposesGateway && bearerToken, so the tool doc correctly scopes the gate to gateway mode.decision-escalation.ts:208— the awaiting-input path returns exactlywait: "human-input-required"with the policy-default message.
Verification: npx vitest run src/__tests__/tool-docs.test.ts → 542/542 pass (live zod validation of every example still green).
Changeset
No additional changeset owed. node scripts/check-changeset-coverage.mjs reports "All changed publishable packages are in a changeset: @agentproto/runtime" — the existing .changeset/tool-docs-10e-1.md (patch) covers it. The @agentproto/skill-pack-agentproto cli-verbs.json change is not in that package's files[] and does not require a bump.
Findings
No blocking findings. The two additions are data-only prose, match the implementation, and pass the schema-backed test suite.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_90de53b8 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_dcc912a6 · $0.0291 · run 46565137303 · sha c83a45e1ff3a33dc4f0c73be0479de17bc2b8409
What
Family docs for 32 tools still in
legacy.ts:sandbox(7),tunnels(9),remote(3),llm-endpoint(5),decision(8). They feedap-tool-index/reference/<family>.mdandtool_help. Lot 10e part 1; part 2 (transmit, inbound, telegram, reach, conversation, transcript, workspace-brain) follows in its own PR.tunnel_logincarries ahumanGate(device-flow approval in a browser);tunnel_create,tunnel_delete,tunnel_add_hostname,tunnel_remove_hostname,remote_enable,sandbox_exec,sandbox_gc,sandbox_checkpoint_gc,llm_endpoint_start,decision_stage_classify,decision_stage_escalate,decision_run_reviewareeffect: "external".sandbox,tunnelandremoteare now covered bycliCommandsand removed fromcli-verbs.json. Thellmverb is left alone: it manages the model gateway, not this proxy sidecar, sollm-endpointhas no CLI command.decisionhas no CLI verb either (cliCommands: []).Human gates, checked per tool in code
tunnel_login: gate (device-flow approval in a browser).remote_enable: no daemon-side confirmation exists (permission rowremote.publishis enforced at "/mcp auth only"). The only human step is storing the one-time token and pasting the snippet into the remote client; documented as ahumanGateworded that way.decision_decideand the decision stages: none. An escalation session that asks for human input is not answered: the result iswait: "human-input-required"and the policy default applies (now stated as a pitfall). No tool waits for a human verdict.sandbox_attach: none. It returns the token to the caller; no confirmation step. Documented as a secret in pitfalls.llm_endpoint_set_upstream_link/llm_endpoint_start: none (the link needs a restart, which the caller can do).tunnel_create(public: true),tunnel_delete,sandbox_gc,sandbox_checkpoint_gc: no confirmation in code;applyandpublicare caller-side switches, flagged in pitfalls.Checks
pnpm skills:checkgreen afterpnpm --filter @agentproto/runtime build(it was red on check 9 when thellmverb was claimed, then green once the claim was dropped).pnpm --filter @agentproto/runtime check-typesgreen;node scripts/check-private-names.mjsok.sandbox.md,tunnels.md,remote.md,llm-endpoint.md,decision.mdappear underdist/gen/skills/ap-tool-index/reference/.pnpm gate(targeted checks per AGENTS.md; CI is the gate).@agentproto-bot · PR · session
sess_602b812f(executor, skills lot 10e-1) · supervisorsess_c95a955c