aether-colony 5.3.2 → 5.4.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 (281) hide show
  1. package/.aether/aether-utils.sh +181 -5
  2. package/.aether/commands/archaeology.yaml +3 -3
  3. package/.aether/commands/build.yaml +80 -45
  4. package/.aether/commands/chaos.yaml +7 -7
  5. package/.aether/commands/colonize.yaml +17 -17
  6. package/.aether/commands/continue.yaml +40 -40
  7. package/.aether/commands/council.yaml +6 -6
  8. package/.aether/commands/data-clean.yaml +3 -3
  9. package/.aether/commands/dream.yaml +2 -2
  10. package/.aether/commands/entomb.yaml +12 -12
  11. package/.aether/commands/export-signals.yaml +2 -2
  12. package/.aether/commands/feedback.yaml +6 -6
  13. package/.aether/commands/flag.yaml +2 -2
  14. package/.aether/commands/flags.yaml +4 -4
  15. package/.aether/commands/focus.yaml +6 -6
  16. package/.aether/commands/help.yaml +1 -1
  17. package/.aether/commands/history.yaml +1 -1
  18. package/.aether/commands/import-signals.yaml +2 -2
  19. package/.aether/commands/init.yaml +44 -27
  20. package/.aether/commands/insert-phase.yaml +1 -1
  21. package/.aether/commands/interpret.yaml +2 -2
  22. package/.aether/commands/lay-eggs.yaml +3 -3
  23. package/.aether/commands/maturity.yaml +2 -2
  24. package/.aether/commands/memory-details.yaml +1 -1
  25. package/.aether/commands/migrate-state.yaml +1 -1
  26. package/.aether/commands/oracle.yaml +147 -82
  27. package/.aether/commands/organize.yaml +5 -5
  28. package/.aether/commands/patrol.yaml +8 -8
  29. package/.aether/commands/pause-colony.yaml +7 -7
  30. package/.aether/commands/phase.yaml +1 -1
  31. package/.aether/commands/pheromones.yaml +1 -1
  32. package/.aether/commands/plan.yaml +14 -14
  33. package/.aether/commands/quick.yaml +4 -4
  34. package/.aether/commands/redirect.yaml +6 -6
  35. package/.aether/commands/resume-colony.yaml +9 -9
  36. package/.aether/commands/resume.yaml +5 -38
  37. package/.aether/commands/run.yaml +10 -10
  38. package/.aether/commands/seal.yaml +33 -33
  39. package/.aether/commands/skill-create.yaml +4 -4
  40. package/.aether/commands/status.yaml +14 -14
  41. package/.aether/commands/swarm.yaml +14 -14
  42. package/.aether/commands/tunnels.yaml +7 -7
  43. package/.aether/commands/update.yaml +1 -1
  44. package/.aether/commands/verify-castes.yaml +3 -3
  45. package/.aether/commands/watch.yaml +15 -15
  46. package/.aether/docs/command-playbooks/build-complete.md +48 -15
  47. package/.aether/docs/command-playbooks/build-context.md +11 -11
  48. package/.aether/docs/command-playbooks/build-full.md +76 -76
  49. package/.aether/docs/command-playbooks/build-prep.md +10 -10
  50. package/.aether/docs/command-playbooks/build-verify.md +27 -27
  51. package/.aether/docs/command-playbooks/build-wave.md +38 -38
  52. package/.aether/docs/command-playbooks/continue-advance.md +60 -27
  53. package/.aether/docs/command-playbooks/continue-finalize.md +25 -11
  54. package/.aether/docs/command-playbooks/continue-full.md +60 -46
  55. package/.aether/docs/command-playbooks/continue-gates.md +18 -18
  56. package/.aether/docs/command-playbooks/continue-verify.md +10 -10
  57. package/.aether/docs/source-of-truth-map.md +10 -10
  58. package/.aether/docs/structural-learning-stack.md +283 -0
  59. package/.aether/templates/colony-state-template.json +1 -0
  60. package/.aether/utils/consolidation-seal.sh +196 -0
  61. package/.aether/utils/consolidation.sh +127 -0
  62. package/.aether/utils/curation-ants/archivist.sh +97 -0
  63. package/.aether/utils/curation-ants/critic.sh +214 -0
  64. package/.aether/utils/curation-ants/herald.sh +102 -0
  65. package/.aether/utils/curation-ants/janitor.sh +121 -0
  66. package/.aether/utils/curation-ants/librarian.sh +99 -0
  67. package/.aether/utils/curation-ants/nurse.sh +153 -0
  68. package/.aether/utils/curation-ants/orchestrator.sh +181 -0
  69. package/.aether/utils/curation-ants/scribe.sh +164 -0
  70. package/.aether/utils/curation-ants/sentinel.sh +119 -0
  71. package/.aether/utils/event-bus.sh +301 -0
  72. package/.aether/utils/graph.sh +559 -0
  73. package/.aether/utils/instinct-store.sh +401 -0
  74. package/.aether/utils/learning.sh +79 -7
  75. package/.aether/utils/oracle/oracle-stop-hook.sh +896 -0
  76. package/.aether/utils/session.sh +13 -0
  77. package/.aether/utils/state-api.sh +1 -1
  78. package/.aether/utils/trust-scoring.sh +347 -0
  79. package/.aether/utils/worktree.sh +97 -0
  80. package/.claude/commands/ant/archaeology.md +2 -2
  81. package/.claude/commands/ant/chaos.md +4 -4
  82. package/.claude/commands/ant/colonize.md +9 -9
  83. package/.claude/commands/ant/council.md +6 -6
  84. package/.claude/commands/ant/data-clean.md +3 -3
  85. package/.claude/commands/ant/dream.md +2 -2
  86. package/.claude/commands/ant/entomb.md +9 -9
  87. package/.claude/commands/ant/export-signals.md +2 -2
  88. package/.claude/commands/ant/feedback.md +4 -4
  89. package/.claude/commands/ant/flag.md +2 -2
  90. package/.claude/commands/ant/flags.md +4 -4
  91. package/.claude/commands/ant/focus.md +4 -4
  92. package/.claude/commands/ant/help.md +1 -1
  93. package/.claude/commands/ant/history.md +1 -1
  94. package/.claude/commands/ant/import-signals.md +2 -2
  95. package/.claude/commands/ant/init.md +44 -27
  96. package/.claude/commands/ant/insert-phase.md +1 -1
  97. package/.claude/commands/ant/interpret.md +2 -2
  98. package/.claude/commands/ant/lay-eggs.md +2 -2
  99. package/.claude/commands/ant/maturity.md +2 -2
  100. package/.claude/commands/ant/memory-details.md +1 -1
  101. package/.claude/commands/ant/migrate-state.md +1 -1
  102. package/.claude/commands/ant/oracle.md +78 -42
  103. package/.claude/commands/ant/organize.md +3 -3
  104. package/.claude/commands/ant/patrol.md +8 -8
  105. package/.claude/commands/ant/pause-colony.md +5 -5
  106. package/.claude/commands/ant/phase.md +1 -1
  107. package/.claude/commands/ant/pheromones.md +1 -1
  108. package/.claude/commands/ant/plan.md +8 -8
  109. package/.claude/commands/ant/quick.md +4 -4
  110. package/.claude/commands/ant/redirect.md +4 -4
  111. package/.claude/commands/ant/resume-colony.md +5 -5
  112. package/.claude/commands/ant/resume.md +17 -29
  113. package/.claude/commands/ant/run.md +10 -10
  114. package/.claude/commands/ant/seal.md +25 -25
  115. package/.claude/commands/ant/skill-create.md +2 -2
  116. package/.claude/commands/ant/status.md +14 -14
  117. package/.claude/commands/ant/swarm.md +14 -14
  118. package/.claude/commands/ant/tunnels.md +4 -4
  119. package/.claude/commands/ant/update.md +1 -1
  120. package/.claude/commands/ant/verify-castes.md +2 -2
  121. package/.claude/commands/ant/watch.md +8 -8
  122. package/.opencode/commands/ant/archaeology.md +1 -1
  123. package/.opencode/commands/ant/build.md +80 -45
  124. package/.opencode/commands/ant/chaos.md +3 -3
  125. package/.opencode/commands/ant/colonize.md +8 -8
  126. package/.opencode/commands/ant/continue.md +40 -40
  127. package/.opencode/commands/ant/council.md +5 -5
  128. package/.opencode/commands/ant/data-clean.md +2 -2
  129. package/.opencode/commands/ant/dream.md +1 -1
  130. package/.opencode/commands/ant/entomb.md +3 -3
  131. package/.opencode/commands/ant/export-signals.md +1 -1
  132. package/.opencode/commands/ant/feedback.md +2 -2
  133. package/.opencode/commands/ant/flag.md +1 -1
  134. package/.opencode/commands/ant/flags.md +3 -3
  135. package/.opencode/commands/ant/focus.md +2 -2
  136. package/.opencode/commands/ant/import-signals.md +1 -1
  137. package/.opencode/commands/ant/init.md +44 -27
  138. package/.opencode/commands/ant/insert-phase.md +1 -1
  139. package/.opencode/commands/ant/interpret.md +1 -1
  140. package/.opencode/commands/ant/lay-eggs.md +2 -2
  141. package/.opencode/commands/ant/maturity.md +1 -1
  142. package/.opencode/commands/ant/memory-details.md +1 -1
  143. package/.opencode/commands/ant/oracle.md +69 -40
  144. package/.opencode/commands/ant/organize.md +2 -2
  145. package/.opencode/commands/ant/patrol.md +8 -8
  146. package/.opencode/commands/ant/pause-colony.md +2 -2
  147. package/.opencode/commands/ant/pheromones.md +1 -1
  148. package/.opencode/commands/ant/plan.md +6 -6
  149. package/.opencode/commands/ant/quick.md +4 -4
  150. package/.opencode/commands/ant/redirect.md +2 -2
  151. package/.opencode/commands/ant/resume-colony.md +4 -4
  152. package/.opencode/commands/ant/resume.md +5 -17
  153. package/.opencode/commands/ant/run.md +10 -10
  154. package/.opencode/commands/ant/seal.md +8 -8
  155. package/.opencode/commands/ant/skill-create.md +2 -2
  156. package/.opencode/commands/ant/status.md +10 -10
  157. package/.opencode/commands/ant/tunnels.md +3 -3
  158. package/.opencode/commands/ant/verify-castes.md +1 -1
  159. package/.opencode/commands/ant/watch.md +7 -7
  160. package/CHANGELOG.md +83 -0
  161. package/README.md +22 -9
  162. package/bin/cli.js +118 -3
  163. package/bin/lib/binary-downloader.js +267 -0
  164. package/bin/lib/update-transaction.js +27 -3
  165. package/bin/lib/version-gate.js +179 -0
  166. package/bin/npx-entry.js +0 -0
  167. package/package.json +1 -1
  168. package/.aether/agents/aether-ambassador.md +0 -140
  169. package/.aether/agents/aether-archaeologist.md +0 -108
  170. package/.aether/agents/aether-architect.md +0 -133
  171. package/.aether/agents/aether-auditor.md +0 -144
  172. package/.aether/agents/aether-builder.md +0 -184
  173. package/.aether/agents/aether-chaos.md +0 -115
  174. package/.aether/agents/aether-chronicler.md +0 -122
  175. package/.aether/agents/aether-gatekeeper.md +0 -116
  176. package/.aether/agents/aether-includer.md +0 -117
  177. package/.aether/agents/aether-keeper.md +0 -177
  178. package/.aether/agents/aether-measurer.md +0 -128
  179. package/.aether/agents/aether-oracle.md +0 -137
  180. package/.aether/agents/aether-probe.md +0 -133
  181. package/.aether/agents/aether-queen.md +0 -286
  182. package/.aether/agents/aether-route-setter.md +0 -130
  183. package/.aether/agents/aether-sage.md +0 -106
  184. package/.aether/agents/aether-scout.md +0 -101
  185. package/.aether/agents/aether-surveyor-disciplines.md +0 -391
  186. package/.aether/agents/aether-surveyor-nest.md +0 -329
  187. package/.aether/agents/aether-surveyor-pathogens.md +0 -264
  188. package/.aether/agents/aether-surveyor-provisions.md +0 -334
  189. package/.aether/agents/aether-tracker.md +0 -137
  190. package/.aether/agents/aether-watcher.md +0 -174
  191. package/.aether/agents/aether-weaver.md +0 -130
  192. package/.aether/commands/claude/archaeology.md +0 -334
  193. package/.aether/commands/claude/build.md +0 -65
  194. package/.aether/commands/claude/chaos.md +0 -336
  195. package/.aether/commands/claude/colonize.md +0 -259
  196. package/.aether/commands/claude/continue.md +0 -60
  197. package/.aether/commands/claude/council.md +0 -507
  198. package/.aether/commands/claude/data-clean.md +0 -81
  199. package/.aether/commands/claude/dream.md +0 -268
  200. package/.aether/commands/claude/entomb.md +0 -498
  201. package/.aether/commands/claude/export-signals.md +0 -57
  202. package/.aether/commands/claude/feedback.md +0 -96
  203. package/.aether/commands/claude/flag.md +0 -151
  204. package/.aether/commands/claude/flags.md +0 -169
  205. package/.aether/commands/claude/focus.md +0 -76
  206. package/.aether/commands/claude/help.md +0 -154
  207. package/.aether/commands/claude/history.md +0 -140
  208. package/.aether/commands/claude/import-signals.md +0 -71
  209. package/.aether/commands/claude/init.md +0 -505
  210. package/.aether/commands/claude/insert-phase.md +0 -105
  211. package/.aether/commands/claude/interpret.md +0 -278
  212. package/.aether/commands/claude/lay-eggs.md +0 -210
  213. package/.aether/commands/claude/maturity.md +0 -113
  214. package/.aether/commands/claude/memory-details.md +0 -77
  215. package/.aether/commands/claude/migrate-state.md +0 -171
  216. package/.aether/commands/claude/oracle.md +0 -642
  217. package/.aether/commands/claude/organize.md +0 -232
  218. package/.aether/commands/claude/patrol.md +0 -620
  219. package/.aether/commands/claude/pause-colony.md +0 -233
  220. package/.aether/commands/claude/phase.md +0 -115
  221. package/.aether/commands/claude/pheromones.md +0 -156
  222. package/.aether/commands/claude/plan.md +0 -693
  223. package/.aether/commands/claude/preferences.md +0 -65
  224. package/.aether/commands/claude/quick.md +0 -100
  225. package/.aether/commands/claude/redirect.md +0 -76
  226. package/.aether/commands/claude/resume-colony.md +0 -197
  227. package/.aether/commands/claude/resume.md +0 -388
  228. package/.aether/commands/claude/run.md +0 -231
  229. package/.aether/commands/claude/seal.md +0 -774
  230. package/.aether/commands/claude/skill-create.md +0 -286
  231. package/.aether/commands/claude/status.md +0 -410
  232. package/.aether/commands/claude/swarm.md +0 -349
  233. package/.aether/commands/claude/tunnels.md +0 -426
  234. package/.aether/commands/claude/update.md +0 -132
  235. package/.aether/commands/claude/verify-castes.md +0 -143
  236. package/.aether/commands/claude/watch.md +0 -239
  237. package/.aether/commands/opencode/archaeology.md +0 -331
  238. package/.aether/commands/opencode/build.md +0 -1168
  239. package/.aether/commands/opencode/chaos.md +0 -329
  240. package/.aether/commands/opencode/colonize.md +0 -195
  241. package/.aether/commands/opencode/continue.md +0 -1436
  242. package/.aether/commands/opencode/council.md +0 -437
  243. package/.aether/commands/opencode/data-clean.md +0 -77
  244. package/.aether/commands/opencode/dream.md +0 -260
  245. package/.aether/commands/opencode/entomb.md +0 -377
  246. package/.aether/commands/opencode/export-signals.md +0 -54
  247. package/.aether/commands/opencode/feedback.md +0 -99
  248. package/.aether/commands/opencode/flag.md +0 -149
  249. package/.aether/commands/opencode/flags.md +0 -167
  250. package/.aether/commands/opencode/focus.md +0 -73
  251. package/.aether/commands/opencode/help.md +0 -157
  252. package/.aether/commands/opencode/history.md +0 -136
  253. package/.aether/commands/opencode/import-signals.md +0 -68
  254. package/.aether/commands/opencode/init.md +0 -518
  255. package/.aether/commands/opencode/insert-phase.md +0 -111
  256. package/.aether/commands/opencode/interpret.md +0 -272
  257. package/.aether/commands/opencode/lay-eggs.md +0 -213
  258. package/.aether/commands/opencode/maturity.md +0 -108
  259. package/.aether/commands/opencode/memory-details.md +0 -83
  260. package/.aether/commands/opencode/migrate-state.md +0 -165
  261. package/.aether/commands/opencode/oracle.md +0 -593
  262. package/.aether/commands/opencode/organize.md +0 -226
  263. package/.aether/commands/opencode/patrol.md +0 -626
  264. package/.aether/commands/opencode/pause-colony.md +0 -203
  265. package/.aether/commands/opencode/phase.md +0 -113
  266. package/.aether/commands/opencode/pheromones.md +0 -162
  267. package/.aether/commands/opencode/plan.md +0 -684
  268. package/.aether/commands/opencode/preferences.md +0 -71
  269. package/.aether/commands/opencode/quick.md +0 -91
  270. package/.aether/commands/opencode/redirect.md +0 -84
  271. package/.aether/commands/opencode/resume-colony.md +0 -190
  272. package/.aether/commands/opencode/resume.md +0 -394
  273. package/.aether/commands/opencode/run.md +0 -237
  274. package/.aether/commands/opencode/seal.md +0 -452
  275. package/.aether/commands/opencode/skill-create.md +0 -63
  276. package/.aether/commands/opencode/status.md +0 -307
  277. package/.aether/commands/opencode/swarm.md +0 -15
  278. package/.aether/commands/opencode/tunnels.md +0 -400
  279. package/.aether/commands/opencode/update.md +0 -127
  280. package/.aether/commands/opencode/verify-castes.md +0 -139
  281. package/.aether/commands/opencode/watch.md +0 -227
@@ -1,507 +0,0 @@
1
- <!-- Generated from .aether/commands/council.yaml - DO NOT EDIT DIRECTLY -->
2
- ---
3
- name: ant:council
4
- description: "📜🐜🏛️🐜📜 Convene council for intent clarification via multi-choice questions"
5
- ---
6
-
7
- You are the **Queen Ant Colony**. Convene the council to clarify user intent and inject guidance as pheromones.
8
-
9
- ## Instructions
10
-
11
- Parse `$ARGUMENTS`:
12
- - If starts with `--deliberate`: set `deliberate_mode = true`, extract proposal text after `--deliberate`
13
- - If contains `--no-visual`: set `visual_mode = false` (visual is ON by default)
14
- - Otherwise: set `visual_mode = true`
15
-
16
- **If `deliberate_mode` is true:** Skip to [Deliberation Mode](#deliberation-mode) and stop after it.
17
-
18
- ---
19
-
20
- ## Deliberation Mode
21
-
22
- When `--deliberate "<proposal>"` is passed, run a structured Advocate/Challenger/Sage deliberation.
23
-
24
- ### Step D1: Check Budget
25
-
26
- Run using the Bash tool with description "Checking deliberation budget...":
27
- ```bash
28
- bash .aether/aether-utils.sh council-budget-check
29
- ```
30
-
31
- Parse result. If `allowed` is `false`:
32
- ```
33
- 📜🐜🏛️🐜📜 COUNCIL — BUDGET EXHAUSTED
34
-
35
- Spawn budget is fully allocated. Complete or close existing deliberations before starting new ones.
36
- Run /ant:council to review existing deliberations.
37
- ```
38
- Stop here.
39
-
40
- ### Step D2: Open Deliberation
41
-
42
- Run using the Bash tool with description "Opening deliberation...":
43
- ```bash
44
- bash .aether/aether-utils.sh council-deliberate --proposal "<proposal>"
45
- ```
46
-
47
- Capture `deliberation_id` from `result.id`.
48
-
49
- Display:
50
- ```
51
- 📜🐜🏛️🐜📜 COUNCIL DELIBERATION OPENED
52
-
53
- Proposal: "<proposal>"
54
- ID: {deliberation_id}
55
- Budget: {budget} spawns available
56
-
57
- Convening Advocate, Challenger, and Sage...
58
- ```
59
-
60
- ### Step D3: Spawn Advocate Scout
61
-
62
- Spawn an Advocate scout to argue **in favor** of the proposal.
63
-
64
-
65
- Use the Task tool to spawn a scout with the following system prompt:
66
- ```
67
- You are the Advocate on the Ant Colony council.
68
- Your role is to argue STRONGLY IN FAVOR of the proposal.
69
- Present the strongest possible case for why this proposal should be adopted.
70
- Be specific. Focus on concrete benefits and outcomes.
71
- Keep your argument under 200 words.
72
- Reply with ONLY your argument text — no preamble or meta-commentary.
73
- ```
74
-
75
- And user message:
76
- ```
77
- Proposal: "<proposal>"
78
-
79
- Present your strongest argument in favor of this proposal.
80
- ```
81
-
82
- Capture the advocate's argument as `advocate_argument`.
83
-
84
-
85
- Record the argument:
86
- ```bash
87
- bash .aether/aether-utils.sh council-advocate \
88
- --deliberation-id "<deliberation_id>" \
89
- --argument "<advocate_argument>"
90
- ```
91
-
92
- Display:
93
- ```
94
- ⚖️ ADVOCATE:
95
- {advocate_argument}
96
- ```
97
-
98
- ### Step D4: Spawn Challenger Scout
99
-
100
- Spawn a Challenger scout to argue **against** the proposal.
101
-
102
-
103
- Use the Task tool to spawn a scout with the following system prompt:
104
- ```
105
- You are the Challenger on the Ant Colony council.
106
- Your role is to argue STRONGLY AGAINST the proposal.
107
- Present the strongest possible case for why this proposal should be rejected or deferred.
108
- Be specific. Focus on concrete risks, costs, and downsides.
109
- Keep your argument under 200 words.
110
- Reply with ONLY your argument text — no preamble or meta-commentary.
111
- ```
112
-
113
- And user message:
114
- ```
115
- Proposal: "<proposal>"
116
-
117
- Present your strongest argument against this proposal.
118
- ```
119
-
120
- Capture the challenger's argument as `challenger_argument`.
121
-
122
-
123
- Record the argument:
124
- ```bash
125
- bash .aether/aether-utils.sh council-challenger \
126
- --deliberation-id "<deliberation_id>" \
127
- --argument "<challenger_argument>"
128
- ```
129
-
130
- Display:
131
- ```
132
- ⚔️ CHALLENGER:
133
- {challenger_argument}
134
- ```
135
-
136
- ### Step D5: Spawn Sage Scout
137
-
138
- Spawn a Sage scout to synthesize both positions and provide a recommendation.
139
-
140
-
141
- Use the Task tool to spawn a scout with the following system prompt:
142
- ```
143
- You are the Sage on the Ant Colony council.
144
- You have heard both the Advocate and Challenger arguments.
145
- Your role is to synthesize both positions into balanced wisdom and provide a clear recommendation.
146
- Your recommendation must be one of: adopt, reject, defer, or adopt-with-conditions.
147
- Keep your synthesis under 150 words.
148
- Reply with JSON only:
149
- {"synthesis": "<your balanced synthesis>", "recommendation": "adopt|reject|defer|adopt-with-conditions"}
150
- ```
151
-
152
- And user message:
153
- ```
154
- Proposal: "<proposal>"
155
-
156
- Advocate argued: "<advocate_argument>"
157
-
158
- Challenger argued: "<challenger_argument>"
159
-
160
- Synthesize both positions and provide your recommendation.
161
- ```
162
-
163
- Parse the JSON response. Capture `synthesis` and `recommendation`.
164
-
165
-
166
- Record the sage synthesis:
167
- ```bash
168
- bash .aether/aether-utils.sh council-sage \
169
- --deliberation-id "<deliberation_id>" \
170
- --synthesis "<synthesis>" \
171
- --recommendation "<recommendation>"
172
- ```
173
-
174
- ### Step D6: Display Result
175
-
176
- ```
177
- 📜🐜🏛️🐜📜 COUNCIL DELIBERATION COMPLETE
178
-
179
- Proposal: "<proposal>"
180
-
181
- ⚖️ Advocate:
182
- {advocate_argument}
183
-
184
- ⚔️ Challenger:
185
- {challenger_argument}
186
-
187
- 🧙 Sage Synthesis:
188
- {synthesis}
189
-
190
- Recommendation: {recommendation}
191
- ```
192
-
193
- If recommendation is `adopt` or `adopt-with-conditions`:
194
- ```
195
- ✅ Council recommends proceeding.
196
- Run /ant:focus "<proposal summary>" to inject guidance for the colony.
197
- ```
198
-
199
- If recommendation is `reject`:
200
- ```
201
- ❌ Council recommends against this proposal.
202
- Run /ant:redirect "<proposal summary>" if you want to make this a hard constraint.
203
- ```
204
-
205
- If recommendation is `defer`:
206
- ```
207
- ⏸️ Council recommends deferring this decision.
208
- Return when more context is available.
209
- ```
210
-
211
- ---
212
-
213
-
214
-
215
- ### Step 0: Initialize Visual Mode (if enabled)
216
-
217
- If `visual_mode` is true, run using the Bash tool with description "Initializing council display...":
218
-
219
- ### Step 1: Read Current State
220
-
221
- Read `.aether/data/COLONY_STATE.json`.
222
-
223
- If file doesn't exist or `goal` is null:
224
- ```
225
- 📜🐜🏛️🐜📜 COUNCIL
226
-
227
- No colony initialized. Run /ant:init first.
228
- ```
229
- Stop here.
230
-
231
- If `milestone` == `"Crowned Anthill"`:
232
- ```
233
- This colony has been sealed. Start a new colony with /ant:init "new goal".
234
- ```
235
- Stop here.
236
-
237
- Capture the current state for context:
238
- - `prior_state` = state field value (READY, EXECUTING, PLANNING, etc.)
239
- - `current_phase` = current_phase field value
240
- - `goal` = goal field value
241
-
242
- ### Step 2: Display Council Header
243
-
244
-
245
- ```
246
- 📜🐜🏛️🐜📜 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
247
- A N T C O U N C I L
248
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📜🐜🏛️🐜📜
249
-
250
-
251
-
252
- 👑 Queen convenes the council for guidance
253
-
254
- Colony Goal: "{goal}"
255
- Current State: {prior_state}
256
- Phase: {current_phase}
257
- ```
258
-
259
- If `prior_state` is `EXECUTING`:
260
- ```
261
- ⚡ Note: Build in progress. New guidance will apply to future work.
262
- Current workers continue with existing constraints.
263
- ```
264
-
265
- ### Step 3: Present Category Menu
266
-
267
- Use the **AskUserQuestion** tool to ask:
268
-
269
- ```
270
- question: "What would you like to clarify with the council?"
271
- header: "Topic"
272
- options:
273
- - label: "Project Direction"
274
- description: "Clarify project type, architecture, or tech stack choices"
275
- - label: "Quality Priorities"
276
- description: "Define tradeoffs: speed vs robustness vs simplicity"
277
- - label: "Constraints & Boundaries"
278
- description: "Set rules about what to avoid or require"
279
- - label: "Custom Topic"
280
- description: "Describe something specific you want to discuss"
281
- multiSelect: false
282
- ```
283
-
284
- Wait for user response.
285
-
286
- ### Step 4: Drill Down Based on Selection
287
-
288
- Based on the user's selection, ask follow-up questions:
289
-
290
- **If "Project Direction":**
291
- ```
292
- question: "What aspect of project direction needs clarification?"
293
- header: "Direction"
294
- options:
295
- - label: "Architecture Pattern"
296
- description: "Monolith vs microservices, MVC vs functional, etc."
297
- - label: "Tech Stack"
298
- description: "Framework, database, or library choices"
299
- - label: "Code Style"
300
- description: "Naming conventions, file organization, patterns"
301
- - label: "Testing Approach"
302
- description: "TDD, integration-first, coverage requirements"
303
- multiSelect: true
304
- ```
305
-
306
- **If "Quality Priorities":**
307
- ```
308
- question: "What's most important for this project?"
309
- header: "Priority"
310
- options:
311
- - label: "Speed of Development"
312
- description: "Get it working fast, iterate later"
313
- - label: "Robustness"
314
- description: "Handle edge cases, thorough error handling"
315
- - label: "Simplicity"
316
- description: "Minimal code, easy to understand and maintain"
317
- - label: "Performance"
318
- description: "Optimize for speed and efficiency"
319
- multiSelect: true
320
- ```
321
-
322
- **If "Constraints & Boundaries":**
323
- ```
324
- question: "What constraints should the colony follow?"
325
- header: "Constraints"
326
- options:
327
- - label: "Security Requirements"
328
- description: "Auth patterns, data handling, secrets management"
329
- - label: "Compatibility"
330
- description: "Browser support, Node version, API compatibility"
331
- - label: "Dependencies"
332
- description: "Prefer/avoid certain libraries or frameworks"
333
- - label: "Patterns to Avoid"
334
- description: "Anti-patterns, deprecated approaches"
335
- multiSelect: true
336
- ```
337
-
338
- **If "Custom Topic":**
339
- ```
340
- question: "Describe what you want to clarify:"
341
- header: "Custom"
342
- options:
343
- - label: "Type your topic below"
344
- description: "Use the 'Other' option to enter your specific topic"
345
- multiSelect: false
346
- ```
347
-
348
- Wait for user response. Based on answers, ask 1-2 more specific follow-up questions to get actionable guidance.
349
-
350
- ### Step 5: Translate Answers to Pheromones
351
-
352
- Based on all gathered answers, determine which pheromones to inject:
353
-
354
- **FOCUS signals** (areas to emphasize):
355
- - Architecture choices → FOCUS on that pattern
356
- - Quality priorities → FOCUS on that approach
357
- - Specific requirements → FOCUS on those areas
358
-
359
- **REDIRECT signals** (patterns to avoid):
360
- - Patterns to avoid → REDIRECT away
361
- - Incompatible approaches → REDIRECT away
362
- - Security concerns → REDIRECT away from risky patterns
363
-
364
- **FEEDBACK signals** (guidance to remember):
365
- - Style preferences → FEEDBACK as instinct
366
- - General guidance → FEEDBACK for colony memory
367
-
368
- ### Step 6: Inject Pheromones
369
-
370
- Read `.aether/data/constraints.json`. Create if doesn't exist:
371
- ```json
372
- {"version": "1.0", "focus": [], "constraints": []}
373
- ```
374
-
375
- **For each FOCUS area identified:**
376
- - Check for duplicates (case-insensitive match in existing focus array)
377
- - If not duplicate, append to `focus` array
378
- - Keep max 5 entries (remove oldest if exceeded)
379
-
380
- **For each REDIRECT pattern identified:**
381
- - Generate ID: `c_<unix_timestamp_ms>`
382
- - Append to `constraints` array:
383
- ```json
384
- {
385
- "id": "<generated_id>",
386
- "type": "AVOID",
387
- "content": "<pattern to avoid>",
388
- "source": "council:redirect",
389
- "created_at": "<ISO-8601 timestamp>"
390
- }
391
- ```
392
- - Keep max 10 constraints (remove oldest if exceeded)
393
-
394
- Write constraints.json.
395
-
396
- **For each FEEDBACK identified:**
397
- Read `.aether/data/COLONY_STATE.json`.
398
-
399
- Append to `signals` array:
400
- ```json
401
- {
402
- "id": "feedback_<timestamp_ms>",
403
- "type": "FEEDBACK",
404
- "content": "<feedback message>",
405
- "priority": "low",
406
- "source": "council:feedback",
407
- "created_at": "<ISO-8601>",
408
- "expires_at": "phase_end"
409
- }
410
- ```
411
-
412
- Create instinct in `memory.instincts`:
413
- ```json
414
- {
415
- "id": "instinct_<timestamp>",
416
- "trigger": "<inferred from context>",
417
- "action": "<the guidance>",
418
- "confidence": 0.7,
419
- "domain": "<inferred: testing|architecture|code-style|debugging|workflow>",
420
- "source": "council:feedback",
421
- "evidence": ["Council session guidance"],
422
- "created_at": "<ISO-8601>",
423
- "last_applied": null,
424
- "applications": 0,
425
- "successes": 0
426
- }
427
- ```
428
-
429
- Keep max 30 instincts (remove lowest confidence if exceeded).
430
-
431
- Write COLONY_STATE.json.
432
-
433
- ### Step 7: Log Council Event
434
-
435
- Append to COLONY_STATE.json `events` array:
436
- ```
437
- <ISO-8601>|council_session|council|Council convened: <brief summary of topics discussed>
438
- ```
439
-
440
- Keep max 100 events.
441
-
442
- ### Step 8: Display Summary
443
-
444
- ```
445
- 📜🐜🏛️🐜📜 COUNCIL ADJOURNED
446
-
447
- Pheromones Injected:
448
- ```
449
-
450
- For each FOCUS added:
451
- ```
452
- 🎯 FOCUS: "{content}"
453
- ```
454
-
455
- For each REDIRECT added:
456
- ```
457
- 🚫 REDIRECT: "{content}"
458
- ```
459
-
460
- For each FEEDBACK added:
461
- ```
462
- 💬 FEEDBACK: "{content}"
463
- 🧠 Instinct: [{confidence}] {domain}: {action summary}
464
- ```
465
-
466
- If no pheromones were injected:
467
- ```
468
- (No new constraints needed based on discussion)
469
- ```
470
-
471
- Then:
472
- ```
473
- 🐜 Colony guidance updated. Resuming {prior_state} state.
474
- ```
475
-
476
- If `prior_state` was EXECUTING:
477
- ```
478
- ⚡ Active workers will complete with prior constraints.
479
- New spawns will use updated guidance.
480
-
481
- /ant:status 📊 View current progress
482
- /ant:continue ⏭️ Check for phase completion
483
- ```
484
-
485
- If `prior_state` was READY:
486
- ```
487
- /ant:plan 📋 Generate or refine plan
488
- /ant:build 🔨 Start building a phase
489
- /ant:status 📊 View colony status
490
- ```
491
-
492
- If `prior_state` was PLANNING:
493
- ```
494
- Planning will continue with new guidance.
495
- ```
496
-
497
-
498
- ### Step 9: Next Up
499
-
500
- Generate the state-based Next Up block by running using the Bash tool with description "Generating Next Up suggestions...":
501
- ```bash
502
- state=$(jq -r '.state // "IDLE"' .aether/data/COLONY_STATE.json)
503
- current_phase=$(jq -r '.current_phase // 0' .aether/data/COLONY_STATE.json)
504
- total_phases=$(jq -r '.plan.phases | length' .aether/data/COLONY_STATE.json)
505
- bash .aether/aether-utils.sh print-next-up "$state" "$current_phase" "$total_phases"
506
- ```
507
-
@@ -1,81 +0,0 @@
1
- <!-- Generated from .aether/commands/data-clean.yaml - DO NOT EDIT DIRECTLY -->
2
- ---
3
- name: ant:data-clean
4
- description: "Scan and remove test artifacts from colony data files"
5
- ---
6
-
7
- You are the **Queen Ant Colony**. Run the data cleaner to scan for and remove test/synthetic artifacts from colony data files.
8
-
9
-
10
- > **Note:** `$ARGUMENTS` is unused. This command always scans all data files.
11
-
12
-
13
-
14
- ## Instructions
15
-
16
- ### Step 1: Scan
17
-
18
- Run using the Bash tool with description "Scanning colony data for test artifacts...":
19
- ```bash
20
- bash .aether/aether-utils.sh data-clean --dry-run
21
- ```
22
-
23
- Display the output to the user. This shows artifact counts per data file without modifying anything.
24
-
25
- ### Step 2: Decision Gate
26
-
27
- Parse the scan output for "Total artifacts: N".
28
-
29
- **If total is 0:**
30
- Display:
31
- ```
32
- Colony data is clean. No artifacts found.
33
- ```
34
- Skip to Step 5.
35
-
36
- **If total is greater than 0:**
37
- Ask the user:
38
- ```
39
- Found {N} test artifacts across colony data files.
40
- Remove these artifacts? (yes/no)
41
- ```
42
-
43
- If user says no, display "No changes made." and skip to Step 5.
44
-
45
- ### Step 3: Clean
46
-
47
- If user confirmed, run using the Bash tool with description "Removing test artifacts...":
48
- ```bash
49
- bash .aether/aether-utils.sh data-clean --confirm
50
- ```
51
-
52
- ### Step 4: Summary
53
-
54
- Display the cleanup results showing what was removed from each file.
55
-
56
- For example:
57
- ```
58
- Data Clean Complete
59
- ===================
60
- Removed {total} artifacts:
61
- - pheromones.json: {N} test signals
62
- - QUEEN.md: {N} test entries
63
- - learning-observations.json: {N} test observations
64
- - midden.json: {N} test entries
65
- - spawn-tree.txt: {N} test worker lines
66
- - constraints.json: {N} test focus entries
67
-
68
- Run /ant:status to verify colony state.
69
- ```
70
-
71
-
72
- ### Step 5: Next Up
73
-
74
- Generate the state-based Next Up block by running using the Bash tool with description "Generating Next Up suggestions...":
75
- ```bash
76
- state=$(jq -r '.state // "IDLE"' .aether/data/COLONY_STATE.json)
77
- current_phase=$(jq -r '.current_phase // 0' .aether/data/COLONY_STATE.json)
78
- total_phases=$(jq -r '.plan.phases | length' .aether/data/COLONY_STATE.json)
79
- bash .aether/aether-utils.sh print-next-up "$state" "$current_phase" "$total_phases"
80
- ```
81
-