sherpa-skill 2.0.6 → 2.0.7

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 (246) hide show
  1. package/.agents/plugins/marketplace.json +11 -0
  2. package/.agents/skills/sherpa/SKILL.md +161 -0
  3. package/.agents/skills/sherpa/commands/README.md +43 -0
  4. package/.agents/skills/sherpa/commands/manifest.json +589 -0
  5. package/.agents/skills/sherpa/commands/sherpa-research.md +147 -0
  6. package/.agents/skills/sherpa/core/commands/router.py +171 -0
  7. package/.agents/skills/sherpa/core/configuration/manager.py +504 -0
  8. package/.agents/skills/sherpa/core/ideas/engine.py +564 -0
  9. package/.agents/skills/sherpa/docs/commands/README.md +96 -0
  10. package/.agents/skills/sherpa/docs/configuration/runtime-verification.md +64 -0
  11. package/.agents/skills/sherpa/rules/demo-preparation-rules.md +543 -0
  12. package/.agents/skills/sherpa/rules/engineering-rules.md +221 -0
  13. package/.agents/skills/sherpa/rules/final-audit-rules.md +824 -0
  14. package/.agents/skills/sherpa/rules/implementation-rules.md +127 -0
  15. package/.agents/skills/sherpa/rules/judge-rules.md +443 -0
  16. package/.agents/skills/sherpa/rules/mentor-rules.md +109 -0
  17. package/.agents/skills/sherpa/rules/postmortem-rules.md +69 -0
  18. package/.agents/skills/sherpa/rules/presentation-rules.md +783 -0
  19. package/.agents/skills/sherpa/rules/red-team-rules.md +185 -0
  20. package/.agents/skills/sherpa/rules/research-rules.md +184 -0
  21. package/.agents/skills/sherpa/rules/score-optimization-rules.md +355 -0
  22. package/.agents/skills/sherpa/rules/scoring-rules.md +216 -0
  23. package/.agents/skills/sherpa/rules/submission-rules.md +41 -0
  24. package/.agents/skills/sherpa/rules/testing-security-rules.md +87 -0
  25. package/.agents/skills/sherpa/rules/ux-rules.md +89 -0
  26. package/.agents/skills/sherpa/src/config_manager.py +474 -0
  27. package/.agents/skills/sherpa/src/verification.py +458 -0
  28. package/.agents/skills/sherpa/templates/audit-finding.md +20 -0
  29. package/.agents/skills/sherpa/templates/claim-audit.md +15 -0
  30. package/.agents/skills/sherpa/templates/configuration/hackathon.json +21 -0
  31. package/.agents/skills/sherpa/templates/configuration/integrations.env.example +3 -0
  32. package/.agents/skills/sherpa/templates/configuration/project.env.example +12 -0
  33. package/.agents/skills/sherpa/templates/configuration/providers.env.example +4 -0
  34. package/.agents/skills/sherpa/templates/configuration/settings.json +22 -0
  35. package/.agents/skills/sherpa/templates/consistency-audit.md +17 -0
  36. package/.agents/skills/sherpa/templates/decision-log.md +18 -0
  37. package/.agents/skills/sherpa/templates/demo-checkpoint.md +42 -0
  38. package/.agents/skills/sherpa/templates/demo-evidence.md +32 -0
  39. package/.agents/skills/sherpa/templates/demo-finding.md +112 -0
  40. package/.agents/skills/sherpa/templates/demo-flow.md +52 -0
  41. package/.agents/skills/sherpa/templates/demo-plan.md +265 -0
  42. package/.agents/skills/sherpa/templates/demo-verification.md +57 -0
  43. package/.agents/skills/sherpa/templates/final-audit.md +387 -0
  44. package/.agents/skills/sherpa/templates/final-risk.md +17 -0
  45. package/.agents/skills/sherpa/templates/final-verification.md +57 -0
  46. package/.agents/skills/sherpa/templates/gap-analysis.md +113 -0
  47. package/.agents/skills/sherpa/templates/idea-comparison.md +129 -0
  48. package/.agents/skills/sherpa/templates/idea-evaluation.md +251 -0
  49. package/.agents/skills/sherpa/templates/implementation-plan.md +96 -0
  50. package/.agents/skills/sherpa/templates/implementation-task.md +57 -0
  51. package/.agents/skills/sherpa/templates/improvement-candidate.md +135 -0
  52. package/.agents/skills/sherpa/templates/improvement.md +18 -0
  53. package/.agents/skills/sherpa/templates/incident.md +20 -0
  54. package/.agents/skills/sherpa/templates/judge-criterion.md +41 -0
  55. package/.agents/skills/sherpa/templates/judge-question.md +41 -0
  56. package/.agents/skills/sherpa/templates/judge-session.md +125 -0
  57. package/.agents/skills/sherpa/templates/judge-simulation.md +264 -0
  58. package/.agents/skills/sherpa/templates/lesson.md +14 -0
  59. package/.agents/skills/sherpa/templates/postmortem.md +87 -0
  60. package/.agents/skills/sherpa/templates/presentation-evidence.md +33 -0
  61. package/.agents/skills/sherpa/templates/presentation-plan.md +349 -0
  62. package/.agents/skills/sherpa/templates/presentation-qna.md +29 -0
  63. package/.agents/skills/sherpa/templates/presentation-risk.md +42 -0
  64. package/.agents/skills/sherpa/templates/presentation-verification.md +57 -0
  65. package/.agents/skills/sherpa/templates/project-plan.md +242 -0
  66. package/.agents/skills/sherpa/templates/project-state.md +84 -0
  67. package/.agents/skills/sherpa/templates/red-team-finding.md +73 -0
  68. package/.agents/skills/sherpa/templates/red-team-review.md +105 -0
  69. package/.agents/skills/sherpa/templates/red-team-scenario.md +43 -0
  70. package/.agents/skills/sherpa/templates/red-team-verification.md +31 -0
  71. package/.agents/skills/sherpa/templates/repo-analysis.md +204 -0
  72. package/.agents/skills/sherpa/templates/requirement-audit.md +15 -0
  73. package/.agents/skills/sherpa/templates/research-comparison.md +124 -0
  74. package/.agents/skills/sherpa/templates/research-plan.md +93 -0
  75. package/.agents/skills/sherpa/templates/research-report.md +92 -0
  76. package/.agents/skills/sherpa/templates/research-source.md +77 -0
  77. package/.agents/skills/sherpa/templates/score-optimization-plan.md +197 -0
  78. package/.agents/skills/sherpa/templates/security-finding.md +45 -0
  79. package/.agents/skills/sherpa/templates/security-review.md +64 -0
  80. package/.agents/skills/sherpa/templates/slide-claim.md +47 -0
  81. package/.agents/skills/sherpa/templates/slide-plan.md +127 -0
  82. package/.agents/skills/sherpa/templates/submission-artifact.md +15 -0
  83. package/.agents/skills/sherpa/templates/submission-checklist.md +24 -0
  84. package/.agents/skills/sherpa/templates/submission-field.md +14 -0
  85. package/.agents/skills/sherpa/templates/submission-link.md +14 -0
  86. package/.agents/skills/sherpa/templates/submission-plan.md +31 -0
  87. package/.agents/skills/sherpa/templates/submission-readiness.md +18 -0
  88. package/.agents/skills/sherpa/templates/submission-requirement.md +12 -0
  89. package/.agents/skills/sherpa/templates/submission-risk.md +14 -0
  90. package/.agents/skills/sherpa/templates/submission-snapshot.md +20 -0
  91. package/.agents/skills/sherpa/templates/submission-verification.md +12 -0
  92. package/.agents/skills/sherpa/templates/test-plan.md +59 -0
  93. package/.agents/skills/sherpa/templates/test-result.md +46 -0
  94. package/.agents/skills/sherpa/templates/timeline.md +11 -0
  95. package/.agents/skills/sherpa/templates/ux-finding.md +56 -0
  96. package/.agents/skills/sherpa/templates/ux-flow.md +46 -0
  97. package/.agents/skills/sherpa/templates/ux-review.md +113 -0
  98. package/.agents/skills/sherpa/templates/ux-verification.md +32 -0
  99. package/.agents/skills/sherpa/workflows/configuration.md +23 -0
  100. package/.agents/skills/sherpa/workflows/demo-preparation.md +399 -0
  101. package/.agents/skills/sherpa/workflows/final-audit.md +713 -0
  102. package/.agents/skills/sherpa/workflows/idea-evaluation.md +239 -0
  103. package/.agents/skills/sherpa/workflows/idea-intelligence.md +69 -0
  104. package/.agents/skills/sherpa/workflows/implementation.md +42 -0
  105. package/.agents/skills/sherpa/workflows/init.md +102 -0
  106. package/.agents/skills/sherpa/workflows/judge-simulation.md +408 -0
  107. package/.agents/skills/sherpa/workflows/lifecycle.md +51 -0
  108. package/.agents/skills/sherpa/workflows/next.md +96 -0
  109. package/.agents/skills/sherpa/workflows/postmortem.md +76 -0
  110. package/.agents/skills/sherpa/workflows/presentation.md +522 -0
  111. package/.agents/skills/sherpa/workflows/project-planning.md +327 -0
  112. package/.agents/skills/sherpa/workflows/red-team.md +373 -0
  113. package/.agents/skills/sherpa/workflows/research.md +142 -0
  114. package/.agents/skills/sherpa/workflows/score-optimization.md +276 -0
  115. package/.agents/skills/sherpa/workflows/status.md +107 -0
  116. package/.agents/skills/sherpa/workflows/submission.md +46 -0
  117. package/.agents/skills/sherpa/workflows/testing-security.md +44 -0
  118. package/.agents/skills/sherpa/workflows/ux-review.md +59 -0
  119. package/.claude-plugin/marketplace.json +21 -0
  120. package/.claude-plugin/plugin.json +13 -0
  121. package/.codex-plugin/plugin.json +13 -0
  122. package/GEMINI.md +3 -0
  123. package/README.md +11 -7
  124. package/SKILL.md +161 -0
  125. package/distribution/cli/sherpa +1 -1
  126. package/gemini-extension.json +7 -0
  127. package/package.json +31 -3
  128. package/plugin.json +20 -0
  129. package/qwen-extension.json +6 -0
  130. package/skills/sherpa/SKILL.md +161 -0
  131. package/skills/sherpa/commands/README.md +43 -0
  132. package/skills/sherpa/commands/manifest.json +589 -0
  133. package/skills/sherpa/commands/sherpa-research.md +147 -0
  134. package/skills/sherpa/core/commands/router.py +171 -0
  135. package/skills/sherpa/core/configuration/manager.py +504 -0
  136. package/skills/sherpa/core/ideas/engine.py +564 -0
  137. package/skills/sherpa/docs/commands/README.md +96 -0
  138. package/skills/sherpa/docs/configuration/runtime-verification.md +64 -0
  139. package/skills/sherpa/rules/demo-preparation-rules.md +543 -0
  140. package/skills/sherpa/rules/engineering-rules.md +221 -0
  141. package/skills/sherpa/rules/final-audit-rules.md +824 -0
  142. package/skills/sherpa/rules/implementation-rules.md +127 -0
  143. package/skills/sherpa/rules/judge-rules.md +443 -0
  144. package/skills/sherpa/rules/mentor-rules.md +109 -0
  145. package/skills/sherpa/rules/postmortem-rules.md +69 -0
  146. package/skills/sherpa/rules/presentation-rules.md +783 -0
  147. package/skills/sherpa/rules/red-team-rules.md +185 -0
  148. package/skills/sherpa/rules/research-rules.md +184 -0
  149. package/skills/sherpa/rules/score-optimization-rules.md +355 -0
  150. package/skills/sherpa/rules/scoring-rules.md +216 -0
  151. package/skills/sherpa/rules/submission-rules.md +41 -0
  152. package/skills/sherpa/rules/testing-security-rules.md +87 -0
  153. package/skills/sherpa/rules/ux-rules.md +89 -0
  154. package/skills/sherpa/src/config_manager.py +474 -0
  155. package/skills/sherpa/src/verification.py +458 -0
  156. package/skills/sherpa/templates/audit-finding.md +20 -0
  157. package/skills/sherpa/templates/claim-audit.md +15 -0
  158. package/skills/sherpa/templates/configuration/hackathon.json +21 -0
  159. package/skills/sherpa/templates/configuration/integrations.env.example +3 -0
  160. package/skills/sherpa/templates/configuration/project.env.example +12 -0
  161. package/skills/sherpa/templates/configuration/providers.env.example +4 -0
  162. package/skills/sherpa/templates/configuration/settings.json +22 -0
  163. package/skills/sherpa/templates/consistency-audit.md +17 -0
  164. package/skills/sherpa/templates/decision-log.md +18 -0
  165. package/skills/sherpa/templates/demo-checkpoint.md +42 -0
  166. package/skills/sherpa/templates/demo-evidence.md +32 -0
  167. package/skills/sherpa/templates/demo-finding.md +112 -0
  168. package/skills/sherpa/templates/demo-flow.md +52 -0
  169. package/skills/sherpa/templates/demo-plan.md +265 -0
  170. package/skills/sherpa/templates/demo-verification.md +57 -0
  171. package/skills/sherpa/templates/final-audit.md +387 -0
  172. package/skills/sherpa/templates/final-risk.md +17 -0
  173. package/skills/sherpa/templates/final-verification.md +57 -0
  174. package/skills/sherpa/templates/gap-analysis.md +113 -0
  175. package/skills/sherpa/templates/idea-comparison.md +129 -0
  176. package/skills/sherpa/templates/idea-evaluation.md +251 -0
  177. package/skills/sherpa/templates/implementation-plan.md +96 -0
  178. package/skills/sherpa/templates/implementation-task.md +57 -0
  179. package/skills/sherpa/templates/improvement-candidate.md +135 -0
  180. package/skills/sherpa/templates/improvement.md +18 -0
  181. package/skills/sherpa/templates/incident.md +20 -0
  182. package/skills/sherpa/templates/judge-criterion.md +41 -0
  183. package/skills/sherpa/templates/judge-question.md +41 -0
  184. package/skills/sherpa/templates/judge-session.md +125 -0
  185. package/skills/sherpa/templates/judge-simulation.md +264 -0
  186. package/skills/sherpa/templates/lesson.md +14 -0
  187. package/skills/sherpa/templates/postmortem.md +87 -0
  188. package/skills/sherpa/templates/presentation-evidence.md +33 -0
  189. package/skills/sherpa/templates/presentation-plan.md +349 -0
  190. package/skills/sherpa/templates/presentation-qna.md +29 -0
  191. package/skills/sherpa/templates/presentation-risk.md +42 -0
  192. package/skills/sherpa/templates/presentation-verification.md +57 -0
  193. package/skills/sherpa/templates/project-plan.md +242 -0
  194. package/skills/sherpa/templates/project-state.md +84 -0
  195. package/skills/sherpa/templates/red-team-finding.md +73 -0
  196. package/skills/sherpa/templates/red-team-review.md +105 -0
  197. package/skills/sherpa/templates/red-team-scenario.md +43 -0
  198. package/skills/sherpa/templates/red-team-verification.md +31 -0
  199. package/skills/sherpa/templates/repo-analysis.md +204 -0
  200. package/skills/sherpa/templates/requirement-audit.md +15 -0
  201. package/skills/sherpa/templates/research-comparison.md +124 -0
  202. package/skills/sherpa/templates/research-plan.md +93 -0
  203. package/skills/sherpa/templates/research-report.md +92 -0
  204. package/skills/sherpa/templates/research-source.md +77 -0
  205. package/skills/sherpa/templates/score-optimization-plan.md +197 -0
  206. package/skills/sherpa/templates/security-finding.md +45 -0
  207. package/skills/sherpa/templates/security-review.md +64 -0
  208. package/skills/sherpa/templates/slide-claim.md +47 -0
  209. package/skills/sherpa/templates/slide-plan.md +127 -0
  210. package/skills/sherpa/templates/submission-artifact.md +15 -0
  211. package/skills/sherpa/templates/submission-checklist.md +24 -0
  212. package/skills/sherpa/templates/submission-field.md +14 -0
  213. package/skills/sherpa/templates/submission-link.md +14 -0
  214. package/skills/sherpa/templates/submission-plan.md +31 -0
  215. package/skills/sherpa/templates/submission-readiness.md +18 -0
  216. package/skills/sherpa/templates/submission-requirement.md +12 -0
  217. package/skills/sherpa/templates/submission-risk.md +14 -0
  218. package/skills/sherpa/templates/submission-snapshot.md +20 -0
  219. package/skills/sherpa/templates/submission-verification.md +12 -0
  220. package/skills/sherpa/templates/test-plan.md +59 -0
  221. package/skills/sherpa/templates/test-result.md +46 -0
  222. package/skills/sherpa/templates/timeline.md +11 -0
  223. package/skills/sherpa/templates/ux-finding.md +56 -0
  224. package/skills/sherpa/templates/ux-flow.md +46 -0
  225. package/skills/sherpa/templates/ux-review.md +113 -0
  226. package/skills/sherpa/templates/ux-verification.md +32 -0
  227. package/skills/sherpa/workflows/configuration.md +23 -0
  228. package/skills/sherpa/workflows/demo-preparation.md +399 -0
  229. package/skills/sherpa/workflows/final-audit.md +713 -0
  230. package/skills/sherpa/workflows/idea-evaluation.md +239 -0
  231. package/skills/sherpa/workflows/idea-intelligence.md +69 -0
  232. package/skills/sherpa/workflows/implementation.md +42 -0
  233. package/skills/sherpa/workflows/init.md +102 -0
  234. package/skills/sherpa/workflows/judge-simulation.md +408 -0
  235. package/skills/sherpa/workflows/lifecycle.md +51 -0
  236. package/skills/sherpa/workflows/next.md +96 -0
  237. package/skills/sherpa/workflows/postmortem.md +76 -0
  238. package/skills/sherpa/workflows/presentation.md +522 -0
  239. package/skills/sherpa/workflows/project-planning.md +327 -0
  240. package/skills/sherpa/workflows/red-team.md +373 -0
  241. package/skills/sherpa/workflows/research.md +142 -0
  242. package/skills/sherpa/workflows/score-optimization.md +276 -0
  243. package/skills/sherpa/workflows/status.md +107 -0
  244. package/skills/sherpa/workflows/submission.md +46 -0
  245. package/skills/sherpa/workflows/testing-security.md +44 -0
  246. package/skills/sherpa/workflows/ux-review.md +59 -0
@@ -0,0 +1,221 @@
1
+ # sherpa — Engineering Rules
2
+
3
+ Defines Phase 3 engineering analysis and planning rules. All rules enforce evidence discipline, human authority, and time-aware prioritization.
4
+
5
+ ---
6
+
7
+ ## 1. Evidence Classification
8
+
9
+ Every repository observation and claim must be classified:
10
+
11
+ | Type | Definition |
12
+ |------|------------|
13
+ | FACT | Directly observed from repository inspection or verified execution |
14
+ | INFERENCE | Logical conclusion drawn from observed facts |
15
+ | ASSUMPTION | Not yet verified; requires confirmation |
16
+ | UNKNOWN | No information available; not observed |
17
+
18
+ **Rules:**
19
+ - Never fabricate repository facts.
20
+ - Execution claims require execution evidence.
21
+ - Seeing a test file does NOT mean tests pass.
22
+ - Seeing package.json does NOT mean dependencies are installed.
23
+ - Seeing deployment configuration does NOT mean deployment works.
24
+ - Seeing an API route does NOT mean the API is operational.
25
+ - sherpa-generated artifacts are NOT independent evidence.
26
+ - Evidence must trace back to repository inspection, actual execution, external verification, or explicit human-provided information.
27
+ - Do not treat previous AI-generated recommendations as facts.
28
+
29
+ ---
30
+
31
+ ## 2. Time-Aware Engineering Strategy
32
+
33
+ Use the existing Phase 1 time strategy. Do not invent a deadline if it is unknown.
34
+
35
+ | Time Remaining | Focus |
36
+ |----------------|-------|
37
+ | > 24 hours | Core implementation + differentiation + quality |
38
+ | 12–24 hours | Finish MVP + one strong differentiator + testing |
39
+ | 6–12 hours | MVP completion + stability + UX polish |
40
+ | 2–6 hours | Freeze major features + fix critical issues + demo reliability |
41
+ | < 2 hours | NO NEW FEATURES, NO ARCHITECTURE REWORK, NO EXPERIMENTAL DEPENDENCIES. Focus on reliability, demo, submission |
42
+
43
+ If remaining time is UNKNOWN:
44
+ - Mark it UNKNOWN
45
+ - Produce a time-neutral plan
46
+ - Recommend establishing the deadline if necessary
47
+
48
+ ---
49
+
50
+ ## 3. MVP Requirements
51
+
52
+ Every project plan must explicitly define:
53
+
54
+ | Category | Definition |
55
+ |----------|------------|
56
+ | MUST HAVE | Features required for the core deliverable to function |
57
+ | SHOULD HAVE | Important features that add significant value |
58
+ | OPTIONAL | Nice-to-have features if time permits |
59
+ | EXCLUDED | Explicitly out of scope for this hackathon |
60
+
61
+ **Rule:** Aggressively protect the MVP from unnecessary scope. Time pressure must influence these decisions.
62
+
63
+ ---
64
+
65
+ ## 4. Architecture Freeze Rule
66
+
67
+ Once architecture is explicitly approved, treat it as frozen.
68
+
69
+ It may only be reopened if a material blocker exists.
70
+
71
+ A reopening recommendation must contain:
72
+ - blocker
73
+ - evidence
74
+ - impact
75
+ - time cost
76
+ - alternative
77
+ - reason existing architecture is no longer viable
78
+
79
+ Human approval is required before changing the approved architecture.
80
+
81
+ Prevent endless architecture churn.
82
+
83
+ ---
84
+
85
+ ## 5. Architecture Approval Gate
86
+
87
+ Architecture approval is human-controlled.
88
+
89
+ The AI may recommend approval but MUST NOT change:
90
+ - Architecture: DRAFT → Architecture: APPROVED
91
+
92
+ without explicit human confirmation.
93
+
94
+ The project-plan artifact must distinguish:
95
+ - CURRENT STATE (what exists now)
96
+ - PROPOSED TARGET STATE (what is recommended)
97
+
98
+ Do not describe proposed architecture as if it already exists. If migration is required, explicitly identify: MIGRATION REQUIRED.
99
+
100
+ ---
101
+
102
+ ## 6. Project State Rules
103
+
104
+ Keep `.sherpa/project-state.md` compact.
105
+
106
+ Add only compact planning status fields:
107
+
108
+ | Field | Values |
109
+ |-------|--------|
110
+ | Planning status | NOT_STARTED | IN_PROGRESS | COMPLETE |
111
+ | Repository analysis | UNKNOWN | COMPLETE |
112
+ | Architecture | UNKNOWN | DRAFT | APPROVED |
113
+ | MVP | UNKNOWN | DRAFT | APPROVED |
114
+ | Implementation plan | UNKNOWN | READY |
115
+ | Engineering risk | UNKNOWN | LOW | MEDIUM | HIGH |
116
+
117
+ Do NOT put detailed repository analysis or architecture inside project-state.md. Detailed artifacts go to `.sherpa/evidence/`.
118
+
119
+ ---
120
+
121
+ ## 7. Selected Idea Gate
122
+
123
+ Before normal Phase 3 execution:
124
+
125
+ 1. Read `.sherpa/project-state.md`.
126
+ 2. If `selected idea = UNKNOWN`:
127
+ - STOP normal planning.
128
+ - Do not invent a selected idea.
129
+ - Return: selected idea is unknown, Phase 3 cannot produce a normal project plan yet, exactly one primary next action: confirm the selected idea.
130
+ 3. If `selected idea` is known, continue.
131
+
132
+ Phase 3 consumes the selected idea and Phase 2 artifacts. It does not silently reopen idea selection.
133
+
134
+ If Phase 3 discovers the selected idea is technically infeasible:
135
+ - DO NOT automatically select another idea.
136
+ - Record the engineering concern, explain the evidence, recommend scope reduction or architecture revision.
137
+ - If reconsideration is necessary, route the human back to Phase 2.
138
+ - Human authority remains absolute.
139
+
140
+ ---
141
+
142
+ ## 8. Repository Analysis Scope
143
+
144
+ Analysis must be targeted and structured. Prioritize inspection in this order:
145
+
146
+ 1. Project metadata
147
+ 2. Dependency manifests
148
+ 3. Top-level project structure
149
+ 4. Application entry points
150
+ 5. Frontend
151
+ 6. Backend
152
+ 7. Database/data layer
153
+ 8. API layer
154
+ 9. AI/ML layer
155
+ 10. Tests
156
+ 11. Deployment/configuration
157
+ 12. Documentation
158
+ 13. Targeted deeper inspection where necessary
159
+
160
+ The analysis must declare its scope. Do not claim exhaustive repository analysis unless the repository was actually analyzed exhaustively.
161
+
162
+ Repository analysis artifacts go to `.sherpa/evidence/`.
163
+
164
+ ---
165
+
166
+ ## 9. Implementation-Ready Definition
167
+
168
+ The plan can only be marked `Implementation plan: READY` when ALL of the following are true:
169
+
170
+ - selected idea is known
171
+ - repository baseline analyzed sufficiently
172
+ - current architecture identified
173
+ - proposed architecture documented
174
+ - architecture explicitly approved
175
+ - MVP defined
176
+ - exclusions defined
177
+ - implementation workstreams defined
178
+ - dependencies identified
179
+ - critical path identified
180
+ - technical risks documented
181
+ - testing priorities documented
182
+ - security priorities documented
183
+ - time strategy defined or explicitly marked UNKNOWN
184
+ - unresolved unknowns documented
185
+ - exactly one primary next action exists
186
+
187
+ Otherwise keep the plan in DRAFT/IN_PROGRESS state.
188
+
189
+ ---
190
+
191
+ ## 10. Failure Cases
192
+
193
+ | Case | Behavior |
194
+ |------|----------|
195
+ | No selected idea | Stop and request confirmation |
196
+ | Empty repository | Do not fabricate architecture. Report insufficient evidence. |
197
+ | Broken repository | Document observed problems, impact, blocking status, recommended remediation |
198
+ | Missing tests | Report test coverage/status as UNKNOWN or NOT PRESENT |
199
+ | Missing environment variables | Do not invent values |
200
+ | Unknown deadline | Do not assume one |
201
+ | Architecture rejected by human | Capture rejection/reason, return architecture to DRAFT |
202
+ | Approved architecture blocked | Require material blocker + human approval before reopening |
203
+ | Insufficient repository evidence | Lower planning confidence, mark unknowns explicitly |
204
+
205
+ Phase 3 MUST NOT:
206
+ - write application code
207
+ - modify application source files
208
+ - modify frontend/backend implementation
209
+ - install dependencies
210
+ - deploy the application
211
+ - automatically select an idea
212
+ - automatically change the selected idea
213
+ - automatically approve architecture
214
+ - perform final judge scoring
215
+ - perform final presentation generation
216
+ - claim tests passed without execution evidence
217
+ - claim deployment works without verification evidence
218
+ - claim security is complete without evidence
219
+ - silently override Phase 2 decisions
220
+
221
+ If a Phase 3 recommendation requires changing the selected idea, route the issue back to the human / Phase 2. Never silently switch ideas.