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,219 +0,0 @@
1
- # Aether Visual Output Specification
2
-
3
- ## Problem Statement
4
-
5
- Current issues:
6
- 1. Workers output their entire RETURN FORMAT templates to the user
7
- 2. No real-time visibility into what workers are doing
8
- 3. Scrolling bash commands instead of clean task updates
9
- 4. No hierarchical tree view of workers
10
-
11
- ## Target Visual Experience
12
-
13
- ### Real-Time Worker Tree (updates in place)
14
-
15
- ```
16
- 🔨 COLONY BUILD — Phase 1: Foundation
17
- ═══════════════════════════════════════
18
-
19
- 👑 Queen
20
- ├── 🔨 Anvil-51 Task 1.1 Creating database schema...
21
- │ └── 🔍 Scout-12 Sub-task Checking existing tables...
22
- ├── 🔨 Hammer-12 Task 1.2 Setting up auth middleware...
23
- │ └── ✅ Complete
24
- ├── 👁️ Vigil-23 Verifying Running tests...
25
- └── 🎲 Chaos-8 Testing Edge case exploration...
26
-
27
- Progress: [████████████░░░░░░░░] 60%
28
- ```
29
-
30
- ### Activity Stream (compact, no scrolling)
31
-
32
- ```
33
- 10:05:01 🥚 Queen Phase 1 started
34
- 10:05:02 🔨 Anvil-51 Task 1.1: Creating database schema
35
- 10:05:03 🔍 Scout-12 Spawned by Anvil-51: Checking tables
36
- 10:05:05 🔨 Hammer-12 Task 1.2: Setting up auth
37
- 10:05:08 🔨 Hammer-12 → Complete
38
- 10:05:09 👁️ Vigil-23 Verification started
39
- ```
40
-
41
- ### Worker Spawn (instant notification)
42
-
43
- ```
44
- 🐜 SPAWNED 🔨 Anvil-51 (Builder) Task 1.1: Database schema
45
- ```
46
-
47
- ### Worker Complete (instant notification)
48
-
49
- ```
50
- ✅ DONE 🔨 Anvil-51 (Builder) Task 1.1 3 files created
51
- ```
52
-
53
- ## Implementation Requirements
54
-
55
- ### 1. Worker Output Rules
56
-
57
- **NEVER output these to user:**
58
- - ❌ "--- YOUR TASK ---" headers
59
- - ❌ "--- RETURN FORMAT ---" sections
60
- - ❌ JSON schema explanations
61
- - ❌ Instructions on how to return data
62
-
63
- **DO output:**
64
- - ✅ Progress updates: "Task 1.1: Creating tables..."
65
- - ✅ Completion: "✅ Task 1.1 complete — 3 files created"
66
- - ✅ Spawn events: "🐜 Spawning Scout-12 to check tables"
67
-
68
- ### 2. Worker Prompt Structure (clean output)
69
-
70
- ```markdown
71
- You are {name}, a {emoji} {Caste} Ant.
72
-
73
- Task: {task_description}
74
-
75
- Work and report progress:
76
- - Use activity-log for each step: bash .aether/aether-utils.sh activity-log "ACTION" "{name}" "description"
77
- - Update swarm display: bash .aether/aether-utils.sh swarm-display-update ...
78
- - When spawning sub-workers, announce: "🐜 Spawning {child_name} for {reason}"
79
-
80
- Return ONLY this JSON at completion (no other text):
81
- {"status": "completed|failed", "summary": "...", "files_created": [...]}
82
- ```
83
-
84
- ### 3. Visual Update Protocol
85
-
86
- **Every worker must:**
87
-
88
- 1. **On spawn**: Call `swarm-display-update` with status "excavating"
89
- 2. **Every 30 seconds OR at task switch**: Update swarm display with new task description
90
- 3. **On sub-spawn**: Log "🐜 Spawning {child} for {reason}"
91
- 4. **On complete**: Call `spawn-complete` and return clean JSON
92
-
93
- ### 4. Caste Emoji Mapping
94
-
95
- | Caste | Emoji | Color (if supported) |
96
- |-------|-------|---------------------|
97
- | Builder | 🔨 | Cyan |
98
- | Watcher | 👁️ | Green |
99
- | Scout | 🔍 | Yellow |
100
- | Chaos | 🎲 | Red |
101
- | Archaeologist | 🏺 | Magenta |
102
- | Colonizer | 🧹 | Blue |
103
- | Architect | 🏛️ | White |
104
- | Prime/Queen | 🥚 | Bold |
105
- | Oracle | 🔮 | Magenta |
106
- | Dreamer | 💭 | Blue |
107
- | Interpreter | 🔍 | Yellow |
108
- | Chaos | 🎲 | Red |
109
- | Alate | 🪽 | Cyan |
110
-
111
- ### 5. Task Display Format
112
-
113
- ```
114
- {emoji} {Name:<12} {Task:<30} {Status}
115
- ```
116
-
117
- Examples:
118
- ```
119
- 🔨 Anvil-51 Task 1.1: Database schema ●●● 60%
120
- 👁️ Vigil-23 Verifying auth module observing...
121
- 🎲 Chaos-8 Testing edge cases disrupting...
122
- ```
123
-
124
- ### 6. Tree View Format (for final summary)
125
-
126
- ```
127
- 👑 Queen
128
- ├── 🔨 Anvil-51 Task 1.1 [✅ done]
129
- │ └── 🔍 Scout-12 Sub-task [✅ done]
130
- ├── 🔨 Hammer-12 Task 1.2 [✅ done]
131
- └── 👁️ Vigil-23 Verify [✅ done]
132
- └── 🎲 Chaos-8 Stress [✅ done]
133
- ```
134
-
135
- ### 7. Progress Bar Standard
136
-
137
- ```javascript
138
- // Render progress bar
139
- function progressBar(percent, width = 20) {
140
- const filled = Math.round((percent / 100) * width);
141
- const empty = width - filled;
142
- return '█'.repeat(filled) + '░'.repeat(empty);
143
- }
144
-
145
- // Usage
146
- progressBar(60) // ████████████░░░░░░░░
147
- ```
148
-
149
- ### 8. No Scroll Rule
150
-
151
- **Updates should modify display in place, not scroll:**
152
- - Use `swarm-display.json` as shared state
153
- - `swarm-display.sh` renders current state (clears screen)
154
- - Workers only update the JSON, don't print progress
155
- - User runs `/ant:watch` to see live display
156
- - Without watch mode: only see spawn/complete events
157
-
158
- ## Worker Output Examples
159
-
160
- ### Good Output
161
-
162
- ```
163
- 🐜 Spawning Scout-12 to check existing tables
164
- 🔍 Scout-12: Found 3 existing tables
165
- 🔍 Scout-12: Table 'users' needs migration
166
- ✅ Scout-12 complete — analysis done
167
- ```
168
-
169
- ### Bad Output (what we have now)
170
-
171
- ```
172
- --- YOUR TASK ---
173
- Check existing database tables
174
-
175
- --- RETURN FORMAT ---
176
- Task: {what you were asked to do}
177
- Status: completed / failed / blocked
178
- Summary: {1-2 sentences}
179
- Files: {only if you touched files}
180
- Spawn Tree: {only if you spawned sub-workers}
181
- Next Steps / Recommendations: {required}
182
-
183
- --- MODEL CONTEXT ---
184
- Assigned model: kimi-k2.5
185
- Caste: scout
186
- ...
187
- ```
188
-
189
- ## Migration Checklist
190
-
191
- Update all command files to remove:
192
- - [ ] "--- YOUR TASK ---" headers
193
- - [ ] "--- RETURN FORMAT ---" sections
194
- - [ ] "--- MODEL CONTEXT ---" sections
195
- - [ ] Detailed JSON schema explanations
196
- - [ ] Instructional text meant for prompt only
197
-
198
- Replace with:
199
- - [ ] Clean spawn announcements
200
- - [ ] Progress via activity-log only
201
- - [ ] Clean completion JSON only
202
- - [ ] Visual tree in final summary
203
-
204
- ## Commands to Update
205
-
206
- 1. `/ant:build` — Clean worker prompts
207
- 2. `/ant:swarm` — Clean scout prompts
208
- 3. `/ant:oracle` — Clean researcher prompts
209
- 4. `/ant:colonize` — Clean colonizer prompts
210
- 5. `/ant:dream` — Clean dreamer prompts
211
- 6. `/ant:watch` — Ensure clean rendering
212
-
213
- ## Status
214
-
215
- - [x] Visual specification defined
216
- - [ ] Worker prompts cleaned
217
- - [ ] Return format minimized
218
- - [ ] Tree view implemented
219
- - [ ] Progress bars standardized
@@ -1,272 +0,0 @@
1
- # Biological Reference: Ant Colony Research & Naming Taxonomy
2
-
3
- This document collects 40+ biologically grounded resources and a complete ant-biologically-accurate command/milestone naming system for Aether.
4
-
5
- ---
6
-
7
- ## Part 1: Research Sources
8
-
9
- ### Foundational / Synthesis
10
-
11
- 1. Holldobler & Wilson, *The Ants* (book overview/reference).
12
- 2. Czaczkes et al. (2015) review: trail pheromones as regulation/feedback in colony organization (PDF).
13
- 3. Muscedere & Traniello (2012) division of labor in *Pheidole* (open access).
14
- 4. Lillico-Ouachour & Abouheif (2017) caste ratios / regulation in *Pheidole* (review).
15
- 5. de Pletincx et al. (2021) worker polymorphism evolution + social traits (PDF).
16
-
17
- ### Trail Pheromones / Foraging Decisions
18
-
19
- 6. Czaczkes (2012) complexity of foraging trails (open access).
20
- 7. Czaczkes et al. (2015) pheromone deposition adjusts with conditions (Royal Society).
21
- 8. Oberhauser et al. (2020) pheromone trails vs subjective reward (Frontiers).
22
- 9. Pheromone trail following in *Lasius niger* (2016, Wiley).
23
- 10. Sakiyama et al. (2025) naive ants moving faster when encountering returning flow / trail context (Sci Rep).
24
-
25
- ### Nest Architecture / Excavation / Ventilation
26
-
27
- 11. Tschinkel (2003) subterranean ant nests; plaster casting; architecture units (AntWiki PDF).
28
- 12. Tschinkel (2015) architecture of subterranean nests (AntWiki PDF).
29
- 13. Sankovitz et al. (2021) nest architecture shaped by adaptation/environment (Sci Rep).
30
- 14. Yang et al. (2022) review of ant nests (MDPI Buildings).
31
- 15. Yang et al. (2022) ventilation simulation in underground nests (MDPI Sustainability).
32
- 16. Bollazzi et al. (2021) CO2 levels + ventilation in *Acromyrmex* nests (Royal Society Open Science).
33
- 17. "Nest Entrance Architecture and regulation of foraging activity" (2025, Wiley).
34
- 18. "Colony demographics shape nest construction" (2024, eLife reviewed preprint).
35
-
36
- ### Brood Effects / Caste Aggregation / Development
37
-
38
- 19. Sempo et al. (2006) brood influences aggregation patterns in dimorphic ants (Springer).
39
- 20. Ravary et al. (2007) experience can generate lasting division of labor (Current Biology).
40
- 21. Enzmann et al. (2021) age-related division of labor appears early (PDF).
41
- 22. Khajehnejad et al. (2025) age polyethism can emerge from social learning (open access).
42
- 23. Trible et al. (2023) caste differentiation mutant; queen-like traits in workers (open access).
43
- 24. Hughes et al. (2003) genetic basis of worker caste polymorphism (PNAS).
44
-
45
- ### Nestmate Recognition / Cuticular Hydrocarbons (CHCs) / Communication Interference
46
-
47
- 25. Yusuf et al. (2010) CHCs + nestmate discrimination (PubMed).
48
- 26. Walsh et al. (2020) CHCs heritable; aggression/nestmate recognition (Royal Society).
49
- 27. "Learning and perceptual similarity among cuticular hydrocarbons" (2011, J. Insect Physiology).
50
- 28. "A Review of Ant Cuticular Hydrocarbons" (review listing CHC diversity) (ResearchGate).
51
- 29. Wittke et al. (2022) acclimation / communication interference; CHC functions intertwined (Functional Ecology).
52
- 30. Jiang et al. (2026) oxidizing pollutants disrupt recognition; CHCs in recognition/division of labor (PNAS).
53
-
54
- ### Trophallaxis (Social Fluid Exchange)
55
-
56
- 31. LeBoeuf et al. (2016) trophallaxis transfers growth/hormone regulators; communal control (open access).
57
- 32. Meurville & LeBoeuf (2021) trophallaxis forms/functions/evolution (AntWiki PDF).
58
- 33. Lenoir (1982) antennal communication around trophallaxis information transfer (ScienceDirect).
59
- 34. eLife press explainer on trophallaxis communication (background + pointers).
60
- 35. Myrmecological News blog summary pointing to review literature on trophallaxis (secondary).
61
- 36. Wired coverage (secondary) referencing Lausanne work on trophallaxis molecules (use as pointer only).
62
-
63
- ### Additional Biology/Behavior Pointers
64
-
65
- 37. Scientific American overview of pheromones (historical, general definition).
66
- 38. "The Guests of Ants" sample (division of labor framing in ants; background).
67
- 39. "Ants Sense, and Follow, Trail Pheromones of Ant Community Members" (pointer/landing).
68
- 40. "How brood influences caste aggregation patterns..." duplicate access route (landing).
69
- 41. "Nest-Building Behaviour in Ants..." (recent landing; verify underlying primary refs if used).
70
-
71
- > **Note:** For stricter "primary-only," drop the obvious secondary/landing items (#35-36, #41, and any ResearchGate-only landings) and replace them with the underlying journal PDFs/DOIs.
72
-
73
- ---
74
-
75
- ## Part 2: Ant-Biologically-Accurate Command Naming System
76
-
77
- ### Naming Rules
78
-
79
- - **Prefix** = caste/role (real in ant biology): queen, alate, worker, forager, scout, nurse, soldier, mason, undertaker, sentinel
80
- - **Verb** = behavior (documented): trail, recruit, troph, brood, excavate, ventilate, recognize, quarantine
81
- - **Object** = dev artifact: repo, deps, api, patch, build, test, release, docs, bench, log
82
-
83
- ### Recommended Shape
84
-
85
- - CLI style: `colony <role>:<verb> [target]`
86
- - Slash style: `/<role>:<verb> <target>`
87
-
88
- ---
89
-
90
- ### 1) Scout Commands (recon, unknowns, discovery)
91
-
92
- | Command | Purpose |
93
- |---|---|
94
- | `scout:scan` | Repo surface scan |
95
- | `scout:probe` | Single uncertainty check |
96
- | `scout:trace` | Follow call chain |
97
- | `scout:map` | Dependency map |
98
- | `scout:diff` | Compare branches/builds |
99
- | `scout:grep` | Targeted search |
100
- | `scout:catalog` | Inventory files/assets |
101
- | `scout:triage` | Classify issues |
102
- | `scout:repro` | Reproduction script |
103
- | `scout:scope` | What's in/out |
104
- | `scout:verify` | Fact-check a claim |
105
- | `scout:baseline` | Capture current metrics |
106
-
107
- ### 2) Forager Commands (fetch inputs, examples, references, fixtures)
108
-
109
- | Command | Purpose |
110
- |---|---|
111
- | `forager:fetch` | Pull examples/specs |
112
- | `forager:harvest` | Collect logs/traces |
113
- | `forager:gather` | Bundle test assets |
114
- | `forager:mirror` | Cache deps |
115
- | `forager:pin` | Lock versions |
116
- | `forager:seed` | Starter config/templates |
117
- | `forager:hydrate` | Install deps |
118
- | `forager:pack` | Vendor assets |
119
- | `forager:stash` | Store artifacts |
120
-
121
- ### 3) Worker Commands (implementation)
122
-
123
- | Command | Purpose |
124
- |---|---|
125
- | `worker:build` | Build |
126
- | `worker:patch` | Patch |
127
- | `worker:refactor` | Refactor |
128
- | `worker:wire` | Integrate modules |
129
- | `worker:glue` | Adapters |
130
- | `worker:generate` | Scaffold |
131
- | `worker:migrate` | Migrate |
132
- | `worker:upgrade` | Upgrade |
133
- | `worker:optimize` | Optimize |
134
- | `worker:document` | Document |
135
- | `worker:instrument` | Logs/metrics |
136
- | `worker:benchmark` | Benchmark |
137
-
138
- ### 4) Nurse Commands (brood care = nurturing early-stage code/PRs)
139
-
140
- | Command | Purpose |
141
- |---|---|
142
- | `nurse:incubate` | Feature branch incubation |
143
- | `nurse:feed` | Add missing inputs/tests |
144
- | `nurse:prune` | Remove dead code paths |
145
- | `nurse:stabilize` | Reduce flakiness |
146
- | `nurse:coach` | Lint/style fixes |
147
- | `nurse:handoff` | Clean PR handover |
148
- | `nurse:guardrails` | Add invariants |
149
- | `nurse:heal` | Fix failing tests quickly |
150
-
151
- ### 5) Mason Commands (nest building = architecture, structure, infra)
152
-
153
- | Command | Purpose |
154
- |---|---|
155
- | `mason:excavate` | New module/dir layout |
156
- | `mason:chamber` | Subsystem boundary |
157
- | `mason:tunnel` | Pipeline/CI routing |
158
- | `mason:ventilate` | Performance/throughput work |
159
- | `mason:reinforce` | Hardening |
160
- | `mason:seal` | Interface freeze |
161
- | `mason:cast` | Reproducible build "cast" |
162
- | `mason:foundation` | Bootstrap |
163
- | `mason:relocate` | Move components safely |
164
-
165
- ### 6) Pheromone/Trail Commands (shared state, routing, prioritization signals)
166
-
167
- | Command | Purpose |
168
- |---|---|
169
- | `trail:mark` | Set priority |
170
- | `trail:boost` | Raise confidence/urgency |
171
- | `trail:dampen` | De-prioritize |
172
- | `trail:follow` | Execute critical path |
173
- | `trail:branch` | Explore alternative path |
174
- | `trail:merge` | Consolidate findings |
175
- | `trail:cleanup` | Remove stale signals |
176
- | `trail:route` | Choose pipeline path |
177
-
178
- ### 7) Recognition Commands (CHC-inspired = identity/compat checks)
179
-
180
- | Command | Purpose |
181
- |---|---|
182
- | `recognize:nestmate` | Same-environment check |
183
- | `recognize:drift` | Config drift detection |
184
- | `recognize:compat` | ABI/API compatibility |
185
- | `recognize:fingerprint` | Artifact hash |
186
- | `recognize:provenance` | Where built/from what |
187
- | `recognize:attest` | SBOM/attestation step |
188
- | `recognize:policy` | Rules compliance |
189
-
190
- ### 8) Sentinel Commands (tests, gates, watch)
191
-
192
- | Command | Purpose |
193
- |---|---|
194
- | `sentinel:test` | Test |
195
- | `sentinel:unit` | Unit tests |
196
- | `sentinel:integration` | Integration tests |
197
- | `sentinel:e2e` | End-to-end tests |
198
- | `sentinel:soak` | Soak tests |
199
- | `sentinel:load` | Load tests |
200
- | `sentinel:gate` | Release gate |
201
- | `sentinel:watch` | Tail logs/metrics |
202
- | `sentinel:alarm` | Notify on regressions |
203
- | `sentinel:assert` | Invariant checks |
204
- | `sentinel:canary` | Canary deploy |
205
- | `sentinel:rollback-check` | Rollback check |
206
-
207
- ### 9) Undertaker Commands (dead code, cleanup, postmortems)
208
-
209
- | Command | Purpose |
210
- |---|---|
211
- | `undertaker:collect` | Dead code inventory |
212
- | `undertaker:bury` | Delete safely |
213
- | `undertaker:quarantine` | Isolate |
214
- | `undertaker:autopsy` | Root cause |
215
- | `undertaker:purge` | Cache/artifact cleanup |
216
- | `undertaker:deprecate` | Soft removal |
217
- | `undertaker:archive` | Close issue/milestone |
218
-
219
- ### 10) Soldier Commands (defense = security, reliability under attack)
220
-
221
- | Command | Purpose |
222
- |---|---|
223
- | `soldier:shield` | Hardening pass |
224
- | `soldier:scan` | Security scan |
225
- | `soldier:patch` | CVE response |
226
- | `soldier:lockdown` | Freeze deps |
227
- | `soldier:rate-limit` | Rate limiting |
228
- | `soldier:sandbox` | Sandboxing |
229
- | `soldier:contain` | Incident containment |
230
- | `soldier:drill` | Game-day |
231
-
232
- ### 11) Queen Commands (decisions, scope, release authority)
233
-
234
- | Command | Purpose |
235
- |---|---|
236
- | `queen:decree` | Set direction |
237
- | `queen:prioritize` | Prioritize |
238
- | `queen:approve` | Merge/release approval |
239
- | `queen:scope` | Scope |
240
- | `queen:freeze` | Feature freeze |
241
- | `queen:unfreeze` | Unfreeze |
242
- | `queen:allocate` | Assign "castes" |
243
- | `queen:standardize` | Naming/structure rules |
244
-
245
- ### 12) Alate Commands (nuptial flight = release/launch branching)
246
-
247
- | Command | Purpose |
248
- |---|---|
249
- | `alate:flight` | Launch |
250
- | `alate:tag` | Tag |
251
- | `alate:ship` | Ship |
252
- | `alate:announce` | Announce |
253
- | `alate:handover` | Ops handoff |
254
- | `alate:seed-new-nest` | Start next major |
255
- | `alate:hotfix-flight` | Hotfix |
256
- | `alate:rollback-flight` | Rollback |
257
-
258
- ---
259
-
260
- ## Part 3: Anthill Milestone Names
261
-
262
- Biologically plausible metaphors for project milestones:
263
-
264
- | Milestone | Meaning | Biological Basis |
265
- |---|---|---|
266
- | **First Mound** | First runnable | Initial nest construction |
267
- | **Open Chambers** | Feature work underway | Excavation of functional chambers |
268
- | **Brood Stable** | Tests consistently green | Brood care = healthy larvae development |
269
- | **Ventilated Nest** | Perf/latency acceptable | Ants actively manage nest airflow |
270
- | **Sealed Chambers** | Interfaces frozen | Completed chambers sealed from tunnels |
271
- | **Crowned Anthill** | Release | Mature colony with established queen |
272
- | **New Nest Founded** | Next major version line | Nuptial flight → new colony founding |