@femtomc/mu-agent 26.2.106 → 26.2.107

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 (40) hide show
  1. package/README.md +39 -17
  2. package/assets/mu-tui-logo.png +0 -0
  3. package/dist/extensions/index.d.ts +1 -0
  4. package/dist/extensions/index.d.ts.map +1 -1
  5. package/dist/extensions/index.js +1 -0
  6. package/dist/extensions/mu-command-dispatcher.d.ts +0 -1
  7. package/dist/extensions/mu-command-dispatcher.d.ts.map +1 -1
  8. package/dist/extensions/mu-command-dispatcher.js +5 -42
  9. package/dist/extensions/mu-operator.d.ts.map +1 -1
  10. package/dist/extensions/mu-operator.js +2 -0
  11. package/dist/extensions/mu-serve.d.ts.map +1 -1
  12. package/dist/extensions/mu-serve.js +2 -0
  13. package/dist/extensions/ui.d.ts +4 -0
  14. package/dist/extensions/ui.d.ts.map +1 -0
  15. package/dist/extensions/ui.js +335 -0
  16. package/dist/operator.d.ts +169 -1
  17. package/dist/operator.d.ts.map +1 -1
  18. package/dist/operator.js +77 -7
  19. package/package.json +2 -2
  20. package/prompts/skills/automation/SKILL.md +25 -0
  21. package/prompts/skills/{crons → automation/crons}/SKILL.md +2 -2
  22. package/prompts/skills/{heartbeats → automation/heartbeats}/SKILL.md +2 -2
  23. package/prompts/skills/core/SKILL.md +28 -0
  24. package/prompts/skills/{code-mode → core/code-mode}/SKILL.md +1 -1
  25. package/prompts/skills/{mu → core/mu}/SKILL.md +36 -4
  26. package/prompts/skills/{tmux → core/tmux}/SKILL.md +1 -1
  27. package/prompts/skills/messaging/SKILL.md +27 -0
  28. package/prompts/skills/subagents/SKILL.md +21 -255
  29. package/prompts/skills/{control-flow → subagents/control-flow}/SKILL.md +5 -5
  30. package/prompts/skills/subagents/execution/SKILL.md +315 -0
  31. package/prompts/skills/{model-routing → subagents/model-routing}/SKILL.md +35 -8
  32. package/prompts/skills/{planning → subagents/planning}/SKILL.md +7 -7
  33. package/prompts/skills/{orchestration → subagents/protocol}/SKILL.md +7 -10
  34. package/prompts/skills/writing/SKILL.md +1 -0
  35. /package/prompts/skills/{memory → core/memory}/SKILL.md +0 -0
  36. /package/prompts/skills/{setup-discord → messaging/setup-discord}/SKILL.md +0 -0
  37. /package/prompts/skills/{setup-neovim → messaging/setup-neovim}/SKILL.md +0 -0
  38. /package/prompts/skills/{setup-slack → messaging/setup-slack}/SKILL.md +0 -0
  39. /package/prompts/skills/{setup-telegram → messaging/setup-telegram}/SKILL.md +0 -0
  40. /package/prompts/skills/{hud → subagents/hud}/SKILL.md +0 -0
@@ -6,7 +6,7 @@ description: "Adds a model-selection overlay for issue DAG execution, recommendi
6
6
  # model-routing
7
7
 
8
8
  Use this skill when execution should choose different models for different issue
9
- kinds (for example code vs docs), while preserving orchestration protocol
9
+ kinds (for example code vs docs), while preserving protocol
10
10
  semantics.
11
11
 
12
12
  ## Contents
@@ -14,6 +14,7 @@ semantics.
14
14
  - [Purpose](#purpose)
15
15
  - [Required dependencies](#required-dependencies)
16
16
  - [Core contract](#core-contract)
17
+ - [Quality profile policy (high-stakes orchestration)](#quality-profile-policy-high-stakes-orchestration)
17
18
  - [Overlay identity (`route:model-routing-v1`)](#overlay-identity-routemodel-routing-v1)
18
19
  - [Tag vocabulary](#tag-vocabulary)
19
20
  - [Recommendation packet contract](#recommendation-packet-contract)
@@ -27,8 +28,8 @@ semantics.
27
28
 
28
29
  ## Purpose
29
30
 
30
- Model-routing policies are overlays. They do not replace `orchestration`
31
- protocol semantics.
31
+ Model-routing policies are overlays. They do not replace protocol
32
+ semantics.
32
33
 
33
34
  Examples:
34
35
  - use a strong coding model for implementation leaves
@@ -40,8 +41,8 @@ Examples:
40
41
 
41
42
  Load these skills before applying model-routing policies:
42
43
 
43
- - `orchestration` (protocol primitives/invariants)
44
- - `subagents` (durable execution runtime)
44
+ - `protocol` (protocol primitives/invariants)
45
+ - `execution` (durable execution runtime)
45
46
  - `heartbeats` and/or `crons` (scheduler clock)
46
47
  - `hud` (required visibility/handoff surface)
47
48
  - `control-flow` (optional; when loop/termination overlays are also active)
@@ -71,6 +72,25 @@ Load these skills before applying model-routing policies:
71
72
  - Use `mu exec --provider/--model/--thinking` or `mu turn ...` overrides.
72
73
  - Avoid changing workspace-global operator defaults for per-issue routing.
73
74
 
75
+ ## Quality profile policy (high-stakes orchestration)
76
+
77
+ For protocol/runtime/schema/cross-adapter work, apply an explicit quality floor.
78
+ Do not rely on implicit defaults.
79
+
80
+ Recommended high-stakes profile:
81
+
82
+ - provider: `openai-codex`
83
+ - model: `gpt-5.3-codex`
84
+ - thinking: `xhigh`
85
+
86
+ Required guardrails:
87
+
88
+ 1. Always pass explicit `--provider --model --thinking` when launching workers.
89
+ 2. Do not use mini/fast profiles for root-close decisions, acceptance-signoff,
90
+ or architecture-contract issues unless the user explicitly requests it.
91
+ 3. If authenticated capability for the high-stakes profile is unavailable,
92
+ emit a `ROUTE_FALLBACK` packet that explains the downgrade rationale.
93
+
74
94
  ## Overlay identity (`route:model-routing-v1`)
75
95
 
76
96
  - Tag scope root (or selected subtree root) with: `route:model-routing-v1`
@@ -151,6 +171,13 @@ Optional root-level packet for custom preferences:
151
171
  ROUTE_POLICY:
152
172
  {
153
173
  "version": "route:model-routing-v1",
174
+ "quality_profiles": {
175
+ "orchestration_critical": {
176
+ "provider": "openai-codex",
177
+ "model": "gpt-5.3-codex",
178
+ "thinking": "xhigh"
179
+ }
180
+ },
154
181
  "task_preferences": {
155
182
  "code": [
156
183
  { "provider": "openai-codex", "model": "gpt-5.3-codex", "thinking": "xhigh" }
@@ -218,7 +245,7 @@ For one-shot execution:
218
245
 
219
246
  ```bash
220
247
  mu exec --provider <provider> --model <model> --thinking <thinking> \
221
- "Use skills subagents, orchestration, model-routing, and hud. Work issue <issue-id>."
248
+ "Use skills subagents, protocol, execution, model-routing, and hud. Work issue <issue-id>."
222
249
  ```
223
250
 
224
251
  For existing session turn:
@@ -257,7 +284,7 @@ When planning a routed subtree:
257
284
  2. Tag executable nodes with task/depth/budget intent.
258
285
  3. Record any hard constraints (modality/context) in issue body or forum packet.
259
286
  4. Optionally add root `ROUTE_POLICY` preferences.
260
- 5. Ensure DAG remains valid under `orchestration` invariants:
287
+ 5. Ensure DAG remains valid under `protocol` invariants:
261
288
  - `mu issues ready --root <root-id> --tag proto:hierarchical-work-v1 --pretty`
262
289
  - `mu issues validate <root-id>`
263
290
 
@@ -279,7 +306,7 @@ Per orchestrator tick:
279
306
  Reusable heartbeat prompt fragment:
280
307
 
281
308
  ```text
282
- Use skills orchestration, model-routing, subagents, and hud.
309
+ Use skills subagents, protocol, execution, model-routing, and hud.
283
310
  For root <root-id>, enforce route:model-routing-v1.
284
311
  Run exactly one bounded routing/orchestration transition pass: compute or validate
285
312
  one issue's model recommendation from live `mu control harness` capabilities,
@@ -3,7 +3,7 @@ name: planning
3
3
  description: "Builds and refines issue-DAG plans using the planning HUD and approval loops. Use when the user asks for planning, decomposition, sequencing, or plan review."
4
4
  ---
5
5
 
6
- # Planning
6
+ # planning
7
7
 
8
8
  Use this skill when the user asks for planning, decomposition, or a staged execution roadmap.
9
9
 
@@ -45,8 +45,8 @@ Before emitting or mutating planning HUD state, load **`hud`** and follow its ca
45
45
 
46
46
  ## Shared protocol dependency
47
47
 
48
- This skill plans DAGs for execution by `subagents`, so planning must follow the
49
- shared protocol in **`orchestration`**.
48
+ This skill plans DAGs for execution by `execution`, so planning must follow the
49
+ shared protocol in **`protocol`**.
50
50
 
51
51
  Before creating or reshaping DAG nodes, load that skill and use its canonical:
52
52
 
@@ -59,12 +59,12 @@ Do not invent alternate protocol names or tag schemas.
59
59
 
60
60
  If the user asks for explicit loop/termination behavior (for example review-gated
61
61
  retry rounds), load **`control-flow`** and encode policy via `flow:*` overlays
62
- without changing orchestration protocol semantics.
62
+ without changing protocol semantics.
63
63
 
64
64
  If the user asks for per-issue model/provider/thinking recommendations based on
65
65
  live harness capabilities, load **`model-routing`** and encode policy via
66
66
  `route:*` overlays plus route packets (for example `ROUTE_POLICY`) without
67
- changing orchestration protocol semantics.
67
+ changing protocol semantics.
68
68
 
69
69
  ## Core contract
70
70
 
@@ -96,10 +96,10 @@ changing orchestration protocol semantics.
96
96
 
97
97
  6. **After user approval, ask user about next steps**
98
98
  - On user acceptance of the plan, teardown planning HUD ownership.
99
- - If handing off to another HUD-owning skill (for example `subagents`), remove
99
+ - If handing off to another HUD-owning skill (for example `execution`), remove
100
100
  `hud_id:"planning"` and keep HUD on for the next skill.
101
101
  - If no next HUD-owning skill starts immediately, remove planning doc and turn HUD off.
102
- - Read the `subagents` skill and offer to supervise subagents to execute the plan.
102
+ - Read the `execution` skill and offer to supervise execution to realize the plan.
103
103
 
104
104
  ## Suggested workflow
105
105
 
@@ -1,14 +1,12 @@
1
1
  ---
2
- name: orchestration
3
- description: "Defines the shared planning/execution orchestration protocol for issue-DAG work. Use when creating, validating, or executing protocol-driven DAG work."
2
+ name: protocol
3
+ description: "Defines the shared planning/execution protocol for issue-DAG work. Use when creating, validating, or executing protocol-driven DAG work."
4
4
  ---
5
5
 
6
- # orchestration
6
+ # protocol
7
7
 
8
8
  Use this skill when work should flow through one shared protocol from planning to execution.
9
9
 
10
- This skill supersedes the previous `hierarchical-work-protocol` skill name.
11
-
12
10
  ## Contents
13
11
 
14
12
  - [Protocol identity](#protocol-identity)
@@ -26,7 +24,6 @@ This skill supersedes the previous `hierarchical-work-protocol` skill name.
26
24
  - Protocol ID: `hierarchical-work.protocol/v1`
27
25
  - Required issue tag on all protocol nodes: `proto:hierarchical-work-v1`
28
26
 
29
- This system does **not** use backward-compatibility aliases for older protocol names.
30
27
  Use only the protocol ID and tag above.
31
28
 
32
29
  ## Canonical tags and node roles
@@ -70,7 +67,7 @@ Node role rules:
70
67
  Policy overlays are layered on top of this protocol and should not redefine
71
68
  protocol primitives or `kind:*` semantics.
72
69
 
73
- - Keep orchestration protocol tags/kinds as source-of-truth for structure.
70
+ - Keep protocol tags/kinds as source-of-truth for structure.
74
71
  - Represent policy-specific behavior with overlay tags/metadata:
75
72
  - loop/termination policy (for example review gates, retry rounds,
76
73
  escalation thresholds): `flow:*`
@@ -192,7 +189,7 @@ mu issues dep <step-a> blocks <step-b>
192
189
 
193
190
  ## Planning handoff contract
194
191
 
195
- Before handoff from planning to subagent orchestration:
192
+ Before handoff from planning to execution supervision:
196
193
 
197
194
  1. Root exists and is tagged `node:root`, `kind:root`, `proto:hierarchical-work-v1`.
198
195
  2. Every in-scope node carries `proto:hierarchical-work-v1`.
@@ -212,7 +209,7 @@ mu issues validate <root-id>
212
209
  Worker/orchestrator passes always choose one primitive at a time:
213
210
 
214
211
  1. `read_tree`
215
- 2. Choose one primitive (`ask` | `expand` | `complete` | orchestration primitive)
212
+ 2. Choose one primitive (`ask` | `expand` | `complete` | protocol primitive)
216
213
  3. Apply
217
214
  4. Verify (`get`, `children`, `ready`, `validate`)
218
215
  5. Log human-facing progress to forum as a titled narrative update (context -> milestone moved -> impact -> overall progress -> next), using the reusable status-voice style from `heartbeats`
@@ -245,7 +242,7 @@ mu forum post issue:"$goal_id" -m "<goal brief + acceptance criteria>" --author
245
242
 
246
243
  1. **Planning-to-execution continuity**
247
244
  - Setup: a freshly planned DAG.
248
- - Expected: all nodes satisfy protocol tag/kind/context rules and can be consumed by subagents without re-shaping.
245
+ - Expected: all nodes satisfy protocol tag/kind/context rules and can be consumed by `execution` without re-shaping.
249
246
 
250
247
  2. **Decomposition with synthesis fan-in**
251
248
  - Setup: worker expands a complex node.
@@ -14,6 +14,7 @@ Use this skill when asked to write, edit, or review technical prose. This includ
14
14
  - [Common patterns by document type](#common-patterns-by-document-type)
15
15
  - [Editing and review workflow](#editing-and-review-workflow)
16
16
  - [Evaluation scenarios](#evaluation-scenarios)
17
+ - [Quality bar](#quality-bar)
17
18
 
18
19
  ## Core contract
19
20
 
File without changes
File without changes