Skip to content

docs: generate the tool support page from the descriptor (#1221) - #1406

Merged
jeff-r2026 merged 5 commits into
mainfrom
saulmoro/1221-tool-support
Oct 27, 2026
Merged

jeff-r2026 merged 5 commits into
mainfrom
saulmoro/1221-tool-support

Conversation

@SaulMoro

@SaulMoro SaulMoro commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR is steps C and D of #1221. It builds on #1405 (step B4), which has merged. The descriptor now states what each tool supports at run time and in teamai's own AI. The support page is generated from the descriptor, so the page cannot drift from it.

 TOOLS[tool]
   home, skills, rules, blocks, agents, hooks, mcp, sessions
+  features: { env, workflows, recall, stats, aiBackend, votesJudge, agentHooks }
+    each: SupportCell | { cell: SupportCell, note }
+    SupportCell = `${'✓' | '◐' | '✗' | '+' | '—'}${'v' | 's' | 'd' | 't'}` | '?'

+src/tool-support.ts        renderToolSupportPage('en' | 'zh-CN')
+docs/guide/tool-support.md          generated
+docs/guide/zh-CN/tool-support.md    generated

features is required on every tool, and a mark without its evidence letter fails tsc (tools.type-test.ts). Nothing reads features but the page.

The page has three tables:

  • User scope: home and the variables that move it, then skills, rules, instruction blocks, agents, hooks, MCP and sessions, each as the place the tool reads plus its evidence.
  • Project scope: the same channels.
  • Run time and teamai's own AI.

Headers and the legend are translated. Cell text stays English on both pages. The cells follow the issue's matrix. A fix merged since then is marked t with a note naming it (#1224, #1245, #1308, #1374), because nobody has rerun it against the real tool.

The reference page's recorded-homes section links to it.

AGENTS.md gains two things:

  • The doc-layout rule names the generated pages and how to regenerate them.
  • A review rule covers changes to TOOLS. A change that should update TOOLS and does not is at most [P2 non-blocking]. A verified cell with no recorded run is [P3 nit]. unknown is never a finding.

The README matrix stays hand-written: its columns mean "teamai delivers it", while the descriptor says where the tool reads and on what evidence. It keeps its shape, and the cells the code owns are now checked:

-Team Execution:   skills  rules  env  agents  hooks  mcp  models
+Team Execution:   skills  rules  culture  agents  hooks  mcp  workflows  env  models
-Team Context:     learnings  codebase  teamwiki                             (✓ for every agent)
+Team Context:     one column
 Team Improvement: usage  sessions
+                                  scorers                                   (its sessions can be judged: a session adapter)

13 columns instead of 12. Rendered with GitHub's markdown API and CSS, the table is 1113 px wide (1051 px on main, which already scrolls) and its header 85 px tall (122 px). The layer bullets follow the new order.

Cell Before After Source
usage: OpenCode, Pi, Oh My Pi, DeepSeek Harness — ✓ skill use is recorded since #1245 (features.stats)
sessions: OpenCode — ✓ teamai session reads OpenCode (TOOLS.opencode.sessions)
rules: JoyCode ✓ ✓¹ user rules are inlined into rules.txt, as for every other ✓¹ tool
culture (new) — Qoder, Qoder CN, Kiro, Trae, Trae CN; ✓ the rest team culture and shared instructions need a blocks channel (blocks: NONE); also missing from docs/guide/team-culture.md
workflows (new) ✓ every agent the skill driver runs in any session. Which tools run steps headless is in the workflow guide
scorers (new) ✓ Claude Code, Codex, Cursor, CodeBuddy, WorkBuddy, OpenCode session scoring reads through the adapters. Judging a session with the driver's own tool is #1386

env keeps ✓² for Pi, DeepSeek Harness and ZCode: #1023 set it for the per-directory env, which the descriptor's profile-env cell does not cover. A ? in the descriptor does not change a README ✓. Benchmarks have no shipped command, so they get no column. docs/product-overview.md and its Chinese page link the workflow and scorer guides from their layers.

Evidence

  • npx vitest run tool-support renders both pages and diffs them against docs/guide/tool-support.md and docs/guide/zh-CN/tool-support.md (toMatchFileSnapshot). An edit to a TOOLS cell without regenerating fails it. Regenerate with npx vitest run tool-support -u.
  • tools.type-test.ts rejects a descriptor without features and a bare '✓' cell.
  • readme-matrix.test.ts keeps the five READMEs' cells equal and checks culture, models, usage, scorers and ✓¹ against TOOLS. Before the column split, a Korean usage cell flipped by hand failed the equality check, and a Kiro rules cell changed in README.md failed both checks.
  • At 9ad889d: npx tsc --noEmit (which includes tools.type-test.ts), npm run lint and npm run build pass, and npx vitest run passes 17137 tests in 576 files (21 skipped). The page is regenerated for the Pi AGENTS.override.md entry that fix(pi): deliver user context to active override files #1340 added on main.

This is a docs and descriptor-data change. No CLI command reads features, so it has no real-CLI record.

Merge Danger

Door: two-way

Blast Radius: docs

A new guide page and a descriptor field that only the page reads. A wrong cell misinforms a reader of the page until the next regeneration. It changes nothing teamai writes.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Code Erosion Report

Informational — never blocks the merge. scb-check==0.2.0 SlopCodeBench metrics; method & caveats in docs/dev/ci-code-erosion.md.

Metric Value Human band Agent band Reading
Verbosity* 0.053 0.15 0.33 human
Erosion 0.706 0.31 0.68 agent
Cognitive erosion 0.874 – – –

Scanned 481 files / 107060 SLOC · high-CC functions 839/9496

* On TypeScript, verbosity is partial and the bands are Python-calibrated.

Rule hits (TS verbosity layer)

Standalone ast-grep, separate from the number above.

Rule Hits
unnecessary-else-after-return 64
empty-catch-block 5
self-assignment 1

70 distinct lines flagged across src/.

@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff.

Testing documentation is sufficient for this docs-generation and descriptor-data change: the body records snapshot tests, type checking, lint, and the unit suite. No CLI runtime behavior changes, so a real-CLI/e2e record is not required.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from 6f99168 to 8312764 Compare October 26, 2026 03:10
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. The earlier review raised no findings, so none require resolution.

Testing documentation is sufficient: the body records snapshot tests, type checking, targeted tests, and a full unit-suite run. This change adds documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from 8312764 to 15d9000 Compare October 26, 2026 03:23
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the body records snapshot tests, type checking, targeted tests, and a full unit-suite run. The diff adds documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from 15d9000 to 731d921 Compare October 26, 2026 06:44
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, targeted tests, and a full unit-suite run. The diff adds documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commits are a note, not a blocking issue.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from 731d921 to 433b23e Compare October 26, 2026 08:13
@SaulMoro SaulMoro assigned jeff-r2026 and unassigned jeff-r2026 Oct 26, 2026
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and unit-suite results, including isolated reruns of two timing failures. The changes add documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from 433b23e to 9ad889d Compare October 26, 2026 08:37
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and unit-suite results, including isolated reruns of two timing failures. The diff adds documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro SaulMoro assigned jeff-r2026 and unassigned jeff-r2026 Oct 26, 2026
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and unit-suite results. The changes add documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro SaulMoro assigned jeff-r2026 and unassigned jeff-r2026 Oct 26, 2026
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and unit-suite results. The changes add documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from e7f763b to 17b541a Compare October 26, 2026 09:16
@SaulMoro SaulMoro assigned jeff-r2026 and unassigned jeff-r2026 Oct 26, 2026
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and unit-suite results. The diff adds documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from c8a92d2 to f2617fd Compare October 26, 2026 16:22
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The changes add documentation generation and descriptor metadata without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from f2617fd to 4202f1e Compare October 26, 2026 21:02
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The changes add documentation generation and descriptor metadata without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from 4202f1e to e030b63 Compare October 26, 2026 23:50
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The diff adds documentation generation and descriptor metadata without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch from e030b63 to f29ce52 Compare October 27, 2026 00:11
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The changes add documentation generation and descriptor metadata without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The changes add documentation generation and descriptor metadata without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@SaulMoro
SaulMoro force-pushed the saulmoro/1221-tool-support branch 2 times, most recently from be577fa to 66dacb0 Compare October 27, 2026 02:58
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The diff adds documentation generation and descriptor data without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

Base automatically changed from saulmoro/1221-hooks-locate to main October 27, 2026 03:49
…tor (#1221)

The env, workflows, recall, stats, AI backend, votes judge and HTTP agent
hook rows of #1221's matrix become a required `features` facet, one
`SupportCell` per row: the mark and the evidence letter, as the matrix
writes them. A cell a later fix changed (#1193, #1224, #1245, #1374) says
so in its note and keeps teamai's-code-only evidence until it is rerun.
Data only: nothing reads it but the support page.
docs/guide/tool-support.md and its Chinese page are rendered from TOOLS
and diffed by a snapshot test, as the command reference is. Headers and
the legend are translated; cell text stays English on both pages.
AGENTS.md records that exception and the review rule for descriptor
updates.
…Code's inlined rules (#1221)

Usage: skill use is recorded for OpenCode, Pi, Oh My Pi and DeepSeek Harness
since #1245 (`features.stats`). Sessions: `teamai session` reads OpenCode
(`TOOLS.opencode.sessions`). Rules: JoyCode's user rules are inlined into
rules.txt, so they stay on, as for every other tool marked ✓¹.
… and check it against the descriptor (#1221)

Learnings, codebase and teamwiki were the same for every agent, so Team
Context is one column. That leaves room for culture (team culture and
shared instructions need an instruction-blocks channel, which Qoder,
Qoder CN, Kiro, Trae and Trae CN do not have), workflows (every agent
drives one from its session) and scorers (the agents whose sessions
teamai can judge: a session adapter in `TOOLS[tool].sessions`). Team
Execution is ordered skills, rules, culture, agents, hooks, mcp,
workflows, env, models, and the layer bullets follow it.

readme-matrix.test.ts keeps every README's cells equal and checks the
cells the code owns: culture, models, usage, scorers and ✓¹.
@jeff-r2026
jeff-r2026 force-pushed the saulmoro/1221-tool-support branch from 66dacb0 to 2ad4646 Compare October 27, 2026 03:49
@github-actions

Copy link
Copy Markdown

No findings in the specified PR diff under the trusted base-version Code Review Rules. Earlier reviews raised no findings, so none require resolution.

Testing documentation is sufficient: the description records snapshot tests, type checking, lint, build, and full unit-suite results. The changes add documentation generation and descriptor metadata without changing CLI runtime behavior, so no real-CLI/e2e record is required. The older tested commit is not blocking.

Review was read-only; I did not run, build, or install PR code.

@jeff-r2026 jeff-r2026 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with an independent agent pass; patch identical to the one verified earlier (merged with #1405 onto 43b1bbc: tsc, lint, build, tool-support/readme-matrix tests pass). Runtime unchanged (features only read by the docs generator and tests); generated en/zh pages and all 5 READMEs consistent and snapshot-enforced. Non-blocking: codebuddy/workbuddy aiBackend: '?' while ai-client.ts already probes them; zh strings live in src/tool-support.ts (not bundled).

@jeff-r2026
jeff-r2026 merged commit d62a20b into main Oct 27, 2026
18 checks passed
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
… (Tencent#1406)

* feat(tools): state each tool's run-time and AI support in the descriptor (Tencent#1221)

The env, workflows, recall, stats, AI backend, votes judge and HTTP agent
hook rows of Tencent#1221's matrix become a required `features` facet, one
`SupportCell` per row: the mark and the evidence letter, as the matrix
writes them. A cell a later fix changed (Tencent#1193, Tencent#1224, Tencent#1245, Tencent#1374) says
so in its note and keeps teamai's-code-only evidence until it is rerun.
Data only: nothing reads it but the support page.

* docs: generate the tool support page from the descriptor (Tencent#1221)

docs/guide/tool-support.md and its Chinese page are rendered from TOOLS
and diffed by a snapshot test, as the command reference is. Headers and
the legend are translated; cell text stays English on both pages.
AGENTS.md records that exception and the review rule for descriptor
updates.

* docs(readme): mark usage and sessions the descriptor records, and JoyCode's inlined rules (Tencent#1221)

Usage: skill use is recorded for OpenCode, Pi, Oh My Pi and DeepSeek Harness
since Tencent#1245 (`features.stats`). Sessions: `teamai session` reads OpenCode
(`TOOLS.opencode.sessions`). Rules: JoyCode's user rules are inlined into
rules.txt, so they stay on, as for every other tool marked ✓¹.

* docs(readme): add culture, workflows and scorers to the agent matrix, and check it against the descriptor (Tencent#1221)

Learnings, codebase and teamwiki were the same for every agent, so Team
Context is one column. That leaves room for culture (team culture and
shared instructions need an instruction-blocks channel, which Qoder,
Qoder CN, Kiro, Trae and Trae CN do not have), workflows (every agent
drives one from its session) and scorers (the agents whose sessions
teamai can judge: a session adapter in `TOOLS[tool].sessions`). Team
Execution is ordered skills, rules, culture, agents, hooks, mcp,
workflows, env, models, and the layer bullets follow it.

readme-matrix.test.ts keeps every README's cells equal and checks the
cells the code owns: culture, models, usage, scorers and ✓¹.

* docs: regenerate the tool support page for Kiro's hook file (Tencent#1221)
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.

2 participants