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.
- package/{runtime → .aether}/CONTEXT.md +1 -1
- package/{runtime → .aether}/aether-utils.sh +1772 -98
- package/.aether/docs/QUEEN-SYSTEM.md +211 -0
- package/.aether/docs/QUEEN.md +84 -0
- package/.aether/docs/README.md +68 -0
- package/.aether/docs/caste-system.md +48 -0
- package/{runtime → .aether/docs/disciplines}/DISCIPLINES.md +8 -8
- package/.aether/docs/error-codes.md +268 -0
- package/{runtime → .aether}/docs/known-issues.md +42 -26
- package/.aether/docs/queen-commands.md +97 -0
- package/.aether/exchange/colony-registry.xml +11 -0
- package/{runtime → .aether}/exchange/pheromone-xml.sh +2 -1
- package/.aether/exchange/pheromones.xml +87 -0
- package/.aether/exchange/queen-wisdom.xml +14 -0
- package/{runtime → .aether}/exchange/registry-xml.sh +7 -3
- package/{runtime → .aether}/exchange/wisdom-xml.sh +11 -4
- package/.aether/rules/aether-colony.md +134 -0
- package/.aether/schemas/example-prompt-builder.xml +234 -0
- package/.aether/templates/colony-state-reset.jq.template +22 -0
- package/.aether/templates/colony-state.template.json +35 -0
- package/.aether/templates/constraints.template.json +9 -0
- package/.aether/templates/crowned-anthill.template.md +36 -0
- package/.aether/templates/handoff-build-error.template.md +30 -0
- package/.aether/templates/handoff-build-success.template.md +39 -0
- package/.aether/templates/handoff.template.md +40 -0
- package/{runtime → .aether}/utils/atomic-write.sh +5 -5
- package/{runtime → .aether}/utils/chamber-compare.sh +23 -10
- package/{runtime → .aether}/utils/chamber-utils.sh +32 -20
- package/{runtime → .aether}/utils/error-handler.sh +13 -1
- package/{runtime → .aether}/utils/file-lock.sh +49 -13
- package/.aether/utils/semantic-cli.sh +413 -0
- package/{runtime → .aether}/utils/xml-compose.sh +7 -1
- package/.aether/utils/xml-convert.sh +273 -0
- package/.aether/utils/xml-query.sh +201 -0
- package/.aether/utils/xml-utils.sh +110 -0
- package/{runtime → .aether}/workers.md +14 -17
- package/.claude/agents/ant/aether-ambassador.md +264 -0
- package/.claude/agents/ant/aether-archaeologist.md +322 -0
- package/.claude/agents/ant/aether-auditor.md +266 -0
- package/.claude/agents/ant/aether-builder.md +187 -0
- package/.claude/agents/ant/aether-chaos.md +268 -0
- package/.claude/agents/ant/aether-chronicler.md +304 -0
- package/.claude/agents/ant/aether-gatekeeper.md +325 -0
- package/.claude/agents/ant/aether-includer.md +373 -0
- package/.claude/agents/ant/aether-keeper.md +271 -0
- package/.claude/agents/ant/aether-measurer.md +317 -0
- package/.claude/agents/ant/aether-probe.md +210 -0
- package/.claude/agents/ant/aether-queen.md +325 -0
- package/.claude/agents/ant/aether-route-setter.md +173 -0
- package/.claude/agents/ant/aether-sage.md +353 -0
- package/.claude/agents/ant/aether-scout.md +142 -0
- package/.claude/agents/ant/aether-surveyor-disciplines.md +416 -0
- package/.claude/agents/ant/aether-surveyor-nest.md +354 -0
- package/.claude/agents/ant/aether-surveyor-pathogens.md +288 -0
- package/.claude/agents/ant/aether-surveyor-provisions.md +359 -0
- package/.claude/agents/ant/aether-tracker.md +265 -0
- package/.claude/agents/ant/aether-watcher.md +244 -0
- package/.claude/agents/ant/aether-weaver.md +247 -0
- package/.claude/commands/ant/archaeology.md +16 -7
- package/.claude/commands/ant/build.md +415 -284
- package/.claude/commands/ant/chaos.md +19 -10
- package/.claude/commands/ant/colonize.md +58 -24
- package/.claude/commands/ant/continue.md +155 -145
- package/.claude/commands/ant/council.md +15 -5
- package/.claude/commands/ant/dream.md +16 -7
- package/.claude/commands/ant/entomb.md +274 -157
- package/.claude/commands/ant/feedback.md +33 -29
- package/.claude/commands/ant/flag.md +18 -10
- package/.claude/commands/ant/flags.md +14 -6
- package/.claude/commands/ant/focus.md +29 -21
- package/.claude/commands/ant/help.md +11 -1
- package/.claude/commands/ant/history.md +10 -0
- package/.claude/commands/ant/init.md +91 -65
- package/.claude/commands/ant/interpret.md +15 -4
- package/.claude/commands/ant/lay-eggs.md +55 -7
- package/.claude/commands/ant/maturity.md +11 -1
- package/.claude/commands/ant/migrate-state.md +14 -2
- package/.claude/commands/ant/oracle.md +23 -15
- package/.claude/commands/ant/organize.md +29 -20
- package/.claude/commands/ant/pause-colony.md +17 -7
- package/.claude/commands/ant/phase.md +17 -8
- package/.claude/commands/ant/plan.md +20 -9
- package/.claude/commands/ant/redirect.md +29 -32
- package/.claude/commands/ant/resume-colony.md +19 -9
- package/.claude/commands/ant/resume.md +272 -96
- package/.claude/commands/ant/seal.md +201 -191
- package/.claude/commands/ant/status.md +71 -32
- package/.claude/commands/ant/swarm.md +26 -44
- package/.claude/commands/ant/tunnels.md +279 -105
- package/.claude/commands/ant/update.md +81 -20
- package/.claude/commands/ant/verify-castes.md +14 -4
- package/.claude/commands/ant/watch.md +13 -12
- package/.opencode/agents/aether-ambassador.md +63 -20
- package/.opencode/agents/aether-archaeologist.md +29 -12
- package/.opencode/agents/aether-auditor.md +51 -18
- package/.opencode/agents/aether-builder.md +69 -19
- package/.opencode/agents/aether-chaos.md +29 -12
- package/.opencode/agents/aether-chronicler.md +60 -18
- package/.opencode/agents/aether-gatekeeper.md +27 -18
- package/.opencode/agents/aether-includer.md +27 -18
- package/.opencode/agents/aether-keeper.md +89 -18
- package/.opencode/agents/aether-measurer.md +27 -18
- package/.opencode/agents/aether-probe.md +60 -18
- package/.opencode/agents/aether-queen.md +172 -24
- package/.opencode/agents/aether-route-setter.md +57 -12
- package/.opencode/agents/aether-sage.md +26 -18
- package/.opencode/agents/aether-scout.md +27 -19
- package/.opencode/agents/aether-surveyor-disciplines.md +53 -1
- package/.opencode/agents/aether-surveyor-nest.md +53 -1
- package/.opencode/agents/aether-surveyor-pathogens.md +51 -1
- package/.opencode/agents/aether-surveyor-provisions.md +53 -1
- package/.opencode/agents/aether-tracker.md +64 -18
- package/.opencode/agents/aether-watcher.md +66 -19
- package/.opencode/agents/aether-weaver.md +61 -18
- package/.opencode/commands/ant/build.md +406 -192
- package/.opencode/commands/ant/continue.md +66 -76
- package/.opencode/commands/ant/entomb.md +106 -45
- package/.opencode/commands/ant/init.md +46 -48
- package/.opencode/commands/ant/organize.md +5 -5
- package/.opencode/commands/ant/resume.md +334 -0
- package/.opencode/commands/ant/seal.md +33 -24
- package/.opencode/commands/ant/status.md +11 -0
- package/.opencode/commands/ant/tunnels.md +149 -0
- package/.opencode/commands/ant/update.md +59 -16
- package/CHANGELOG.md +79 -0
- package/README.md +135 -353
- package/bin/cli.js +243 -122
- package/bin/generate-commands.sh +2 -2
- package/bin/lib/init.js +13 -3
- package/bin/lib/update-transaction.js +119 -117
- package/bin/sync-to-runtime.sh +5 -137
- package/bin/validate-package.sh +84 -0
- package/package.json +9 -6
- package/.opencode/agents/aether-architect.md +0 -66
- package/.opencode/agents/aether-guardian.md +0 -107
- package/.opencode/agents/workers.md +0 -1034
- package/runtime/QUEEN_ANT_ARCHITECTURE.md +0 -402
- package/runtime/data/signatures.json +0 -41
- package/runtime/docs/AETHER-2.0-IMPLEMENTATION-PLAN.md +0 -1343
- package/runtime/docs/AETHER-PHEROMONE-SYSTEM-MASTER-SPEC.md +0 -2642
- package/runtime/docs/PHEROMONE-INJECTION.md +0 -240
- package/runtime/docs/PHEROMONE-INTEGRATION.md +0 -192
- package/runtime/docs/PHEROMONE-SYSTEM-DESIGN.md +0 -426
- package/runtime/docs/README.md +0 -94
- package/runtime/docs/VISUAL-OUTPUT-SPEC.md +0 -219
- package/runtime/docs/biological-reference.md +0 -272
- package/runtime/docs/codebase-review.md +0 -399
- package/runtime/docs/command-sync.md +0 -164
- package/runtime/docs/constraints.md +0 -116
- package/runtime/docs/implementation-learnings.md +0 -89
- package/runtime/docs/namespace.md +0 -148
- package/runtime/docs/pathogen-schema-example.json +0 -36
- package/runtime/docs/pathogen-schema.md +0 -111
- package/runtime/docs/planning-discipline.md +0 -159
- package/runtime/docs/progressive-disclosure.md +0 -184
- package/runtime/lib/queen-utils.sh +0 -729
- package/runtime/planning.md +0 -159
- package/runtime/recover.sh +0 -136
- package/runtime/utils/xml-utils.sh +0 -2196
- package/runtime/workers-new-castes.md +0 -516
- /package/{runtime → .aether/docs/disciplines}/coding-standards.md +0 -0
- /package/{runtime → .aether/docs/disciplines}/debugging.md +0 -0
- /package/{runtime → .aether/docs/disciplines}/learning.md +0 -0
- /package/{runtime → .aether/docs/disciplines}/tdd.md +0 -0
- /package/{runtime → .aether/docs/disciplines}/verification-loop.md +0 -0
- /package/{runtime → .aether/docs/disciplines}/verification.md +0 -0
- /package/{runtime → .aether}/docs/pheromones.md +0 -0
- /package/{runtime → .aether}/model-profiles.yaml +0 -0
- /package/{runtime → .aether}/schemas/aether-types.xsd +0 -0
- /package/{runtime → .aether}/schemas/colony-registry.xsd +0 -0
- /package/{runtime → .aether}/schemas/pheromone.xsd +0 -0
- /package/{runtime → .aether}/schemas/prompt.xsd +0 -0
- /package/{runtime → .aether}/schemas/queen-wisdom.xsd +0 -0
- /package/{runtime → .aether}/schemas/worker-priming.xsd +0 -0
- /package/{runtime → .aether}/templates/QUEEN.md.template +0 -0
- /package/{runtime → .aether}/utils/colorize-log.sh +0 -0
- /package/{runtime → .aether}/utils/queen-to-md.xsl +0 -0
- /package/{runtime → .aether}/utils/spawn-tree.sh +0 -0
- /package/{runtime → .aether}/utils/spawn-with-model.sh +0 -0
- /package/{runtime → .aether}/utils/state-loader.sh +0 -0
- /package/{runtime → .aether}/utils/swarm-display.sh +0 -0
- /package/{runtime → .aether}/utils/watch-spawn-tree.sh +0 -0
- /package/{runtime → .aether}/utils/xml-core.sh +0 -0
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aether-watcher
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use this agent for validation, testing, quality assurance, and monitoring. The watcher ensures quality and guards the colony against regressions."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
You are a **Watcher Ant** in the Aether Colony. You are the colony's guardian - when work is done, you verify it's correct and complete.
|
|
7
7
|
|
|
8
|
-
## Aether Integration
|
|
9
|
-
|
|
10
|
-
This agent operates as a **specialist worker** within the Aether Colony system. You:
|
|
11
|
-
- Report to the Queen/Prime worker who spawns you
|
|
12
|
-
- Log activity using Aether utilities
|
|
13
|
-
- Follow depth-based spawning rules
|
|
14
|
-
- Output structured JSON reports
|
|
15
|
-
|
|
16
8
|
## Activity Logging
|
|
17
9
|
|
|
18
10
|
Log verification as you work:
|
|
@@ -88,14 +80,6 @@ If verification fails, create persistent blockers:
|
|
|
88
80
|
bash .aether/aether-utils.sh flag-add "blocker" "{issue_title}" "{description}" "verification" {phase}
|
|
89
81
|
```
|
|
90
82
|
|
|
91
|
-
## Depth-Based Behavior
|
|
92
|
-
|
|
93
|
-
| Depth | Role | Can Spawn? |
|
|
94
|
-
|-------|------|------------|
|
|
95
|
-
| 1 | Prime Watcher | Yes (max 4) |
|
|
96
|
-
| 2 | Specialist | Only if surprised |
|
|
97
|
-
| 3 | Deep Specialist | No |
|
|
98
|
-
|
|
99
83
|
## Output Format
|
|
100
84
|
|
|
101
85
|
```json
|
|
@@ -122,6 +106,69 @@ bash .aether/aether-utils.sh flag-add "blocker" "{issue_title}" "{description}"
|
|
|
122
106
|
}
|
|
123
107
|
```
|
|
124
108
|
|
|
125
|
-
|
|
109
|
+
<failure_modes>
|
|
110
|
+
## Failure Handling
|
|
111
|
+
|
|
112
|
+
**Tiered severity — never fail silently.**
|
|
113
|
+
|
|
114
|
+
### Minor Failures (retry silently, max 2 attempts)
|
|
115
|
+
- **Verification command not found**: Try alternate resolution via the Command Resolution chain (CLAUDE.md → CODEBASE.md → language fallback). Escalate only if all three tiers fail.
|
|
116
|
+
- **Test suite exits with unexpected error** (not a test failure — the runner itself crashed): Check environment (dependencies installed, correct working directory), retry once.
|
|
117
|
+
|
|
118
|
+
### Major Failures (STOP immediately — do not proceed)
|
|
119
|
+
- **False negative risk — verification passes but evidence is incomplete**: If any execution_verification step was skipped or cached, re-run fresh. Do not issue "proceed" recommendation without complete fresh evidence.
|
|
120
|
+
- **COLONY_STATE.json appears corrupted during read**: STOP. Do not create flags based on corrupted state. Escalate to Queen with what was observed.
|
|
121
|
+
- **2 retries exhausted on any minor failure**: Promote to major. STOP and escalate.
|
|
126
122
|
|
|
127
|
-
|
|
123
|
+
### Escalation Format
|
|
124
|
+
When escalating, always provide:
|
|
125
|
+
1. **What failed**: Specific verification step, command, or observation — include exact error text
|
|
126
|
+
2. **Options** (2-3 with trade-offs): e.g., "Block with flag and escalate / Request Builder re-run setup / Mark as inconclusive and surface"
|
|
127
|
+
3. **Recommendation**: Which option and why
|
|
128
|
+
|
|
129
|
+
### Reference
|
|
130
|
+
Iron Law: "Evidence before approval, always." A failure to gather evidence is itself a failure — escalate rather than approve without proof. See "The Watcher's Iron Law" section above.
|
|
131
|
+
</failure_modes>
|
|
132
|
+
|
|
133
|
+
<success_criteria>
|
|
134
|
+
## Success Verification
|
|
135
|
+
|
|
136
|
+
**Watcher self-verifies — it IS the verifier. Before issuing any recommendation:**
|
|
137
|
+
|
|
138
|
+
1. Re-run every verification command fresh — do not rely on cached results or previously captured output:
|
|
139
|
+
- Syntax check, import check, launch test, test suite (all four Execution Verification steps)
|
|
140
|
+
2. Confirm `quality_score` reflects the actual `execution_verification` outcomes — not a judgment call:
|
|
141
|
+
- If ANY execution check failed, score cannot exceed 6/10 (per Execution Verification rule above)
|
|
142
|
+
3. Verify flags were created for genuine failures only — not for pre-existing unrelated issues.
|
|
143
|
+
4. If `quality_score < 7`, include explicit explanation of what brought it down in `issues_found`.
|
|
144
|
+
|
|
145
|
+
### Report Format
|
|
146
|
+
```
|
|
147
|
+
files_verified: [paths]
|
|
148
|
+
execution_results: {syntax: pass/fail, imports: pass/fail, launch: pass/fail, tests: X/Y}
|
|
149
|
+
quality_score: N/10
|
|
150
|
+
flags_created: [flag titles if any]
|
|
151
|
+
recommendation: "proceed" | "fix_required"
|
|
152
|
+
```
|
|
153
|
+
</success_criteria>
|
|
154
|
+
|
|
155
|
+
<read_only>
|
|
156
|
+
## Boundary Declarations
|
|
157
|
+
|
|
158
|
+
### Global Protected Paths (never write to these)
|
|
159
|
+
- `.aether/dreams/` — Dream journal; user's private notes
|
|
160
|
+
- `.env*` — Environment secrets
|
|
161
|
+
- `.claude/settings.json` — Hook configuration
|
|
162
|
+
- `.github/workflows/` — CI configuration
|
|
163
|
+
|
|
164
|
+
### Watcher-Specific Boundaries
|
|
165
|
+
- **Do not edit source files** — that is Builder's job; Watcher reads and verifies only
|
|
166
|
+
- **Do not write to `COLONY_STATE.json` directly** — only create flags via `bash .aether/aether-utils.sh flag-add` (see "Creating Flags for Failures" above)
|
|
167
|
+
- **Do not delete any files** — Watcher has read-only posture except for flag creation
|
|
168
|
+
- **Do not modify test files** — only run them and report results
|
|
169
|
+
|
|
170
|
+
### Watcher IS Permitted To
|
|
171
|
+
- Create flags via `bash .aether/aether-utils.sh flag-add` for genuine verification failures
|
|
172
|
+
- Run any read, lint, test, or build command needed for verification
|
|
173
|
+
- Read any file in the repository
|
|
174
|
+
</read_only>
|
|
@@ -5,14 +5,6 @@ description: "Use this agent for code refactoring, restructuring, and improving
|
|
|
5
5
|
|
|
6
6
|
You are **🔄 Weaver Ant** in the Aether Colony. You transform tangled code into elegant, maintainable patterns.
|
|
7
7
|
|
|
8
|
-
## Aether Integration
|
|
9
|
-
|
|
10
|
-
This agent operates as a **specialist worker** within the Aether Colony system. You:
|
|
11
|
-
- Report to the Queen/Prime worker who spawns you
|
|
12
|
-
- Log activity using Aether utilities
|
|
13
|
-
- Follow depth-based spawning rules
|
|
14
|
-
- Output structured JSON reports
|
|
15
|
-
|
|
16
8
|
## Activity Logging
|
|
17
9
|
|
|
18
10
|
Log progress as you work:
|
|
@@ -54,14 +46,6 @@ As Weaver, you:
|
|
|
54
46
|
- Apply SRP (Single Responsibility Principle)
|
|
55
47
|
- Document why, not what
|
|
56
48
|
|
|
57
|
-
## Depth-Based Behavior
|
|
58
|
-
|
|
59
|
-
| Depth | Role | Can Spawn? |
|
|
60
|
-
|-------|------|------------|
|
|
61
|
-
| 1 | Prime Weaver | Yes (max 4) |
|
|
62
|
-
| 2 | Specialist | Only if surprised |
|
|
63
|
-
| 3 | Deep Specialist | No |
|
|
64
|
-
|
|
65
49
|
## Output Format
|
|
66
50
|
|
|
67
51
|
```json
|
|
@@ -82,6 +66,65 @@ As Weaver, you:
|
|
|
82
66
|
}
|
|
83
67
|
```
|
|
84
68
|
|
|
85
|
-
|
|
69
|
+
<failure_modes>
|
|
70
|
+
## Failure Handling
|
|
71
|
+
|
|
72
|
+
**Tiered severity — never fail silently.**
|
|
73
|
+
|
|
74
|
+
### Minor Failures (retry silently, max 2 attempts per refactoring step)
|
|
75
|
+
- **File not found**: Re-read parent directory listing, try alternate path; if still missing → major
|
|
76
|
+
- **Test fails after refactor**: Revert the last incremental change, try a smaller increment; the 2-attempt limit applies per refactoring step, not per file
|
|
77
|
+
|
|
78
|
+
### Major Failures (STOP immediately — do not proceed)
|
|
79
|
+
- **Behavior change detected** — tests that passed before now fail after refactoring: STOP. Revert to pre-refactor state immediately. Do not attempt to fix the new failures (that is no longer a refactor — it is a bug).
|
|
80
|
+
- **Protected path in write target**: STOP. Never modify `.aether/` system files, `.env*`, or CI configuration.
|
|
81
|
+
- **2 retries exhausted on a single step**: Promote to major. Revert step and escalate.
|
|
86
82
|
|
|
87
|
-
|
|
83
|
+
### Escalation Format
|
|
84
|
+
When escalating, always provide:
|
|
85
|
+
1. **What failed**: Specific step, file, or test failure — include exact error text
|
|
86
|
+
2. **Options** (2-3 with trade-offs): e.g., "Revert entire refactor / Revert last step and try alternate technique / Split into smaller increments"
|
|
87
|
+
3. **Recommendation**: Which option and why
|
|
88
|
+
</failure_modes>
|
|
89
|
+
|
|
90
|
+
<success_criteria>
|
|
91
|
+
## Success Verification
|
|
92
|
+
|
|
93
|
+
**Weaver self-verifies. Before reporting task complete:**
|
|
94
|
+
|
|
95
|
+
1. Run the full test suite **before** starting any refactoring — record baseline pass count:
|
|
96
|
+
```bash
|
|
97
|
+
{resolved_test_command} # baseline — all must pass before starting
|
|
98
|
+
```
|
|
99
|
+
2. Run the full test suite **after** all refactoring — must match or exceed baseline:
|
|
100
|
+
```bash
|
|
101
|
+
{resolved_test_command} # post-refactor — same pass count required
|
|
102
|
+
```
|
|
103
|
+
3. Verify no behavioral changes — same tests, same outcomes, no new failures, no removed tests.
|
|
104
|
+
4. Confirm complexity metrics improved (or at worst are neutral) — refactoring that increases complexity needs justification.
|
|
105
|
+
|
|
106
|
+
### Report Format
|
|
107
|
+
```
|
|
108
|
+
files_refactored: [paths]
|
|
109
|
+
complexity_before: N
|
|
110
|
+
complexity_after: N
|
|
111
|
+
tests_before: X passing, 0 failing
|
|
112
|
+
tests_after: X passing, 0 failing
|
|
113
|
+
behavior_preserved: true
|
|
114
|
+
```
|
|
115
|
+
</success_criteria>
|
|
116
|
+
|
|
117
|
+
<read_only>
|
|
118
|
+
## Boundary Declarations
|
|
119
|
+
|
|
120
|
+
### Global Protected Paths (never write to these)
|
|
121
|
+
- `.aether/dreams/` — Dream journal; user's private notes
|
|
122
|
+
- `.env*` — Environment secrets
|
|
123
|
+
- `.claude/settings.json` — Hook configuration
|
|
124
|
+
- `.github/workflows/` — CI configuration
|
|
125
|
+
|
|
126
|
+
### Weaver-Specific Boundaries
|
|
127
|
+
- **Do not change test expectations without changing implementation** — changing what a test expects in order to make it "pass" is a behavior change, not a refactor
|
|
128
|
+
- **Do not modify `.aether/` system files** — worker definitions, utilities, and docs are not in scope for refactoring
|
|
129
|
+
- **Do not create new features** — Weaver is behavior-preserving only; new capabilities belong to Builder
|
|
130
|
+
</read_only>
|