gz-implement
Use to run Gate 2 for an ADR and record the result.
SKILL.md.gzkit/skills/gz-implement/SKILL.md
GitHubgz implement
Overview
Run Gate 2 for one ADR and record the result in the ledger. gz implement:
- resolves the target ADR from
--adr(a bare0.1.0gains theADR-prefix and is canonicalized through the ledger's rename events); with no--adrit uses the single ADR pending attestation, and exits 1 when there are none or several; - runs the
verification.testcommand from.gzkit/manifest.json(defaultuv run gz test) and prints its output; - appends a Gate 2
gate_checkedevent carrying the command, its exit code andpassorfail; - when the tests pass, runs the eval delta: it scores
data/eval/*.jsonand compares the scores withdata/eval/baselines/*.baseline.jsonunderconfig/eval_thresholds.json. A second Gate 2 event, commandeval-delta, records the outcome, orpasswithskipped:evidence when either directory is empty; - exits 1 when the tests fail or the eval delta finds a regression.
It writes the ledger on every run, pass or fail. It does not run lint, docs or
BDD; uv run gz check is the per-change quality gate.
Workflow
- Name the ADR:
uv run gz implement --adr ADR-<X.Y.Z>. Pass--adrwhenever more than one ADR is pending, which is the usual state. - On a test failure, fix the failing tests and re-run. On an eval regression, the output names the surface, dimension, baseline and current score.
- Report the ADR id, the pass/fail line and any regression lines.
Example
uv run gz implement --adr ADR-0.1.0