@cluesmith/codev 1.6.2 → 2.0.0-rc.10
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/bin/porch.js +12 -0
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +25 -14
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/index.d.ts +1 -0
- package/dist/agent-farm/commands/index.d.ts.map +1 -1
- package/dist/agent-farm/commands/index.js +1 -0
- package/dist/agent-farm/commands/index.js.map +1 -1
- package/dist/agent-farm/commands/kickoff.d.ts +20 -0
- package/dist/agent-farm/commands/kickoff.d.ts.map +1 -0
- package/dist/agent-farm/commands/kickoff.js +273 -0
- package/dist/agent-farm/commands/kickoff.js.map +1 -0
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +30 -96
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/start.d.ts.map +1 -1
- package/dist/agent-farm/commands/start.js +8 -50
- package/dist/agent-farm/commands/start.js.map +1 -1
- package/dist/agent-farm/servers/dashboard-server.js +0 -14
- package/dist/agent-farm/servers/dashboard-server.js.map +1 -1
- package/dist/agent-farm/state.d.ts +0 -10
- package/dist/agent-farm/state.d.ts.map +1 -1
- package/dist/agent-farm/state.js +0 -24
- package/dist/agent-farm/state.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +17 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +17 -1
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +2 -1
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +17 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/porch/checks.d.ts +29 -0
- package/dist/commands/porch/checks.d.ts.map +1 -0
- package/dist/commands/porch/checks.js +141 -0
- package/dist/commands/porch/checks.js.map +1 -0
- package/dist/commands/porch/claude.d.ts +29 -0
- package/dist/commands/porch/claude.d.ts.map +1 -0
- package/dist/commands/porch/claude.js +79 -0
- package/dist/commands/porch/claude.js.map +1 -0
- package/dist/commands/porch/index.d.ts +38 -0
- package/dist/commands/porch/index.d.ts.map +1 -0
- package/dist/commands/porch/index.js +524 -0
- package/dist/commands/porch/index.js.map +1 -0
- package/dist/commands/porch/plan.d.ts +60 -0
- package/dist/commands/porch/plan.d.ts.map +1 -0
- package/dist/commands/porch/plan.js +162 -0
- package/dist/commands/porch/plan.js.map +1 -0
- package/dist/commands/porch/prompts.d.ts +19 -0
- package/dist/commands/porch/prompts.d.ts.map +1 -0
- package/dist/commands/porch/prompts.js +259 -0
- package/dist/commands/porch/prompts.js.map +1 -0
- package/dist/commands/porch/protocol.d.ts +57 -0
- package/dist/commands/porch/protocol.d.ts.map +1 -0
- package/dist/commands/porch/protocol.js +250 -0
- package/dist/commands/porch/protocol.js.map +1 -0
- package/dist/commands/porch/repl.d.ts +33 -0
- package/dist/commands/porch/repl.d.ts.map +1 -0
- package/dist/commands/porch/repl.js +206 -0
- package/dist/commands/porch/repl.js.map +1 -0
- package/dist/commands/porch/run.d.ts +15 -0
- package/dist/commands/porch/run.d.ts.map +1 -0
- package/dist/commands/porch/run.js +551 -0
- package/dist/commands/porch/run.js.map +1 -0
- package/dist/commands/porch/signals.d.ts +35 -0
- package/dist/commands/porch/signals.d.ts.map +1 -0
- package/dist/commands/porch/signals.js +76 -0
- package/dist/commands/porch/signals.js.map +1 -0
- package/dist/commands/porch/state.d.ts +40 -0
- package/dist/commands/porch/state.d.ts.map +1 -0
- package/dist/commands/porch/state.js +153 -0
- package/dist/commands/porch/state.js.map +1 -0
- package/dist/commands/porch/types.d.ts +124 -0
- package/dist/commands/porch/types.d.ts.map +1 -0
- package/dist/commands/porch/types.js +8 -0
- package/dist/commands/porch/types.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -0
- package/dist/commands/update.js.map +1 -1
- package/dist/lib/scaffold.d.ts +24 -0
- package/dist/lib/scaffold.d.ts.map +1 -1
- package/dist/lib/scaffold.js +78 -0
- package/dist/lib/scaffold.js.map +1 -1
- package/package.json +6 -2
- package/skeleton/porch/prompts/defend.md +103 -0
- package/skeleton/porch/prompts/diagnose.md +70 -0
- package/skeleton/porch/prompts/evaluate.md +132 -0
- package/skeleton/porch/prompts/fix.md +59 -0
- package/skeleton/porch/prompts/implement.md +79 -0
- package/skeleton/porch/prompts/plan.md +74 -0
- package/skeleton/porch/prompts/pr.md +84 -0
- package/skeleton/porch/prompts/review.md +179 -0
- package/skeleton/porch/prompts/specify.md +53 -0
- package/skeleton/porch/prompts/test.md +63 -0
- package/skeleton/porch/prompts/understand.md +61 -0
- package/skeleton/porch/prompts/verify.md +58 -0
- package/skeleton/protocols/bugfix/protocol.json +127 -0
- package/skeleton/protocols/protocol-schema.json +237 -0
- package/skeleton/protocols/spider/prompts/defend.md +215 -0
- package/skeleton/protocols/spider/prompts/evaluate.md +241 -0
- package/skeleton/protocols/spider/prompts/implement.md +149 -0
- package/skeleton/protocols/spider/prompts/plan.md +214 -0
- package/skeleton/protocols/spider/prompts/review.md +217 -0
- package/skeleton/protocols/spider/prompts/specify.md +174 -0
- package/skeleton/protocols/spider/protocol.json +136 -0
- package/skeleton/protocols/spider/templates/plan.md +14 -0
- package/skeleton/protocols/tick/protocol.json +151 -0
- package/skeleton/roles/architect.md +40 -48
- package/skeleton/roles/builder.md +152 -29
- package/templates/dashboard/index.html +0 -27
- package/templates/dashboard/js/utils.js +0 -86
- package/dist/agent-farm/commands/rename.d.ts +0 -13
- package/dist/agent-farm/commands/rename.d.ts.map +0 -1
- package/dist/agent-farm/commands/rename.js +0 -33
- package/dist/agent-farm/commands/rename.js.map +0 -1
- package/templates/dashboard/css/activity.css +0 -151
- package/templates/dashboard/js/activity.js +0 -112
package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YACX,CAAC;YAED,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACnC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxB,SAAS;QACX,CAAC;QAED,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAErD,IAAI,YAAY,IAAI,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;YACnD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;YAC/B,SAAS;QACX,CAAC;QAED,gBAAgB,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAClD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cluesmith/codev",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"description": "Codev CLI - AI-assisted software development framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"codev": "./bin/codev.js",
|
|
8
|
+
"porch": "./bin/porch.js",
|
|
8
9
|
"af": "./bin/af.js",
|
|
9
10
|
"consult": "./bin/consult.js",
|
|
10
11
|
"generate-image": "./bin/generate-image.js"
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
"templates"
|
|
17
18
|
],
|
|
18
19
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
+
"clean": "rm -rf dist",
|
|
21
|
+
"build": "npm run clean && tsc && npm run copy-skeleton",
|
|
20
22
|
"copy-skeleton": "rm -rf skeleton && cp -r ../../codev-skeleton skeleton",
|
|
21
23
|
"dev": "tsx src/cli.ts",
|
|
22
24
|
"start": "node dist/cli.js",
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
"commander": "^12.1.0",
|
|
31
33
|
"glob": "^11.0.0",
|
|
32
34
|
"http-proxy": "^1.18.1",
|
|
35
|
+
"js-yaml": "^4.1.0",
|
|
33
36
|
"open": "^10.1.0",
|
|
34
37
|
"tree-kill": "^1.2.2",
|
|
35
38
|
"ws": "^8.18.0"
|
|
@@ -37,6 +40,7 @@
|
|
|
37
40
|
"devDependencies": {
|
|
38
41
|
"@types/better-sqlite3": "^7.6.13",
|
|
39
42
|
"@types/http-proxy": "^1.17.17",
|
|
43
|
+
"@types/js-yaml": "^4.0.9",
|
|
40
44
|
"@types/node": "^22.10.1",
|
|
41
45
|
"@types/ws": "^8.18.1",
|
|
42
46
|
"tsx": "^4.19.2",
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Defend Phase Prompt
|
|
2
|
+
|
|
3
|
+
You are the **Tester** hat in a Ralph-SPIDER loop.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Write tests that verify the implementation matches the specification. Tests are **backpressure** - they must pass before proceeding.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
Read these files at the START of each iteration:
|
|
12
|
+
1. `codev/specs/{project-id}-*.md` - Acceptance criteria to test
|
|
13
|
+
2. `codev/plans/{project-id}-*.md` - Test strategy from plan
|
|
14
|
+
3. `codev/status/{project-id}-*.md` - Current phase
|
|
15
|
+
|
|
16
|
+
## Workflow
|
|
17
|
+
|
|
18
|
+
### 1. Identify What to Test
|
|
19
|
+
|
|
20
|
+
From the spec's acceptance criteria, identify:
|
|
21
|
+
- **Unit tests**: Individual functions/components
|
|
22
|
+
- **Integration tests**: Workflows and interactions
|
|
23
|
+
- **Edge cases**: Error handling, boundary conditions
|
|
24
|
+
|
|
25
|
+
### 2. Write Tests
|
|
26
|
+
|
|
27
|
+
For the current implementation phase:
|
|
28
|
+
|
|
29
|
+
1. **Create test files** following project conventions
|
|
30
|
+
2. **Cover each acceptance criterion** with at least one test
|
|
31
|
+
3. **Include edge cases** documented in the spec
|
|
32
|
+
4. **Test error paths** - what happens when things fail?
|
|
33
|
+
|
|
34
|
+
### 3. Run Tests
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm test # or appropriate test command
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
If tests fail:
|
|
41
|
+
- **DO NOT PROCEED** - tests are backpressure
|
|
42
|
+
- Fix the implementation or fix the test (if test is wrong)
|
|
43
|
+
- Output: `<signal>TESTS_FAILED</signal>` to trigger retry
|
|
44
|
+
|
|
45
|
+
### 4. Verify Coverage
|
|
46
|
+
|
|
47
|
+
Ensure:
|
|
48
|
+
- Every acceptance criterion has a test
|
|
49
|
+
- No uncovered edge cases
|
|
50
|
+
- Error scenarios are tested
|
|
51
|
+
|
|
52
|
+
### 5. Signal Completion
|
|
53
|
+
|
|
54
|
+
When all tests pass:
|
|
55
|
+
1. Commit tests:
|
|
56
|
+
```bash
|
|
57
|
+
git add <test-files>
|
|
58
|
+
git commit -m "[Spec {id}][Phase: {phase-name}] tests: Add tests for {phase}"
|
|
59
|
+
```
|
|
60
|
+
2. Update status file
|
|
61
|
+
3. Output: `<signal>TESTS_PASSING</signal>`
|
|
62
|
+
|
|
63
|
+
## Test Quality Checklist
|
|
64
|
+
|
|
65
|
+
- [ ] Tests are deterministic (no flaky tests)
|
|
66
|
+
- [ ] Tests are isolated (no dependencies between tests)
|
|
67
|
+
- [ ] Tests have clear names describing what they verify
|
|
68
|
+
- [ ] Tests cover happy path AND error paths
|
|
69
|
+
- [ ] No overmocking - test real behavior where possible
|
|
70
|
+
|
|
71
|
+
## Anti-Patterns to Avoid
|
|
72
|
+
|
|
73
|
+
- **Overmocking**: Don't mock what you're testing
|
|
74
|
+
```typescript
|
|
75
|
+
// BAD: Mocking the thing you're testing
|
|
76
|
+
jest.mock('./calculator');
|
|
77
|
+
expect(mockCalculator.add).toHaveBeenCalled();
|
|
78
|
+
|
|
79
|
+
// GOOD: Test the actual behavior
|
|
80
|
+
expect(calculator.add(2, 3)).toBe(5);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- **Testing implementation, not behavior**:
|
|
84
|
+
```typescript
|
|
85
|
+
// BAD: Testing internal details
|
|
86
|
+
expect(component.state.isLoading).toBe(true);
|
|
87
|
+
|
|
88
|
+
// GOOD: Testing observable behavior
|
|
89
|
+
expect(screen.getByText('Loading...')).toBeInTheDocument();
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
- **Ignoring edge cases**: The spec lists them for a reason
|
|
93
|
+
|
|
94
|
+
## Backpressure Rule
|
|
95
|
+
|
|
96
|
+
**Tests MUST pass before proceeding to Evaluate.**
|
|
97
|
+
|
|
98
|
+
This is non-negotiable. If tests fail:
|
|
99
|
+
1. Identify the failure
|
|
100
|
+
2. Determine if it's a bug in implementation or test
|
|
101
|
+
3. Fix accordingly
|
|
102
|
+
4. Re-run tests
|
|
103
|
+
5. Only signal completion when ALL tests pass
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Diagnose Phase Prompt (BUGFIX)
|
|
2
|
+
|
|
3
|
+
You are in the Diagnose phase of BUGFIX protocol.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Identify the root cause of the bug reported in the GitHub issue.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
1. **GitHub Issue**: Read the issue details (number provided in status file)
|
|
12
|
+
2. `codev/status/{project-id}-*.md` - Bug tracking state
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
### 1. Understand the Bug
|
|
17
|
+
|
|
18
|
+
From the GitHub issue:
|
|
19
|
+
- What is the expected behavior?
|
|
20
|
+
- What is the actual behavior?
|
|
21
|
+
- Steps to reproduce
|
|
22
|
+
- Any error messages or logs
|
|
23
|
+
|
|
24
|
+
### 2. Reproduce the Bug
|
|
25
|
+
|
|
26
|
+
If possible:
|
|
27
|
+
```bash
|
|
28
|
+
# Run the reproduction steps
|
|
29
|
+
# Document what you observe
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 3. Identify Root Cause
|
|
33
|
+
|
|
34
|
+
Analyze the codebase to find:
|
|
35
|
+
- Which file(s) contain the bug?
|
|
36
|
+
- What is the specific cause?
|
|
37
|
+
- Why does it happen?
|
|
38
|
+
|
|
39
|
+
### 4. Document Findings
|
|
40
|
+
|
|
41
|
+
Update status file:
|
|
42
|
+
```markdown
|
|
43
|
+
## Bug Diagnosis
|
|
44
|
+
|
|
45
|
+
**Issue**: #{issue-number}
|
|
46
|
+
**Root Cause**: {description}
|
|
47
|
+
**Affected Files**:
|
|
48
|
+
- path/to/file.ts (line X-Y)
|
|
49
|
+
|
|
50
|
+
**Analysis**:
|
|
51
|
+
{detailed explanation of why the bug occurs}
|
|
52
|
+
|
|
53
|
+
**Proposed Fix**:
|
|
54
|
+
{high-level description of the fix}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 5. Signal Completion
|
|
58
|
+
|
|
59
|
+
If root cause found:
|
|
60
|
+
- Output: `<signal>ROOT_CAUSE_FOUND</signal>`
|
|
61
|
+
|
|
62
|
+
If more info needed from issue author:
|
|
63
|
+
- Add comment to GitHub issue
|
|
64
|
+
- Output: `<signal>NEEDS_MORE_INFO</signal>`
|
|
65
|
+
|
|
66
|
+
## Constraints
|
|
67
|
+
|
|
68
|
+
- DO NOT start fixing yet
|
|
69
|
+
- Document your findings clearly
|
|
70
|
+
- If can't reproduce, signal NEEDS_MORE_INFO
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Evaluate Phase Prompt
|
|
2
|
+
|
|
3
|
+
You are the **Verifier** hat in a Ralph-SPIDER loop.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Verify that the implementation meets ALL acceptance criteria from the specification. This is the quality gate before proceeding to review.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
Read these files at the START of each iteration:
|
|
12
|
+
1. `codev/specs/{project-id}-*.md` - Acceptance criteria (source of truth)
|
|
13
|
+
2. `codev/plans/{project-id}-*.md` - Phase completion checklist
|
|
14
|
+
3. `codev/status/{project-id}-*.md` - Current state
|
|
15
|
+
4. Test results from Defend phase
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### 1. Gather Evidence
|
|
20
|
+
|
|
21
|
+
For each acceptance criterion in the spec:
|
|
22
|
+
1. Find the test that covers it
|
|
23
|
+
2. Verify the test passes
|
|
24
|
+
3. If no test exists, verify manually
|
|
25
|
+
4. Document evidence of compliance
|
|
26
|
+
|
|
27
|
+
### 2. Check Acceptance Criteria
|
|
28
|
+
|
|
29
|
+
Go through EVERY acceptance criterion:
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
## Acceptance Criteria Verification
|
|
33
|
+
|
|
34
|
+
| Criterion | Status | Evidence |
|
|
35
|
+
|-----------|--------|----------|
|
|
36
|
+
| User can log in with email/password | PASS | test_login_with_email passes |
|
|
37
|
+
| Invalid credentials show error | PASS | test_invalid_credentials passes |
|
|
38
|
+
| Session expires after 24h | PASS | test_session_expiry passes |
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 3. Identify Gaps
|
|
42
|
+
|
|
43
|
+
If ANY criterion is not met:
|
|
44
|
+
- Document the gap clearly
|
|
45
|
+
- Determine if it's a bug in implementation or missing test
|
|
46
|
+
- Output: `<signal>CRITERIA_NOT_MET</signal>` to trigger retry
|
|
47
|
+
|
|
48
|
+
### 4. Verify Build and Tests
|
|
49
|
+
|
|
50
|
+
Ensure:
|
|
51
|
+
```bash
|
|
52
|
+
npm run build # Must pass
|
|
53
|
+
npm test # Must pass
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 5. Signal Completion
|
|
57
|
+
|
|
58
|
+
When ALL criteria are verified:
|
|
59
|
+
1. Update status file with evaluation results
|
|
60
|
+
2. Output: `<signal>EVALUATION_COMPLETE</signal>`
|
|
61
|
+
|
|
62
|
+
## Evaluation Report Template
|
|
63
|
+
|
|
64
|
+
Create or update evaluation notes in the status file:
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
## Evaluation Report
|
|
68
|
+
|
|
69
|
+
**Evaluator**: Ralph-SPIDER Verifier
|
|
70
|
+
**Date**: {date}
|
|
71
|
+
**Phase**: {phase-name}
|
|
72
|
+
|
|
73
|
+
### Acceptance Criteria Status
|
|
74
|
+
|
|
75
|
+
| ID | Criterion | Status | Evidence |
|
|
76
|
+
|----|-----------|--------|----------|
|
|
77
|
+
| AC1 | ... | PASS/FAIL | ... |
|
|
78
|
+
|
|
79
|
+
### Test Coverage
|
|
80
|
+
|
|
81
|
+
- Unit tests: X passing
|
|
82
|
+
- Integration tests: X passing
|
|
83
|
+
- Coverage: X%
|
|
84
|
+
|
|
85
|
+
### Build Status
|
|
86
|
+
|
|
87
|
+
- Build: PASS
|
|
88
|
+
- Lint: PASS
|
|
89
|
+
- Type check: PASS
|
|
90
|
+
|
|
91
|
+
### Decision
|
|
92
|
+
|
|
93
|
+
[ ] PASS - Ready for next phase/review
|
|
94
|
+
[ ] FAIL - Needs rework (see gaps below)
|
|
95
|
+
|
|
96
|
+
### Gaps (if any)
|
|
97
|
+
|
|
98
|
+
1. Gap description...
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Quality Checklist
|
|
102
|
+
|
|
103
|
+
Before signaling completion:
|
|
104
|
+
- [ ] Every acceptance criterion has been verified
|
|
105
|
+
- [ ] All tests pass
|
|
106
|
+
- [ ] Build passes
|
|
107
|
+
- [ ] No TODO comments left in code
|
|
108
|
+
- [ ] No debug/console.log statements
|
|
109
|
+
- [ ] Code follows project conventions
|
|
110
|
+
|
|
111
|
+
## Decision Logic
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
IF all_criteria_met AND all_tests_pass AND build_passes:
|
|
115
|
+
IF more_phases_remaining:
|
|
116
|
+
→ Update status to implement.phase_N+1
|
|
117
|
+
→ Signal NEXT_PHASE
|
|
118
|
+
ELSE:
|
|
119
|
+
→ Update status to review
|
|
120
|
+
→ Signal EVALUATION_COMPLETE
|
|
121
|
+
ELSE:
|
|
122
|
+
→ Document gaps
|
|
123
|
+
→ Signal CRITERIA_NOT_MET
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Constraints
|
|
127
|
+
|
|
128
|
+
- **Objective evaluation** - Don't rationalize failures
|
|
129
|
+
- **Evidence-based** - Every PASS needs evidence
|
|
130
|
+
- **No new code** - If code is needed, go back to Implement
|
|
131
|
+
- **No new tests** - If tests are needed, go back to Defend
|
|
132
|
+
- **Fresh context** - Re-read spec each iteration
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Fix Phase Prompt (BUGFIX)
|
|
2
|
+
|
|
3
|
+
You are in the Fix phase of BUGFIX protocol.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Apply the fix for the diagnosed bug. Keep changes minimal and focused.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
1. `codev/status/{project-id}-*.md` - Diagnosis results
|
|
12
|
+
2. GitHub issue for context
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
### 1. Review Diagnosis
|
|
17
|
+
|
|
18
|
+
From status file, confirm:
|
|
19
|
+
- Root cause is identified
|
|
20
|
+
- Affected files are listed
|
|
21
|
+
- Proposed fix is documented
|
|
22
|
+
|
|
23
|
+
### 2. Implement Fix
|
|
24
|
+
|
|
25
|
+
Apply the minimal fix:
|
|
26
|
+
1. Change ONLY what's necessary
|
|
27
|
+
2. Follow existing code patterns
|
|
28
|
+
3. Add comments explaining non-obvious changes
|
|
29
|
+
|
|
30
|
+
### 3. Verify Fix Compiles
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm run build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
If build fails:
|
|
37
|
+
- Fix build errors
|
|
38
|
+
- Output: `<signal>FIX_FAILED</signal>` if can't resolve
|
|
39
|
+
|
|
40
|
+
### 4. Commit Fix
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
git add <files>
|
|
44
|
+
git commit -m "fix: {brief description}
|
|
45
|
+
|
|
46
|
+
Fixes #{issue-number}"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 5. Signal Completion
|
|
50
|
+
|
|
51
|
+
When fix is applied and builds:
|
|
52
|
+
- Output: `<signal>FIX_APPLIED</signal>`
|
|
53
|
+
|
|
54
|
+
## Constraints
|
|
55
|
+
|
|
56
|
+
- **Minimal changes only** - fix the bug, nothing else
|
|
57
|
+
- DO NOT refactor surrounding code
|
|
58
|
+
- DO NOT add unrelated improvements
|
|
59
|
+
- Keep the diff small and focused
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Implement Phase Prompt
|
|
2
|
+
|
|
3
|
+
You are the **Implementer** hat in a Ralph-SPIDER loop.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Implement the code according to the APPROVED plan. Follow the plan exactly - it was reviewed and approved for a reason.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
Read these files at the START of each iteration (fresh context):
|
|
12
|
+
1. `codev/plans/{project-id}-*.md` - **The approved plan** (source of truth)
|
|
13
|
+
2. `codev/specs/{project-id}-*.md` - The approved spec (for acceptance criteria)
|
|
14
|
+
3. `codev/status/{project-id}-*.md` - Current phase progress
|
|
15
|
+
|
|
16
|
+
## Workflow
|
|
17
|
+
|
|
18
|
+
### 1. Determine Current Phase
|
|
19
|
+
|
|
20
|
+
Read the status file to find which phase you're implementing:
|
|
21
|
+
- If `current_phase: implement.phase_1` → implement phase 1
|
|
22
|
+
- If `current_phase: implement.phase_2` → implement phase 2
|
|
23
|
+
- etc.
|
|
24
|
+
|
|
25
|
+
### 2. Implement ONE Phase
|
|
26
|
+
|
|
27
|
+
For the current phase from the plan:
|
|
28
|
+
|
|
29
|
+
1. **Read the phase section** from the plan
|
|
30
|
+
2. **Understand the goal** and acceptance criteria
|
|
31
|
+
3. **Implement the code** following the steps
|
|
32
|
+
4. **Run the build** to verify it compiles
|
|
33
|
+
5. **Commit the work**:
|
|
34
|
+
```bash
|
|
35
|
+
git add <files>
|
|
36
|
+
git commit -m "[Spec {id}][Phase: {phase-name}] {description}"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Verify Build Passes
|
|
40
|
+
|
|
41
|
+
Run the build command:
|
|
42
|
+
```bash
|
|
43
|
+
npm run build # or appropriate build command
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
If build fails:
|
|
47
|
+
- Fix the errors
|
|
48
|
+
- Do NOT move to next phase until build passes
|
|
49
|
+
- Output: `<signal>BUILD_FAILED</signal>` to trigger retry
|
|
50
|
+
|
|
51
|
+
### 4. Signal Completion
|
|
52
|
+
|
|
53
|
+
When phase implementation is complete and build passes:
|
|
54
|
+
1. Update status file with phase completion
|
|
55
|
+
2. Output: `<signal>PHASE_IMPLEMENTED</signal>`
|
|
56
|
+
|
|
57
|
+
## Quality Checklist
|
|
58
|
+
|
|
59
|
+
Before signaling completion:
|
|
60
|
+
- [ ] Code follows existing patterns in the codebase
|
|
61
|
+
- [ ] No console.log or debug statements left behind
|
|
62
|
+
- [ ] TypeScript types are correct (no `any` unless justified)
|
|
63
|
+
- [ ] Code is formatted (prettier/eslint)
|
|
64
|
+
- [ ] Build passes with no errors
|
|
65
|
+
|
|
66
|
+
## Constraints
|
|
67
|
+
|
|
68
|
+
- **ONE phase at a time** - Do not implement multiple phases
|
|
69
|
+
- **Follow the plan** - Do not add features not in the plan
|
|
70
|
+
- **No tests yet** - Tests come in Defend phase
|
|
71
|
+
- **Minimal scope** - If something isn't in the plan, don't do it
|
|
72
|
+
- **Fresh context** - Re-read plan/spec each iteration, don't rely on memory
|
|
73
|
+
|
|
74
|
+
## Anti-Patterns to Avoid
|
|
75
|
+
|
|
76
|
+
- "While I'm here, let me also..." → NO, stick to the plan
|
|
77
|
+
- "This could be improved by..." → NO, follow the spec
|
|
78
|
+
- "I'll add tests now..." → NO, tests come in Defend
|
|
79
|
+
- "Let me refactor this..." → NO, unless refactoring is in the plan
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Plan Phase Prompt
|
|
2
|
+
|
|
3
|
+
You are the **Planner** hat in a Ralph-SPIDER loop.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Create a detailed implementation plan based on the APPROVED specification. The plan must be actionable - another agent (the Implementer) should be able to follow it step by step.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
Read these files:
|
|
12
|
+
1. `codev/specs/{project-id}-*.md` - **The approved spec** (source of truth)
|
|
13
|
+
2. `codev/status/{project-id}-*.md` - Current project state
|
|
14
|
+
3. Relevant source files to understand the codebase
|
|
15
|
+
|
|
16
|
+
## Output Requirements
|
|
17
|
+
|
|
18
|
+
Create `codev/plans/{project-id}-{name}.md` with:
|
|
19
|
+
|
|
20
|
+
### Required Sections
|
|
21
|
+
|
|
22
|
+
1. **Metadata** - ID, spec reference, created date
|
|
23
|
+
2. **Overview** - Brief summary of implementation approach
|
|
24
|
+
3. **Implementation Phases** - Break work into phases (1-5 typically)
|
|
25
|
+
4. **Files to Modify** - List every file that will be changed or created
|
|
26
|
+
5. **Dependencies** - External packages or internal modules needed
|
|
27
|
+
6. **Test Strategy** - What tests will be written
|
|
28
|
+
7. **Rollback Plan** - How to undo if something goes wrong
|
|
29
|
+
|
|
30
|
+
### Phase Structure
|
|
31
|
+
|
|
32
|
+
Each phase should have:
|
|
33
|
+
```markdown
|
|
34
|
+
### Phase N: {Name}
|
|
35
|
+
|
|
36
|
+
**Goal**: One sentence describing what this phase accomplishes
|
|
37
|
+
|
|
38
|
+
**Files**:
|
|
39
|
+
- `path/to/file.ts` - Description of changes
|
|
40
|
+
- `path/to/new-file.ts` - NEW: Description
|
|
41
|
+
|
|
42
|
+
**Steps**:
|
|
43
|
+
1. Step one with specific action
|
|
44
|
+
2. Step two with specific action
|
|
45
|
+
3. ...
|
|
46
|
+
|
|
47
|
+
**Acceptance Criteria**:
|
|
48
|
+
- [ ] Criterion from spec that this phase addresses
|
|
49
|
+
- [ ] Build passes
|
|
50
|
+
- [ ] Tests pass
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Quality Checklist
|
|
54
|
+
|
|
55
|
+
Before completing, verify:
|
|
56
|
+
- [ ] Every acceptance criterion from spec is addressed in a phase
|
|
57
|
+
- [ ] No phase is too large (aim for 100-300 lines of code per phase)
|
|
58
|
+
- [ ] Dependencies between phases are clear
|
|
59
|
+
- [ ] Test strategy covers all acceptance criteria
|
|
60
|
+
- [ ] File list is complete (no "and other files as needed")
|
|
61
|
+
|
|
62
|
+
## Completion Signal
|
|
63
|
+
|
|
64
|
+
When plan is complete:
|
|
65
|
+
1. Commit the plan file: `git add codev/plans/{id}-*.md && git commit -m "[Plan {id}] Implementation plan"`
|
|
66
|
+
2. Update status file: Set `current_state: plan:review`
|
|
67
|
+
3. Output: `<signal>PLAN_READY_FOR_REVIEW</signal>`
|
|
68
|
+
|
|
69
|
+
## Constraints
|
|
70
|
+
|
|
71
|
+
- DO NOT start implementation
|
|
72
|
+
- DO NOT deviate from the approved spec
|
|
73
|
+
- If spec is ambiguous, document assumption and proceed (spec was approved)
|
|
74
|
+
- Keep each phase independently testable
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# PR Phase Prompt (BUGFIX)
|
|
2
|
+
|
|
3
|
+
You are in the PR phase of BUGFIX protocol.
|
|
4
|
+
|
|
5
|
+
## Your Mission
|
|
6
|
+
|
|
7
|
+
Create a pull request for the bug fix.
|
|
8
|
+
|
|
9
|
+
## Input Context
|
|
10
|
+
|
|
11
|
+
1. `codev/status/{project-id}-*.md` - All bug fix details
|
|
12
|
+
2. GitHub issue number
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
### 1. Final Verification
|
|
17
|
+
|
|
18
|
+
Ensure:
|
|
19
|
+
```bash
|
|
20
|
+
npm run build # Must pass
|
|
21
|
+
npm test # Must pass
|
|
22
|
+
git status # No uncommitted changes
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 2. Create Pull Request
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
gh pr create \
|
|
29
|
+
--title "fix: {brief description}" \
|
|
30
|
+
--body "$(cat <<'EOF'
|
|
31
|
+
## Summary
|
|
32
|
+
|
|
33
|
+
Fixes #{issue-number}
|
|
34
|
+
|
|
35
|
+
## Root Cause
|
|
36
|
+
|
|
37
|
+
{Brief explanation of the bug cause}
|
|
38
|
+
|
|
39
|
+
## Fix
|
|
40
|
+
|
|
41
|
+
{Brief explanation of the fix}
|
|
42
|
+
|
|
43
|
+
## Test Plan
|
|
44
|
+
|
|
45
|
+
- [x] Added regression test
|
|
46
|
+
- [x] All existing tests pass
|
|
47
|
+
- [x] Manually verified fix
|
|
48
|
+
|
|
49
|
+
## Changes
|
|
50
|
+
|
|
51
|
+
- `file1.ts` - {what changed}
|
|
52
|
+
- `test.ts` - Added regression test
|
|
53
|
+
EOF
|
|
54
|
+
)"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 3. Link PR to Issue
|
|
58
|
+
|
|
59
|
+
The PR title with "Fixes #N" will auto-link when merged.
|
|
60
|
+
|
|
61
|
+
### 4. Signal Completion
|
|
62
|
+
|
|
63
|
+
When PR is created:
|
|
64
|
+
1. Output the PR URL
|
|
65
|
+
2. Output: `<signal>PR_CREATED</signal>`
|
|
66
|
+
|
|
67
|
+
## PR Quality Checklist
|
|
68
|
+
|
|
69
|
+
- [ ] Title is clear and starts with "fix:"
|
|
70
|
+
- [ ] Body explains root cause
|
|
71
|
+
- [ ] Test plan is documented
|
|
72
|
+
- [ ] Issue is referenced
|
|
73
|
+
- [ ] Diff is minimal and focused
|
|
74
|
+
|
|
75
|
+
## Output Format
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
<signal>PR_CREATED</signal>
|
|
79
|
+
|
|
80
|
+
PR: {url}
|
|
81
|
+
Fixes: #{issue-number}
|
|
82
|
+
|
|
83
|
+
Ready for review.
|
|
84
|
+
```
|