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.
- package/.agents/plugins/marketplace.json +11 -0
- package/.agents/skills/sherpa/SKILL.md +161 -0
- package/.agents/skills/sherpa/commands/README.md +43 -0
- package/.agents/skills/sherpa/commands/manifest.json +589 -0
- package/.agents/skills/sherpa/commands/sherpa-research.md +147 -0
- package/.agents/skills/sherpa/core/commands/router.py +171 -0
- package/.agents/skills/sherpa/core/configuration/manager.py +504 -0
- package/.agents/skills/sherpa/core/ideas/engine.py +564 -0
- package/.agents/skills/sherpa/docs/commands/README.md +96 -0
- package/.agents/skills/sherpa/docs/configuration/runtime-verification.md +64 -0
- package/.agents/skills/sherpa/rules/demo-preparation-rules.md +543 -0
- package/.agents/skills/sherpa/rules/engineering-rules.md +221 -0
- package/.agents/skills/sherpa/rules/final-audit-rules.md +824 -0
- package/.agents/skills/sherpa/rules/implementation-rules.md +127 -0
- package/.agents/skills/sherpa/rules/judge-rules.md +443 -0
- package/.agents/skills/sherpa/rules/mentor-rules.md +109 -0
- package/.agents/skills/sherpa/rules/postmortem-rules.md +69 -0
- package/.agents/skills/sherpa/rules/presentation-rules.md +783 -0
- package/.agents/skills/sherpa/rules/red-team-rules.md +185 -0
- package/.agents/skills/sherpa/rules/research-rules.md +184 -0
- package/.agents/skills/sherpa/rules/score-optimization-rules.md +355 -0
- package/.agents/skills/sherpa/rules/scoring-rules.md +216 -0
- package/.agents/skills/sherpa/rules/submission-rules.md +41 -0
- package/.agents/skills/sherpa/rules/testing-security-rules.md +87 -0
- package/.agents/skills/sherpa/rules/ux-rules.md +89 -0
- package/.agents/skills/sherpa/src/config_manager.py +474 -0
- package/.agents/skills/sherpa/src/verification.py +458 -0
- package/.agents/skills/sherpa/templates/audit-finding.md +20 -0
- package/.agents/skills/sherpa/templates/claim-audit.md +15 -0
- package/.agents/skills/sherpa/templates/configuration/hackathon.json +21 -0
- package/.agents/skills/sherpa/templates/configuration/integrations.env.example +3 -0
- package/.agents/skills/sherpa/templates/configuration/project.env.example +12 -0
- package/.agents/skills/sherpa/templates/configuration/providers.env.example +4 -0
- package/.agents/skills/sherpa/templates/configuration/settings.json +22 -0
- package/.agents/skills/sherpa/templates/consistency-audit.md +17 -0
- package/.agents/skills/sherpa/templates/decision-log.md +18 -0
- package/.agents/skills/sherpa/templates/demo-checkpoint.md +42 -0
- package/.agents/skills/sherpa/templates/demo-evidence.md +32 -0
- package/.agents/skills/sherpa/templates/demo-finding.md +112 -0
- package/.agents/skills/sherpa/templates/demo-flow.md +52 -0
- package/.agents/skills/sherpa/templates/demo-plan.md +265 -0
- package/.agents/skills/sherpa/templates/demo-verification.md +57 -0
- package/.agents/skills/sherpa/templates/final-audit.md +387 -0
- package/.agents/skills/sherpa/templates/final-risk.md +17 -0
- package/.agents/skills/sherpa/templates/final-verification.md +57 -0
- package/.agents/skills/sherpa/templates/gap-analysis.md +113 -0
- package/.agents/skills/sherpa/templates/idea-comparison.md +129 -0
- package/.agents/skills/sherpa/templates/idea-evaluation.md +251 -0
- package/.agents/skills/sherpa/templates/implementation-plan.md +96 -0
- package/.agents/skills/sherpa/templates/implementation-task.md +57 -0
- package/.agents/skills/sherpa/templates/improvement-candidate.md +135 -0
- package/.agents/skills/sherpa/templates/improvement.md +18 -0
- package/.agents/skills/sherpa/templates/incident.md +20 -0
- package/.agents/skills/sherpa/templates/judge-criterion.md +41 -0
- package/.agents/skills/sherpa/templates/judge-question.md +41 -0
- package/.agents/skills/sherpa/templates/judge-session.md +125 -0
- package/.agents/skills/sherpa/templates/judge-simulation.md +264 -0
- package/.agents/skills/sherpa/templates/lesson.md +14 -0
- package/.agents/skills/sherpa/templates/postmortem.md +87 -0
- package/.agents/skills/sherpa/templates/presentation-evidence.md +33 -0
- package/.agents/skills/sherpa/templates/presentation-plan.md +349 -0
- package/.agents/skills/sherpa/templates/presentation-qna.md +29 -0
- package/.agents/skills/sherpa/templates/presentation-risk.md +42 -0
- package/.agents/skills/sherpa/templates/presentation-verification.md +57 -0
- package/.agents/skills/sherpa/templates/project-plan.md +242 -0
- package/.agents/skills/sherpa/templates/project-state.md +84 -0
- package/.agents/skills/sherpa/templates/red-team-finding.md +73 -0
- package/.agents/skills/sherpa/templates/red-team-review.md +105 -0
- package/.agents/skills/sherpa/templates/red-team-scenario.md +43 -0
- package/.agents/skills/sherpa/templates/red-team-verification.md +31 -0
- package/.agents/skills/sherpa/templates/repo-analysis.md +204 -0
- package/.agents/skills/sherpa/templates/requirement-audit.md +15 -0
- package/.agents/skills/sherpa/templates/research-comparison.md +124 -0
- package/.agents/skills/sherpa/templates/research-plan.md +93 -0
- package/.agents/skills/sherpa/templates/research-report.md +92 -0
- package/.agents/skills/sherpa/templates/research-source.md +77 -0
- package/.agents/skills/sherpa/templates/score-optimization-plan.md +197 -0
- package/.agents/skills/sherpa/templates/security-finding.md +45 -0
- package/.agents/skills/sherpa/templates/security-review.md +64 -0
- package/.agents/skills/sherpa/templates/slide-claim.md +47 -0
- package/.agents/skills/sherpa/templates/slide-plan.md +127 -0
- package/.agents/skills/sherpa/templates/submission-artifact.md +15 -0
- package/.agents/skills/sherpa/templates/submission-checklist.md +24 -0
- package/.agents/skills/sherpa/templates/submission-field.md +14 -0
- package/.agents/skills/sherpa/templates/submission-link.md +14 -0
- package/.agents/skills/sherpa/templates/submission-plan.md +31 -0
- package/.agents/skills/sherpa/templates/submission-readiness.md +18 -0
- package/.agents/skills/sherpa/templates/submission-requirement.md +12 -0
- package/.agents/skills/sherpa/templates/submission-risk.md +14 -0
- package/.agents/skills/sherpa/templates/submission-snapshot.md +20 -0
- package/.agents/skills/sherpa/templates/submission-verification.md +12 -0
- package/.agents/skills/sherpa/templates/test-plan.md +59 -0
- package/.agents/skills/sherpa/templates/test-result.md +46 -0
- package/.agents/skills/sherpa/templates/timeline.md +11 -0
- package/.agents/skills/sherpa/templates/ux-finding.md +56 -0
- package/.agents/skills/sherpa/templates/ux-flow.md +46 -0
- package/.agents/skills/sherpa/templates/ux-review.md +113 -0
- package/.agents/skills/sherpa/templates/ux-verification.md +32 -0
- package/.agents/skills/sherpa/workflows/configuration.md +23 -0
- package/.agents/skills/sherpa/workflows/demo-preparation.md +399 -0
- package/.agents/skills/sherpa/workflows/final-audit.md +713 -0
- package/.agents/skills/sherpa/workflows/idea-evaluation.md +239 -0
- package/.agents/skills/sherpa/workflows/idea-intelligence.md +69 -0
- package/.agents/skills/sherpa/workflows/implementation.md +42 -0
- package/.agents/skills/sherpa/workflows/init.md +102 -0
- package/.agents/skills/sherpa/workflows/judge-simulation.md +408 -0
- package/.agents/skills/sherpa/workflows/lifecycle.md +51 -0
- package/.agents/skills/sherpa/workflows/next.md +96 -0
- package/.agents/skills/sherpa/workflows/postmortem.md +76 -0
- package/.agents/skills/sherpa/workflows/presentation.md +522 -0
- package/.agents/skills/sherpa/workflows/project-planning.md +327 -0
- package/.agents/skills/sherpa/workflows/red-team.md +373 -0
- package/.agents/skills/sherpa/workflows/research.md +142 -0
- package/.agents/skills/sherpa/workflows/score-optimization.md +276 -0
- package/.agents/skills/sherpa/workflows/status.md +107 -0
- package/.agents/skills/sherpa/workflows/submission.md +46 -0
- package/.agents/skills/sherpa/workflows/testing-security.md +44 -0
- package/.agents/skills/sherpa/workflows/ux-review.md +59 -0
- package/.claude-plugin/marketplace.json +21 -0
- package/.claude-plugin/plugin.json +13 -0
- package/.codex-plugin/plugin.json +13 -0
- package/GEMINI.md +3 -0
- package/README.md +11 -7
- package/SKILL.md +161 -0
- package/distribution/cli/sherpa +1 -1
- package/gemini-extension.json +7 -0
- package/package.json +31 -3
- package/plugin.json +20 -0
- package/qwen-extension.json +6 -0
- package/skills/sherpa/SKILL.md +161 -0
- package/skills/sherpa/commands/README.md +43 -0
- package/skills/sherpa/commands/manifest.json +589 -0
- package/skills/sherpa/commands/sherpa-research.md +147 -0
- package/skills/sherpa/core/commands/router.py +171 -0
- package/skills/sherpa/core/configuration/manager.py +504 -0
- package/skills/sherpa/core/ideas/engine.py +564 -0
- package/skills/sherpa/docs/commands/README.md +96 -0
- package/skills/sherpa/docs/configuration/runtime-verification.md +64 -0
- package/skills/sherpa/rules/demo-preparation-rules.md +543 -0
- package/skills/sherpa/rules/engineering-rules.md +221 -0
- package/skills/sherpa/rules/final-audit-rules.md +824 -0
- package/skills/sherpa/rules/implementation-rules.md +127 -0
- package/skills/sherpa/rules/judge-rules.md +443 -0
- package/skills/sherpa/rules/mentor-rules.md +109 -0
- package/skills/sherpa/rules/postmortem-rules.md +69 -0
- package/skills/sherpa/rules/presentation-rules.md +783 -0
- package/skills/sherpa/rules/red-team-rules.md +185 -0
- package/skills/sherpa/rules/research-rules.md +184 -0
- package/skills/sherpa/rules/score-optimization-rules.md +355 -0
- package/skills/sherpa/rules/scoring-rules.md +216 -0
- package/skills/sherpa/rules/submission-rules.md +41 -0
- package/skills/sherpa/rules/testing-security-rules.md +87 -0
- package/skills/sherpa/rules/ux-rules.md +89 -0
- package/skills/sherpa/src/config_manager.py +474 -0
- package/skills/sherpa/src/verification.py +458 -0
- package/skills/sherpa/templates/audit-finding.md +20 -0
- package/skills/sherpa/templates/claim-audit.md +15 -0
- package/skills/sherpa/templates/configuration/hackathon.json +21 -0
- package/skills/sherpa/templates/configuration/integrations.env.example +3 -0
- package/skills/sherpa/templates/configuration/project.env.example +12 -0
- package/skills/sherpa/templates/configuration/providers.env.example +4 -0
- package/skills/sherpa/templates/configuration/settings.json +22 -0
- package/skills/sherpa/templates/consistency-audit.md +17 -0
- package/skills/sherpa/templates/decision-log.md +18 -0
- package/skills/sherpa/templates/demo-checkpoint.md +42 -0
- package/skills/sherpa/templates/demo-evidence.md +32 -0
- package/skills/sherpa/templates/demo-finding.md +112 -0
- package/skills/sherpa/templates/demo-flow.md +52 -0
- package/skills/sherpa/templates/demo-plan.md +265 -0
- package/skills/sherpa/templates/demo-verification.md +57 -0
- package/skills/sherpa/templates/final-audit.md +387 -0
- package/skills/sherpa/templates/final-risk.md +17 -0
- package/skills/sherpa/templates/final-verification.md +57 -0
- package/skills/sherpa/templates/gap-analysis.md +113 -0
- package/skills/sherpa/templates/idea-comparison.md +129 -0
- package/skills/sherpa/templates/idea-evaluation.md +251 -0
- package/skills/sherpa/templates/implementation-plan.md +96 -0
- package/skills/sherpa/templates/implementation-task.md +57 -0
- package/skills/sherpa/templates/improvement-candidate.md +135 -0
- package/skills/sherpa/templates/improvement.md +18 -0
- package/skills/sherpa/templates/incident.md +20 -0
- package/skills/sherpa/templates/judge-criterion.md +41 -0
- package/skills/sherpa/templates/judge-question.md +41 -0
- package/skills/sherpa/templates/judge-session.md +125 -0
- package/skills/sherpa/templates/judge-simulation.md +264 -0
- package/skills/sherpa/templates/lesson.md +14 -0
- package/skills/sherpa/templates/postmortem.md +87 -0
- package/skills/sherpa/templates/presentation-evidence.md +33 -0
- package/skills/sherpa/templates/presentation-plan.md +349 -0
- package/skills/sherpa/templates/presentation-qna.md +29 -0
- package/skills/sherpa/templates/presentation-risk.md +42 -0
- package/skills/sherpa/templates/presentation-verification.md +57 -0
- package/skills/sherpa/templates/project-plan.md +242 -0
- package/skills/sherpa/templates/project-state.md +84 -0
- package/skills/sherpa/templates/red-team-finding.md +73 -0
- package/skills/sherpa/templates/red-team-review.md +105 -0
- package/skills/sherpa/templates/red-team-scenario.md +43 -0
- package/skills/sherpa/templates/red-team-verification.md +31 -0
- package/skills/sherpa/templates/repo-analysis.md +204 -0
- package/skills/sherpa/templates/requirement-audit.md +15 -0
- package/skills/sherpa/templates/research-comparison.md +124 -0
- package/skills/sherpa/templates/research-plan.md +93 -0
- package/skills/sherpa/templates/research-report.md +92 -0
- package/skills/sherpa/templates/research-source.md +77 -0
- package/skills/sherpa/templates/score-optimization-plan.md +197 -0
- package/skills/sherpa/templates/security-finding.md +45 -0
- package/skills/sherpa/templates/security-review.md +64 -0
- package/skills/sherpa/templates/slide-claim.md +47 -0
- package/skills/sherpa/templates/slide-plan.md +127 -0
- package/skills/sherpa/templates/submission-artifact.md +15 -0
- package/skills/sherpa/templates/submission-checklist.md +24 -0
- package/skills/sherpa/templates/submission-field.md +14 -0
- package/skills/sherpa/templates/submission-link.md +14 -0
- package/skills/sherpa/templates/submission-plan.md +31 -0
- package/skills/sherpa/templates/submission-readiness.md +18 -0
- package/skills/sherpa/templates/submission-requirement.md +12 -0
- package/skills/sherpa/templates/submission-risk.md +14 -0
- package/skills/sherpa/templates/submission-snapshot.md +20 -0
- package/skills/sherpa/templates/submission-verification.md +12 -0
- package/skills/sherpa/templates/test-plan.md +59 -0
- package/skills/sherpa/templates/test-result.md +46 -0
- package/skills/sherpa/templates/timeline.md +11 -0
- package/skills/sherpa/templates/ux-finding.md +56 -0
- package/skills/sherpa/templates/ux-flow.md +46 -0
- package/skills/sherpa/templates/ux-review.md +113 -0
- package/skills/sherpa/templates/ux-verification.md +32 -0
- package/skills/sherpa/workflows/configuration.md +23 -0
- package/skills/sherpa/workflows/demo-preparation.md +399 -0
- package/skills/sherpa/workflows/final-audit.md +713 -0
- package/skills/sherpa/workflows/idea-evaluation.md +239 -0
- package/skills/sherpa/workflows/idea-intelligence.md +69 -0
- package/skills/sherpa/workflows/implementation.md +42 -0
- package/skills/sherpa/workflows/init.md +102 -0
- package/skills/sherpa/workflows/judge-simulation.md +408 -0
- package/skills/sherpa/workflows/lifecycle.md +51 -0
- package/skills/sherpa/workflows/next.md +96 -0
- package/skills/sherpa/workflows/postmortem.md +76 -0
- package/skills/sherpa/workflows/presentation.md +522 -0
- package/skills/sherpa/workflows/project-planning.md +327 -0
- package/skills/sherpa/workflows/red-team.md +373 -0
- package/skills/sherpa/workflows/research.md +142 -0
- package/skills/sherpa/workflows/score-optimization.md +276 -0
- package/skills/sherpa/workflows/status.md +107 -0
- package/skills/sherpa/workflows/submission.md +46 -0
- package/skills/sherpa/workflows/testing-security.md +44 -0
- 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.
|