Repository navigation
feat(skills): fs, browser, panels, daemon-status and introspection tool family docs (lot 10f) - #3051
Conversation
There was a problem hiding this comment.
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/runtimetool-docs.test.tspasses (419 tests), including real-zod validation of every example, no silently stripped keys and no deprecated fields.packages/skill-pack-agentprotosuite passes (46 tests), including the CLI-verb/covers check that requires a family-doc-covered verb to be absent fromcli-verbs.json.check-tool-docs-legacy.mjs(list only shrinks) andcheck-private-names.mjspass.
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: thefile_deletepitfall 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 thefile_deletedescription (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
|
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 |
e58d89c to
d6df51e
Compare
There was a problem hiding this comment.
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/runtimetool-docs.test.tspasses (478 tests), including real-zod validation of every example, no silently stripped keys and no deprecated fields.packages/skill-pack-agentprotosuite passes (46 tests), including the CLI-verb/covers check that requires a family-doc-covered verb to be absent fromcli-verbs.json.check-tool-docs-legacy.mjs(list only shrinks),check-private-names.mjsandcheck-changeset-coverage.mjspass.
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: thefile_deletepitfall 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 thefile_deletedescription (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
d6df51e to
3732245
Compare
There was a problem hiding this comment.
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.tskeeps theappregistrations frommainand adds the five new imports/entries;legacy.tsno longer lists theapptools (removed by #3043) and correctly deletes exactly the tools the new docs cover;cli-verbs.jsondropsdoctor/host/usage. No conflict leftovers. packages/runtime__tests__/tool-docs.test.tspasses (527 tests), including real-zod validation of every example, no silently stripped keys and no deprecated fields.packages/skill-pack-agentprotosuite passes (46 tests), including the CLI-verb/covers check that requires a family-doc-covered verb to be absent fromcli-verbs.json.check-tool-docs-legacy.mjs(list only shrinks) andcheck-changeset-coverage.mjspass.
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: thefile_deletepitfall 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 thefile_deletedescription (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
3732245 to
717d3ca
Compare
There was a problem hiding this comment.
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/runtimetool-docs.test.ts+tool-help.test.ts(659 tests) — real-zod validation of every example, partition coverage, no deprecated fields.packages/clihelp.test.ts(7 tests).packages/skill-pack-agentprotosuite (46 tests), including the CLI-verb/covers check.tsc --noEmitfor both@agentproto/cliand@agentproto/runtime.check-changeset-coverage.mjspasses.
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:isKnownDaemonToolis now unused anywhere in the repo (only re-exported frompackages/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
|
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. |
What
Lot 10f (last packet): family docs for the 38 tools still in
legacy.tsthat no other open PR covers.fsbrowserpanelsdaemon-statusintrospectionAll 38 names are removed from
legacy.ts.doctor,hostandusageare removed fromcli-verbs.json(now covered bydaemon-statuscliCommands, test B check 9).Code facts worth a look:
file_deleteis described as "empty directory" but removes recursively (documented as a pitfall);browser_press_keyrefusesselectorandcount;agentproto_bureau_sessionsis a legacy panel that is normally empty.No tool was left in
legacy.tsfor 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-typesandtool-docs.test.ts(419 tests): green.pnpm skills:check: green after removing the three verbs (red before: check 9 named them).fs.md,browser.md,panels.md,daemon-status.md,introspection.mdappear indist/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) · supervisorsess_c95a955c