@azure-id/orc 2.1.0 → 2.1.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,222 +1,222 @@
1
- # Reference — Effort, Dispatch Style, and Task Scoring
2
-
3
- **Subagents ALWAYS do the work — the orchestrator never implements** (hard
4
- rule 1). The orchestrator is Opus 4.8 high: it doing implementation is the most
5
- costly way possible, and it burns the context that must survive the whole run.
6
- Spawning keeps orchestrator context lean so runs last longer before any pause.
7
-
8
- Two INDEPENDENT axes. Never conflate them:
9
- - **Run-level effort** (low/medium/high) → picks the **dispatch style**
10
- (sequential vs parallel), which controls only **intra-wave concurrency** —
11
- never WHO does the work, and never WHETHER waves exist.
12
- - **Per-task score** (0–100) → picks each **worker's model**. Always applies.
13
-
14
- A medium run can contain a 30-score task and a 95-score task in the same wave.
15
-
16
- ## Waves always exist; dispatch style is intra-wave only
17
-
18
- **Wave computation runs for every run with ≥2 tasks, sequential included**
19
- (dependency layers + conflict graph + `max_wave_tasks` cap — see
20
- `wave-grouping.md`). Dispatch style does NOT decide whether there are waves; it
21
- decides how a wave's tasks fire:
22
-
23
- - **sequential** → a wave's tasks dispatch one at a time, in order; the wave
24
- closes when all its tasks close;
25
- - **parallel** → a wave's non-conflicting tasks dispatch at once (up to
26
- `max_wave_tasks`).
27
-
28
- The **wave-boundary batch pause binds to wave numbers, identically in both
29
- styles** — a sequential run is NOT "no waves / per-task pauses". Show the wave
30
- plan (wave → tasks → pause marks) to the user BEFORE wave 1 in both styles.
31
-
32
- ## Run-level effort → dispatch style (recommend, user confirms)
33
-
34
- - **Low**, or heavy shared data/code → **sequential**: one scored subagent at a
35
- time, in dependency order (still grouped into waves). Even a single trivial
36
- task = one cheap subagent (typically Sonnet 4.6 medium), never the
37
- orchestrator itself.
38
- - **Medium** → sequential by default; **parallel** intra-wave if 3+ genuinely
39
- independent areas.
40
- - **High** with independent areas → **parallel** waves; consider worktrees for
41
- isolation (merge at end).
42
-
43
- Always RECOMMEND with a one-line why, and let the user pick. Tell them the
44
- agent/task/wave counts, each task's scored model, and where batch pauses fall
45
- BEFORE dispatching.
46
-
47
- ## Per-task scoring — facet-scored, arithmetic, two-writer
48
-
49
- The score is **not judged** from a task title. The **planner** — the one party
50
- that globbed and read every declared file — emits per-task `facets` (facts). The
51
- **orchestrator** — who never read the code — computes the number arithmetically
52
- and audits the facts. No vibes anywhere. Every task is scored, including tiny ones.
53
-
54
- **1. Planner-emitted facets** (`planning-output.md` `facets` block, filled during
55
- grounding — zero extra passes):
56
-
57
- | Facet | Values |
58
- |---|---|
59
- | `breadth` | `len(declared_files)` — computed, not judged |
60
- | `novelty` | mechanical · imitate · new-surface · novel-algorithm |
61
- | `logic` | none · branching · stateful · algorithmic |
62
- | `test_surface` | none · update-existing · new-tests |
63
- | `risk` | `[]` or `[{class, cite}]` — class ∈ auth·money·migration·security·concurrency·data-integrity; **each entry MUST cite the file/requirement** |
64
- | `uncertainty` | low · medium · high (+ one-line reason if not low) |
65
-
66
- `fan_in`/`fan_out` are NOT emitted — the orchestrator computes them from
67
- `depends_on` (forward = fan_in, reverse = fan_out).
68
-
69
- **2. Orchestrator validation gate (Phase 2, deterministic — same bounce
70
- mechanics as grounding):** emit `GATE facet pass|bounce`. Three checks:
71
-
72
- - **Recompute** `breadth` (= `len(declared_files)`) and `fan_in`/`fan_out` from
73
- the plan itself — a mismatch bounces.
74
- - **MEMBERSHIP (v0.34.4):** `novelty`, `logic`, `test_surface` and `uncertainty`
75
- must each be a member of their CLOSED set above, and every `risk[].class` must
76
- be one of the six risk classes. A set lookup, as deterministic as the grounding
77
- Glob. This is the check that was missing: the gate validated only the two
78
- facets it could recompute and TRUSTED the four it could not, so a planner that
79
- invented a `low|medium|high` scale produced an **arithmetically unscorable**
80
- plan that passed the stated gate. There is no `N("low")` — and an orchestrator
81
- applying `risk != [] -> floor 70` to prose risk strings floors EVERY task, a
82
- two-band overshoot caused by a field's shape rather than by the work.
83
- - **Cite check:** a `risk` entry with no `cite` bounces (unchanged).
84
-
85
- A facet-vocabulary miss is a **FIELD-SHAPE bounce**: hand back the miss list and
86
- say *do not re-plan* — the planner corrects only the offending `facets` blocks.
87
- (It may also legitimately DROP a risk entry on the correction pass: implementation
88
- hazards like test seeding or dependency discipline are not risk CLASSES. That
89
- judgment is the planner's to make and is worth accepting.) Without this clause a
90
- shape bounce risks costing a correct plan. A plan with no `facets` at all
91
- (pre-v0.31.0) resumes on the legacy path — never bounced for the missing block.
92
-
93
- **3. The fixed formula (the ONLY scoring text — this replaces base+adjusters):**
94
-
95
- ```
96
- score = B(breadth) + N(novelty) + L(logic) + T(test_surface)
97
- + 5*min(fan_in,3) + 3*min(fan_out,3) + U(uncertainty)
98
-
99
- B: 1f=2 2-3f=6 4-5f=10 6+f=15
100
- N: mechanical=0 imitate=8 new-surface=18 novel-algorithm=30
101
- L: none=0 branching=8 stateful=16 algorithmic=24
102
- T: none=0 update-existing=4 new-tests=8
103
- U: low=0 medium=6 high=12
104
-
105
- risk ≠ [] → floor 70 (DERIVED from a cited risk facet, never remembered).
106
- clamp 0..100 → the RESOLVED table (below).
107
- ```
108
-
109
- **Which table (highest wins):** `opus5_only: true` (the 2-band Opus-5-only
110
- preset: `[0,90)` low · `[90,100]` medium) → `rubric_bands_override`
111
- (hand-written rows) → the default 5-band table. All three are in `config.md`.
112
- The formula, the facets and the risk floor are IDENTICAL in every case — only
113
- the score→agent mapping changes. Three consequences worth stating so nobody
114
- re-derives them per run:
115
-
116
- - **The risk floor still applies** — it raises the SCORE, then the resolved table
117
- maps it. A floored task (≥70) lands `opus-5-low` in the default table and
118
- `opus-5-low` under the Opus-5-only preset too: since v1.0.0 both tables answer
119
- the floor with the same agent, and only a score of 90+ moves it to `opus-5-med`.
120
- - **`opus5_only` FORCES** — while on, a hand-written `rubric_bands_override` is
121
- ignored. It is the one selector that can shadow another; that is deliberate.
122
-
123
- Show the user the full table (task, the facet vector, the arithmetic
124
- `B+N+L+T+fan+U = raw`, any risk floor, final, override+reason if any, dispatched
125
- model) BEFORE dispatching — an un-shown number is not a scored number. **Head it
126
- with the RESOLVED table's name** (`5-band default` / `Opus-5-only ladder
127
- (opus5_only)` / `custom (rubric_bands_override)`): the same logic
128
- applies to the mapping as to the number.
129
-
130
- **Extra (v0.50.0, `extra_enabled`) adds a `via` column and can make the head a
131
- PAIR.** An Extra route row is an OVERLAY that outranks the tables above **only
132
- for the scores it covers**, so a run can genuinely be running two tables at once
133
- and the head names both (`5-band default + extra rows [0,30) [30,70)`). The
134
- column reads `claude` or `extra:<profile> (<engine>)` and comes from
135
- `orc extra resolve --json` — the formula, the facets and the risk floor are
136
- untouched, and **the score is computed before the routing, never after it**. Two
137
- consequences the table has to show rather than imply: a cited `risk[]` HOLDS THE
138
- TASK BACK to its Claude band whatever the row says (`extra_risk_tasks: off`), and
139
- the `model` for a foreign task is the FOREIGN model id, not a Claude tier.
140
- Canonical: `../../_shared/extra-dispatch.md`.
141
-
142
- **4. Consistency check:** two tasks whose facet vectors differ in **≤1 facet must
143
- land in the same band** — or the SCORE line for the outlier **cites the one
144
- differing facet**. This is the specific fix for sibling tasks in the same domain
145
- drifting into three different bands.
146
-
147
- **5. Override protocol** (unchanged): you may override the computed score. Record
148
- `{computed_score, override_score, reason}` in the dispatch log. An override
149
- without a reason is invalid.
150
-
151
- ## EVERY dispatch is scored — the fix-cycle rule
152
-
153
- Fix-cycle dispatches — review-fix, verify-fix, the Phase-7 P2-batch, and any
154
- requeue — are scored through the **same formula**, with two floors that stop a
155
- fix in a risk area from silently dropping to a cheap model:
156
-
157
- - **Inherit the ORIGINAL task's `risk` facets** when the fix touches its files —
158
- a fix in a risk-floor area keeps the ≥70 floor (a userID/context-key fix can
159
- never dispatch below `opus-5-low` again);
160
- - a **P0/P1 fix never dispatches below the band of the task that produced the
161
- finding.**
162
-
163
- Emit a `SCORE task=fix-<n> …` line for each (they appear in the dispatch log and
164
- the completion table like any task).
165
-
166
- ## Worked scoring examples (facet vectors — compare facet-by-facet, not by vibes)
167
-
168
- Each row is the facet vector run through the formula. The number is arithmetic;
169
- the band is what matters. Compare a new task to these facet-by-facet.
170
-
171
- | Task | breadth·novelty·logic·test · fan_in/out · unc | Arithmetic | Band |
172
- |---|---|---|---|
173
- | Rename a config key across 4 files + its test | 5·mechanical·none·update-existing · 0/0 · low | 10+0+0+4 = **14** | sonnet-5-low [0,21) |
174
- | New CRUD endpoint following a sibling route | 3·imitate·branching·new-tests · 1/0 · low | 6+8+8+8+5 = **35** | sonnet-5-high [31,41) |
175
- | Bug fix across 2 files with a repro test | 3·imitate·branching·new-tests · 0/0 · medium | 6+8+8+8+6 = **36** | sonnet-5-high [31,41) |
176
- | Isolated component from the design system | 3·new-surface·branching·new-tests · 0/0 · low | 6+18+8+8 = **40** | sonnet-5-high [31,41) |
177
- | Notification model + enum other tasks consume | 3·new-surface·stateful·new-tests · 0/3 · low | 6+18+16+8+9 = **57** | opus-5-low [41,90) |
178
- | Service-layer refactor behind a stable interface | 5·imitate·stateful·update-existing · 0/3 · medium | 10+8+16+4+9+6 = **53** | opus-5-low [41,90) |
179
- | Add role check to payment-refund endpoint | 3·imitate·branching·new-tests · 0/0 · low · **risk=[auth,money]** | 30 raw → **floor 70** | opus-5-low [41,90) |
180
- | Migrate orders table to split-name + backfill | 6·new-surface·stateful·new-tests · 1/3 · high · **risk=[migration,data-integrity]** | 15+18+16+8+5+9+12 = 83 (floor 70) → **83** | opus-5-low [41,90) |
181
-
182
- Two disciplines the vectors encode: (1) a small diff is NOT a low score when a
183
- cited `risk` facet forces the floor (the refund row — 30 raw, floored to 70); (2)
184
- a big-looking task IS low when its facets are mechanical (the rename). The risk
185
- floor is always DERIVED from a cited facet — the SCORE line names it, never
186
- applies it silently.
187
-
188
- ## Model ladder → the single score→model table
189
-
190
- The score→model mapping is NOT hardcoded here — it lives in `config.md` as ONE
191
- canonical 5-band table (there is no longer a narrow/wide preset). Read config at
192
- run start and map each task's final score through that table (or
193
- `rubric_bands_override`). The orchestrator dispatches the executor agent BY NAME;
194
- it does not request a raw model. `rubric_bands` sets only how many bands the
195
- rubric REPORTS (score granularity), never which table is used.
196
-
197
- The 5 bands (see config.md for the exact edges): `sonnet-5-low` [0,21) ·
198
- `sonnet-5-med` [21,31) · `sonnet-5-high` [31,41) · `opus-5-low` [41,90) ·
199
- `opus-5-med` [90,100]. Effort tiers rank
200
- `low < medium < high < xhigh < max`.
201
-
202
- ## Fixed model assignments (not scored)
203
-
204
- - **Orchestrator (you):** Opus 4.8 high — or Opus 5.5 / Fable 5 at medium+, the
205
- two models that clear the guard from medium up. Never downgrade yourself.
206
- - **Review** — Superpowers path: Sonnet 4.6, medium. OpenSpec/self path:
207
- Opus 5.5, low (`orc-reviewer-opus-5-low`; medium until v2.1.0).
208
- - **Verify:** Opus 5.5, medium (`orc-verifier-opus-5-med`).
209
- - **Analyst:** Opus 5.5, high. **Planner:** Opus 5.5, medium. **Test author:**
210
- Opus 5.5, medium. **Combiner:** Opus 5.5, high. **Ultra advisor/judge:** Opus 5.5,
211
- xhigh — every core fixed role is pinned to Opus 5.5 as of v0.34.0.
212
- - **Merge-conflict resolver:** Opus 4.8, medium.
213
-
214
- Note: every band in the table above is a real dispatch target (sonnet-5 through
215
- opus-5). If a model tier is unavailable in the environment, fall back UP to the
216
- next capable tier (never silently substitute a different family/effort).
217
-
218
- ## Dispatch log (lives in the checkpoint)
219
-
220
- Every spawn records: `{task_id, computed_score, override_score|null,
221
- override_reason|null, model, effort, spawned_at}`. Feeds the usage report at
222
- every stop.
1
+ # Reference — Effort, Dispatch Style, and Task Scoring
2
+
3
+ **Subagents ALWAYS do the work — the orchestrator never implements** (hard
4
+ rule 1). The orchestrator is Opus 4.8 high: it doing implementation is the most
5
+ costly way possible, and it burns the context that must survive the whole run.
6
+ Spawning keeps orchestrator context lean so runs last longer before any pause.
7
+
8
+ Two INDEPENDENT axes. Never conflate them:
9
+ - **Run-level effort** (low/medium/high) → picks the **dispatch style**
10
+ (sequential vs parallel), which controls only **intra-wave concurrency** —
11
+ never WHO does the work, and never WHETHER waves exist.
12
+ - **Per-task score** (0–100) → picks each **worker's model**. Always applies.
13
+
14
+ A medium run can contain a 30-score task and a 95-score task in the same wave.
15
+
16
+ ## Waves always exist; dispatch style is intra-wave only
17
+
18
+ **Wave computation runs for every run with ≥2 tasks, sequential included**
19
+ (dependency layers + conflict graph + `max_wave_tasks` cap — see
20
+ `wave-grouping.md`). Dispatch style does NOT decide whether there are waves; it
21
+ decides how a wave's tasks fire:
22
+
23
+ - **sequential** → a wave's tasks dispatch one at a time, in order; the wave
24
+ closes when all its tasks close;
25
+ - **parallel** → a wave's non-conflicting tasks dispatch at once (up to
26
+ `max_wave_tasks`).
27
+
28
+ The **wave-boundary batch pause binds to wave numbers, identically in both
29
+ styles** — a sequential run is NOT "no waves / per-task pauses". Show the wave
30
+ plan (wave → tasks → pause marks) to the user BEFORE wave 1 in both styles.
31
+
32
+ ## Run-level effort → dispatch style (recommend, user confirms)
33
+
34
+ - **Low**, or heavy shared data/code → **sequential**: one scored subagent at a
35
+ time, in dependency order (still grouped into waves). Even a single trivial
36
+ task = one cheap subagent (typically Sonnet 5 low), never the
37
+ orchestrator itself.
38
+ - **Medium** → sequential by default; **parallel** intra-wave if 3+ genuinely
39
+ independent areas.
40
+ - **High** with independent areas → **parallel** waves; consider worktrees for
41
+ isolation (merge at end).
42
+
43
+ Always RECOMMEND with a one-line why, and let the user pick. Tell them the
44
+ agent/task/wave counts, each task's scored model, and where batch pauses fall
45
+ BEFORE dispatching.
46
+
47
+ ## Per-task scoring — facet-scored, arithmetic, two-writer
48
+
49
+ The score is **not judged** from a task title. The **planner** — the one party
50
+ that globbed and read every declared file — emits per-task `facets` (facts). The
51
+ **orchestrator** — who never read the code — computes the number arithmetically
52
+ and audits the facts. No vibes anywhere. Every task is scored, including tiny ones.
53
+
54
+ **1. Planner-emitted facets** (`planning-output.md` `facets` block, filled during
55
+ grounding — zero extra passes):
56
+
57
+ | Facet | Values |
58
+ |---|---|
59
+ | `breadth` | `len(declared_files)` — computed, not judged |
60
+ | `novelty` | mechanical · imitate · new-surface · novel-algorithm |
61
+ | `logic` | none · branching · stateful · algorithmic |
62
+ | `test_surface` | none · update-existing · new-tests |
63
+ | `risk` | `[]` or `[{class, cite}]` — class ∈ auth·money·migration·security·concurrency·data-integrity; **each entry MUST cite the file/requirement** |
64
+ | `uncertainty` | low · medium · high (+ one-line reason if not low) |
65
+
66
+ `fan_in`/`fan_out` are NOT emitted — the orchestrator computes them from
67
+ `depends_on` (forward = fan_in, reverse = fan_out).
68
+
69
+ **2. Orchestrator validation gate (Phase 2, deterministic — same bounce
70
+ mechanics as grounding):** emit `GATE facet pass|bounce`. Three checks:
71
+
72
+ - **Recompute** `breadth` (= `len(declared_files)`) and `fan_in`/`fan_out` from
73
+ the plan itself — a mismatch bounces.
74
+ - **MEMBERSHIP (v0.34.4):** `novelty`, `logic`, `test_surface` and `uncertainty`
75
+ must each be a member of their CLOSED set above, and every `risk[].class` must
76
+ be one of the six risk classes. A set lookup, as deterministic as the grounding
77
+ Glob. This is the check that was missing: the gate validated only the two
78
+ facets it could recompute and TRUSTED the four it could not, so a planner that
79
+ invented a `low|medium|high` scale produced an **arithmetically unscorable**
80
+ plan that passed the stated gate. There is no `N("low")` — and an orchestrator
81
+ applying `risk != [] -> floor 70` to prose risk strings floors EVERY task, a
82
+ two-band overshoot caused by a field's shape rather than by the work.
83
+ - **Cite check:** a `risk` entry with no `cite` bounces (unchanged).
84
+
85
+ A facet-vocabulary miss is a **FIELD-SHAPE bounce**: hand back the miss list and
86
+ say *do not re-plan* — the planner corrects only the offending `facets` blocks.
87
+ (It may also legitimately DROP a risk entry on the correction pass: implementation
88
+ hazards like test seeding or dependency discipline are not risk CLASSES. That
89
+ judgment is the planner's to make and is worth accepting.) Without this clause a
90
+ shape bounce risks costing a correct plan. A plan with no `facets` at all
91
+ (pre-v0.31.0) resumes on the legacy path — never bounced for the missing block.
92
+
93
+ **3. The fixed formula (the ONLY scoring text — this replaces base+adjusters):**
94
+
95
+ ```
96
+ score = B(breadth) + N(novelty) + L(logic) + T(test_surface)
97
+ + 5*min(fan_in,3) + 3*min(fan_out,3) + U(uncertainty)
98
+
99
+ B: 1f=2 2-3f=6 4-5f=10 6+f=15
100
+ N: mechanical=0 imitate=8 new-surface=18 novel-algorithm=30
101
+ L: none=0 branching=8 stateful=16 algorithmic=24
102
+ T: none=0 update-existing=4 new-tests=8
103
+ U: low=0 medium=6 high=12
104
+
105
+ risk ≠ [] → floor 70 (DERIVED from a cited risk facet, never remembered).
106
+ clamp 0..100 → the RESOLVED table (below).
107
+ ```
108
+
109
+ **Which table (highest wins):** `opus5_only: true` (the 2-band Opus-5-only
110
+ preset: `[0,90)` low · `[90,100]` medium) → `rubric_bands_override`
111
+ (hand-written rows) → the default 5-band table. All three are in `config.md`.
112
+ The formula, the facets and the risk floor are IDENTICAL in every case — only
113
+ the score→agent mapping changes. Three consequences worth stating so nobody
114
+ re-derives them per run:
115
+
116
+ - **The risk floor still applies** — it raises the SCORE, then the resolved table
117
+ maps it. A floored task (≥70) lands `opus-5-low` in the default table and
118
+ `opus-5-low` under the Opus-5-only preset too: since v1.0.0 both tables answer
119
+ the floor with the same agent, and only a score of 90+ moves it to `opus-5-med`.
120
+ - **`opus5_only` FORCES** — while on, a hand-written `rubric_bands_override` is
121
+ ignored. It is the one selector that can shadow another; that is deliberate.
122
+
123
+ Show the user the full table (task, the facet vector, the arithmetic
124
+ `B+N+L+T+fan+U = raw`, any risk floor, final, override+reason if any, dispatched
125
+ model) BEFORE dispatching — an un-shown number is not a scored number. **Head it
126
+ with the RESOLVED table's name** (`5-band default` / `Opus-5-only ladder
127
+ (opus5_only)` / `custom (rubric_bands_override)`): the same logic
128
+ applies to the mapping as to the number.
129
+
130
+ **Extra (v0.50.0, `extra_enabled`) adds a `via` column and can make the head a
131
+ PAIR.** An Extra route row is an OVERLAY that outranks the tables above **only
132
+ for the scores it covers**, so a run can genuinely be running two tables at once
133
+ and the head names both (`5-band default + extra rows [0,30) [30,70)`). The
134
+ column reads `claude` or `extra:<profile> (<engine>)` and comes from
135
+ `orc extra resolve --json` — the formula, the facets and the risk floor are
136
+ untouched, and **the score is computed before the routing, never after it**. Two
137
+ consequences the table has to show rather than imply: a cited `risk[]` HOLDS THE
138
+ TASK BACK to its Claude band whatever the row says (`extra_risk_tasks: off`), and
139
+ the `model` for a foreign task is the FOREIGN model id, not a Claude tier.
140
+ Canonical: `../../_shared/extra-dispatch.md`.
141
+
142
+ **4. Consistency check:** two tasks whose facet vectors differ in **≤1 facet must
143
+ land in the same band** — or the SCORE line for the outlier **cites the one
144
+ differing facet**. This is the specific fix for sibling tasks in the same domain
145
+ drifting into three different bands.
146
+
147
+ **5. Override protocol** (unchanged): you may override the computed score. Record
148
+ `{computed_score, override_score, reason}` in the dispatch log. An override
149
+ without a reason is invalid.
150
+
151
+ ## EVERY dispatch is scored — the fix-cycle rule
152
+
153
+ Fix-cycle dispatches — review-fix, verify-fix, the Phase-7 P2-batch, and any
154
+ requeue — are scored through the **same formula**, with two floors that stop a
155
+ fix in a risk area from silently dropping to a cheap model:
156
+
157
+ - **Inherit the ORIGINAL task's `risk` facets** when the fix touches its files —
158
+ a fix in a risk-floor area keeps the ≥70 floor (a userID/context-key fix can
159
+ never dispatch below `opus-5-low` again);
160
+ - a **P0/P1 fix never dispatches below the band of the task that produced the
161
+ finding.**
162
+
163
+ Emit a `SCORE task=fix-<n> …` line for each (they appear in the dispatch log and
164
+ the completion table like any task).
165
+
166
+ ## Worked scoring examples (facet vectors — compare facet-by-facet, not by vibes)
167
+
168
+ Each row is the facet vector run through the formula. The number is arithmetic;
169
+ the band is what matters. Compare a new task to these facet-by-facet.
170
+
171
+ | Task | breadth·novelty·logic·test · fan_in/out · unc | Arithmetic | Band |
172
+ |---|---|---|---|
173
+ | Rename a config key across 4 files + its test | 5·mechanical·none·update-existing · 0/0 · low | 10+0+0+4 = **14** | sonnet-5-low [0,21) |
174
+ | New CRUD endpoint following a sibling route | 3·imitate·branching·new-tests · 1/0 · low | 6+8+8+8+5 = **35** | sonnet-5-high [31,41) |
175
+ | Bug fix across 2 files with a repro test | 3·imitate·branching·new-tests · 0/0 · medium | 6+8+8+8+6 = **36** | sonnet-5-high [31,41) |
176
+ | Isolated component from the design system | 3·new-surface·branching·new-tests · 0/0 · low | 6+18+8+8 = **40** | sonnet-5-high [31,41) |
177
+ | Notification model + enum other tasks consume | 3·new-surface·stateful·new-tests · 0/3 · low | 6+18+16+8+9 = **57** | opus-5-low [41,90) |
178
+ | Service-layer refactor behind a stable interface | 5·imitate·stateful·update-existing · 0/3 · medium | 10+8+16+4+9+6 = **53** | opus-5-low [41,90) |
179
+ | Add role check to payment-refund endpoint | 3·imitate·branching·new-tests · 0/0 · low · **risk=[auth,money]** | 30 raw → **floor 70** | opus-5-low [41,90) |
180
+ | Migrate orders table to split-name + backfill | 6·new-surface·stateful·new-tests · 1/3 · high · **risk=[migration,data-integrity]** | 15+18+16+8+5+9+12 = 83 (floor 70) → **83** | opus-5-low [41,90) |
181
+
182
+ Two disciplines the vectors encode: (1) a small diff is NOT a low score when a
183
+ cited `risk` facet forces the floor (the refund row — 30 raw, floored to 70); (2)
184
+ a big-looking task IS low when its facets are mechanical (the rename). The risk
185
+ floor is always DERIVED from a cited facet — the SCORE line names it, never
186
+ applies it silently.
187
+
188
+ ## Model ladder → the single score→model table
189
+
190
+ The score→model mapping is NOT hardcoded here — it lives in `config.md` as ONE
191
+ canonical 5-band table (there is no longer a narrow/wide preset). Read config at
192
+ run start and map each task's final score through that table (or
193
+ `rubric_bands_override`). The orchestrator dispatches the executor agent BY NAME;
194
+ it does not request a raw model. `rubric_bands` sets only how many bands the
195
+ rubric REPORTS (score granularity), never which table is used.
196
+
197
+ The 5 bands (see config.md for the exact edges): `sonnet-5-low` [0,21) ·
198
+ `sonnet-5-med` [21,31) · `sonnet-5-high` [31,41) · `opus-5-low` [41,90) ·
199
+ `opus-5-med` [90,100]. Effort tiers rank
200
+ `low < medium < high < xhigh < max`.
201
+
202
+ ## Fixed model assignments (not scored)
203
+
204
+ - **Orchestrator (you):** Opus 4.8 high — or Opus 5.5 / Fable 5 at medium+, the
205
+ two models that clear the guard from medium up. Never downgrade yourself.
206
+ - **Review** — Superpowers path: Sonnet 4.6, medium. OpenSpec/self path:
207
+ Opus 5.5, low (`orc-reviewer-opus-5-low`; medium until v2.1.0).
208
+ - **Verify:** Opus 5.5, medium (`orc-verifier-opus-5-med`).
209
+ - **Analyst:** Opus 5.5, high. **Planner:** Opus 5.5, medium. **Test author:**
210
+ Opus 5.5, medium. **Combiner:** Opus 5.5, high. **Ultra advisor/judge:** Opus 5.5,
211
+ xhigh — every core fixed role is pinned to Opus 5.5 as of v0.34.0.
212
+ - **Merge-conflict resolver:** Opus 4.8, medium.
213
+
214
+ Note: every band in the table above is a real dispatch target (sonnet-5 through
215
+ opus-5). If a model tier is unavailable in the environment, fall back UP to the
216
+ next capable tier (never silently substitute a different family/effort).
217
+
218
+ ## Dispatch log (lives in the checkpoint)
219
+
220
+ Every spawn records: `{task_id, computed_score, override_score|null,
221
+ override_reason|null, model, effort, spawned_at}`. Feeds the usage report at
222
+ every stop.