llm-orchestrator 1.5.0 → 1.7.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 (71) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +143 -499
  3. package/SKILL.md +45 -5
  4. package/adapters/agents.mjs +21 -5
  5. package/adapters/codex/index.mjs +0 -2
  6. package/adapters/commands.mjs +26 -1
  7. package/adapters/hooks.mjs +29 -9
  8. package/agents/advisor.md +53 -0
  9. package/agents/code-simplifier.md +1 -0
  10. package/agents/orchestrator.md +1 -1
  11. package/agents/route-data-flow-tracer.md +1 -0
  12. package/bin/budget.mjs +94 -0
  13. package/bin/cli-options.mjs +31 -10
  14. package/bin/discover-models.mjs +428 -13
  15. package/bin/dispatch.mjs +181 -0
  16. package/bin/doctor.mjs +53 -24
  17. package/bin/gate.mjs +3 -2
  18. package/bin/install.mjs +15 -8
  19. package/bin/llm-orchestrator.mjs +22 -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/tools.mjs +84 -0
  24. package/bin/uninstall.mjs +3 -1
  25. package/commands/task.md +26 -1
  26. package/docs/REFERENCE.md +628 -0
  27. package/hooks/hooks.json +11 -0
  28. package/lib/adapter-renderer.mjs +131 -10
  29. package/lib/budget.mjs +269 -0
  30. package/lib/dispatch-contract.mjs +87 -24
  31. package/lib/file-lock.mjs +121 -0
  32. package/lib/first-run.mjs +41 -12
  33. package/lib/flow-gate.mjs +687 -75
  34. package/lib/installation.mjs +313 -75
  35. package/lib/learning.mjs +233 -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/lib/tool-use.mjs +348 -0
  40. package/models/example-model-inventory.json +21 -10
  41. package/models/model-thinking-data.json +134 -2
  42. package/models/model-thinking-matrix.md +32 -0
  43. package/models/top-models.json +794 -44
  44. package/package.json +2 -1
  45. package/policies/capabilities.md +102 -4
  46. package/policies/dispatch.md +26 -1
  47. package/policies/learning.md +339 -0
  48. package/policies/routing.md +240 -63
  49. package/protocol.md +21 -0
  50. package/registries/agent-roles.json +35 -1
  51. package/registries/capabilities.json +1 -0
  52. package/registries/core-profile.json +255 -46
  53. package/registries/learning.json +219 -0
  54. package/registries/preferred-tools.json +73 -3
  55. package/registries/routing-matrix.json +61 -37
  56. package/registries/task-mappings.json +42 -0
  57. package/registries/tool-use.json +230 -0
  58. package/schemas/flow-ledger.schema.json +43 -2
  59. package/schemas/installation-manifest.schema.json +56 -5
  60. package/schemas/learning.schema.json +139 -0
  61. package/schemas/routing-matrix.schema.json +23 -3
  62. package/schemas/top-models.schema.json +32 -6
  63. package/workflows/bug-fix.md +8 -0
  64. package/workflows/config.md +8 -0
  65. package/workflows/deploy.md +8 -0
  66. package/workflows/feature.md +8 -0
  67. package/workflows/incident.md +8 -0
  68. package/workflows/investigation.md +8 -0
  69. package/workflows/refactor.md +8 -0
  70. package/workflows/research.md +8 -0
  71. package/workflows/review.md +8 -0
@@ -29,7 +29,24 @@
29
29
  "generic_dispatches": { "type": "integer", "minimum": 0, "description": "Subagents started as a generic agent type (general-purpose, Explore, …)." },
30
30
  "dispatch_nudges": { "type": "integer", "minimum": 0, "maximum": 2, "description": "Dispatch reminders sent: one, or two for evidence flows whose first was ignored." },
31
31
  "inline_after_nudge": { "type": "boolean", "description": "This run replaced one that had already received a dispatch reminder, and declared --inline: a retroactive justification." },
32
- "live_calls": { "type": "integer", "minimum": 0, "description": "Main-thread calls that read a live source (ssh, remote databases, cluster/cloud CLIs, HTTP clients)." }
32
+ "live_calls": { "type": "integer", "minimum": 0, "description": "Main-thread calls that read a live source (ssh, remote databases, cluster/cloud CLIs, HTTP clients)." },
33
+ "stop_continues": { "type": "integer", "minimum": 0, "description": "Turn ends this run answered with a forced continuation: the last message announced more work while the run was open." },
34
+ "route_calls": { "type": "integer", "minimum": 0 },
35
+ "decide_calls": { "type": "integer", "minimum": 0 },
36
+ "spend_calls": { "type": "integer", "minimum": 0 },
37
+ "spend_credit": { "type": "integer", "minimum": 0 },
38
+ "dispatch_calls": { "type": "integer", "minimum": 0 },
39
+ "unrouted_dispatches": { "type": "integer", "minimum": 0 },
40
+ "denied_dispatches": { "type": "integer", "minimum": 0 },
41
+ "routing_nudged": { "type": "boolean" },
42
+ "frontier_uses": { "type": "integer", "minimum": 0 },
43
+ "captures": { "type": "integer", "minimum": 0 },
44
+ "close_bounced": { "type": "boolean" },
45
+ "closed_without": { "type": "array", "items": { "type": "string" } },
46
+ "nudged_at_calls": { "type": "integer", "minimum": 0 },
47
+ "plain_questions": { "type": "integer", "minimum": 0 },
48
+ "tool_use": { "type": "object", "description": "Tool-use reminders: rule ids only, never tool inputs.", "additionalProperties": false, "properties": { "used": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } }, "due": { "type": "array", "items": { "type": "string" } }, "nudged": { "type": "array", "items": { "type": "string" } }, "followed": { "type": "array", "items": { "type": "string" } }, "skipped": { "type": "array", "items": { "type": "string" } }, "code_searches": { "type": "integer", "minimum": 0 }, "nudged_at": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } } } },
49
+ "stop_continues_prompt": { "type": "integer", "minimum": 0, "maximum": 2, "description": "The same count for the current prompt; it bounds forced continuations and resets on the next prompt." }
33
50
  }
34
51
  },
35
52
  "session": {
@@ -41,10 +58,19 @@
41
58
  "session": { "type": "string", "minLength": 1 },
42
59
  "run": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/run" }] },
43
60
  "prompt_started_at": { "type": ["number", "null"] },
61
+ "last_stop_at": { "type": "number", "description": "When the last main-thread turn end was handled; a second handler for the same Stop inside a short window is a duplicate." },
44
62
  "nudged": { "type": "boolean" },
45
63
  "worked_without_run": { "type": "boolean" },
46
64
  "subagents_without_run": { "type": "integer", "minimum": 0 },
47
- "entrypoint_loaded": { "type": "boolean" },
65
+ "entrypoint_loaded": { "type": "boolean", "description": "Per prompt: the entrypoint was loaded since the last prompt, so discovery reads before run start are not a deviation." },
66
+ "entrypoint_announced": { "type": "boolean", "description": "Per session: the load-the-skill notice was sent. Absent in session files written before the notice existed." },
67
+ "entrypoint_seen": { "type": "boolean", "description": "Per session: the entrypoint was loaded at least once, so the notice is never sent and the work nudge stops asking for the skill." },
68
+ "tool_session": { "type": "array", "items": { "type": "string" }, "description": "Rules satisfied once for the whole session." },
69
+ "denied_dispatches": { "type": "integer", "minimum": 0 },
70
+ "pre_tool_use": { "type": "object", "description": "Tool-use reminders: rule ids only, never tool inputs.", "additionalProperties": false, "properties": { "used": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } }, "due": { "type": "array", "items": { "type": "string" } }, "nudged": { "type": "array", "items": { "type": "string" } }, "followed": { "type": "array", "items": { "type": "string" } }, "skipped": { "type": "array", "items": { "type": "string" } }, "code_searches": { "type": "integer", "minimum": 0 }, "nudged_at": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } } } },
71
+ "asked_natively": { "type": "boolean" },
72
+ "ask_nudged": { "type": "boolean" },
73
+ "denials": { "type": "object", "description": "Refusals per reason, this session.", "additionalProperties": { "type": "integer", "minimum": 0 } },
48
74
  "seen": { "type": "array", "items": { "type": "string" } }
49
75
  }
50
76
  },
@@ -72,6 +98,21 @@
72
98
  "live_calls": { "type": "integer", "minimum": 0 },
73
99
  "role_dispatches": { "type": "integer", "minimum": 0 },
74
100
  "generic_dispatches": { "type": "integer", "minimum": 0 },
101
+ "stop_continues": { "type": "integer", "minimum": 0 },
102
+ "dispatch_calls": { "type": "integer", "minimum": 0 },
103
+ "unrouted_dispatches": { "type": "integer", "minimum": 0 },
104
+ "denied_dispatches": { "type": "integer", "minimum": 0 },
105
+ "plain_questions": { "type": "integer", "minimum": 0 },
106
+ "frontier_uses": { "type": "integer", "minimum": 0 },
107
+ "captures": { "type": "integer", "minimum": 0 },
108
+ "closed_without": { "type": "array", "items": { "type": "string" } },
109
+ "route_calls": { "type": "integer", "minimum": 0 },
110
+ "decide_calls": { "type": "integer", "minimum": 0 },
111
+ "spend_calls": { "type": "integer", "minimum": 0 },
112
+ "tool_use": { "type": "object", "description": "Calls per tool-use rule that the run made.", "additionalProperties": { "type": "integer", "minimum": 0 } },
113
+ "tool_nudges": { "type": "array", "items": { "type": "string" } },
114
+ "tool_followed": { "type": "array", "items": { "type": "string" } },
115
+ "tool_skipped": { "type": "array", "items": { "type": "string" } },
75
116
  "closed_by": { "enum": ["run_close", "next_prompt", "succession", "turn_end", "session_end"] }
76
117
  }
77
118
  }
@@ -24,6 +24,15 @@
24
24
  "type": "string",
25
25
  "pattern": "^[a-f0-9]{64}$"
26
26
  },
27
+ "install_scope": {
28
+ "const": "global",
29
+ "description": "Present on a global install (install --global): every path in files, spans and json_entries is then relative to the user's home directory rather than a project root, and their scope \"project\" names that install root. Absent on a project install."
30
+ },
31
+ "skills_root": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "description": "Global installs only: the absolute skills root the runtime was installed under. The global manifest is keyed on the home directory alone; a later install that only defaults its skills root reuses this one."
35
+ },
27
36
  "harnesses": {
28
37
  "type": "array",
29
38
  "uniqueItems": true,
@@ -92,6 +101,15 @@
92
101
  "agent-file",
93
102
  "flow-plugin"
94
103
  ]
104
+ },
105
+ "harness": {
106
+ "enum": [
107
+ "codex",
108
+ "claude",
109
+ "opencode",
110
+ "kilo"
111
+ ],
112
+ "description": "Global installs only: the harness this entry was written for, so uninstall --global --harness X finds it whatever the environment says about paths."
95
113
  }
96
114
  }
97
115
  }
@@ -144,6 +162,15 @@
144
162
  },
145
163
  "created_file": {
146
164
  "type": "boolean"
165
+ },
166
+ "harness": {
167
+ "enum": [
168
+ "codex",
169
+ "claude",
170
+ "opencode",
171
+ "kilo"
172
+ ],
173
+ "description": "Global installs only: the harness this entry was written for, so uninstall --global --harness X finds it whatever the environment says about paths."
147
174
  }
148
175
  }
149
176
  }
@@ -158,12 +185,36 @@
158
185
  "items": {
159
186
  "type": "object",
160
187
  "additionalProperties": false,
161
- "required": ["scope", "path", "hash", "created_file"],
188
+ "required": [
189
+ "scope",
190
+ "path",
191
+ "hash",
192
+ "created_file"
193
+ ],
162
194
  "properties": {
163
- "scope": { "const": "project" },
164
- "path": { "type": "string", "minLength": 1 },
165
- "hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
166
- "created_file": { "type": "boolean" }
195
+ "scope": {
196
+ "const": "project"
197
+ },
198
+ "path": {
199
+ "type": "string",
200
+ "minLength": 1
201
+ },
202
+ "hash": {
203
+ "type": "string",
204
+ "pattern": "^[0-9a-f]{64}$"
205
+ },
206
+ "created_file": {
207
+ "type": "boolean"
208
+ },
209
+ "harness": {
210
+ "enum": [
211
+ "codex",
212
+ "claude",
213
+ "opencode",
214
+ "kilo"
215
+ ],
216
+ "description": "Global installs only: the harness this entry was written for, so uninstall --global --harness X finds it whatever the environment says about paths."
217
+ }
167
218
  }
168
219
  }
169
220
  }
@@ -0,0 +1,139 @@
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": "https://json-schema.org/draft/2020-12/schema",
4
+ "$id": "https://raw.githubusercontent.com/tbogdan/llm-orchestrator/main/schemas/learning.schema.json",
5
+ "title": "Advisor, strategy distillation and frontier budget (registries/learning.json)",
6
+ "description": "Caps for frontier-tier dispatches, when the advisor is consulted, and the shape and lifecycle of distilled strategy cards.",
7
+ "type": "object",
8
+ "required": ["_attribution", "schema_version", "source_of_truth", "budget", "advisor", "strategy"],
9
+ "properties": {
10
+ "_attribution": { "type": "string" },
11
+ "schema_version": { "type": "integer", "minimum": 1 },
12
+ "source_of_truth": { "type": "string" },
13
+ "note": { "type": "string" },
14
+ "budget": {
15
+ "type": "object",
16
+ "required": ["ledger_file", "window", "frontier_tier", "frontier_share_max", "frontier_min_denominator", "exploration_share_max", "exploration_min_denominator", "exploration_headroom_below", "exploration_min_gap", "kinds", "always_allowed_kinds", "risk_floor_source"],
17
+ "properties": {
18
+ "ledger_file": { "type": "string", "pattern": "^[a-z0-9._-]+$" },
19
+ "window": { "type": "integer", "minimum": 10 },
20
+ "frontier_tier": { "enum": ["F"] },
21
+ "frontier_share_max": { "type": "number", "minimum": 0, "maximum": 0.1 },
22
+ "frontier_min_denominator": { "type": "integer", "minimum": 1 },
23
+ "exploration_share_max": { "type": "number", "minimum": 0, "maximum": 0.03 },
24
+ "exploration_min_denominator": { "type": "integer", "minimum": 1 },
25
+ "exploration_headroom_below": { "type": "number", "minimum": 0, "maximum": 0.1 },
26
+ "exploration_min_gap": { "type": "integer", "minimum": 0 },
27
+ "kinds": { "type": "array", "minItems": 1, "items": { "enum": ["task", "advisor", "exploration", "review-floor"] } },
28
+ "always_allowed_kinds": { "type": "array", "items": { "enum": ["review-floor"] } },
29
+ "risk_floor_source": { "const": "registries/routing-matrix.json#risk_floors" }
30
+ },
31
+ "additionalProperties": false
32
+ },
33
+ "advisor": {
34
+ "type": "object",
35
+ "required": ["role", "pair", "max_consults_per_task", "packet_max_lines", "gates", "decision_phases", "exploration_phases", "extra_phases", "phase_aliases", "complexities", "signals", "exploration_complexities", "exploration_min_repeats", "tiers", "modes", "harness", "cli_timeout_seconds"],
36
+ "properties": {
37
+ "role": { "type": "string" },
38
+ "pair": { "type": "string", "pattern": "^F T[3-5]$" },
39
+ "max_consults_per_task": { "type": "integer", "minimum": 1, "maximum": 3 },
40
+ "packet_max_lines": { "type": "integer", "minimum": 10 },
41
+ "gates": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^G[0-6]$" } },
42
+ "decision_phases": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$" } },
43
+ "exploration_phases": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$" } },
44
+ "extra_phases": { "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$" } },
45
+ "phase_aliases": {
46
+ "type": "object",
47
+ "patternProperties": { "^[a-z0-9]+(_[a-z0-9]+)*$": { "type": "string", "pattern": "^[a-z0-9]+(_[a-z0-9]+)*$" } },
48
+ "additionalProperties": false
49
+ },
50
+ "complexities": { "type": "array", "minItems": 1, "items": { "enum": ["SIMPLE", "MODERATE", "COMPLEX", "CRITICAL"] } },
51
+ "signals": { "type": "array", "items": { "enum": ["novel", "verifier_failed", "escalated"] } },
52
+ "exploration_complexities": { "type": "array", "items": { "enum": ["SIMPLE", "MODERATE", "COMPLEX", "CRITICAL"] } },
53
+ "exploration_min_repeats": { "type": "integer", "minimum": 0 },
54
+ "tiers": { "type": "array", "minItems": 1, "items": { "enum": ["F", "X"] } },
55
+ "modes": {
56
+ "type": "array",
57
+ "minItems": 1,
58
+ "items": {
59
+ "type": "object",
60
+ "required": ["id", "when", "how"],
61
+ "properties": {
62
+ "id": { "enum": ["native", "subagent", "cli", "same-model"] },
63
+ "when": { "type": "string" },
64
+ "how": { "type": "string" }
65
+ },
66
+ "additionalProperties": false
67
+ }
68
+ },
69
+ "harness": {
70
+ "type": "object",
71
+ "required": ["claude", "codex", "opencode", "kilo"],
72
+ "additionalProperties": {
73
+ "type": "object",
74
+ "required": ["native", "subagent", "cli"],
75
+ "properties": {
76
+ "native": { "type": ["string", "null"] },
77
+ "subagent": { "type": ["string", "null"] },
78
+ "cli": {
79
+ "type": ["object", "null"],
80
+ "required": ["argv", "prompt", "verified"],
81
+ "properties": {
82
+ "argv": { "type": "array", "minItems": 2, "items": { "type": "string" } },
83
+ "prompt": { "enum": ["stdin", "argument"] },
84
+ "verified": { "type": "boolean" }
85
+ },
86
+ "additionalProperties": false
87
+ }
88
+ },
89
+ "additionalProperties": false
90
+ }
91
+ },
92
+ "cli_timeout_seconds": { "type": "integer", "minimum": 30 }
93
+ },
94
+ "additionalProperties": false
95
+ },
96
+ "strategy": {
97
+ "type": "object",
98
+ "required": ["max_lines", "max_chars", "max_code_lines", "required_sections", "optional_sections", "section_aliases", "kinds", "statuses", "match_min_tag_overlap", "min_tags", "max_tags", "wildcard_area_min_shared_tags", "tag_synonyms", "promote", "retire", "stale_days", "do_not_capture"],
99
+ "properties": {
100
+ "max_lines": { "type": "integer", "minimum": 10 },
101
+ "max_chars": { "type": "integer", "minimum": 500 },
102
+ "max_code_lines": { "type": "integer", "minimum": 0 },
103
+ "required_sections": { "type": "array", "minItems": 1, "items": { "type": "string" } },
104
+ "optional_sections": { "type": "array", "items": { "type": "string" } },
105
+ "section_aliases": { "type": "object", "additionalProperties": { "type": "string" } },
106
+ "kinds": { "type": "array", "minItems": 1, "items": { "type": "string" } },
107
+ "statuses": { "type": "array", "minItems": 3, "items": { "enum": ["provisional", "promoted", "retired"] } },
108
+ "match_min_tag_overlap": { "type": "number", "minimum": 0.01, "maximum": 1 },
109
+ "min_tags": { "type": "integer", "minimum": 2 },
110
+ "max_tags": { "type": "integer", "minimum": 2 },
111
+ "wildcard_area_min_shared_tags": { "type": "integer", "minimum": 2 },
112
+ "tag_synonyms": {
113
+ "type": "object",
114
+ "patternProperties": { "^[a-z0-9]+(-[a-z0-9]+)*$": { "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" } } },
115
+ "additionalProperties": false
116
+ },
117
+ "promote": {
118
+ "type": "object",
119
+ "required": ["helpful_min", "harmful_max"],
120
+ "properties": {
121
+ "helpful_min": { "type": "integer", "minimum": 1 },
122
+ "harmful_max": { "const": 0 }
123
+ },
124
+ "additionalProperties": false
125
+ },
126
+ "retire": {
127
+ "type": "object",
128
+ "required": ["harmful_min"],
129
+ "properties": { "harmful_min": { "type": "integer", "minimum": 1 } },
130
+ "additionalProperties": false
131
+ },
132
+ "stale_days": { "type": "integer", "minimum": 1 },
133
+ "do_not_capture": { "type": "array", "minItems": 1, "items": { "type": "string" } }
134
+ },
135
+ "additionalProperties": false
136
+ }
137
+ },
138
+ "additionalProperties": false
139
+ }
@@ -46,10 +46,13 @@
46
46
  "incumbents": {
47
47
  "type": "object",
48
48
  "required": ["claude", "codex"],
49
+ "description": "Seat-holder per hard-coded ladder. Another provider ladder may add its own key; a harness without one takes its seats from the inventory ladder.",
49
50
  "properties": {
50
51
  "claude": { "type": "string" },
51
52
  "codex": { "type": "string" }
52
- }
53
+ },
54
+ "patternProperties": { "^[a-z][a-z0-9-]*$": { "type": "string" } },
55
+ "additionalProperties": false
53
56
  },
54
57
  "capped_exception": { "type": "object" },
55
58
  "fallbacks": {
@@ -59,6 +62,7 @@
59
62
  "claude": { "type": "array", "items": { "type": "string" } },
60
63
  "codex": { "type": "array", "items": { "type": "string" } }
61
64
  },
65
+ "patternProperties": { "^[a-z][a-z0-9-]*$": { "type": "array", "items": { "type": "string" } } },
62
66
  "additionalProperties": false
63
67
  }
64
68
  },
@@ -86,6 +90,17 @@
86
90
  },
87
91
  "thinking_level_order": { "type": "array", "items": { "type": "string" }, "minItems": 6 },
88
92
  "haiku_budget_rule": { "type": "string" },
93
+ "inventory_ladder": {
94
+ "type": "object",
95
+ "description": "How a seat is derived when the harness or provider has no hard-coded ladder.",
96
+ "required": ["applies_when", "order", "never"],
97
+ "properties": {
98
+ "applies_when": { "type": "string" },
99
+ "order": { "type": "array", "minItems": 1, "items": { "type": "string" } },
100
+ "never": { "type": "array", "minItems": 1, "items": { "type": "string" } }
101
+ },
102
+ "additionalProperties": false
103
+ },
89
104
  "resolution": {
90
105
  "type": "object",
91
106
  "patternProperties": {
@@ -93,11 +108,15 @@
93
108
  "type": "object",
94
109
  "required": ["claude", "codex"],
95
110
  "properties": {
96
- "claude": { "type": ["object", "null"] },
111
+ "claude": { "type": ["object", "null"], "description": "The seat for this pair on one ladder; null means the ladder has no seat here and the router escalates. `critical_seat` is the model a review, independent-review or independent-review-bound dispatch gets where it differs (an unmeasured successor is never promoted into one); `alternative` is the model listed behind the seat-holder, with the reason it is not seated.", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] }, "alternate_effort": { "type": "string" }, "note": { "type": "string" }, "independent_second_reviewer": { "type": "object", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] } }, "additionalProperties": false }, "critical_seat": { "type": "object", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] } }, "additionalProperties": false }, "alternative": { "type": "object", "required": ["model", "effort", "reason"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] }, "reason": { "type": "string", "minLength": 1 } }, "additionalProperties": false } }, "additionalProperties": false },
97
112
  "claude_note": { "type": "string" },
98
- "codex": { "type": ["object", "null"] },
113
+ "codex": { "type": ["object", "null"], "description": "The seat for this pair on one ladder; null means the ladder has no seat here and the router escalates. `critical_seat` is the model a review, independent-review or independent-review-bound dispatch gets where it differs (an unmeasured successor is never promoted into one); `alternative` is the model listed behind the seat-holder, with the reason it is not seated.", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] }, "alternate_effort": { "type": "string" }, "note": { "type": "string" }, "independent_second_reviewer": { "type": "object", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] } }, "additionalProperties": false }, "critical_seat": { "type": "object", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] } }, "additionalProperties": false }, "alternative": { "type": "object", "required": ["model", "effort", "reason"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] }, "reason": { "type": "string", "minLength": 1 } }, "additionalProperties": false } }, "additionalProperties": false },
99
114
  "codex_note": { "type": "string" }
100
115
  },
116
+ "patternProperties": {
117
+ "^[a-z][a-z0-9-]*_note$": { "type": "string" },
118
+ "^[a-z][a-z0-9-]*$": { "type": ["object", "null"], "description": "The seat for this pair on one ladder; null means the ladder has no seat here and the router escalates. `critical_seat` is the model a review, independent-review or independent-review-bound dispatch gets where it differs (an unmeasured successor is never promoted into one); `alternative` is the model listed behind the seat-holder, with the reason it is not seated.", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] }, "alternate_effort": { "type": "string" }, "note": { "type": "string" }, "independent_second_reviewer": { "type": "object", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] } }, "additionalProperties": false }, "critical_seat": { "type": "object", "required": ["model", "effort"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] } }, "additionalProperties": false }, "alternative": { "type": "object", "required": ["model", "effort", "reason"], "properties": { "model": { "type": "string", "minLength": 1 }, "effort": { "type": ["string", "null"] }, "reason": { "type": "string", "minLength": 1 } }, "additionalProperties": false } }, "additionalProperties": false }
119
+ },
101
120
  "additionalProperties": false
102
121
  }
103
122
  }
@@ -169,6 +188,7 @@
169
188
  "claude": { "type": "array", "minItems": 2, "items": { "type": "object", "required": ["model", "effort"] } },
170
189
  "codex": { "type": "array", "minItems": 2, "items": { "type": "object", "required": ["model", "effort"] } }
171
190
  },
191
+ "patternProperties": { "^[a-z][a-z0-9-]*$": { "type": "array", "minItems": 2, "items": { "type": "object", "required": ["model", "effort"] } } },
172
192
  "additionalProperties": false
173
193
  },
174
194
  "escalation_rules": { "type": "array", "items": { "type": "string" } },
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "$id": "https://raw.githubusercontent.com/tbogdan/llm-orchestrator/main/schemas/top-models.schema.json",
5
5
  "title": "Curated model shortlist for agentic coding",
6
- "description": "Twenty routable models — ten ladder incumbents plus ten measured candidates — and the unpromoted alternatives behind them. Every unsourced field is null by construction: nothing here is interpolated, estimated or inferred from a display name.",
6
+ "description": "The routable model registry — ladder incumbents and their fallbacks, measured candidates, and available-but-unrated models — plus the unpromoted alternatives behind them. The set is open: any provider may appear. Every unsourced field is null by construction: nothing here is interpolated, estimated or inferred from a display name.",
7
7
  "type": "object",
8
8
  "required": ["_attribution", "schema_version", "observed_at", "measurement_source", "tier_bands", "models", "candidates"],
9
9
  "properties": {
@@ -19,10 +19,14 @@
19
19
  "benchmark": { "type": "string" },
20
20
  "version": { "type": "string" },
21
21
  "leaderboard_url": { "type": "string" },
22
+ "current_version": { "type": "string", "description": "The benchmark version the source publishes today, when it is ahead of `version`. `measured` values stay on `version`." },
23
+ "staleness_note": { "type": "string" },
22
24
  "note": { "type": "string" }
23
25
  },
24
26
  "additionalProperties": false
25
27
  },
28
+ "price_note": { "type": "string" },
29
+ "alias_note": { "type": "string" },
26
30
  "harness_id_note": { "type": "string" },
27
31
  "tier_note": { "type": "string" },
28
32
  "admission_note": { "type": "string" },
@@ -73,12 +77,29 @@
73
77
  "caps",
74
78
  "notes",
75
79
  "sources",
76
- "observed_at"
80
+ "observed_at",
81
+ "price_as_of",
82
+ "price_source"
77
83
  ],
78
84
  "properties": {
79
85
  "key": { "type": "string" },
80
86
  "display_name": { "type": "string" },
81
- "provider": { "type": "string" },
87
+ "provider": { "type": "string", "pattern": "^[a-z0-9][a-z0-9.-]*$", "description": "Lower-case creator of the model. Open set: every value here is an accepted `--provider`." },
88
+ "aliases": {
89
+ "type": "array",
90
+ "items": { "type": "string", "minLength": 1 },
91
+ "description": "Ids a harness or gateway uses for this model that the normalisation rules in lib/router.mjs cannot derive from `key`, `api_ids` or `canonical_api_id`. Matched exactly after normalisation; an alias two models share matches neither."
92
+ },
93
+ "lifecycle": {
94
+ "type": "object",
95
+ "required": ["status"],
96
+ "properties": {
97
+ "status": { "enum": ["active", "deprecated"] },
98
+ "successor": { "type": ["string", "null"], "description": "Display name of the provider's successor. It need not be a registry key: an unverified successor is named, not added." },
99
+ "note": { "type": "string" }
100
+ },
101
+ "additionalProperties": false
102
+ },
82
103
  "ladder": { "type": ["string", "null"], "enum": ["codex", "claude", "open", "third-party", null] },
83
104
  "admission": { "enum": ["incumbent", "candidate"] },
84
105
  "tier": { "type": ["string", "null"] },
@@ -86,12 +107,14 @@
86
107
  "api_ids": {
87
108
  "type": "object",
88
109
  "required": ["codex", "claude", "opencode", "kilo"],
110
+ "description": "Dispatchable id per harness, null where it must be resolved from the runtime. The four known harnesses are required; another harness or gateway may add its own key.",
89
111
  "properties": {
90
112
  "codex": { "type": ["string", "null"] },
91
113
  "claude": { "type": ["string", "null"] },
92
114
  "opencode": { "type": ["string", "null"] },
93
115
  "kilo": { "type": ["string", "null"] }
94
116
  },
117
+ "patternProperties": { "^[a-z][a-z0-9-]*$": { "type": ["string", "null"] } },
95
118
  "additionalProperties": false
96
119
  },
97
120
  "canonical_api_id": { "type": ["string", "null"] },
@@ -108,7 +131,7 @@
108
131
  "note": { "type": "string" },
109
132
  "tier_effort": {
110
133
  "type": "object",
111
- "description": "Per seat below the model's home tier: thinking level → effort to run there, so the model is score-matched to that tier instead of over-provisioned.",
134
+ "description": "Tier → thinking level → the effort this model runs on that seat, where it differs from the generic thinking-level mapping: a lower effort on a seat below the model's home tier, so it is score-matched instead of over-provisioned (GPT-6 Sol on S), or the deeper effort its resolution row names (Luna `xhigh` at W T3, Astra `xhigh` at F T4).",
112
135
  "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }
113
136
  },
114
137
  "unmeasured_levels": {
@@ -127,6 +150,7 @@
127
150
  "output_usd_per_mtok": { "type": ["number", "null"], "minimum": 0 },
128
151
  "cache_read_usd_per_mtok": { "type": ["number", "null"], "minimum": 0 },
129
152
  "cache_write_multiplier": { "type": ["number", "null"], "minimum": 0 },
153
+ "cache_write_multiplier_1h": { "type": ["number", "null"], "minimum": 0, "description": "Cache-write multiplier for the 1-hour cache, where the provider prices it separately from the default (5-minute) one." },
130
154
  "fast_mode_note": { "type": "string" }
131
155
  },
132
156
  "additionalProperties": false
@@ -161,7 +185,7 @@
161
185
  "measurement_note": { "type": "string" },
162
186
  "supersedes": {
163
187
  "type": ["string", "null"],
164
- "description": "Key of the same-ladder, same-tier model this one succeeds. The router ranks the successor directly ahead of it only while every per-token price (input, output, cache read) is at or below the predecessor's; the predecessor stays routable as the fallback."
188
+ "description": "Key of the same-ladder, same-tier model this one succeeds — one successor per seat-holder. The router ranks the successor directly ahead of it only while its input and output list prices are published and at or below the predecessor's, at the base rate and at the highest long-context band either publishes; a cache-read price blocks succession only when both publish one and the successor's is higher. The predecessor stays routable as the fallback."
165
189
  },
166
190
  "indices": {
167
191
  "type": "object",
@@ -212,7 +236,9 @@
212
236
  },
213
237
  "notes": { "type": "array", "items": { "type": "string" } },
214
238
  "sources": { "type": "array", "minItems": 1, "items": { "type": "string" } },
215
- "observed_at": { "type": "string" }
239
+ "observed_at": { "type": "string" },
240
+ "price_as_of": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "description": "Date the list price was read from `price_source`." },
241
+ "price_source": { "type": "string", "pattern": "^https://", "description": "Page the list price was read from." }
216
242
  },
217
243
  "additionalProperties": false
218
244
  }
@@ -61,3 +61,11 @@ do not escalate the tier to compensate. A test that fails in the area you touche
61
61
  it in the same session. Resolve required and optional capabilities per phase via
62
62
  [capabilities](../policies/capabilities.md); a missing mandatory item is declared first, recommended
63
63
  once, and only after explicit refusal carried as a `degraded:` line.
64
+
65
+ ## Advisor and strategy cards
66
+
67
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
68
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
69
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
70
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
71
+ See [learning](../policies/learning.md).
@@ -55,3 +55,11 @@ Do not import another harness's permission syntax and do not change global crede
55
55
  native schemas rather than assuming a shape. Resolve required and optional capabilities per phase via
56
56
  [capabilities](../policies/capabilities.md); a missing mandatory item is declared first, recommended
57
57
  once, and only after explicit refusal carried as a `degraded:` line.
58
+
59
+ ## Advisor and strategy cards
60
+
61
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
62
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
63
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
64
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
65
+ See [learning](../policies/learning.md).
@@ -55,3 +55,11 @@ A failed compatibility or migration check blocks the release; it is not a warnin
55
55
  rollback path does not exist, say so before deploying, not after. Resolve required and optional
56
56
  capabilities per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is
57
57
  declared first, recommended once, and only after explicit refusal carried as a `degraded:` line.
58
+
59
+ ## Advisor and strategy cards
60
+
61
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
62
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
63
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
64
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
65
+ See [learning](../policies/learning.md).
@@ -67,3 +67,11 @@ Do not invoke incident or provider tooling without relevant evidence. Resolve re
67
67
  capabilities per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is
68
68
  declared first, recommended once, and only after explicit refusal carried as a `degraded:` line in
69
69
  every plan, handoff and report.
70
+
71
+ ## Advisor and strategy cards
72
+
73
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
74
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
75
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
76
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
77
+ See [learning](../policies/learning.md).
@@ -59,3 +59,11 @@ tooling only for state actually relevant to the incident, and use its narrowest
59
59
  before any write. Resolve required and optional capabilities for each phase via
60
60
  [capabilities](../policies/capabilities.md); a missing mandatory item is declared first, recommended
61
61
  once, and only after explicit refusal carried as a `degraded:` line.
62
+
63
+ ## Advisor and strategy cards
64
+
65
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
66
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
67
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
68
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
69
+ See [learning](../policies/learning.md).
@@ -64,3 +64,11 @@ protocol violation. Report confidence and named gaps rather than a confident sin
64
64
  distinguish what was observed from what was inferred. Resolve required and optional capabilities per
65
65
  phase via [capabilities](../policies/capabilities.md); a missing mandatory item is declared first,
66
66
  recommended once, and only after explicit refusal carried as a `degraded:` line.
67
+
68
+ ## Advisor and strategy cards
69
+
70
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
71
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
72
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
73
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
74
+ See [learning](../policies/learning.md).
@@ -55,3 +55,11 @@ and add one verifying the delegation.** Never delete or weaken an assertion to r
55
55
  the single most common way a refactor silently drops an invariant. Resolve required and optional
56
56
  capabilities per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is
57
57
  declared first, recommended once, and only after explicit refusal carried as a `degraded:` line.
58
+
59
+ ## Advisor and strategy cards
60
+
61
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
62
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
63
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
64
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
65
+ See [learning](../policies/learning.md).
@@ -59,3 +59,11 @@ links and internal consistency before publishing. Never send credentials or priv
59
59
  external search or documentation endpoint. Resolve required and optional capabilities per phase via
60
60
  [capabilities](../policies/capabilities.md); a missing mandatory item is declared first, recommended
61
61
  once, and only after explicit refusal carried as a `degraded:` line.
62
+
63
+ ## Advisor and strategy cards
64
+
65
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
66
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
67
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
68
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
69
+ See [learning](../policies/learning.md).
@@ -60,3 +60,11 @@ unrelated user work. Report concrete, actionable findings with locations. Warnin
60
60
  found during review are findings, not background noise. Resolve required and optional capabilities
61
61
  per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is declared first,
62
62
  recommended once, and only after explicit refusal carried as a `degraded:` line.
63
+
64
+ ## Advisor and strategy cards
65
+
66
+ Before a decision shard of this flow (plan, design, hypothesis, synthesis) and before any
67
+ frontier-tier dispatch, run `strategy decide` and follow its answer: inject the stored strategy card,
68
+ consult the `advisor` once, spend an exploratory upgrade, or dispatch as routed. Pass every
69
+ dispatch through `budget spend` first; after G4 and G5, record the card's outcome and keep the advisor's card.
70
+ See [learning](../policies/learning.md).