gz obpi validate¶
Validate OBPI brief(s) for authored readiness, scaffold detection, and completion readiness.
Usage¶
gz obpi validate <path-to-obpi-brief>
gz obpi validate --adr ADR-X.Y.Z
gz obpi validate <path-to-obpi-brief> --authored
gz obpi validate --adr ADR-X.Y.Z --authored
Single-file mode takes a filesystem path to one OBPI brief. Relative paths resolve from the current workspace root.
Batch mode (--adr) discovers and validates all OBPI briefs in the ADR package's obpis/ directory.
Runtime Behavior¶
Scaffold Detection (all statuses)¶
For any brief regardless of status, the validator detects template placeholders left by gz specify or other scaffolding:
src/module/in Allowed PathsFirst constraintorSecond constraintin RequirementsGiven/When/Then behavior criterionin Acceptance Criteria
Scaffold detection fails closed when the brief was auto-generated but never authored.
Authored Readiness (--authored)¶
When --authored is passed, the validator additionally fails closed on briefs
that are too thin to serve as execution contracts. This checks for substantive:
ObjectiveAllowed PathsDenied Paths- numbered
Requirements (FAIL-CLOSED) Discovery Checklistentries underPrerequisitesandExisting Code- at least one OBPI-specific verification command beyond the baseline repo checks
- REQ-backed acceptance criteria
Use this mode after gz specify and before gz obpi pipeline.
Completion Readiness (status: Completed)¶
For completed briefs the validator additionally fails closed on:
- missing or empty
Allowed Paths - changed files outside the OBPI allowlist
- missing or placeholder
Implementation Summary - missing or placeholder
Key Proof - missing git-sync readiness prerequisites
- missing heavy/foundation human-attestation evidence
Text mode prints BLOCKERS: followed by one blocker per line and exits 1 when validation fails. Passing validation exits 0.
Options¶
| Option | Description |
|---|---|
<path> |
Path to a single OBPI brief file |
--adr ADR-X.Y.Z |
Validate all OBPI briefs under an ADR package |
--authored |
Require authored-ready brief content before pipeline execution |
Examples¶
# Single brief
uv run gz obpi validate docs/design/adr/foundation/ADR-0.0.3-hexagonal-architecture-tune-up/obpis/OBPI-0.0.3-01-hexagonal-skeleton.md
# All briefs under an ADR
uv run gz obpi validate --adr ADR-0.0.3
# All briefs under an ADR must be authored before pipeline entry
uv run gz obpi validate --adr ADR-0.0.3 --authored