verify-regression-tests
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Open Agent Skill for Claude Code and Codex that verifies whether a regression test fails for the intended bug and passes with the candidate fix—catching false greens caused by mocks, gates, fallbacks, and fixtures.
Verify Regression Tests
Your regression test is green. But does it actually catch the bug?
verify-regression-tests is an open Agent Skill that tests the test. It runs one
frozen regression guard against a candidate implementation and a faithful
known-bad control, then traces the RED result to the exact behavior the test
claims to protect.
It is framework-neutral and uses the same SKILL.md in Claude Code and Codex.
Why this exists
A regression test can stay green while the original bug is present because:
- an earlier validation gate rejects the fixture first;
- a mock, cache, fallback, or default bypasses the target branch;
- the test is skipped, filtered out, not awaited, or running a stale artifact;
- another detector satisfies a broad assertion;
- the assertion accepts both the broken and correct behavior.
A passing suite does not reveal those failures. This skill establishes a focused
counterfactual instead:
candidate implementation + frozen target test -> GREEN
valid known-bad control + frozen target test -> RED at the intended witness
restored candidate + frozen target test -> GREEN
The known-bad control must also reproduce the target behavior independently of
the test. A compile error, unrelated exception, unreachable mutation, or
equivalent change is not proof.
Install for Claude Code and Codex
Run this from the project where you want the skill available:
npx skills add aiopshwang/verify-regression-tests \
--skill verify-regression-tests \
-a claude-code \
-a codex
| Host | Project location | Explicit invocation |
|---|---|---|
| Claude Code | .claude/skills/verify-regression-tests |
/verify-regression-tests |
| Codex | .agents/skills/verify-regression-tests |
$verify-regression-tests |
Both hosts can also select the skill implicitly when a request matches its narrow
description.
Use it
Try requests such as:
Use the regression-test verifier on this bug guard. Prove the unchanged test
fails for the original defect, not an earlier validation error.
This retry regression test is suspiciously green. Check whether the cache or
mock bypasses the retry branch, and strengthen only the test if needed.
Verify this existing idempotency regression test. If it already kills a faithful
known-bad control, do not change files; report the evidence.
What it verifies
The skill:
- defines the trigger, bad behavior, expected contract, decision point, and
observable witness; - confirms the exact target test is discovered and executed;
- creates one safe, reversible, faithful known-bad control;
- validates that control independently of the target test;
- rejects false greens and wrong reds caused by gates, fixtures, mocks,
fallbacks, artifacts, or broad assertions; - restores the candidate exactly and reruns the relevant checks;
- reports
Verified,Not verified, orInconclusivewithout extending the
claim beyond the exercised defect and environment.
How it differs
| Practice | Primary question |
|---|---|
| Test-driven development | What test should drive the next implementation step? |
| Completion verification | Did the latest verification command pass? |
| Mutation testing | How strongly does a suite detect a population of mutants? |
verify-regression-tests |
Does this test detect this defect for the right reason? |
The skill can use a targeted mutation when it faithfully recreates the defect,
but it does not install mutation tools or optimize a mutation score.
Safety boundaries
Known-bad controls are temporary evidence. The skill requires an isolated copy or
worktree when exact in-place restoration is uncertain and never authorizes a
commit, push, deployment, production service call, shared-data migration, or
external account change.
It preserves unrelated work, keeps the test frozen during candidate/control
comparison, and reports an inconclusive result when a safe control cannot be
constructed.
See SECURITY.md and PRIVACY.md.
Reproducible evaluation assets
The repository includes six dependency-free synthetic fixtures across Node.js,
Python, and Dart:
- wrong upstream gate;
- retry path hidden by cache fallback;
- target detector masked by another detector;
- overly broad exception assertion;
- weak invariant assertion;
- an already-strong idempotency test that should remain unchanged.
All six baselines are intentionally green. Run them with:
python3 evals/check_baselines.py
python3 evals/run_proofs.py
Behavioral results, routing checks, host versions, and evidence limits are in
EVALS.md.
Limits
This skill verifies a named regression guard at the boundary actually exercised.
It does not prove that the full suite is strong, that no other bugs exist, or that
unit evidence applies to integration, device, production, or deployment behavior.
It is designed to work with any repository that has an executable test command,
including Jest, Vitest, pytest, JUnit, Dart, and Flutter projects, but v0.1.0's
published synthetic evaluations cover Node.js, Python, and Dart only.
Open standard
The skill follows the open Agent Skills format documented by
OpenAI,
Claude Code, and the
Agent Skills specification.
Contributing and license
See CONTRIBUTING.md for evidence and privacy requirements.
Licensed under the MIT License.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi