Repository navigation
feat(skills): app tool families (lot 10c, part 1) - #3043
Conversation
There was a problem hiding this comment.
Summary
Documents the app tool families (app lifecycle, app data/state/external reads, and the app UI bridge) as hand-written tool family docs, wires the three new families (app, app-data, app-ui) into TOOL_FAMILY_DOCS, and removes the now-documented app_* tools from LEGACY_UNDOCUMENTED_TOOLS.
Verified:
- All 29
app_*daemon tools are documented across the three families; nothingapp_*remains in the legacy list and no tool is duplicated (partition test passes). npx vitest run src/__tests__/tool-docs.test.tspasses (178 tests): every example is validated against the real zod schema, no silently-stripped keys, no deprecated fields, CLI verbs (app) exist, and structure bounds hold.- Spot-checked prose against implementation:
app_data_readreturnsexists:falseon miss,app_data_writereturns{appId,path,size},app_uninstallreturnsservicesonly when services were stopped,app_data_listentries are{name,type,size}. @agentproto/runtimeis the only changed package.
Changeset
.changeset/tool-docs-app-families.md already declares @agentproto/runtime at patch, which matches the change (docs + legacy-list shrink, no API change). node scripts/list-changed-packages.mjs prints only @agentproto/runtime. No additional changeset is owed.
Findings
- low —
packages/runtime/src/tool-docs/app.ts:46,311:seeAlsoentriesmcp-appsandtunnelsdo not resolve to a tool-family id or a skill name (tunnelsisap-tunnels, and there is nomcp-appsfamily/skill). This is consistent with the pre-existingpermissionsreference elsewhere and is unvalidated by tests, so it's cosmetic — consider swapping toap-tunnels/ap-import-mcpif you want cross-links that resolve.
Verdict
Approve. Docs are accurate against the real tool surface, the legacy list shrinks correctly, and the changeset is correct.
🤖 @agentproto-bot — review · session sess_daa288ae (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_5a57582c · $0.0213 · run 46546671905 · sha 029f831eaf32d11836f35c5c35214b7052e7fb18
There was a problem hiding this comment.
Summary
Incremental review of commit 4a0090a07 (029f831e...HEAD). It removes the app verb entry from packages/skill-pack-agentproto/cli-verbs.json, relocating that verb's coverage to the new app tool-family doc (which declares verb: "app").
This is exactly the fix the new family docs required: check 9 in packages/skill-pack-agentproto/test/checks.mjs:325 fails when a verb is both covered by a family doc and still listed in cli-verbs.json ("<verb>" is covered by a family doc; remove it here). With the app family now documented, the stale entry had to go.
Verified:
npx vitest runinpackages/skill-pack-agentproto— 46 tests pass (checks, render, gen-skills, skills).appfamily doc declaresverb: "app"(packages/runtime/src/tool-docs/app.ts:36,41,306), so the verb remains covered and check 9 stays satisfied.cli-verbs.jsonis the tracked source;skills/is generated at build, so no generated artifact drift.
Changeset
node scripts/list-changed-packages.mjs lists @agentproto/runtime and @agentproto/skill-pack-agentproto. Only runtime is publish-affecting; cli-verbs.json sits at the package root, outside files[] and src/, so it is not publish-affecting. node scripts/check-changeset-coverage.mjs confirms: "All changed publishable packages are in a changeset: @agentproto/runtime". The existing .changeset/tool-docs-app-families.md (runtime patch) is sufficient — no additional changeset owed.
Findings
- low —
packages/runtime/src/tool-docs/app.ts:46,311(carried over from the prior pass):seeAlsoentriesmcp-appsandtunnelsdo not resolve to a tool-family id or skill name (tunnelsisap-tunnels; nomcp-appsfamily/skill exists). Cosmetic, unvalidated by tests — consider swapping toap-tunnels/ap-import-mcpfor resolvable cross-links. Not introduced or affected by this increment.
Verdict
Approve. The increment is the correct companion fix to the family-doc addition, all skill-pack checks pass, and changeset coverage is satisfied.
🤖 @agentproto-bot — review · session sess_1e2bc2e1 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_3c04054b · $0.0117 · run 46548557390 · sha 4a0090a0761b99723449bec9b2cff39c00ca866e
|
Fixed |
There was a problem hiding this comment.
Summary
Incremental review of commit 0711b6f9 (4a0090a07...HEAD). It changes one string in packages/runtime/src/tool-docs/app.ts:311: seeAlso "tunnels" → "ap-tunnels".
This is the correct fix for a dangling cross-link I flagged in the prior pass: tunnels is neither a tool-family id nor a skill, while ap-tunnels is a real skill folder (packages/skill-pack-agentproto/skills/ap-tunnels), so the reference now resolves. Style matches the rest of the family docs, which use skill ids like ap-accounts/ap-models-auth in seeAlso.
Verified:
pnpm --filter @agentproto/skill-pack-agentproto test— 46 tests pass.- The increment touches only a documentation string; no schema drift, no generated-artifact change.
Changeset
node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto. node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime." The existing .changeset/tool-docs-app-families.md covers it; no additional changeset owed.
Findings
- low —
packages/runtime/src/tool-docs/app.ts:46:seeAlsostill lists"mcp-apps", which resolves to neither a tool-family id nor a skill (mcp-appsis no family intool-docs/and no skill underskills/; the relevant skill would beap-import-mcp, the familyapp-ui). Dangling cross-link, unvalidated by tests. Cosmetic, carried over from the prior pass. - low —
packages/runtime/src/tool-docs/app.ts:311: this increment rewrote"tunnels"→"ap-tunnels"on this line but left"mcp-apps"here, which is likewise unresolved. Same cosmetic dangling-ref class.
Verdict
Approve. The increment correctly resolves the tunnels cross-link and all checks pass. The remaining mcp-apps references are cosmetic and unvalidated; worth swapping to ap-import-mcp/app-ui in a follow-up but not blocking.
🤖 @agentproto-bot — review · session sess_78f0f3ba (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a88ee676 · $0.0123 · run 46551736034 · sha 0711b6f96a4c7172ed2b3d540dd9caf0e3b6c2e5
0711b6f to
5631516
Compare
There was a problem hiding this comment.
Summary
Incremental review of the newest commit (563151673, "docs(skills): seeAlso resolves to shipped skills"), on top of the prior pass through the ap-tunnels fix.
This commit changes two seeAlso entries in packages/runtime/src/tool-docs/app.ts:
- line 46 (
appToolDoc):"mcp-apps"→"ap-import-mcp" - line 311 (
appUiToolDoc):"mcp-apps"→"ap-import-mcp"
This directly resolves the two low-severity dangling-cross-link findings from the prior pass. mcp-apps is neither a tool-family id nor a skill; ap-import-mcp is a real skill folder (packages/skill-pack-agentproto/skills/ap-import-mcp).
Every seeAlso reference in the file now resolves:
app,app-data,app-ui,approvals— tool-family idsap-apps,ap-import-mcp,ap-tunnels— skill ids
Verified:
pnpm --filter @agentproto/skill-pack-agentproto test— 46 tests pass.- The increment touches only documentation strings; no schema drift, no generated-artifact change.
Changeset
node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto (the latter is private, hence exempt).
node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime." The existing .changeset/tool-docs-app-families.md covers it; no additional changeset owed.
Findings
None. The prior mcp-apps dangling references are fixed and all cross-links resolve.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_8ae7cfa9 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_8e693874 · $0.0088 · run 46554062753 · sha 56315167345c64d0cc647ebaa9b17919247e12ae
5631516 to
55fd3fe
Compare
There was a problem hiding this comment.
Summary
Incremental review: the increment since the previously reviewed commit is empty. HEAD (55fd3fe58, "docs(skills): seeAlso resolves to shipped skills") carries the identical content to the reviewed 563151673 — the SHA changed only by rebase onto the current base. The PR as a whole introduces the app tool-family docs (packages/runtime/src/tool-docs/app.ts), registers them in tool-docs/index.ts, removes the app tools from the undocumented legacy list, and drops the app verb from cli-verbs.json in favour of the family doc.
All seeAlso cross-links resolve:
app,app-data,app-ui,approvals— tool-family idsap-apps,ap-import-mcp,ap-tunnels— real skill folders underpackages/skill-pack-agentproto/skills/
Changeset
node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto (the latter private, hence exempt).
node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime". The existing .changeset/tool-docs-app-families.md (patch) covers it; no additional changeset owed.
Findings
None. No new commits since the prior approval; all previously flagged dangling cross-links remain fixed.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_c577d2dd (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a76f4a89 · $0.0061 · run 46558207392 · sha 55fd3fe583c6934110040f651aaea32385c7b8e4
55fd3fe to
060ca53
Compare
There was a problem hiding this comment.
Summary
Incremental review. The only commit since the previously reviewed sha is 060ca53ed ("docs(skills): seeAlso resolves to shipped skills"), a rebase of the already-reviewed content — the diff against origin/main remains the same five files: the new packages/runtime/src/tool-docs/app.ts family docs, their registration in tool-docs/index.ts, the removal of the app tools from legacy.ts, the app verb drop from skill-pack-agentproto/cli-verbs.json, and the changeset.
All seeAlso cross-links resolve:
- tool-family ids:
app,app-data,app-ui,approvals - shipped skill folders:
ap-apps,ap-import-mcp,ap-tunnels(all present underpackages/skill-pack-agentproto/skills/)
node scripts/check-tool-docs-legacy.mjs passes (no name added to the legacy list), matching the shrink-only rule.
Changeset
node scripts/list-changed-packages.mjs → @agentproto/runtime, @agentproto/skill-pack-agentproto (the latter private, hence exempt).
node scripts/check-changeset-coverage.mjs → "All changed publishable packages are in a changeset: @agentproto/runtime". The existing .changeset/tool-docs-app-families.md (patch) covers it; no additional changeset owed.
Findings
None. The increment is a content-identical rebase; earlier cross-link fixes hold.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_8565c976 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_2ed1bb7c · $0.0083 · run 46559914598 · sha 060ca53ed5779b3142c2e3c1061f3c22ace99883
Summary
Lot 10c, part 1: family docs for the
app_*tools (29 tools), removed fromlegacy.ts. Three declared families intool-docs/app.ts, split by workflow rather than by prefix:app: install, resync, updates, catalog, list, apply, unapply, list_applied, run, status, stop, uninstall, app_call.app-data:app_data_*,app_state_*(includingapp_state_append),app_external_*.app-ui:app_tool_call,app_link_mint(with its Telegram human gate),app_tunnel,app_artifact_get,app_skill_get, and the two app-only pull toolsapp_session_tree/app_session_events(documented as hidden from the model, pointing tosession_treeandsession_transcript).Per-app
app_ui_<slug>toolsNot documented as a family. They are generated at request time for each installed app that ships a
uiblock (appUiToolIdinapp-ui-apps.ts), so they are absent from the fixed daemon tool name list, fromlegacy.ts, and from the docs partition test. Theapp-uidoc explains the pattern in its workflow instead of listing them.Checks
pnpm --filter @agentproto/runtime test src/__tests__/tool-docs.test.ts: 178 passed (every example validated by the real zod schema, no stripped key, no deprecated field).pnpm --filter @agentproto/runtime check-types: clean.pnpm skills:check: green.node scripts/check-private-names.mjs: ok.app.md,app-data.md,app-ui.mdappear indist/gen/skills/ap-tool-index/reference/.legacy.tsand the docs present, the partition test fails ("in both"); after removal it passes.Part 2 (mcp-import, mcp-apps, skill-import, tool-authoring) follows in a separate PR branched from main.
@agentproto-bot · PR · session
sess_7431a9e3(executor, skills lot 10c) · supervisorsess_c95a955c