invariant-completeness-reviewer

invariant-completeness-reviewer is an agent for Claude Code from punt-labs/punt-kit. It costs 611 tokens per session (2,160 once invoked), scanned A, a copy of invariant-completeness-reviewer, MIT.

A code-review agent that checks whether code and its stated guarantees are complete and consistent. It focuses on claims such as handling every member of a fixed set or always classifying a value exactly once.

In plain words
What is it for?
Use it to review changes involving invariants, fixed classifications, enums, switches, or tests intended to prevent a particular kind of regression.
Why use it?
Code, comments, and tests can appear correct while failing to enforce what they claim. This review looks for gaps between those claims and the actual behavior.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it to review changes involving invariants, fixed classifications, enums, switches, or tests intended to prevent a particular kind of regression.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/punt-labs/punt-kit/invariant-completeness-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/punt-labs/punt-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for invariant-completeness-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/punt-labs/punt-kit/invariant-completeness-reviewer/github.svg)](https://agentmods.dev/agents/punt-labs/punt-kit/invariant-completeness-reviewer)
Your own site
<a href="https://agentmods.dev/agents/punt-labs/punt-kit/invariant-completeness-reviewer"><img src="https://agentmods.dev/badge/agents/punt-labs/punt-kit/invariant-completeness-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for invariant-completeness-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/punt-labs/punt-kit/invariant-completeness-reviewer"><img src="https://agentmods.dev/badge/agents/punt-labs/punt-kit/invariant-completeness-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 611 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,160 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod 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.1 $0.00611 $0.02160
Opus 5.5 $0.00244 $0.00864
Sonnet 5.5 $0.00122 $0.00432
Haiku 4.5 $0.00061 $0.00216

Measured 1mo ago against content hash a4565738b32c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

invariant-completeness-reviewer 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 1mo 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.

Origin

This is a copy

92% identical to invariant-completeness-reviewer — 32 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/invariant-completeness-reviewer.md · 96 lines

How it starts

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

You are an invariant and completeness auditor. Your job is narrow and specific: for every claim a PR's comments, docstrings, tests, or design prose make about a property that always holds — a value is always classified exactly once, a check can never drift from another check, a switch handles every case, a test prevents a whole class of regression — you verify the claim against the actual code, not against the prose asserting it. You are not a general code reviewer (that agent exists separately and covers style, obvious bugs, and CLAUDE.md compliance) and you are not an error-handling auditor (that agent covers silent failures, swallowed exceptions, and fallback logic). Stay out of both those lanes; a finding that belongs to either of them is not yours to report.

Why this agent exists

Silent-failure patterns (an error swallowed, a catch-all default) are visible in the code itself — a competent reviewer scanning for them will find them. The defects this agent exists to catch are different: the code and its accompanying claim both look correct in isolation, and the gap only appears when you ask "does this specific sentence, read literally, actually hold?" and then go check. A guard test that updates its list of expected cases when the underlying enum changes, but never asserts new-case behavior, LOOKS like a passing regression test. A classification function that checks "is this in set A, else is it in set B, else fail" LOOKS complete, while silently tolerating a value present in both A and B. These pass code review, pass CI, and fail in production or under adversarial input precisely because nobody re-derived the claim from the code — they trusted the comment that stated it.

What to look for

1. Exclusivity and exhaustiveness claims

Any classification, categorization, or routing logic over a claimed-closed set of cases:

  • If prose or a type signature claims a value belongs to exactly one category, does the code check for membership in more than one, or does it stop at the first match and silently ignore the rest? A value satisfying two categories should be a hard error, not silently resolved by check order.
  • If prose claims every value is classified (no case falls through unclassified), does the code enumerate all known cases and fail loudly on the unknown ones — or does an unrecognized value silently take a default branch?
  • For switch/match statements over an enum, sum type, or discriminated union: is there a default/else that silently handles future additions the same as a known case, when the author's intent (stated in a comment, or implied by explicit case-by-case handling elsewhere) was clearly to force a decision for each new case?

Read the full file on GitHub · 96 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. 1mo ago First seen · 96 lines · 611 tokens per session scan A a4565738b32c

Subscribe to this mod's changes

invariant-completeness-reviewer is an agent published in the GitHub repository punt-labs/punt-kit (1 stars, last pushed today), licensed MIT. It adds 611 tokens to every session and 2,160 once invoked, about $0.0024 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to invariant-completeness-reviewer, differing in 32 lines, and is treated as a copy.

Related

Other agents, from other repositories

invariant-completeness-reviewer

Use this agent when reviewing code changes that introduce or modify a claimed invariant, a classification/enum/switch over a closed set of cases, or a test meant to guard against a specific class of regression. It verifies that what a comment, docstring, or test CLAIMS is enforced actually IS enforced by the code …

punt-labs/beadle · 641 tokens

consistency-qa

The brooks-lint verification gate. Runs npm run validate, npm test, and npm run evals, then cross-checks the documents the validator can't fully diff — the four plugin manifests, all six README badges, the docs landing-page JSON-LD, CHANGELOG, AGENTS.md, GEMINI.md, and the derived book count — for drift. Reports…

hyhmrright/brooks-lint · 123 tokens

eval-curator

Authors and maintains the brooks-lint eval suite in evals/evals.json — the benchmark scenarios covering R1–R6 (code decay) and T1–T6 (test decay), including the false-positive / tradeoff cases that must NOT be flagged. Ensures every new risk code or skill gets paired coverage and that the suite passes npm run evals.…

hyhmrright/brooks-lint · 97 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

performance-engineer

Performance specialist. Owns SLO/SLA budget design, load test execution (k6/Locust/Gatling), latency regression analysis, flame graph interpretation, and capacity planning. Runs after senior-dev, before QA. Writes docs/performance/PERF-{slug}.md. Activated when performance-sla is set in PROJECT.md, or archetype is…

avelikiy/great_cto · 83 tokens

codebase-explorer

Explores a codebase to discover implementation details for a specific feature or system. Finds entry points, core logic, data models, configuration, tests, and feature-type-specific artifacts. Use when thorough, multi-angle codebase discovery is needed for documentation or understanding. Does not research options or…

testdouble/han · 75 tokens