| name | run-quality-gate |
| description | Runs the repository quality gate in verification or repair mode. Use to assess release readiness, clear diagnostics, fix lint or test failures, or enforce the unit-coverage policy. |
Run Quality Gate
Run a fixed gate sequence with objective command evidence.
Select Mode
- Verify mode: use when the user asks whether the branch passes. Run every
applicable gate and report failures without editing source, tests, or config.
- Repair mode: use when the user asks to clean or fix the branch. Close each
gate before moving to the next; edit only causes within the requested
repository scope.
Never introduce suppressions, exclusions, disabled rules, or lower thresholds
without explicit user approval.
Read REFERENCE.md once before execution for command discovery,
coverage interpretation, stop conditions, and the report contract.
Gates
Run in this order:
- Problems: use a whole-workspace diagnostics API when one is available.
Otherwise mark this gate
N-A with the missing capability; do not claim the
Problems panel is empty.
- Markdown: run the discovered repository Markdown command or the
documented fallback. Pass only on zero findings.
- ESLint: run the discovered lint command. Pass only on a clean exit.
- Fallow: run the dead-code command. Pass only on zero findings.
- Unit: run the discovered unit suite. Pass when all tests pass; use
N-A
only when no suite exists.
- E2E: run the discovered browser E2E suite. Pass when all tests pass; use
N-A only when no suite exists.
- Coverage: run unit coverage, supplementary E2E coverage when available,
and the combined report. Pass only when every reported unit Statements,
Branches, Functions, and Lines cell is at least 80%.
In verify mode, continue after a failed gate when later commands remain safe
and independent. In repair mode, stop at a condition defined in
REFERENCE.md.
Repair Loop
For each open gate in repair mode:
- Capture the exact failing command and diagnostic.
- Identify the smallest root cause.
- Apply the smallest in-scope repair.
- Re-run that gate until it passes or reaches a stop condition.
- Record every changed file before advancing.
Completion Criterion
The gate run is complete when every applicable gate has an objective status,
commands and outcomes are recorded in order, no unauthorized suppression or
edit occurred, and the final output satisfies the report contract in
REFERENCE.md. Claim an overall pass only when every applicable
gate passes.