llm-orchestrator 1.4.0 → 1.6.0

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.
Files changed (70) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +237 -45
  3. package/SKILL.md +30 -2
  4. package/adapters/agents.mjs +8 -5
  5. package/adapters/codex/index.mjs +0 -2
  6. package/adapters/commands.mjs +21 -1
  7. package/adapters/hooks.mjs +18 -6
  8. package/agents/advisor.md +53 -0
  9. package/agents/code-reviewer.md +1 -0
  10. package/agents/frontend-fixer.md +2 -1
  11. package/agents/frontend-specialist.md +2 -1
  12. package/agents/orchestrator.md +1 -1
  13. package/bin/budget.mjs +94 -0
  14. package/bin/cli-options.mjs +31 -10
  15. package/bin/discover-models.mjs +428 -13
  16. package/bin/doctor.mjs +54 -26
  17. package/bin/gate.mjs +1 -1
  18. package/bin/install.mjs +15 -8
  19. package/bin/llm-orchestrator.mjs +14 -3
  20. package/bin/model-thinking-report.mjs +1 -0
  21. package/bin/route.mjs +57 -18
  22. package/bin/strategy.mjs +234 -0
  23. package/bin/uninstall.mjs +3 -1
  24. package/commands/task.md +21 -1
  25. package/hooks/hooks.json +11 -0
  26. package/lib/adapter-renderer.mjs +131 -10
  27. package/lib/budget.mjs +269 -0
  28. package/lib/capability-resolver.mjs +59 -5
  29. package/lib/dispatch-contract.mjs +87 -24
  30. package/lib/file-lock.mjs +121 -0
  31. package/lib/first-run.mjs +53 -10
  32. package/lib/flow-gate.mjs +377 -71
  33. package/lib/installation.mjs +313 -75
  34. package/lib/learning.mjs +233 -0
  35. package/lib/project-discovery.mjs +4 -0
  36. package/lib/project-root.mjs +52 -0
  37. package/lib/router.mjs +473 -65
  38. package/lib/strategy-store.mjs +481 -0
  39. package/models/example-model-inventory.json +21 -10
  40. package/models/model-thinking-data.json +134 -2
  41. package/models/model-thinking-matrix.md +32 -0
  42. package/models/top-models.json +794 -44
  43. package/package.json +1 -1
  44. package/policies/capabilities.md +64 -10
  45. package/policies/dispatch.md +6 -1
  46. package/policies/learning.md +336 -0
  47. package/policies/routing.md +240 -63
  48. package/protocol.md +21 -0
  49. package/registries/agent-roles.json +43 -4
  50. package/registries/capabilities.json +2 -1
  51. package/registries/core-profile.json +29 -0
  52. package/registries/learning.json +219 -0
  53. package/registries/preferred-tools.json +85 -2
  54. package/registries/routing-matrix.json +61 -37
  55. package/registries/task-mappings.json +52 -6
  56. package/schemas/capability-contract.schema.json +1 -0
  57. package/schemas/flow-ledger.schema.json +8 -2
  58. package/schemas/installation-manifest.schema.json +56 -5
  59. package/schemas/learning.schema.json +139 -0
  60. package/schemas/routing-matrix.schema.json +23 -3
  61. package/schemas/top-models.schema.json +32 -6
  62. package/workflows/bug-fix.md +12 -0
  63. package/workflows/config.md +8 -0
  64. package/workflows/deploy.md +8 -0
  65. package/workflows/feature.md +17 -1
  66. package/workflows/incident.md +8 -0
  67. package/workflows/investigation.md +12 -0
  68. package/workflows/refactor.md +12 -0
  69. package/workflows/research.md +8 -0
  70. package/workflows/review.md +12 -0
@@ -169,6 +169,35 @@
169
169
  "manual_fallback": true,
170
170
  "manual_implementation": "single-explicit-message"
171
171
  },
172
+ {
173
+ "id": "ui.design_system",
174
+ "level": "mandatory",
175
+ "order": 13,
176
+ "scope": "task",
177
+ "domain_conditional": true,
178
+ "reason": "Any task whose domain is FRONTEND, or that creates, changes, reviews or audits UI or visual design, runs Impeccable: shape (or critique) before building, audit and polish before G5. Other design skills complement it; they never substitute for it silently.",
179
+ "applies_when": {
180
+ "any_of": [
181
+ { "any_task_domains": ["frontend"] },
182
+ { "any_task_signals": ["frontend", "ui", "web-ui", "visual-bug", "visual-design", "rendered-behavior", "ui-review", "design-system"] }
183
+ ]
184
+ },
185
+ "acceptance": ["impeccable-pass"],
186
+ "preferred_implementations": ["impeccable"],
187
+ "allowed_alternatives": [],
188
+ "exclusive_implementations": true,
189
+ "complements": ["ui-ux-pro-max", "frontend-design", "design-system", "ui-styling", "web-design-guidelines"],
190
+ "build_note": "Build has no fixed command: after shape it is an ordinary /impeccable new-work request, or the targeted command the plan names (layout, typeset, colorize, animate, adapt, clarify, onboard, ...). craft is a deprecated alias and is not used.",
191
+ "phase_commands": {
192
+ "feature": { "plan": ["init", "shape"], "review": ["critique", "audit"], "verify": ["polish"] },
193
+ "bug": { "evidence": ["audit"], "fix": ["harden"], "verify": ["audit"] },
194
+ "refactor": { "analyze": ["audit"], "incremental": ["extract"], "review": ["audit", "polish"] },
195
+ "review": { "analyze": ["critique", "audit"] },
196
+ "investigation": { "evidence": ["critique", "audit"] }
197
+ },
198
+ "gap_declared_first": true,
199
+ "degraded_mode_after_refusal": true
200
+ },
172
201
  {
173
202
  "id": "workflow.selection",
174
203
  "level": "required",
@@ -0,0 +1,219 @@
1
+ {
2
+ "_attribution": "llm-orchestrator · created by Bogdan-Gabriel Torcescu · https://www.linkedin.com/in/bogdantorcescu/ · keep this credit when copying or deriving",
3
+ "schema_version": 1,
4
+ "source_of_truth": "policies/learning.md",
5
+ "note": "Advisor consultation, passive strategy distillation and the frontier budget. Thresholds are starting defaults, not measured optima; a project may tighten them, never loosen the frontier cap. Phase names are normalised (lowercase, parentheses dropped, every run of other characters becomes \"_\") before they are looked up here.",
6
+ "budget": {
7
+ "ledger_file": "dispatches.jsonl",
8
+ "window": 100,
9
+ "frontier_tier": "F",
10
+ "frontier_share_max": 0.1,
11
+ "frontier_min_denominator": 20,
12
+ "exploration_share_max": 0.03,
13
+ "exploration_min_denominator": 34,
14
+ "exploration_headroom_below": 0.07,
15
+ "exploration_min_gap": 10,
16
+ "kinds": ["task", "advisor", "exploration", "review-floor"],
17
+ "always_allowed_kinds": ["review-floor"],
18
+ "risk_floor_source": "registries/routing-matrix.json#risk_floors"
19
+ },
20
+ "advisor": {
21
+ "role": "advisor",
22
+ "pair": "F T3",
23
+ "max_consults_per_task": 2,
24
+ "packet_max_lines": 50,
25
+ "gates": ["G0", "G2"],
26
+ "decision_phases": ["plan", "design", "hypothesis", "synthesis", "analysis"],
27
+ "exploration_phases": ["plan", "design", "hypothesis", "synthesis", "analysis", "implementation", "fix", "change"],
28
+ "extra_phases": ["design", "deploy", "coverage", "extraction"],
29
+ "phase_aliases": {
30
+ "plan_design": "plan",
31
+ "planning": "plan",
32
+ "release_plan": "plan",
33
+ "rollback_plan": "plan",
34
+ "architecture": "design",
35
+ "change_design": "design",
36
+ "hypothesis_synthesis": "synthesis",
37
+ "evidence_synthesis": "synthesis",
38
+ "synthesis_corroboration": "synthesis",
39
+ "root_cause": "hypothesis",
40
+ "diagnosis": "hypothesis",
41
+ "analysis_incremental_plan": "analysis",
42
+ "incremental_plan": "analysis",
43
+ "reproduce_evidence": "reproduce",
44
+ "standard_fix": "fix",
45
+ "money_concurrency_security_fix": "fix",
46
+ "standard_implementation": "implementation",
47
+ "implement": "implementation",
48
+ "complex_state_realtime_native_bridge": "implementation",
49
+ "money_or_security_implementation": "implementation",
50
+ "refactor_in_money_or_security_areas": "implementation",
51
+ "mechanical_subtasks": "mechanical",
52
+ "standard_config_change": "change",
53
+ "db_migration": "migration",
54
+ "migration_on_money_tables": "migration",
55
+ "validate": "verification",
56
+ "verify_soak": "soak",
57
+ "soak_telemetry_interpretation": "soak",
58
+ "pre_checks_compatibility_migration_readiness": "pre_checks",
59
+ "deploy_execution": "deploy",
60
+ "default_review": "review",
61
+ "money_security_diff_review": "review",
62
+ "re_review_after_fixes": "re_review",
63
+ "challenge": "adversarial_review",
64
+ "adversarial_challenge": "adversarial_review"
65
+ },
66
+ "complexities": ["COMPLEX", "CRITICAL"],
67
+ "signals": ["novel", "verifier_failed", "escalated"],
68
+ "exploration_complexities": ["SIMPLE", "MODERATE"],
69
+ "exploration_min_repeats": 1,
70
+ "tiers": ["F", "X"],
71
+ "modes": [
72
+ { "id": "native", "when": "the harness exposes an advisor tool of its own", "how": "call it; it sees the transcript, so no packet is needed" },
73
+ { "id": "subagent", "when": "the harness can dispatch a subagent on a different model", "how": "dispatch the advisor role with the frontier model and the brief" },
74
+ { "id": "cli", "when": "the harness cannot change the model of a subagent, but its own CLI runs headless", "how": "run the harness CLI once, non-interactively, on the frontier model with the brief" },
75
+ { "id": "same-model", "when": "no larger model is exposed at all", "how": "a fresh-context subagent on the strongest exposed model at its highest effort; declared as degraded" }
76
+ ],
77
+ "harness": {
78
+ "claude": {
79
+ "native": "an `advisor` tool in the session's tool list",
80
+ "subagent": "Agent tool, subagent type `advisor` (plugin: `llm-orchestrator:advisor`), with the `model` parameter set to the frontier model",
81
+ "cli": {
82
+ "argv": [
83
+ "claude",
84
+ "-p",
85
+ "--model",
86
+ "{model}",
87
+ "--no-session-persistence"
88
+ ],
89
+ "prompt": "stdin",
90
+ "verified": true
91
+ }
92
+ },
93
+ "codex": {
94
+ "native": null,
95
+ "subagent": "`spawn_agent` with the frontier model as the model override and `fork_turns=\"none\"`; the brief is the whole prompt",
96
+ "cli": {
97
+ "argv": [
98
+ "codex",
99
+ "exec",
100
+ "-m",
101
+ "{model}",
102
+ "-s",
103
+ "read-only",
104
+ "--ephemeral",
105
+ "--skip-git-repo-check",
106
+ "{prompt}"
107
+ ],
108
+ "prompt": "argument",
109
+ "verified": true
110
+ }
111
+ },
112
+ "opencode": {
113
+ "native": null,
114
+ "subagent": "`task` tool with the `advisor` agent; its model is the `model:` line of the installed agent file (install with `--with-agents --advisor-model <provider/model>`)",
115
+ "cli": {
116
+ "argv": [
117
+ "opencode",
118
+ "run",
119
+ "--model",
120
+ "{model}",
121
+ "{prompt}"
122
+ ],
123
+ "prompt": "argument",
124
+ "verified": false
125
+ }
126
+ },
127
+ "kilo": {
128
+ "native": null,
129
+ "subagent": "`task` tool with the `advisor` agent; its model is the `model:` line of the installed agent file (install with `--with-agents --advisor-model <provider/model>`)",
130
+ "cli": {
131
+ "argv": [
132
+ "kilo",
133
+ "run",
134
+ "--model",
135
+ "{model}",
136
+ "{prompt}"
137
+ ],
138
+ "prompt": "argument",
139
+ "verified": false
140
+ }
141
+ }
142
+ },
143
+ "cli_timeout_seconds": 600
144
+ },
145
+ "strategy": {
146
+ "max_lines": 60,
147
+ "max_chars": 6000,
148
+ "max_code_lines": 40,
149
+ "required_sections": ["When", "Steps", "Verify"],
150
+ "optional_sections": ["Traps", "Direction"],
151
+ "section_aliases": {
152
+ "verification": "Verify",
153
+ "verify": "Verify",
154
+ "checks": "Verify",
155
+ "when to use": "When",
156
+ "when to apply": "When",
157
+ "pitfalls": "Traps"
158
+ },
159
+ "kinds": ["advisor", "exploration", "escalation"],
160
+ "statuses": ["provisional", "promoted", "retired"],
161
+ "match_min_tag_overlap": 0.34,
162
+ "min_tags": 2,
163
+ "max_tags": 5,
164
+ "wildcard_area_min_shared_tags": 2,
165
+ "tag_synonyms": {
166
+ "rest": ["rest-api", "rest-apis", "restful"],
167
+ "graphql": ["gql"],
168
+ "grpc": [],
169
+ "endpoint": ["endpoints", "route", "routes", "api-endpoint"],
170
+ "pagination": ["paging", "paginate", "paginated"],
171
+ "validation": ["validate", "validator", "input-validation"],
172
+ "authentication": ["authn", "login", "signin", "sign-in"],
173
+ "authorization": ["authz", "permissions", "rbac", "acl"],
174
+ "webhook": ["webhooks"],
175
+ "queue": ["queues", "job", "jobs", "worker", "background-job"],
176
+ "cache": ["caching", "cached"],
177
+ "rate-limit": ["rate-limiting", "throttle", "throttling"],
178
+ "websocket": ["websockets", "ws"],
179
+ "error-handling": ["errors", "exceptions"],
180
+ "upload": ["uploads", "file-upload"],
181
+ "email": ["mail", "mailer"],
182
+ "search": ["full-text-search"],
183
+ "component": ["components"],
184
+ "form": ["forms"],
185
+ "state": ["state-management"],
186
+ "routing": ["router", "navigation"],
187
+ "styling": ["css", "styles"],
188
+ "accessibility": ["a11y"],
189
+ "localization": ["l10n", "localisation", "translations"],
190
+ "responsive": ["responsive-layout"],
191
+ "animation": ["motion", "transitions"],
192
+ "query": ["queries"],
193
+ "migration": ["migrations"],
194
+ "schema": ["ddl", "schema-change"],
195
+ "index": ["indexes", "indices"],
196
+ "transaction": ["transactions"],
197
+ "orm": [],
198
+ "backfill": ["data-backfill"],
199
+ "locking": ["locks", "race-condition"],
200
+ "ci": ["pipeline", "ci-cd"],
201
+ "docker": ["container", "containers"],
202
+ "deploy": ["deployment", "release"],
203
+ "config": ["configuration", "settings"],
204
+ "logging": ["logs"],
205
+ "monitoring": ["metrics", "observability"],
206
+ "dependency": ["dependencies", "deps"],
207
+ "unit-test": ["unit-tests"],
208
+ "integration-test": ["integration-tests"],
209
+ "e2e": ["end-to-end", "e2e-test"],
210
+ "fixture": ["fixtures", "factory", "factories"],
211
+ "mock": ["mocks", "mocking", "stub", "stubs"],
212
+ "regression": ["regression-test"]
213
+ },
214
+ "promote": { "helpful_min": 3, "harmful_max": 0 },
215
+ "retire": { "harmful_min": 2 },
216
+ "stale_days": 90,
217
+ "do_not_capture": ["environment or tooling failures", "claims that a tool is broken", "attempts that did not pass their gates", "one-off tasks with no repeatable class", "finished output, secrets, credentials, personal data, private paths"]
218
+ }
219
+ }
@@ -172,6 +172,89 @@
172
172
  "scope": "harness",
173
173
  "source": "caveman crew role"
174
174
  },
175
+ {
176
+ "id": "impeccable",
177
+ "aliases": [
178
+ "impeccable:impeccable"
179
+ ],
180
+ "kind": "skill",
181
+ "capabilities": [
182
+ "ui.design_system"
183
+ ],
184
+ "scope": "user",
185
+ "source": "mandatory UI implementation (domain-conditional core)",
186
+ "display_name": "Impeccable",
187
+ "recommendation_kind": "product",
188
+ "installable": true,
189
+ "install": "`npx impeccable install` (shell, project root); or in Claude Code: `/plugin marketplace add pbakaus/impeccable` then `/plugin install impeccable@impeccable`",
190
+ "source_url": "https://impeccable.style",
191
+ "license": "Apache-2.0",
192
+ "notes": "One skill, invoked /impeccable <command> <target>. `npx impeccable install` runs from the project root and installs for every harness folder it detects (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Copilot, ...); `npx impeccable update` refreshes it. The Claude Code plugin exposes it as impeccable:impeccable. A harness the installer does not detect is a declared gap."
193
+ },
194
+ {
195
+ "id": "copywriting",
196
+ "kind": "skill",
197
+ "capabilities": [
198
+ "content.copywriting"
199
+ ],
200
+ "scope": "user",
201
+ "source": "preferred skill for new or rewritten people-facing text",
202
+ "display_name": "Copywriting (marketingskills)",
203
+ "recommendation_kind": "product",
204
+ "installable": true,
205
+ "install": "`npx skills add coreyhaines31/marketingskills` (installs the whole pack for the harnesses it detects); the same pack is offered as a Claude Code and Codex plugin marketplace",
206
+ "source_url": "https://github.com/coreyhaines31/marketingskills",
207
+ "license": "MIT",
208
+ "notes": "Diagnoses the request first (blank brief, real voice present, point edit) and changes only what that calls for; writes only supportable claims and names the evidence a declined claim would need. Reads `.agents/product-marketing.md` when the project has one. Its AI-tell list is written for English: in another language apply the principles and keep the language of the text."
209
+ },
210
+ {
211
+ "id": "copy-editing",
212
+ "kind": "skill",
213
+ "capabilities": [
214
+ "content.copywriting"
215
+ ],
216
+ "scope": "user",
217
+ "source": "preferred skill for editing or reviewing existing people-facing text",
218
+ "display_name": "Copy editing (marketingskills)",
219
+ "recommendation_kind": "product",
220
+ "installable": true,
221
+ "install": "`npx skills add coreyhaines31/marketingskills`",
222
+ "source_url": "https://github.com/coreyhaines31/marketingskills",
223
+ "license": "MIT",
224
+ "notes": "For text that already exists: a point edit changes only the line asked for; a review or polish runs the full sweep."
225
+ },
226
+ {
227
+ "id": "product-marketing",
228
+ "kind": "skill",
229
+ "capabilities": [
230
+ "content.copywriting"
231
+ ],
232
+ "scope": "project",
233
+ "source": "context for the copywriting skills (never a substitute)",
234
+ "display_name": "Product marketing context (marketingskills)",
235
+ "recommendation_kind": "product",
236
+ "installable": true,
237
+ "install": "`npx skills add coreyhaines31/marketingskills`",
238
+ "source_url": "https://github.com/coreyhaines31/marketingskills",
239
+ "license": "MIT",
240
+ "notes": "Creates `.agents/product-marketing.md` — product, audience, positioning, voice — which the rest of the pack reads. Run it once per project before the first substantial piece of copy."
241
+ },
242
+ {
243
+ "id": "humanizer",
244
+ "kind": "skill",
245
+ "capabilities": [
246
+ "content.copywriting"
247
+ ],
248
+ "scope": "user",
249
+ "source": "complement for documentation prose (README, release notes, PR text)",
250
+ "display_name": "Humanizer",
251
+ "recommendation_kind": "product",
252
+ "installable": true,
253
+ "install": "`npx skills add blader/humanizer --global --agent '*'`",
254
+ "source_url": "https://github.com/blader/humanizer",
255
+ "license": "MIT",
256
+ "notes": "Removes AI writing patterns while keeping every fact and leaving code blocks alone. A complement for docs prose, where the marketing pack's page-and-conversion intake fits poorly."
257
+ },
175
258
  {
176
259
  "id": "design-system",
177
260
  "kind": "skill",
@@ -179,7 +262,7 @@
179
262
  "ui.design_system"
180
263
  ],
181
264
  "scope": "project",
182
- "source": "preferred UI implementation",
265
+ "source": "UI complement to impeccable (never a substitute)",
183
266
  "display_name": "Design system",
184
267
  "recommendation_kind": "product",
185
268
  "installable": true
@@ -191,7 +274,7 @@
191
274
  "ui.design_system"
192
275
  ],
193
276
  "scope": "project",
194
- "source": "preferred UI implementation"
277
+ "source": "UI complement to impeccable (never a substitute)"
195
278
  },
196
279
  {
197
280
  "id": "stripe-best-practices",
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "_attribution": "llm-orchestrator · created by Bogdan-Gabriel Torcescu · https://www.linkedin.com/in/bogdantorcescu/ · keep this credit when copying or deriving",
3
3
  "schema_version": 1,
4
- "observed_at": "2026-09-22",
4
+ "observed_at": "2026-12-01",
5
5
  "source_of_truth": "policies/routing.md",
6
6
  "note": "Machine-readable encoding of policies/routing.md. The prose remains authoritative for intent; this registry is what lib/router.mjs and bin/route.mjs execute. Model prices and measured cost per task live in models/top-models.json.",
7
7
  "tiers": {
8
8
  "W": {
9
9
  "name": "worker",
10
10
  "responsibility": "Local, mechanical, repetitive, well-defined: code search, classification, extraction, small edits, boilerplate, simple tests, consistency checks, scoped transforms.",
11
- "incumbents": {"claude": "claude-haiku-4-5", "codex": "gpt-6-luna"},
12
- "fallbacks": {"codex": ["gpt-5.6-luna"]}
11
+ "incumbents": {"claude": "claude-haiku-5-5", "codex": "gpt-6-luna"},
12
+ "fallbacks": {"claude": ["claude-haiku-4-5"], "codex": ["gpt-5.6-luna"]}
13
13
  },
14
14
  "S": {
15
15
  "name": "standard",
16
16
  "responsibility": "Default software-engineering model: normal implementation, frontend/backend, moderate debugging, tests, reasonable multi-file refactors, codebase analysis, tool use.",
17
- "incumbents": {"claude": "claude-sonnet-5", "codex": "gpt-6-sol"},
18
- "fallbacks": {"codex": ["gpt-5.6-terra"]}
17
+ "incumbents": {"claude": "claude-sonnet-5-5", "codex": "gpt-6-sol"},
18
+ "fallbacks": {"claude": ["claude-sonnet-5"], "codex": ["gpt-6.1-terra", "gpt-5.6-terra"]}
19
19
  },
20
20
  "X": {
21
21
  "name": "senior",
22
22
  "responsibility": "Hard debugging, architecture, concurrency, migrations, security, auth, payments, billing, backwards compatibility, critical code review, many invariants.",
23
- "incumbents": {"claude": "claude-opus-5-5", "codex": "gpt-6-sol"},
24
- "fallbacks": {"claude": ["claude-opus-5"], "codex": ["gpt-5.6-sol"]}
23
+ "incumbents": {"claude": "claude-opus-5-5", "codex": "gpt-6.2-sol"},
24
+ "fallbacks": {"claude": ["claude-opus-5"], "codex": ["gpt-6-sol", "gpt-5.6-sol", "gpt-6.1-sol"]}
25
25
  },
26
26
  "F": {
27
27
  "name": "frontier",
28
28
  "responsibility": "Exceptional escalation: very ambiguous, long-horizon, cross-system, major architecture, very large codebase, planning under heavy constraints, or when X fails to produce a solid solution.",
29
- "incumbents": {"claude": "claude-fable-5", "codex": "gpt-6-astra"},
29
+ "incumbents": {"claude": "claude-fable-5-2", "codex": "gpt-6.2-astra"},
30
+ "fallbacks": {"claude": ["claude-fable-5"], "codex": ["gpt-6-astra"]},
30
31
  "capped_exception": {"claude": "claude-fable-5-1"}
31
32
  }
32
33
  },
@@ -36,6 +37,7 @@
36
37
  "use": "Mechanical: copy, grep, formatting, trivial edit.",
37
38
  "claude_effort": null,
38
39
  "codex_reasoning_effort": "low",
40
+ "codex_note": "T0 shares the W T0-T1 seat, which defaults to `low`. Where the runtime lists `none` and not `low` for a model whose registry efforts include `none` (GPT-6 Luna), the seat runs at `none`.",
39
41
  "haiku_budget": "thinking off"
40
42
  },
41
43
  "T1": {
@@ -60,7 +62,7 @@
60
62
  "use": "Very hard debugging, security, money, concurrency, migrations, architecture, critical compatibility.",
61
63
  "claude_effort": "xhigh",
62
64
  "codex_reasoning_effort": "high",
63
- "codex_note": "No usable effort above `high` on the gpt-5.6 family: T4 is `high` plus an independent second reviewer. Astra expresses T4 as `xhigh`.",
65
+ "codex_note": "No usable effort above `high` on the Sol and Terra families: T4 is `high` plus an independent second reviewer. Astra expresses T4 as `xhigh`, and Luna expresses W T3 as `xhigh`; both are declared per model as `thinking.tier_effort` in models/top-models.json.",
64
66
  "haiku_budget": "not available — escalate to S instead of inflating the budget"
65
67
  },
66
68
  "T5": {
@@ -72,14 +74,34 @@
72
74
  }
73
75
  },
74
76
  "thinking_level_order": ["T0", "T1", "T2", "T3", "T4", "T5"],
75
- "haiku_budget_rule": "The Claude W model has no `effort` parameter — only `thinking: enabled` + `budget_tokens`. T0/T1 = thinking off, T2 = small budget, T3 = moderate budget. If a task would need T4+, escalate to S instead of inflating the budget: a small model that thinks a lot does not become a frontier model.",
77
+ "haiku_budget_rule": "Applies to the Claude W fallback, Haiku 4.5 (the W seat, Haiku 5.5, takes `effort`). Haiku 4.5 has no `effort` parameter — only `thinking: enabled` + `budget_tokens`. T0/T1 = thinking off, T2 = small budget, T3 = moderate budget. If a task would need T4+, escalate to S instead of inflating the budget: a small model that thinks a lot does not become a frontier model.",
78
+ "inventory_ladder": {
79
+ "applies_when": "The active harness or provider has no hard-coded ladder in this matrix (anything other than the Claude and Codex ladders), or the caller passes a runtime inventory.",
80
+ "order": [
81
+ "Keep the inventory entries marked exposed or verified whose id normalises to exactly one registry model.",
82
+ "For the pair's tier, take the registry models eligible there: an incumbent's tier seat or a candidate's tier_bands placement.",
83
+ "Apply every admission rule and cap unchanged.",
84
+ "Rank by measured USD per task, then by the token price index; a supersedes successor at or below its predecessor's list price ranks directly ahead of it.",
85
+ "On a T4/T5 pair, an independent-review seat or a review row, rank every model the benchmark has scored ahead of every model it has not: list price is not evidence of quality.",
86
+ "The first admitted model holds the seat, under the id the inventory uses."
87
+ ],
88
+ "never": [
89
+ "Never seat a candidate on a T4/T5 pair, an independent-review seat or a risk-floor review row.",
90
+ "Never seat a free variant or a gateway variant (an id whose vendor segments do not name the model's provider) on a T4/T5 pair, an independent-review seat or a review row.",
91
+ "Never promote an unmeasured successor into a T4/T5 pair, an independent-review seat or a review row while a measured model is available: the measured predecessor keeps the seat and the successor is listed as the alternative.",
92
+ "Never seat a ladder's model on a pair whose resolution row is null for that ladder: the row says escalate.",
93
+ "Never seat an unrated model: an inventory id with no registry match, or a registry model without a tier.",
94
+ "Never fill an empty tier from a quieter tier or from the Claude or Codex ladder: the result is blocked, no eligible model.",
95
+ "Never treat a registry entry as evidence of exposure: without an inventory a ladder-less harness is blocked."
96
+ ]
97
+ },
76
98
  "resolution": {
77
99
  "W T0-T1": {
78
- "claude": {"model": "claude-haiku-4-5", "effort": null, "thinking": "off"},
100
+ "claude": {"model": "claude-haiku-5-5", "effort": "low", "critical_seat": {"model": "claude-haiku-4-5", "effort": null}},
79
101
  "codex": {"model": "gpt-6-luna", "effort": "low"}
80
102
  },
81
103
  "W T2": {
82
- "claude": {"model": "claude-haiku-4-5", "effort": null, "thinking": "small budget"},
104
+ "claude": {"model": "claude-haiku-5-5", "effort": "medium", "critical_seat": {"model": "claude-haiku-4-5", "effort": "enabled"}},
83
105
  "codex": {"model": "gpt-6-luna", "effort": "medium"}
84
106
  },
85
107
  "W T3": {
@@ -88,40 +110,40 @@
88
110
  "codex": {"model": "gpt-6-luna", "effort": "xhigh", "alternate_effort": "max"}
89
111
  },
90
112
  "S T1": {
91
- "claude": {"model": "claude-sonnet-5", "effort": "low"},
113
+ "claude": {"model": "claude-sonnet-5-5", "effort": "low", "critical_seat": {"model": "claude-sonnet-5", "effort": "low"}},
92
114
  "codex": {"model": "gpt-6-sol", "effort": "low"}
93
115
  },
94
116
  "S T2": {
95
- "claude": {"model": "claude-sonnet-5", "effort": "medium"},
117
+ "claude": {"model": "claude-sonnet-5-5", "effort": "medium", "critical_seat": {"model": "claude-sonnet-5", "effort": "medium"}},
96
118
  "codex": {"model": "gpt-6-sol", "effort": "low"}
97
119
  },
98
120
  "S T3": {
99
- "claude": {"model": "claude-sonnet-5", "effort": "high"},
121
+ "claude": {"model": "claude-sonnet-5-5", "effort": "high", "critical_seat": {"model": "claude-sonnet-5", "effort": "high"}},
100
122
  "codex": {"model": "gpt-6-sol", "effort": "medium"}
101
123
  },
102
124
  "X T2": {
103
125
  "claude": {"model": "claude-opus-5-5", "effort": "medium"},
104
- "codex": {"model": "gpt-6-sol", "effort": "medium"}
126
+ "codex": {"model": "gpt-6.2-sol", "effort": "medium", "critical_seat": {"model": "gpt-6-sol", "effort": "medium"}}
105
127
  },
106
128
  "X T3": {
107
129
  "claude": {"model": "claude-opus-5-5", "effort": "high"},
108
- "codex": {"model": "gpt-6-sol", "effort": "high"}
130
+ "codex": {"model": "gpt-6.2-sol", "effort": "high", "critical_seat": {"model": "gpt-6-sol", "effort": "high"}}
109
131
  },
110
132
  "X T4": {
111
133
  "claude": {"model": "claude-opus-5-5", "effort": "xhigh"},
112
- "codex": {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": {"model": "gpt-6-sol", "effort": "high"}}
134
+ "codex": {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": {"model": "gpt-6-sol", "effort": "high"}, "alternative": {"model": "gpt-6.2-sol", "effort": "high", "reason": "unmeasured: not seated for critical review"}}
113
135
  },
114
136
  "F T3": {
115
- "claude": {"model": "claude-fable-5", "effort": "high"},
116
- "codex": {"model": "gpt-6-astra", "effort": "high"}
137
+ "claude": {"model": "claude-fable-5-2", "effort": "high", "critical_seat": {"model": "claude-fable-5", "effort": "high"}, "note": "The unmeasured successor holds the non-critical F T3 seat only; a review or independent-review F T3 seat keeps Fable 5."},
138
+ "codex": {"model": "gpt-6.2-astra", "effort": "high", "critical_seat": {"model": "gpt-6-astra", "effort": "high"}, "note": "The unmeasured successor holds the non-critical F T3 seat only; a review or independent-review F T3 seat keeps GPT-6 Astra."}
117
139
  },
118
140
  "F T4": {
119
- "claude": {"model": "claude-fable-5", "effort": "xhigh"},
120
- "codex": {"model": "gpt-6-astra", "effort": "xhigh"}
141
+ "claude": {"model": "claude-fable-5", "effort": "xhigh", "alternative": {"model": "claude-fable-5-2", "effort": "xhigh", "reason": "unmeasured: not seated for critical review"}},
142
+ "codex": {"model": "gpt-6-astra", "effort": "xhigh", "alternative": {"model": "gpt-6.2-astra", "effort": "xhigh", "reason": "unmeasured: not seated for critical review"}}
121
143
  },
122
144
  "F T5": {
123
- "claude": {"model": "claude-fable-5", "effort": "max", "note": "Essentially never. Fable 5.1 only under the ≤2% cap."},
124
- "codex": {"model": "gpt-6-astra", "effort": "max", "note": "Essentially never."}
145
+ "claude": {"model": "claude-fable-5", "effort": "max", "note": "Essentially never. Fable 5.1 only under the ≤2% cap.", "alternative": {"model": "claude-fable-5-2", "effort": "max", "reason": "unmeasured: not seated for critical review"}},
146
+ "codex": {"model": "gpt-6-astra", "effort": "max", "note": "Essentially never.", "alternative": {"model": "gpt-6.2-astra", "effort": "max", "reason": "unmeasured: not seated for critical review"}}
125
147
  }
126
148
  },
127
149
  "pair_normalization": {
@@ -256,6 +278,7 @@
256
278
  "risk_floor_rule": "Project rows in the consuming project's `## Orchestration bindings (project)` section override these upward, never downward. A cheaper frontier config never overrides a risk-floor row. The reviewer must be an independent agent — a separate child with no full-history fork.",
257
279
  "agent_defaults": {
258
280
  "orchestrator": "S T3",
281
+ "advisor": "F T3",
259
282
  "production-telemetry-collector": "W T0-T1",
260
283
  "route-data-flow-tracer": "W T0-T1",
261
284
  "explore": "W T0-T1",
@@ -278,14 +301,14 @@
278
301
  },
279
302
  "escalation_ladder": {
280
303
  "claude": [
281
- {"model": "claude-haiku-4-5", "effort": null},
282
- {"model": "claude-sonnet-5", "effort": "low"},
283
- {"model": "claude-sonnet-5", "effort": "medium"},
284
- {"model": "claude-sonnet-5", "effort": "high"},
304
+ {"model": "claude-haiku-5-5", "effort": "low"},
305
+ {"model": "claude-sonnet-5-5", "effort": "low"},
306
+ {"model": "claude-sonnet-5-5", "effort": "medium"},
307
+ {"model": "claude-sonnet-5-5", "effort": "high"},
285
308
  {"model": "claude-opus-5-5", "effort": "high"},
286
309
  {"model": "claude-opus-5-5", "effort": "xhigh"},
287
- {"model": "claude-fable-5", "effort": "high"},
288
- {"model": "claude-fable-5", "effort": "xhigh"},
310
+ {"model": "claude-fable-5-2", "effort": "high"},
311
+ {"model": "claude-fable-5", "effort": "xhigh", "note": "T4/T5 keep the measured model; Fable 5.2 is unmeasured and is the alternative."},
289
312
  {"model": "claude-fable-5", "effort": "max"},
290
313
  {"model": "claude-fable-5-1", "effort": "high", "requires_explicit_flag": true, "note": "≤2% cap, explicit request or documented Fable 5 F-T4 failure only."}
291
314
  ],
@@ -296,10 +319,10 @@
296
319
  {"model": "gpt-6-luna", "effort": "max"},
297
320
  {"model": "gpt-6-sol", "effort": "low"},
298
321
  {"model": "gpt-6-sol", "effort": "medium"},
299
- {"model": "gpt-6-sol", "effort": "high"},
300
- {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": true},
301
- {"model": "gpt-6-astra", "effort": "high"},
302
- {"model": "gpt-6-astra", "effort": "xhigh"},
322
+ {"model": "gpt-6.2-sol", "effort": "high"},
323
+ {"model": "gpt-6-sol", "effort": "high", "independent_second_reviewer": true, "note": "X T4 keeps the measured model; GPT-6.2 Sol is unmeasured and is the alternative."},
324
+ {"model": "gpt-6.2-astra", "effort": "high"},
325
+ {"model": "gpt-6-astra", "effort": "xhigh", "note": "T4/T5 keep the measured model; GPT-6.2 Astra is unmeasured and is the alternative."},
303
326
  {"model": "gpt-6-astra", "effort": "max", "note": "Essentially never."}
304
327
  ]
305
328
  },
@@ -326,7 +349,7 @@
326
349
  "W": [30, 40],
327
350
  "S": [40, 50],
328
351
  "X": [5, 12],
329
- "F": [10, 15]
352
+ "F": [0, 10]
330
353
  },
331
354
  "cost_discipline": {
332
355
  "primary_metric": "mean USD per task across the flow",
@@ -364,11 +387,12 @@
364
387
  "worker_shard_soft_cap_tokens": 150000,
365
388
  "long_context_cliff_tokens": 272000,
366
389
  "rules": [
367
- "Context can force escalation independent of difficulty: a mechanical task over a >150K working set is not a W dispatch on a 200K model. Route it S T0–T1 or shard the input.",
390
+ "Context can force escalation independent of difficulty: a mechanical task over a >150K working set is not a W dispatch. Route it S T0–T1 or shard the input. The window is the seated W model's own `context_window` in models/top-models.json (Haiku 5.5: 1M; its fallback Haiku 4.5: 200K), never a constant.",
391
+ "The repricing threshold is the seated model's own `long_context_surcharge.threshold_input_tokens`: Haiku 5.5 reprices above a 100K-token prompt, the GPT-5.6 and GPT-6 families above 272K. A working set past it raises the long-context cost bump.",
368
392
  "Do not pay for context you do not ship — give subagents trimmed inputs.",
369
393
  "Input past the long-context cliff reprices the whole request; shard below it whenever the task allows and treat any dispatch above it as a tier bump in the cost ledger.",
370
394
  "Where every available model is large-context, the window floor does not apply — the constraint is pricing, not capability.",
371
- "Where a model's long-context repricing is undocumented, assume it may apply and prefer the known-flat-priced option."
395
+ "Where a model's long-context repricing is undocumented, assume it may apply — off the Claude ladder, at `long_context_cliff_tokens` — and prefer the known-flat-priced option."
372
396
  ]
373
397
  },
374
398
  "dispatch_metadata_fields": [