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 lintorruff check.
The Self-Correction Workflow
Whenever a gate fails (e.g., via the gate tool), follow this loop:
- •Capture: Inspect the
stderrandstdoutprovided by thegatetool. - •Analyze: Explicitly state the root cause of the failure.
- •Fix: Apply a patch or modification to address the cause.
- •Retry: Re-run the
gatetool 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]".