livepilot 1.26.0 → 1.26.2

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 (191) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +1 -1
  3. package/installer/codex.js +87 -9
  4. package/livepilot/.Codex-plugin/plugin.json +8 -0
  5. package/livepilot/.claude-plugin/plugin.json +8 -0
  6. package/livepilot/.mcp.json +8 -0
  7. package/livepilot/agents/livepilot-producer/AGENT.md +314 -0
  8. package/livepilot/commands/arrange.md +47 -0
  9. package/livepilot/commands/beat.md +81 -0
  10. package/livepilot/commands/evaluate.md +51 -0
  11. package/livepilot/commands/memory.md +22 -0
  12. package/livepilot/commands/mix.md +47 -0
  13. package/livepilot/commands/perform.md +42 -0
  14. package/livepilot/commands/session.md +13 -0
  15. package/livepilot/commands/sounddesign.md +58 -0
  16. package/livepilot/rubrics/default_preset_check.md +82 -0
  17. package/livepilot/rubrics/layer_accumulation.md +79 -0
  18. package/livepilot/rubrics/layer_precision.md +79 -0
  19. package/livepilot/rubrics/modulation_presence.md +63 -0
  20. package/livepilot/rubrics/sound_design_depth.md +40 -0
  21. package/livepilot/skills/livepilot-arrangement/SKILL.md +164 -0
  22. package/livepilot/skills/livepilot-composition-engine/SKILL.md +151 -0
  23. package/livepilot/skills/livepilot-composition-engine/references/form-patterns.md +97 -0
  24. package/livepilot/skills/livepilot-composition-engine/references/transition-archetypes.md +102 -0
  25. package/livepilot/skills/livepilot-core/SKILL.md +261 -0
  26. package/livepilot/skills/livepilot-core/references/ableton-workflow-patterns.md +831 -0
  27. package/livepilot/skills/livepilot-core/references/affordances/_schema.md +160 -0
  28. package/livepilot/skills/livepilot-core/references/affordances/devices/auto-filter.yaml +133 -0
  29. package/livepilot/skills/livepilot-core/references/affordances/devices/chorus-ensemble.yaml +91 -0
  30. package/livepilot/skills/livepilot-core/references/affordances/devices/compressor.yaml +98 -0
  31. package/livepilot/skills/livepilot-core/references/affordances/devices/convolution-reverb.yaml +113 -0
  32. package/livepilot/skills/livepilot-core/references/affordances/devices/corpus.yaml +84 -0
  33. package/livepilot/skills/livepilot-core/references/affordances/devices/drift.yaml +105 -0
  34. package/livepilot/skills/livepilot-core/references/affordances/devices/echo.yaml +108 -0
  35. package/livepilot/skills/livepilot-core/references/affordances/devices/eq-eight.yaml +95 -0
  36. package/livepilot/skills/livepilot-core/references/affordances/devices/glue-compressor.yaml +88 -0
  37. package/livepilot/skills/livepilot-core/references/affordances/devices/granulator-iii.yaml +104 -0
  38. package/livepilot/skills/livepilot-core/references/affordances/devices/hybrid-reverb.yaml +83 -0
  39. package/livepilot/skills/livepilot-core/references/affordances/devices/operator.yaml +98 -0
  40. package/livepilot/skills/livepilot-core/references/affordances/devices/ping-pong-delay.yaml +104 -0
  41. package/livepilot/skills/livepilot-core/references/affordances/devices/poli.yaml +98 -0
  42. package/livepilot/skills/livepilot-core/references/affordances/devices/saturator.yaml +98 -0
  43. package/livepilot/skills/livepilot-core/references/affordances/devices/shifter.yaml +77 -0
  44. package/livepilot/skills/livepilot-core/references/affordances/devices/simpler.yaml +113 -0
  45. package/livepilot/skills/livepilot-core/references/affordances/devices/utility.yaml +95 -0
  46. package/livepilot/skills/livepilot-core/references/affordances/devices/vinyl-distortion.yaml +92 -0
  47. package/livepilot/skills/livepilot-core/references/affordances/devices/wavetable.yaml +98 -0
  48. package/livepilot/skills/livepilot-core/references/artist-vocabularies.md +389 -0
  49. package/livepilot/skills/livepilot-core/references/automation-atlas.md +272 -0
  50. package/livepilot/skills/livepilot-core/references/concepts/_schema.md +158 -0
  51. package/livepilot/skills/livepilot-core/references/concepts/artists/akufen.yaml +116 -0
  52. package/livepilot/skills/livepilot-core/references/concepts/artists/aphex-twin.yaml +133 -0
  53. package/livepilot/skills/livepilot-core/references/concepts/artists/arca-sophie.yaml +131 -0
  54. package/livepilot/skills/livepilot-core/references/concepts/artists/autechre.yaml +130 -0
  55. package/livepilot/skills/livepilot-core/references/concepts/artists/basic-channel.yaml +140 -0
  56. package/livepilot/skills/livepilot-core/references/concepts/artists/basinski.yaml +126 -0
  57. package/livepilot/skills/livepilot-core/references/concepts/artists/boards-of-canada.yaml +124 -0
  58. package/livepilot/skills/livepilot-core/references/concepts/artists/burial.yaml +127 -0
  59. package/livepilot/skills/livepilot-core/references/concepts/artists/com-truise-tycho.yaml +121 -0
  60. package/livepilot/skills/livepilot-core/references/concepts/artists/daft-punk.yaml +117 -0
  61. package/livepilot/skills/livepilot-core/references/concepts/artists/dj-premier-rza.yaml +119 -0
  62. package/livepilot/skills/livepilot-core/references/concepts/artists/gas.yaml +134 -0
  63. package/livepilot/skills/livepilot-core/references/concepts/artists/hawtin.yaml +127 -0
  64. package/livepilot/skills/livepilot-core/references/concepts/artists/isolee-luomo.yaml +130 -0
  65. package/livepilot/skills/livepilot-core/references/concepts/artists/j-dilla.yaml +133 -0
  66. package/livepilot/skills/livepilot-core/references/concepts/artists/jeff-mills.yaml +120 -0
  67. package/livepilot/skills/livepilot-core/references/concepts/artists/johannsson-richter.yaml +132 -0
  68. package/livepilot/skills/livepilot-core/references/concepts/artists/madlib.yaml +124 -0
  69. package/livepilot/skills/livepilot-core/references/concepts/artists/moodymann-theo-parrish.yaml +121 -0
  70. package/livepilot/skills/livepilot-core/references/concepts/artists/oneohtrix-point-never.yaml +126 -0
  71. package/livepilot/skills/livepilot-core/references/concepts/artists/photek-source-direct.yaml +120 -0
  72. package/livepilot/skills/livepilot-core/references/concepts/artists/rashad-spinn-traxman.yaml +122 -0
  73. package/livepilot/skills/livepilot-core/references/concepts/artists/robert-henke.yaml +113 -0
  74. package/livepilot/skills/livepilot-core/references/concepts/artists/shackleton.yaml +124 -0
  75. package/livepilot/skills/livepilot-core/references/concepts/artists/skream-mala.yaml +119 -0
  76. package/livepilot/skills/livepilot-core/references/concepts/artists/stars-of-the-lid.yaml +119 -0
  77. package/livepilot/skills/livepilot-core/references/concepts/artists/tim-hecker.yaml +122 -0
  78. package/livepilot/skills/livepilot-core/references/concepts/artists/villalobos.yaml +135 -0
  79. package/livepilot/skills/livepilot-core/references/concepts/genres/ambient.yaml +137 -0
  80. package/livepilot/skills/livepilot-core/references/concepts/genres/boom_bap.yaml +124 -0
  81. package/livepilot/skills/livepilot-core/references/concepts/genres/deep-minimal.yaml +130 -0
  82. package/livepilot/skills/livepilot-core/references/concepts/genres/deep_house.yaml +130 -0
  83. package/livepilot/skills/livepilot-core/references/concepts/genres/detroit_techno.yaml +116 -0
  84. package/livepilot/skills/livepilot-core/references/concepts/genres/disco.yaml +123 -0
  85. package/livepilot/skills/livepilot-core/references/concepts/genres/downtempo.yaml +129 -0
  86. package/livepilot/skills/livepilot-core/references/concepts/genres/drone.yaml +133 -0
  87. package/livepilot/skills/livepilot-core/references/concepts/genres/drum-and-bass.yaml +119 -0
  88. package/livepilot/skills/livepilot-core/references/concepts/genres/dub-techno.yaml +132 -0
  89. package/livepilot/skills/livepilot-core/references/concepts/genres/dub.yaml +129 -0
  90. package/livepilot/skills/livepilot-core/references/concepts/genres/dubstep.yaml +120 -0
  91. package/livepilot/skills/livepilot-core/references/concepts/genres/experimental.yaml +136 -0
  92. package/livepilot/skills/livepilot-core/references/concepts/genres/footwork.yaml +119 -0
  93. package/livepilot/skills/livepilot-core/references/concepts/genres/hip-hop.yaml +132 -0
  94. package/livepilot/skills/livepilot-core/references/concepts/genres/house.yaml +126 -0
  95. package/livepilot/skills/livepilot-core/references/concepts/genres/hyperpop.yaml +128 -0
  96. package/livepilot/skills/livepilot-core/references/concepts/genres/idm.yaml +134 -0
  97. package/livepilot/skills/livepilot-core/references/concepts/genres/lo_fi.yaml +129 -0
  98. package/livepilot/skills/livepilot-core/references/concepts/genres/microhouse.yaml +138 -0
  99. package/livepilot/skills/livepilot-core/references/concepts/genres/minimal-techno.yaml +116 -0
  100. package/livepilot/skills/livepilot-core/references/concepts/genres/modern-classical.yaml +123 -0
  101. package/livepilot/skills/livepilot-core/references/concepts/genres/soul.yaml +125 -0
  102. package/livepilot/skills/livepilot-core/references/concepts/genres/synthwave.yaml +123 -0
  103. package/livepilot/skills/livepilot-core/references/concepts/genres/techno.yaml +123 -0
  104. package/livepilot/skills/livepilot-core/references/concepts/genres/trap.yaml +120 -0
  105. package/livepilot/skills/livepilot-core/references/concepts/genres/uk-garage.yaml +121 -0
  106. package/livepilot/skills/livepilot-core/references/device-atlas/00-index.md +110 -0
  107. package/livepilot/skills/livepilot-core/references/device-atlas/distortion-and-character.md +687 -0
  108. package/livepilot/skills/livepilot-core/references/device-atlas/drums-and-percussion.md +753 -0
  109. package/livepilot/skills/livepilot-core/references/device-atlas/dynamics-and-punch.md +525 -0
  110. package/livepilot/skills/livepilot-core/references/device-atlas/eq-and-filtering.md +402 -0
  111. package/livepilot/skills/livepilot-core/references/device-atlas/midi-tools.md +963 -0
  112. package/livepilot/skills/livepilot-core/references/device-atlas/movement-and-modulation.md +874 -0
  113. package/livepilot/skills/livepilot-core/references/device-atlas/space-and-depth.md +571 -0
  114. package/livepilot/skills/livepilot-core/references/device-atlas/spectral-and-weird.md +714 -0
  115. package/livepilot/skills/livepilot-core/references/device-atlas/synths-native.md +953 -0
  116. package/livepilot/skills/livepilot-core/references/device-knowledge/00-index.md +34 -0
  117. package/livepilot/skills/livepilot-core/references/device-knowledge/automation-as-music.md +204 -0
  118. package/livepilot/skills/livepilot-core/references/device-knowledge/chains-genre.md +173 -0
  119. package/livepilot/skills/livepilot-core/references/device-knowledge/creative-thinking.md +211 -0
  120. package/livepilot/skills/livepilot-core/references/device-knowledge/effects-distortion.md +188 -0
  121. package/livepilot/skills/livepilot-core/references/device-knowledge/effects-space.md +162 -0
  122. package/livepilot/skills/livepilot-core/references/device-knowledge/effects-spectral.md +229 -0
  123. package/livepilot/skills/livepilot-core/references/device-knowledge/instruments-synths.md +243 -0
  124. package/livepilot/skills/livepilot-core/references/genre-vocabularies.md +382 -0
  125. package/livepilot/skills/livepilot-core/references/m4l-devices.md +352 -0
  126. package/livepilot/skills/livepilot-core/references/memory-guide.md +178 -0
  127. package/livepilot/skills/livepilot-core/references/midi-recipes.md +402 -0
  128. package/livepilot/skills/livepilot-core/references/mixing-patterns.md +578 -0
  129. package/livepilot/skills/livepilot-core/references/overview.md +300 -0
  130. package/livepilot/skills/livepilot-core/references/pack-knowledge.md +319 -0
  131. package/livepilot/skills/livepilot-core/references/sample-manipulation.md +724 -0
  132. package/livepilot/skills/livepilot-core/references/sound-design-deep.md +140 -0
  133. package/livepilot/skills/livepilot-core/references/sound-design.md +393 -0
  134. package/livepilot/skills/livepilot-corpus-builder/SKILL.md +379 -0
  135. package/livepilot/skills/livepilot-creative-director/SKILL.md +462 -0
  136. package/livepilot/skills/livepilot-creative-director/references/anti-repetition-rules.md +214 -0
  137. package/livepilot/skills/livepilot-creative-director/references/creative-brief-template.md +222 -0
  138. package/livepilot/skills/livepilot-creative-director/references/hybrid-compilation.md +185 -0
  139. package/livepilot/skills/livepilot-creative-director/references/move-family-diversity-rule.md +258 -0
  140. package/livepilot/skills/livepilot-creative-director/references/phase-6-execution.md +409 -0
  141. package/livepilot/skills/livepilot-creative-director/references/the-four-move-rule.md +192 -0
  142. package/livepilot/skills/livepilot-devices/SKILL.md +213 -0
  143. package/livepilot/skills/livepilot-devices/references/load_browser_item-uri-grammar.md +82 -0
  144. package/livepilot/skills/livepilot-evaluation/SKILL.md +195 -0
  145. package/livepilot/skills/livepilot-evaluation/references/capability-modes.md +176 -0
  146. package/livepilot/skills/livepilot-evaluation/references/evaluation-contracts.md +121 -0
  147. package/livepilot/skills/livepilot-evaluation/references/memory-promotion.md +110 -0
  148. package/livepilot/skills/livepilot-mix-engine/SKILL.md +144 -0
  149. package/livepilot/skills/livepilot-mix-engine/references/mix-critics.md +143 -0
  150. package/livepilot/skills/livepilot-mix-engine/references/mix-moves.md +105 -0
  151. package/livepilot/skills/livepilot-mixing/SKILL.md +164 -0
  152. package/livepilot/skills/livepilot-notes/SKILL.md +130 -0
  153. package/livepilot/skills/livepilot-performance-engine/SKILL.md +122 -0
  154. package/livepilot/skills/livepilot-performance-engine/references/performance-safety.md +98 -0
  155. package/livepilot/skills/livepilot-release/SKILL.md +151 -0
  156. package/livepilot/skills/livepilot-sample-engine/SKILL.md +117 -0
  157. package/livepilot/skills/livepilot-sample-engine/references/sample-critics.md +87 -0
  158. package/livepilot/skills/livepilot-sample-engine/references/sample-philosophy.md +51 -0
  159. package/livepilot/skills/livepilot-sample-engine/references/sample-techniques.md +131 -0
  160. package/livepilot/skills/livepilot-sound-design-engine/SKILL.md +247 -0
  161. package/livepilot/skills/livepilot-sound-design-engine/references/patch-model.md +119 -0
  162. package/livepilot/skills/livepilot-sound-design-engine/references/sound-design-critics.md +118 -0
  163. package/livepilot/skills/livepilot-wonder/SKILL.md +143 -0
  164. package/m4l_device/LivePilot_Analyzer.amxd +0 -0
  165. package/m4l_device/LivePilot_Elektron.amxd +0 -0
  166. package/m4l_device/LivePilot_Elektron.maxpat +758 -0
  167. package/m4l_device/livepilot_bridge.js +1 -1
  168. package/m4l_device/livepilot_elektron_bridge.js +82 -0
  169. package/mcp_server/__init__.py +1 -1
  170. package/mcp_server/composer/develop/apply.py +1 -1
  171. package/mcp_server/composer/full/apply.py +32 -6
  172. package/mcp_server/composer/full/brief_builder.py +9 -0
  173. package/mcp_server/evaluation/feature_extractors.py +152 -8
  174. package/mcp_server/m4l_bridge.py +5 -0
  175. package/mcp_server/mix_engine/state_builder.py +19 -2
  176. package/mcp_server/mix_engine/tools.py +22 -0
  177. package/mcp_server/runtime/execution_router.py +6 -0
  178. package/mcp_server/runtime/mcp_dispatch.py +18 -0
  179. package/mcp_server/runtime/remote_commands.py +2 -0
  180. package/mcp_server/server.py +11 -7
  181. package/mcp_server/sound_design/tools.py +33 -0
  182. package/mcp_server/tools/_agent_os_engine/evaluation.py +7 -44
  183. package/mcp_server/tools/_agent_os_engine/models.py +2 -1
  184. package/mcp_server/tools/_conductor.py +5 -2
  185. package/mcp_server/tools/_evaluation_contracts.py +1 -1
  186. package/mcp_server/tools/_snapshot_normalizer.py +32 -3
  187. package/package.json +20 -5
  188. package/remote_script/LivePilot/__init__.py +1 -1
  189. package/remote_script/LivePilot/server.py +63 -2
  190. package/requirements.txt +3 -3
  191. package/server.json +3 -3
@@ -0,0 +1,462 @@
1
+ ---
2
+ name: livepilot-creative-director
3
+ description: >
4
+ Use when the user makes an open-ended creative production request —
5
+ "make it feel like X", "sound like X", "develop this", "mutate",
6
+ "more interesting", "less generic", "take it somewhere", structure
7
+ decisions without exact specs, or any reference/style ask. Also use
8
+ when route_request returns workflow_mode="creative_search". NOT for
9
+ exact-parameter setting, quantize/mute ops, verification-only turns,
10
+ mixing to explicit targets, or performance-safe contexts.
11
+ ---
12
+
13
+ # Creative Director — Divergence-First Routing
14
+
15
+ Routes creative intent through MANDATORY divergence before any commit.
16
+ Three plans with distinct `move.family` are the minimum output. Critics
17
+ defer until after selection. No new tools — this skill enforces a
18
+ discipline on top of existing `experiment`, `wonder_mode`, `preview_studio`,
19
+ `semantic_moves`, `evaluation`, and `memory` machinery.
20
+
21
+ ## Atlas-first reflex (v1.23.x+, MANDATORY before any creative move)
22
+
23
+ Before producing ANY creative response, query the user's atlas overlays. The corpus contains 337 entries across 3 namespaces, plus 3,917 parameter-level JSON sidecars — far richer than anything inferable from training data alone.
24
+
25
+ **Query order:**
26
+
27
+ 1. **`extension_atlas_search(namespace="packs", query=<intent>)`** — pack identity, signature workflows, hidden gems, anti-patterns, notable presets with macro deep-data, demo projects
28
+ 2. **`extension_atlas_search(namespace="packs", query=<intent>, entity_type="cross_pack_workflow")`** — multi-pack signature recipes (15 entries: dub-techno spectral drone bed, BoC decayed pad, Mica Levi orchestral dread, etc.)
29
+ 3. **`extension_atlas_search(namespace="m4l-devices", query=<sonic descriptor>)`** — M4L instrument/effect/midi-effect device catalog (155 entries)
30
+ 4. **`atlas_search(...)`** — bundled atlas (Core Library, fallback)
31
+
32
+ **Multi-grain traversal:**
33
+
34
+ When an aesthetic-level query lands a pack-level result, AUTO-DRILL: pack → its `notable_presets` → those preset macro states → load via `load_browser_item`. Don't stop at "I found a relevant pack" — drill to the actual preset/parameter level the user can immediately use.
35
+
36
+ ```python
37
+ # Example — agent received "make it sound like Henke / Monolake dub-techno"
38
+ hit = extension_atlas_search(namespace="packs", query="henke monolake dub-techno spectral")
39
+ # → pitchloop89 + dub_techno_spectral_drone_bed workflow + granulator_iii
40
+
41
+ workflow = extension_atlas_get("packs", "dub_techno_spectral_drone_bed")
42
+ # → reveals signal_flow: HDG → PitchLoop89 cross-feedback → Convolution Reverb
43
+
44
+ drone_lab = extension_atlas_get("packs", "drone_lab")
45
+ # → notable_presets reveals Razor Wire Drone with macros Filter Control=108, Movement=53...
46
+
47
+ # Now propose the move with concrete preset names + macro values, not vague descriptions
48
+ ```
49
+
50
+ **When the user mentions a producer or pack by name:**
51
+
52
+ - "BoC sublime pad" → atlas hit: `boc_decayed_pad` cross-pack-workflow + `inspired_by_nature` pack
53
+ - "Henke spectral chain" → atlas hit: `pitchloop89` + `granulator_iii` + 2 Henke cross-pack workflows
54
+ - "Mica Levi orchestral dread" → atlas hit: `mica_levi_orchestral_dread` workflow + the orchestral suite packs
55
+ - "Drone Lab" → atlas hit: `drone_lab` pack + 4 Drone Lab demo_project entries
56
+
57
+ The atlas knows the user's installed library at parameter depth. **Producer-anchor queries land specific moves, not vague descriptions.**
58
+
59
+ **Anti-pattern surfacing:**
60
+
61
+ Every pack entry has an `anti_patterns` body field listing "don't reach for this when X." Surface the relevant anti-pattern when proposing a move so the user knows the move's domain. (E.g. "Drone Lab is sustain-only — don't use for percussive content.")
62
+
63
+ **For deliberately rule-breaking creative requests** ("eclectic", "ignore the limits", "weird combo", "mix incompatible aesthetics"): stay in this skill and enter **Eclectic Mode**. Anti-patterns become prompt tension rather than guardrails: preserve hard safety rules and protected user constraints, but deliberately pair one normally-avoided element with one identity-preserving element. Do not route to a private or missing skill.
64
+
65
+ ## Why This Exists
66
+
67
+ The agent repeats patterns when divergence is optional and convergence
68
+ is default. This skill inverts the defaults for creative intent:
69
+
70
+ - Wonder / experiment branching becomes REQUIRED, not rescue-only
71
+ - `get_anti_preferences`, `get_action_ledger_summary(limit=10)`, and `get_last_move` are READ before generating
72
+ - Three plans must differ by `move.family` (not by parameter values)
73
+ - Mix / sound-design critics wait until AFTER selection
74
+ - Concept packets (`artist-vocabularies.md` / `genre-vocabularies.md`)
75
+ are consulted when a reference is named
76
+
77
+ ## When to Trigger
78
+
79
+ Creative intent symptoms:
80
+
81
+ - Reference / style asks: "like Villalobos", "Basic Channel feel",
82
+ "make it more dub-techno", "Dilla swing"
83
+ - Transformation asks: "develop", "mutate", "evolve", "take it somewhere",
84
+ "surprise me", "make it magical"
85
+ - Quality asks without parameters: "more interesting", "less generic",
86
+ "needs more character", "feels flat"
87
+ - Structure asks without specs: "add a breakdown", "needs a bridge",
88
+ "make the arrangement breathe"
89
+ - Open questions: "what would you do?", "any ideas?", "I don't know what I want"
90
+ - Routing: `route_request` returns `workflow_mode="creative_search"`
91
+
92
+ ## When NOT to Trigger
93
+
94
+ - Exact parameter ops: "set track 3 volume to -6 dB", "pan to +0.25"
95
+ - Narrow deterministic edits: "quantize this clip", "mute track 2",
96
+ "transpose up an octave"
97
+ - Pure verification / diagnostics: "what's loaded on track 4?",
98
+ "analyze my mix"
99
+ - Mixing to explicit targets: "hit -14 LUFS integrated",
100
+ "make the kick peak at -8 dB"
101
+ - Performance-safe mode (unless user explicitly overrides)
102
+
103
+ Decision rule: **"Is there exactly one correct answer?"** Yes → bypass
104
+ this skill. No → divergence path.
105
+
106
+ ## The Contract
107
+
108
+ When triggered, these phases are REQUIRED in order. Skip none.
109
+
110
+ ## Character-First Bias
111
+
112
+ For open-ended quality requests, treat timbre and spectral character as the main creative surface. Do not let the `mix` family win just because words like punch, clean, warm, dark, bright, or wide could be solved by volume/pan/send changes. Prefer `sound_design`, `device_creation`, `sample`, `arrangement`, or `transition` when analyzer evidence suggests a source, instrument, parameter, modulation, envelope, or structural decision would create more musical value.
113
+
114
+ The `mix` family is dominant only when the user asks for balance, loudness, headroom, masking, stereo translation, send levels, or an explicit mix pass. Otherwise use mix analysis as safety/evidence and keep it out of the main creative slot.
115
+
116
+ ### Phase 1 — Ground
117
+
118
+ Read in parallel (all are fast). All of these are REQUIRED, not
119
+ advisory — skipping them is how pattern-repetition survives:
120
+
121
+ - **`ensure_analyzer_on_master` (v1.20.3)** — idempotent pre-flight. Call this FIRST (before or alongside `get_session_info`), every turn, whether the project looks empty or not. The tool short-circuits when the analyzer is already loaded, so it's free to call repeatedly. Skipping it is how the v1.20.1 live-test campaign produced basic mixes — the analyzer-gated moves (`tighten_low_end`, `sculpt_midrange`, `balance_stereo_image`, etc.) degrade silently when there's no master spectrum to read. If the tool returns `install_required`, call `install_m4l_device(source_path="<repo>/m4l_device/LivePilot_Analyzer.amxd")` and retry. If it returns `warning: "not LAST on master"`, surface that to the user — the invariant is theirs to repair in Ableton's GUI.
122
+ - `get_session_info` · `get_capability_state`
123
+ - `memory_recall` (taste + recent context)
124
+ - `get_anti_preferences` — what the user has rejected before (HARD filter)
125
+ - `get_action_ledger_summary(limit=10)` — recent committed moves (repeat detection, see `references/anti-repetition-rules.md` for the recency threshold table). **v1.20 correction**: previous docs pointed at `memory_list`, which actually reads the persistent technique library (opt-in `memory_learn` writes) — a DIFFERENT store. The action ledger is the authoritative source; `apply_semantic_move` in explore mode populates it automatically.
126
+ - `get_last_move` — the single most recent committed move; populate the brief's `last_move_target` field so Phase 3 cannot repeat it
127
+ - `get_project_brain_summary` (or `build_project_brain` if absent) — track identity, accepted novelty band
128
+ - Analyzer character read when available: `get_master_spectrum`, `get_spectral_shape`, `get_onsets`, `get_novelty`, and `get_momentary_loudness` for evidence about brightness, flatness, motion, transient shape, and loudness safety. Use these to bias Phase 3 toward instrument/device/parameter decisions, not low-value level tweaks.
129
+ - `explain_song_identity` when the project has one
130
+ - `detect_stuckness` — cheap; its confidence drives escalation decisions (see §Anti-Repetition Protocol below)
131
+ - **Concept packet load (HARD filter when present):** if the user named an artist or genre, or if `project_brain` has a genre identity, retrieve the structured YAML packet from `livepilot-core/references/concepts/artists/<slug>.yaml` or `livepilot-core/references/concepts/genres/<slug>.yaml`. Fall back to the narrative .md entry only if no matching YAML exists. The packet's `avoid` list is a HARD filter on Phase 3 candidates. The packet's `reach_for` lists seed the candidate device pool. The packet's `key_techniques` list resolves to atlas `signature_techniques` or `sample-techniques.md` / `sound-design-deep.md` entries. If NO reference is named and `project_brain` has no genre identity, skip packet loading — do not infer. See `livepilot-core/references/concepts/_schema.md` for the full packet structure and loading rules.
132
+
133
+ - **Hybrid references — call `compile_hybrid_brief` (v1.19+).** When the user names TWO OR MORE references (e.g., "Basic Channel meets Dilla swing", "Villalobos but sparse like Gas", "Madlib chop with Photek precision"), DO NOT try to merge the packets via prose reasoning. Call `compile_hybrid_brief(packet_ids=["basic-channel", "j-dilla"])` to get a merged brief that applies the explicit UNION / INTERSECTION / MAX / weighted-average rules documented in `references/hybrid-compilation.md`. The merged brief's `avoid` list is the HARD filter (superset of both sources). Check the returned `warnings` list — a non-empty entry means the packets had an unresolvable conflict (e.g., disjoint tempo ranges) that must be surfaced to the user, not silently averaged away. If the returned brief lands in your Phase 2 brief, cite both source packets in the `identity` line and carry any `warnings` into an "ambiguity" sub-line.
134
+
135
+ ### Phase 2 — Compile the Creative Brief
136
+
137
+ **Timing:** after Phase 1 parallel reads complete, before any Phase 3
138
+ tool call. The brief appears ONCE per creative turn, inline in the
139
+ assistant message, at the top of the response body.
140
+
141
+ Emit an inline YAML block (not a tool call) with: identity, reference
142
+ anchors, protected qualities, anti-patterns, novelty budget, target
143
+ dimensions, `last_move_target` (from Phase 1 `get_last_move`),
144
+ locked dimensions, recommended skill chain.
145
+
146
+ **On `locked_dimensions` when user is silent:** the DEFAULT is to
147
+ leave `locked_dimensions: []` (nothing locked). Silence = permission
148
+ for rhythmic / timbral / spatial.
149
+
150
+ For **structural** specifically (section-level arrangement changes —
151
+ add/remove/reshape sections): silence = permission **with disclosure
152
+ conditional on the plan set**. The rule is:
153
+
154
+ - If the Phase 3 plan set **includes** a plan with dominant dimension
155
+ `structural` → flag the intent in the brief's `identity` line so the
156
+ user sees the structural change is in scope before preview.
157
+ - If the Phase 3 plan set **does not include** a structural plan → no
158
+ disclosure needed. Adding one when nothing structural is happening
159
+ is ceremonial noise that trains the user to ignore disclosures.
160
+
161
+ In practice: compile Phase 3 first, then decide whether the identity
162
+ line needs the disclosure. Structural changes are hard to reverse,
163
+ which is why disclosure exists — but only when they're actually going
164
+ to happen.
165
+
166
+ See `references/creative-brief-template.md` for the schema and filled
167
+ examples.
168
+
169
+ ### Phase 3 — Generate three plans with distinct `move.family`
170
+
171
+ The SEVEN canonical families (from `semantic_moves/` + `sample_engine/moves.py`):
172
+
173
+ ```
174
+ mix · arrangement · transition · sound_design · performance · device_creation · sample
175
+ ```
176
+
177
+ Each plan's dominant move MUST come from a different family. Two plans
178
+ in the same family is fabricated distinctness — see Honesty Rule below.
179
+
180
+ The `sample` family lives in `mcp_server/sample_engine/moves.py` (not
181
+ `semantic_moves/`) but registers into the same move registry.
182
+ `list_semantic_moves(domain="sample")` enumerates: `sample_chop_rhythm`,
183
+ `sample_texture_layer`, `sample_vocal_ghost`, `sample_break_layer`,
184
+ `sample_resample_destroy`, `sample_one_shot_accent`.
185
+
186
+ **Family vs. dimension.** Families are code-level (seven values from the
187
+ registry). Dimensions are musical (four values: structural / rhythmic /
188
+ timbral / spatial). A plan has exactly one dominant family AND one
189
+ dominant dimension — they are orthogonal. A rhythmic plan's family is
190
+ typically `arrangement` (clip-pattern edit) or `sound_design` (per-hit
191
+ feel); tag the seed with `dimension_hint: "rhythmic"` so the dimension
192
+ is explicit. See `references/move-family-diversity-rule.md` §"Family
193
+ vs. dimension" for the full axis separation.
194
+
195
+ Use `create_experiment(seeds=[...])` when plans have clear compiled
196
+ steps. Use `enter_wonder_mode` when the problem is diffuse. Use
197
+ `propose_composer_branches` for prompt-driven ideation.
198
+
199
+ See `references/move-family-diversity-rule.md` for edge cases (fewer
200
+ than 3 plausible families, user pre-locked a dimension).
201
+
202
+ ### Phase 4 — Cover the four dimensions
203
+
204
+ A creative pass should distribute the three plans across structural +
205
+ rhythmic + timbral + spatial. See `references/the-four-move-rule.md`
206
+ for the family-to-dimension map.
207
+
208
+ If the user pre-locked a dimension ("don't touch the arrangement"),
209
+ drop that dimension and widen coverage across the remaining three.
210
+
211
+ ### Phase 5 — Preview or rank
212
+
213
+ Audible → `create_preview_set` + `render_preview_variant` for each plan,
214
+ then `compare_preview_variants`.
215
+
216
+ Non-audible or fast → `rank_by_taste_and_identity`.
217
+
218
+ Never silently skip preview / ranking. Either run it or document why.
219
+
220
+ ### Phase 6 — Select and execute
221
+
222
+ User picks, OR taste rank + identity fit pick. Route execution through
223
+ the right domain / engine skill — DO NOT execute arrangement / sound-design
224
+ changes directly from this skill.
225
+
226
+ - Structural changes → `livepilot-arrangement`
227
+ - Timbral changes → `livepilot-sound-design-engine`
228
+ - Rhythmic changes → `livepilot-notes`
229
+ - Harmonic changes → `livepilot-composition-engine`
230
+
231
+ **Default execution surface (v1.20+): `apply_semantic_move` or
232
+ `commit_experiment`.** `apply_semantic_move` in explore mode
233
+ populates the action ledger automatically — no manual
234
+ `add_session_memory(move_executed)` required. Anti-repetition
235
+ (Phase 3) reads the ledger via `get_last_move` and
236
+ `get_action_ledger_summary`; as long as the dispatched plan used
237
+ `apply_semantic_move` or `commit_experiment`, the family/target
238
+ signature is captured for the next turn's recency check.
239
+
240
+ Pick the right one:
241
+
242
+ - `apply_semantic_move(move_id, mode, args)` — when a single semantic
243
+ move matches the plan. `args` carries the user's seed targets
244
+ (return_track_index, device_chain, notes, etc. — see
245
+ `references/phase-6-execution.md` for each move's contract).
246
+ - `commit_experiment(winner)` — when divergence produced multiple
247
+ candidates and the user / taste-ranker picked one.
248
+
249
+ **v1.20 Phase 6 decision table.** Look up the pattern, use the listed
250
+ move. "ESCAPE HATCH" means no semantic move yet covers this pattern —
251
+ drop to raw tools under the policy below.
252
+
253
+ | Pattern | Move | Notes |
254
+ |---|---|---|
255
+ | Load device on track | `find_and_load_device` + `add_*_device_*` family | Pre-v1.20, unchanged |
256
+ | Load device chain on a RETURN | `build_send_chain` | NEW — v1.20 |
257
+ | Set multiple params on a device | `configure_device` | NEW — replaces batch `set_device_parameter` |
258
+ | Delete a device (with audit reason) | `remove_device` | NEW — reason auto-logged to session memory |
259
+ | Load a chord-source MIDI clip | `load_chord_source` | NEW — creates + names + voices in one move |
260
+ | Add one pad to a Drum Rack | `create_drum_rack_pad` | NEW — Dilla-style kit building |
261
+ | Set send levels across tracks | `configure_send_architecture` | NEW — one move, N sends |
262
+ | Rewire track output routing | `set_track_routing` | NEW — e.g., "Sends Only" bus |
263
+ | Configure a groove on clips | `configure_groove` | NEW — assign + tune timing_amount |
264
+ | Set scene metadata (name/color/tempo) | `set_scene_metadata` | NEW — conditional per-field |
265
+ | Rename / color a track | `set_track_metadata` | NEW — bundled rename + color |
266
+ | Any other pattern | **ESCAPE HATCH (see policy below)** | v1.21+ closes these as patterns accumulate |
267
+
268
+ Full contract (seed_args shape, emitted step sequence, verification
269
+ reads) for every NEW move: `references/phase-6-execution.md`.
270
+
271
+ **Affordance lookup:** before executing any plan that LOADS a device,
272
+ check if the device has an affordance YAML in
273
+ `livepilot-core/references/affordances/devices/<slug>.yaml`. Use it
274
+ to pick parameter ranges (subtle / moderate / aggressive) that match
275
+ the brief's `novelty_budget`, to identify the right `pairings` chain,
276
+ and to queue the required `remeasure` diagnostics for Phase 7. See
277
+ `livepilot-core/references/affordances/_schema.md` for the packet
278
+ structure. The affordance's resolved parameter dict is the ergonomic
279
+ input to `configure_device` (via `apply_semantic_move("configure_device", args={"param_overrides": ...})`).
280
+
281
+ **Brief compliance check (v1.18.3, still required under v1.20):**
282
+ before any tool call that could plausibly violate the brief's
283
+ `anti_patterns` or `locked_dimensions`, call
284
+ `check_brief_compliance(brief, tool_name, tool_args)`. This fires
285
+ even when you dispatch via `apply_semantic_move` — the compliance
286
+ check inspects each compiled plan step's per-tool signature against
287
+ the brief. A compiled plan CAN violate the brief (e.g., a
288
+ `configure_device` preset that reaches for "bright top-end" when the
289
+ brief forbids it). Check each step.
290
+
291
+ The tool returns `{"ok": bool, "violations": [...]}` — best-effort
292
+ keyword heuristic, NOT semantic understanding. Use it especially for:
293
+
294
+ - `set_device_parameter` / `batch_set_parameters` calls on EQ /
295
+ saturation / filter parameters (catches "bright top-end",
296
+ "aggressive transient" style anti_patterns)
297
+ - `load_browser_item` / `find_and_load_device` for new devices
298
+ (check against `avoid` device lists in concept packets)
299
+ - `create_scene` / `set_scene_*` / `set_scene_metadata` /
300
+ `refresh_repeated_section` (catches `locked_dimensions:
301
+ [structural]` violations)
302
+ - `add_notes` / `modify_notes` / `quantize_clip` / `assign_clip_groove`
303
+ when `locked_dimensions: [rhythmic]` is set
304
+ - `set_track_routing` (changing a routing to "Sends Only" can silence
305
+ a track — treat as structural under locked_dimensions)
306
+
307
+ When a violation fires:
308
+ 1. **Do NOT auto-proceed.** Surface the violation to the user with
309
+ the reason + suggestion from the check response.
310
+ 2. Offer three paths: (a) adjust the call to avoid the pattern,
311
+ (b) user explicitly overrides this anti_pattern for this turn,
312
+ (c) pick a different tool/plan.
313
+ 3. Record the user's choice via `add_session_memory(category="override")`
314
+ so future anti-preference writes know this was an explicit decision.
315
+
316
+ The check is STATELESS — you pass the brief each time. Empty brief
317
+ (no anti_patterns, no locked_dimensions) always returns ok=True.
318
+
319
+ **Escape hatch policy (v1.20).** When no semantic move in the
320
+ decision table covers the pattern, raw tools remain permitted — BUT
321
+ only with the following mandatory logging contract. The hatch exists
322
+ because v1.20 ships a phased cutover, not a hard cutover; v1.21+
323
+ closes patterns as they accumulate.
324
+
325
+ Using the hatch requires ALL THREE, in this order:
326
+
327
+ 1. The raw tool call itself (e.g., `set_device_parameter(...)`).
328
+ 2. `add_session_memory(category="move_executed", content="...")` —
329
+ one-line ledger entry covering family + target + brief identity.
330
+ Without this, the next creative turn's anti-repetition read goes
331
+ blind (`get_last_move` / `get_action_ledger_summary` see nothing).
332
+ 3. `add_session_memory(category="tech_debt", content="no semantic_move
333
+ for <pattern>", ...)` — tracking log that says "a semantic move
334
+ should exist for this." The content should name the pattern
335
+ precisely enough that a future commit can add the move.
336
+
337
+ **Both category="move_executed" AND category="tech_debt" are
338
+ required** — they serve different consumers:
339
+
340
+ - `move_executed` is consumed by anti-repetition (recency table,
341
+ Phase 3 hard-bias rule).
342
+ - `tech_debt` is consumed by release planning — v1.21 scope is driven
343
+ by the tech_debt log's contents. If patterns accumulate with
344
+ identical phrasing, they graduate to semantic moves in the next
345
+ minor release.
346
+
347
+ After the hatch write, propose adding the missing semantic move in
348
+ a follow-up turn. Do NOT silently continue using the hatch — that's
349
+ how the cutover stalls.
350
+
351
+ **Default-preference rule.** In doubt between `apply_semantic_move`
352
+ and the escape hatch: default to `apply_semantic_move`. Skip to the
353
+ hatch ONLY if the decision table has no row for the pattern AND
354
+ `list_semantic_moves(domain="<family>")` confirms no existing move
355
+ matches. The `apply_semantic_move` + `commit_experiment` pair is the
356
+ production-line; the hatch is an explicitly-logged branch, not a
357
+ shortcut.
358
+
359
+ **State-inference fallback is DEPRECATED** (see
360
+ `references/anti-repetition-rules.md` §v1.20 update). Pre-v1.20, the
361
+ director used "scan loaded devices + non-default mixer values to
362
+ guess recent moves" when the recency read came back empty. With
363
+ `apply_semantic_move` as default, that heuristic routes around the
364
+ real ledger and can double-count. Keep it documented ONLY for the
365
+ escape-hatch case where both memory entries were accidentally dropped.
366
+
367
+ ### Phase 7 — Evaluate (critics fire HERE, not earlier)
368
+
369
+ `evaluate_move` with artistic dimensions (`style_fit`, `distinctiveness`,
370
+ `motif_coherence`, `section_contrast`, `restraint`) in addition to the
371
+ technical goal vector.
372
+
373
+ If the evaluation fails protected qualities → `undo` and return to
374
+ Phase 3 with the failure recorded.
375
+
376
+ ### Phase 8 — Record
377
+
378
+ `memory_learn` with a verdict:
379
+
380
+ - `safe_win` — low novelty, confirmed
381
+ - `bold_win` — high novelty, kept by user
382
+ - `interesting_failure` — novel, kept for study, not reapplied
383
+ - `identity_break` — violated protected qualities
384
+ - `generic_fallback` — collapsed to a pattern; flag for anti-preference
385
+
386
+ On undo or explicit rejection → `record_anti_preference` with the
387
+ family + context.
388
+
389
+ ## Anti-Repetition Protocol
390
+
391
+ Before Phase 3 generation, compute the family distribution over the
392
+ last 10 kept moves (`get_action_ledger_summary(limit=10)`). Apply the recency
393
+ threshold table from `references/anti-repetition-rules.md`:
394
+
395
+ | Recency count for one family | Rule |
396
+ |---|---|
397
+ | 0–2 of 10 | No penalty |
398
+ | 3–4 of 10 | ALLOWED as a plan's dominant family, but only as the **least-weighted** of the three |
399
+ | ≥ 5 of 10 | EXCLUDED from all three dominant slots (fully hard-biased away) |
400
+
401
+ **Borderline stuckness.** After computing the recency penalty, run
402
+ `detect_stuckness`. Its confidence governs which divergence path runs:
403
+
404
+ | Confidence | Path |
405
+ |---|---|
406
+ | `< 0.4` | Standard divergence (director continues) |
407
+ | `0.4 ≤ c < 0.5` | Borderline — stay in standard divergence BUT explicitly surface the option to the user: *"I'm staying in divergence mode; say the word and I'll switch to Wonder rescue."* Do NOT silently choose. |
408
+ | `≥ 0.5` | Escalate to `livepilot-wonder` rescue path (not director standard divergence) |
409
+
410
+ Full rules: `references/anti-repetition-rules.md`.
411
+
412
+ ## Honesty Rules (inherited from Wonder Mode)
413
+
414
+ - Never describe an analytical-only variant as previewable
415
+ - Never fabricate distinctness by relabeling the same move
416
+ - Fewer than 3 variants is ACCEPTABLE only when, after honestly widening
417
+ across families AND checking concept packets, fewer real options exist
418
+ - On first-pass creative-director calls, actively widen BEFORE accepting
419
+ a smaller variant set (stuck-rescue is a separate context)
420
+
421
+ ## Red Flags — STOP If You Catch Yourself Thinking
422
+
423
+ | Rationalization | Reality |
424
+ |---|---|
425
+ | "The user just wants one thing fixed" | Did they name exact parameters? If no, that's creative intent. |
426
+ | "I'll skip the brief, I know what they mean" | The brief pins protected qualities. Skipping them = pattern repetition. |
427
+ | "Three variants are overkill for this" | That's the collapse-to-mode instinct. Generate them anyway, then honestly cull. |
428
+ | "I'll run `analyze_mix` first to see what's needed" | Critics before divergence pre-converge the answer. Defer. |
429
+ | "The first plan looks good enough" | That's the most-likely completion, by definition. Generate two more. |
430
+ | "Fewer than 3 is fine per Wonder's honesty rule" | True for stuck-rescue. On first-pass, widen FIRST across families, fall back only after. |
431
+ | "Reading anti-preferences is slow" | It's an instant tool. The alternative is generating a rejected pattern. |
432
+ | **User said "quickly" / "just do it" / "don't overthink it" / "I'm in a rush"** | **User pressure framing. The brief is STILL mandatory. Compress PROSE (fewer words around each plan), not STRUCTURE (never skip the brief, Phase 1 reads, 3-family diversity, or preview). Phase 1 reads are instant — "quickly" buys nothing by skipping them.** |
433
+ | "User said 'a bit more like X' so novelty should be low" | Correct intuition, but the brief still compiles. "A bit more like X" maps to `novelty_budget ≈ 0.45` (see creative-brief-template). |
434
+ | "Two plans that both add sends feel distinct because the sends are different" | Both are `mix` family with spatial dimension. That is not distinctness. Regenerate from a different family. |
435
+ | "The rhythmic plan has to use a non-arrangement family somehow" | No — rhythmic is a DIMENSION, not a family. Rhythmic plans honestly tag `family=arrangement` (clip pattern) or `family=sound_design` (per-hit feel) with `dimension_hint="rhythmic"`. Not a fudge. |
436
+
437
+ ## What This Skill Does NOT Do
438
+
439
+ - Does not replace `livepilot-wonder`, `livepilot-arrangement`, or any
440
+ engine skill — it ROUTES to them
441
+ - Does not execute arrangement / sound-design / mix tool calls directly
442
+ - Does not override user-specified locks ("don't touch X" wins every time)
443
+ - Does not fire when `livepilot-performance-engine` is active (safety wins)
444
+ - Does not replace `livepilot-core` — all Golden Rules still apply
445
+
446
+ ## Relationship to Other Skills
447
+
448
+ | Situation | Route to |
449
+ |---|---|
450
+ | `detect_stuckness > 0.5` or user says "I'm stuck" | `livepilot-wonder` (rescue path) |
451
+ | Exact mix target ("-14 LUFS") | `livepilot-mix-engine` minimal-fix mode |
452
+ | Executing a chosen plan (structural) | `livepilot-arrangement` |
453
+ | Executing a chosen plan (timbral) | `livepilot-sound-design-engine` |
454
+ | Executing a chosen plan (rhythmic / melodic) | `livepilot-notes` + `livepilot-composition-engine` |
455
+ | Post-commit evaluation | `livepilot-evaluation` with artistic dimensions |
456
+
457
+ ## References
458
+
459
+ - `references/creative-brief-template.md` — YAML schema + filled examples
460
+ - `references/move-family-diversity-rule.md` — how "distinct" is enforced
461
+ - `references/anti-repetition-rules.md` — pre-generation reads + bias rules
462
+ - `references/the-four-move-rule.md` — structural / rhythmic / timbral / spatial coverage