aether-colony 5.0.0 → 5.2.1
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 +3226 -3345
- package/.aether/agents-claude/aether-ambassador.md +265 -0
- package/.aether/agents-claude/aether-archaeologist.md +327 -0
- package/.aether/agents-claude/aether-architect.md +236 -0
- package/.aether/agents-claude/aether-auditor.md +271 -0
- package/.aether/agents-claude/aether-builder.md +224 -0
- package/.aether/agents-claude/aether-chaos.md +269 -0
- package/.aether/agents-claude/aether-chronicler.md +305 -0
- package/.aether/agents-claude/aether-gatekeeper.md +330 -0
- package/.aether/agents-claude/aether-includer.md +374 -0
- package/.aether/agents-claude/aether-keeper.md +272 -0
- package/.aether/agents-claude/aether-measurer.md +322 -0
- package/.aether/agents-claude/aether-oracle.md +237 -0
- package/.aether/agents-claude/aether-probe.md +211 -0
- package/.aether/agents-claude/aether-queen.md +330 -0
- package/.aether/agents-claude/aether-route-setter.md +178 -0
- package/.aether/agents-claude/aether-sage.md +418 -0
- package/.aether/agents-claude/aether-scout.md +179 -0
- package/.aether/agents-claude/aether-surveyor-disciplines.md +417 -0
- package/.aether/agents-claude/aether-surveyor-nest.md +355 -0
- package/.aether/agents-claude/aether-surveyor-pathogens.md +289 -0
- package/.aether/agents-claude/aether-surveyor-provisions.md +360 -0
- package/.aether/agents-claude/aether-tracker.md +270 -0
- package/.aether/agents-claude/aether-watcher.md +280 -0
- package/.aether/agents-claude/aether-weaver.md +248 -0
- package/.aether/commands/archaeology.yaml +653 -0
- package/.aether/commands/build.yaml +1221 -0
- package/.aether/commands/chaos.yaml +653 -0
- package/.aether/commands/colonize.yaml +442 -0
- package/.aether/commands/continue.yaml +1484 -0
- package/.aether/commands/council.yaml +509 -0
- package/.aether/commands/data-clean.yaml +80 -0
- package/.aether/commands/dream.yaml +275 -0
- package/.aether/commands/entomb.yaml +863 -0
- package/.aether/commands/export-signals.yaml +64 -0
- package/.aether/commands/feedback.yaml +158 -0
- package/.aether/commands/flag.yaml +160 -0
- package/.aether/commands/flags.yaml +177 -0
- package/.aether/commands/focus.yaml +112 -0
- package/.aether/commands/help.yaml +167 -0
- package/.aether/commands/history.yaml +137 -0
- package/.aether/commands/import-signals.yaml +79 -0
- package/.aether/commands/init.yaml +502 -0
- package/.aether/commands/insert-phase.yaml +102 -0
- package/.aether/commands/interpret.yaml +285 -0
- package/.aether/commands/lay-eggs.yaml +224 -0
- package/.aether/commands/maturity.yaml +122 -0
- package/.aether/commands/memory-details.yaml +74 -0
- package/.aether/commands/migrate-state.yaml +174 -0
- package/.aether/commands/oracle.yaml +1224 -0
- package/.aether/commands/organize.yaml +446 -0
- package/.aether/commands/patrol.yaml +621 -0
- package/.aether/commands/pause-colony.yaml +424 -0
- package/.aether/commands/phase.yaml +124 -0
- package/.aether/commands/pheromones.yaml +153 -0
- package/.aether/commands/plan.yaml +1364 -0
- package/.aether/commands/preferences.yaml +63 -0
- package/.aether/commands/quick.yaml +104 -0
- package/.aether/commands/redirect.yaml +123 -0
- package/.aether/commands/resume-colony.yaml +375 -0
- package/.aether/commands/resume.yaml +407 -0
- package/.aether/commands/run.yaml +229 -0
- package/.aether/commands/seal.yaml +1214 -0
- package/.aether/commands/skill-create.yaml +337 -0
- package/.aether/commands/status.yaml +408 -0
- package/.aether/commands/swarm.yaml +352 -0
- package/.aether/commands/tunnels.yaml +814 -0
- package/.aether/commands/update.yaml +131 -0
- package/.aether/commands/verify-castes.yaml +159 -0
- package/.aether/commands/watch.yaml +454 -0
- package/.aether/docs/INCIDENT_TEMPLATE.md +32 -0
- package/.aether/docs/QUEEN-SYSTEM.md +11 -11
- package/.aether/docs/README.md +32 -2
- package/.aether/docs/command-playbooks/README.md +23 -0
- package/.aether/docs/command-playbooks/build-complete.md +349 -0
- package/.aether/docs/command-playbooks/build-context.md +282 -0
- package/.aether/docs/command-playbooks/build-full.md +1683 -0
- package/.aether/docs/command-playbooks/build-prep.md +284 -0
- package/.aether/docs/command-playbooks/build-verify.md +405 -0
- package/.aether/docs/command-playbooks/build-wave.md +749 -0
- package/.aether/docs/command-playbooks/continue-advance.md +524 -0
- package/.aether/docs/command-playbooks/continue-finalize.md +447 -0
- package/.aether/docs/command-playbooks/continue-full.md +1725 -0
- package/.aether/docs/command-playbooks/continue-gates.md +686 -0
- package/.aether/docs/command-playbooks/continue-verify.md +407 -0
- package/.aether/docs/context-continuity.md +84 -0
- package/.aether/docs/disciplines/DISCIPLINES.md +9 -7
- package/.aether/docs/error-codes.md +1 -1
- package/.aether/docs/known-issues.md +34 -173
- package/.aether/docs/pheromones.md +86 -6
- package/.aether/docs/plans/pheromone-display-plan.md +257 -0
- package/.aether/docs/queen-commands.md +10 -9
- package/.aether/docs/source-of-truth-map.md +132 -0
- package/.aether/docs/xml-utilities.md +47 -0
- package/.aether/rules/aether-colony.md +23 -13
- package/.aether/scripts/incident-test-add.sh +47 -0
- package/.aether/scripts/weekly-audit.sh +79 -0
- package/.aether/skills/.index.json +649 -0
- package/.aether/skills/colony/.manifest.json +16 -0
- package/.aether/skills/colony/build-discipline/SKILL.md +78 -0
- package/.aether/skills/colony/colony-interaction/SKILL.md +56 -0
- package/.aether/skills/colony/colony-lifecycle/SKILL.md +77 -0
- package/.aether/skills/colony/colony-visuals/SKILL.md +112 -0
- package/.aether/skills/colony/context-management/SKILL.md +80 -0
- package/.aether/skills/colony/error-presentation/SKILL.md +99 -0
- package/.aether/skills/colony/pheromone-protocol/SKILL.md +79 -0
- package/.aether/skills/colony/pheromone-visibility/SKILL.md +81 -0
- package/.aether/skills/colony/state-safety/SKILL.md +84 -0
- package/.aether/skills/colony/worker-priming/SKILL.md +82 -0
- package/.aether/skills/domain/.manifest.json +24 -0
- package/.aether/skills/domain/README.md +33 -0
- package/.aether/skills/domain/django/SKILL.md +49 -0
- package/.aether/skills/domain/docker/SKILL.md +52 -0
- package/.aether/skills/domain/golang/SKILL.md +52 -0
- package/.aether/skills/domain/graphql/SKILL.md +51 -0
- package/.aether/skills/domain/html-css/SKILL.md +48 -0
- package/.aether/skills/domain/nextjs/SKILL.md +45 -0
- package/.aether/skills/domain/nodejs/SKILL.md +53 -0
- package/.aether/skills/domain/postgresql/SKILL.md +53 -0
- package/.aether/skills/domain/prisma/SKILL.md +59 -0
- package/.aether/skills/domain/python/SKILL.md +50 -0
- package/.aether/skills/domain/rails/SKILL.md +52 -0
- package/.aether/skills/domain/react/SKILL.md +45 -0
- package/.aether/skills/domain/rest-api/SKILL.md +58 -0
- package/.aether/skills/domain/svelte/SKILL.md +47 -0
- package/.aether/skills/domain/tailwind/SKILL.md +45 -0
- package/.aether/skills/domain/testing/SKILL.md +53 -0
- package/.aether/skills/domain/typescript/SKILL.md +58 -0
- package/.aether/skills/domain/vue/SKILL.md +49 -0
- package/.aether/templates/QUEEN.md.template +23 -41
- package/.aether/templates/colony-state-reset.jq.template +1 -0
- package/.aether/templates/colony-state.template.json +4 -0
- package/.aether/templates/learning-observations.template.json +6 -0
- package/.aether/templates/midden.template.json +13 -0
- package/.aether/templates/pheromones.template.json +6 -0
- package/.aether/templates/session.template.json +9 -0
- package/.aether/utils/atomic-write.sh +63 -17
- package/.aether/utils/chamber-utils.sh +145 -2
- package/.aether/utils/council.sh +425 -0
- package/.aether/utils/emoji-audit.sh +166 -0
- package/.aether/utils/error-handler.sh +21 -7
- package/.aether/utils/file-lock.sh +182 -27
- package/.aether/utils/flag.sh +278 -0
- package/.aether/utils/hive.sh +572 -0
- package/.aether/utils/immune.sh +508 -0
- package/.aether/utils/learning.sh +1928 -0
- package/.aether/utils/midden.sh +520 -0
- package/.aether/utils/oracle/oracle.md +168 -0
- package/.aether/utils/oracle/oracle.sh +1023 -0
- package/.aether/utils/pheromone.sh +2029 -0
- package/.aether/utils/queen.sh +1710 -0
- package/.aether/utils/scan.sh +860 -0
- package/.aether/utils/semantic-cli.sh +10 -8
- package/.aether/utils/session.sh +816 -0
- package/.aether/utils/skills.sh +509 -0
- package/.aether/utils/spawn-tree.sh +103 -271
- package/.aether/utils/spawn.sh +260 -0
- package/.aether/utils/state-api.sh +389 -0
- package/.aether/utils/state-loader.sh +8 -6
- package/.aether/utils/suggest.sh +611 -0
- package/.aether/utils/swarm-display.sh +10 -1
- package/.aether/utils/swarm.sh +1004 -0
- package/.aether/utils/watch-spawn-tree.sh +11 -2
- package/.aether/utils/xml-compose.sh +2 -2
- package/.aether/utils/xml-convert.sh +9 -5
- package/.aether/utils/xml-core.sh +5 -9
- package/.aether/utils/xml-query.sh +4 -4
- package/.aether/workers.md +86 -67
- package/.claude/agents/ant/aether-ambassador.md +2 -1
- package/.claude/agents/ant/aether-archaeologist.md +6 -1
- package/.claude/agents/ant/aether-architect.md +236 -0
- package/.claude/agents/ant/aether-auditor.md +6 -1
- package/.claude/agents/ant/aether-builder.md +38 -1
- package/.claude/agents/ant/aether-chaos.md +2 -1
- package/.claude/agents/ant/aether-chronicler.md +1 -0
- package/.claude/agents/ant/aether-gatekeeper.md +6 -1
- package/.claude/agents/ant/aether-includer.md +1 -0
- package/.claude/agents/ant/aether-keeper.md +1 -0
- package/.claude/agents/ant/aether-measurer.md +6 -1
- package/.claude/agents/ant/aether-oracle.md +237 -0
- package/.claude/agents/ant/aether-probe.md +2 -1
- package/.claude/agents/ant/aether-queen.md +6 -1
- package/.claude/agents/ant/aether-route-setter.md +6 -1
- package/.claude/agents/ant/aether-sage.md +68 -3
- package/.claude/agents/ant/aether-scout.md +38 -1
- package/.claude/agents/ant/aether-surveyor-disciplines.md +2 -1
- package/.claude/agents/ant/aether-surveyor-nest.md +2 -1
- package/.claude/agents/ant/aether-surveyor-pathogens.md +2 -1
- package/.claude/agents/ant/aether-surveyor-provisions.md +2 -1
- package/.claude/agents/ant/aether-tracker.md +6 -1
- package/.claude/agents/ant/aether-watcher.md +37 -1
- package/.claude/agents/ant/aether-weaver.md +2 -1
- package/.claude/commands/ant/archaeology.md +1 -8
- package/.claude/commands/ant/build.md +43 -1159
- package/.claude/commands/ant/chaos.md +1 -14
- package/.claude/commands/ant/colonize.md +3 -14
- package/.claude/commands/ant/continue.md +40 -1026
- package/.claude/commands/ant/council.md +213 -15
- package/.claude/commands/ant/data-clean.md +81 -0
- package/.claude/commands/ant/dream.md +12 -9
- package/.claude/commands/ant/entomb.md +62 -87
- package/.claude/commands/ant/export-signals.md +57 -0
- package/.claude/commands/ant/feedback.md +18 -0
- package/.claude/commands/ant/flag.md +12 -0
- package/.claude/commands/ant/flags.md +22 -8
- package/.claude/commands/ant/focus.md +18 -0
- package/.claude/commands/ant/help.md +40 -8
- package/.claude/commands/ant/history.md +3 -0
- package/.claude/commands/ant/import-signals.md +71 -0
- package/.claude/commands/ant/init.md +349 -191
- package/.claude/commands/ant/insert-phase.md +105 -0
- package/.claude/commands/ant/interpret.md +11 -0
- package/.claude/commands/ant/lay-eggs.md +167 -158
- package/.claude/commands/ant/maturity.md +22 -11
- package/.claude/commands/ant/memory-details.md +77 -0
- package/.claude/commands/ant/migrate-state.md +6 -0
- package/.claude/commands/ant/oracle.md +317 -62
- package/.claude/commands/ant/organize.md +10 -5
- package/.claude/commands/ant/patrol.md +620 -0
- package/.claude/commands/ant/pause-colony.md +8 -22
- package/.claude/commands/ant/phase.md +26 -37
- package/.claude/commands/ant/pheromones.md +156 -0
- package/.claude/commands/ant/plan.md +199 -50
- package/.claude/commands/ant/preferences.md +65 -0
- package/.claude/commands/ant/quick.md +100 -0
- package/.claude/commands/ant/redirect.md +18 -0
- package/.claude/commands/ant/resume-colony.md +37 -22
- package/.claude/commands/ant/resume.md +60 -7
- package/.claude/commands/ant/run.md +231 -0
- package/.claude/commands/ant/seal.md +506 -78
- package/.claude/commands/ant/skill-create.md +286 -0
- package/.claude/commands/ant/status.md +171 -1
- package/.claude/commands/ant/swarm.md +11 -23
- package/.claude/commands/ant/tunnels.md +1 -0
- package/.claude/commands/ant/update.md +58 -135
- package/.claude/commands/ant/verify-castes.md +90 -42
- package/.claude/commands/ant/watch.md +1 -0
- package/.opencode/agents/aether-ambassador.md +1 -1
- package/.opencode/agents/aether-architect.md +133 -0
- package/.opencode/agents/aether-builder.md +3 -3
- package/.opencode/agents/aether-oracle.md +137 -0
- package/.opencode/agents/aether-queen.md +1 -1
- package/.opencode/agents/aether-route-setter.md +1 -1
- package/.opencode/agents/aether-scout.md +1 -1
- package/.opencode/agents/aether-surveyor-disciplines.md +6 -1
- package/.opencode/agents/aether-surveyor-nest.md +6 -1
- package/.opencode/agents/aether-surveyor-pathogens.md +6 -1
- package/.opencode/agents/aether-surveyor-provisions.md +6 -1
- package/.opencode/agents/aether-tracker.md +1 -1
- package/.opencode/agents/aether-watcher.md +1 -1
- package/.opencode/agents/aether-weaver.md +1 -1
- package/.opencode/commands/ant/archaeology.md +7 -14
- package/.opencode/commands/ant/build.md +54 -88
- package/.opencode/commands/ant/chaos.md +7 -24
- package/.opencode/commands/ant/colonize.md +10 -17
- package/.opencode/commands/ant/continue.md +595 -66
- package/.opencode/commands/ant/council.md +150 -18
- package/.opencode/commands/ant/data-clean.md +77 -0
- package/.opencode/commands/ant/dream.md +15 -17
- package/.opencode/commands/ant/entomb.md +28 -18
- package/.opencode/commands/ant/export-signals.md +54 -0
- package/.opencode/commands/ant/feedback.md +24 -5
- package/.opencode/commands/ant/flag.md +16 -4
- package/.opencode/commands/ant/flags.md +24 -10
- package/.opencode/commands/ant/focus.md +22 -5
- package/.opencode/commands/ant/help.md +41 -8
- package/.opencode/commands/ant/history.md +9 -0
- package/.opencode/commands/ant/import-signals.md +68 -0
- package/.opencode/commands/ant/init.md +396 -154
- package/.opencode/commands/ant/insert-phase.md +111 -0
- package/.opencode/commands/ant/interpret.md +16 -0
- package/.opencode/commands/ant/lay-eggs.md +184 -112
- package/.opencode/commands/ant/maturity.md +18 -2
- package/.opencode/commands/ant/memory-details.md +83 -0
- package/.opencode/commands/ant/migrate-state.md +12 -0
- package/.opencode/commands/ant/oracle.md +322 -67
- package/.opencode/commands/ant/organize.md +14 -12
- package/.opencode/commands/ant/patrol.md +626 -0
- package/.opencode/commands/ant/pause-colony.md +12 -29
- package/.opencode/commands/ant/phase.md +30 -40
- package/.opencode/commands/ant/pheromones.md +162 -0
- package/.opencode/commands/ant/plan.md +210 -57
- package/.opencode/commands/ant/preferences.md +71 -0
- package/.opencode/commands/ant/quick.md +91 -0
- package/.opencode/commands/ant/redirect.md +22 -5
- package/.opencode/commands/ant/resume-colony.md +41 -29
- package/.opencode/commands/ant/resume.md +80 -20
- package/.opencode/commands/ant/run.md +237 -0
- package/.opencode/commands/ant/seal.md +230 -25
- package/.opencode/commands/ant/skill-create.md +63 -0
- package/.opencode/commands/ant/status.md +125 -30
- package/.opencode/commands/ant/swarm.md +3 -345
- package/.opencode/commands/ant/tunnels.md +3 -9
- package/.opencode/commands/ant/update.md +63 -127
- package/.opencode/commands/ant/verify-castes.md +96 -42
- package/.opencode/commands/ant/watch.md +7 -0
- package/CHANGELOG.md +368 -1
- package/README.md +195 -324
- package/bin/cli.js +236 -429
- package/bin/generate-commands.js +186 -0
- package/bin/generate-commands.sh +128 -89
- package/bin/lib/spawn-logger.js +0 -15
- package/bin/lib/update-transaction.js +285 -35
- package/bin/npx-install.js +178 -0
- package/bin/validate-package.sh +85 -3
- package/package.json +16 -4
- package/.aether/CONTEXT.md +0 -160
- package/.aether/docs/QUEEN.md +0 -84
- package/.aether/exchange/colony-registry.xml +0 -11
- package/.aether/exchange/pheromones.xml +0 -87
- package/.aether/exchange/queen-wisdom.xml +0 -14
- package/.aether/model-profiles.yaml +0 -100
- package/.aether/utils/spawn-with-model.sh +0 -56
- package/bin/lib/model-profiles.js +0 -445
- package/bin/lib/model-verify.js +0 -288
- package/bin/lib/proxy-health.js +0 -253
- package/bin/lib/telemetry.js +0 -441
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-discipline
|
|
3
|
+
description: Use when implementing code, writing tests, or executing build tasks as a builder worker
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [building, testing, quality, implementation]
|
|
6
|
+
agent_roles: [builder]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Build Discipline
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Builder workers must follow a disciplined implementation process. This skill ensures consistent quality, avoids repeating known failures, and keeps work aligned with the phase plan.
|
|
16
|
+
|
|
17
|
+
## Pre-Build Checklist
|
|
18
|
+
|
|
19
|
+
Before writing any code, complete these checks in order:
|
|
20
|
+
|
|
21
|
+
### 1. Check the Midden
|
|
22
|
+
|
|
23
|
+
Query recent failures using `midden-recent-failures`. Read what went wrong in previous builds. The midden exists to prevent you from repeating the same mistakes.
|
|
24
|
+
|
|
25
|
+
- If the midden contains failures related to your current task, adjust your approach before starting.
|
|
26
|
+
- If a failure has been acknowledged, note the resolution and follow it.
|
|
27
|
+
- Never ignore midden entries -- they represent real colony learning.
|
|
28
|
+
|
|
29
|
+
### 2. Check Active Pheromone Signals
|
|
30
|
+
|
|
31
|
+
Read all injected REDIRECT signals. These are hard constraints -- you must not violate them under any circumstances. Examples:
|
|
32
|
+
- "No inline styles" means you must use CSS classes or utility frameworks.
|
|
33
|
+
- "Avoid raw SQL" means you must use an ORM or query builder.
|
|
34
|
+
|
|
35
|
+
Read all FOCUS signals. These indicate where to direct extra attention:
|
|
36
|
+
- A FOCUS on "security" means add input validation, check for injection, review auth flows.
|
|
37
|
+
- A FOCUS on "testing" means write more comprehensive test cases than usual.
|
|
38
|
+
|
|
39
|
+
Read all FEEDBACK signals. These are preferences to incorporate naturally:
|
|
40
|
+
- "Prefer functional components" means choose functions over classes when both work.
|
|
41
|
+
|
|
42
|
+
### 3. Review the Phase Plan
|
|
43
|
+
|
|
44
|
+
Read the current phase description and task list. Understand exactly what you are supposed to build. Do not add features not in the plan. Do not refactor code outside your task scope. Stay focused.
|
|
45
|
+
|
|
46
|
+
## Implementation Process
|
|
47
|
+
|
|
48
|
+
### Write Tests First
|
|
49
|
+
|
|
50
|
+
Follow TDD discipline where the task permits:
|
|
51
|
+
1. Write a failing test that describes the expected behavior.
|
|
52
|
+
2. Run the test -- confirm it fails for the right reason.
|
|
53
|
+
3. Write the minimal code to make the test pass.
|
|
54
|
+
4. Refactor while keeping tests green.
|
|
55
|
+
|
|
56
|
+
If TDD is not practical for the task (e.g., configuration changes, documentation), note why in your output.
|
|
57
|
+
|
|
58
|
+
### Log Failures Before Changing Approach
|
|
59
|
+
|
|
60
|
+
If your implementation fails (test failure, build error, runtime crash):
|
|
61
|
+
1. Log the failure to the midden using `midden-write` before trying an alternative.
|
|
62
|
+
2. Include: what you tried, what error occurred, and what you will try next.
|
|
63
|
+
3. This ensures the colony learns from every failed attempt, not just the final success.
|
|
64
|
+
|
|
65
|
+
### Stay On Task
|
|
66
|
+
|
|
67
|
+
- Reference the phase plan task list in your output.
|
|
68
|
+
- Mark tasks as complete as you finish them.
|
|
69
|
+
- If you discover work that needs doing but is outside your task scope, flag it -- do not do it.
|
|
70
|
+
- If a task is blocked, report the blocker clearly instead of working around it silently.
|
|
71
|
+
|
|
72
|
+
## Output Standards
|
|
73
|
+
|
|
74
|
+
End your work summary with:
|
|
75
|
+
- Tasks completed (by name from the plan).
|
|
76
|
+
- Tests written and their pass/fail status.
|
|
77
|
+
- Any REDIRECT signals you complied with and how.
|
|
78
|
+
- Any blockers or flags raised.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: colony-interaction
|
|
3
|
+
description: Use when executing commands that involve major decisions, plan commits, build starts, verifications, or phase advances
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [interaction, ux, workflow]
|
|
6
|
+
agent_roles: [builder, watcher, route_setter, architect]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Colony Interaction
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
The colony workflow must not run autonomously past major decision points. Users want to feel in control of direction. This skill teaches you when and how to pause for user input.
|
|
16
|
+
|
|
17
|
+
## Mandatory Touchpoints
|
|
18
|
+
|
|
19
|
+
Stop and present a multiple-choice question at each of these moments:
|
|
20
|
+
|
|
21
|
+
1. **Before committing a plan** -- After generating phases, show the plan summary and ask: "Approve this plan?", "Adjust scope?", "Regenerate with different focus?"
|
|
22
|
+
2. **Before starting a build wave** -- Before spawning workers, confirm: "Start building phase N?", "Review tasks first?", "Skip to a different phase?"
|
|
23
|
+
3. **After verification** -- When continue finishes verifying, present results and ask: "Advance to next phase?", "Re-run this phase?", "Pause and review?"
|
|
24
|
+
4. **Before advancing phases** -- Before moving the phase pointer forward, confirm the user is satisfied with the current state.
|
|
25
|
+
|
|
26
|
+
## How to Ask
|
|
27
|
+
|
|
28
|
+
Use AskUserQuestion with 2-4 options. Follow these rules strictly:
|
|
29
|
+
|
|
30
|
+
- **Plain English only** -- No jargon, no technical IDs, no internal state names.
|
|
31
|
+
- **Short options** -- Each option should be 3-8 words. The user wants to click, not read paragraphs.
|
|
32
|
+
- **Explain consequences** -- Each option must briefly state what happens if selected. Example: "Start building (spawns 3 workers)" not just "Start building".
|
|
33
|
+
- **Default is obvious** -- The most common/expected action should be the first option.
|
|
34
|
+
- **Never auto-proceed** -- If you cannot present options (e.g., non-interactive mode), log that you would have paused and continue with the default action. Note this in output.
|
|
35
|
+
|
|
36
|
+
## Question Format Template
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
[Decision Point Name]
|
|
40
|
+
What would you like to do?
|
|
41
|
+
|
|
42
|
+
1. [Most likely action] -- [what happens]
|
|
43
|
+
2. [Alternative action] -- [what happens]
|
|
44
|
+
3. [Conservative action] -- [what happens]
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Anti-Patterns to Avoid
|
|
48
|
+
|
|
49
|
+
- Running an entire build-verify-advance cycle without any user confirmation.
|
|
50
|
+
- Asking yes/no questions when richer options exist (prefer 3 options over 2).
|
|
51
|
+
- Asking technical questions the user cannot answer ("Which serialization format?").
|
|
52
|
+
- Presenting options that require code knowledge to evaluate.
|
|
53
|
+
|
|
54
|
+
## Integration with Autopilot
|
|
55
|
+
|
|
56
|
+
When running under `/ant:run` (autopilot mode), interaction touchpoints are relaxed -- autopilot handles the build-verify-advance loop. But smart-pause conditions still apply: test failures, security issues, quality gate failures, and replan suggestions all trigger a pause that requires user input.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: colony-lifecycle
|
|
3
|
+
description: Use when producing command output, handling state transitions, or routing users to the next action in the colony workflow
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [lifecycle, routing, workflow, state]
|
|
6
|
+
agent_roles: [builder, watcher, route_setter, architect]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Colony Lifecycle
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Every command must leave the user with a clear next action. No dead ends. The colony has a defined state machine, and every output must orient the user within it.
|
|
16
|
+
|
|
17
|
+
## State Machine
|
|
18
|
+
|
|
19
|
+
The colony progresses through these states in order:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
IDLE -> READY -> PLANNING -> EXECUTING -> SEALED -> ENTOMBED -> IDLE
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
| State | Meaning | Entered By | Next Action |
|
|
26
|
+
|-------|---------|------------|-------------|
|
|
27
|
+
| IDLE | No active colony | Default / after entomb | `/ant:init` |
|
|
28
|
+
| READY | Colony initialized, no plan | `/ant:init` | `/ant:plan` |
|
|
29
|
+
| PLANNING | Plan being generated | `/ant:plan` | `/ant:build 1` |
|
|
30
|
+
| EXECUTING | Phases being built | `/ant:build` | `/ant:continue` |
|
|
31
|
+
| SEALED | Colony marked complete | `/ant:seal` | `/ant:entomb` |
|
|
32
|
+
| ENTOMBED | Colony archived | `/ant:entomb` | `/ant:init` (new goal) |
|
|
33
|
+
|
|
34
|
+
## Next Up Block
|
|
35
|
+
|
|
36
|
+
Every command output must end with a "Next Up" block. This block tells the user exactly what to do next based on the current state.
|
|
37
|
+
|
|
38
|
+
### Format
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
━━ N E X T U P ━━
|
|
42
|
+
Run /ant:continue to verify work and advance to the next phase.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Rules
|
|
46
|
+
|
|
47
|
+
- Always include the exact command to run, with any arguments.
|
|
48
|
+
- If multiple valid next actions exist, list the primary one first, then alternatives.
|
|
49
|
+
- Match the Next Up to the current state -- never suggest a command that is invalid for the current state.
|
|
50
|
+
- After seal, suggest entomb. After entomb, suggest init with a new goal.
|
|
51
|
+
- Never output a command result without a Next Up block.
|
|
52
|
+
|
|
53
|
+
### State-Specific Next Up Examples
|
|
54
|
+
|
|
55
|
+
| Current State | Primary Next Up | Alternatives |
|
|
56
|
+
|---------------|-----------------|--------------|
|
|
57
|
+
| READY | `/ant:plan` | `/ant:colonize` (if existing code) |
|
|
58
|
+
| PLANNING | `/ant:build 1` | `/ant:focus` / `/ant:redirect` (to set signals first) |
|
|
59
|
+
| EXECUTING (just built) | `/ant:continue` | `/ant:status` (to review) |
|
|
60
|
+
| EXECUTING (just verified) | `/ant:build N+1` | `/ant:seal` (if last phase) |
|
|
61
|
+
| SEALED | `/ant:entomb` | -- |
|
|
62
|
+
| ENTOMBED | `/ant:init "new goal"` | -- |
|
|
63
|
+
|
|
64
|
+
## Command Chaining Awareness
|
|
65
|
+
|
|
66
|
+
Commands feed into each other. When producing output, be aware of what the previous command was and what the next one expects:
|
|
67
|
+
|
|
68
|
+
- `init` creates state that `plan` reads.
|
|
69
|
+
- `plan` creates phases that `build` executes.
|
|
70
|
+
- `build` creates artifacts that `continue` verifies.
|
|
71
|
+
- `continue` advances state that the next `build` reads.
|
|
72
|
+
|
|
73
|
+
If a command detects that prerequisite state is missing (e.g., `build` called with no plan), display a clear error explaining what to run first, not a cryptic failure message.
|
|
74
|
+
|
|
75
|
+
## Dead End Prevention
|
|
76
|
+
|
|
77
|
+
Before finalizing any command output, check: "Does this output end with a Next Up block?" If not, add one. There are zero valid cases where a command should leave the user without guidance on what to do next.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: colony-visuals
|
|
3
|
+
description: Use when producing any user-facing output including banners, progress indicators, section headers, or command results
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [visuals, ux, formatting]
|
|
6
|
+
agent_roles: [builder, watcher, chronicler, scout]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Colony Visuals
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
All colony output must look consistent. Users should never see mismatched banner styles, missing progress bars, or unformatted raw output. This skill standardizes every visual element.
|
|
16
|
+
|
|
17
|
+
## Banner Format
|
|
18
|
+
|
|
19
|
+
Use spaced-letter format for all section banners. The standard pattern is:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
━━ S E C T I O N T I T L E ━━
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Rules:
|
|
26
|
+
- Every letter is separated by a single space.
|
|
27
|
+
- Words are separated by three spaces.
|
|
28
|
+
- Bordered by `━━` on both sides with a single space between the border and text.
|
|
29
|
+
- Use `print-standard-banner` utility when available. If unavailable, format manually following this pattern exactly.
|
|
30
|
+
- Never use alternative banner styles (e.g., `===`, `###`, `***`, `---` banners).
|
|
31
|
+
|
|
32
|
+
## Progress Bars
|
|
33
|
+
|
|
34
|
+
Always use the `generate-progress-bar` utility for progress indicators. Never construct progress bars manually with characters like `[=====> ]`.
|
|
35
|
+
|
|
36
|
+
Format: `[Phase 3/7] ████████░░░░ 57%`
|
|
37
|
+
|
|
38
|
+
Show progress bars:
|
|
39
|
+
- At the start of each phase build.
|
|
40
|
+
- After each worker completes during a build wave.
|
|
41
|
+
- In status dashboard output.
|
|
42
|
+
|
|
43
|
+
## Output Block Structure
|
|
44
|
+
|
|
45
|
+
Every command output follows this three-part structure:
|
|
46
|
+
|
|
47
|
+
1. **Header banner** -- Spaced-letter banner identifying the command or section.
|
|
48
|
+
2. **Content** -- The actual information, tables, results, or status.
|
|
49
|
+
3. **Next Up footer** -- What the user should do next (see colony-lifecycle skill).
|
|
50
|
+
|
|
51
|
+
Wrap content sections in `━━━` dividers (3+ characters) for visual separation.
|
|
52
|
+
|
|
53
|
+
## Emoji Usage
|
|
54
|
+
|
|
55
|
+
- **One emoji per section header** -- Place it before the section title text.
|
|
56
|
+
- **Never use emoji in body text** -- Keep body text clean and professional.
|
|
57
|
+
- **Consistent emoji mapping** -- Use the same emoji for the same concept across all commands. Examples: build, test, verify, complete, warning, error.
|
|
58
|
+
|
|
59
|
+
## Tables
|
|
60
|
+
|
|
61
|
+
When presenting structured data, use aligned markdown tables:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
| Column 1 | Column 2 | Status |
|
|
65
|
+
|----------|----------|--------|
|
|
66
|
+
| value | value | done |
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Ensure columns are padded for alignment. Never use unaligned or ragged tables.
|
|
70
|
+
|
|
71
|
+
## Color and Emphasis
|
|
72
|
+
|
|
73
|
+
- **Bold** for labels and headings.
|
|
74
|
+
- *Italic* for supplementary notes.
|
|
75
|
+
- Use color sparingly and consistently -- green for success, red for errors, yellow for warnings.
|
|
76
|
+
|
|
77
|
+
## Emoji Reference Map
|
|
78
|
+
|
|
79
|
+
This is the canonical reference for emoji usage across all Aether commands. All commands must use these emojis consistently for the concepts listed below.
|
|
80
|
+
|
|
81
|
+
| Emoji | Concept | Used In |
|
|
82
|
+
|-------|---------|---------|
|
|
83
|
+
| 🔨 | Builder ant | build.md, workers.md |
|
|
84
|
+
| 👁️ | Watcher ant | build.md, continue.md |
|
|
85
|
+
| 🎲 | Chaos ant | build.md |
|
|
86
|
+
| 🔍 | Scout ant | build.md |
|
|
87
|
+
| 🏺 | Archaeologist / Seal | archaeology.md, seal.md |
|
|
88
|
+
| 🔮 | Oracle ant | oracle.md, build.md |
|
|
89
|
+
| 🏛️ | Architect ant | build.md |
|
|
90
|
+
| 🔌 | Ambassador ant | build.md |
|
|
91
|
+
| 📊 | Measurer ant / Status | measurer, status.md |
|
|
92
|
+
| 🧪 | Probe / Tests | continue.md |
|
|
93
|
+
| 🔄 | Weaver / Refresh | continue.md |
|
|
94
|
+
| 📦 | Gatekeeper / Package | continue.md |
|
|
95
|
+
| 👥 | Auditor | continue.md |
|
|
96
|
+
| 🚩 | Flag / Blocker | flags.md |
|
|
97
|
+
| 💭 | Dream | dream.md |
|
|
98
|
+
| 🥚 | Queen / Init | lay-eggs.md |
|
|
99
|
+
| 📋 | Plan / List | plan.md |
|
|
100
|
+
| ✅ | Pass / Success | verification |
|
|
101
|
+
| ❌ | Fail / Error | verification |
|
|
102
|
+
| ⚠️ | Warning | gates |
|
|
103
|
+
| ⛔ | Hard block | gates |
|
|
104
|
+
| 💾 | Save / Persist | pause.md |
|
|
105
|
+
| 🎯 | Focus signal | pheromones |
|
|
106
|
+
| 🚫 | Redirect signal | pheromones |
|
|
107
|
+
| 💬 | Feedback signal | pheromones |
|
|
108
|
+
| 📜 | Sage ant | seal.md |
|
|
109
|
+
| 📝 | Chronicler ant | seal.md |
|
|
110
|
+
| 🖼️ | Visual checkpoint | build-complete.md |
|
|
111
|
+
|
|
112
|
+
> **Canonical reference:** When adding emoji to any user-facing command output, use this table as the definitive guide. Do not introduce new emoji for concepts already covered here. If a new concept requires an emoji, add it to this table first.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-management
|
|
3
|
+
description: Use when performing state-changing operations, recovering sessions, creating handoffs, or managing context freshness
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [context, session, recovery, state]
|
|
6
|
+
agent_roles: [builder, watcher, scout, architect]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Context Management
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Colony context must stay fresh and recoverable. When sessions break, context is the bridge that lets the next session pick up without losing progress. This skill teaches you how to maintain that bridge.
|
|
16
|
+
|
|
17
|
+
## After State-Changing Operations
|
|
18
|
+
|
|
19
|
+
Any operation that modifies colony state must update context. State-changing operations include:
|
|
20
|
+
|
|
21
|
+
- Phase advances (current_phase changes)
|
|
22
|
+
- Task completion (task status changes)
|
|
23
|
+
- Instinct creation or promotion
|
|
24
|
+
- Pheromone signal creation, reinforcement, or expiration
|
|
25
|
+
- Blocker flags raised or resolved
|
|
26
|
+
- Plan regeneration
|
|
27
|
+
|
|
28
|
+
After each of these, call `context-update` to write the current state summary to CONTEXT.md. This ensures the context file always reflects reality.
|
|
29
|
+
|
|
30
|
+
## File Freshness Verification
|
|
31
|
+
|
|
32
|
+
Before reading state files (COLONY_STATE.json, pheromones.json, session.json), verify freshness using `session-verify-fresh`:
|
|
33
|
+
|
|
34
|
+
- If the file is stale (older than the current session), treat data with caution.
|
|
35
|
+
- For protected commands (init, seal, entomb), never auto-clear stale files -- prompt the user.
|
|
36
|
+
- For other commands, auto-clear stale session files and log that you did so.
|
|
37
|
+
|
|
38
|
+
Freshness matters because state files from a previous session may contain outdated phase pointers, resolved blockers, or expired signals that would mislead the current session.
|
|
39
|
+
|
|
40
|
+
## HANDOFF.md Requirements
|
|
41
|
+
|
|
42
|
+
When creating a handoff (via `/ant:pause-colony` or session end), HANDOFF.md must include all five sections:
|
|
43
|
+
|
|
44
|
+
1. **Goal** -- The active colony goal, exactly as stated in COLONY_STATE.json.
|
|
45
|
+
2. **Phase** -- Current phase number and name, plus completion percentage.
|
|
46
|
+
3. **Signals** -- All active pheromone signals with their types and strengths.
|
|
47
|
+
4. **Blockers** -- Any active blocker flags, including who raised them and why.
|
|
48
|
+
5. **Next Step** -- The exact command to run next and what it will do.
|
|
49
|
+
|
|
50
|
+
Missing any of these sections makes recovery harder. If a section has no content (e.g., no blockers), include it with "None" rather than omitting it.
|
|
51
|
+
|
|
52
|
+
## Session Recovery Fallback Chain
|
|
53
|
+
|
|
54
|
+
When resuming, follow this fallback chain:
|
|
55
|
+
|
|
56
|
+
1. **HANDOFF.md** (preferred) -- Richest context, includes signals and blockers.
|
|
57
|
+
2. **CONTEXT.md + COLONY_STATE.json** (fallback) -- Reconstruct from state files if no handoff exists.
|
|
58
|
+
3. **COLONY_STATE.json alone** (last resort) -- Minimal recovery, may miss recent changes.
|
|
59
|
+
|
|
60
|
+
Always tell the user which recovery source you used: "Restored from HANDOFF.md" or "No handoff found, recovered from state files."
|
|
61
|
+
|
|
62
|
+
## Context at Natural Break Points
|
|
63
|
+
|
|
64
|
+
At natural breaks (phase completion, verification pass, seal), prompt the user to consider clearing context if the conversation has been long:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
This session has been running for a while. Consider running /ant:pause-colony
|
|
68
|
+
to save state, then start fresh with /ant:resume-colony.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
This helps prevent context window degradation in long sessions.
|
|
72
|
+
|
|
73
|
+
## CONTEXT.md Content
|
|
74
|
+
|
|
75
|
+
CONTEXT.md should contain a concise summary (not a full dump) of:
|
|
76
|
+
- Active goal and current phase
|
|
77
|
+
- Recent completions (last 2-3 tasks)
|
|
78
|
+
- Active signals (type and content only, not full JSON)
|
|
79
|
+
- Known blockers
|
|
80
|
+
- Recommended next action
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: error-presentation
|
|
3
|
+
description: Use when an operation fails, an error occurs, or a warning needs to be communicated to the user
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [errors, ux, formatting, diagnostics]
|
|
6
|
+
agent_roles: [builder, watcher, scout]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Error Presentation
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Errors deserve the same visual care as successes. When something goes wrong, the user should see a clear, formatted explanation -- not a raw stack trace or cryptic error code. This skill ensures error output matches the quality of success output.
|
|
16
|
+
|
|
17
|
+
## Error Output Format
|
|
18
|
+
|
|
19
|
+
Every error must follow this four-part structure:
|
|
20
|
+
|
|
21
|
+
### 1. Error Banner
|
|
22
|
+
|
|
23
|
+
Use the standard spaced-letter banner format:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
━━ E R R O R ━━
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
For warnings (non-fatal issues):
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
━━ W A R N I N G ━━
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Plain-English Description
|
|
36
|
+
|
|
37
|
+
Explain what went wrong in one or two sentences that a non-technical person could understand.
|
|
38
|
+
|
|
39
|
+
Good: "The build failed because a test file could not be found."
|
|
40
|
+
Bad: "ENOENT: no such file or directory, open '/path/to/test.spec.js'"
|
|
41
|
+
|
|
42
|
+
Never show raw error messages, stack traces, file paths, or error codes to the user. If technical details are needed for debugging, include them in a collapsed or secondary section, not the main message.
|
|
43
|
+
|
|
44
|
+
### 3. What Is Being Done
|
|
45
|
+
|
|
46
|
+
Tell the user what the system is doing about the error:
|
|
47
|
+
|
|
48
|
+
- "Retrying with an alternative approach..."
|
|
49
|
+
- "Logging this failure for colony learning."
|
|
50
|
+
- "Rolling back to the last known good state."
|
|
51
|
+
|
|
52
|
+
If nothing can be done automatically, say so clearly: "This requires manual intervention."
|
|
53
|
+
|
|
54
|
+
### 4. User Action
|
|
55
|
+
|
|
56
|
+
End with specific, actionable steps the user can take:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
What you can do:
|
|
60
|
+
- Run /ant:status to see the current state
|
|
61
|
+
- Run /ant:build 3 to retry this phase
|
|
62
|
+
- Run /ant:flag "blocked on X" to mark a blocker
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Always provide at least one actionable command. Never end an error with just "Something went wrong."
|
|
66
|
+
|
|
67
|
+
## Error Grouping
|
|
68
|
+
|
|
69
|
+
When multiple related errors occur (e.g., 5 tests fail in the same module), group them:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
━━ E R R O R ━━
|
|
73
|
+
3 tests failed in the authentication module:
|
|
74
|
+
- Login with expired token
|
|
75
|
+
- Password reset flow
|
|
76
|
+
- Session refresh
|
|
77
|
+
|
|
78
|
+
Common cause: The auth service mock is not configured.
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Never dump errors one by one when they share a root cause. Grouping helps the user see the pattern.
|
|
82
|
+
|
|
83
|
+
## Error Severity Levels
|
|
84
|
+
|
|
85
|
+
| Level | Banner | When |
|
|
86
|
+
|-------|--------|------|
|
|
87
|
+
| Error | `━━ E R R O R ━━` | Operation failed, cannot proceed |
|
|
88
|
+
| Warning | `━━ W A R N I N G ━━` | Something is off but work continues |
|
|
89
|
+
| Notice | `━━ N O T I C E ━━` | Informational, no action needed |
|
|
90
|
+
|
|
91
|
+
Use the right level. Do not call everything an error -- warnings and notices exist for a reason.
|
|
92
|
+
|
|
93
|
+
## Anti-Patterns
|
|
94
|
+
|
|
95
|
+
- Showing raw JSON error responses to the user.
|
|
96
|
+
- Displaying file paths without explaining what the file is.
|
|
97
|
+
- Using technical jargon: "mutex deadlock", "race condition", "null pointer".
|
|
98
|
+
- Ending error output without a Next Up or action block.
|
|
99
|
+
- Formatting errors as plain text when successes get rich formatting.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pheromone-protocol
|
|
3
|
+
description: Use when pheromone signals are present in your assembled context and you need to interpret and comply with them
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [pheromones, protocol, signals, compliance]
|
|
6
|
+
agent_roles: [builder, watcher, scout, chaos, oracle, architect, colonizer, route_setter, archaeologist, chronicler, keeper, tracker, probe, weaver, auditor, gatekeeper, includer, measurer, sage, ambassador]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Pheromone Protocol
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Pheromone signals are the colony's steering mechanism. Every agent must know how to read, interpret, and comply with them. This skill standardizes signal handling across all 22 agent roles.
|
|
16
|
+
|
|
17
|
+
## Signal Types and Required Response
|
|
18
|
+
|
|
19
|
+
### REDIRECT -- Hard Constraint
|
|
20
|
+
|
|
21
|
+
REDIRECT signals are non-negotiable. You MUST comply.
|
|
22
|
+
|
|
23
|
+
- If a REDIRECT says "avoid pattern X", you must not use pattern X in any code you write, any recommendation you make, or any approach you take.
|
|
24
|
+
- REDIRECTs marked `[error-pattern]` come from repeated colony failures (midden threshold). These are lessons learned the hard way -- treat them with extra seriousness.
|
|
25
|
+
- If complying with a REDIRECT conflicts with your task, report the conflict as a blocker rather than violating the REDIRECT.
|
|
26
|
+
- In your output, explicitly acknowledge each REDIRECT and state how you complied.
|
|
27
|
+
|
|
28
|
+
### FOCUS -- Prioritize This Area
|
|
29
|
+
|
|
30
|
+
FOCUS signals direct your attention. You SHOULD prioritize.
|
|
31
|
+
|
|
32
|
+
- When choosing between approaches, prefer the one aligned with active FOCUS signals.
|
|
33
|
+
- FOCUS areas receive extra effort: more thorough analysis, additional test coverage, deeper investigation.
|
|
34
|
+
- If your task touches a FOCUS area, give it proportionally more attention than non-focused areas.
|
|
35
|
+
- You may deprioritize (but not ignore) non-focused areas to spend more time on focused ones.
|
|
36
|
+
|
|
37
|
+
### FEEDBACK -- Preference Adjustment
|
|
38
|
+
|
|
39
|
+
FEEDBACK signals are calibration from past experience. You may incorporate flexibly.
|
|
40
|
+
|
|
41
|
+
- Use FEEDBACK to adjust patterns: coding style, naming conventions, architectural preferences.
|
|
42
|
+
- You may deviate from FEEDBACK with good reason, but note the deviation in your output.
|
|
43
|
+
- FEEDBACK accumulates -- multiple FEEDBACK signals pointing the same direction carry more weight than a single one.
|
|
44
|
+
|
|
45
|
+
## Role-Specific Adaptations
|
|
46
|
+
|
|
47
|
+
Different roles adapt signal handling to their function:
|
|
48
|
+
|
|
49
|
+
| Role | REDIRECT Adaptation | FOCUS Adaptation |
|
|
50
|
+
|------|-------------------|-----------------|
|
|
51
|
+
| Builder | Avoid flagged patterns in code | Write extra tests for focused areas |
|
|
52
|
+
| Watcher | Flag violations in review | Deeper checks on focused areas |
|
|
53
|
+
| Scout | Exclude flagged approaches from research | Prioritize focused topics |
|
|
54
|
+
| Chaos | Test flagged patterns for regression | Focus chaos testing on focused areas |
|
|
55
|
+
| Route Setter | Exclude flagged approaches from plans | Weight focused areas in phase design |
|
|
56
|
+
| Architect | Reject designs using flagged patterns | Center architecture around focused areas |
|
|
57
|
+
|
|
58
|
+
All other roles follow the general protocol above.
|
|
59
|
+
|
|
60
|
+
## Compliance Reporting
|
|
61
|
+
|
|
62
|
+
In your output summary, include a signal compliance section:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
Signal Compliance:
|
|
66
|
+
- REDIRECT "no inline styles": Complied -- used Tailwind utility classes throughout
|
|
67
|
+
- FOCUS "security": Applied -- added input validation to all endpoints
|
|
68
|
+
- FEEDBACK "prefer composition": Followed -- used composition pattern for new components
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
If no signals were present in your context, note: "No active pheromone signals."
|
|
72
|
+
|
|
73
|
+
## Signal Absence
|
|
74
|
+
|
|
75
|
+
If your context contains no pheromone signals section, this means either:
|
|
76
|
+
- No signals are currently active (normal for new colonies).
|
|
77
|
+
- The signals section was trimmed for token budget (normal under compact mode).
|
|
78
|
+
|
|
79
|
+
In either case, proceed with your task using default judgment. Do not treat signal absence as an error.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pheromone-visibility
|
|
3
|
+
description: Use when performing any pheromone operation including creating, reinforcing, expiring, or auto-emitting signals during builds and continues
|
|
4
|
+
type: colony
|
|
5
|
+
domains: [pheromones, visibility, ux]
|
|
6
|
+
agent_roles: [builder, watcher, scout]
|
|
7
|
+
priority: normal
|
|
8
|
+
version: "1.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Pheromone Visibility
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Pheromone operations must never happen silently. Users need to see exactly what signals are being created, reinforced, expired, or auto-emitted. Every signal change is an opportunity to build user trust in the colony system.
|
|
16
|
+
|
|
17
|
+
## Mandatory Visibility Rules
|
|
18
|
+
|
|
19
|
+
Every pheromone operation must produce a user-visible output line. No exceptions.
|
|
20
|
+
|
|
21
|
+
### Signal Creation
|
|
22
|
+
|
|
23
|
+
When a new signal is created, display:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
FOCUS emitted: "area description" [initial strength%]
|
|
27
|
+
REDIRECT emitted: "constraint description" [initial strength%]
|
|
28
|
+
FEEDBACK emitted: "observation" [initial strength%]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Signal Reinforcement
|
|
32
|
+
|
|
33
|
+
When an existing signal is reinforced (duplicate content detected), display:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
FOCUS reinforced: "area description" [new strength%] (x3 reinforcements)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Signal Expiration
|
|
40
|
+
|
|
41
|
+
When a signal expires due to decay or phase change, display:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
FOCUS expired: "area description" (was active for 3 phases)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Auto-Emission
|
|
48
|
+
|
|
49
|
+
During builds and continues, the system auto-emits signals based on decisions and learnings. Each auto-emission must be visible:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
Auto-emitted FEEDBACK: "prefer composition over inheritance" [70%]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Signal Changes Summary
|
|
56
|
+
|
|
57
|
+
At the end of every `/ant:continue` execution, display a "Signal Changes" summary table:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
━━ S I G N A L C H A N G E S ━━
|
|
61
|
+
|
|
62
|
+
| Signal | Action | Content | Strength |
|
|
63
|
+
|---------|------------|----------------------|----------|
|
|
64
|
+
| FOCUS | created | "security" | 85% |
|
|
65
|
+
| REDIRECT| reinforced | "no inline styles" | 95% |
|
|
66
|
+
| FEEDBACK| expired | "prefer dark theme" | 0% |
|
|
67
|
+
|
|
68
|
+
Active signals: 5 | Created: 1 | Reinforced: 1 | Expired: 1
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
If no signal changes occurred, still display the section with "No signal changes this cycle."
|
|
72
|
+
|
|
73
|
+
## Integration Points
|
|
74
|
+
|
|
75
|
+
- **During build** (build-wave): Show each auto-emitted signal as it happens, inline with worker output.
|
|
76
|
+
- **During continue** (continue-verify, continue-advance): Collect all changes and present the summary table at the end.
|
|
77
|
+
- **During seal**: Show which signals are being promoted to eternal memory or hive.
|
|
78
|
+
|
|
79
|
+
## Why This Matters
|
|
80
|
+
|
|
81
|
+
Without visibility, pheromone evolution feels like magic -- the user cannot learn what signals do, cannot predict behavior, and cannot trust the system to act on their guidance. Making every operation visible turns the pheromone system from an opaque mechanism into a transparent feedback loop.
|