aether-colony 3.1.17 → 5.0.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 (183) hide show
  1. package/{runtime → .aether}/CONTEXT.md +1 -1
  2. package/{runtime → .aether}/aether-utils.sh +1772 -98
  3. package/.aether/docs/QUEEN-SYSTEM.md +211 -0
  4. package/.aether/docs/QUEEN.md +84 -0
  5. package/.aether/docs/README.md +68 -0
  6. package/.aether/docs/caste-system.md +48 -0
  7. package/{runtime → .aether/docs/disciplines}/DISCIPLINES.md +8 -8
  8. package/.aether/docs/error-codes.md +268 -0
  9. package/{runtime → .aether}/docs/known-issues.md +42 -26
  10. package/.aether/docs/queen-commands.md +97 -0
  11. package/.aether/exchange/colony-registry.xml +11 -0
  12. package/{runtime → .aether}/exchange/pheromone-xml.sh +2 -1
  13. package/.aether/exchange/pheromones.xml +87 -0
  14. package/.aether/exchange/queen-wisdom.xml +14 -0
  15. package/{runtime → .aether}/exchange/registry-xml.sh +7 -3
  16. package/{runtime → .aether}/exchange/wisdom-xml.sh +11 -4
  17. package/.aether/rules/aether-colony.md +134 -0
  18. package/.aether/schemas/example-prompt-builder.xml +234 -0
  19. package/.aether/templates/colony-state-reset.jq.template +22 -0
  20. package/.aether/templates/colony-state.template.json +35 -0
  21. package/.aether/templates/constraints.template.json +9 -0
  22. package/.aether/templates/crowned-anthill.template.md +36 -0
  23. package/.aether/templates/handoff-build-error.template.md +30 -0
  24. package/.aether/templates/handoff-build-success.template.md +39 -0
  25. package/.aether/templates/handoff.template.md +40 -0
  26. package/{runtime → .aether}/utils/atomic-write.sh +5 -5
  27. package/{runtime → .aether}/utils/chamber-compare.sh +23 -10
  28. package/{runtime → .aether}/utils/chamber-utils.sh +32 -20
  29. package/{runtime → .aether}/utils/error-handler.sh +13 -1
  30. package/{runtime → .aether}/utils/file-lock.sh +49 -13
  31. package/.aether/utils/semantic-cli.sh +413 -0
  32. package/{runtime → .aether}/utils/xml-compose.sh +7 -1
  33. package/.aether/utils/xml-convert.sh +273 -0
  34. package/.aether/utils/xml-query.sh +201 -0
  35. package/.aether/utils/xml-utils.sh +110 -0
  36. package/{runtime → .aether}/workers.md +14 -17
  37. package/.claude/agents/ant/aether-ambassador.md +264 -0
  38. package/.claude/agents/ant/aether-archaeologist.md +322 -0
  39. package/.claude/agents/ant/aether-auditor.md +266 -0
  40. package/.claude/agents/ant/aether-builder.md +187 -0
  41. package/.claude/agents/ant/aether-chaos.md +268 -0
  42. package/.claude/agents/ant/aether-chronicler.md +304 -0
  43. package/.claude/agents/ant/aether-gatekeeper.md +325 -0
  44. package/.claude/agents/ant/aether-includer.md +373 -0
  45. package/.claude/agents/ant/aether-keeper.md +271 -0
  46. package/.claude/agents/ant/aether-measurer.md +317 -0
  47. package/.claude/agents/ant/aether-probe.md +210 -0
  48. package/.claude/agents/ant/aether-queen.md +325 -0
  49. package/.claude/agents/ant/aether-route-setter.md +173 -0
  50. package/.claude/agents/ant/aether-sage.md +353 -0
  51. package/.claude/agents/ant/aether-scout.md +142 -0
  52. package/.claude/agents/ant/aether-surveyor-disciplines.md +416 -0
  53. package/.claude/agents/ant/aether-surveyor-nest.md +354 -0
  54. package/.claude/agents/ant/aether-surveyor-pathogens.md +288 -0
  55. package/.claude/agents/ant/aether-surveyor-provisions.md +359 -0
  56. package/.claude/agents/ant/aether-tracker.md +265 -0
  57. package/.claude/agents/ant/aether-watcher.md +244 -0
  58. package/.claude/agents/ant/aether-weaver.md +247 -0
  59. package/.claude/commands/ant/archaeology.md +16 -7
  60. package/.claude/commands/ant/build.md +415 -284
  61. package/.claude/commands/ant/chaos.md +19 -10
  62. package/.claude/commands/ant/colonize.md +58 -24
  63. package/.claude/commands/ant/continue.md +155 -145
  64. package/.claude/commands/ant/council.md +15 -5
  65. package/.claude/commands/ant/dream.md +16 -7
  66. package/.claude/commands/ant/entomb.md +274 -157
  67. package/.claude/commands/ant/feedback.md +33 -29
  68. package/.claude/commands/ant/flag.md +18 -10
  69. package/.claude/commands/ant/flags.md +14 -6
  70. package/.claude/commands/ant/focus.md +29 -21
  71. package/.claude/commands/ant/help.md +11 -1
  72. package/.claude/commands/ant/history.md +10 -0
  73. package/.claude/commands/ant/init.md +91 -65
  74. package/.claude/commands/ant/interpret.md +15 -4
  75. package/.claude/commands/ant/lay-eggs.md +55 -7
  76. package/.claude/commands/ant/maturity.md +11 -1
  77. package/.claude/commands/ant/migrate-state.md +14 -2
  78. package/.claude/commands/ant/oracle.md +23 -15
  79. package/.claude/commands/ant/organize.md +29 -20
  80. package/.claude/commands/ant/pause-colony.md +17 -7
  81. package/.claude/commands/ant/phase.md +17 -8
  82. package/.claude/commands/ant/plan.md +20 -9
  83. package/.claude/commands/ant/redirect.md +29 -32
  84. package/.claude/commands/ant/resume-colony.md +19 -9
  85. package/.claude/commands/ant/resume.md +272 -96
  86. package/.claude/commands/ant/seal.md +201 -191
  87. package/.claude/commands/ant/status.md +71 -32
  88. package/.claude/commands/ant/swarm.md +26 -44
  89. package/.claude/commands/ant/tunnels.md +279 -105
  90. package/.claude/commands/ant/update.md +81 -20
  91. package/.claude/commands/ant/verify-castes.md +14 -4
  92. package/.claude/commands/ant/watch.md +13 -12
  93. package/.opencode/agents/aether-ambassador.md +63 -20
  94. package/.opencode/agents/aether-archaeologist.md +29 -12
  95. package/.opencode/agents/aether-auditor.md +51 -18
  96. package/.opencode/agents/aether-builder.md +69 -19
  97. package/.opencode/agents/aether-chaos.md +29 -12
  98. package/.opencode/agents/aether-chronicler.md +60 -18
  99. package/.opencode/agents/aether-gatekeeper.md +27 -18
  100. package/.opencode/agents/aether-includer.md +27 -18
  101. package/.opencode/agents/aether-keeper.md +89 -18
  102. package/.opencode/agents/aether-measurer.md +27 -18
  103. package/.opencode/agents/aether-probe.md +60 -18
  104. package/.opencode/agents/aether-queen.md +172 -24
  105. package/.opencode/agents/aether-route-setter.md +57 -12
  106. package/.opencode/agents/aether-sage.md +26 -18
  107. package/.opencode/agents/aether-scout.md +27 -19
  108. package/.opencode/agents/aether-surveyor-disciplines.md +53 -1
  109. package/.opencode/agents/aether-surveyor-nest.md +53 -1
  110. package/.opencode/agents/aether-surveyor-pathogens.md +51 -1
  111. package/.opencode/agents/aether-surveyor-provisions.md +53 -1
  112. package/.opencode/agents/aether-tracker.md +64 -18
  113. package/.opencode/agents/aether-watcher.md +66 -19
  114. package/.opencode/agents/aether-weaver.md +61 -18
  115. package/.opencode/commands/ant/build.md +406 -192
  116. package/.opencode/commands/ant/continue.md +66 -76
  117. package/.opencode/commands/ant/entomb.md +106 -45
  118. package/.opencode/commands/ant/init.md +46 -48
  119. package/.opencode/commands/ant/organize.md +5 -5
  120. package/.opencode/commands/ant/resume.md +334 -0
  121. package/.opencode/commands/ant/seal.md +33 -24
  122. package/.opencode/commands/ant/status.md +11 -0
  123. package/.opencode/commands/ant/tunnels.md +149 -0
  124. package/.opencode/commands/ant/update.md +59 -16
  125. package/CHANGELOG.md +79 -0
  126. package/README.md +135 -353
  127. package/bin/cli.js +243 -122
  128. package/bin/generate-commands.sh +2 -2
  129. package/bin/lib/init.js +13 -3
  130. package/bin/lib/update-transaction.js +119 -117
  131. package/bin/sync-to-runtime.sh +5 -137
  132. package/bin/validate-package.sh +84 -0
  133. package/package.json +9 -6
  134. package/.opencode/agents/aether-architect.md +0 -66
  135. package/.opencode/agents/aether-guardian.md +0 -107
  136. package/.opencode/agents/workers.md +0 -1034
  137. package/runtime/QUEEN_ANT_ARCHITECTURE.md +0 -402
  138. package/runtime/data/signatures.json +0 -41
  139. package/runtime/docs/AETHER-2.0-IMPLEMENTATION-PLAN.md +0 -1343
  140. package/runtime/docs/AETHER-PHEROMONE-SYSTEM-MASTER-SPEC.md +0 -2642
  141. package/runtime/docs/PHEROMONE-INJECTION.md +0 -240
  142. package/runtime/docs/PHEROMONE-INTEGRATION.md +0 -192
  143. package/runtime/docs/PHEROMONE-SYSTEM-DESIGN.md +0 -426
  144. package/runtime/docs/README.md +0 -94
  145. package/runtime/docs/VISUAL-OUTPUT-SPEC.md +0 -219
  146. package/runtime/docs/biological-reference.md +0 -272
  147. package/runtime/docs/codebase-review.md +0 -399
  148. package/runtime/docs/command-sync.md +0 -164
  149. package/runtime/docs/constraints.md +0 -116
  150. package/runtime/docs/implementation-learnings.md +0 -89
  151. package/runtime/docs/namespace.md +0 -148
  152. package/runtime/docs/pathogen-schema-example.json +0 -36
  153. package/runtime/docs/pathogen-schema.md +0 -111
  154. package/runtime/docs/planning-discipline.md +0 -159
  155. package/runtime/docs/progressive-disclosure.md +0 -184
  156. package/runtime/lib/queen-utils.sh +0 -729
  157. package/runtime/planning.md +0 -159
  158. package/runtime/recover.sh +0 -136
  159. package/runtime/utils/xml-utils.sh +0 -2196
  160. package/runtime/workers-new-castes.md +0 -516
  161. /package/{runtime → .aether/docs/disciplines}/coding-standards.md +0 -0
  162. /package/{runtime → .aether/docs/disciplines}/debugging.md +0 -0
  163. /package/{runtime → .aether/docs/disciplines}/learning.md +0 -0
  164. /package/{runtime → .aether/docs/disciplines}/tdd.md +0 -0
  165. /package/{runtime → .aether/docs/disciplines}/verification-loop.md +0 -0
  166. /package/{runtime → .aether/docs/disciplines}/verification.md +0 -0
  167. /package/{runtime → .aether}/docs/pheromones.md +0 -0
  168. /package/{runtime → .aether}/model-profiles.yaml +0 -0
  169. /package/{runtime → .aether}/schemas/aether-types.xsd +0 -0
  170. /package/{runtime → .aether}/schemas/colony-registry.xsd +0 -0
  171. /package/{runtime → .aether}/schemas/pheromone.xsd +0 -0
  172. /package/{runtime → .aether}/schemas/prompt.xsd +0 -0
  173. /package/{runtime → .aether}/schemas/queen-wisdom.xsd +0 -0
  174. /package/{runtime → .aether}/schemas/worker-priming.xsd +0 -0
  175. /package/{runtime → .aether}/templates/QUEEN.md.template +0 -0
  176. /package/{runtime → .aether}/utils/colorize-log.sh +0 -0
  177. /package/{runtime → .aether}/utils/queen-to-md.xsl +0 -0
  178. /package/{runtime → .aether}/utils/spawn-tree.sh +0 -0
  179. /package/{runtime → .aether}/utils/spawn-with-model.sh +0 -0
  180. /package/{runtime → .aether}/utils/state-loader.sh +0 -0
  181. /package/{runtime → .aether}/utils/swarm-display.sh +0 -0
  182. /package/{runtime → .aether}/utils/watch-spawn-tree.sh +0 -0
  183. /package/{runtime → .aether}/utils/xml-core.sh +0 -0
@@ -1,402 +0,0 @@
1
- # Queen Ant Colony Architecture
2
-
3
- **True Emergence: Workers Spawn Workers**
4
-
5
- ---
6
-
7
- ## Core Principles
8
-
9
- 1. **Queen provides intention via constraints**
10
- 2. **Workers spawn workers directly (no Queen mediation)**
11
- 3. **Structure emerges from work, not orchestration**
12
- 4. **Depth-based behavior controls spawn cascades**
13
- 5. **Visual observability via tmux**
14
-
15
- ---
16
-
17
- ## The Architecture
18
-
19
- ```
20
- ┌─────────────────────────────────────────────────────────────┐
21
- │ QUEEN (User) │
22
- │ Provides goal, constraints (focus/avoid), observation │
23
- └────────────────────────┬────────────────────────────────────┘
24
-
25
- │ Signals (not commands)
26
-
27
- ┌────────────────┼────────────────┐
28
- │ │ │
29
- ▼ ▼ ▼
30
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
31
- │ /ant:init │ │ /ant:focus │ │/ant:redirect │
32
- │ Set goal │ │ Add focus │ │ Add avoid │
33
- └──────────────┘ └──────────────┘ └──────────────┘
34
- │ │ │
35
- └────────────────┼────────────────┘
36
-
37
-
38
- ┌─────────────────────────────────────────────┐
39
- │ CONSTRAINTS LAYER │
40
- │ Focus areas + Avoid patterns │
41
- │ Simple, declarative, no decay │
42
- └────────────────┬────────────────────────────┘
43
-
44
-
45
- ┌─────────────────────────────────────────────────────────────┐
46
- │ /ant:plan │
47
- │ Iterative Research/Planning Loop (up to 50 iterations) │
48
- │ Scout + Route-Setter until 95% confidence │
49
- └────────────────────────┬────────────────────────────────────┘
50
-
51
-
52
- ┌─────────────────────────────────────────────────────────────┐
53
- │ /ant:build │
54
- │ Spawns ONE Prime Worker │
55
- └────────────────────────┬────────────────────────────────────┘
56
-
57
-
58
- ┌─────────────────────────────────────────────────────────────┐
59
- │ PRIME WORKER │
60
- │ Depth 1: Coordinator (can spawn up to 4 specialists) │
61
- └────────────────────────┬────────────────────────────────────┘
62
-
63
- ┌────────────────┼────────────────┐
64
- │ │ │
65
- ▼ ▼ ▼
66
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
67
- │ BUILDER │ │ WATCHER │ │ SCOUT │
68
- │ Depth 2 │ │ Depth 2 │ │ Depth 2 │
69
- │ (can spawn 2)│ │ (can spawn 2)│ │ (can spawn 2)│
70
- └──────────────┘ └──────────────┘ └──────────────┘
71
- │ │ │
72
- ▼ ▼ ▼
73
- ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
74
- │ Sub-builder │ │ Sub-watcher │ │ Sub-scout │
75
- │ Depth 3 │ │ Depth 3 │ │ Depth 3 │
76
- │ (no spawn) │ │ (no spawn) │ │ (no spawn) │
77
- └──────────────┘ └──────────────┘ └──────────────┘
78
- ```
79
-
80
- ---
81
-
82
- ## Key Change: Workers Spawn Workers
83
-
84
- **Before (v2.0):**
85
- ```
86
- Queen → spawns Phase Lead → Phase Lead outputs SPAWN REQUEST text
87
- → Queen parses text → Queen spawns workers
88
- → Workers output SPAWN REQUEST → Queen parses → Queen spawns
89
-
90
- Result: "Emergence" was actually orchestration in disguise
91
- ```
92
-
93
- **After (v3.0):**
94
- ```
95
- Queen → spawns Prime Worker with Task tool
96
- → Prime Worker uses Task tool to spawn specialists
97
- → Specialists use Task tool to spawn sub-specialists (if surprised)
98
- → Depth 3 workers complete work inline
99
-
100
- Result: True emergence where structure comes from the work
101
- ```
102
-
103
- ---
104
-
105
- ## Depth-Based Behavior
106
-
107
- | Depth | Role | Can Spawn? | Max Spawns | Behavior |
108
- |-------|------|------------|------------|----------|
109
- | 1 | Prime Worker | Yes | 4 | Coordinate phase, spawn specialists |
110
- | 2 | Specialist | Yes (if surprised) | 2 | Focused work, spawn only for unexpected complexity |
111
- | 3 | Deep Specialist | No | 0 | Complete work inline |
112
-
113
- **Spawn Limits:**
114
- - Total cap per phase: 10 workers
115
- - Spawn only when genuinely surprised (3x+ expected complexity)
116
-
117
- ---
118
-
119
- ## Iterative Planning
120
-
121
- ### Iterative Research Loop
122
-
123
- ```
124
- /ant:plan triggers:
125
-
126
- for iteration in 1..50:
127
-
128
- Scout Ant (Research):
129
- → Explores codebase, web, docs
130
- → Returns findings + remaining gaps
131
- → Confidence contribution
132
-
133
- Route-Setter Ant (Planning):
134
- → Drafts/refines phase breakdown
135
- → Rates confidence across 5 dimensions
136
- → Returns plan + confidence score
137
-
138
- if confidence >= 95%:
139
- break
140
-
141
- # Anti-stuck checks:
142
- if gap stuck for 3 iterations → mark needs human input
143
- if confidence delta < 5% for 3 iterations → pause for user
144
- if confidence delta < 2% after iteration 10 → offer to accept
145
- ```
146
-
147
- ### Confidence Dimensions
148
-
149
- | Dimension | Weight | Measures |
150
- |-----------|--------|----------|
151
- | Knowledge | 25% | Understanding of codebase |
152
- | Requirements | 25% | Clarity of success criteria |
153
- | Risks | 20% | Identification of blockers |
154
- | Dependencies | 15% | What affects what |
155
- | Effort | 15% | Relative task complexity |
156
-
157
- ---
158
-
159
- ## Constraints System
160
-
161
- Simple, declarative guidance replacing the complex pheromone system.
162
-
163
- ### Storage
164
-
165
- ```json
166
- {
167
- "version": "1.0",
168
- "focus": ["area1", "area2"],
169
- "constraints": [
170
- {
171
- "id": "c_123",
172
- "type": "AVOID",
173
- "content": "pattern to avoid",
174
- "source": "user:redirect"
175
- }
176
- ]
177
- }
178
- ```
179
-
180
- ### Commands
181
-
182
- | Command | Effect |
183
- |---------|--------|
184
- | `/ant:focus "area"` | Add to focus list (max 5) |
185
- | `/ant:redirect "pattern"` | Add AVOID constraint (max 10) |
186
- | `/ant:council` | Interactive multi-choice to inject multiple signals |
187
-
188
- ### Council: Interactive Clarification
189
-
190
- When you need to inject multiple pheromones or clarify complex intent, use `/ant:council`:
191
-
192
- ```
193
- 📜🐜🏛️🐜📜 ANT COUNCIL
194
-
195
- Queen convenes the council to clarify intent via multi-choice questions.
196
-
197
- 1. Present topic menu (Project Direction, Quality Priorities, Constraints, Custom)
198
- 2. Drill down with specific questions based on selection
199
- 3. Auto-translate answers to FOCUS/REDIRECT/FEEDBACK signals
200
- 4. Inject pheromones atomically
201
- 5. Resume prior workflow
202
- ```
203
-
204
- **Key features:**
205
- - **Invocable anytime** — works in READY, EXECUTING, or PLANNING state
206
- - **Best-effort during build** — new signals apply to future work, not in-flight workers
207
- - **Source tracking** — signals tagged with `source: "council:*"` for audit
208
- - **Deduplication** — checks for existing signals before adding
209
-
210
- ### Swarm: Stubborn Bug Destroyer
211
-
212
- When repeated fix attempts fail, deploy the swarm with `/ant:swarm "<problem>"`:
213
-
214
- ```
215
- 🔥🐜🗡️🐜🔥 SWARM DEPLOYED
216
-
217
- Deploys 4 parallel scouts to investigate from multiple angles:
218
- 🏛️ Git Archaeologist — traces history to find when it broke
219
- 🔍 Pattern Hunter — finds working code in codebase
220
- 💥 Error Analyst — parses error chain to root cause
221
- 🌐 Web Researcher — searches docs/issues for solutions
222
-
223
- 1. Create git checkpoint
224
- 2. Deploy 4 scouts in parallel
225
- 3. Cross-compare findings
226
- 4. Rank solutions by confidence
227
- 5. Apply best fix
228
- 6. Verify and rollback if failed
229
- 7. Inject learnings as pheromones
230
- ```
231
-
232
- **Key features:**
233
- - **Parallel investigation** — 4 scouts work simultaneously
234
- - **Git checkpoint** — safe rollback if fix fails
235
- - **Evidence-based** — shows what each scout found
236
- - **Auto-apply** — executes best fix, not just suggestions
237
- - **Learning injection** — REDIRECT for failed patterns, FOCUS for what worked
238
- - **3-fix limit** — escalates to architectural concern after 3 failures
239
-
240
- ### What Changed
241
-
242
- | Before (Pheromones) | After (Constraints) |
243
- |---------------------|---------------------|
244
- | Decay over time | Persist until removed |
245
- | Sensitivity profiles | Workers read all constraints |
246
- | Signal strength math | Simple list lookup |
247
- | Complex TTL logic | No expiration |
248
-
249
- ---
250
-
251
- ## Live Visibility
252
-
253
- ### tmux Watch Session
254
-
255
- ```
256
- /ant:watch creates:
257
-
258
- ┌─────────────────────────┬───────────────────────────────┐
259
- │ Status │ Activity Log │
260
- │ │ │
261
- │ State: EXECUTING │ [10:05:01] START prime-worker │
262
- │ Phase: 1/3 │ [10:05:03] SPAWN builder-1 │
263
- │ Confidence: 95% │ [10:05:05] CREATED src/api.ts │
264
- │ │ [10:05:08] COMPLETE builder-1 │
265
- │ Active Workers: │ [10:05:09] SPAWN watcher-1 │
266
- │ [Prime] Coordinating │ │
267
- │ [Builder] Implementing│ │
268
- ├─────────────────────────┤ │
269
- │ Progress │ │
270
- │ [████████████░░░░░░] 67%│ │
271
- └─────────────────────────┴───────────────────────────────┘
272
- ```
273
-
274
- ### Activity Log
275
-
276
- Workers log as they work:
277
- ```bash
278
- bash .aether/aether-utils.sh activity-log "ACTION" "caste" "description"
279
- ```
280
-
281
- Actions: CREATED, MODIFIED, RESEARCH, SPAWN, ERROR, COMPLETE
282
-
283
- ---
284
-
285
- ## Worker Castes
286
-
287
- ### Prime Worker (Depth 1 only)
288
-
289
- Coordinator role. Analyzes phase tasks, decides what to delegate, spawns specialists, synthesizes results.
290
-
291
- ### Builder
292
-
293
- Implements code, executes commands, manipulates files.
294
-
295
- ### Watcher
296
-
297
- Validates, tests, ensures quality. Mandatory quality gate.
298
-
299
- ### Scout
300
-
301
- Researches, searches docs, gathers context.
302
-
303
- ### Colonizer
304
-
305
- Explores codebase, maps structure, detects patterns.
306
-
307
- ### Route-Setter
308
-
309
- Creates plans, decomposes goals, analyzes dependencies.
310
-
311
- ### Architect
312
-
313
- Synthesizes knowledge, extracts patterns, coordinates documentation.
314
-
315
- ---
316
-
317
- ## Visual Checkpoint
318
-
319
- For phases that touch UI:
320
-
321
- 1. Prime Worker reports `ui_touched: true`
322
- 2. Queen prompts: "Visual checkpoint - verify appearance?"
323
- 3. User approves/rejects
324
- 4. Recorded in events
325
-
326
- ---
327
-
328
- ## State (v3.0)
329
-
330
- Simplified from v2.0:
331
-
332
- ```json
333
- {
334
- "version": "3.0",
335
- "goal": "...",
336
- "state": "IDLE | READY | PLANNING | EXECUTING",
337
- "current_phase": 0,
338
- "session_id": "...",
339
- "initialized_at": "...",
340
- "build_started_at": null,
341
- "plan": {
342
- "generated_at": "...",
343
- "confidence": 95,
344
- "phases": [...]
345
- },
346
- "memory": {
347
- "phase_learnings": [...],
348
- "decisions": [...]
349
- },
350
- "errors": {
351
- "records": [...],
352
- "flagged_patterns": [...]
353
- },
354
- "events": [...]
355
- }
356
- ```
357
-
358
- **Removed:**
359
- - `mode`, `mode_set_at`, `mode_indicators`
360
- - `workers` status tracking (workers are ephemeral)
361
- - `spawn_outcomes` Bayesian tracking
362
- - `signals` array (replaced by constraints.json)
363
-
364
- ---
365
-
366
- ## Command Reference
367
-
368
- | Command | Purpose |
369
- |---------|---------|
370
- | `/ant:init "goal"` | Initialize colony with intention |
371
- | `/ant:plan` | Iterative planning until 95% confidence |
372
- | `/ant:build N` | Build phase N with Prime Worker |
373
- | `/ant:continue` | Advance to next phase |
374
- | `/ant:focus "area"` | Add focus constraint |
375
- | `/ant:redirect "pattern"` | Add avoid constraint |
376
- | `/ant:council` | 📜🐜🏛️🐜📜 Multi-choice intent clarification |
377
- | `/ant:swarm "problem"` | 🔥🐜🗡️🐜🔥 Stubborn bug destroyer |
378
- | `/ant:status` | Quick colony status |
379
- | `/ant:watch` | Set up tmux for live viewing |
380
-
381
- ---
382
-
383
- ## What This Achieves
384
-
385
- **Simpler:**
386
- - 415-line build.md → 150 lines
387
- - No wave planning, no SPAWN REQUEST parsing
388
- - No pheromone decay math
389
-
390
- **More Emergent:**
391
- - Workers actually spawn workers
392
- - Structure emerges from work
393
- - Prime Worker self-organizes
394
-
395
- **More Observable:**
396
- - tmux live view
397
- - Activity log streaming
398
- - Confidence tracking
399
-
400
- ---
401
-
402
- **This architecture represents true emergence: Queen sets intention, workers self-organize.**
@@ -1,41 +0,0 @@
1
- {
2
- "signatures": [
3
- {
4
- "pattern": "TODO|FIXME|XXX|HACK",
5
- "name": "todo-marker",
6
- "description": "Code markers indicating pending work",
7
- "confidence": 0.9,
8
- "category": "maintenance"
9
- },
10
- {
11
- "pattern": "console\\.(log|warn|error|debug)",
12
- "name": "debug-logging",
13
- "description": "Console logging statements",
14
- "confidence": 0.8,
15
- "category": "debugging"
16
- },
17
- {
18
- "pattern": "describe\\s*\\(|it\\s*\\(|test\\s*\\(",
19
- "name": "test-definition",
20
- "description": "Test case definitions",
21
- "confidence": 0.95,
22
- "category": "testing"
23
- },
24
- {
25
- "pattern": "function\\s+\\w+\\s*\\(|const\\s+\\w+\\s*=\\s*\\(|async\\s+function",
26
- "name": "function-definition",
27
- "description": "Function declarations",
28
- "confidence": 0.85,
29
- "category": "structure"
30
- },
31
- {
32
- "pattern": "import\\s+|require\\s*\\(",
33
- "name": "module-import",
34
- "description": "Module import statements",
35
- "confidence": 0.9,
36
- "category": "dependencies"
37
- }
38
- ],
39
- "version": "1.0.0",
40
- "last_updated": ""
41
- }