@azure-id/orc 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,217 +1,219 @@
1
- ---
2
- name: orc-fast
3
- description: >
4
- Fastest ORC lane — knowledge-gated single-executor implementation. Use for
5
- "use orc-fast to implement X" or "/orc-fast". Requires TWO prerequisites:
6
- a fresh project wiki (orc-wiki) AND a cached code-pattern for the request's
7
- language — the precomputed knowledge replaces the analyst/planner entirely.
8
- Either missing → falls back to orc-mini (never stops the chat). One
9
- Sonnet 4.6 high executor, a build+test smoke gate, one repair round, ship.
10
- Orchestrator runs fine at Sonnet medium. The orchestrator never implements —
11
- it spawns.
12
- ---
13
-
14
- # ORC-FAST
15
-
16
- The speed lane: precomputed knowledge instead of pipeline phases — the wiki
17
- supplies grounding, the pattern cache supplies house style, so fast pays for
18
- neither an analyst nor a planner. That trade only holds when both exist and
19
- the wiki is fresh, so the two prerequisite gates below are hard: fail either →
20
- **fall back to orc-mini** carrying whatever intake was done. Fallback is the
21
- router — orc-fast is always safe to try.
22
-
23
- Runs fine with the orchestrator at **Sonnet 4.6 / Sonnet 5, medium effort** —
24
- no scoring, no planning judgment (the effort guard only gates the full `orc`
25
- skill). **You never implement — you spawn.**
26
-
27
- ## What fast deliberately does NOT have
28
-
29
- No analyst, planner, scoring, waves, reviewer, verifier, test-author, or
30
- summary. One executor, one smoke gate, one repair round. More than that → the
31
- fit gate hands it to orc-mini.
32
-
33
- ## Phases
34
-
35
- `orc lane phases orc-fast --json` is this lane's pipeline: the ordered list, where
36
- each phase lives, and how much of it to read. **The CLI owns the order** — never
37
- derive it from the headings below, and never renumber or rename one without the
38
- manifest, because a `read: section` pointer names a HEADING and a renamed heading
39
- is a pointer into nothing.
40
-
41
- ## Phase F0 — Preflight (the two prerequisite gates; no spawn)
42
-
43
- Emit a `GATE` trace line per check when logging.
44
-
45
- **a. Wiki gate.** Decide existence with `orc wiki status` — the deterministic
46
- probe in `../_shared/detecting-artifacts.md`, never an ad-hoc `find` (`.claude`
47
- is hidden). `none` = gate FAILED → fallback; else wiki present → compute the
48
- tier from `.claude/orc/wiki-meta.json` per `../orc-wiki/references/staleness.md`:
49
- `git rev-list --count <scan_commit>..HEAD` → FRESH / AGING / STALE (manifest
50
- absent but docs present = STALE; wiki absent/empty = gate FAILED → fallback).
51
- - **FRESH** → proceed silently. **AGING** → one-line notice, proceed.
52
- - **STALE** → the user judges. Ask with exactly these options:
53
- 1. **Refresh wiki, then continue fast** *(recommended)* — run orc-wiki's
54
- incremental refresh (diff since `scan_commit`, re-scan only affected
55
- docs), then re-enter this preflight.
56
- 2. **Drop to orc-mini** *(preferable if in a hurry — mini grounds itself)*.
57
- 3. **Continue fast anyway** *(not recommended — the executor may follow
58
- stale claims)* — proceed and stamp `wiki_stale_override: true` in the
59
- checkpoint so /orc-retro can correlate outcomes with overrides.
60
-
61
- **b. Pattern gate.** Detect the request's language (file extensions / repo
62
- deps, same signals as the full lane's tagging) and confirm the cache with
63
- `orc pattern status <lang>` (exit 0 = cached — the deterministic probe in
64
- `../_shared/detecting-artifacts.md`, never an ad-hoc `find`). Absent for the
65
- language in play → gate FAILED → fallback. (A request touching no FE/BE language — pure docs/
66
- config — passes this gate as N/A.) The cross-cutting `postgres` pattern is
67
- NEVER a gate prerequisite — it is bonus-only (injected at F2 on a cache HIT),
68
- so a missing `postgres-pattern.md` never fails the gate or forces a fallback.
69
-
70
- **Any gate FAILED** → announce which prerequisite failed in one line, then
71
- hand off to orc-mini via the fallback contract below. Never stop the chat.
72
-
73
- **c. Gotchas — NOT a gate.** Two prerequisites stay two: a missing `.claude/orc/gotchas.md` never forces a fallback. Fast READS repair memory (`orc gotcha status`, then inject the SCOPE-MATCHING entries into the F2 slice, cap 3) and never WRITES it — `../_shared/gotchas.md` §10.
74
-
75
- **d. Extra — a PROBE, not a gate (P0).** Run `orc extra resolve --slot fast-executor --json` (0 = extra, 1 = Claude) — **a gate that is never probed is a gate that is always off**, and without this step the lane silently runs on Claude however `extra_enabled` and `orc extra role` were set. `extra` → print the `extra:` line HERE and carry the answer into F2; `claude` → print nothing, never fall back, never stop.
76
-
77
- The SHAPE of these steps — the order, and the four rules that make it worth
78
- having — is `../_shared/phases/preflight.md` (`core`). The probes
79
- themselves are this lane's own and stay here.
80
-
81
- ## Phase F1 — Fit gate + micro-intake (one pass, ONE user round-trip)
82
-
83
- Draft a 3–5 line intent spec + 2–3 acceptance bullets. Judge fit: more than
84
- one real task, ~5+ files, or core/security-sensitive surface → fallback to
85
- orc-mini WITH the intent spec attached (no rework); emit a `GATE` line for the
86
- verdict. Then the lane's ONLY pre-spawn ask — one combined confirmation:
87
- preflight result + intent spec + acceptance bullets + "proceed?" (soft
88
- sign-off; never split into multiple questions). Create the run folder
89
- (`.claude/orc/run/{run-slug}/` — shared format, so fallback needs no
90
- migration) and write the intent-spec + a minimal checkpoint.
91
-
92
- ## Phase F2 — Slice build + dispatch (ONE executor)
93
-
94
- Build one slice for `orc-executor-sonnet-4-6-high` (dispatch BY NAME; model
95
- pinned in the agent file). **Under `opus5_only` it is `orc-executor-opus-5-low`** — forced, and while that mode is on this lane needs an Opus 5 main session, so the "runs fine at Sonnet medium" premise applies only with it off (`../_shared/opus5-only.md`).
96
-
97
- **Extra (`extra_enabled`, `../_shared/extra-dispatch.md`):** the same slice may run off Claude. **This lane has no score at all, so it holds a POSITION, not a band:** resolve `orc extra resolve --slot fast-executor --json` (set with `orc extra role set fast-executor <profile>/<model>`). No row on that slot = Claude, and that is an answer, not a gap. The `extra:` line joins the F0 preflight (P0, printed whenever the gate is on) and NAMES the agent it displaces — `orc-executor-sonnet-4-6-high`; dispatch through `orc extra dispatch --task <file> --json` with `slot: "fast-executor"` and **no `score`** (both is refused by name); validate with `return-validation.md` **§2b, not §2**; a failure runs `orc extra reconcile <task_id>` FIRST — a worktree that moved is RESUMED, never re-done — then falls back to that same pinned agent BY NAME, announced. Extra is orthogonal to the knowledge gate — a fresh wiki and a cached pattern are still required, and a foreign worker gets the same pointers-not-content slice.
98
-
99
- - the task (intent spec) + acceptance bullets as definition-of-done
100
- - **wiki pointers, not content** (fast's lane-delta in
101
- `../_shared/phases/wiki-consult.md`): the PATHS of 1–3 relevant pages
102
- selected from `wiki/INDEX.md` by keyword match — prefer the cross-cutting
103
- maps (`orc-reference-api-surface` etc.) when the domain matches. Instruct
104
- the executor to READ them first, and include the precedence line verbatim:
105
- `code > fresh wiki > stale wiki (hints) > model priors`. Never paste wiki
106
- bodies into the slice (a Sonnet-medium orchestrator curating wiki prose
107
- defeats the lane). **Emit `WIKI-CONSULT <tier> :: docs=<the selected pointer
108
- paths>`** (tier from the F0 gate; `docs=none` if no pages fit) — the F0
109
- `GATE` line captured the gate *decision*; this captures which pages grounded
110
- the run.
111
- - the cached pattern injected LITERALLY (same `pattern` slice contract as
112
- full; the pattern file is small by design)
113
- - **crosslink (cross-repo, advisory):** a task touching a boundary in
114
- `.claude/orc/crosslink/needs.json` gets the cached linked contract injected
115
- as `crosslink` ("hints, not verified") — advisory, never blocks, never
116
- outranks local code.
117
- - **`db:postgres` bonus:** a data-access task with
118
- `.claude/orc/patterns/postgres-pattern.md` CACHED merges it into the same
119
- `pattern` slice (query invariants). Cache MISS → skip silently — fast never
120
- codifies and never falls back on this.
121
- - **the read ladder** (`../_shared/read-ladder.md`): read only as far up as the
122
- question needs — a file the task will EDIT is read in full first. Precomputed
123
- knowledge REPLACING exploration is this lane; a directory sweep is not.
124
- - the standing `house_rules` card (`../_shared/phases/house-rules.md`,
125
- injected literally, same as full/mini)
126
- - constraints from the intent spec
127
- - **terse-return rule:** standard contract fields, NO narrative prose — files
128
- changed, one-line diff summary, smoke-relevant notes only.
129
-
130
- Validate the return per `../_shared/return-validation.md` — `unmet[]`
131
- honesty, `pattern_version` + `invariants_checked` attestation, `actual_model`
132
- / `actual_effort` downgrade check (emit the `VERIFY` trace line), and §6's worktree delta (`git status --short` before/after; a path changed outside `declared_files` is a violation whatever the return said). Malformed
133
- return = failure (one re-dispatch, then fallback offer).
134
-
135
- ## Phase F3 Smoke gate (build + test; blocks ship on red)
136
-
137
- Run the gate per `../_shared/smoke-gate.md`, sourcing commands **from
138
- `wiki-meta.json`'s `commands` block** (recorded at wiki scan — don't
139
- rediscover tooling; manifest lacks them detect once and say so). **GREEN**
140
- → ship. **RED** one repair round; second red → STOP and offer: escalate to
141
- orc-mini (reason `smoke-red-escalation`) / switch to full `/orc` / stop.
142
- Docs-onlygate N/A, say so.
143
-
144
- ## Phase F3.5 Mock example (config `mock_example`, default ask)
145
-
146
- Canonical: `../_shared/drift-recovery.md`load on fire. Only after a GREEN
147
- F3, before ship: `ask` → MANDATORY offer · `on` → build · `off` → skip.
148
- Deliverable `mock-examples/<change-slug>/` at project root **never
149
- committed/staged**. Drift answer → `DRIFT-FROM` recovery (cap 2 loops, honest
150
- report on cap). Trace: `PHASE mock-example`, `DRIFT loop=<n>`.
151
-
152
- ## Phase F4 Ship
153
-
154
- Offer commit (push if asked; never stage `mock-examples/`). Append the final markers to the checkpoint, emit
155
- `OUTCOME task=… band=fast model=… retries=… unmet=…` + `FINISH`, show the
156
- dispatch line (model/effort actually used) + the `/usage` reminder. Fast never
157
- triggers the post-ship wiki refresh ask (preflight polices freshness on the
158
- way in) the passive stale-flag note still applies to touched covered files.
159
-
160
- ## Fallback contract (orc-fast orc-mini)
161
-
162
- Follow the writer side of `../_shared/fallback-handoff.md`: announce the
163
- failed gate in one line, write the `FALLBACK-FROM` block into the run folder
164
- (REASON: wiki-absent | wiki-stale-user-choice | pattern-absent | fit-gate |
165
- smoke-red-escalation), and invoke orc-mini pointing at it. The run folder is
166
- already in the shared format no migration.
167
-
168
- ## Behavior trace (always on)
169
-
170
- `../_shared/phases/trace.md` (`core`, at run start; `orc lane phases` names
171
- the file and the layers). Lane token `fast`, tier **Build lanes** —
172
- per phase, batched to **2 packets** (preflight+dispatch · gate+ship), each
173
- paired with the next phase's first dispatch.
174
- At run start write `log_dir/.current` = `run-fast-<slug>-<DDMMYY>-<HHMMSS>.txt` AND
175
- `touch the trace file` of that name in the SAME step.
176
- Nothing else about the protocol is restated here; a phase that ends with
177
- `zero new trace lines is a protocol violation`.
178
-
179
- ## Config
180
-
181
- **ONE resolver, and it is not you:** `orc lane config orc-fast --json`. Obey
182
- `effective`, print every line in `announce[]` VERBATIM at preflight, and honour
183
- `stops[]` before wave 1. Never re-derive a value, a precedence or an inertness
184
- from `.claude/orc.config.yaml` a key this lane does not read is not in the
185
- answer, and a key another key shadows comes back already marked. Exit ≠ 0 → say
186
- the CLI is unavailable and fall back to `../_shared/config-precedence.md`'s
187
- documented defaults, out loud. Priorities and families:
188
- `../_shared/config-precedence.md`.
189
-
190
- Fast has no config key of its own — command-entry only; wave/scoring/review
191
- keys never apply, and the tier edges the F0 gate reads arrive resolved.
192
-
193
- ## Calls
194
-
195
- **ONE catalogue, and it is not you:** `orc lane calls orc-fast --json` names every
196
- CLI call this lane makes, each with its exit-code contract, its cost, when to run
197
- it, and what an EMPTY answer means. Never invent a spelling, never re-word an
198
- exit code, and never re-derive a state word the CLI's state words are the only
199
- state words, and **an exit code is an ANSWER wherever that contract says so, not
200
- a failure**. A call the answer does not name is a call this lane does not make.
201
- Exit 0 from the catalogue itself say the CLI is unavailable and name the
202
- command you are about to run, out loud, before running it.
203
-
204
- ## Checkpoint (minimal, append-only)
205
-
206
- One `fast-checkpoint.md` in the run folder: GATE results (+ any
207
- `wiki_stale_override`), the dispatch, smoke verdicts, OUTCOME — enough for
208
- /orc-retro mining and fresh-session resume, nothing more.
209
-
210
- ## What fast still enforces (from the main hard rules)
211
-
212
- Never implement yourself (smoke gate = read-only build+test) · all artifacts
213
- in the run subfolder, never project root · validate the subagent return
214
- (malformed = failure) · never offer commit on a red build · report the
1
+ ---
2
+ name: orc-fast
3
+ description: >
4
+ Fastest ORC lane — knowledge-gated single-executor implementation. Use for
5
+ "use orc-fast to implement X" or "/orc-fast". Requires TWO prerequisites:
6
+ a fresh project wiki (orc-wiki) AND a cached code-pattern for the request's
7
+ language — the precomputed knowledge replaces the analyst/planner entirely.
8
+ Either missing → falls back to orc-mini (never stops the chat). One
9
+ Sonnet 4.6 high executor, a build+test smoke gate, one repair round, ship.
10
+ Orchestrator runs fine at Sonnet medium. The orchestrator never implements —
11
+ it spawns.
12
+ ---
13
+
14
+ # ORC-FAST
15
+
16
+ The speed lane: precomputed knowledge instead of pipeline phases — the wiki
17
+ supplies grounding, the pattern cache supplies house style, so fast pays for
18
+ neither an analyst nor a planner. That trade only holds when both exist and
19
+ the wiki is fresh, so the two prerequisite gates below are hard: fail either →
20
+ **fall back to orc-mini** carrying whatever intake was done. Fallback is the
21
+ router — orc-fast is always safe to try.
22
+
23
+ Runs fine with the orchestrator at **Sonnet 4.6 / Sonnet 5, medium effort** —
24
+ no scoring, no planning judgment (the effort guard only gates the full `orc`
25
+ skill). **You never implement — you spawn.**
26
+
27
+ ## What fast deliberately does NOT have
28
+
29
+ No analyst, planner, scoring, waves, reviewer, verifier, test-author, or
30
+ summary. One executor, one smoke gate, one repair round. More than that → the
31
+ fit gate hands it to orc-mini.
32
+
33
+ ## Phases
34
+
35
+ `orc lane phases orc-fast --json` is this lane's pipeline: the ordered list, where
36
+ each phase lives, and how much of it to read. **The CLI owns the order** — never
37
+ derive it from the headings below, and never renumber or rename one without the
38
+ manifest, because a `read: section` pointer names a HEADING and a renamed heading
39
+ is a pointer into nothing.
40
+
41
+ ## Phase F0 — Preflight (the two prerequisite gates; no spawn)
42
+
43
+ Emit a `GATE` trace line per check when logging.
44
+
45
+ **a. Wiki gate.** Decide existence with `orc wiki status` — the deterministic
46
+ probe in `../_shared/detecting-artifacts.md`, never an ad-hoc `find` (`.claude`
47
+ is hidden). `none` = gate FAILED → fallback; else wiki present → compute the
48
+ tier from `.claude/orc/wiki-meta.json` per `../orc-wiki/references/staleness.md`:
49
+ `git rev-list --count <scan_commit>..HEAD` → FRESH / AGING / STALE (manifest
50
+ absent but docs present = STALE; wiki absent/empty = gate FAILED → fallback).
51
+ - **FRESH** → proceed silently. **AGING** → one-line notice, proceed.
52
+ - **STALE** → the user judges. Ask with exactly these options:
53
+ 1. **Refresh wiki, then continue fast** *(recommended)* — run orc-wiki's
54
+ incremental refresh (diff since `scan_commit`, re-scan only affected
55
+ docs), then re-enter this preflight.
56
+ 2. **Drop to orc-mini** *(preferable if in a hurry — mini grounds itself)*.
57
+ 3. **Continue fast anyway** *(not recommended — the executor may follow
58
+ stale claims)* — proceed and stamp `wiki_stale_override: true` in the
59
+ checkpoint so /orc-retro can correlate outcomes with overrides.
60
+
61
+ **b. Pattern gate.** Detect the request's language (file extensions / repo
62
+ deps, same signals as the full lane's tagging) and confirm the cache with
63
+ `orc pattern status <lang>` (exit 0 = cached — the deterministic probe in
64
+ `../_shared/detecting-artifacts.md`, never an ad-hoc `find`). Absent for the
65
+ language in play → gate FAILED → fallback. (A request touching no FE/BE language — pure docs/
66
+ config — passes this gate as N/A.) The cross-cutting `postgres` pattern is
67
+ NEVER a gate prerequisite — it is bonus-only (injected at F2 on a cache HIT),
68
+ so a missing `postgres-pattern.md` never fails the gate or forces a fallback.
69
+
70
+ **Any gate FAILED** → announce which prerequisite failed in one line, then
71
+ hand off to orc-mini via the fallback contract below. Never stop the chat.
72
+
73
+ **c. Gotchas — NOT a gate.** Two prerequisites stay two: a missing `.claude/orc/gotchas.md` never forces a fallback. Fast READS repair memory (`orc gotcha status`, then inject the SCOPE-MATCHING entries into the F2 slice, cap 3) and never WRITES it — `../_shared/gotchas.md` §10.
74
+
75
+ **d. Extra — a PROBE, not a gate (P0).** Run `orc extra resolve --slot fast-executor --json` (0 = extra, 1 = Claude) — **a gate that is never probed is a gate that is always off**, and without this step the lane silently runs on Claude however `extra_enabled` and `orc extra role` were set. `extra` → print the `extra:` line HERE and carry the answer into F2; `claude` → print nothing, never fall back, never stop.
76
+
77
+ The SHAPE of these steps — the order, and the four rules that make it worth
78
+ having — is `../_shared/phases/preflight.md` (`core`). The probes
79
+ themselves are this lane's own and stay here.
80
+
81
+ ## Phase F1 — Fit gate + micro-intake (one pass, ONE user round-trip)
82
+
83
+ Draft a 3–5 line intent spec + 2–3 acceptance bullets. Judge fit: more than
84
+ one real task, ~5+ files, or core/security-sensitive surface → fallback to
85
+ orc-mini WITH the intent spec attached (no rework); emit a `GATE` line for the
86
+ verdict. Then the lane's ONLY pre-spawn ask — one combined confirmation:
87
+ preflight result + intent spec + acceptance bullets + "proceed?" (soft
88
+ sign-off; never split into multiple questions). Create the run folder
89
+ (`.claude/orc/run/{run-slug}/` — shared format, so fallback needs no
90
+ migration) and write the intent-spec + a minimal checkpoint.
91
+
92
+ ## Phase F2 — Slice build + dispatch (ONE executor)
93
+
94
+ Build one slice for `orc-executor-sonnet-4-6-high` (dispatch BY NAME; model
95
+ pinned in the agent file). **Under `opus5_only` it is `orc-executor-opus-5-low`** — forced, and while that mode is on this lane needs an Opus 5 main session, so the "runs fine at Sonnet medium" premise applies only with it off (`../_shared/opus5-only.md`).
96
+
97
+ **Extra (`extra_enabled`, `../_shared/extra-dispatch.md`):** the same slice may run off Claude. **This lane has no score at all, so it holds a POSITION, not a band:** resolve `orc extra resolve --slot fast-executor --json` (set with `orc extra role set fast-executor <profile>/<model>`). No row on that slot = Claude, and that is an answer, not a gap. The `extra:` line joins the F0 preflight (P0, printed whenever the gate is on) and NAMES the agent it displaces — `orc-executor-sonnet-4-6-high`; dispatch through `orc extra dispatch --task <file> --json` with `slot: "fast-executor"` and **no `score`** (both is refused by name); validate with `return-validation.md` **§2b, not §2**; a failure runs `orc extra reconcile <task_id>` FIRST — a worktree that moved is RESUMED, never re-done — then falls back to that same pinned agent BY NAME, announced. Extra is orthogonal to the knowledge gate — a fresh wiki and a cached pattern are still required, and a foreign worker gets the same pointers-not-content slice.
98
+
99
+ - the task (intent spec) + acceptance bullets as definition-of-done
100
+ - **wiki pointers, not content** (fast's lane-delta in
101
+ `../_shared/phases/wiki-consult.md`): the PATHS of 1–3 relevant pages
102
+ selected from `wiki/INDEX.md` by keyword match — prefer the cross-cutting
103
+ maps (`orc-reference-api-surface` etc.) when the domain matches. Instruct
104
+ the executor to READ them first, and include the precedence line verbatim:
105
+ `code > fresh wiki > stale wiki (hints) > model priors`. Never paste wiki
106
+ bodies into the slice (a Sonnet-medium orchestrator curating wiki prose
107
+ defeats the lane). **Emit `WIKI-CONSULT <tier> :: docs=<the selected pointer
108
+ paths>`** (tier from the F0 gate; `docs=none` if no pages fit) — the F0
109
+ `GATE` line captured the gate *decision*; this captures which pages grounded
110
+ the run.
111
+ - the cached pattern injected LITERALLY (same `pattern` slice contract as
112
+ full; the pattern file is small by design)
113
+ - **crosslink (cross-repo, advisory):** a task touching a boundary in
114
+ `.claude/orc/crosslink/needs.json` gets the cached linked contract injected
115
+ as `crosslink` ("hints, not verified") — advisory, never blocks, never
116
+ outranks local code.
117
+ - **`db:postgres` bonus:** a data-access task with
118
+ `.claude/orc/patterns/postgres-pattern.md` CACHED merges it into the same
119
+ `pattern` slice (query invariants). Cache MISS → skip silently — fast never
120
+ codifies and never falls back on this.
121
+ - **the read ladder** (`../_shared/read-ladder.md`): read only as far up as the
122
+ question needs — a file the task will EDIT is read in full first. Precomputed
123
+ knowledge REPLACING exploration is this lane; a directory sweep is not.
124
+ - the standing `house_rules` card (`../_shared/phases/house-rules.md`,
125
+ injected literally, same as full/mini)
126
+ - constraints from the intent spec
127
+ - **terse-return rule:** standard contract fields, NO narrative prose — files
128
+ changed, one-line diff summary, smoke-relevant notes only.
129
+
130
+ Validate the return per `../_shared/return-validation.md` — `unmet[]`
131
+ honesty, `pattern_version` + `invariants_checked` attestation, `actual_model`
132
+ / `actual_effort` downgrade check (emit the `VERIFY` trace line), and §6's worktree delta (`git status --short` before/after; a path changed outside `declared_files` is a violation whatever the return said). Malformed
133
+ return = failure (one re-dispatch, then fallback offer).
134
+
135
+ **Before any re-dispatch, run `orc run inflight`** (0 clear · 1 in-flight · 2 unknown). A Task error does not kill the agent behind it, and exit 2 REFUSES by default — `a lane that re-dispatches over a live attempt` has broken the contract. Canonical: `../_shared/return-validation.md`.
136
+
137
+ ## Phase F3 Smoke gate (build + test; blocks ship on red)
138
+
139
+ Run the gate per `../_shared/smoke-gate.md`, sourcing commands **from
140
+ `wiki-meta.json`'s `commands` block** (recorded at wiki scan don't
141
+ rediscover tooling; manifest lacks them detect once and say so). **GREEN**
142
+ ship. **RED** one repair round; second red → STOP and offer: escalate to
143
+ orc-mini (reason `smoke-red-escalation`) / switch to full `/orc` / stop.
144
+ Docs-only gate N/A, say so.
145
+
146
+ ## Phase F3.5Mock example (config `mock_example`, default ask)
147
+
148
+ Canonical: `../_shared/drift-recovery.md` load on fire. Only after a GREEN
149
+ F3, before ship: `ask` MANDATORY offer · `on` build · `off` → skip.
150
+ Deliverable `mock-examples/<change-slug>/` at project root **never
151
+ committed/staged**. Drift answer → `DRIFT-FROM` recovery (cap 2 loops, honest
152
+ report on cap). Trace: `PHASE mock-example`, `DRIFT loop=<n>`.
153
+
154
+ ## Phase F4 Ship
155
+
156
+ Offer commit (push if asked; never stage `mock-examples/`). Append the final markers to the checkpoint, emit
157
+ `OUTCOME task=… band=fast model=… retries=… unmet=…` + `FINISH`, show the
158
+ dispatch line (model/effort actually used) + the `/usage` reminder. Fast never
159
+ triggers the post-ship wiki refresh ask (preflight polices freshness on the
160
+ way in) the passive stale-flag note still applies to touched covered files.
161
+
162
+ ## Fallback contract (orc-fast orc-mini)
163
+
164
+ Follow the writer side of `../_shared/fallback-handoff.md`: announce the
165
+ failed gate in one line, write the `FALLBACK-FROM` block into the run folder
166
+ (REASON: wiki-absent | wiki-stale-user-choice | pattern-absent | fit-gate |
167
+ smoke-red-escalation), and invoke orc-mini pointing at it. The run folder is
168
+ already in the shared format — no migration.
169
+
170
+ ## Behavior trace (always on)
171
+
172
+ `../_shared/phases/trace.md` (`core`, at run start; `orc lane phases` names
173
+ the file and the layers). Lane token `fast`, tier **Build lanes** —
174
+ per phase, batched to **2 packets** (preflight+dispatch · gate+ship), each
175
+ paired with the next phase's first dispatch.
176
+ At run start write `log_dir/.current` = `run-fast-<slug>-<DDMMYY>-<HHMMSS>.txt` AND
177
+ `touch the trace file` of that name in the SAME step.
178
+ Nothing else about the protocol is restated here; a phase that ends with
179
+ `zero new trace lines is a protocol violation`.
180
+
181
+ ## Config
182
+
183
+ **ONE resolver, and it is not you:** `orc lane config orc-fast --json`. Obey
184
+ `effective`, print every line in `announce[]` VERBATIM at preflight, and honour
185
+ `stops[]` before wave 1. Never re-derive a value, a precedence or an inertness
186
+ from `.claude/orc.config.yaml` a key this lane does not read is not in the
187
+ answer, and a key another key shadows comes back already marked. Exit 0 → say
188
+ the CLI is unavailable and fall back to `../_shared/config-precedence.md`'s
189
+ documented defaults, out loud. Priorities and families:
190
+ `../_shared/config-precedence.md`.
191
+
192
+ Fast has no config key of its own — command-entry only; wave/scoring/review
193
+ keys never apply, and the tier edges the F0 gate reads arrive resolved.
194
+
195
+ ## Calls
196
+
197
+ **ONE catalogue, and it is not you:** `orc lane calls orc-fast --json` names every
198
+ CLI call this lane makes, each with its exit-code contract, its cost, when to run
199
+ it, and what an EMPTY answer means. Never invent a spelling, never re-word an
200
+ exit code, and never re-derive a state word the CLI's state words are the only
201
+ state words, and **an exit code is an ANSWER wherever that contract says so, not
202
+ a failure**. A call the answer does not name is a call this lane does not make.
203
+ Exit ≠ 0 from the catalogue itself → say the CLI is unavailable and name the
204
+ command you are about to run, out loud, before running it.
205
+
206
+ ## Checkpoint (minimal, append-only)
207
+
208
+ One `fast-checkpoint.md` in the run folder: GATE results (+ any
209
+ `wiki_stale_override`), the dispatch, smoke verdicts, OUTCOME — enough for
210
+ /orc-retro mining and fresh-session resume, nothing more.
211
+
212
+ ## What fast still enforces (from the main hard rules)
213
+
214
+ Never implement yourself (smoke gate = read-only build+test) · all artifacts
215
+ in the run subfolder, never project root · validate the subagent return
216
+ (malformed = failure) · never offer commit on a red build · report the
215
217
  dispatch + remind the user to run `/usage` (never invoke it programmatically).
216
218
 
217
219
  ## Waiting mid-run (`/orc-wait`)