Skip to content

feat(skills): sandbox, tunnels, remote, llm-endpoint and decision tool family docs (lot 10e-1) - #3049

Merged
agentiknet merged 2 commits into
mainfrom
wt/skills-lot-10e-1
Dec 1, 2026
Merged

agentiknet merged 2 commits into
mainfrom
wt/skills-lot-10e-1

Conversation

@agentiknet

@agentiknet agentiknet commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What

Family docs for 32 tools still in legacy.ts: sandbox (7), tunnels (9), remote (3), llm-endpoint (5), decision (8). They feed ap-tool-index/reference/<family>.md and tool_help. Lot 10e part 1; part 2 (transmit, inbound, telegram, reach, conversation, transcript, workspace-brain) follows in its own PR.

  • Every limit and default was read in code (command 16 KB, 32 files of 25 MB, 20000-char streams, 15-minute gc grace, ttl clamp 1 min to 30 days, port 18090, ...).
  • tunnel_login carries a humanGate (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_review are effect: "external".
  • Verbs sandbox, tunnel and remote are now covered by cliCommands and removed from cli-verbs.json. The llm verb is left alone: it manages the model gateway, not this proxy sidecar, so llm-endpoint has no CLI command.
  • decision has 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 row remote.publish is 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 a humanGate worded that way.
  • decision_decide and the decision stages: none. An escalation session that asks for human input is not answered: the result is wait: "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; apply and public are caller-side switches, flagged in pitfalls.

Checks

  • pnpm skills:check green after pnpm --filter @agentproto/runtime build (it was red on check 9 when the llm verb was claimed, then green once the claim was dropped).
  • pnpm --filter @agentproto/runtime check-types green; node scripts/check-private-names.mjs ok.
  • Pack build green; sandbox.md, tunnels.md, remote.md, llm-endpoint.md, decision.md appear under dist/gen/skills/ap-tool-index/reference/.
  • Not run: pnpm gate (targeted checks per AGENTS.md; CI is the gate).

@agentproto-bot · PR · session sess_602b812f (executor, skills lot 10e-1) · supervisor sess_c95a955c

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-agentproto suite — 46/46 pass (the cli-verbs removal is consistent with family-doc coverage).
  • tsc --noEmit on @agentproto/runtime — clean.
  • Spot-checked prose against source (sandbox-exec limits, sandbox-attach failure codes, tunnel_create CLI/purge, remote-controller return shapes, llm_endpoint_start port/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

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: a humanGate on remote_enable describing the gateway-mode (targetPort unset) exposure — nobody is asked to confirm, the one-time bearerToken is shown once, and re-running remote_disable/remote_enable rotates it.
  • decision.ts: a pitfall noting that an escalation session which asks for human input returns wait: "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/mcpConfigSnippet are omitted for arbitrary-target tunnels; the tool doc accurately scopes the gate to gateway mode.
  • decision-escalation.ts:208 — the awaiting-input path returns exactly wait: "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

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: a humanGate on remote_enable describing the gateway-mode (targetPort unset) exposure — nobody is asked to confirm, the one-time bearerToken is shown once, and re-running remote_disable/remote_enable rotates it.
  • decision.ts: a pitfall noting that an escalation session which asks for human input returns wait: "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/mcpConfigSnippet are omitted for arbitrary-target tunnels; the tool doc correctly scopes the gate to gateway mode.
  • decision-escalation.ts:208 — the awaiting-input path returns exactly wait: "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

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: a humanGate on remote_enable describing the gateway-mode (targetPort unset) exposure — nobody is asked to confirm, the one-time bearerToken is shown once, and re-running remote_disable/remote_enable rotates it.
  • decision.ts: a pitfall noting that an escalation session which asks for human input returns wait: "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/mcpConfigSnippet are only populated when exposesGateway && bearerToken, so the tool doc correctly scopes the gate to gateway mode.
  • decision-escalation.ts:208 — the awaiting-input path returns exactly wait: "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

@agentiknet
agentiknet merged commit a7e73ed into main Dec 1, 2026
19 checks passed
@agentiknet
agentiknet deleted the wt/skills-lot-10e-1 branch December 1, 2026 05:04
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.

1 participant