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.
- package/.aether/aether-utils.sh +181 -5
- package/.aether/commands/archaeology.yaml +3 -3
- package/.aether/commands/build.yaml +80 -45
- package/.aether/commands/chaos.yaml +7 -7
- package/.aether/commands/colonize.yaml +17 -17
- package/.aether/commands/continue.yaml +40 -40
- package/.aether/commands/council.yaml +6 -6
- package/.aether/commands/data-clean.yaml +3 -3
- package/.aether/commands/dream.yaml +2 -2
- package/.aether/commands/entomb.yaml +12 -12
- package/.aether/commands/export-signals.yaml +2 -2
- package/.aether/commands/feedback.yaml +6 -6
- package/.aether/commands/flag.yaml +2 -2
- package/.aether/commands/flags.yaml +4 -4
- package/.aether/commands/focus.yaml +6 -6
- package/.aether/commands/help.yaml +1 -1
- package/.aether/commands/history.yaml +1 -1
- package/.aether/commands/import-signals.yaml +2 -2
- package/.aether/commands/init.yaml +44 -27
- package/.aether/commands/insert-phase.yaml +1 -1
- package/.aether/commands/interpret.yaml +2 -2
- package/.aether/commands/lay-eggs.yaml +3 -3
- package/.aether/commands/maturity.yaml +2 -2
- package/.aether/commands/memory-details.yaml +1 -1
- package/.aether/commands/migrate-state.yaml +1 -1
- package/.aether/commands/oracle.yaml +147 -82
- package/.aether/commands/organize.yaml +5 -5
- package/.aether/commands/patrol.yaml +8 -8
- package/.aether/commands/pause-colony.yaml +7 -7
- package/.aether/commands/phase.yaml +1 -1
- package/.aether/commands/pheromones.yaml +1 -1
- package/.aether/commands/plan.yaml +14 -14
- package/.aether/commands/quick.yaml +4 -4
- package/.aether/commands/redirect.yaml +6 -6
- package/.aether/commands/resume-colony.yaml +9 -9
- package/.aether/commands/resume.yaml +5 -38
- package/.aether/commands/run.yaml +10 -10
- package/.aether/commands/seal.yaml +33 -33
- package/.aether/commands/skill-create.yaml +4 -4
- package/.aether/commands/status.yaml +14 -14
- package/.aether/commands/swarm.yaml +14 -14
- package/.aether/commands/tunnels.yaml +7 -7
- package/.aether/commands/update.yaml +1 -1
- package/.aether/commands/verify-castes.yaml +3 -3
- package/.aether/commands/watch.yaml +15 -15
- package/.aether/docs/command-playbooks/build-complete.md +48 -15
- package/.aether/docs/command-playbooks/build-context.md +11 -11
- package/.aether/docs/command-playbooks/build-full.md +76 -76
- package/.aether/docs/command-playbooks/build-prep.md +10 -10
- package/.aether/docs/command-playbooks/build-verify.md +27 -27
- package/.aether/docs/command-playbooks/build-wave.md +38 -38
- package/.aether/docs/command-playbooks/continue-advance.md +60 -27
- package/.aether/docs/command-playbooks/continue-finalize.md +25 -11
- package/.aether/docs/command-playbooks/continue-full.md +60 -46
- package/.aether/docs/command-playbooks/continue-gates.md +18 -18
- package/.aether/docs/command-playbooks/continue-verify.md +10 -10
- package/.aether/docs/source-of-truth-map.md +10 -10
- package/.aether/docs/structural-learning-stack.md +283 -0
- package/.aether/templates/colony-state-template.json +1 -0
- package/.aether/utils/consolidation-seal.sh +196 -0
- package/.aether/utils/consolidation.sh +127 -0
- package/.aether/utils/curation-ants/archivist.sh +97 -0
- package/.aether/utils/curation-ants/critic.sh +214 -0
- package/.aether/utils/curation-ants/herald.sh +102 -0
- package/.aether/utils/curation-ants/janitor.sh +121 -0
- package/.aether/utils/curation-ants/librarian.sh +99 -0
- package/.aether/utils/curation-ants/nurse.sh +153 -0
- package/.aether/utils/curation-ants/orchestrator.sh +181 -0
- package/.aether/utils/curation-ants/scribe.sh +164 -0
- package/.aether/utils/curation-ants/sentinel.sh +119 -0
- package/.aether/utils/event-bus.sh +301 -0
- package/.aether/utils/graph.sh +559 -0
- package/.aether/utils/instinct-store.sh +401 -0
- package/.aether/utils/learning.sh +79 -7
- package/.aether/utils/oracle/oracle-stop-hook.sh +896 -0
- package/.aether/utils/session.sh +13 -0
- package/.aether/utils/state-api.sh +1 -1
- package/.aether/utils/trust-scoring.sh +347 -0
- package/.aether/utils/worktree.sh +97 -0
- package/.claude/commands/ant/archaeology.md +2 -2
- package/.claude/commands/ant/chaos.md +4 -4
- package/.claude/commands/ant/colonize.md +9 -9
- package/.claude/commands/ant/council.md +6 -6
- package/.claude/commands/ant/data-clean.md +3 -3
- package/.claude/commands/ant/dream.md +2 -2
- package/.claude/commands/ant/entomb.md +9 -9
- package/.claude/commands/ant/export-signals.md +2 -2
- package/.claude/commands/ant/feedback.md +4 -4
- package/.claude/commands/ant/flag.md +2 -2
- package/.claude/commands/ant/flags.md +4 -4
- package/.claude/commands/ant/focus.md +4 -4
- package/.claude/commands/ant/help.md +1 -1
- package/.claude/commands/ant/history.md +1 -1
- package/.claude/commands/ant/import-signals.md +2 -2
- package/.claude/commands/ant/init.md +44 -27
- package/.claude/commands/ant/insert-phase.md +1 -1
- package/.claude/commands/ant/interpret.md +2 -2
- package/.claude/commands/ant/lay-eggs.md +2 -2
- package/.claude/commands/ant/maturity.md +2 -2
- package/.claude/commands/ant/memory-details.md +1 -1
- package/.claude/commands/ant/migrate-state.md +1 -1
- package/.claude/commands/ant/oracle.md +78 -42
- package/.claude/commands/ant/organize.md +3 -3
- package/.claude/commands/ant/patrol.md +8 -8
- package/.claude/commands/ant/pause-colony.md +5 -5
- package/.claude/commands/ant/phase.md +1 -1
- package/.claude/commands/ant/pheromones.md +1 -1
- package/.claude/commands/ant/plan.md +8 -8
- package/.claude/commands/ant/quick.md +4 -4
- package/.claude/commands/ant/redirect.md +4 -4
- package/.claude/commands/ant/resume-colony.md +5 -5
- package/.claude/commands/ant/resume.md +17 -29
- package/.claude/commands/ant/run.md +10 -10
- package/.claude/commands/ant/seal.md +25 -25
- package/.claude/commands/ant/skill-create.md +2 -2
- package/.claude/commands/ant/status.md +14 -14
- package/.claude/commands/ant/swarm.md +14 -14
- package/.claude/commands/ant/tunnels.md +4 -4
- package/.claude/commands/ant/update.md +1 -1
- package/.claude/commands/ant/verify-castes.md +2 -2
- package/.claude/commands/ant/watch.md +8 -8
- package/.opencode/commands/ant/archaeology.md +1 -1
- package/.opencode/commands/ant/build.md +80 -45
- package/.opencode/commands/ant/chaos.md +3 -3
- package/.opencode/commands/ant/colonize.md +8 -8
- package/.opencode/commands/ant/continue.md +40 -40
- package/.opencode/commands/ant/council.md +5 -5
- package/.opencode/commands/ant/data-clean.md +2 -2
- package/.opencode/commands/ant/dream.md +1 -1
- package/.opencode/commands/ant/entomb.md +3 -3
- package/.opencode/commands/ant/export-signals.md +1 -1
- package/.opencode/commands/ant/feedback.md +2 -2
- package/.opencode/commands/ant/flag.md +1 -1
- package/.opencode/commands/ant/flags.md +3 -3
- package/.opencode/commands/ant/focus.md +2 -2
- package/.opencode/commands/ant/import-signals.md +1 -1
- package/.opencode/commands/ant/init.md +44 -27
- package/.opencode/commands/ant/insert-phase.md +1 -1
- package/.opencode/commands/ant/interpret.md +1 -1
- package/.opencode/commands/ant/lay-eggs.md +2 -2
- package/.opencode/commands/ant/maturity.md +1 -1
- package/.opencode/commands/ant/memory-details.md +1 -1
- package/.opencode/commands/ant/oracle.md +69 -40
- package/.opencode/commands/ant/organize.md +2 -2
- package/.opencode/commands/ant/patrol.md +8 -8
- package/.opencode/commands/ant/pause-colony.md +2 -2
- package/.opencode/commands/ant/pheromones.md +1 -1
- package/.opencode/commands/ant/plan.md +6 -6
- package/.opencode/commands/ant/quick.md +4 -4
- package/.opencode/commands/ant/redirect.md +2 -2
- package/.opencode/commands/ant/resume-colony.md +4 -4
- package/.opencode/commands/ant/resume.md +5 -17
- package/.opencode/commands/ant/run.md +10 -10
- package/.opencode/commands/ant/seal.md +8 -8
- package/.opencode/commands/ant/skill-create.md +2 -2
- package/.opencode/commands/ant/status.md +10 -10
- package/.opencode/commands/ant/tunnels.md +3 -3
- package/.opencode/commands/ant/verify-castes.md +1 -1
- package/.opencode/commands/ant/watch.md +7 -7
- package/CHANGELOG.md +83 -0
- package/README.md +22 -9
- package/bin/cli.js +118 -3
- package/bin/lib/binary-downloader.js +267 -0
- package/bin/lib/update-transaction.js +27 -3
- package/bin/lib/version-gate.js +179 -0
- package/bin/npx-entry.js +0 -0
- package/package.json +1 -1
- package/.aether/agents/aether-ambassador.md +0 -140
- package/.aether/agents/aether-archaeologist.md +0 -108
- package/.aether/agents/aether-architect.md +0 -133
- package/.aether/agents/aether-auditor.md +0 -144
- package/.aether/agents/aether-builder.md +0 -184
- package/.aether/agents/aether-chaos.md +0 -115
- package/.aether/agents/aether-chronicler.md +0 -122
- package/.aether/agents/aether-gatekeeper.md +0 -116
- package/.aether/agents/aether-includer.md +0 -117
- package/.aether/agents/aether-keeper.md +0 -177
- package/.aether/agents/aether-measurer.md +0 -128
- package/.aether/agents/aether-oracle.md +0 -137
- package/.aether/agents/aether-probe.md +0 -133
- package/.aether/agents/aether-queen.md +0 -286
- package/.aether/agents/aether-route-setter.md +0 -130
- package/.aether/agents/aether-sage.md +0 -106
- package/.aether/agents/aether-scout.md +0 -101
- package/.aether/agents/aether-surveyor-disciplines.md +0 -391
- package/.aether/agents/aether-surveyor-nest.md +0 -329
- package/.aether/agents/aether-surveyor-pathogens.md +0 -264
- package/.aether/agents/aether-surveyor-provisions.md +0 -334
- package/.aether/agents/aether-tracker.md +0 -137
- package/.aether/agents/aether-watcher.md +0 -174
- package/.aether/agents/aether-weaver.md +0 -130
- package/.aether/commands/claude/archaeology.md +0 -334
- package/.aether/commands/claude/build.md +0 -65
- package/.aether/commands/claude/chaos.md +0 -336
- package/.aether/commands/claude/colonize.md +0 -259
- package/.aether/commands/claude/continue.md +0 -60
- package/.aether/commands/claude/council.md +0 -507
- package/.aether/commands/claude/data-clean.md +0 -81
- package/.aether/commands/claude/dream.md +0 -268
- package/.aether/commands/claude/entomb.md +0 -498
- package/.aether/commands/claude/export-signals.md +0 -57
- package/.aether/commands/claude/feedback.md +0 -96
- package/.aether/commands/claude/flag.md +0 -151
- package/.aether/commands/claude/flags.md +0 -169
- package/.aether/commands/claude/focus.md +0 -76
- package/.aether/commands/claude/help.md +0 -154
- package/.aether/commands/claude/history.md +0 -140
- package/.aether/commands/claude/import-signals.md +0 -71
- package/.aether/commands/claude/init.md +0 -505
- package/.aether/commands/claude/insert-phase.md +0 -105
- package/.aether/commands/claude/interpret.md +0 -278
- package/.aether/commands/claude/lay-eggs.md +0 -210
- package/.aether/commands/claude/maturity.md +0 -113
- package/.aether/commands/claude/memory-details.md +0 -77
- package/.aether/commands/claude/migrate-state.md +0 -171
- package/.aether/commands/claude/oracle.md +0 -642
- package/.aether/commands/claude/organize.md +0 -232
- package/.aether/commands/claude/patrol.md +0 -620
- package/.aether/commands/claude/pause-colony.md +0 -233
- package/.aether/commands/claude/phase.md +0 -115
- package/.aether/commands/claude/pheromones.md +0 -156
- package/.aether/commands/claude/plan.md +0 -693
- package/.aether/commands/claude/preferences.md +0 -65
- package/.aether/commands/claude/quick.md +0 -100
- package/.aether/commands/claude/redirect.md +0 -76
- package/.aether/commands/claude/resume-colony.md +0 -197
- package/.aether/commands/claude/resume.md +0 -388
- package/.aether/commands/claude/run.md +0 -231
- package/.aether/commands/claude/seal.md +0 -774
- package/.aether/commands/claude/skill-create.md +0 -286
- package/.aether/commands/claude/status.md +0 -410
- package/.aether/commands/claude/swarm.md +0 -349
- package/.aether/commands/claude/tunnels.md +0 -426
- package/.aether/commands/claude/update.md +0 -132
- package/.aether/commands/claude/verify-castes.md +0 -143
- package/.aether/commands/claude/watch.md +0 -239
- package/.aether/commands/opencode/archaeology.md +0 -331
- package/.aether/commands/opencode/build.md +0 -1168
- package/.aether/commands/opencode/chaos.md +0 -329
- package/.aether/commands/opencode/colonize.md +0 -195
- package/.aether/commands/opencode/continue.md +0 -1436
- package/.aether/commands/opencode/council.md +0 -437
- package/.aether/commands/opencode/data-clean.md +0 -77
- package/.aether/commands/opencode/dream.md +0 -260
- package/.aether/commands/opencode/entomb.md +0 -377
- package/.aether/commands/opencode/export-signals.md +0 -54
- package/.aether/commands/opencode/feedback.md +0 -99
- package/.aether/commands/opencode/flag.md +0 -149
- package/.aether/commands/opencode/flags.md +0 -167
- package/.aether/commands/opencode/focus.md +0 -73
- package/.aether/commands/opencode/help.md +0 -157
- package/.aether/commands/opencode/history.md +0 -136
- package/.aether/commands/opencode/import-signals.md +0 -68
- package/.aether/commands/opencode/init.md +0 -518
- package/.aether/commands/opencode/insert-phase.md +0 -111
- package/.aether/commands/opencode/interpret.md +0 -272
- package/.aether/commands/opencode/lay-eggs.md +0 -213
- package/.aether/commands/opencode/maturity.md +0 -108
- package/.aether/commands/opencode/memory-details.md +0 -83
- package/.aether/commands/opencode/migrate-state.md +0 -165
- package/.aether/commands/opencode/oracle.md +0 -593
- package/.aether/commands/opencode/organize.md +0 -226
- package/.aether/commands/opencode/patrol.md +0 -626
- package/.aether/commands/opencode/pause-colony.md +0 -203
- package/.aether/commands/opencode/phase.md +0 -113
- package/.aether/commands/opencode/pheromones.md +0 -162
- package/.aether/commands/opencode/plan.md +0 -684
- package/.aether/commands/opencode/preferences.md +0 -71
- package/.aether/commands/opencode/quick.md +0 -91
- package/.aether/commands/opencode/redirect.md +0 -84
- package/.aether/commands/opencode/resume-colony.md +0 -190
- package/.aether/commands/opencode/resume.md +0 -394
- package/.aether/commands/opencode/run.md +0 -237
- package/.aether/commands/opencode/seal.md +0 -452
- package/.aether/commands/opencode/skill-create.md +0 -63
- package/.aether/commands/opencode/status.md +0 -307
- package/.aether/commands/opencode/swarm.md +0 -15
- package/.aether/commands/opencode/tunnels.md +0 -400
- package/.aether/commands/opencode/update.md +0 -127
- package/.aether/commands/opencode/verify-castes.md +0 -139
- package/.aether/commands/opencode/watch.md +0 -227
|
@@ -40,7 +40,7 @@ body_claude: |
|
|
|
40
40
|
|
|
41
41
|
Check for stale watch files by running using the Bash tool with description "Checking for stale watch session...":
|
|
42
42
|
```bash
|
|
43
|
-
stale_check=$(
|
|
43
|
+
stale_check=$(aether session-verify-fresh --command watch "" "$WATCH_START")
|
|
44
44
|
has_stale=$(echo "$stale_check" | jq -r '.stale | length' 2>/dev/null || echo "0")
|
|
45
45
|
```
|
|
46
46
|
|
|
@@ -192,21 +192,21 @@ body_claude: |
|
|
|
192
192
|
Workers and commands update watch files as they work:
|
|
193
193
|
|
|
194
194
|
### Activity Log
|
|
195
|
-
Workers write via: `
|
|
195
|
+
Workers write via: `aether activity-log "ACTION" "caste" "description"`
|
|
196
196
|
|
|
197
197
|
For named ants (recommended):
|
|
198
198
|
```bash
|
|
199
199
|
# Generate a name first
|
|
200
|
-
ant_name=$(
|
|
200
|
+
ant_name=$(aether generate-ant-name --caste "builder" | jq -r '.result')
|
|
201
201
|
# Log with ant name
|
|
202
|
-
|
|
202
|
+
aether activity-log "CREATED" "$ant_name (Builder)" "Implemented auth module"
|
|
203
203
|
```
|
|
204
204
|
|
|
205
205
|
### Spawn Tracking
|
|
206
206
|
Log spawns for tree visualization:
|
|
207
207
|
```bash
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
aether spawn-log --name "Prime" --caste "builder" --id "Hammer-42" --description "implementing auth"
|
|
209
|
+
aether spawn-complete --id "Hammer-42" --status "completed" --summary "auth module done"
|
|
210
210
|
```
|
|
211
211
|
|
|
212
212
|
### Status File
|
|
@@ -217,11 +217,11 @@ body_claude: |
|
|
|
217
217
|
- Last Activity: most recent log entry
|
|
218
218
|
|
|
219
219
|
### Progress File
|
|
220
|
-
Update via: `
|
|
220
|
+
Update via: `aether update-progress <percent> "<message>" <phase> <total>`
|
|
221
221
|
|
|
222
222
|
Example:
|
|
223
223
|
```bash
|
|
224
|
-
|
|
224
|
+
aether update-progress 45 "Building auth module..." 2 5
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
---
|
|
@@ -409,21 +409,21 @@ body_opencode: |
|
|
|
409
409
|
Workers and commands update watch files as they work:
|
|
410
410
|
|
|
411
411
|
### Activity Log
|
|
412
|
-
Workers write via: `
|
|
412
|
+
Workers write via: `aether activity-log "ACTION" "caste" "description"`
|
|
413
413
|
|
|
414
414
|
For named ants (recommended):
|
|
415
415
|
```bash
|
|
416
416
|
# Generate a name first
|
|
417
|
-
ant_name=$(
|
|
417
|
+
ant_name=$(aether generate-ant-name --caste "builder" | jq -r '.result')
|
|
418
418
|
# Log with ant name
|
|
419
|
-
|
|
419
|
+
aether activity-log "CREATED" "$ant_name (Builder)" "Implemented auth module"
|
|
420
420
|
```
|
|
421
421
|
|
|
422
422
|
### Spawn Tracking
|
|
423
423
|
Log spawns for tree visualization:
|
|
424
424
|
```bash
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
aether spawn-log --name "Prime" --caste "builder" --id "Hammer-42" --description "implementing auth"
|
|
426
|
+
aether spawn-complete --id "Hammer-42" --status "completed" --summary "auth module done"
|
|
427
427
|
```
|
|
428
428
|
|
|
429
429
|
### Status File
|
|
@@ -434,11 +434,11 @@ body_opencode: |
|
|
|
434
434
|
- Last Activity: most recent log entry
|
|
435
435
|
|
|
436
436
|
### Progress File
|
|
437
|
-
Update via: `
|
|
437
|
+
Update via: `aether update-progress <percent> "<message>" <phase> <total>`
|
|
438
438
|
|
|
439
439
|
Example:
|
|
440
440
|
```bash
|
|
441
|
-
|
|
441
|
+
aether update-progress 45 "Building auth module..." 2 5
|
|
442
442
|
```
|
|
443
443
|
|
|
444
444
|
---
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
### Stage Audit Gate (Pre-Synthesis Check)
|
|
2
|
+
|
|
3
|
+
**This gate runs before Step 5.9. All 4 prior playbook stages must have completed with "ok" status.**
|
|
4
|
+
|
|
5
|
+
Check the cross-stage state record for each of the following stages:
|
|
6
|
+
|
|
7
|
+
| Stage | Playbook | Required Status |
|
|
8
|
+
|-------|----------|----------------|
|
|
9
|
+
| 1 | build-prep | ok |
|
|
10
|
+
| 2 | build-context | ok |
|
|
11
|
+
| 3 | build-wave | ok |
|
|
12
|
+
| 4 | build-verify | ok |
|
|
13
|
+
|
|
14
|
+
To verify, read the cross-stage state (typically `.aether/data/build-stage-state.json` or the in-memory record accumulated during the build run) and confirm each stage entry has `"status": "ok"`.
|
|
15
|
+
|
|
16
|
+
**If any stage is missing or did not complete with "ok" status:**
|
|
17
|
+
- HALT — do not proceed to Step 5.9
|
|
18
|
+
- Display:
|
|
19
|
+
```
|
|
20
|
+
Stage Audit FAILED — cannot synthesize results.
|
|
21
|
+
|
|
22
|
+
Missing or failed stages:
|
|
23
|
+
{list each stage name with its recorded status, or "not recorded" if absent}
|
|
24
|
+
|
|
25
|
+
Recovery options:
|
|
26
|
+
1. Re-run the missing stage(s) manually, then retry /ant:build
|
|
27
|
+
2. Run /ant:flags to review blockers
|
|
28
|
+
3. Run /ant:swarm to auto-repair failed tasks
|
|
29
|
+
```
|
|
30
|
+
- Return `{"status": "failed", "summary": "Stage audit failed — stages {names} did not complete successfully"}` and stop.
|
|
31
|
+
|
|
32
|
+
**If all 4 stages passed:** proceed to Step 5.9.
|
|
33
|
+
|
|
1
34
|
### Step 5.9: Synthesize Results
|
|
2
35
|
|
|
3
36
|
**This step runs after all worker tasks have completed (Builders, Watcher, Chaos).**
|
|
@@ -41,7 +74,7 @@ Collect all worker outputs and create phase summary:
|
|
|
41
74
|
**Graveyard Recording:**
|
|
42
75
|
For each worker that returned `status: "failed"`:
|
|
43
76
|
For each file in that worker's `files_modified` or `files_created`:
|
|
44
|
-
Run using the Bash tool with description "Recording failure grave...": `
|
|
77
|
+
Run using the Bash tool with description "Recording failure grave...": `aether grave-add "{file}" "{ant_name}" "{task_id}" {phase} "{first blocker or summary}" && aether activity-log "GRAVE" "Queen" "Grave marker placed at {file} — {ant_name} failed: {summary}"`
|
|
45
78
|
Then display a user-visible confirmation line:
|
|
46
79
|
`⚰️ Grave recorded: {file} — {ant_name} failed ({summary})`
|
|
47
80
|
|
|
@@ -55,7 +88,7 @@ For each pattern in `learning.patterns_observed`:
|
|
|
55
88
|
- If `success_capture_count >= 2`, stop (cap reached)
|
|
56
89
|
- Run using the Bash tool with description "Capturing synthesis pattern success...":
|
|
57
90
|
```bash
|
|
58
|
-
|
|
91
|
+
aether memory-capture \
|
|
59
92
|
"success" \
|
|
60
93
|
"${pattern.trigger}: ${pattern.action} (evidence: ${pattern.evidence})" \
|
|
61
94
|
"pattern" \
|
|
@@ -253,30 +286,30 @@ Write the result to .aether/HANDOFF.md using the Write tool.
|
|
|
253
286
|
|
|
254
287
|
This ensures the handoff always reflects the latest build state, even if the session crashes before explicit pause.
|
|
255
288
|
|
|
256
|
-
### Step 6.
|
|
289
|
+
### Step 6.6: Update Context Document
|
|
257
290
|
|
|
258
291
|
Log this build activity to `.aether/CONTEXT.md`:
|
|
259
292
|
|
|
260
|
-
Run using the Bash tool with description "Updating build context...": `
|
|
293
|
+
Run using the Bash tool with description "Updating build context...": `aether context-update activity "build {phase_id}" "{synthesis.status}" "{files_created_count + files_modified_count}" && aether context-update build-complete "{synthesis.status}" "{synthesis.status == 'completed' ? 'success' : 'failed'}"`
|
|
261
294
|
|
|
262
295
|
Also update safe-to-clear status:
|
|
263
296
|
- If build completed successfully: `context-update safe-to-clear "YES" "Build complete, ready to continue"`
|
|
264
297
|
- If build failed: `context-update safe-to-clear "NO" "Build failed — run /ant:swarm or /ant:flags"`
|
|
265
298
|
|
|
266
|
-
### Step
|
|
299
|
+
### Step 6.7: Check for Promotion Proposals
|
|
267
300
|
|
|
268
301
|
After build completion (success or failure), check if any observations have met promotion thresholds.
|
|
269
302
|
|
|
270
303
|
Run using the Bash tool with description "Checking for wisdom promotions...":
|
|
271
304
|
```bash
|
|
272
|
-
proposals=$(
|
|
305
|
+
proposals=$(aether learning-check-promotion 2>/dev/null || echo '{"proposals":[]}')
|
|
273
306
|
proposal_count=$(echo "$proposals" | jq '.proposals | length')
|
|
274
307
|
echo "{\"proposal_count\": $proposal_count}"
|
|
275
308
|
```
|
|
276
309
|
|
|
277
310
|
Parse the result. If proposal_count > 0:
|
|
278
311
|
- Display: "📚 $proposal_count wisdom proposal(s) ready for review"
|
|
279
|
-
- Run: `
|
|
312
|
+
- Run: `aether learning-approve-proposals`
|
|
280
313
|
- This presents the one-at-a-time UI for user review
|
|
281
314
|
|
|
282
315
|
If proposal_count == 0:
|
|
@@ -295,14 +328,14 @@ Calculate `elapsed` using `build_started_at_epoch` (epoch integer captured at St
|
|
|
295
328
|
|
|
296
329
|
```
|
|
297
330
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
298
|
-
|
|
331
|
+
🔨 B U I L D S U M M A R Y
|
|
299
332
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
300
|
-
Phase {id}: {name}
|
|
301
|
-
Pattern: {selected_pattern}
|
|
333
|
+
📍 Phase {id}: {name}
|
|
334
|
+
🎲 Pattern: {selected_pattern}
|
|
302
335
|
|
|
303
|
-
Workers: {pass_count} passed {fail_count} failed ({total} total)
|
|
304
|
-
Tools: {total_tools} calls across all workers
|
|
305
|
-
Duration: {elapsed}
|
|
336
|
+
🐜 Workers: {pass_count} passed {fail_count} failed ({total} total)
|
|
337
|
+
🛠️ Tools: {total_tools} calls across all workers
|
|
338
|
+
⏱️ Duration: {elapsed}
|
|
306
339
|
|
|
307
340
|
{if measurer_ran:}
|
|
308
341
|
📊 Measurer: {baseline_count} baselines established, {bottleneck_count} bottlenecks identified
|
|
@@ -332,7 +365,7 @@ After displaying the BUILD SUMMARY (and optional verbose details), call the Next
|
|
|
332
365
|
state=$(jq -r '.state // "IDLE"' .aether/data/COLONY_STATE.json 2>/dev/null || echo "IDLE")
|
|
333
366
|
current_phase=$(jq -r '.current_phase // 0' .aether/data/COLONY_STATE.json 2>/dev/null || echo "0")
|
|
334
367
|
total_phases=$(jq -r '.plan.phases | length' .aether/data/COLONY_STATE.json 2>/dev/null || echo "0")
|
|
335
|
-
|
|
368
|
+
aether print-next-up "$state" "$current_phase" "$total_phases"
|
|
336
369
|
```
|
|
337
370
|
|
|
338
371
|
**Routing Note:** The state-based Next Up block above routes based on colony state. If verification failed or blockers exist, review `/ant:flags` before continuing.
|
|
@@ -346,4 +379,4 @@ bash .aether/aether-utils.sh print-next-up "$state" "$current_phase" "$total_pha
|
|
|
346
379
|
|
|
347
380
|
Update the session tracking file to enable `/ant:resume` after context clear:
|
|
348
381
|
|
|
349
|
-
Run using the Bash tool with description "Saving build session...": `
|
|
382
|
+
Run using the Bash tool with description "Saving build session...": `aether session-update "/ant:build {phase_id}" "/ant:continue" "Phase {phase_id} build completed: {synthesis.status}"`
|
|
@@ -4,7 +4,7 @@ Call `colony-prime --compact` to get unified worker context (wisdom + context ca
|
|
|
4
4
|
|
|
5
5
|
Run using the Bash tool with description "Loading colony context...":
|
|
6
6
|
```bash
|
|
7
|
-
prime_result=$(
|
|
7
|
+
prime_result=$(aether colony-prime --compact 2>/dev/null)
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
**Parse the JSON response:**
|
|
@@ -22,7 +22,7 @@ Display after constraints:
|
|
|
22
22
|
|
|
23
23
|
Then display the active pheromones table by running:
|
|
24
24
|
```bash
|
|
25
|
-
|
|
25
|
+
aether pheromone-display
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
This shows the user exactly what signals are guiding the colony:
|
|
@@ -38,7 +38,7 @@ Check if territory survey exists and load relevant documents:
|
|
|
38
38
|
|
|
39
39
|
Run using the Bash tool with description "Loading territory survey...":
|
|
40
40
|
```bash
|
|
41
|
-
|
|
41
|
+
aether survey-load "{phase_name}" 2>/dev/null
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
**Parse the JSON response:**
|
|
@@ -152,14 +152,14 @@ Analyze codebase and suggest pheromone signals based on detected patterns.
|
|
|
152
152
|
|
|
153
153
|
Run using the Bash tool with description "Analyzing codebase for suggestions...":
|
|
154
154
|
```bash
|
|
155
|
-
|
|
155
|
+
aether suggest-approve --dry-run 2>/dev/null
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
Parse the JSON result to get `suggestion_count`.
|
|
159
159
|
|
|
160
160
|
If `suggestion_count` > 0:
|
|
161
161
|
- Display: "💡 {count} pheromone suggestion(s) detected from code analysis"
|
|
162
|
-
- Run: `
|
|
162
|
+
- Run: `aether suggest-approve`
|
|
163
163
|
- Parse result for approved/rejected/skipped counts
|
|
164
164
|
- If approved > 0: Display "✓ {approved} FOCUS signal(s) added"
|
|
165
165
|
|
|
@@ -184,7 +184,7 @@ Build the skills index and detect which domain skills match the current codebase
|
|
|
184
184
|
|
|
185
185
|
Run using the Bash tool with description "Building skills index...":
|
|
186
186
|
```bash
|
|
187
|
-
skill_index_result=$(
|
|
187
|
+
skill_index_result=$(aether skill-index 2>/dev/null)
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
**Parse the JSON response:**
|
|
@@ -195,7 +195,7 @@ skill_index_result=$(bash .aether/aether-utils.sh skill-index 2>/dev/null)
|
|
|
195
195
|
|
|
196
196
|
Run using the Bash tool with description "Detecting codebase skills...":
|
|
197
197
|
```bash
|
|
198
|
-
skill_detect_result=$(
|
|
198
|
+
skill_detect_result=$(aether skill-detect "$(pwd)" 2>/dev/null)
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
**Parse the JSON response:**
|
|
@@ -222,8 +222,8 @@ Display to user:
|
|
|
222
222
|
2. **If existing code modification detected — spawn Archaeologist Scout:**
|
|
223
223
|
|
|
224
224
|
Generate archaeologist name and dispatch:
|
|
225
|
-
Run using the Bash tool with description "Naming archaeologist...": `
|
|
226
|
-
Run using the Bash tool with description "Dispatching archaeologist...": `
|
|
225
|
+
Run using the Bash tool with description "Naming archaeologist...": `aether generate-ant-name "archaeologist"` (store as `{archaeologist_name}`)
|
|
226
|
+
Run using the Bash tool with description "Dispatching archaeologist...": `aether spawn-log "Queen" "scout" "{archaeologist_name}" "Pre-build archaeology scan"`
|
|
227
227
|
|
|
228
228
|
Display:
|
|
229
229
|
```
|
|
@@ -250,7 +250,7 @@ Display to user:
|
|
|
250
250
|
4. Run: git blame "{file_path}" | head -40 for authorship
|
|
251
251
|
5. Note TODO/FIXME/HACK markers
|
|
252
252
|
|
|
253
|
-
Log activity:
|
|
253
|
+
Log activity: aether activity-log "READ" "{Ant-Name}" "description"
|
|
254
254
|
|
|
255
255
|
Report (plain text):
|
|
256
256
|
- WHY key code sections exist (from commits)
|
|
@@ -263,7 +263,7 @@ Display to user:
|
|
|
263
263
|
**Wait for results** (blocking — use TaskOutput with `block: true`).
|
|
264
264
|
|
|
265
265
|
Log completion:
|
|
266
|
-
Run using the Bash tool with description "Recording archaeologist findings...": `
|
|
266
|
+
Run using the Bash tool with description "Recording archaeologist findings...": `aether spawn-complete "{archaeologist_name}" "completed" "Pre-build archaeology scan"`
|
|
267
267
|
|
|
268
268
|
3. **Store and display findings:**
|
|
269
269
|
|