Engineering

Test and Logging Coverage

Raise the floor for every future loop by improving the evidence system.

Use when

Important flows are hard to debug or verify, especially auth, payments, data mutation, external APIs, jobs, and error boundaries.

Cadence

Weekly or before release

Verification

Critical flows have useful tests and structured logs for representative success and failure paths.

Advanced spec

Structured loop spec

FieldValue
NameTest and Logging Coverage
CategoryEngineering
TriggerWeekly or before release
ObjectiveRaise the floor for every future loop by improving the evidence system.
Allowed inputsRelevant files, source notes, logs, tests, screenshots, metrics, or task state for this loop
Allowed actionsList critical flows and current test/log coverage.; Choose the riskiest blind spot.; Add the smallest useful test and structured log improvement.; Verify logs do not expose secrets and tests prove the path.
VerificationCritical flows have useful tests and structured logs for representative success and failure paths.
Stop conditionStop when the verifier passes, the budget is exhausted, no progress is made, a blocker appears, or approval is required.
BudgetSet a time, turn, token, retry, file, or dollar cap before running the loop.
Approval boundaryHuman approval required before public, destructive, financial, legal, account, or production-impacting actions.
Safe outputPull request, patch, report, or evidence log
Works withClaude Code, OpenAI Codex, Cursor, Gemini CLI, any tool-using coding agent
Runbook

Steps

  1. List critical flows and current test/log coverage.
  2. Choose the riskiest blind spot.
  3. Add the smallest useful test and structured log improvement.
  4. Verify logs do not expose secrets and tests prove the path.
Copy prompt

Prompt

Review critical flows and improve tests plus structured logging until important paths have useful coverage. Prioritize auth, payments, data mutation, external calls, queue jobs, cron jobs, and error boundaries. Verify where practical and return coverage evidence.
Metadata

Tags

testingobservabilityloggingcritical flows
Next loops

Related