Repository navigation
feat(skills): channels, reach, conversation and workspace-brain tool family docs (lot 10e-2) - #3050
Conversation
There was a problem hiding this comment.
Summary
Docs-only PR adding four tool-family docs (channels, reach, conversation, workspace-brain) and removing their 19 tools from LEGACY_UNDOCUMENTED_TOOLS. Verified:
- All 19 removed names are keyed in the new docs;
pnpm --filter @agentproto/runtime check-typesandsrc/__tests__/tool-docs.test.ts(267 cases, examples validated against the real schemas) pass. pnpm --filter @agentproto/skill-pack-agentproto testpasses; dropping thebrain/conversationcli-verbs.jsonexceptions is valid because both verbs are now covered by familycliCommands.- Return shapes, defaults and limits spot-checked against the implementations (
transmit_message,inbound_*,telegram_*,reach_send,conversation_*,transcript_*,workspace_brain_*) — accurate apart from the one field name noted below.
Changeset
The branch shipped only @agentproto/runtime. I added .changeset/pr-3050-agentic.md covering both touched publishable packages (@agentproto/runtime patch, @agentproto/skill-pack-agentproto patch) to match the other family-doc lots. check-changeset-coverage and check-changesets both pass.
Findings
Low — packages/runtime/src/tool-docs/workspace-brain.ts, workspace_brain_query
The doc says hits carry a snippet and the outcome reads "each with source id, score and snippet". The MCP tool returns the raw KnowledgeQueryResult, whose KnowledgeHit field is text (sourceId, text, score, metadata.sessionId). snippet only exists on the HTTP/CLI layer (packages/cli/src/commands/brain.ts maps it). An agent following the doc would look for snippet and get undefined. Suggest documenting text (or explicitly noting the CLI/HTTP rename).
Low — branch base is stale relative to origin/main
This branch forks before #3041 (session-lifecycle docs). Against current origin/main, node scripts/check-tool-docs-legacy.mjs reports 16 session_* names "added" (they are already removed on main), and index.ts both insert import lines right after workflowsToolDoc, so a merge will conflict there. Rebase onto origin/main before merge to keep the legacy gate green and avoid the index.ts conflict.
Verdict
Approve. The documentation is accurate and well-scoped; only a field-name nit and a rebase.
🤖 @agentproto-bot — review · session sess_b98f1fa4 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_1624fe18 · $0.0466 · run 46555771808 · sha 684fd3f464018690196f717f9e1dd07d4acbd58b
684fd3f to
59eb73f
Compare
|
Parked: the branch head moved before the changeset could push
The work was not pushed and was not applied onto the new head. |
There was a problem hiding this comment.
Summary
Docs-only PR adding four tool-family docs (channels, reach, conversation, workspace-brain) and removing their 19 tools from LEGACY_UNDOCUMENTED_TOOLS. Re-checked against current origin/main (the branch is now rebased onto it — the earlier stale-base note no longer applies, and check-tool-docs-legacy reports a clean ok: no name added).
Verified:
- All 19 removed names are keyed in the new docs.
src/__tests__/tool-docs.test.tspasses (333 cases, examples validated against the real schemas);pnpm --filter @agentproto/skill-pack-agentproto testpasses.- Dropping the
brain/conversationcli-verbs.jsonexceptions is valid: both verbs are now covered by familycliCommands. - Spot-checked return shapes/defaults against the implementations (
transmit_message,inbound_*,telegram_*,reach_send,conversation_*,transcript_*,workspace_brain_*) — accurate apart from the field name below.
Changeset
.changeset/tool-docs-10e-2.md covers @agentproto/runtime (patch). skill-pack-agentproto only changes cli-verbs.json, which is outside its files[], so check-changeset-coverage correctly classifies it as non-publish-affecting — no additional bump owed (matches the immediately preceding lot 10d). No changeset added.
Findings
Low — packages/runtime/src/tool-docs/workspace-brain.ts, workspace_brain_query
The doc says hits carry a snippet and the outcomes read "each with source id, score and snippet". The MCP tool returns the raw KnowledgeQueryResult, whose KnowledgeHit field is text (sourceId, chunkId, text, score, metadata.sessionId) — see packages/knowledge-engine/src/types.ts:98. snippet only exists on the HTTP/CLI layer (packages/cli/src/commands/brain.ts maps it). An agent following the doc looks for snippet and gets undefined. Suggest documenting text (or explicitly noting the CLI/HTTP rename).
Verdict
Approve. Documentation is accurate and well-scoped; only the one field-name nit, which is non-blocking.
🤖 @agentproto-bot — review · session sess_fb30b491 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_205619c7 · $0.0224 · run 46557288399 · sha 59eb73f6d8f286291be8c00a9b11f26de76a80af
|
Fixed in the last commit: the hit fields are now documented as the tool returns them ( |
9c00ce2 to
7c0f56b
Compare
There was a problem hiding this comment.
Summary
This increment is the single follow-up commit on top of the lot 10e-2 docs: docs(skills): workspace_brain_query hit fields match the real result. It corrects the workspace_brain_query documentation to describe the actual KnowledgeHit shape returned by the MCP tool (sourceId, chunkId, text, score, metadata.sessionId), replacing the earlier reference to a snippet field that only exists on the CLI/HTTP layer. This resolves the one finding from the previous review.
Verified:
- The corrected fields match
KnowledgeHitinpackages/knowledge-engine/src/types.ts:98-106(text, notsnippet). packages/runtime/src/__tests__/tool-docs.test.tspasses (445 tests; examples validated against the real schemas).node scripts/check-changeset-coverage.mjs origin/mainreports the changed publishable package@agentproto/runtimeis covered.
The rest of the PR (channels, reach, conversation, workspace-brain family docs, the 19 LEGACY_UNDOCUMENTED_TOOLS removals, and the brain/conversation cli-verbs.json exception drops) was covered by the prior review and is unchanged.
Changeset
.changeset/tool-docs-10e-2.md bumps @agentproto/runtime (patch) — correct for doc-only changes. skill-pack-agentproto only changes cli-verbs.json, which is outside its files[], so it needs no bump (confirmed by check-changeset-coverage). No additional changeset owed.
Findings
None — the prior low-severity field-name nit is fixed.
Verdict
Approve.
There was a problem hiding this comment.
Summary
This increment is the single follow-up commit on top of the lot 10e-2 docs: docs(skills): workspace_brain_query hit fields match the real result. It corrects the workspace_brain_query documentation to describe the actual KnowledgeHit shape returned by the MCP tool (sourceId, chunkId, text, score, metadata.sessionId), replacing the earlier reference to a snippet field that only exists on the CLI/HTTP layer. This resolves the one finding from the previous review.
Verified:
- The corrected fields match
KnowledgeHitinpackages/knowledge-engine/src/types.ts:98-106(text, notsnippet). packages/runtime/src/__tests__/tool-docs.test.tspasses (445 tests; examples validated against the real schemas).node scripts/check-changeset-coverage.mjs origin/mainconfirms the changed publishable package@agentproto/runtimeis covered.
The rest of the PR (channels, reach, conversation, workspace-brain family docs, the 19 LEGACY_UNDOCUMENTED_TOOLS removals, and the brain/conversation cli-verbs.json exception drops) was covered by the prior review and is unchanged.
Changeset
.changeset/tool-docs-10e-2.md bumps @agentproto/runtime (patch) - correct for doc-only changes. skill-pack-agentproto only changes cli-verbs.json, which is outside its files[], so it needs no bump (confirmed by check-changeset-coverage). No additional changeset owed.
Findings
None - the prior low-severity field-name nit is fixed.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_d607c6cb (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_817eb5a7 · $0.0095 · run 46561224868 · sha 7c0f56b8cbedefc1eac01437b949bf2ae65f11d3
There was a problem hiding this comment.
Summary
This increment is a single test fix on top of lot 10e-2: test(runtime): tool_help no-doc case uses a tool still undocumented. The tool_help "no help doc yet" test previously used telegram_bot_token_status, which this PR now documents (added to packages/runtime/src/tool-docs/channels.ts:135), so the test would have failed. It now uses host_load, which remains in LEGACY_UNDOCUMENTED_TOOLS (packages/runtime/src/tool-docs/legacy.ts:83) and has no family doc — so the "no doc" path is genuinely exercised again.
Verified:
host_loadappears only inlegacy.tswithintool-docs/(no family doc);telegram_bot_token_statusis now documented inchannels.ts.src/__tests__/tool-help.test.tspasses (15/15).node scripts/check-changeset-coverage.mjs origin/mainpasses; the changed publishable package@agentproto/runtimeis covered.
The rest of the PR is unchanged from the prior review.
Changeset
.changeset/tool-docs-10e-2.md already bumps @agentproto/runtime (patch), and check-changeset-coverage confirms coverage. Test-only increment owes no additional bump.
Findings
None.
Verdict
Approve.
There was a problem hiding this comment.
Summary
This increment is a single test fix on top of lot 10e-2: test(runtime): tool_help no-doc case uses a tool still undocumented. The tool_help 'no help doc yet' test previously used telegram_bot_token_status, which this PR now documents (added to packages/runtime/src/tool-docs/channels.ts:135), so the test would have failed. It now uses host_load, which remains in LEGACY_UNDOCUMENTED_TOOLS (packages/runtime/src/tool-docs/legacy.ts:83) and has no family doc - so the 'no doc' path is genuinely exercised again.
Verified:
host_loadappears only inlegacy.tswithintool-docs/(no family doc);telegram_bot_token_statusis now documented inchannels.ts.src/__tests__/tool-help.test.tspasses (15/15).node scripts/check-changeset-coverage.mjs origin/mainpasses; the changed publishable package@agentproto/runtimeis covered.
The rest of the PR is unchanged from the prior review.
Changeset
.changeset/tool-docs-10e-2.md already bumps @agentproto/runtime (patch), and check-changeset-coverage confirms coverage. Test-only increment owes no additional bump.
Findings
None.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_6e98c5c8 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_6e2b44c2 · $0.0299 · run 46562576810 · sha 0e5ec67bf2eabbe8f48b85d1de599696ac606b81
…family docs (lot 10e-2)
ac3ed1d to
28991c3
Compare
There was a problem hiding this comment.
Summary
This increment is a single test fix on top of the prior lot 10e-2 changes: test(cli): help no-doc case uses a tool still undocumented. The CLI runHelp 'no help doc yet' test previously used telegram_bot_token_status, which this PR now documents (added to packages/runtime/src/tool-docs/channels.ts:135), so the test would have failed. It now uses host_load.
Verified statically:
host_loadhas no long doc (getToolHelpreadsdocs/mcp-tools/<name>.md, and nohost_load.mdexists) and no family doc (it appears only inpackages/runtime/src/tool-docs/legacy.ts:42,LEGACY_UNDOCUMENTED_TOOLS).host_loadIS a known daemon tool (daemon-tool-names.generated.ts:159), so the CLI takes the known-tool branch:unknownToolHelpMessageprints "host_loadhas no help doc yet; ..." to stdout, exit 0, with no "Close names". All four assertions inpackages/cli/src/__tests__/help.test.tshold.telegram_bot_token_statusis now documented inchannels.ts, confirming the reason for the swap.
The rest of the PR is unchanged from the prior review.
Changeset
.changeset/tool-docs-10e-2.md bumps @agentproto/runtime (patch). node scripts/check-changeset-coverage.mjs origin/main passes: only @agentproto/runtime is a changed publishable package (the @agentproto/cli and @agentproto/skill-pack-agentproto diffs are test-only / manifest data, exempt). This increment is test-only and owes no additional bump.
Findings
None.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_40575f6e (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_94af57b7 · $0.0346 · run 46566604146 · sha 28991c33632ba91344bf710cdbb560071be2eb3c
What
Family docs for the 19 remaining tools of packet 10e:
channels(transmit_message, inbound_endpoint_, inbound_watcher_, telegram_; 11),reach(1),conversation(conversation_, transcript_*; 5),workspace-brain(3). Part 2 of lot 10e; part 1 is #3049. Both touchindex.ts,legacy.tsandcli-verbs.jsonat different lines: the second to merge needs a rebase keeping both sides.brainandconversationare covered bycliCommandsand removed fromcli-verbs.json.Human gates, checked per tool in code
telegram_bot_token_set: gate (a person creates the bot with @Botfather and supplies the token).transmit_message,reach_send,telegram_bot_set_webhook: external effect, but no confirmation step in code; a provider refusal comes back as data (blocked_reason,undelivered).inbound_*,conversation_*,transcript_*,workspace_brain_*: none.Checks
pnpm skills:checkgreen after a runtime rebuild (red first on thewhenToUseminimum forreach, fixed).check-typesgreen;check-private-namesok; pack build showschannels.md,reach.md,conversation.md,workspace-brain.md.pnpm gate(targeted checks per AGENTS.md; CI is the gate).@agentproto-bot · PR · session
sess_602b812f(executor, skills lot 10e-2) · supervisorsess_c95a955c