docs(agent): sync ai-agent tool list with code + add anti-drift test by duyet · Pull Request #2211 · chmonitor/chmonitor · GitHub
Skip to content

docs(agent): sync ai-agent tool list with code + add anti-drift test - #2211

Merged
duyet merged 1 commit into
mainfrom
advisor/12-ai-agent-doc-tool-sync
Jul 3, 2026
Merged

docs(agent): sync ai-agent tool list with code + add anti-drift test#2211
duyet merged 1 commit into
mainfrom
advisor/12-ai-agent-doc-tool-sync

Conversation

@duyet

@duyet duyet commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Implements plan 12 from the Round-2 repo audit (plans/12-*.md), executed by the overnight autonomous swarm.

docs/content/guide/ai-agent.mdx had drifted from the code's agent toolset (CLAUDE.md mandates they stay in sync). Reconciles the documented tool list and adds an anti-drift test that derives tool names from createAllTools and asserts each appears in the doc, so it can't silently drift again.

Test evidence

Verified on the combined swarm tree via the orchestrator's central CI-parity gate:

  • biome lint . → clean (1914 files)
  • tsc --noEmit (dashboard) → clean
  • full bun test src/ --isolate4692 pass / 0 fail (243 files, single process — no mock/env cross-contamination)

The plan's real test is included and passes on this branch (it fails on main).

Self-review (runbook §5)

  • Real test fails on main, passes on this branch
  • No core monitoring feature gated behind cloud mode (self-hosted stays whole)
  • Fail-closed to OSS (unset/junk CHM_*/VITE_* env → OSS defaults)
  • No destructive/DDL auto-apply by the agent; recommendations only
  • No secrets in committed .env*; no [vars] re-added to wrangler.toml
  • Docs updated in the same PR if user-facing
  • Diff scoped to the plan; no drive-by refactors

🤖 Part of the overnight audit swarm (one plan = one branch = one PR).

Co-Authored-By: duyetbot bot@duyet.net

Part of the Round-2 audit swarm (plan 12); full details in the PR description.

Co-authored-by: duyetbot <bot@duyet.net>
@duyet
duyet enabled auto-merge (squash) July 3, 2026 01:58
@github-actions github-actions Bot added documentation Improvements or additions to documentation app: dashboard Changes to the apps/dashboard TanStack Start app labels Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@duyet
duyet merged commit 72cf246 into main Jul 3, 2026
20 checks passed
@duyet
duyet deleted the advisor/12-ai-agent-doc-tool-sync branch July 3, 2026 02:07
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: dashboard Changes to the apps/dashboard TanStack Start app documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant