Skip to content

feat(skills): fs, browser, panels, daemon-status and introspection tool family docs (lot 10f) - #3051

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

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

Conversation

@agentiknet

Copy link
Copy Markdown
Contributor

What

Lot 10f (last packet): family docs for the 38 tools still in legacy.ts that no other open PR covers.

Family Tools
fs file_read, file_write, file_info, file_delete, directory_create, directory_list
browser fetch_page, browser_navigate, _extract_text, _get_dom, _click, _fill, _evaluate, _scroll, _press_key, _screenshot, _list_tabs, _screencast_start/_frame/_stop
panels agentproto_sessions, _agents_overview, _session_story, _session_chat, _work_board, _reviews, _store, _bureau_sessions, live_session
daemon-status daemon_health, host_load, activities_list, usage_rollup
introspection tool_help, role_list, capabilities_inventory, self_inspect, tool_calls_list

All 38 names are removed from legacy.ts. doctor, host and usage are removed from cli-verbs.json (now covered by daemon-status cliCommands, test B check 9).

Code facts worth a look: file_delete is described as "empty directory" but removes recursively (documented as a pitfall); browser_press_key refuses selector and count; agentproto_bureau_sessions is a legacy panel that is normally empty.

No tool was left in legacy.ts for lack of documentation. Not covered here because other PRs own them: app, mcp-import, mcp-apps, skill-import, tool-authoring (#3043, #3045), session observe/follows/control/artifacts (#3048), sandbox, tunnels, remote, llm-endpoint, decision, channels, reach, conversation, workspace-brain (#3049, #3050).

Checks

  • pnpm --filter @agentproto/runtime check-types and tool-docs.test.ts (419 tests): green.
  • pnpm skills:check: green after removing the three verbs (red before: check 9 named them).
  • Pack build: fs.md, browser.md, panels.md, daemon-status.md, introspection.md appear in dist/gen/skills/ap-tool-index/reference/.
  • node scripts/check-private-names.mjs: ok.
  • pnpm gate: two unrelated sandbox spawn tests (sandbox-preflight-spawn, placement-ladder-spawn) timed out at 5 s under gate load; both pass when run alone (38 tests). CI is the gate of record.

@agentproto-bot · PR · session sess_17d12e0f (executor, skills lot 10f) · 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 family docs for the remaining tool families — fs, browser, panels, daemon-status and introspection — registers them in TOOL_FAMILY_DOCS, removes the now-documented tools from LEGACY_UNDOCUMENTED_TOOLS, and drops the three CLI verbs (host, usage, doctor) from cli-verbs.json since the new daemon-status family doc now covers them.

Verified locally:

  • packages/runtime tool-docs.test.ts passes (419 tests), including real-zod validation of every example, no silently stripped keys and no deprecated fields.
  • packages/skill-pack-agentproto suite passes (46 tests), including the CLI-verb/covers check that requires a family-doc-covered verb to be absent from cli-verbs.json.
  • check-tool-docs-legacy.mjs (list only shrinks) and check-private-names.mjs pass.

Spot-checked prose against the implementations (fs-tools.ts, browser-proxy.ts, host-load.ts, usage-rollup.ts, command-tools.ts, self-inspect-tool.ts, the panel apps); the documented return shapes, field drops/refusals and CLI notes match.

Changeset

The branch already adds .changeset/lot-10f-tool-family-docs.md bumping @agentproto/runtime (patch). check-changeset-coverage.mjs reports only @agentproto/runtime as a changed publishable package (cli-verbs.json is not src/** or package.json), so no additional changeset is owed.

Findings

  • low — packages/runtime/src/tool-docs/fs.ts: the file_delete pitfall correctly calls out that the tool description says "file or empty directory" while the implementation (fs-tools.ts, rm(abs, { recursive: true, force: true })) recursively deletes a non-empty directory. The doc is accurate, but this documents a real mismatch between the tool description and its behaviour; consider fixing the file_delete description (or making it refuse a non-empty directory) in a follow-up so a caller does not rely on the stale "empty directory" wording.

Verdict

Approve — docs-only change, accurate against the real tool surface, and all targeted checks are green.


🤖 @agentproto-bot — review · session sess_a282252d (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a142c0b8 · $0.0284 · run 46560465880 · sha e58d89c3557d4af0549ec8a86f9355d9e33bdc66

@agentiknet

Copy link
Copy Markdown
Contributor Author

Finding (low, file_delete description vs recursive removal): acknowledged, deliberately not fixed here. This lot is docs-only, so the wording of the tool description and the delete behaviour are a runtime change that belongs in its own PR (it changes what callers can rely on, so it needs a decision first). The family doc states the real behaviour as a pitfall, so callers reading the doc or tool_help are not misled.

@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 family docs for the remaining tool families — fs, browser, panels, daemon-status and introspection — registers them in TOOL_FAMILY_DOCS, removes the now-documented tools from LEGACY_UNDOCUMENTED_TOOLS, and drops the three CLI verbs (host, usage, doctor) from cli-verbs.json since the new daemon-status family doc now covers them.

This run is an incremental re-review after the branch was rebased onto current main (which now carries the merged session-docs work from #3048). The lot-10f diff against origin/main is byte-identical to the content reviewed earlier; only index.ts/legacy.ts line anchors shifted for the rebase. Re-verified on the rebased tree:

  • packages/runtime tool-docs.test.ts passes (478 tests), including real-zod validation of every example, no silently stripped keys and no deprecated fields.
  • packages/skill-pack-agentproto suite passes (46 tests), including the CLI-verb/covers check that requires a family-doc-covered verb to be absent from cli-verbs.json.
  • check-tool-docs-legacy.mjs (list only shrinks), check-private-names.mjs and check-changeset-coverage.mjs pass.

Spot-checked prose against the implementations (fs-tools.ts, browser-proxy.ts, host-load.ts, usage-rollup.ts, command-tools.ts, self-inspect-tool.ts, the panel apps); the documented return shapes, field drops/refusals and CLI notes match.

Changeset

The branch adds .changeset/lot-10f-tool-family-docs.md bumping @agentproto/runtime (patch). check-changeset-coverage.mjs reports only @agentproto/runtime as a publishability-affecting changed package (packages/skill-pack-agentproto/cli-verbs.json is not src/** or package.json, so it is not owed a bump), so no additional changeset is needed.

Findings

  • low — packages/runtime/src/tool-docs/fs.ts: the file_delete pitfall correctly calls out that the tool description says "file or empty directory" while the implementation (fs-tools.ts, rm(abs, { recursive: true, force: true })) recursively deletes a non-empty directory. The doc is accurate, but this documents a real mismatch between the tool description and its behaviour; consider fixing the file_delete description (or making it refuse a non-empty directory) in a follow-up so a caller does not rely on the stale "empty directory" wording.

Verdict

Approve — docs-only change, accurate against the real tool surface, rebased cleanly, and all targeted checks are green.


🤖 @agentproto-bot — review · session sess_434e2573 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_6efcca8f · $0.0154 · run 46562303070 · sha d6df51eb2c132a71e3cbf2c48c52c651db3c0784

@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 family docs for the remaining tool families — fs, browser, panels, daemon-status and introspection — registers them in TOOL_FAMILY_DOCS, removes the now-documented tools from LEGACY_UNDOCUMENTED_TOOLS, and drops the three CLI verbs (host, usage, doctor) from cli-verbs.json since the new daemon-status family doc now covers them.

This incremental run is after the branch was rebased onto current main, which now carries the merged app family docs (#3043). Re-verified on the rebased tree:

  • The rebase integrates cleanly: index.ts keeps the app registrations from main and adds the five new imports/entries; legacy.ts no longer lists the app tools (removed by #3043) and correctly deletes exactly the tools the new docs cover; cli-verbs.json drops doctor/host/usage. No conflict leftovers.
  • packages/runtime __tests__/tool-docs.test.ts passes (527 tests), including real-zod validation of every example, no silently stripped keys and no deprecated fields.
  • packages/skill-pack-agentproto suite passes (46 tests), including the CLI-verb/covers check that requires a family-doc-covered verb to be absent from cli-verbs.json.
  • check-tool-docs-legacy.mjs (list only shrinks) and check-changeset-coverage.mjs pass.

Spot-checked prose against the implementations (fs-tools.ts, browser-proxy.ts, host-load.ts, usage-rollup.ts, command-tools.ts, self-inspect-tool.ts, the panel apps); the documented return shapes, field drops/refusals and CLI notes match.

Changeset

The branch adds .changeset/lot-10f-tool-family-docs.md bumping @agentproto/runtime (patch). check-changeset-coverage.mjs reports only @agentproto/runtime as a publishability-affecting changed package (packages/skill-pack-agentproto/cli-verbs.json is not src/** or package.json, so it is not owed a bump). main also brought in .changeset/tool-docs-app-families.md; both are runtime patch bumps and are fine.

Findings

  • low — packages/runtime/src/tool-docs/fs.ts: the file_delete pitfall correctly calls out that the tool description says "file or empty directory" while the implementation (fs-tools.ts, rm(abs, { recursive: true, force: true })) recursively deletes a non-empty directory. The doc is accurate, but this documents a real mismatch between the tool description and its behaviour; consider fixing the file_delete description (or making it refuse a non-empty directory) in a follow-up so a caller does not rely on the stale "empty directory" wording.

Verdict

Approve — docs-only change, accurate against the real tool surface, rebased cleanly onto main including the app family docs, and all targeted checks are green.


🤖 @agentproto-bot — review · session sess_230f3a3b (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_62a5f0ef · $0.0599 · run 46563891446 · sha 3732245e3285f9f51a8c4fb6395d0d21d769155c

@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 commit since the last pass (717d3caff, "drop the unreachable known-tool-without-doc help answer"), on the rebased tree. The branch adds five family docs (fs, browser, panels, daemon-status, introspection), registers them in TOOL_FAMILY_DOCS, empties LEGACY_UNDOCUMENTED_TOOLS, and removes the three now-covered CLI verbs (host, usage, doctor) from cli-verbs.json; this increment then removes the "known daemon tool with no doc yet" branch from unknownToolHelpMessage and the matching short-circuit in the CLI help command and MCP tool_help.

The removal is correct: tool-docs.test.ts ("puts every daemon tool in exactly one place (doc xor legacy)") asserts every DAEMON_TOOL_NAMES entry is either documented or in LEGACY_UNDOCUMENTED_TOOLS, and the legacy list is now empty — so getToolFamilyHelp returns undefined only for names that are not daemon tools. The known && !doc case is therefore genuinely unreachable, and both agentproto help (always exit 1 / stderr) and tool_help (always isError: true) are now consistent for a truly unknown name.

Verified green on the rebased tree:

  • packages/runtime tool-docs.test.ts + tool-help.test.ts (659 tests) — real-zod validation of every example, partition coverage, no deprecated fields.
  • packages/cli help.test.ts (7 tests).
  • packages/skill-pack-agentproto suite (46 tests), including the CLI-verb/covers check.
  • tsc --noEmit for both @agentproto/cli and @agentproto/runtime.
  • check-changeset-coverage.mjs passes.

Changeset

.changeset/lot-10f-tool-family-docs.md bumps @agentproto/runtime and now also @agentproto/cli (patch). That is correct: the increment changes the CLI help exit code/output, and list-changed-packages.mjs reports @agentproto/cli and @agentproto/runtime as the publishability-affecting packages (the skill-pack-agentproto cli-verbs.json change is not src/**/package.json, so no bump owed). One frontmatter block lists every package.

Findings

  • low — packages/runtime/src/tool-help-family.ts: isKnownDaemonTool is now unused anywhere in the repo (only re-exported from packages/runtime/src/index.ts:1128); its doc comment "so a missing doc is not a wrong name" no longer describes a live use in the help path. Keeping the export avoids a breaking change, but consider dropping it in a future major or updating the comment so it does not imply a caller that no longer exists.

Verdict

Approve — the increment correctly removes a now-provably-unreachable branch, is covered by the partition test, keeps the CLI and MCP answers consistent, and all targeted checks (tests + typecheck + changeset coverage) are green on the rebased tree.


🤖 @agentproto-bot — review · session sess_78197f8a (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_c0040d3c · $0.0396 · run 46568240668 · sha 717d3cafff99ff1c3982340d6c4ea29138851133

@agentiknet

Copy link
Copy Markdown
Contributor Author

Finding (low, isKnownDaemonTool now unused): kept on purpose. It is a public export of @agentproto/runtime, so removing it would be a breaking change for a docs lot; it stays as a harmless helper and can go in a future major.

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