/rite-build: one verified slice
Build and prove one slice. HITL stops; a later user invocation starts the next.
Explicit .devrites/AFK alone lets the controlling root chain pending slices
serially under green proof, caps, and pause rules. Every wright returns after one slice.
Opt-in: /rite-build --parallel N (2≤N≤10; N=1≡serial) follows
reference/parallel-batch.md
(one-slice-cycle.md).
Root owns gates/bookkeeping. Fresh
devrites-slice-wright writes product
source/tests. Workflow Artifact paths use
workflow-artifacts.md.
Execute reference/phase-contract.md
(one-slice-cycle.md,
afk-discipline.md); dispatch uses
reference/wright-dispatch.md.
Required rules
Read .omp/skills/devrites-lib/reference/standards/core.md first. Load only triggered rules:
coding/error/testing/tdd.md/patterns/DoD; binding
.devrites/principles.md; security; topology; data integrity; integration reliability.
Wright applies anti-slop; root verifies returns and never patches source.
Invariants
- Default: one slice; writers serial on control. Parallel only via
--parallel Nunderreference/parallel-batch.md. Same-worktree multi-writer / root-emulated concurrency forbidden. Native-worktree pilot = single-slice isolation whenwright-dispatch.mdpreflight + reconcile hold. - Exact feature scope only; reject out-of-allowlist diffs; record adjacent issues.
- Never rerun an unchanged check; re-prove after edits.
- Unplanned dependency/design-system/gap/repair → Vet/Spec Drift Guard. Ask only for licensing/cost/security/product or explicit architecture-policy decisions.
- Root never edits product source/tests (
.devrites/+ Workflow Artifact only). Wright is sole product writer; extras in returned paths/git diff --name-onlyhard-stop. - Principles bind; irreversible conflict needs human exception or stop.
- Evidence beats confidence. Never weaken tests, skip TDD, widen writers, or
self-approve. Drift →
spec-drift-guard.md; checkpoint →checkpoint.md. - Async readiness waits during slice work follow
debug-recovery.md(bounded poll + last-signal artifact; no blind sleep as primary strategy).
Workflow Artifact branch
--parallel N (opt-in)
Omitted/1 ≡ serial; 2–10 → path-disjoint fan-out when eligible; else hard refuse.
All-green serial integrate; one red/gap aborts. Abort with agent-owned plan
gaps continues via Spec Drift Guard (plan repair + vet inline); do not emit a
human Fix. AFK charges after integrate only. Running lease blocks another
/rite-build. Details: parallel-batch.md.
Execute and reply
Run every step in reference/phase-contract.md: readiness, one target, dispatch
or canonical transaction, return inspection, independent doubt/test analysis,
approved fail-on-red proof, record, AFK accounting, and stop. Use
reference/output.md plus the shared
reply contract. HITL never starts
the next slice automatically; AFK chains only within its durable remaining
budget; Prove starts only after all slices are built.
Phase exit (observable)
Complete when: the dispatched wright returns green proof for the slice,
git diff --name-only ⊆ allowlist, independent test analysis admits no Critical
gap, and state.md cursor advances with recorded evidence paths.
Failing case: wright reports "done" but proof command was not executed or failed → slice incomplete; do not advance cursor.