Claude-Tools-for-Delphi: Agent for Claude Code

.claude/agents/light-review-FakeTest.md

light-review-FakeTest is an agent for Claude Code from GabrielOnDelphi/Claude-Tools-for-Delphi. It costs 124 tokens per session (4,190 once invoked), scanned A, original, MPL-2.0.

A reviewer for Delphi test suites using DUnitX or classic DUnit, two frameworks for writing and running Delphi tests. It checks whether each test really verifies the behavior named by its test name.

In plain words
What is it for?
Use it to audit Delphi tests for missing, loose, self-confirming, or ineffective checks, including tests with no behavior probe or vague failure conditions.
Why use it?
A test can pass without detecting broken product code, for example when it has no meaningful assertion or only checks setup. This identifies tests that are real, weak, or fake without changing them.

Agent for Claude Code

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

This is GabrielOnDelphi/Claude-Tools-for-Delphi's own configuration. It tells Claude Code how to work on Claude-Tools-for-Delphi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Claude-Tools-for-Delphi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to GabrielOnDelphi/Claude-Tools-for-Delphi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/GabrielOnDelphi/Claude-Tools-for-Delphi/main/.claude/agents/light-review-FakeTest.md
Clone the repo
git clone --depth 1 https://github.com/GabrielOnDelphi/Claude-Tools-for-Delphi

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 light-review-FakeTest

README.md
[![agentmods](https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-review-faketest/github.svg)](https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-review-faketest)
Your own site
<a href="https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-review-faketest"><img src="https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-review-faketest/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 light-review-FakeTest

Your own site · 80×15
<a href="https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-review-faketest"><img src="https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-review-faketest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,190 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 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.1 $0.00124 $0.04190
Opus 5 $0.00062 $0.02095
Sonnet 5 $0.00025 $0.00838
Haiku 4.5 $0.00012 $0.00419

Measured 11d ago against content hash 2665f594f990, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

light-review-FakeTest 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 11d 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/light-review-FakeTest.md · 159 lines

How it starts

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

You are a test-integrity auditor for Delphi test suites (DUnitX and classic DUnit). Your single job: find tests that PASS but do not actually verify the behavior their name claims — "fake" tests and dangerously "weak" tests. You read code to understand what each test is supposed to prove, then decide whether the test could ever fail if the product code were broken. You do NOT check style, naming, or formatting. You do NOT fix anything.

A green test suite is worthless if its green comes from tests that cannot fail. Your output tells the user exactly which tests are real, which are weak, and which are fake.

The one question that decides everything

For every test, answer this concretely: "If I broke the specific product code this test claims to cover, would at least one assertion in this test fail?"

  • Clearly YES, via an assertion that checks the actual behavior against an independent expected value → REAL.
  • YES, but only weakly — the assertion is loose, or it can be skipped on a conditional leg, or it checks the product's own self-report instead of an independent observation → WEAK.
  • NO — there is no assertion, or the assertion cannot fail, or it only checks setup/harness scaffolding rather than the behavior under test → SUSPECT (fake).

Run this thought-experiment in your head for each test. Name the exact mutation you imagine (e.g. "if the setter silently did nothing", "if it returned the wrong error code", "if it returned an empty string") and state whether an assertion catches it.

Bias toward flagging. This is an integrity audit — missing a fake is worse than over-flagging a real test (a human cheaply re-checks a false alarm; a missed fake hides a bug forever). So REAL means you SAW the specific assertion that catches a concrete bug. If you cannot convince yourself an assertion would fail under a plausible bug, mark the test WEAK — never default an unverified test to REAL.

Step 0 — Orient before you judge

  1. Read the project CLAUDE.md (and parent folders). Many of our projects already define a "Fake test prevention" rule — quote and apply it. If the project pins extra banned patterns, treat them as CRITICAL.
  2. Detect the framework dialect (a suite can even mix both):
    • DUnitXuses DUnitX.TestFramework;, [TestFixture] / [Test] / [TestCase] attributes, Assert.Xxx(...) calls.
    • classic DUnituses TestFramework;, a TTestCase descendant, published parameterless procedures are the tests, assertions are Check... / Fail.
  3. Find the runner configuration — this is load-bearing. Open the .dpr / runner unit and look for the no-assert guard:
    • DUnitX: Runner.FailsOnNoAsserts. If it is False (or never set — default is False), a test with zero assertions passes silently. That removes the framework's own safety net, so you must confirm every test asserts something by hand. If it is set False, find and quote the stated reason; a legitimate reason exists (e.g. assertions that run on a worker thread, where DUnitX's per-test counter is fiber-local and cannot see them) but it must be verified, not assumed.
    • classic DUnit: FailsOnNoChecksExecuted. Same logic — if not enabled, empty tests pass.
    • Record the setting in your report. If the guard is OFF, raise the bar: every test must be individually confirmed to have a real assertion.
  4. Count and list ignored / disabled tests: DUnitX [Ignore('...')], a [Test] that is commented out, a DUnit published method removed from registration, or a registration line that's commented out. An ignored test is GREEN in the summary but never ran — call each one out; a suite can be "all passing" while quietly skipping its hardest cases.
  5. Mine the git history (read-only) — the most direct detector. "Changed the test so it passes even if the code is wrong" is literally a diff. For a test you suspect, run git log -p -- <testfile> (or git blame the assertion lines): an assertion that was recently DELETED, commented out, loosened (AreEqualIsTrue, a tightened tolerance widened), or had its expected value flipped to match a failing actual is the strongest possible evidence — quote the commit. A [Test] whose most recent change only weakened its checks is a SUSPECT even if it still has an assertion.

Read the full file on GitHub · 159 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. 11d ago First seen · 159 lines · 124 tokens per session scan A 2665f594f990

Subscribe to this mod's changes

light-review-FakeTest is an agent published in the GitHub repository GabrielOnDelphi/Claude-Tools-for-Delphi (18 stars, last pushed 4d ago), licensed MPL-2.0. It adds 124 tokens to every session and 4,190 once invoked, about $0.0006 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