$rite-autocomplete: full lifecycle, unattended
Run every phase after one clarification window. Irreversible-risk,
blocking/escalating,
NO-GO, resource, and human-owned gates still pause. Use the Standard native
profile by default and Full for high-risk scope or explicit --full; see
orchestration-profiles.md.
Required rules
Read devrites-lib/reference/standards/core.md and afk-hitl.md first. Read
one-shot-actions.md before any stop/continue or execution decision involving a
consumptive action. Before honoring a terminal cursor that names missing
executable controller/harness/bundle bytes or a missing writer, read
workflow-artifacts.md. Before classifying any Reslice, read .agents/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md.
FOLD → keep Plan repair/affected Vet internal; no stop solely for topology/count.
GUARD_AND_REPAIR → enter Spec Drift Guard/Clarify; pause only at an existing human-owned gate; resume Plan/Vet internally.
BLOCKED_INPUT → no planning writes; stop internal branch; exact diagnostic; recover authority; reclassify.
Invariants
- Use one initial human window: Spec, topology-first Clarify, and
Decision coverage: CLEAR. Only then arm AFK. Record later reversible choices
under decision policy.
- Safety is not bypassable.
--ship/--yolo reaches only the exact-plan
literal-GO and native-approval boundary; it never authorizes Git.
- Treat technical readiness as routing, not completion.
NEEDS REPLAN is a backward edge
to Plan repair and narrow Vet. NEEDS REPLAN cold resume follows a valid
technical return cursor before forward work or any reply. Clarification is
likewise internal when current authority resolves it.
- Always follow agent-owned backward edges through repair, affected Vet,
correction, and proof. A nested
STOP/Next step is not a user handoff.
Pause only for a shared human/safety/access/exhaustion condition.
- Do not confuse an action budget with recovery exhaustion. Spent action
authority blocks another real execution, not offline correction of retained
Critical/Important evidence. Stop for fresh GO only after changed conditions
and READY Vet.
- Every exact causal fingerprint gets at most three no-progress corrections.
Closing one is progress; a distinct Critical/Important invariant has its own
budget. Lower severity cannot prolong recovery.
- Enforce
--max-slices, the AFK sentinel, expiry, review queue, and native
agent/token/cost/time limits before every phase or dispatch. Count failed,
malformed, and unavailable leaf calls. At the review cap, permit only work
that reduces the queue.
- Parse flags only from this invocation.
--ship, --yolo, --max-slices,
--full, and --cross-model activate only as exact standalone tokens in
$ARGUMENTS; examples or earlier messages can never arm them. --max-slices
must occur once and be followed by a positive base-10 integer; missing, repeated, malformed, or conflicting values stop before any write.
- Temper always runs after Clarify. Unattended mode auto-applies only
hold-rigor and reduce-to-MVP; any expand or added acceptance pauses.
- Vet every plan. Cross-model is off unless the current invocation arms it.
Never auto-grow accepted scope.
Workflow
- Orient and parse. Resolve the explicit or active slug; when a workspace exists,
require its
state.md and read its cursor; a fresh idea starts empty at step 2.
Before honoring blocked with terminal next_action,
reconcile retained consumptive evidence and fingerprint attempts from
drift.md/evidence.md; a retained fingerprint below its cap resumes offline
recovery.
Reconstruct a missing return cursor only from
the current phase and exact approved action in test-plan.md/evidence, never
from chat. After compaction or a resumed session, read .devrites/ACTIVE, then
the state.md cursor, questions.md, decisions.md, and test-plan.md/evidence.md.
Normalize current arguments to idea, ship_preflight: yes|no,
max_slices: N|default, profile: standard|full, and cross_model: yes|no.
Completion: normalized state is unambiguous and no sentinel or workspace file has been written.
2. Specify and clarify. Run devrites-interview, $rite-spec, and
$rite-clarify as one window. Partial/Missing material coverage never arms
AFK. Completion: Decision coverage: CLEAR is durable.
3. Arm AFK once. Apply the loop's
one-write AFK contract: preserve valid
existing bytes or create the bounded advisory-only sentinel once; never
rewrite it after Vet. Preserve an existing sentinel byte-for-byte. Touch
.devrites/CHECKPOINT so proven slices get local crash-survivable WIP
checkpoints for Ship to collapse. Completion: valid read-only AFK and checkpoint sentinels exist.
4. Drive phases. Follow the loop: $rite-spec →
$rite-clarify → $rite-temper → $rite-define → $rite-vet →
$rite-build × pending slices → $rite-prove → $rite-polish →
$rite-review → $rite-seal. Read and execute each skill; durable files, not
chat, carry state. Apply the mutable post-vet budget before first Build.
Completion: loop reaches Seal GO or persists a valid stop before any later phase.
5. Apply stops. At every gate use
stop-conditions.md. A blocked label alone is not a stop condition:
route agent-owned red results through bounded recovery.
Red gates block forward advancement and enter caller-owned recovery. Stop on
hard risk, human-owned blocking/escalating/NO-GO, resource exhaustion, or the
exact fingerprint's proven exhaustion. Technical exhaustion records terminal
Next step: none, never a routine phase command. Completion: no stop is active, or its cursor and reason are durable.
6. Seal boundary. Without a ship flag, stop at Seal GO with $rite-ship.
With one, perform Ship preflight, disclose the exact Git plan, and stop for
fresh literal GO plus native approval. Completion: performed no Git action before fresh literal GO plus native approval.
Reply and resume
HITL Build returns after one slice; explicit valid AFK may chain only green
slices within every cap. One Autocomplete invocation owns all internal
backtracking. Context pressure, compaction, or a nested completion footer does
not create a stop; persist and resume the cursor.
Use one terse line:
Autocomplete: <slug>
spec <done|stopped> · clarify <clear|stopped> · temper <done|stopped> · define <done|stopped> · vet <ready|stopped> · build <n/N|stopped> · prove <done|stopped> · polish <done|stopped> · review <done|stopped> · seal <GO|NO-GO|stopped>
Final state is Shipped, Stopped, Awaiting human, NO-GO, or GO; do not
write a narrative recap. Require a clean or accepted baseline, arm checkpoint
mode, and never auto-pass a red gate.
1---2name: rite-autocomplete-33description: Run the full DevRites lifecycle unattended; --ship continues to the final Git approval boundary. Use for one-shot autonomous work; not for a single phase.4---56# $rite-autocomplete: full lifecycle, unattended78Run every phase after one clarification window. Irreversible-risk,9blocking/escalating,<!-- pack-scan-ignore: negated statement: gates are NOT disabled -->10NO-GO, resource, and human-owned gates still pause. Use the Standard native11profile by default and Full for high-risk scope or explicit `--full`; see12[`orchestration-profiles.md`](../devrites-lib/reference/orchestration-profiles.md).1314## Required rules1516Read `devrites-lib/reference/standards/core.md` and `afk-hitl.md` first. Read17`one-shot-actions.md` before any stop/continue or execution decision involving a18consumptive action. Before honoring a terminal cursor that names missing19executable controller/harness/bundle bytes or a missing writer, read20`workflow-artifacts.md`. Before classifying any Reslice, read `.agents/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md`.2122<!-- BEGIN RESLICE ROUTE-TO-ACTION -->23- `FOLD` → keep Plan repair/affected Vet internal; no stop solely for topology/count.24- `GUARD_AND_REPAIR` → enter Spec Drift Guard/Clarify; pause only at an existing human-owned gate; resume Plan/Vet internally.25- `BLOCKED_INPUT` → no planning writes; stop internal branch; exact diagnostic; recover authority; reclassify.26<!-- END RESLICE ROUTE-TO-ACTION -->2728## Invariants2930- Use one initial human window: Spec, topology-first Clarify, and31 `Decision coverage: CLEAR`. Only then arm AFK. Record later reversible choices32 under [decision policy](reference/decision-policy.md).33- Safety is not bypassable. `--ship`/`--yolo` reaches only the exact-plan34 literal-GO and native-approval boundary; it never authorizes Git.35- **Treat technical readiness as routing, not completion.** `NEEDS REPLAN` is a backward edge36 to Plan repair and narrow Vet. `NEEDS REPLAN` cold resume follows a valid37 technical return cursor before forward work or any reply. Clarification is38 likewise internal when current authority resolves it.39- Always follow agent-owned backward edges through repair, affected Vet,40 correction, and proof. A nested `STOP`/`Next step` is not a user handoff.41 Pause only for a shared human/safety/access/exhaustion condition.42- **Do not confuse an action budget with recovery exhaustion.** Spent action43 authority blocks another real execution, not offline correction of retained44 Critical/Important evidence. Stop for fresh GO only after changed conditions45 and READY Vet.46- Every exact causal fingerprint gets at most three no-progress corrections.47 Closing one is progress; a distinct Critical/Important invariant has its own48 budget. Lower severity cannot prolong recovery.49- Enforce `--max-slices`, the AFK sentinel, expiry, review queue, and native50 agent/token/cost/time limits before every phase or dispatch. Count failed,51 malformed, and unavailable leaf calls. At the review cap, permit only work52 that reduces the queue.53- Parse flags only from this invocation. `--ship`, `--yolo`, `--max-slices`,54 `--full`, and `--cross-model` activate only as exact standalone tokens in55 `$ARGUMENTS`; examples or earlier messages can never arm them. `--max-slices`56 must occur once and be followed by a positive base-10 integer; missing, repeated, malformed, or conflicting values stop before any write.57- Temper always runs after Clarify. Unattended mode auto-applies only58 `hold-rigor` and `reduce-to-MVP`; any `expand` or added acceptance pauses.59- Vet every plan. Cross-model is off unless the current invocation arms it.60 Never auto-grow accepted scope.6162## Workflow63641. **Orient and parse.** Resolve the explicit or active slug; when a workspace exists,65 require its `state.md` and read its cursor; a fresh idea starts empty at step 2.66 Before honoring `blocked` with terminal `next_action`,67 reconcile retained consumptive evidence and fingerprint attempts from68 `drift.md`/`evidence.md`; a retained fingerprint below its cap resumes offline69 recovery.70<!-- workflow-artifact-adapter: {"module":"devrites-lib/reference/standards/workflow-artifacts.md","entry":"lifecycle cursor encounters admitted set or resumable journal","action":"invoke classifier; execute returned route internally","return":"saved phase/action; zero intermediate reply"} -->71 Reconstruct a missing return cursor only from72 the current phase and exact approved action in `test-plan.md`/evidence, never73 from chat. After compaction or a resumed session, read `.devrites/ACTIVE`, then74 the `state.md` cursor, `questions.md`, `decisions.md`, and `test-plan.md`/`evidence.md`.75 Normalize current arguments to idea, `ship_preflight: yes|no`,76 `max_slices: N|default`, `profile: standard|full`, and `cross_model: yes|no`.77 **Completion:** normalized state is unambiguous and no sentinel or workspace file has been written.782. **Specify and clarify.** Run `devrites-interview`, `$rite-spec`, and79 `$rite-clarify` as one window. Partial/Missing material coverage never arms80 AFK. **Completion:** `Decision coverage: CLEAR` is durable.813. **Arm AFK once.** Apply the loop's82 [one-write AFK contract](reference/loop.md#arm-afk-once): preserve valid83 existing bytes or create the bounded advisory-only sentinel once; never84 rewrite it after Vet. Preserve an existing sentinel byte-for-byte. Touch85 `.devrites/CHECKPOINT` so proven slices get local crash-survivable WIP86 checkpoints for Ship to collapse. **Completion:** valid read-only AFK and checkpoint sentinels exist.874. **Drive phases.** Follow [the loop](reference/loop.md): `$rite-spec` →88 `$rite-clarify` → `$rite-temper` → `$rite-define` → `$rite-vet` →89 `$rite-build` × pending slices → `$rite-prove` → `$rite-polish` →90 `$rite-review` → `$rite-seal`. Read and execute each skill; durable files, not91 chat, carry state. Apply the mutable post-vet budget before first Build.92 **Completion:** loop reaches Seal GO or persists a valid stop before any later phase.935. **Apply stops.** At every gate use94 [stop-conditions.md](reference/stop-conditions.md). A `blocked` label alone is not a stop condition:95 route agent-owned red results through bounded recovery.96 Red gates block forward advancement and enter caller-owned recovery. Stop on97 hard risk, human-owned blocking/escalating/NO-GO, resource exhaustion, or the98 exact fingerprint's proven exhaustion. Technical exhaustion records terminal99 `Next step: none`, never a routine phase command. **Completion:** no stop is active, or its cursor and reason are durable.1006. **Seal boundary.** Without a ship flag, stop at Seal GO with `$rite-ship`.101 With one, perform Ship preflight, disclose the exact Git plan, and stop for102 fresh literal `GO` plus native approval. **Completion:** performed no Git action before fresh literal `GO` plus native approval.103104## Reply and resume105106HITL Build returns after one slice; explicit valid AFK may chain only green107slices within every cap. One Autocomplete invocation owns all internal108backtracking. Context pressure, compaction, or a nested completion footer does109not create a stop; persist and resume the cursor.110111Use one terse line:112113```text114Autocomplete: <slug>115spec <done|stopped> · clarify <clear|stopped> · temper <done|stopped> · define <done|stopped> · vet <ready|stopped> · build <n/N|stopped> · prove <done|stopped> · polish <done|stopped> · review <done|stopped> · seal <GO|NO-GO|stopped>116```117118Final state is `Shipped`, `Stopped`, `Awaiting human`, `NO-GO`, or `GO`; do not119write a narrative recap. Require a clean or accepted baseline, arm checkpoint120mode, and never auto-pass a red gate.