Read-set manifest: devrites-engine context --skills-root .devin/skills <slug> --phase autocomplete bundles every file named below into one deduplicated read. Trigger names map to the conditional rules in the sections that follow.
/rite-autocomplete: full lifecycle, unattended
Run every phase after one clarification window. Irreversible-risk,
escalating,
access, unanswered blocking with no recommended option, and remaining NO-GO
still pause. Open blocking questions that already name a ranked recommended
option auto-resolve; they are not a user handoff, except a question whose answer
would add acceptance or product scope, which a recommended option never resolves.
Use the Standard native
profile by default and Full for high-risk scope or explicit --full; see
orchestration-profiles.md.
Required rules
Read 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
(trigger workflow-artifacts — only when a workspace declares them). Before classifying any Reslice, read .devin/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 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 three no-progress corrections per strategy.
A spent strategy escalates to a new correction class inline; after three
escalations it parks while independent work continues. Never ask permission to
retry. Closing one is progress; a distinct Critical/Important invariant has its
own budget. Lower severity cannot prolong recovery.
- Do not stop on
--max-slices, sentinel max_slices, max_agents,
max_minutes, or max_review_queue. Count failed, malformed, and
unavailable leaf calls.
- Never end the turn with a progress note while a wave runs or a next step
exists: on a headless host a text-only reply ends the session and kills
running children. Wait with the host's wait tool and keep working; end only
at a recorded stop. A host reminder or rule notice (style rule, advisory) is
not a stop either: follow it in your next tool call, never in a text-only
acknowledgement.
- Parse flags only from this invocation.
--ship, --yolo, --max-slices,
--parallel, --full, --cross-model, and --lookahead 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;
--parallel must occur once and be followed by a base-10 integer in 1–10.
Missing, repeated, malformed, or conflicting values stop before any write.
- Temper always runs after Clarify. Auto-apply
hold-rigor, reduce-to-MVP or a skip;
record the ADR and fold via Spec Drift Guard. expand and extra acceptance never
auto-apply: ask through ask_user_question, hold the fold, and stop until a human
resolves the qid. Irreversible-risk still pauses.
- Vet every plan. Cross-model is off unless the current invocation arms it.
Workflow
With --lookahead (trigger lookahead), follow
lookahead.md instead of the steps below: plan the
next sequence continuation through Vet in a second session, then stop.
- Orient and parse. Resolve source per phase target binding.
Read its existing cursor; a fresh idea starts empty at step 2. Normalize this
invocation to idea,
ship_preflight: yes|no, max_slices: unlimited,
parallel: N|default, profile: standard|full, cross_model: yes|no.
Apply the loop's AFK contract to an existing
sentinel: upsert mode: autocomplete, plus capacity only for explicit
--parallel N. Mode identifies this controller, never grants authority.
Run devrites-engine frontier <source> before local recovery; execute the
global pass.
Reconcile blocked/terminal cursors against retained action evidence and exact
fingerprint attempts; resume offline recovery below its cap. This explicit
invocation reopens parked fingerprints. Reconstruct missing return cursors
only from the current phase and approved test-plan.md/evidence action.
After compaction/resume, run devrites-engine handoff <source> --resume
and open its read_next artifacts per context hygiene.
Completion: arguments/source are unambiguous; local cursor and handles survive.
2. Specify and clarify. Run devrites-interview, /rite-spec, and
/rite-clarify as one window. open material coverage never arms
AFK. Completion: Decision coverage: CLEAR is durable.
3. Arm AFK once. Apply the one-write AFK contract:
create only after clarity; explicit controller entry upserts
mode: autocomplete and, only with --parallel N, max_parallel: N.
Preserve all other fields; reject malformed/duplicate mode rather than
silently becoming standalone AFK. Completion: valid controller identity
and capacity are durable; no gate or Git authority changed.
Failing case: leftover max_parallel: 1 after explicit --parallel 5.
4. Drive phases. Execute the loop: Spec → Clarify →
Temper → Define → Vet → Build → Prove → Polish → Review → Seal. Durable files
carry state. Apply the mutable post-vet budget before Build. Consume fresh scheduling
emitted by recorded dispatch return; rerun frontier after further changes
and before waits. Before ordinary local Temper/Define/Plan/Vet context/dispatch,
resolve sequence authority and start actual immediate-successor preparation
under early admission,
or retain the global pass's concrete deferral; keep the full Build gate.
Derive initial preparatory-only routing before any marked wave; do not recurse
through the roadmap. Preserve local cursors, protected validation windows and
every admission/isolation gate; pass Build the resolved global cap.
Completion: Seal GO or a durable valid stop precedes later phases.
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, escalating, irreversible-risk, access, blocking with no
recommended option, remaining NO-GO, or parked fingerprints with no
independent work left. An open blocking question that already names a ranked recommended
option (proposed or option 1 labelled Recommended) auto-resolves through
devrites-engine state resolve and continues (a missing or failing resolver is
the bounded resolver-failure stop); do not emit /rite-resolve as
a user handoff. Exception: a question whose answer would add acceptance or
product scope is never auto-resolved by a recommended option; it stops for a human.
A spent strategy escalates; parked recovery records
Next step: /rite-autocomplete, never a routine phase command. Completion: no stop is active, or its cursor and reason are durable.
6. Seal boundary. With or without a ship flag, leave intermediate sealed
workspaces unshipped and open the next recorded continuation
(loop.md § Sequence continuation)
unless continue_sequence: false, the sequence budget is spent, or no entry
remains. At that boundary without a ship flag, stop at Seal GO with /rite-ship.
Report sequence position at every stop. Only at that boundary, with a ship flag, 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; Autocomplete ignores --max-slices, chaining
pending slices. Each Autocomplete invocation owns internal backtracking. Context pressure, compaction, or a nested completion footer does
not create a stop; persist and resume the cursor.
Reply only at final state: text-only turns end the run. Keep
calling tools after compaction or phase changes. Before any user-visible reply,
devrites-engine check continuation must print continuation: clear
(handoff prints the same lines). required means invoke invoke: now.
stopped is not a phase token. Print this card only after clear:
Autocomplete: <slug>
spec done · clarify clear · temper done · define done · vet ready · build n/N · prove — · polish — · review — · seal —
Final state, only after clear: Shipped, Stopped, Awaiting human,
NO-GO, or GO; no narrative recap. Require clean or accepted baseline; land
local unpushed checkpoints after each green check; never auto-pass red gates.
Failing case: vet stopped plus Resume: /rite-vet while the check says required.
1---2name: rite-autocomplete-73description: 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.4argument-hint: "[idea] [--ship|--yolo] [--max-slices N] [--parallel N] [--full] [--cross-model] [--lookahead]"5metadata:6 source: https://skillmd.com/skills/viktorsbaikers/rite-autocomplete-77---89<!-- loads: {"always":["devrites-lib/reference/standards/core.md","devrites-lib/reference/standards/afk-hitl.md","devrites-lib/reference/standards/one-shot-actions.md","devrites-lib/reference/orchestration-profiles.md","devrites-lib/reference/parallel-workspaces.md","devrites-lib/reference/standards/acceptance-preserving-reslice.md","rite-autocomplete/reference/decision-policy.md","rite-autocomplete/reference/loop.md","rite-autocomplete/reference/stop-conditions.md"],"triggers":{"workflow-artifacts":["devrites-lib/reference/standards/workflow-artifacts.md"],"lookahead":["rite-autocomplete/reference/lookahead.md"]},"workspace":["state.md","spec.md","plan.md","tasks.md","questions.md","decisions.md","drift.md","evidence.md","test-plan.md"],"rootOnly":["devrites-lib/reference/standards/afk-hitl.md","devrites-lib/reference/orchestration-profiles.md","devrites-lib/reference/parallel-workspaces.md","devrites-lib/reference/standards/workflow-artifacts.md","rite-autocomplete/reference/lookahead.md"]} -->10> Read-set manifest: `devrites-engine context --skills-root .devin/skills <slug> --phase autocomplete` bundles every file named below into one deduplicated read. Trigger names map to the conditional rules in the sections that follow.111213# /rite-autocomplete: full lifecycle, unattended1415Run every phase after one clarification window. Irreversible-risk,16escalating,<!-- pack-scan-ignore: negated statement: gates are NOT disabled -->17access, unanswered blocking with no recommended option, and remaining NO-GO18still pause. Open blocking questions that already name a ranked recommended19option auto-resolve; they are not a user handoff, except a question whose answer20would add acceptance or product scope, which a recommended option never resolves.21Use the Standard native22profile by default and Full for high-risk scope or explicit `--full`; see23[`orchestration-profiles.md`](../devrites-lib/reference/orchestration-profiles.md).2425## Required rules2627Read [`core.md`](../devrites-lib/reference/standards/core.md) and [`afk-hitl.md`](../devrites-lib/reference/standards/afk-hitl.md) first. Read28[`one-shot-actions.md`](../devrites-lib/reference/standards/one-shot-actions.md) before any stop/continue or execution decision involving a29consumptive action. Before honoring a terminal cursor that names missing30executable controller/harness/bundle bytes or a missing writer, read31[`workflow-artifacts.md`](../devrites-lib/reference/standards/workflow-artifacts.md)32(trigger `workflow-artifacts` — only when a workspace declares them). Before classifying any Reslice, read `.devin/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md`.3334<!-- BEGIN RESLICE ROUTE-TO-ACTION -->35- `FOLD` → keep Plan repair/affected Vet internal; no stop solely for topology/count.36- `GUARD_AND_REPAIR` → enter Spec Drift Guard/Clarify; pause only at an existing human-owned gate; resume Plan/Vet internally.37- `BLOCKED_INPUT` → no planning writes; stop internal branch; exact diagnostic; recover authority; reclassify.38<!-- END RESLICE ROUTE-TO-ACTION -->3940## Invariants4142- Use one initial human window: Spec, topology-first Clarify, and43 `Decision coverage: CLEAR`. Only then arm AFK. Record later reversible choices44 under [decision policy](reference/decision-policy.md).45- Safety is not bypassable. `--ship`/`--yolo` reaches only the exact-plan46 literal-GO and native-approval boundary; it never authorizes Git.47- **Treat technical readiness as routing, not completion.** `NEEDS REPLAN` is a backward edge48 to Plan repair and narrow Vet. `NEEDS REPLAN` cold resume follows a valid49 technical return cursor before forward work or any reply. Clarification is50 likewise internal when current authority resolves it.51- Always follow agent-owned backward edges through repair, affected Vet,52 correction, and proof. A nested `STOP`/`Next step` is not a user handoff.53 Pause only for a shared human/safety/access condition.54- **Do not confuse an action budget with recovery exhaustion.** Spent action55 authority blocks another real execution, not offline correction of retained56 Critical/Important evidence. Stop for fresh GO only after changed conditions57 and READY Vet.58- Every exact causal fingerprint gets three no-progress corrections per strategy.59 A spent strategy escalates to a new correction class inline; after three60 escalations it parks while independent work continues. Never ask permission to61 retry. Closing one is progress; a distinct Critical/Important invariant has its62 own budget. Lower severity cannot prolong recovery.63- Do not stop on `--max-slices`, sentinel `max_slices`, `max_agents`,64 `max_minutes`, or `max_review_queue`. Count failed, malformed, and65 unavailable leaf calls.66- Never end the turn with a progress note while a wave runs or a next step67 exists: on a headless host a text-only reply ends the session and kills68 running children. Wait with the host's wait tool and keep working; end only69 at a recorded stop. A host reminder or rule notice (style rule, advisory) is70 not a stop either: follow it in your next tool call, never in a text-only71 acknowledgement.72- Parse flags only from this invocation. `--ship`, `--yolo`, `--max-slices`,73 `--parallel`, `--full`, `--cross-model`, and `--lookahead` activate only as exact standalone74 tokens in `$ARGUMENTS`; examples or earlier messages can never arm them.75 `--max-slices` must occur once and be followed by a positive base-10 integer;76 `--parallel` must occur once and be followed by a base-10 integer in `1`–`10`.77 Missing, repeated, malformed, or conflicting values stop before any write.78- Temper always runs after Clarify. Auto-apply `hold-rigor`, `reduce-to-MVP` or a skip;79 record the ADR and fold via Spec Drift Guard. `expand` and extra acceptance never80 auto-apply: ask through `ask_user_question`, hold the fold, and stop until a human81 resolves the qid. Irreversible-risk still pauses.82- Vet every plan. Cross-model is off unless the current invocation arms it.8384## Workflow8586With `--lookahead` (trigger `lookahead`), follow87[`lookahead.md`](reference/lookahead.md) instead of the steps below: plan the88next sequence continuation through Vet in a second session, then stop.89901. **Orient and parse.** Resolve source per [phase target binding](../devrites-lib/reference/parallel-workspaces.md#phase-target-binding).91 Read its existing cursor; a fresh idea starts empty at step 2. Normalize this92 invocation to idea, `ship_preflight: yes|no`, `max_slices: unlimited`,93 `parallel: N|default`, `profile: standard|full`, `cross_model: yes|no`.94 Apply the loop's [AFK contract](reference/loop.md#arm-afk-once) to an existing95 sentinel: upsert `mode: autocomplete`, plus capacity only for explicit96 `--parallel N`. Mode identifies this controller, never grants authority.97 Run `devrites-engine frontier <source>` before local recovery; execute the98 [global pass](../devrites-lib/reference/parallel-workspaces.md#continuous-global-frontier).99 Reconcile blocked/terminal cursors against retained action evidence and exact100 fingerprint attempts; resume offline recovery below its cap. This explicit101 invocation reopens parked fingerprints. Reconstruct missing return cursors102 only from the current phase and approved `test-plan.md`/evidence action.103<!-- 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"} -->104 After compaction/resume, run `devrites-engine handoff <source> --resume`105 and open its `read_next` artifacts per [context hygiene](../devrites-lib/reference/standards/context-hygiene.md).106 **Completion:** arguments/source are unambiguous; local cursor and handles survive.1072. **Specify and clarify.** Run `devrites-interview`, `/rite-spec`, and108 `/rite-clarify` as one window. `open` material coverage never arms109 AFK. **Completion:** `Decision coverage: CLEAR` is durable.1103. **Arm AFK once.** Apply the [one-write AFK contract](reference/loop.md#arm-afk-once):111 create only after clarity; explicit controller entry upserts112 `mode: autocomplete` and, only with `--parallel N`, `max_parallel: N`.113 Preserve all other fields; reject malformed/duplicate mode rather than114 silently becoming standalone AFK. **Completion:** valid controller identity115 and capacity are durable; no gate or Git authority changed.116 **Failing case:** leftover `max_parallel: 1` after explicit `--parallel 5`.1174. **Drive phases.** Execute [the loop](reference/loop.md): Spec → Clarify →118 Temper → Define → Vet → Build → Prove → Polish → Review → Seal. Durable files119 carry state. Apply the mutable post-vet budget before Build. Consume fresh scheduling120 emitted by recorded `dispatch return`; rerun frontier after further changes121 and before waits. Before ordinary local Temper/Define/Plan/Vet context/dispatch,122 resolve sequence authority and start actual immediate-successor preparation123 under [early admission](reference/loop.md#early-preparation-admission),124 or retain the global pass's concrete deferral; keep the full Build gate.125 Derive initial preparatory-only routing before any marked wave; do not recurse126 through the roadmap. Preserve local cursors, protected validation windows and127 every admission/isolation gate; pass Build the resolved global cap.128 **Completion:** Seal GO or a durable valid stop precedes later phases.1295. **Apply stops.** At every gate use130 [stop-conditions.md](reference/stop-conditions.md). A `blocked` label alone is not a stop condition:131 route agent-owned red results through bounded recovery.132 Red gates block forward advancement and enter caller-owned recovery. Stop on133 hard risk, escalating, irreversible-risk, access, blocking with no134 recommended option, remaining NO-GO, or parked fingerprints with no135 independent work left. An open blocking question that already names a ranked recommended136 option (`proposed` or option 1 labelled Recommended) auto-resolves through137 `devrites-engine state resolve` and continues (a missing or failing resolver is138 the bounded resolver-failure stop); do not emit `/rite-resolve` as139 a user handoff. Exception: a question whose answer would add acceptance or140 product scope is never auto-resolved by a recommended option; it stops for a human.141 A spent strategy escalates; parked recovery records142 `Next step: /rite-autocomplete`, never a routine phase command. **Completion:** no stop is active, or its cursor and reason are durable.1436. **Seal boundary.** With or without a ship flag, leave intermediate sealed144 workspaces unshipped and open the next recorded continuation145 ([loop.md § Sequence continuation](reference/loop.md#sequence-continuation))146 unless `continue_sequence: false`, the sequence budget is spent, or no entry147 remains. At that boundary without a ship flag, stop at Seal GO with `/rite-ship`.148 Report sequence position at every stop. Only at that boundary, with a ship flag, perform Ship preflight,149 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.150151## Reply and resume152153HITL Build returns after one slice; Autocomplete ignores `--max-slices`, chaining154pending slices. Each Autocomplete invocation owns internal backtracking. Context pressure, compaction, or a nested completion footer does155not create a stop; persist and resume the cursor.156157Reply only at final state: text-only turns end the run. Keep158calling tools after compaction or phase changes. Before any user-visible reply,159`devrites-engine check continuation` must print `continuation: clear`160(`handoff` prints the same lines). `required` means invoke `invoke:` now.161`stopped` is not a phase token. Print this card only after `clear`:162163```text164Autocomplete: <slug>165spec done · clarify clear · temper done · define done · vet ready · build n/N · prove — · polish — · review — · seal —166```167168Final state, only after `clear`: `Shipped`, `Stopped`, `Awaiting human`,169`NO-GO`, or `GO`; no narrative recap. Require clean or accepted baseline; land170local unpushed checkpoints after each green check; never auto-pass red gates.171**Failing case:** `vet stopped` plus `Resume: /rite-vet` while the check says `required`.