Skip to content

feat(skills): channels, reach, conversation and workspace-brain tool family docs (lot 10e-2) - #3050

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

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

Conversation

@agentiknet

Copy link
Copy Markdown
Contributor

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 touch index.ts, legacy.ts and cli-verbs.json at different lines: the second to merge needs a rebase keeping both sides.

  • Limits and defaults read in code (reach: 1000-char summary, 3 https links, 20 tells a day, 24 h dedupe; transcript bounds 10/50, 600/4000, 20000/100000; watcher poll 1000 to 60000 ms).
  • Verbs brain and conversation are covered by cliCommands and removed from cli-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:check green after a runtime rebuild (red first on the whenToUse minimum for reach, fixed).
  • runtime check-types green; check-private-names ok; pack build shows channels.md, reach.md, conversation.md, workspace-brain.md.
  • Not run: pnpm gate (targeted checks per AGENTS.md; CI is the gate).

@agentproto-bot · PR · session sess_602b812f (executor, skills lot 10e-2) · 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

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-types and src/__tests__/tool-docs.test.ts (267 cases, examples validated against the real schemas) pass.
  • pnpm --filter @agentproto/skill-pack-agentproto test passes; dropping the brain/conversation cli-verbs.json exceptions is valid because both verbs are now covered by family cliCommands.
  • 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

@ponytail-coder

ponytail-coder Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Parked: the branch head moved before the changeset could push

  • expected head: 684fd3f464018690196f717f9e1dd07d4acbd58b
  • actual head: 59eb73f6d8f286291be8c00a9b11f26de76a80af (pushed by agentiknet)
  • parked work: parked-fix-3050-684fd3f

The work was not pushed and was not applied onto the new head.
The push that moved the branch starts its own review run; this run dispatches nothing.

@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

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.ts passes (333 cases, examples validated against the real schemas); pnpm --filter @agentproto/skill-pack-agentproto test passes.
  • Dropping the brain / conversation cli-verbs.json exceptions is valid: both verbs are now covered by family cliCommands.
  • 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

@agentiknet

Copy link
Copy Markdown
Contributor Author

Fixed in the last commit: the hit fields are now documented as the tool returns them (sourceId, chunkId, text, score, metadata.sessionId); snippet was only the CLI/HTTP name.

@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

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 KnowledgeHit in packages/knowledge-engine/src/types.ts:98-106 (text, not snippet).
  • packages/runtime/src/__tests__/tool-docs.test.ts passes (445 tests; examples validated against the real schemas).
  • node scripts/check-changeset-coverage.mjs origin/main reports the changed publishable package @agentproto/runtime is 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.

@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

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 KnowledgeHit in packages/knowledge-engine/src/types.ts:98-106 (text, not snippet).
  • packages/runtime/src/__tests__/tool-docs.test.ts passes (445 tests; examples validated against the real schemas).
  • node scripts/check-changeset-coverage.mjs origin/main confirms the changed publishable package @agentproto/runtime is 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

@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

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_load appears only in legacy.ts within tool-docs/ (no family doc); telegram_bot_token_status is now documented in channels.ts.
  • src/__tests__/tool-help.test.ts passes (15/15).
  • node scripts/check-changeset-coverage.mjs origin/main passes; the changed publishable package @agentproto/runtime is 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.

@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

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_load appears only in legacy.ts within tool-docs/ (no family doc); telegram_bot_token_status is now documented in channels.ts.
  • src/__tests__/tool-help.test.ts passes (15/15).
  • node scripts/check-changeset-coverage.mjs origin/main passes; the changed publishable package @agentproto/runtime is 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

@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

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_load has no long doc (getToolHelp reads docs/mcp-tools/<name>.md, and no host_load.md exists) and no family doc (it appears only in packages/runtime/src/tool-docs/legacy.ts:42, LEGACY_UNDOCUMENTED_TOOLS).
  • host_load IS a known daemon tool (daemon-tool-names.generated.ts:159), so the CLI takes the known-tool branch: unknownToolHelpMessage prints "host_load has no help doc yet; ..." to stdout, exit 0, with no "Close names". All four assertions in packages/cli/src/__tests__/help.test.ts hold.
  • telegram_bot_token_status is now documented in channels.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

@agentiknet
agentiknet merged commit 5a93e5f into main Dec 1, 2026
19 checks passed
@agentiknet
agentiknet deleted the wt/skills-lot-10e-2 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