Repository navigation
chore(skills): remove the legacy undocumented-tools list and its CI guard - #3054
Conversation
There was a problem hiding this comment.
Summary
Removes the now-empty LEGACY_UNDOCUMENTED_TOOLS escape hatch end-to-end: deletes packages/runtime/src/tool-docs/legacy.ts and its barrel re-export, drops the "Not yet documented" section from the ap-tool-index skill renderer, removes the legacy parameter threaded through generate/renderIndexSkill, deletes the check-tool-docs-legacy CI guard + its test, and tightens the partition test to require every daemon tool to have a family doc.
Verified locally: the partition test (tool-docs.test.ts, 644 tests) and the skill-pack suite (45 tests) both pass. The list was empty on main, so every tool is documented; the partition test now fails if a future tool ships without a doc (documents every daemon tool). No dangling references to check-tool-docs-legacy or renderIndexSkill's removed args remain in code/config.
Changeset
.changeset/remove-legacy-tool-docs-list.md is present and lists both changed packages (@agentproto/runtime, @agentproto/skill-pack-agentproto) in a single frontmatter block. patch is correct here: LEGACY_UNDOCUMENTED_TOOLS lives on the @agentproto/runtime/tool-docs subpath, but its introducing changeset (.changeset/tool-docs-format.md) is still unreleased (absent from packages/runtime/CHANGELOG.md), so removing the export before its first release is not a consumer-visible breaking change.
Findings
[low] .github/agent-skills/aip-conventions.md:41 still references the removed symbol. The PR updates the equivalent rule in AGENTS.md but overlooks this sibling doc, which the cloud reviewer loads (.github/agentic-review.json aip-conventions skill). It still says:
Never add a name to
LEGACY_UNDOCUMENTED_TOOLS. The list only shrinks; a new tool needs its family doc in the same PR.
Once the list is gone, this instruction is stale and a reviewer following it will look for a symbol that no longer exists. Suggested replacement, mirroring the new AGENTS.md wording: "A new tool ships with its family doc — the partition test in packages/runtime/src/__tests__/tool-docs.test.ts fails for a tool no family documents."
Verdict
Approve. The removal is complete, correctly scoped, tested, and changeset-accurate; the one finding is a stale doc reference worth fixing in this PR but not blocking.
🤖 @agentproto-bot — review · session sess_288c2ee8 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_d087d3b9 · $0.0361 · run 46570180733 · sha 4bb53ccfb7e65125d9caf2bceab3da08cc81ee1c
|
Finding (low, stale reference in .github/agent-skills/aip-conventions.md): fixed in the latest commit, wording mirrors AGENTS.md. |
There was a problem hiding this comment.
Summary
Removes the now-empty LEGACY_UNDOCUMENTED_TOOLS escape hatch end-to-end: deletes packages/runtime/src/tool-docs/legacy.ts and its barrel re-export, drops the "Not yet documented" section from the ap-tool-index skill renderer, removes the legacy parameter threaded through generate/renderIndexSkill, deletes the check-tool-docs-legacy CI guard + its test, and tightens the partition test to require every daemon tool to have a family doc.
Since the prior review (4bb53cc), the one finding has been fixed: .github/agent-skills/aip-conventions.md:41 no longer instructs reviewers to add names to LEGACY_UNDOCUMENTED_TOOLS and now mirrors the new AGENTS.md wording ("A new tool ships with its family doc in the same PR… the partition test fails for a tool no family documents").
Grep confirms no remaining code/config references to LEGACY_UNDOCUMENTED_TOOLS or check-tool-docs-legacy anywhere outside historical changeset text. The list was empty on main, so every tool is documented, and the partition test (tool-docs.test.ts, documents every daemon tool) now fails if a future tool ships without a doc.
Changeset
.changeset/remove-legacy-tool-docs-list.md is present, correct, and lists both changed packages (@agentproto/runtime, @agentproto/skill-pack-agentproto) in a single frontmatter block. patch is correct: LEGACY_UNDOCUMENTED_TOOLS lives on the @agentproto/runtime/tool-docs subpath, whose introducing changeset (.changeset/tool-docs-format.md) is still unreleased, so removing it before first release is not consumer-visible breakage.
Findings
None. The prior low-severity doc finding is resolved in this increment.
Verdict
Approve. The removal is complete, correctly scoped, tested, changeset-accurate, and the documentation follow-up is now in place.
🤖 @agentproto-bot — review · session sess_a5c4b8ae (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_d0104909 · $0.0048 · run 46571278184 · sha fb135dc5c86164ede59df070a9cb0a05cedd8dd9
Escalation
This PR touches
.github/workflows/ci.yml(removes one step), so the merge gate escalates it to the human owner. It is deliberately minimal.What
LEGACY_UNDOCUMENTED_TOOLSis empty on main (every daemon tool has a family doc), so the machinery around it goes:packages/runtime/src/tool-docs/legacy.tsand its export fromtool-docs/index.ts.scripts/check-tool-docs-legacy.mjs, its test, and the matching step in.github/workflows/ci.yml("Check the legacy undocumented-tools list only shrinks").tool-docs.test.ts): the partition is now "documents no unknown tool, no tool twice, and every daemon tool" (was: doc xor legacy).ap-tool-indexrender: the "Not yet documented" section, thelegacyparameter ofrenderIndexSkillandgenerate, and their tests; the index description no longer mentions undocumented tools.AGENTS.mdandauthoring-skills.md: the sentences that described the list.The unreachable "known tool without a doc" help branch was already removed in #3051, so nothing more to do there.
Evidence for the end test
Red: with one tool renamed in its family doc (so it no longer documents a real tool),
tool-docs.test.tsfails with "documents every daemon tool" and "documents no unknown tool name". Green: restored, 644 tests pass. Also green:pnpm skills:check, the skill-pack suite (45 tests),@agentproto/runtime check-types,scripts/agentflow/docs.mjs --check,check-private-names, and the builtap-tool-index/SKILL.mdhas no "Not yet documented" section.@agentproto-bot · PR · session
sess_17d12e0f(executor, skills lot 10f final cleanup) · supervisorsess_c95a955c