Skip to content

Hand-copied artifact counts have drifted across ~9 files (release says 6 tools) #53

Closed

Description

@TMHSDigital

Summary

Artifact counts (skills, rules, tools, snippets, templates, events) are hand-copied into about nine files, and CI checks only four of them in README.md. The copies have drifted: the release workflow publishes "6 MCP tools" in the repo description although server.py registers 10.

Where

  • .github/workflows/release.yml:200-218 (tools = 6 at line 212)
  • .github/workflows/validate.yml:160-199 (count check reads only README.md; skills, snippets, templates, rules)
  • AGENTS.md:14, 18, .cursorrules:6, 10, CONTRIBUTING.md:47
  • README.md:32, 78, 155, CLAUDE.md:9, docs/index.md:5, 41, docs/GETTING-STARTED.md:29

Details

  • release.yml computes skills, rules, snippets, templates and events, then hardcodes tools = 6. Every release since the txAdmin tools landed has published the wrong tool count in the GitHub About text.
  • AGENTS.md and .cursorrules say 9 skills and 6 tools; CONTRIBUTING.md says 9 skills; README and docs/index.md say 24 snippets in places (25 in others).
  • The CI check never checks tools or events and never looks at CLAUDE.md, AGENTS.md, .cursorrules, docs/, or CONTRIBUTING.
  • Recent history shows the cost: adding one snippet required editing 6 files to change "24" to "25", and adding one skill plus four tools touched 9 non-code files and still missed AGENTS.md, .cursorrules, CONTRIBUTING.md and release.yml.

Impact

Wrong counts go out in the public repo description and in AI-agent instruction files, and every content addition costs 6-9 manual edits that the checker cannot see.

Steps to reproduce

  1. git grep -n "6 tools\|tools = 6\|9 skills"
  2. grep -c "@mcp.tool()" mcp-server/server.py returns 10.

Suggested fix

  1. Add .github/scripts/counts.py that computes skills, rules, snippets, templates, examples, tools (count @mcp.tool() in server.py) and events, and prints JSON. Test it against the current tree (10/6/25/11/5/10/101).
  2. Replace the duplicated counting in validate.yml and release.yml with calls to it (fixes tools = 6).
  3. Extend the check to every file in a list (README, CLAUDE.md, AGENTS.md, .cursorrules, CONTRIBUTING, docs/index.md, docs/GETTING-STARTED.md) for <n> <noun> patterns and fail on mismatch.
  4. Optionally put counts between markers and let the release regenerate them.
  5. First check whether the external release-doc-sync / drift-check actions already cover part of this.

Acceptance criteria

  • The release description uses a computed tool count.
  • CI fails when any listed doc states a count that disagrees with the tree.
  • Current docs are corrected to the real counts.

Getting started

  • Relevant files: .github/workflows/release.yml, .github/workflows/validate.yml, .github/scripts/
  • How to run checks: there is no test suite yet; run the MCP server with cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in .github/workflows/validate.yml
  • Related docs: CLAUDE.md (Release Workflow), AGENTS.md

Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: tech-debt|.github/workflows/release.yml|artifact-counts

Activity

  1. added
    tech-debt
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 4f5c995.

    Added .github/scripts/counts.py as the single source of artifact counts (skills, rules, snippets, templates, examples, MCP tools from @mcp.tool(), events, natives). validate.yml checks every doc in a list for " " claims (lines marked counts:ignore are skipped, for historical release rows), and release.yml builds the About description from it, so the hardcoded "6 MCP tools" and "12,000+ natives" are gone. Drifted counts were corrected.

    Verified: Tests cover the script (tool count equals registered MCP tools, mismatch detection, repo docs consistent); the check passes on the repo.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity: mediumtech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions