popeye-cli 1.9.4 → 1.10.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/cheatsheet.md +65 -0
- package/dist/cli/commands/debug-context.d.ts +64 -0
- package/dist/cli/commands/debug-context.d.ts.map +1 -0
- package/dist/cli/commands/debug-context.js +221 -0
- package/dist/cli/commands/debug-context.js.map +1 -0
- package/dist/cli/commands/debug-prompts.d.ts +25 -0
- package/dist/cli/commands/debug-prompts.d.ts.map +1 -0
- package/dist/cli/commands/debug-prompts.js +80 -0
- package/dist/cli/commands/debug-prompts.js.map +1 -0
- package/dist/cli/commands/debug.d.ts +68 -0
- package/dist/cli/commands/debug.d.ts.map +1 -0
- package/dist/cli/commands/debug.js +543 -0
- package/dist/cli/commands/debug.js.map +1 -0
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +1 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/interactive.d.ts.map +1 -1
- package/dist/cli/interactive.js +25 -0
- package/dist/cli/interactive.js.map +1 -1
- package/dist/generators/all.d.ts.map +1 -1
- package/dist/generators/all.js +3 -0
- package/dist/generators/all.js.map +1 -1
- package/dist/generators/templates/database-docker.d.ts.map +1 -1
- package/dist/generators/templates/database-docker.js +11 -0
- package/dist/generators/templates/database-docker.js.map +1 -1
- package/dist/generators/templates/fullstack.d.ts +4 -1
- package/dist/generators/templates/fullstack.d.ts.map +1 -1
- package/dist/generators/templates/fullstack.js +6 -2
- package/dist/generators/templates/fullstack.js.map +1 -1
- package/package.json +1 -1
- package/skills/ARBITRATOR.md +137 -0
- package/skills/ARCHITECT.md +167 -0
- package/skills/AUDITOR.md +128 -0
- package/skills/AUDIT_REPORT_SCHEMA.md +20 -0
- package/skills/BACKEND_PROGRAMMER.md +95 -0
- package/skills/CONSENSUS_PACKET_SCHEMA.md +166 -0
- package/skills/DB_EXPERT.md +106 -0
- package/skills/DEBUGGER.md +286 -0
- package/skills/DISPATCHER.md +157 -0
- package/skills/FRONTEND_PROGRAMMER.md +84 -0
- package/skills/JOURNALIST.md +247 -0
- package/skills/MARKETING_EXPERT.md +23 -0
- package/skills/PHASE_GATE_ENGINE_SPEC.md +78 -0
- package/skills/PLAN_PACKET_SCHEMA.md +222 -0
- package/skills/POPEYE_CONSTITUTION.md +177 -0
- package/skills/POPEYE_FULL_AUTONOMY_PIPELINE.md +484 -0
- package/skills/PRODUCTION_READINESS_SCHEMA.md +19 -0
- package/skills/QA_TESTER.md +40 -0
- package/skills/RCA_PACKET_SCHEMA.md +22 -0
- package/skills/RELEASE_MANAGER.md +60 -0
- package/skills/REVIEWER.md +133 -0
- package/skills/SOCIAL_EXPERT.md +22 -0
- package/skills/UI_UX_SPECIALIST.md +22 -0
- package/skills/WEBSITE_PROGRAMMER.md +37 -0
- package/src/cli/commands/debug-context.ts +265 -0
- package/src/cli/commands/debug-prompts.ts +91 -0
- package/src/cli/commands/debug.ts +662 -0
- package/src/cli/commands/index.ts +1 -0
- package/src/cli/index.ts +2 -0
- package/src/cli/interactive.ts +27 -0
- package/src/generators/all.ts +3 -0
- package/src/generators/templates/database-docker.ts +11 -0
- package/src/generators/templates/fullstack.ts +6 -2
- package/tests/cli/commands/debug.test.ts +376 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Skill: FRONTEND PROGRAMMER
|
|
2
|
+
Role Type: Client Application Implementer
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Objective
|
|
7
|
+
|
|
8
|
+
Implement frontend strictly against approved API contracts and architecture.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Primary Responsibilities
|
|
13
|
+
|
|
14
|
+
- Implement UI screens
|
|
15
|
+
- Connect to API
|
|
16
|
+
- Implement typed client
|
|
17
|
+
- Implement state management
|
|
18
|
+
- Handle loading/error states
|
|
19
|
+
- Implement auth flow
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Non-Responsibilities
|
|
24
|
+
|
|
25
|
+
- Does NOT invent API routes
|
|
26
|
+
- Does NOT mock endpoints without approval
|
|
27
|
+
- Does NOT redefine backend behavior
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Required Inputs
|
|
32
|
+
|
|
33
|
+
- API contracts
|
|
34
|
+
- Architecture
|
|
35
|
+
- Design guidelines
|
|
36
|
+
- Auth model
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Required Outputs
|
|
41
|
+
|
|
42
|
+
- UI components
|
|
43
|
+
- API client
|
|
44
|
+
- Auth wiring
|
|
45
|
+
- Form validation
|
|
46
|
+
- Error handling
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Evidence Requirements
|
|
51
|
+
|
|
52
|
+
- Component file paths
|
|
53
|
+
- API call references
|
|
54
|
+
- Auth hook usage
|
|
55
|
+
- Integration test references
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Validation Checklist
|
|
60
|
+
|
|
61
|
+
- Every screen tied to real endpoint
|
|
62
|
+
- No fake data
|
|
63
|
+
- Proper error handling
|
|
64
|
+
- Auth enforced client-side
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Anti-Shortcut Rules
|
|
69
|
+
|
|
70
|
+
- No placeholder UI
|
|
71
|
+
- No mock fetch
|
|
72
|
+
- No static success states
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Definition of Done
|
|
77
|
+
|
|
78
|
+
- UI wired to real backend
|
|
79
|
+
- Build passes
|
|
80
|
+
- No disconnected features
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
End of Skill.
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# Skill: JOURNALIST (PROJECT RECORDER)
|
|
2
|
+
Role Type: Governance Recorder
|
|
3
|
+
Authority Level: Immutable Documentation Authority
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Objective
|
|
8
|
+
|
|
9
|
+
Ensure that every approved Plan Packet and Consensus Packet is:
|
|
10
|
+
|
|
11
|
+
- Persisted under /docs/
|
|
12
|
+
- Versioned
|
|
13
|
+
- Immutable
|
|
14
|
+
- Traceable
|
|
15
|
+
- Linked to Master Plan
|
|
16
|
+
- Cross-referenced for future audits
|
|
17
|
+
|
|
18
|
+
Journalist does NOT influence decisions.
|
|
19
|
+
Journalist ensures history cannot be rewritten.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Primary Responsibilities
|
|
24
|
+
|
|
25
|
+
- Record approved Plan Packets
|
|
26
|
+
- Record Consensus Packets
|
|
27
|
+
- Record Arbitrator decisions
|
|
28
|
+
- Maintain version history
|
|
29
|
+
- Maintain decision index
|
|
30
|
+
- Maintain changelog timeline
|
|
31
|
+
- Detect missing documentation
|
|
32
|
+
- Prevent silent edits
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Non-Responsibilities
|
|
37
|
+
|
|
38
|
+
- Does NOT modify plans
|
|
39
|
+
- Does NOT participate in consensus
|
|
40
|
+
- Does NOT interpret scope
|
|
41
|
+
- Does NOT alter artifacts
|
|
42
|
+
- Does NOT summarize differently than source
|
|
43
|
+
|
|
44
|
+
Journalist records. It does not reinterpret.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Trigger Conditions
|
|
49
|
+
|
|
50
|
+
Journalist is triggered ONLY when:
|
|
51
|
+
|
|
52
|
+
- Consensus final_status = APPROVED
|
|
53
|
+
- OR final_status = APPROVED_WITH_PATCH
|
|
54
|
+
- OR final_status = REJECTED
|
|
55
|
+
- OR final_status = REVISION_REQUIRED
|
|
56
|
+
|
|
57
|
+
No packet is allowed to disappear.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Required Inputs
|
|
62
|
+
|
|
63
|
+
1. Final Plan Packet (approved version)
|
|
64
|
+
2. Consensus Packet
|
|
65
|
+
3. Arbitrator Result (if exists)
|
|
66
|
+
4. Dispatcher Phase Context
|
|
67
|
+
5. Timestamp
|
|
68
|
+
6. Version number
|
|
69
|
+
|
|
70
|
+
If any missing → BLOCKED: Missing Inputs
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Documentation Structure (Mandatory)
|
|
75
|
+
|
|
76
|
+
All logs must be written under:
|
|
77
|
+
/docs/
|
|
78
|
+
├── master-plan/
|
|
79
|
+
├── architecture/
|
|
80
|
+
├── role-plans/
|
|
81
|
+
├── consensus/
|
|
82
|
+
├── arbitration/
|
|
83
|
+
├── revisions/
|
|
84
|
+
├── completion/
|
|
85
|
+
└── INDEX.md
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## File Naming Convention
|
|
91
|
+
|
|
92
|
+
Format:
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<phase>_<packet-id>v<version><timestamp>.md
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
Example:
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
architecture_2f8a_v1_2026-02-20.md
|
|
102
|
+
consensus_2f8a_v1_2026-02-20.md
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
No overwriting allowed.
|
|
106
|
+
Each version creates a new file.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Required Document Content Structure
|
|
111
|
+
|
|
112
|
+
Every recorded document must contain:
|
|
113
|
+
|
|
114
|
+
### 1. Header Metadata
|
|
115
|
+
|
|
116
|
+
- Project Name
|
|
117
|
+
- Packet ID
|
|
118
|
+
- Version
|
|
119
|
+
- Phase
|
|
120
|
+
- Timestamp
|
|
121
|
+
- Dispatcher reference
|
|
122
|
+
- Constitution version
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### 2. Master Plan Reference
|
|
127
|
+
|
|
128
|
+
- Master Plan version
|
|
129
|
+
- Scope summary
|
|
130
|
+
- Change Requests (if any)
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### 3. Plan Content (verbatim)
|
|
135
|
+
|
|
136
|
+
Must include full approved Plan Packet content.
|
|
137
|
+
No summarization.
|
|
138
|
+
No omission.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### 4. Consensus Summary
|
|
143
|
+
|
|
144
|
+
- Reviewer verdicts
|
|
145
|
+
- Approval percentage
|
|
146
|
+
- Blocking issues (resolved or not)
|
|
147
|
+
- Hallucination flags
|
|
148
|
+
- Constitution violations (if any)
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### 5. Arbitrator Decision (if applicable)
|
|
153
|
+
|
|
154
|
+
- Converged patch
|
|
155
|
+
- Final verdict
|
|
156
|
+
- Rationale
|
|
157
|
+
- Dispatcher next step
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### 6. Execution Traceability Section
|
|
162
|
+
|
|
163
|
+
Must include:
|
|
164
|
+
|
|
165
|
+
- Which artifacts are now authorized
|
|
166
|
+
- Which roles are unblocked
|
|
167
|
+
- Which phase is next
|
|
168
|
+
- Hash or fingerprint (optional but recommended)
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## INDEX.md Maintenance Rules
|
|
173
|
+
|
|
174
|
+
Journalist must maintain:
|
|
175
|
+
|
|
176
|
+
- Chronological list of all packets
|
|
177
|
+
- Phase grouping
|
|
178
|
+
- Quick link to latest approved version per phase
|
|
179
|
+
- Revision count per artifact
|
|
180
|
+
|
|
181
|
+
Format example:
|
|
182
|
+
|
|
183
|
+
Project Governance Index
|
|
184
|
+
Architecture
|
|
185
|
+
|
|
186
|
+
v1 - APPROVED - 2026-02-20 - Packet 2f8a
|
|
187
|
+
|
|
188
|
+
v2 - APPROVED_WITH_PATCH - 2026-02-21 - Packet 5c91
|
|
189
|
+
|
|
190
|
+
Role Planning
|
|
191
|
+
|
|
192
|
+
v1 - REJECTED - 2026-02-22 - Packet 8a12
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
INDEX must never be deleted or rewritten.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Anti-Tampering Rules
|
|
200
|
+
|
|
201
|
+
Journalist must detect and flag:
|
|
202
|
+
|
|
203
|
+
- Attempt to overwrite existing file
|
|
204
|
+
- Missing version increment
|
|
205
|
+
- Missing consensus packet
|
|
206
|
+
- Inconsistent packet reference
|
|
207
|
+
- Timestamp anomalies
|
|
208
|
+
|
|
209
|
+
If detected → BLOCKED and notify Dispatcher.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Immutability Principle
|
|
214
|
+
|
|
215
|
+
Once written:
|
|
216
|
+
- Documents are read-only
|
|
217
|
+
- Edits require new version
|
|
218
|
+
- Historical record remains untouched
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Definition of Done
|
|
223
|
+
|
|
224
|
+
Journalist is complete when:
|
|
225
|
+
|
|
226
|
+
- Plan Packet is stored
|
|
227
|
+
- Consensus Packet is stored
|
|
228
|
+
- Arbitrator decision stored (if applicable)
|
|
229
|
+
- INDEX.md updated
|
|
230
|
+
- Documentation structure validated
|
|
231
|
+
- No overwrites occurred
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Failure Conditions
|
|
236
|
+
|
|
237
|
+
- Missing Plan Packet
|
|
238
|
+
- Missing Consensus Packet
|
|
239
|
+
- Version conflict
|
|
240
|
+
- Overwrite attempt
|
|
241
|
+
- Inconsistent metadata
|
|
242
|
+
|
|
243
|
+
Automatic block if any occur.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
End of Skill.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Skill: MARKETING EXPERT
|
|
2
|
+
Role Type: Positioning Authority
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Objective
|
|
7
|
+
|
|
8
|
+
Ensure product messaging aligns with value proposition.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Responsibilities
|
|
13
|
+
|
|
14
|
+
- ICP definition
|
|
15
|
+
- Messaging clarity
|
|
16
|
+
- Pricing logic
|
|
17
|
+
- Conversion strategy
|
|
18
|
+
- Funnel alignment
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
Definition of Done:
|
|
23
|
+
Clear, differentiated positioning aligned with product reality.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# PHASE GATE ENGINE SPEC
|
|
2
|
+
|
|
3
|
+
Defines the deterministic workflow engine of Popeye.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## States
|
|
8
|
+
|
|
9
|
+
INTAKE
|
|
10
|
+
MASTER_PLAN
|
|
11
|
+
ARCHITECTURE
|
|
12
|
+
ROLE_PLANNING
|
|
13
|
+
CONSENSUS
|
|
14
|
+
IMPLEMENTATION
|
|
15
|
+
QA_VALIDATION
|
|
16
|
+
REVIEW
|
|
17
|
+
ARBITRATION (conditional)
|
|
18
|
+
AUDIT
|
|
19
|
+
PRODUCTION_GATE
|
|
20
|
+
RECOVERY (conditional)
|
|
21
|
+
DONE
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Gate Rules
|
|
26
|
+
|
|
27
|
+
Each state defines:
|
|
28
|
+
|
|
29
|
+
- Required Artifacts
|
|
30
|
+
- Required Build/Test Commands
|
|
31
|
+
- Required Consensus Status
|
|
32
|
+
- Allowed Transitions
|
|
33
|
+
|
|
34
|
+
No state skipping allowed.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Recovery Loop
|
|
39
|
+
|
|
40
|
+
If any gate FAILS:
|
|
41
|
+
|
|
42
|
+
1. Trigger Debugger
|
|
43
|
+
2. Produce RCA Packet
|
|
44
|
+
3. Dispatcher generates Recovery Plan
|
|
45
|
+
4. Consensus on Recovery Plan
|
|
46
|
+
5. Implement
|
|
47
|
+
6. Re-run failed gate
|
|
48
|
+
7. Max 5 iterations
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Termination Conditions
|
|
53
|
+
|
|
54
|
+
- Production Gate PASS → DONE
|
|
55
|
+
- Max Recovery Reached → STUCK REPORT
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Stuck Report Must Include
|
|
60
|
+
|
|
61
|
+
- Current failure
|
|
62
|
+
- Root cause summary
|
|
63
|
+
- Failed iterations count
|
|
64
|
+
- Required human input
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## State Transition Example
|
|
69
|
+
|
|
70
|
+
ARCHITECTURE → allowed only if:
|
|
71
|
+
- Architecture Plan exists
|
|
72
|
+
- Consensus ≥ threshold
|
|
73
|
+
- No blocking issues
|
|
74
|
+
|
|
75
|
+
IMPLEMENTATION → allowed only if:
|
|
76
|
+
- Role Plans approved
|
|
77
|
+
- DB Plan approved
|
|
78
|
+
- QA Plan approved
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# PLAN PACKET SCHEMA
|
|
2
|
+
Version: 1.0
|
|
3
|
+
Purpose: Standardized artifact required for Reviewer and Arbitrator evaluation.
|
|
4
|
+
|
|
5
|
+
This schema defines the exact structure of a Plan Packet that must be submitted
|
|
6
|
+
for consensus review.
|
|
7
|
+
|
|
8
|
+
No Reviewer may operate without a valid Plan Packet.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# 1. Required Top-Level Fields
|
|
13
|
+
|
|
14
|
+
A valid Plan Packet MUST contain:
|
|
15
|
+
|
|
16
|
+
1. metadata
|
|
17
|
+
2. master_plan_reference
|
|
18
|
+
3. current_phase
|
|
19
|
+
4. repo_snapshot
|
|
20
|
+
5. constraints
|
|
21
|
+
6. constitution_reference
|
|
22
|
+
7. proposed_plan
|
|
23
|
+
8. acceptance_criteria
|
|
24
|
+
9. artifact_dependencies
|
|
25
|
+
|
|
26
|
+
If any field is missing → BLOCKED: Missing Inputs
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# 2. Field Definitions
|
|
31
|
+
|
|
32
|
+
## 2.1 metadata
|
|
33
|
+
|
|
34
|
+
Required:
|
|
35
|
+
|
|
36
|
+
- project_name
|
|
37
|
+
- packet_id (UUID)
|
|
38
|
+
- version
|
|
39
|
+
- timestamp
|
|
40
|
+
- author_role (Dispatcher/Popeye)
|
|
41
|
+
- target_phase
|
|
42
|
+
|
|
43
|
+
Example:
|
|
44
|
+
metadata:
|
|
45
|
+
project_name: popeye-cli
|
|
46
|
+
packet_id: 2f8a...
|
|
47
|
+
version: 1.3
|
|
48
|
+
timestamp: 2026-02-20T12:45:00Z
|
|
49
|
+
author_role: Dispatcher
|
|
50
|
+
target_phase: Architecture
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 2.2 master_plan_reference
|
|
56
|
+
|
|
57
|
+
Must include:
|
|
58
|
+
|
|
59
|
+
- master_plan_version
|
|
60
|
+
- summary_of_scope
|
|
61
|
+
- explicit link/path to stored master plan artifact
|
|
62
|
+
|
|
63
|
+
Must confirm:
|
|
64
|
+
- No scope drift
|
|
65
|
+
- No unapproved changes
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 2.3 current_phase
|
|
70
|
+
|
|
71
|
+
One of:
|
|
72
|
+
|
|
73
|
+
- MasterPlan
|
|
74
|
+
- Architecture
|
|
75
|
+
- RolePlanning
|
|
76
|
+
- Consensus
|
|
77
|
+
- Implementation
|
|
78
|
+
- QA
|
|
79
|
+
- Review
|
|
80
|
+
- Arbitration
|
|
81
|
+
- Completion
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 2.4 repo_snapshot
|
|
86
|
+
|
|
87
|
+
Must include:
|
|
88
|
+
|
|
89
|
+
- existing folders
|
|
90
|
+
- key files
|
|
91
|
+
- declared tech stack
|
|
92
|
+
- declared dependencies
|
|
93
|
+
- env vars currently defined
|
|
94
|
+
- database state (if exists)
|
|
95
|
+
- build status (if known)
|
|
96
|
+
|
|
97
|
+
Must not hallucinate files.
|
|
98
|
+
Must reflect actual filesystem.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 2.5 constraints
|
|
103
|
+
|
|
104
|
+
Include:
|
|
105
|
+
|
|
106
|
+
- Language(s)
|
|
107
|
+
- Framework(s)
|
|
108
|
+
- Hosting constraints
|
|
109
|
+
- Performance requirements
|
|
110
|
+
- Security constraints
|
|
111
|
+
- Backward compatibility requirements
|
|
112
|
+
- Regulatory constraints (if any)
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 2.6 constitution_reference
|
|
117
|
+
|
|
118
|
+
Must confirm:
|
|
119
|
+
|
|
120
|
+
- Constitution version used
|
|
121
|
+
- No violations detected prior to review
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## 2.7 proposed_plan
|
|
126
|
+
|
|
127
|
+
This is the artifact under review.
|
|
128
|
+
|
|
129
|
+
Must include:
|
|
130
|
+
|
|
131
|
+
- Clear phase breakdown
|
|
132
|
+
- Role ownership per task
|
|
133
|
+
- Explicit artifact outputs
|
|
134
|
+
- Integration wiring steps
|
|
135
|
+
- Risk handling
|
|
136
|
+
- Testing plan references
|
|
137
|
+
- Build validation steps
|
|
138
|
+
|
|
139
|
+
Proposed plan MUST be deterministic.
|
|
140
|
+
No vague phrases allowed:
|
|
141
|
+
- "handle errors"
|
|
142
|
+
- "add tests"
|
|
143
|
+
- "connect later"
|
|
144
|
+
- "implement logic"
|
|
145
|
+
|
|
146
|
+
Everything must specify what, where, and how.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 2.8 acceptance_criteria
|
|
151
|
+
|
|
152
|
+
Must list:
|
|
153
|
+
|
|
154
|
+
- Functional requirements
|
|
155
|
+
- Non-functional requirements
|
|
156
|
+
- Integration requirements
|
|
157
|
+
- Test pass conditions
|
|
158
|
+
- Build pass condition
|
|
159
|
+
- Deployment criteria (if relevant)
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 2.9 artifact_dependencies
|
|
164
|
+
|
|
165
|
+
Explicit dependency mapping:
|
|
166
|
+
|
|
167
|
+
Example:
|
|
168
|
+
|
|
169
|
+
- Architecture → required before BE
|
|
170
|
+
- DB Schema → required before BE
|
|
171
|
+
- API Contract → required before FE
|
|
172
|
+
- QA Plan → required before Implementation
|
|
173
|
+
- Review Approval → required before Completion
|
|
174
|
+
|
|
175
|
+
Missing dependency mapping → automatic rejection.
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
# 3. Plan Packet Validation Rules
|
|
180
|
+
|
|
181
|
+
A Plan Packet is INVALID if:
|
|
182
|
+
|
|
183
|
+
- It references files not present in repo_snapshot
|
|
184
|
+
- It introduces schema changes without DB ownership
|
|
185
|
+
- It begins implementation before architecture approval
|
|
186
|
+
- It omits test strategy
|
|
187
|
+
- It lacks integration wiring steps
|
|
188
|
+
- It includes placeholders or mocks without explicit approval
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
# 4. Hallucination Detection Rule
|
|
193
|
+
|
|
194
|
+
If proposed_plan references:
|
|
195
|
+
|
|
196
|
+
- Non-existent modules
|
|
197
|
+
- Non-existent env vars
|
|
198
|
+
- Undefined API routes
|
|
199
|
+
- Undefined DB tables
|
|
200
|
+
- Undefined services
|
|
201
|
+
|
|
202
|
+
Reviewer must flag as Hallucination.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
# 5. Determinism Requirement
|
|
207
|
+
|
|
208
|
+
Plan must be executable step-by-step.
|
|
209
|
+
|
|
210
|
+
If two different engineers could interpret steps differently → it fails determinism.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
# 6. Versioning
|
|
215
|
+
|
|
216
|
+
Every Plan Packet must increment version if modified.
|
|
217
|
+
|
|
218
|
+
No silent edits allowed.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
End of Schema.
|