quality-gates
/quality-gates
Wyjaśnia, jakie bramki jakości uruchamia CI w projekcie WellForge, gdzie leżą progi i jak je bezpiecznie zmienić.
- Autor
- matteocodogno ↗
- Repozytorium
- wellforge ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wyjaśnia, jakie bramki jakości uruchamia CI w projekcie WellForge, gdzie leżą progi i jak je bezpiecznie zmienić.
Oryginalny opis (EN)
WellForge quality gates — what CI enforces, where the thresholds live, and how to change one. Use when wiring CI into a project, when a gate is red and you need to know whether it blocks at this rigor tier, when someone proposes lowering a threshold, when pinning or bumping a gates-v* ref, or when the devops agent needs the standard wiring. Authoritative reference for the gate catalogue, the central-threshold rule (change by PR to gates/, never locally), the security floor that blocks at every tier, and the reusable-workflow calling convention.
Jak działa
- The catalogue
- Referenced, never copied
- Tier behaviour — what blocks, and what only reports
- Changing a threshold
Podgląd SKILL.md
---
name: quality-gates
description: >
WellForge quality gates — what CI enforces, where the thresholds live, and how to change
one. Use when wiring CI into a project, when a gate is red and you need to know whether it
blocks at this rigor tier, when someone proposes lowering a threshold, when pinning or
bumping a gates-v* ref, or when the devops agent needs the standard wiring. Authoritative
reference for the gate catalogue, the central-threshold rule (change by PR to gates/, never
locally), the security floor that blocks at every tier, and the reusable-workflow calling
convention.
---
# Quality gates — objective, central, and not yours to lower
Gates are the deterministic half of verification (the LM-judge eval is the other half —
[`rigor-tiers`](../rigor-tiers/SKILL.md)). Their defining property is that **no individual decides whether their own
code passes**: thresholds live centrally, in the gate workflows' `env` blocks under
`gates/`, and change only by PR to that directory.
The gates are also not the whole security story. What they cover, what the security floor
blocks at every tier, and — more usefully — what is **not** covered (there is no content
sanitisation, so an agent asked to implement a file will follow instructions found inside it)
is written down in [SECURITY.md](https://github.com/matteocodogno/wellforge/blob/main/SECURITY.md)
— an absolute link on purpose: this skill is also generated into the Copilot and
OpenCode adapters, where the repo root is not above it and a relative path dangles.
Read it before telling anyone the
gates make a repository safe to point agents at.
## The catalogue
| Gate | What it runs |
|---|---|
| `quality-node.yml` | Node/TS: install, lint, typecheck, test + coverage, SAST, dependency audit |
| `quality-jvm.yml` | JVM: compile, ktlint, test, JaCoCo coverage, SAST, dependency audit |
| `security-floor.yml` | Secret scan over full git history (betterleaks, pinned + checksum-verified). That is its whole scope — see "What the floor is" below |
| `commit-lint.yml` | Conventional Commits over the PR range ([`git-policy`](../git-policy/SKILL.md)) |
| `linear-history.yml` | No merge commits in the PR range ([`git-policy`](../git-policy/SKILL.md)) |
| `quality-eval.yml` | Opt-in LM-judge against the central rubric; needs `ANTHROPIC_API_KEY` |
| `heartbeat-report.yml` | Deduplicated tracking issue for scheduled runs ([`heartbeat`](../heartbeat/SKILL.md)) |
### When the owasp-reviewer runs — `config/security-triggers.yml`
The security floor blocks at every tier, but the floor is an *automated* check: the secret
scan (which is also the "no hardcoded credentials" check — that is what a secret scanner
does). The **specialist review** — OWASP Top 10 against the
actual diff — used to run only when someone thought to ask for it, which is not a gate.
`wellforge-plugin/config/security-triggers.yml` makes the dispatch a property of the task
graph: path globs (`**/auth/**`, `**/routes/**`, `**/migrations/**`, `**/*Controller*.kt`,
`**/*.sql`, …) plus substrings that imply a sensitive surface (`upload`, `payment`, `token`,
`session`, `password`, `secret`, `credential`), and `always_at_tier: [production]`.
`scripts/security-triggers.py` evaluates it against the **union** of the batch's declared
`touch:` globs and the real `git diff --name-only` — intent and reality, because a file
nobody declared is exactly the one worth reviewing. `$wf-implement` (Step 3b) and
`$wf-orchestrate` call it after integration and before QE; the outcome is recorded as
`verdicts.security` in the run trace, and at `production` a missing verdict is a failing
done-gate condition (absent ≠ passed).
Changing the trigger list is like changing a threshold: a PR, with the reason. Widening it
costs one mid-tier agent per matched batch; narrowing it removes a review nobody will notice
is missing.
### What the floor is — and the hole it does not cover
`security-floor.yml` runs **one** thing: betterleaks over the full git history, with
`gates/configs/betterleaks.toml`. It is called unconditionally by every generated
`quality.yml`, at every tier.
It used to be described here as "secret scan, hardcoded credentials, CRITICAL-CVE audit".
The first two are the same check. The third it has never run, and it should not:
- The floor is **stack-neutral** — one workflow serves all three presets. `pnpm audit` would
make it uniform in name and Node-only in fact.
- `osv-scanner` *is* stack-neutral (`quality-jvm.yml` already uses it), but it reports dev
and production dependencies alike: no `--prod` flag, no dependency group in its JSON
(measured on 2.6.0). Blocking on that contradicts `quality-node.yml`'s own
`pnpm audit --prod` policy, and it fails every fresh scaffold today on `vitest@2.1.9` /
GHSA-5xrq-8626-4rwp (CVSS 9.8) — a **dev** dependency whose fix is a vitest major bump
deferred to `specs/20260920-ts-stack-migration`.
So CVE audits live where a stack can judge them, at `mvp` and `production`:
| Where | What | Tiers |
|---|---|---|
| `quality-node.yml` | `pnpm audit --prod --audit-level high` | mvp, production |
| `quality-jvm.yml` | `osv-scanner scan source -r .` | mvp, production |
**A `spike` therefore has no CVE gate in CI.** `$wf-spike` checks critical advisories
locally, and local is not a gate. That is the honest shape of the floor: state the hole, do
not paper it over with a line in a table.
A second consequence, worth knowing when reading old runs: the floor resolved its config
from the **caller's** checkout, a path (`gates/configs/betterleaks.toml`) that exists in this
repo and in no generated project — and fell back to defaults silently. Every downstream scan
before `gates-v12` ran without the `op://` allowlist.
Supporting configs: `gates/configs/semgrep/wellforge.yml` (SAST rules),
`gates/configs/betterleaks.toml`, `gates/configs/eval-rubric.yml` (the rubric — mirrored into
the plugin so an in-session eval can resolve it), `gates/scripts/check-jacoco.py`,
`check-commit-msg.py`, `run-eval.py`.
## Referenced, never copied
Generated projects **call** the gates as reusable workflows; they never vendor a copy:
```yaml
jobs:
quality:
uses: <gates-repo>/.github/workflows/quality-node.yml@gates-v11
with:
gates-repo: <owner/repo>
gates-ref: gates-v11
working-directory: backend
```
Always pass `gates-repo` **and** `gates-ref` explicitly, and pin to a `gates-v*` tag. A call
that omits them falls back to the gate's own default — which is how a pilot project once ran
2026-06 configs against a current checkout and failed with an unexplained semgrep exit 7.
The pin a project is on must be readable in the project's own workflow file.
The `gates-v*` series is **separate from the template `vX.Y.Z` series** and moves
independently: a template release does not carry a gates bump to existing projects (the ref
is a recorded copier answer). `$wf-upgrade` raises it as an explicit, raise-only step.
## Tier behaviour — what blocks, and what only reports
From [`rigor-tiers`](../rigor-tiers/SKILL.md); repeated here because this is where people look when a gate is red:
| Tier | Blocking | Advisory |
|---|---|---|
| `spike` | security floor, plus history hygiene | lint, typecheck, build |
| `mvp` | security floor, SAST-high, lint, typecheck, history hygiene | coverage (reported as a gap) |
| `production` | everything, incl. 80% line coverage and the eval | — |
**The security floor blocks at every tier, including spike.** Fast never means "leaks
credentials". History hygiene is tier-independent for a different reason: it cannot be
repaired after the fact without rewriting published history.
## Changing a threshold
1. Open a PR to `gates/` (or `.github/workflows/`) with the new value **and the evidence** —
what the number is today, why the new one is right, what it would have caught or missed.
2. Never change it locally, per project, or "temporarily". A threshold one project can lower
is not a gate, and a gate everyone overrides is worse than no gate at all: it costs the
same and proves nothing.
3. Ratchets go **up**. The adoption path deliberately starts a brownfield project at its
*measured* baseline rather than at 80%, then raises it — a gate set above reality on day
one gets disabled by week two.
A red gate is never fixed by editing the gate. The two legitimate responses are: fix the
code, or bring evidence that the threshold is wrong. QE reports a lowered threshold as a
FAIL, not as a pass.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · matteocodogno/wellforge | 100 | MIT |
| Kanevry/session-orchestrator | 100 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| andymai/brepjs | 100 | Apache-2.0 |
| devpilotX/ai-skill-ai | 100 | MIT |
| AssassinFlash/b2b-seo-agent-engine | 100 | MIT |
| matteocodogno/wellforge | 100 | MIT |
| samplexbro/agentsmesh | 100 | MIT |
| samplexbro/agentsmesh | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 72016b7c4bef (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100rigor-tiers
Dobiera poziom rygoru do stawki w WellForge: spike, MVP albo produkcja, określając agentów, bramki jakości, modele i zakres ewaluacji. - 100rigor-tiers
Dobiera rygor procesu do stawki zmiany: trzy poziomy spike, mvp i production z bramkami, modelami i ewaluacją. - 90gate-ci
Włącza bramki jakości API do CI: linting, wykrywanie zmian łamiących i kontrolę pokrycia. - 100ci-cd-quality-gates
Projektuje lekkie bramki jakości CI: lint, poziomy testów, skany bezpieczeństwa i polityki merge, niezależnie od stosu technologicznego. - 90generating-quality-gate-workflows
Generuje workflow CI egzekwujący kontrakt jakości: warstwowe zadania od szybkich lokalnych hooków po bramki wydania, kroki dla toolchainów JS i TS, kontrole zakresu diffa, raportowanie w pull requestach i politykę ważności. - 90dx-devops-test-pipeline-configure
Konfiguruje testy w pipeline DevOps Center: włącza dostawcę testów, synchronizuje nowe zestawy i tworzy bramki jakości na etapach.