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
@@ -11,11 +11,19 @@
11
11
  - **The test-engineer writes the failing test first.** No builder is dispatched before G3 RED.
12
12
  - Discover project conventions and acceptance criteria before designing against them.
13
13
  - Independent review wherever a risk floor applies.
14
+ - **`impeccable` on any UI** (domain `FRONTEND`, or the feature creates or changes UI or visual
15
+ design — `ui.design_system`): **Plan** — `/impeccable init` when the project has no `PRODUCT.md`,
16
+ then `/impeccable shape` before any UI code; **Build** — an ordinary `/impeccable` new-work
17
+ request after `shape`, or the targeted command the plan names (`layout`, `typeset`, `colorize`,
18
+ `animate`, `adapt`, …); **Review** — `/impeccable critique` + `/impeccable audit` on the changed
19
+ surface; **Verify** — `/impeccable polish` before G5. Design-system, UI-styling,
20
+ `frontend-design` and `ui-ux-pro-max` skills are complements, never a substitute.
14
21
 
15
22
  ## Optional (trigger)
16
23
 
17
24
  - `context7` — any library or SDK API surface, **including familiar ones**; training data lags.
18
- - Design-system + UI-styling skills — any new UI.
25
+ - Design-system + UI-styling skills — alongside `impeccable` when the project has its own design
26
+ system to follow.
19
27
  - Payment-provider best-practices skill — the change touches a money path.
20
28
  - Semantic-code MCP — a large cross-file edit.
21
29
 
@@ -59,3 +67,11 @@ Do not invoke incident or provider tooling without relevant evidence. Resolve re
59
67
  capabilities per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is
60
68
  declared first, recommended once, and only after explicit refusal carried as a `degraded:` line in
61
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).
@@ -19,6 +19,10 @@
19
19
  explicit refusal continue in declared degraded mode with a `degraded: exa` line and those claims
20
20
  labelled unverified.
21
21
 
22
+ - **`impeccable` when the question is about UI or visual design** (`ui.design_system`): **Evidence**
23
+ — `/impeccable critique` and `/impeccable audit` on the surface in question, read-only; the
24
+ report cites their findings.
25
+
22
26
  ## Optional (trigger)
23
27
 
24
28
  - Semantic-code MCP — symbol-level questions across a large codebase.
@@ -60,3 +64,11 @@ protocol violation. Report confidence and named gaps rather than a confident sin
60
64
  distinguish what was observed from what was inferred. Resolve required and optional capabilities per
61
65
  phase via [capabilities](../policies/capabilities.md); a missing mandatory item is declared first,
62
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).
@@ -11,6 +11,10 @@
11
11
  - Identify behavior and compatibility invariants before touching anything. Externally visible
12
12
  contracts are preserved — no renamed error keys, no removed response fields, no moved routes.
13
13
  - Small transformations with disjoint ownership, each verifiable on its own.
14
+ - **`impeccable` when the refactor touches UI** (`ui.design_system`): **Analyze** —
15
+ `/impeccable audit` for the baseline; **Incremental** — `/impeccable extract` to pull repeated styles into
16
+ tokens and components; **Review** — `/impeccable audit` against the baseline (no new findings)
17
+ and `/impeccable polish` for design-system alignment. Never a silent substitute.
14
18
 
15
19
  ## Optional (trigger)
16
20
 
@@ -51,3 +55,11 @@ and add one verifying the delegation.** Never delete or weaken an assertion to r
51
55
  the single most common way a refactor silently drops an invariant. Resolve required and optional
52
56
  capabilities per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is
53
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).
@@ -15,6 +15,10 @@
15
15
  described as independent.
16
16
  - Minor findings and out-of-scope calls are batched into one explicit "skip or fix?" question — never
17
17
  silently parked.
18
+ - **`impeccable` when the diff or target is UI or visual design** (`ui.design_system`): **Analyze** —
19
+ `/impeccable critique` (UX review) + `/impeccable audit` (accessibility, performance, responsive,
20
+ anti-pattern detectors); their findings join the severity-ranked list. A guidelines skill
21
+ complements them, never replaces them.
18
22
 
19
23
  ## Optional (trigger)
20
24
 
@@ -56,3 +60,11 @@ unrelated user work. Report concrete, actionable findings with locations. Warnin
56
60
  found during review are findings, not background noise. Resolve required and optional capabilities
57
61
  per phase via [capabilities](../policies/capabilities.md); a missing mandatory item is declared first,
58
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).