name: gz-arb persona: main-session description: Wrap QA commands in ARB receipts for attestation evidence. Use when producing Heavy-lane attestation evidence, diagnosing recurring lint patterns, or auditing QA compliance via receipts. category: agent-operations lifecycle_state: active owner: gzkit-governance last_reviewed: 2026-06-07 model: haiku gz_command: arb advise metadata: skill-version: "1.1.0" revived_on: "2026-04-14" revived_under: OBPI-0.25.0-33 revival_note: "ARB surface absorbed from airlineops/opsdev/arb under OBPI-0.25.0-33. The earlier retirement (2026-04-03, 'consolidated into gz-check') was itself drift — gz check never implemented ARB receipt emission, so the rule contract in .gzkit/rules/arb.md was referencing a nonexistent surface. Revival restores parity with the rule."
gz arb
Overview
Agent Self-Reporting middleware: wrap QA commands (ruff, ty, unittest, coverage) and emit schema-validated JSON receipts to artifacts/receipts/. These receipts are the canonical attestation evidence cited in Heavy-lane OBPI closeout claims per AGENTS.md § Attestation.
When to Use
- Producing Heavy-lane attestation evidence (receipt IDs for lint, typecheck, tests, coverage)
- Debugging a failing QA step and needing a deterministic receipt artifact
- Summarizing recurring advice from recent lint runs to tune agent guardrails
- Auditing QA compliance across an ADR or release cycle
Workflow
- Wrap the QA step via ARB — pick the appropriate verb. For any claim
category named in
AGENTS.md§ Attestation § Canonical invocations, use the canonical invocation from that table; those commands are locked byCANONICAL_STEP_COMMANDSand divergence is flagged bygz arb validateas non-canonical provenance (GHI #199).uv run gz arb ruff <paths>— ruff lint (canonical for lint claims)uv run gz arb typecheck— wrapsty check src, the same target asgz typecheckandgz closeout(canonical for type-check claims)uv run gz arb step --name unittest -- uv run -m unittest -q— canonical for tests-pass claimsuv run gz arb coverage run -m unittest discover -s tests -t .— canonical for coverage-floor claimsuv run gz arb step --name <name> -- <command>— any step not named in the canonical table (diagnostic or bespoke QA only; not valid attestation provenance)uv run gz arb ty— rawuvx ty checkpassthrough; not an alias ofgz arb typecheck(which wrapsty check srcwith the ARB schema). Usegz arb tywhen you need the rawtyoutput without ARB receipt emission, or to pass customtyflags directly.
- Validate the emitted receipts —
uv run gz arb validate --limit 20 - Summarize recent receipts —
uv run gz arb advise --limit 20 - Extract recurring patterns (optional) —
uv run gz arb patterns - Cite receipt IDs in the attestation per
AGENTS.md§ Attestation
Example
# Produce full attestation evidence for Heavy-lane closeout.
# Each invocation below is the canonical form per
# AGENTS.md § Attestation § Canonical invocations.
uv run gz arb ruff src tests
uv run gz arb typecheck
uv run gz arb step --name unittest -- uv run -m unittest -q
uv run gz arb coverage run -m unittest discover -s tests -t .
uv run gz arb validate --limit 10
uv run gz arb advise --limit 10
Output Contract
gz arb ruff/step/ty/coverage— exit 0 on success, 1 on command failure, 2 on ARB internal error; receipt always emitted toartifacts/receipts/<run_id>.jsongz arb validate— human text by default;--jsonfor machine-readablegz arb advise— human text;--jsonfor machine-readablegz arb patterns— Markdown report by default;--compactfor one-liner;--jsonfor machine-readable
Validation
- Confirm receipts appear under
artifacts/receipts/after each wrapped run. - Run
uv run gz arb validateand confirminvalid=0before citing receipt IDs in attestations.
References
- Binding rule:
AGENTS.md§ Attestation (em-dash pattern + canonical invocations + lane behavior + receipt-ID discipline) - Deep-dive:
docs/governance/arb-middleware.md(core concept, command surface, receipt schema, exit codes, rationale) - Command docs:
docs/user/manpages/arb.md - Manpage:
docs/user/manpages/arb.md - Absorption record: OBPI-0.25.0-33 under ADR-0.25.0