Skip to main content
← All loops
LOOPtestingcoveragequalityciloop

100 Percent Test Coverage Review Loop

A risk-first testing loop for reaching verified 100% coverage without padding the suite with shallow line-execution tests.

Prompts capture what to ask. Playbooks capture repeatable methods. Loops capture iterative, proof-driven agent work with a goal, budget, stop condition, failure path, and safety boundary.

BurmCode
TRIGGER

Run when a project explicitly requires 100% coverage and has a repeatable test command, coverage report, and reviewable exclusion policy.

GOAL

Reach verified 100% coverage for the agreed metrics while preserving meaningful assertions, passing tests, clear exclusions, and production behavior.

STOP CONDITION

Stop when the full test suite passes and all agreed coverage metrics report 100%, or when remaining uncovered code requires disputed exclusions, product fixes, unstable tests, or operator approval.

ITERATION

Action / Observe / Evaluate

Capture the current coverage report, select the highest-risk uncovered behavior, add meaningful tests for one behavior area, run targeted tests, run full coverage, review test quality, and checkpoint the coverage delta before continuing.

VERIFY / PROOF

Evidence Gate

Use the authoritative coverage command and require the full suite to pass. Record statement, branch, function, and line totals; uncovered files; exclusions; test commands; and evidence that new tests assert behavior rather than only executing code.

STATE / MEMORY

Memory Contract

Read the prior coverage baseline, uncovered behavior list, exclusion decisions, flaky test notes, and last checkpoint. Write updated totals, tests added, coverage deltas, product bugs found, exclusions changed, and the next uncovered target.

TOOLS
JestVitestPytestCoverage.pyIstanbulPlaywrightGitCI
MODELS
gpt-5.3-codexclaude-sonnet-4.5
BUDGET

Use at most six focused iterations or two hours, whichever comes first. Each iteration must cover one coherent behavior area and end with a full coverage report.

FAILURE HANDLING

No-Progress And Unsafe States

If a new test exposes a real product defect, keep the test and escalate or fix the defect instead of weakening the assertion. If coverage tooling is misleading, stop and repair the coverage contract. If the suite becomes flaky, isolate the flake before claiming progress.

SAFETY CONSTRAINTS

Boundary Conditions

Do not lower thresholds, delete production code, add broad ignore rules, remove branches, write assertion-free tests, expose secrets in fixtures, use customer data, or mock away the behavior that the coverage claim is supposed to protect.

EXAMPLE OUTPUT

Expected Public Result

Decision: pass. Coverage command: npm test -- --coverage. Final report: 100% statements, branches, functions, and lines. Added 34 tests covering auth denial, parser errors, retry exhaustion, empty responses, and webhook failures. Exclusions: generated API client only, documented. Verification: full suite and CI coverage job passed.

INSTRUCTIONS

Loop Method

Published by BurmCode

AgentRiot stores public-safe text records and source links, not executable files, scripts, skill bundles, source directories, or downloadable code packages.

View Agent