pgserve 2.1.3 → 2.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.
Files changed (235) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/README.md +105 -1
  3. package/bin/autopg-wrapper.cjs +16 -0
  4. package/bin/pgserve-wrapper.cjs +32 -6
  5. package/bin/postgres-server.js +56 -0
  6. package/console/README.md +131 -0
  7. package/console/api.js +173 -0
  8. package/console/app.jsx +483 -0
  9. package/console/colors_and_type.css +227 -0
  10. package/console/components.jsx +167 -0
  11. package/console/console.css +1666 -0
  12. package/console/data.jsx +350 -0
  13. package/console/index.html +31 -0
  14. package/console/screens/databases.jsx +5 -0
  15. package/console/screens/health.jsx +5 -0
  16. package/console/screens/ingress.jsx +5 -0
  17. package/console/screens/optimizer.jsx +5 -0
  18. package/console/screens/rlm-sim.jsx +5 -0
  19. package/console/screens/rlm-trace.jsx +5 -0
  20. package/console/screens/security.jsx +5 -0
  21. package/console/screens/settings.jsx +611 -0
  22. package/console/screens/sql.jsx +5 -0
  23. package/console/screens/sync.jsx +5 -0
  24. package/console/screens/tables.jsx +5 -0
  25. package/console/tweaks-panel.jsx +425 -0
  26. package/package.json +14 -2
  27. package/scripts/postinstall.cjs +60 -0
  28. package/src/cli-config.cjs +310 -0
  29. package/src/cli-install.cjs +112 -11
  30. package/src/cli-restart.cjs +228 -0
  31. package/src/cli-ui.cjs +580 -0
  32. package/src/cluster.js +43 -38
  33. package/src/postgres.js +141 -19
  34. package/src/settings-loader.cjs +235 -0
  35. package/src/settings-migrate.cjs +212 -0
  36. package/src/settings-pg-args.cjs +146 -0
  37. package/src/settings-schema.cjs +422 -0
  38. package/src/settings-validator.cjs +416 -0
  39. package/src/settings-writer.cjs +288 -0
  40. package/src/upgrade/index.js +65 -0
  41. package/src/upgrade/runner.js +23 -0
  42. package/src/upgrade/steps/binary-cache-flush.js +67 -0
  43. package/src/upgrade/steps/consumer-signal.js +40 -0
  44. package/src/upgrade/steps/env-refresh.js +89 -0
  45. package/src/upgrade/steps/health-validate.js +53 -0
  46. package/src/upgrade/steps/plpgsql-resolve.js +66 -0
  47. package/src/upgrade/steps/port-reconcile.js +52 -0
  48. package/.claude/context/windows-debug.md +0 -119
  49. package/.genie/AGENTS.md +0 -15
  50. package/.genie/agents/README.md +0 -110
  51. package/.genie/agents/analyze.md +0 -176
  52. package/.genie/agents/forge.md +0 -290
  53. package/.genie/agents/garbage-cleaner.md +0 -324
  54. package/.genie/agents/garbage-collector.md +0 -596
  55. package/.genie/agents/github-issue-gc.md +0 -618
  56. package/.genie/agents/review.md +0 -380
  57. package/.genie/agents/semantic-analyzer/find-duplicates.md +0 -90
  58. package/.genie/agents/semantic-analyzer/find-orphans.md +0 -99
  59. package/.genie/agents/semantic-analyzer.md +0 -101
  60. package/.genie/agents/update.md +0 -182
  61. package/.genie/agents/wish.md +0 -357
  62. package/.genie/brainstorms/pgserve-v2/DESIGN.md +0 -174
  63. package/.genie/code/AGENTS.md +0 -694
  64. package/.genie/code/agents/audit/risk.md +0 -173
  65. package/.genie/code/agents/audit/security.md +0 -189
  66. package/.genie/code/agents/audit.md +0 -145
  67. package/.genie/code/agents/challenge.md +0 -230
  68. package/.genie/code/agents/change-reviewer.md +0 -295
  69. package/.genie/code/agents/code-garbage-collector.md +0 -425
  70. package/.genie/code/agents/code-quality.md +0 -410
  71. package/.genie/code/agents/commit-suggester.md +0 -255
  72. package/.genie/code/agents/commit.md +0 -124
  73. package/.genie/code/agents/consensus.md +0 -204
  74. package/.genie/code/agents/daily-standup.md +0 -722
  75. package/.genie/code/agents/docgen.md +0 -48
  76. package/.genie/code/agents/explore.md +0 -79
  77. package/.genie/code/agents/fix.md +0 -100
  78. package/.genie/code/agents/git/commit-advisory.md +0 -219
  79. package/.genie/code/agents/git/workflows/issue.md +0 -244
  80. package/.genie/code/agents/git/workflows/pr.md +0 -179
  81. package/.genie/code/agents/git/workflows/release.md +0 -460
  82. package/.genie/code/agents/git/workflows/report.md +0 -342
  83. package/.genie/code/agents/git.md +0 -432
  84. package/.genie/code/agents/implementor.md +0 -161
  85. package/.genie/code/agents/install.md +0 -515
  86. package/.genie/code/agents/issue-creator.md +0 -344
  87. package/.genie/code/agents/polish.md +0 -116
  88. package/.genie/code/agents/qa.md +0 -653
  89. package/.genie/code/agents/refactor.md +0 -294
  90. package/.genie/code/agents/release.md +0 -1129
  91. package/.genie/code/agents/roadmap.md +0 -885
  92. package/.genie/code/agents/tests.md +0 -557
  93. package/.genie/code/agents/tracer.md +0 -50
  94. package/.genie/code/agents/update/upstream-update.md +0 -85
  95. package/.genie/code/agents/update/versions/generic-update.md +0 -305
  96. package/.genie/code/agents/vibe.md +0 -1317
  97. package/.genie/code/spells/agent-configuration.md +0 -58
  98. package/.genie/code/spells/automated-rc-publishing.md +0 -106
  99. package/.genie/code/spells/branch-tracker-guidance.md +0 -28
  100. package/.genie/code/spells/debug.md +0 -320
  101. package/.genie/code/spells/emoji-naming-convention.md +0 -303
  102. package/.genie/code/spells/evidence-storage.md +0 -26
  103. package/.genie/code/spells/file-naming-rules.md +0 -35
  104. package/.genie/code/spells/forge-code-blueprints.md +0 -195
  105. package/.genie/code/spells/genie-integration.md +0 -153
  106. package/.genie/code/spells/publishing-protocol.md +0 -61
  107. package/.genie/code/spells/team-consultation-protocol.md +0 -284
  108. package/.genie/code/spells/tool-requirements.md +0 -20
  109. package/.genie/code/spells/triad-maintenance-protocol.md +0 -154
  110. package/.genie/code/teams/tech-council/council.md +0 -328
  111. package/.genie/code/teams/tech-council/jt.md +0 -352
  112. package/.genie/code/teams/tech-council/nayr.md +0 -305
  113. package/.genie/code/teams/tech-council/oettam.md +0 -375
  114. package/.genie/neurons/README.md +0 -193
  115. package/.genie/neurons/forge.md +0 -106
  116. package/.genie/neurons/genie.md +0 -63
  117. package/.genie/neurons/review.md +0 -106
  118. package/.genie/neurons/wish.md +0 -104
  119. package/.genie/product/README.md +0 -20
  120. package/.genie/product/cli-automation.md +0 -359
  121. package/.genie/product/environment.md +0 -60
  122. package/.genie/product/mission.md +0 -60
  123. package/.genie/product/roadmap.md +0 -44
  124. package/.genie/product/tech-stack.md +0 -34
  125. package/.genie/product/templates/context-template.md +0 -218
  126. package/.genie/product/templates/qa-done-report-template.md +0 -68
  127. package/.genie/product/templates/review-report-template.md +0 -89
  128. package/.genie/product/templates/wish-template.md +0 -120
  129. package/.genie/scripts/helpers/analyze-commit.js +0 -195
  130. package/.genie/scripts/helpers/bullet-counter.js +0 -194
  131. package/.genie/scripts/helpers/bullet-find.js +0 -289
  132. package/.genie/scripts/helpers/bullet-id.js +0 -244
  133. package/.genie/scripts/helpers/check-secrets.js +0 -237
  134. package/.genie/scripts/helpers/count-tokens.js +0 -200
  135. package/.genie/scripts/helpers/create-frontmatter.js +0 -456
  136. package/.genie/scripts/helpers/detect-markers.js +0 -293
  137. package/.genie/scripts/helpers/detect-todos.js +0 -267
  138. package/.genie/scripts/helpers/detect-unlabeled-blocks.js +0 -135
  139. package/.genie/scripts/helpers/embeddings.js +0 -344
  140. package/.genie/scripts/helpers/find-empty-sections.js +0 -158
  141. package/.genie/scripts/helpers/index.js +0 -319
  142. package/.genie/scripts/helpers/validate-frontmatter.js +0 -578
  143. package/.genie/scripts/helpers/validate-links.js +0 -207
  144. package/.genie/scripts/helpers/validate-paths.js +0 -373
  145. package/.genie/spells/README.md +0 -9
  146. package/.genie/spells/ace-protocol.md +0 -118
  147. package/.genie/spells/ask-one-at-a-time.md +0 -175
  148. package/.genie/spells/backup-analyzer.md +0 -542
  149. package/.genie/spells/blocker.md +0 -12
  150. package/.genie/spells/break-things-move-fast.md +0 -56
  151. package/.genie/spells/context-candidates.md +0 -72
  152. package/.genie/spells/context-critic.md +0 -51
  153. package/.genie/spells/defer-to-expertise.md +0 -278
  154. package/.genie/spells/delegate-dont-do.md +0 -292
  155. package/.genie/spells/error-investigation-protocol.md +0 -328
  156. package/.genie/spells/evidence-based-completion.md +0 -273
  157. package/.genie/spells/experiment.md +0 -65
  158. package/.genie/spells/file-creation-protocol.md +0 -229
  159. package/.genie/spells/forge-integration.md +0 -281
  160. package/.genie/spells/forge-orchestration.md +0 -514
  161. package/.genie/spells/gather-context.md +0 -18
  162. package/.genie/spells/global-health-check.md +0 -34
  163. package/.genie/spells/global-noop-roundtrip.md +0 -25
  164. package/.genie/spells/install-genie.md +0 -1232
  165. package/.genie/spells/install.md +0 -82
  166. package/.genie/spells/investigate-before-commit.md +0 -112
  167. package/.genie/spells/know-yourself.md +0 -288
  168. package/.genie/spells/learn.md +0 -828
  169. package/.genie/spells/mcp-diagnostic-protocol.md +0 -246
  170. package/.genie/spells/mcp-first.md +0 -124
  171. package/.genie/spells/multi-step-execution.md +0 -67
  172. package/.genie/spells/orchestration-boundary-protocol.md +0 -256
  173. package/.genie/spells/orchestrator-not-implementor.md +0 -189
  174. package/.genie/spells/prompt.md +0 -746
  175. package/.genie/spells/reflect.md +0 -404
  176. package/.genie/spells/routing-decision-matrix.md +0 -368
  177. package/.genie/spells/run-in-parallel.md +0 -12
  178. package/.genie/spells/session-state-updater-example.md +0 -196
  179. package/.genie/spells/session-state-updater.md +0 -220
  180. package/.genie/spells/track-long-running-tasks.md +0 -133
  181. package/.genie/spells/troubleshoot-infrastructure.md +0 -176
  182. package/.genie/spells/upgrade-genie.md +0 -415
  183. package/.genie/spells/url-presentation-protocol.md +0 -301
  184. package/.genie/spells/wish-initiation.md +0 -158
  185. package/.genie/spells/wish-issue-linkage.md +0 -410
  186. package/.genie/spells/wish-lifecycle.md +0 -100
  187. package/.genie/state/provider-status.json +0 -3
  188. package/.genie/state/version.json +0 -16
  189. package/.genie/wishes/canonical-pgserve-pm2-supervision/WISH.md +0 -290
  190. package/.genie/wishes/pgserve-v2/BRIEF-from-genie-pgserve.md +0 -99
  191. package/.genie/wishes/pgserve-v2/WISH.md +0 -442
  192. package/.genie/wishes/release-system-genie-pattern/WISH.md +0 -268
  193. package/.genie/wishes/release-system-genie-pattern/validation.md +0 -205
  194. package/.gitguardian.yaml +0 -29
  195. package/.gitguardianignore +0 -16
  196. package/.github/workflows/ci.yml +0 -122
  197. package/.github/workflows/release.yml +0 -289
  198. package/.github/workflows/version.yml +0 -228
  199. package/.husky/pre-commit +0 -2
  200. package/AGENTS.md +0 -433
  201. package/CLAUDE.md +0 -1
  202. package/Makefile +0 -285
  203. package/assets/icon.ico +0 -0
  204. package/bun.lock +0 -435
  205. package/bunfig.toml +0 -28
  206. package/ecosystem.config.cjs +0 -23
  207. package/eslint.config.js +0 -63
  208. package/examples/multi-tenant-demo.js +0 -104
  209. package/install.sh +0 -123
  210. package/knip.json +0 -9
  211. package/tests/audit.test.js +0 -189
  212. package/tests/backpressure.test.js +0 -167
  213. package/tests/benchmarks/runner.js +0 -1197
  214. package/tests/benchmarks/vector-generator.js +0 -368
  215. package/tests/cli-install.test.js +0 -322
  216. package/tests/control-db.test.js +0 -285
  217. package/tests/daemon-args.test.js +0 -86
  218. package/tests/daemon-control.test.js +0 -171
  219. package/tests/daemon-fingerprint-integration.test.js +0 -111
  220. package/tests/daemon-pr24-regression.test.js +0 -198
  221. package/tests/fingerprint.test.js +0 -263
  222. package/tests/fixtures/240-orphan-seed.sql +0 -30
  223. package/tests/multi-tenant.test.js +0 -374
  224. package/tests/orphan-cleanup.test.js +0 -390
  225. package/tests/pg-version-regex.test.js +0 -129
  226. package/tests/quick-bench.js +0 -135
  227. package/tests/router-handshake-retry.test.js +0 -119
  228. package/tests/router-handshake-watchdog.test.js +0 -110
  229. package/tests/sdk.test.js +0 -71
  230. package/tests/stale-postmaster-pid.test.js +0 -85
  231. package/tests/stress-test.js +0 -439
  232. package/tests/sync-perf-test.js +0 -150
  233. package/tests/tcp-listen.test.js +0 -368
  234. package/tests/tenancy.test.js +0 -403
  235. package/tests/wrapper-supervision.test.js +0 -107
@@ -1,303 +0,0 @@
1
- # 🎨 Emoji Naming Convention
2
- **Version:** 1.0.0
3
- **Status:** ACTIVE
4
- **Approved By:** Felipe (2025-10-21)
5
-
6
- ---
7
-
8
- ## 🎯 Mission
9
-
10
- **Universal visual language across all systems:**
11
- - GitHub issues = same emoji as Forge tasks = same emoji as Agent sessions
12
- - Instant recognition without reading title
13
- - Same language everywhere: Genie ↔ Forge ↔ GitHub
14
-
15
- ---
16
-
17
- ## 📋 Standard Format
18
-
19
- ```
20
- [<emoji>] <Type>: <Title> (#GitHubIssue)
21
- ```
22
-
23
- **Brackets provide:**
24
- - Structure for extraction/parsing
25
- - Visual framing that makes emojis pop
26
- - Clear boundaries between emoji and text
27
-
28
- **Examples:**
29
- ```
30
- [🐛] Bug: Forge executor hardcodes base_branch (#154)
31
- [💭] Wish: MCP Server Authentication (#152)
32
- [📚] Learn: Task Naming Convention Standardization (#157)
33
- [⚙️] Forge: Drop-in replacement executor (#143)
34
- [🤖] implementor: background
35
- ```
36
-
37
- ---
38
-
39
- ## 🎨 Work Type Emojis
40
-
41
- ### Core Work Types
42
-
43
- | Emoji | Type | When To Use |
44
- |-------|------|-------------|
45
- | 🐛 | Bug | Something broken, needs fixing |
46
- | 💭 | Wish | Discovery/planning for new features |
47
- | 📚 | Learn | Research, investigation, knowledge capture |
48
- | ⚙️ | Forge | Implementation of approved work |
49
- | ✅ | Review | Quality assurance, validation |
50
- | 🔨 | Refactor | Code improvement without new features |
51
- | 📖 | Docs | Writing/updating documentation |
52
- | 🧹 | Chore | Maintenance, dependencies, housekeeping |
53
-
54
- ---
55
-
56
- ## 🧞 Agent Emojis
57
-
58
- ### Core Orchestrators
59
-
60
- | Emoji | Agent | Usage |
61
- |-------|-------|-------|
62
- | 🧞 | Genie | Main orchestrator |
63
- | 💭 | Wish | Wish dance orchestrator |
64
- | ⚙️ | Forge | Task breakdown |
65
- | ✅ | Review | Quality validation |
66
-
67
- ### Specialist Agents
68
-
69
- | Emoji | Agent | Usage |
70
- |-------|-------|-------|
71
- | 🤖 | Implementor | Code implementation (robot) |
72
- | 🤖 | Tests | Test writing (robot) |
73
- | 🤖 | Polish | Code polishing (robot) |
74
- | 🤖 | Refactor | Code refactoring (robot) |
75
- | 🚀 | Release | Release management |
76
- | ✍️ | Prompt | Instruction writing |
77
- | 🔧 | Git | GitHub operations |
78
- | 📝 | Commit | Commit crafting |
79
- | 🔍 | Debug | Debugging |
80
- | 🏗️ | Install | Installation |
81
-
82
- **Note:** 🤖 Robot emoji for all execution agents (they do the work)
83
-
84
- ### Thinking Modes
85
-
86
- | Emoji | Agent | Usage |
87
- |-------|-------|-------|
88
- | 🧠 | Analyze | Deep analysis |
89
- | 🎯 | Plan | Strategic planning |
90
- | 🤔 | Socratic | Questioning/learning |
91
- | 🔬 | Deep-Dive | Detailed investigation |
92
- | 🎓 | Explore | Codebase exploration |
93
-
94
- ---
95
-
96
- ## 🎯 Usage Guidelines
97
-
98
- ### When Creating Forge Tasks
99
-
100
- **Format:**
101
- ```typescript
102
- await mcp__automagik_forge__create_task({
103
- project_id: projectId,
104
- title: "[🐛] Bug: Clear description of the bug (#GitHubIssueNumber)",
105
- description: "Full context here..."
106
- });
107
- ```
108
-
109
- **Rules:**
110
- 1. **Choose ONE emoji** from work type table
111
- 2. **Wrap in brackets:** `[🐛]` not `🐛`
112
- 3. **Match work type:** Bug=🐛, Wish=💭, Learn=📚, Forge=⚙️, etc.
113
- 4. **Include GitHub issue:** `(#NNN)` at end of title
114
- 5. **Keep title ≤ 80 characters** including emoji and brackets
115
-
116
- ### When Creating GitHub Issues
117
-
118
- **Format:**
119
- ```bash
120
- gh issue create \
121
- --title "[🐛] Bug: Clear description of the bug" \
122
- --body "Full description..." \
123
- --label "type:bug,area:forge"
124
- ```
125
-
126
- **After creation, update Forge task to include issue number:**
127
- ```typescript
128
- await mcp__automagik_forge__update_task({
129
- task_id: taskId,
130
- title: "[🐛] Bug: Clear description (#157)" // Add issue number
131
- });
132
- ```
133
-
134
- ### When Starting Agent Sessions
135
-
136
- **Format:**
137
- ```typescript
138
- await mcp__genie__run({
139
- agent: "implementor",
140
- name: "[🤖] implementor: fix-forge-base-branch",
141
- prompt: "Fix base branch hardcoding..."
142
- });
143
- ```
144
-
145
- **Pattern:** `[<emoji>] <Agent>: <brief-description>`
146
-
147
- **Note:** Agent session names are auto-generated by forge-executor.ts with correct emoji
148
-
149
- ---
150
-
151
- ## 📋 Decision Tree
152
-
153
- **"Which emoji should I use?"**
154
-
155
- ### For Tasks
156
- 1. **Is it broken?** → [🐛] Bug
157
- 2. **New feature (planning)?** → [💭] Wish
158
- 3. **New feature (implementing)?** → [⚙️] Forge
159
- 4. **Research/investigation?** → [📚] Learn
160
- 5. **Quality check?** → [✅] Review
161
- 6. **Clean up code?** → [🔨] Refactor
162
- 7. **Write docs?** → [📖] Docs
163
- 8. **Maintenance?** → [🧹] Chore
164
-
165
- ### For Agent Sessions
166
- 1. **Which agent am I starting?**
167
- 2. **Find agent in emoji table**
168
- 3. **Use that emoji in brackets**
169
-
170
- Example: Starting implementor → [🤖] implementor
171
-
172
- ---
173
-
174
- ## ✅ Examples by Scenario
175
-
176
- ### Bug Fix Workflow
177
- ```
178
- GitHub: [🐛] Bug: Forge executor hardcodes base_branch
179
- Forge: [🐛] Bug: Forge executor hardcodes base_branch (#154)
180
- Agent: [🤖] implementor: fix-forge-base-branch-hardcoding
181
- ```
182
-
183
- ### Wish Workflow
184
- ```
185
- GitHub: [💭] Wish: MCP Server Authentication
186
- Forge: [💭] Wish: MCP Server Authentication (#152)
187
- Agent: [💭] wish: mcp-auth-discovery
188
- [⚙️] forge: mcp-auth-execution-plan
189
- [🤖] implementor: mcp-auth-endpoints
190
- [✅] review: mcp-auth-validation
191
- ```
192
-
193
- ### Learn Task
194
- ```
195
- GitHub: [📚] Learn: Task Naming Convention Standardization
196
- Forge: [📚] Learn: Task Naming Convention Standardization (#157)
197
- Forge: [🧹] Chore: Unified Emoji Naming Convention (updated from Learn to Chore per Felipe)
198
- ```
199
-
200
- ---
201
-
202
- ## 🚫 Common Mistakes
203
-
204
- ### ❌ Wrong Format
205
- ```
206
- Bad: Task 1: Forge Project Auto-Sync
207
- Bad: 🧹 Chore: Missing brackets
208
- Good: [🧹] Chore: Forge Project Auto-Sync on MCP Startup
209
- ```
210
-
211
- ### ❌ Missing Issue Reference
212
- ```
213
- Bad: [🐛] Bug: Forge executor hardcodes base_branch
214
- Good: [🐛] Bug: Forge executor hardcodes base_branch (#154)
215
- ```
216
-
217
- ### ❌ Wrong Emoji
218
- ```
219
- Bad: [🐛] Bug: Add new authentication feature (not a bug!)
220
- Good: [💭] Wish: MCP Server Authentication
221
- ```
222
-
223
- ### ❌ Multiple Emojis
224
- ```
225
- Bad: [🐛💭] Bug Wish: Something confusing
226
- Good: [🐛] Bug: Clear single-purpose title
227
- ```
228
-
229
- ---
230
-
231
- ## 🎨 Emoji Quick Reference (Copy-Paste)
232
-
233
- ```
234
- Work Types:
235
- [🐛] Bug [💭] Wish [📚] Learn [⚙️] Forge
236
- [✅] Review [🔨] Refactor [📖] Docs [🧹] Chore
237
-
238
- Execution Agents (Robots):
239
- [🤖] implementor [🤖] tests [🤖] polish [🤖] refactor
240
-
241
- Core Agents:
242
- [🧞] genie [🔧] git [🚀] release [📝] commit
243
- [✍️] prompt [🔍] debug [🏗️] install
244
-
245
- Thinking:
246
- [🧠] analyze [🎯] plan [🤔] socratic [🔬] deep-dive
247
- [🎓] explore
248
- ```
249
-
250
- ---
251
-
252
- ## 📚 Implementation Checklist
253
-
254
- **When creating Forge tasks:**
255
- - [ ] Choose emoji from work type table
256
- - [ ] Format: `[<emoji>] <Type>: <Title> (#Issue)`
257
- - [ ] Wrap emoji in brackets: `[🐛]` not `🐛`
258
- - [ ] Verify title ≤ 80 characters (including brackets)
259
- - [ ] Include GitHub issue number
260
- - [ ] Same emoji across all systems
261
-
262
- **When creating GitHub issues:**
263
- - [ ] Choose emoji from work type table
264
- - [ ] Format: `[<emoji>] <Type>: <Title>`
265
- - [ ] Wrap emoji in brackets
266
- - [ ] Add appropriate labels
267
- - [ ] Update Forge task with issue number after creation
268
-
269
- **When starting agent sessions:**
270
- - [ ] Choose emoji from agent table
271
- - [ ] Format: `[<emoji>] <agent>: <description>`
272
- - [ ] Use robot emoji [🤖] for execution agents
273
- - [ ] Keep description brief and clear
274
- - [ ] Auto-generated by forge-executor.ts
275
-
276
- ---
277
-
278
- ## 🔗 Related Documentation
279
-
280
- - **Full Spec:** `.genie/reports/emoji-naming-standard.md` - Complete taxonomy
281
- - **Proposals:** `.genie/reports/task-naming-5-proposals.md` - How we chose emoji format
282
- - **Mapping:** `.genie/reports/task-rename-mapping.md` - Before/after examples
283
-
284
- ---
285
-
286
- ## ✨ Benefits
287
-
288
- **Why emojis?**
289
- 1. ⚡ **60,000x faster** visual recognition than text
290
- 2. 🎨 **Universal** - works across all platforms (GitHub, Forge, CLI)
291
- 3. 🔍 **Scannable** - find tasks by visual shape, not reading
292
- 4. 🌍 **Language-agnostic** - same meaning globally
293
- 5. 🎯 **Consistent** - one language everywhere
294
-
295
- **Impact:**
296
- - Faster kanban scanning
297
- - Instant task type recognition
298
- - Unified developer experience
299
- - Reduced cognitive load
300
-
301
- ---
302
-
303
- **Remember:** Same emoji = same meaning = same language everywhere 🎯
@@ -1,26 +0,0 @@
1
- ---
2
- name: Evidence & Storage Conventions
3
- description: Declare artifact locations and maintain evidence checklists
4
- genie:
5
- executor: [CLAUDE_CODE, CODEX, OPENCODE]
6
- forge:
7
- CLAUDE_CODE:
8
- model: sonnet
9
- CODEX: {}
10
- OPENCODE: {}
11
- ---
12
-
13
- # Evidence & Storage Conventions
14
-
15
- ## Evidence Requirements
16
-
17
- - Wishes must declare where artefacts live; there is no default `qa/` directory. Capture metrics inline in the wish (e.g., tables under a **Metrics** section) or in clearly named companion files.
18
- - Every wish must complete the **Evidence Checklist** block before implementation begins, spelling out validation commands, artefact locations, and approval checkpoints.
19
- - External tracker IDs live in the wish markdown (for example a **Tracking** section with `Forge task: FORGE-123`).
20
- - Background agent outputs are summarised in the wish context ledger; raw logs can be viewed with `mcp__genie__view` with sessionId parameter.
21
-
22
- ## Testing & Evaluation
23
-
24
- - Evaluation tooling is optional. If a project adds its own evaluator agent, the review or plan workflow can reference it; otherwise, evaluation steps default to manual validation.
25
- - Typical metrics: `{{METRICS}}` such as latency or quality. Domain-specific metrics should be added per project in the wish/forge plan.
26
- - Validation hooks should be captured in wishes/forge plans (e.g., `pnpm test`, `cargo test`, metrics scripts).
@@ -1,35 +0,0 @@
1
- ---
2
- name: File and Naming Rules
3
- description: Centralize planning and evidence under .genie/, avoid doc sprawl
4
- genie:
5
- executor: [CLAUDE_CODE, CODEX, OPENCODE]
6
- forge:
7
- CLAUDE_CODE:
8
- model: sonnet
9
- CODEX: {}
10
- OPENCODE: {}
11
- ---
12
-
13
- # File and Naming Rules
14
-
15
- **Purpose:** Maintain tidy workspace; centralize planning and evidence under `.genie/`.
16
-
17
- ## Success Criteria
18
-
19
- ✅ No doc sprawl; update existing files instead of duplicating.
20
- ✅ Purpose-driven names; avoid hyperbole.
21
- ✅ Wishes/evidence paths normalized.
22
-
23
- ## Forbidden Actions
24
-
25
- ❌ Create documentation outside `.genie/` without instruction.
26
- ❌ Use forbidden naming patterns (fixed, improved, updated, better, new, v2, _fix, _v, enhanced, comprehensive).
27
-
28
- ## Path Conventions
29
-
30
- - Wishes: `.genie/wishes/<slug>/<slug>-wish.md`.
31
- - Evidence: declared by each wish (pick a clear folder or append directly in-document).
32
- - Forge plans: recorded in CLI output—mirror essentials back into the wish.
33
- - Blockers: logged inside the wish under a **Blockers** or status section.
34
- - Reports: `.genie/wishes/<slug>/reports/` (wish-specific Done Reports) or `.genie/reports/` (framework-level reports).
35
- - State: `.genie/state/` is ONLY for session tracking data (agents/sessions.json, logs); NEVER for reports.
@@ -1,195 +0,0 @@
1
- ---
2
- name: Forge Blueprints
3
- description: Templates for groups, plans, task files, and error handling
4
- genie:
5
- executor: [CLAUDE_CODE, CODEX, OPENCODE]
6
- forge:
7
- CLAUDE_CODE:
8
- model: sonnet
9
- CODEX: {}
10
- OPENCODE: {}
11
- ---
12
-
13
- # Forge Blueprints
14
-
15
- ## Group Blueprint
16
- ```
17
- ### Group {Letter} – {descriptive-slug}
18
- - **Scope:** Clear boundaries of what this group accomplishes
19
- - **Inputs:** `@file.rs`, `@doc.md`, `@.genie/wishes/<slug>/<slug>-wish.md`
20
- - **Deliverables:**
21
- - Code changes: specific files/modules
22
- - Tests: unit/integration coverage
23
- - Documentation: updates needed
24
- - **Evidence:**
25
- - Location: `.genie/wishes/<slug>/qa/group-{letter}/`
26
- - Contents: test results, metrics, logs, screenshots (per wish/custom guidance)
27
- - **Evaluation Matrix Impact:**
28
- - Discovery checkpoints this group addresses (ref: wish evaluation matrix)
29
- - Implementation checkpoints this group targets
30
- - Verification evidence this group must produce
31
- - **Branch strategy:**
32
- - Default: `feat/<wish-slug>`
33
- - Alternative: Use existing `<branch>` (justify: already has related changes)
34
- - Micro-task: No branch, direct to main (justify: trivial, low-risk)
35
- - **Tracker:**
36
- - External: `JIRA-123` or `LINEAR-456`
37
- - Placeholder: `placeholder-group-{letter}` (create actual ID before execution)
38
- - Task file: `.genie/wishes/<slug>/task-{letter}.md`
39
- - **Suggested personas:**
40
- - Primary: implementor (implementation)
41
- - Support: tests (test coverage), polish (linting)
42
- - **Dependencies:**
43
- - Prior groups: ["group-a"] (must complete first)
44
- - External: API deployment, database migration
45
- - Approvals: Security review, design sign-off
46
- - **Genie Gates (optional):**
47
- - Pre-execution: `planning` mode for architecture review
48
- - Mid-execution: `consensus` for trade-off decisions
49
- - Post-execution: `deep-dive` for performance analysis
50
- - **Validation Hooks:**
51
- - Commands/scripts: reference `@.genie/code/agents/tests.md`, `@.genie/code/agents/implementor.md`, or wish-specific instructions
52
- - Success criteria: All tests green, no regressions
53
- - Matrix scoring: Targets X/100 points (specify which checkpoints)
54
- ```
55
-
56
- ## Plan Blueprint
57
- ```
58
- # Forge Plan – {Wish Slug}
59
- **Generated:** 2024-..Z | **Wish:** @.genie/wishes/{slug}/{slug}-wish.md
60
- **Task Files:** `.genie/wishes/<slug>/task-*.md`
61
-
62
- ## Summary
63
- - Objectives from spec_contract
64
- - Key risks and dependencies
65
- - Branch strategy: `feat/<wish-slug>` (or alternative with justification)
66
-
67
- ## Spec Contract (from wish)
68
- [Extracted <spec_contract> content]
69
-
70
- ## Proposed Groups
71
- ### Group A – {slug}
72
- - **Scope:** …
73
- - **Inputs:** `@file`, `@doc`
74
- - **Deliverables:** …
75
- - **Evidence:** Store in `.genie/wishes/<slug>/qa/group-a/`
76
- - **Branch:** `feat/<wish-slug>` or existing
77
- - **Tracker:** JIRA-123 (or placeholder)
78
- - **Suggested personas:** implementor, tests
79
- - **Dependencies:** …
80
-
81
- ## Validation Hooks
82
- - Commands or scripts to run per group
83
- - Evidence storage paths:
84
- - Group A: `.genie/wishes/<slug>/qa/group-a/`
85
- - Group B: `.genie/wishes/<slug>/qa/group-b/`
86
- - Logs: `.genie/wishes/<slug>/qa/validation.log`
87
-
88
- ## Task File Blueprint
89
- # Task A - <descriptive-name>
90
- **Wish:** @.genie/wishes/<slug>/<slug>-wish.md
91
- **Group:** A
92
- **Persona:** implementor
93
- **Tracker:** JIRA-123 (or placeholder)
94
- **Status:** pending
95
-
96
- ## Scope
97
- [What this task accomplishes]
98
-
99
- ## Inputs
100
- - `@file.rs`
101
- - @doc.md
102
-
103
- ## Validation
104
- - Commands: reference `@.genie/code/agents/tests.md`
105
- - Evidence: wish `qa/` + `reports/` folders
106
-
107
- ## Approval Log
108
- - [timestamp] Pending approval by …
109
-
110
- ## Follow-up
111
- - Checklist of human actions before/during execution
112
- - MCP commands for background personas: `mcp__genie__run` with agent and prompt parameters
113
- - PR template referencing wish slug and this forge plan
114
- ```
115
-
116
- ## Task File Blueprint (Standalone)
117
- ```markdown
118
- # Task: <group-name>
119
-
120
- ## Context
121
- **Wish:** @.genie/wishes/<slug>/<slug>-wish.md
122
- **Group:** A - <descriptive-name>
123
- **Tracker:** JIRA-123 (or placeholder)
124
- **Persona:** implementor
125
- **Branch:** feat/<wish-slug>
126
-
127
- ## Scope
128
- [What this group accomplishes]
129
-
130
- ## Inputs
131
- - `@file1.rs`
132
- - `@file2.md`
133
-
134
- ## Deliverables
135
- - Code changes
136
- - Tests
137
- - Documentation
138
-
139
- ## Validation
140
- - Commands/scripts: see `@.genie/code/agents/tests.md` and wish-specific instructions
141
-
142
- ## Dependencies
143
- - None (or list prior groups)
144
-
145
- ## Evidence
146
- - Store results in the wish `qa/` + `reports/` folders
147
- ```
148
-
149
- ## Error Handling
150
-
151
- ### Common Issues & Solutions
152
- | Issue | Detection | Solution |
153
- |-------|-----------|----------|
154
- | No spec_contract | Missing `<spec_contract>` tags | Request wish update with spec |
155
- | Circular dependencies | Group A needs B, B needs A | Restructure groups or merge |
156
- | Missing personas | Referenced agent doesn't exist | Use available agents |
157
- | Invalid branch name | Over 48 chars or special chars | Truncate and sanitize |
158
- | Task file exists | Previous task not complete | Archive or update existing |
159
-
160
- ### Graceful Degradation
161
- - If task file creation fails, generate forge plan anyway with warning
162
- - If evidence paths can't be created, document in plan for manual creation
163
- - If external tracker unreachable, use placeholder IDs
164
-
165
- ## Blocker Protocol
166
-
167
- When forge planning encounters issues:
168
-
169
- 1. **Create Blocker Report:**
170
- ```markdown
171
- # Blocker Report: forge-<slug>-<timestamp>
172
- Location: .genie/wishes/<slug>/reports/blocker-forge-<slug>-<YYYYMMDDHHmm>.md
173
-
174
- ## Issue
175
- - Missing spec_contract in wish
176
- - Conflicting dependencies between groups
177
- - Unable to determine branch strategy
178
-
179
- ## Investigation
180
- [What was checked, commands run]
181
-
182
- ## Recommendations
183
- - Update wish with spec_contract
184
- - Reorder groups to resolve dependencies
185
- - Specify branch in wish metadata
186
- ```
187
-
188
- 2. **Update Status:**
189
- - Mark wish status as "BLOCKED" in wish status log
190
- - Note blocker in wish status log
191
-
192
- 3. **Notify & Halt:**
193
- - Return blocker report reference to human
194
- - Do not proceed with forge plan generation
195
- - Wait for wish updates or guidance