| name | verification-gates |
| description | Enforces build, test, and lint gates with a self-correction loop and retry budget. |
Verification Gates & Self-Correction Loop
To ensure repository stability, all major changes must pass through a series of "Verification Gates."
The Gates
- Build Gate:
npm run build (or equivalent).
- Test Gate:
npm test (or equivalent).
- Lint Gate:
npm run lint or ruff check.
The Self-Correction Workflow
Whenever a gate fails (e.g., via the gate tool), follow this loop:
- Capture: Inspect the
stderr and stdout provided by the gate tool.
- Analyze: Explicitly state the root cause of the failure.
- Fix: Apply a patch or modification to address the cause.
- Retry: Re-run the
gate tool with the same command.
Retry Budget
- You have a Retry Budget of 5 attempts.
- If the gate still fails after 5 tries, STOP IMMEDIATELY and ask the human user for intervention. Do not continue trying variations.
Operational Guidance
Always run the gate tool for any verification step. If a gate fails, announce "SELF-CORRECTION LOOP START [Attempt X/5]".