pgserve 2.1.2 → 2.2.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/CHANGELOG.md +86 -0
- package/README.md +105 -1
- package/bin/autopg-wrapper.cjs +16 -0
- package/bin/pgserve-wrapper.cjs +31 -6
- package/bin/postgres-server.js +80 -7
- package/console/README.md +131 -0
- package/console/api.js +173 -0
- package/console/app.jsx +483 -0
- package/console/colors_and_type.css +227 -0
- package/console/components.jsx +167 -0
- package/console/console.css +1666 -0
- package/console/data.jsx +350 -0
- package/console/index.html +31 -0
- package/console/screens/databases.jsx +5 -0
- package/console/screens/health.jsx +5 -0
- package/console/screens/ingress.jsx +5 -0
- package/console/screens/optimizer.jsx +5 -0
- package/console/screens/rlm-sim.jsx +5 -0
- package/console/screens/rlm-trace.jsx +5 -0
- package/console/screens/security.jsx +5 -0
- package/console/screens/settings.jsx +611 -0
- package/console/screens/sql.jsx +5 -0
- package/console/screens/sync.jsx +5 -0
- package/console/screens/tables.jsx +5 -0
- package/console/tweaks-panel.jsx +425 -0
- package/package.json +11 -1
- package/src/cli-config.cjs +310 -0
- package/src/cli-install.cjs +98 -11
- package/src/cli-restart.cjs +228 -0
- package/src/cli-ui.cjs +580 -0
- package/src/cluster.js +43 -38
- package/src/postgres.js +141 -19
- package/src/settings-loader.cjs +235 -0
- package/src/settings-migrate.cjs +212 -0
- package/src/settings-pg-args.cjs +146 -0
- package/src/settings-schema.cjs +422 -0
- package/src/settings-validator.cjs +416 -0
- package/src/settings-writer.cjs +288 -0
- package/.claude/context/windows-debug.md +0 -119
- package/.genie/AGENTS.md +0 -15
- package/.genie/agents/README.md +0 -110
- package/.genie/agents/analyze.md +0 -176
- package/.genie/agents/forge.md +0 -290
- package/.genie/agents/garbage-cleaner.md +0 -324
- package/.genie/agents/garbage-collector.md +0 -596
- package/.genie/agents/github-issue-gc.md +0 -618
- package/.genie/agents/review.md +0 -380
- package/.genie/agents/semantic-analyzer/find-duplicates.md +0 -90
- package/.genie/agents/semantic-analyzer/find-orphans.md +0 -99
- package/.genie/agents/semantic-analyzer.md +0 -101
- package/.genie/agents/update.md +0 -182
- package/.genie/agents/wish.md +0 -357
- package/.genie/brainstorms/pgserve-v2/DESIGN.md +0 -174
- package/.genie/code/AGENTS.md +0 -694
- package/.genie/code/agents/audit/risk.md +0 -173
- package/.genie/code/agents/audit/security.md +0 -189
- package/.genie/code/agents/audit.md +0 -145
- package/.genie/code/agents/challenge.md +0 -230
- package/.genie/code/agents/change-reviewer.md +0 -295
- package/.genie/code/agents/code-garbage-collector.md +0 -425
- package/.genie/code/agents/code-quality.md +0 -410
- package/.genie/code/agents/commit-suggester.md +0 -255
- package/.genie/code/agents/commit.md +0 -124
- package/.genie/code/agents/consensus.md +0 -204
- package/.genie/code/agents/daily-standup.md +0 -722
- package/.genie/code/agents/docgen.md +0 -48
- package/.genie/code/agents/explore.md +0 -79
- package/.genie/code/agents/fix.md +0 -100
- package/.genie/code/agents/git/commit-advisory.md +0 -219
- package/.genie/code/agents/git/workflows/issue.md +0 -244
- package/.genie/code/agents/git/workflows/pr.md +0 -179
- package/.genie/code/agents/git/workflows/release.md +0 -460
- package/.genie/code/agents/git/workflows/report.md +0 -342
- package/.genie/code/agents/git.md +0 -432
- package/.genie/code/agents/implementor.md +0 -161
- package/.genie/code/agents/install.md +0 -515
- package/.genie/code/agents/issue-creator.md +0 -344
- package/.genie/code/agents/polish.md +0 -116
- package/.genie/code/agents/qa.md +0 -653
- package/.genie/code/agents/refactor.md +0 -294
- package/.genie/code/agents/release.md +0 -1129
- package/.genie/code/agents/roadmap.md +0 -885
- package/.genie/code/agents/tests.md +0 -557
- package/.genie/code/agents/tracer.md +0 -50
- package/.genie/code/agents/update/upstream-update.md +0 -85
- package/.genie/code/agents/update/versions/generic-update.md +0 -305
- package/.genie/code/agents/vibe.md +0 -1317
- package/.genie/code/spells/agent-configuration.md +0 -58
- package/.genie/code/spells/automated-rc-publishing.md +0 -106
- package/.genie/code/spells/branch-tracker-guidance.md +0 -28
- package/.genie/code/spells/debug.md +0 -320
- package/.genie/code/spells/emoji-naming-convention.md +0 -303
- package/.genie/code/spells/evidence-storage.md +0 -26
- package/.genie/code/spells/file-naming-rules.md +0 -35
- package/.genie/code/spells/forge-code-blueprints.md +0 -195
- package/.genie/code/spells/genie-integration.md +0 -153
- package/.genie/code/spells/publishing-protocol.md +0 -61
- package/.genie/code/spells/team-consultation-protocol.md +0 -284
- package/.genie/code/spells/tool-requirements.md +0 -20
- package/.genie/code/spells/triad-maintenance-protocol.md +0 -154
- package/.genie/code/teams/tech-council/council.md +0 -328
- package/.genie/code/teams/tech-council/jt.md +0 -352
- package/.genie/code/teams/tech-council/nayr.md +0 -305
- package/.genie/code/teams/tech-council/oettam.md +0 -375
- package/.genie/neurons/README.md +0 -193
- package/.genie/neurons/forge.md +0 -106
- package/.genie/neurons/genie.md +0 -63
- package/.genie/neurons/review.md +0 -106
- package/.genie/neurons/wish.md +0 -104
- package/.genie/product/README.md +0 -20
- package/.genie/product/cli-automation.md +0 -359
- package/.genie/product/environment.md +0 -60
- package/.genie/product/mission.md +0 -60
- package/.genie/product/roadmap.md +0 -44
- package/.genie/product/tech-stack.md +0 -34
- package/.genie/product/templates/context-template.md +0 -218
- package/.genie/product/templates/qa-done-report-template.md +0 -68
- package/.genie/product/templates/review-report-template.md +0 -89
- package/.genie/product/templates/wish-template.md +0 -120
- package/.genie/scripts/helpers/analyze-commit.js +0 -195
- package/.genie/scripts/helpers/bullet-counter.js +0 -194
- package/.genie/scripts/helpers/bullet-find.js +0 -289
- package/.genie/scripts/helpers/bullet-id.js +0 -244
- package/.genie/scripts/helpers/check-secrets.js +0 -237
- package/.genie/scripts/helpers/count-tokens.js +0 -200
- package/.genie/scripts/helpers/create-frontmatter.js +0 -456
- package/.genie/scripts/helpers/detect-markers.js +0 -293
- package/.genie/scripts/helpers/detect-todos.js +0 -267
- package/.genie/scripts/helpers/detect-unlabeled-blocks.js +0 -135
- package/.genie/scripts/helpers/embeddings.js +0 -344
- package/.genie/scripts/helpers/find-empty-sections.js +0 -158
- package/.genie/scripts/helpers/index.js +0 -319
- package/.genie/scripts/helpers/validate-frontmatter.js +0 -578
- package/.genie/scripts/helpers/validate-links.js +0 -207
- package/.genie/scripts/helpers/validate-paths.js +0 -373
- package/.genie/spells/README.md +0 -9
- package/.genie/spells/ace-protocol.md +0 -118
- package/.genie/spells/ask-one-at-a-time.md +0 -175
- package/.genie/spells/backup-analyzer.md +0 -542
- package/.genie/spells/blocker.md +0 -12
- package/.genie/spells/break-things-move-fast.md +0 -56
- package/.genie/spells/context-candidates.md +0 -72
- package/.genie/spells/context-critic.md +0 -51
- package/.genie/spells/defer-to-expertise.md +0 -278
- package/.genie/spells/delegate-dont-do.md +0 -292
- package/.genie/spells/error-investigation-protocol.md +0 -328
- package/.genie/spells/evidence-based-completion.md +0 -273
- package/.genie/spells/experiment.md +0 -65
- package/.genie/spells/file-creation-protocol.md +0 -229
- package/.genie/spells/forge-integration.md +0 -281
- package/.genie/spells/forge-orchestration.md +0 -514
- package/.genie/spells/gather-context.md +0 -18
- package/.genie/spells/global-health-check.md +0 -34
- package/.genie/spells/global-noop-roundtrip.md +0 -25
- package/.genie/spells/install-genie.md +0 -1232
- package/.genie/spells/install.md +0 -82
- package/.genie/spells/investigate-before-commit.md +0 -112
- package/.genie/spells/know-yourself.md +0 -288
- package/.genie/spells/learn.md +0 -828
- package/.genie/spells/mcp-diagnostic-protocol.md +0 -246
- package/.genie/spells/mcp-first.md +0 -124
- package/.genie/spells/multi-step-execution.md +0 -67
- package/.genie/spells/orchestration-boundary-protocol.md +0 -256
- package/.genie/spells/orchestrator-not-implementor.md +0 -189
- package/.genie/spells/prompt.md +0 -746
- package/.genie/spells/reflect.md +0 -404
- package/.genie/spells/routing-decision-matrix.md +0 -368
- package/.genie/spells/run-in-parallel.md +0 -12
- package/.genie/spells/session-state-updater-example.md +0 -196
- package/.genie/spells/session-state-updater.md +0 -220
- package/.genie/spells/track-long-running-tasks.md +0 -133
- package/.genie/spells/troubleshoot-infrastructure.md +0 -176
- package/.genie/spells/upgrade-genie.md +0 -415
- package/.genie/spells/url-presentation-protocol.md +0 -301
- package/.genie/spells/wish-initiation.md +0 -158
- package/.genie/spells/wish-issue-linkage.md +0 -410
- package/.genie/spells/wish-lifecycle.md +0 -100
- package/.genie/state/provider-status.json +0 -3
- package/.genie/state/version.json +0 -16
- package/.genie/wishes/canonical-pgserve-pm2-supervision/WISH.md +0 -290
- package/.genie/wishes/pgserve-v2/BRIEF-from-genie-pgserve.md +0 -99
- package/.genie/wishes/pgserve-v2/WISH.md +0 -442
- package/.genie/wishes/release-system-genie-pattern/WISH.md +0 -268
- package/.genie/wishes/release-system-genie-pattern/validation.md +0 -205
- package/.gitguardian.yaml +0 -29
- package/.gitguardianignore +0 -16
- package/.github/workflows/ci.yml +0 -122
- package/.github/workflows/release.yml +0 -289
- package/.github/workflows/version.yml +0 -228
- package/.husky/pre-commit +0 -2
- package/AGENTS.md +0 -433
- package/CLAUDE.md +0 -1
- package/Makefile +0 -285
- package/assets/icon.ico +0 -0
- package/bun.lock +0 -435
- package/bunfig.toml +0 -28
- package/ecosystem.config.cjs +0 -23
- package/eslint.config.js +0 -63
- package/examples/multi-tenant-demo.js +0 -104
- package/install.sh +0 -123
- package/knip.json +0 -9
- package/scripts/test-bun-self-heal.sh +0 -163
- package/scripts/test-npx.sh +0 -60
- package/tests/audit.test.js +0 -189
- package/tests/backpressure.test.js +0 -167
- package/tests/benchmarks/runner.js +0 -1197
- package/tests/benchmarks/vector-generator.js +0 -368
- package/tests/cli-install.test.js +0 -322
- package/tests/control-db.test.js +0 -285
- package/tests/daemon-control.test.js +0 -171
- package/tests/daemon-fingerprint-integration.test.js +0 -111
- package/tests/daemon-pr24-regression.test.js +0 -198
- package/tests/fingerprint.test.js +0 -263
- package/tests/fixtures/240-orphan-seed.sql +0 -30
- package/tests/multi-tenant.test.js +0 -374
- package/tests/orphan-cleanup.test.js +0 -390
- package/tests/pg-version-regex.test.js +0 -129
- package/tests/quick-bench.js +0 -135
- package/tests/router-handshake-retry.test.js +0 -119
- package/tests/router-handshake-watchdog.test.js +0 -110
- package/tests/sdk.test.js +0 -71
- package/tests/stale-postmaster-pid.test.js +0 -85
- package/tests/stress-test.js +0 -439
- package/tests/sync-perf-test.js +0 -150
- package/tests/tcp-listen.test.js +0 -368
- package/tests/tenancy.test.js +0 -403
- 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
|