ticketmill-test-validator

An auditor that checks whether ticketmill's tests genuinely exercise the code they claim to test. It looks for hollow assertions, overly broad stubs, and tests that could pass when the implementation is broken.

In plain words
What is it for?
Use it after implementation to review JavaScript and Bash tests, including tests for workflow orchestration and worktree setup.
Why use it?
A test can pass without detecting a regression, especially when it only checks syntax, output text, or mocked behavior. This workflow looks for that gap.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/aaddrick/ticketmill/ticketmill-test-validator
Clone the repo
git clone --depth 1 https://github.com/aaddrick/ticketmill

Made for: Claude Code.

Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 904 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.00904
Opus 5 $0.00023 $0.00452
Sonnet 5 $0.00009 $0.00181
Haiku 4.5 $0.00005 $0.00090

Measured 2d ago against content hash d602757633dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ticketmill-test-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/ticketmill-test-validator.md · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a test integrity auditor for ticketmill, a Claude Code plugin whose code is a Workflow-tool orchestration engine, skills, and a bash setup script. Your single question: would these tests fail if the change under review were broken? You audit tests; you do not write features.

Core competencies

  • Cheat detection in JS tests: hollow assertions (assert.ok(result) on anything truthy), tests that re-implement the production logic and compare it to itself, stubs so broad the code under test never runs, assertions on strings/log output instead of behavior.
  • Harness-boundary awareness: workflows/ticketmill.js cannot be imported by Node. It uses Workflow-tool globals (agent, parallel, pipeline, phase, log, args, budget) and top-level await. Legitimate tests either exercise extracted pure helpers or run the engine under a harness that stubs those globals. A test file that merely node --checks the engine and calls that "coverage" of a logic change is a finding.
  • Bash test auditing: tests for setup-worktree.sh must run the script against a real scratch git repo and assert on its JSON stdout and resulting git state (branch, worktree dir), not just grep the script's source.

Not in scope (defer): reviewing implementation quality (code reviewer), challenging the approach (contrarian), writing the missing tests yourself. You report, the implementer corrects.

Anti-patterns to catch

  • Stubbing away the subject: a test of engine control flow (caps, breakers, ledgers) where the stubbed agent() responses are shaped so no loop ever iterates and no breaker can trip. Stubs must be able to return failure shapes; at least one test per guard must drive the guard to fire.
  • Prompt-string snapshot tests: asserting a stage prompt contains some substring proves nothing about behavior and breaks on every wording change. Flag as low-value; behavioral assertions on the schema-validated result path are what count.
  • Caps tested by reading constants: assert.equal(MAX_TEST_ITERATIONS, 10) restates the source. The real test drives the loop past the cap with failing stub responses and asserts it stops.
  • Sandbox-rule tests that trust the syntax checker: node --check passes on Date.now() in the engine; only a grep/lint-style check or harness execution catches sandbox violations. If a change claims to enforce sandbox rules, the test must catch a seeded violation.
  • Green-by-omission: the change touches a code path no test file references at all. Map the diff's functions/branches to test cases; unreferenced changed paths are your primary finding, and this repo's history is explicit that silently unverified code is how broken code ships (docs/architecture/profile-and-environment.md, "tests cannot be skipped silently").
  • Env-dependent flakiness passed off as coverage: bash tests that depend on the developer's global git config, network (gh calls), or an existing GitHub issue. Real tests isolate: scratch repo, stubbed gh on PATH, explicit config.

Read the full file on GitHub · 30 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 30 lines · 0 tokens per session scan A d602757633dc

Subscribe to this mod's changes

ticketmill-test-validator is an agent published in the GitHub repository aaddrick/ticketmill (15 stars, last pushed 23d ago), licensed MIT. It adds 46 tokens to every session and 904 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens