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,327 @@
|
|
|
1
|
+
# sherpa — Project Planning Workflow
|
|
2
|
+
|
|
3
|
+
**Operation:** PROJECT-PLAN
|
|
4
|
+
**Purpose:** Turn the selected hackathon idea into an implementation-ready engineering plan. Phase 3 is an engineering analysis and planning engine, NOT a coding engine.
|
|
5
|
+
|
|
6
|
+
**Pipeline:**
|
|
7
|
+
INPUT → Read project state → Verify selected idea → Read Phase 2 artifacts → Inspect repository → Create repository analysis → Identify engineering gaps → Design architecture → Define MVP → Create implementation plan → Analyze risks → Apply time-aware prioritization → Write project plan → Update permitted project state → Return exactly ONE primary next action
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
Use PROJECT-PLAN when:
|
|
14
|
+
- A hackathon idea has been selected (confirmed in `.sherpa/project-state.md`)
|
|
15
|
+
- You need an implementation-ready project plan
|
|
16
|
+
- You want to analyze the repository, define architecture, scope the MVP, and plan implementation work
|
|
17
|
+
|
|
18
|
+
**Prerequisite:** `.sherpa/project-state.md` must exist with `selected idea` known.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Pipeline Stages
|
|
23
|
+
|
|
24
|
+
### Stage 1: Input
|
|
25
|
+
|
|
26
|
+
**Accept from user:**
|
|
27
|
+
- Confirmation to proceed with project planning for the selected idea
|
|
28
|
+
- Any additional context about team skills, constraints, or preferences
|
|
29
|
+
|
|
30
|
+
**Read from `.sherpa/project-state.md`:**
|
|
31
|
+
- Hackathon name, deadline, time remaining
|
|
32
|
+
- Judging criteria and weights
|
|
33
|
+
- Problem statement, target users
|
|
34
|
+
- Selected idea (must be known)
|
|
35
|
+
- Planning status, architecture status, MVP status
|
|
36
|
+
|
|
37
|
+
### Stage 2: Verify Selected Idea (Selected Idea Gate)
|
|
38
|
+
|
|
39
|
+
**Check:** Is `selected idea` known in `.sherpa/project-state.md`?
|
|
40
|
+
|
|
41
|
+
**If UNKNOWN:**
|
|
42
|
+
- STOP normal planning.
|
|
43
|
+
- Do not invent a selected idea.
|
|
44
|
+
- Return:
|
|
45
|
+
- Selected idea is unknown
|
|
46
|
+
- Phase 3 cannot produce a normal project plan yet
|
|
47
|
+
- Exactly one primary next action: confirm the selected idea (via human confirmation of Phase 2 recommendation)
|
|
48
|
+
|
|
49
|
+
**If known:**
|
|
50
|
+
- Continue to Stage 3.
|
|
51
|
+
- Record the selected idea name in the project plan.
|
|
52
|
+
|
|
53
|
+
**Rule:** Phase 3 consumes the Phase 2 result. It does not silently reopen idea selection. If the selected idea is technically infeasible, record the engineering concern, explain the evidence, recommend scope reduction or reconsideration, and route the human back to Phase 2. Never silently switch ideas.
|
|
54
|
+
|
|
55
|
+
### Stage 3: Read Phase 2 Artifacts
|
|
56
|
+
|
|
57
|
+
**Read from `.sherpa/decisions.md`:**
|
|
58
|
+
- Selected idea name
|
|
59
|
+
- Evaluation scores and reasoning
|
|
60
|
+
- Red-team outcomes
|
|
61
|
+
- Recommended next action from Phase 2
|
|
62
|
+
|
|
63
|
+
**Read from `.sherpa/evaluations/<idea-name>.md`:**
|
|
64
|
+
- Full per-idea evaluation
|
|
65
|
+
- Category scores
|
|
66
|
+
- Feasibility gate result
|
|
67
|
+
- Minimum viable version scope
|
|
68
|
+
|
|
69
|
+
**Read from `.sherpa/evidence/`:**
|
|
70
|
+
- Any existing evidence files
|
|
71
|
+
|
|
72
|
+
**Rule:** Do not treat Phase 2 AI-generated recommendations as independent facts. Use them as input, but verify against repository evidence where applicable.
|
|
73
|
+
|
|
74
|
+
### Stage 4: Inspect Repository
|
|
75
|
+
|
|
76
|
+
**Analysis scope:** TARGETED (declare explicitly)
|
|
77
|
+
|
|
78
|
+
**Inspect in priority order:**
|
|
79
|
+
1. Project metadata (package.json, requirements.txt, pyproject.toml, README.md)
|
|
80
|
+
2. Dependency manifests
|
|
81
|
+
3. Top-level project structure
|
|
82
|
+
4. Application entry points
|
|
83
|
+
5. Frontend
|
|
84
|
+
6. Backend
|
|
85
|
+
7. Database/data layer
|
|
86
|
+
8. API layer
|
|
87
|
+
9. AI/ML layer
|
|
88
|
+
10. Tests
|
|
89
|
+
11. Deployment/configuration
|
|
90
|
+
12. Documentation
|
|
91
|
+
13. Targeted deeper inspection where necessary
|
|
92
|
+
|
|
93
|
+
**Evidence classification (for every observation):**
|
|
94
|
+
- FACT: Directly observed
|
|
95
|
+
- INFERENCE: Logical conclusion from facts
|
|
96
|
+
- ASSUMPTION: Not yet verified
|
|
97
|
+
- UNKNOWN: No information available
|
|
98
|
+
|
|
99
|
+
**Rules:**
|
|
100
|
+
- Never fabricate repository facts.
|
|
101
|
+
- Execution claims require execution evidence.
|
|
102
|
+
- Seeing a test file does NOT mean tests pass.
|
|
103
|
+
- Seeing package.json does NOT mean dependencies are installed.
|
|
104
|
+
- Seeing deployment configuration does NOT mean deployment works.
|
|
105
|
+
- Seeing an API route does NOT mean the API is operational.
|
|
106
|
+
- sherpa-generated artifacts are NOT independent evidence.
|
|
107
|
+
|
|
108
|
+
**Save repository analysis to:** `.sherpa/evidence/repo-analysis-<timestamp>.md`
|
|
109
|
+
|
|
110
|
+
Use `templates/repo-analysis.md` as the record format.
|
|
111
|
+
|
|
112
|
+
**Analysis scope declaration:** This analysis is TARGETED. <explanation of what was and was not inspected>.
|
|
113
|
+
|
|
114
|
+
### Stage 5: Identify Engineering Gaps
|
|
115
|
+
|
|
116
|
+
Compare repository state against the selected idea requirements:
|
|
117
|
+
|
|
118
|
+
| Gap | Description | Impact | Evidence Type | Source |
|
|
119
|
+
|-----|-------------|--------|---------------|--------|
|
|
120
|
+
| | | | | |
|
|
121
|
+
|
|
122
|
+
**Gaps to check:**
|
|
123
|
+
- Missing entry points
|
|
124
|
+
- Missing frontend/backend components
|
|
125
|
+
- Missing database/schema
|
|
126
|
+
- Missing API routes
|
|
127
|
+
- Missing AI/ML pipeline
|
|
128
|
+
- Missing tests
|
|
129
|
+
- Missing deployment configuration
|
|
130
|
+
- Missing environment variables
|
|
131
|
+
- Incomplete areas
|
|
132
|
+
- TODOs/placeholders
|
|
133
|
+
- Security observations
|
|
134
|
+
- Deployment risks
|
|
135
|
+
|
|
136
|
+
### Stage 6: Design Architecture
|
|
137
|
+
|
|
138
|
+
**Current architecture:** Document what exists in the repository (or UNKNOWN if none).
|
|
139
|
+
|
|
140
|
+
**Proposed architecture:** Document what should exist for the selected idea.
|
|
141
|
+
|
|
142
|
+
**Rules:**
|
|
143
|
+
- Always distinguish CURRENT STATE from PROPOSED TARGET STATE.
|
|
144
|
+
- Do not describe proposed architecture as if it already exists.
|
|
145
|
+
- If migration is required, explicitly identify: MIGRATION REQUIRED.
|
|
146
|
+
- Document architecture decision rationale.
|
|
147
|
+
|
|
148
|
+
**Architecture status:** DRAFT (not APPROVED until human confirmation)
|
|
149
|
+
|
|
150
|
+
### Stage 7: Define MVP
|
|
151
|
+
|
|
152
|
+
Define MVP with explicit categories:
|
|
153
|
+
|
|
154
|
+
| Category | Features |
|
|
155
|
+
|----------|----------|
|
|
156
|
+
| MUST HAVE | |
|
|
157
|
+
| SHOULD HAVE | |
|
|
158
|
+
| OPTIONAL | |
|
|
159
|
+
| EXCLUDED | |
|
|
160
|
+
|
|
161
|
+
**Rules:**
|
|
162
|
+
- Aggressively protect the MVP from unnecessary scope.
|
|
163
|
+
- Time pressure must influence these decisions.
|
|
164
|
+
- Time-aware strategy based on remaining time:
|
|
165
|
+
- >24h: Core implementation + differentiation + quality
|
|
166
|
+
- 12–24h: Finish MVP + one strong differentiator + testing
|
|
167
|
+
- 6–12h: MVP completion + stability + UX polish
|
|
168
|
+
- 2–6h: Freeze major features + fix critical issues + demo reliability
|
|
169
|
+
- <2h: NO NEW FEATURES, NO ARCHITECTURE REWORK, NO EXPERIMENTAL DEPENDENCIES. Focus on reliability, demo, submission.
|
|
170
|
+
|
|
171
|
+
If time remaining is UNKNOWN: mark UNKNOWN, produce time-neutral plan, recommend establishing deadline.
|
|
172
|
+
|
|
173
|
+
### Stage 8: Create Implementation Plan
|
|
174
|
+
|
|
175
|
+
Define:
|
|
176
|
+
|
|
177
|
+
| Element | Content |
|
|
178
|
+
|---------|---------|
|
|
179
|
+
| Implementation workstreams | List with descriptions, dependencies, effort, priority |
|
|
180
|
+
| Dependencies | List with install status |
|
|
181
|
+
| Critical path | Ordered steps with time estimates |
|
|
182
|
+
| Technical risks | List with likelihood, impact, mitigation |
|
|
183
|
+
| Security priorities | List with evidence type |
|
|
184
|
+
| Testing priorities | List with execution evidence status |
|
|
185
|
+
| UX priorities | List |
|
|
186
|
+
|
|
187
|
+
**Rules:**
|
|
188
|
+
- Do not claim tests passed without execution evidence.
|
|
189
|
+
- Do not claim deployment works without verification evidence.
|
|
190
|
+
- Do not claim security is complete without evidence.
|
|
191
|
+
- Do not invent environment variable values.
|
|
192
|
+
|
|
193
|
+
### Stage 9: Analyze Risks
|
|
194
|
+
|
|
195
|
+
Document:
|
|
196
|
+
|
|
197
|
+
| Risk | Likelihood | Impact | Mitigation | Evidence Type |
|
|
198
|
+
|------|------------|--------|------------|---------------|
|
|
199
|
+
| | | | | |
|
|
200
|
+
|
|
201
|
+
Include:
|
|
202
|
+
- Technical risks
|
|
203
|
+
- Security risks
|
|
204
|
+
- Deployment risks
|
|
205
|
+
- Time risks
|
|
206
|
+
|
|
207
|
+
### Stage 10: Apply Time-Aware Prioritization
|
|
208
|
+
|
|
209
|
+
Based on remaining time, prioritize workstreams:
|
|
210
|
+
|
|
211
|
+
| Time remaining | Priority focus |
|
|
212
|
+
|----------------|---------------|
|
|
213
|
+
| > 24 hours | Core implementation + differentiation + quality |
|
|
214
|
+
| 12–24 hours | Finish MVP + one strong differentiator + testing |
|
|
215
|
+
| 6–12 hours | MVP completion + stability + UX polish |
|
|
216
|
+
| 2–6 hours | Freeze major features + fix critical issues + demo reliability |
|
|
217
|
+
| < 2 hours | NO NEW FEATURES, NO ARCHITECTURE REWORK, NO EXPERIMENTAL DEPENDENCIES |
|
|
218
|
+
|
|
219
|
+
If time remaining is UNKNOWN: produce time-neutral plan, mark UNKNOWN.
|
|
220
|
+
|
|
221
|
+
### Stage 11: Write Project Plan Artifact
|
|
222
|
+
|
|
223
|
+
Use `templates/project-plan.md` as the record format.
|
|
224
|
+
|
|
225
|
+
**Save to:** `.sherpa/evidence/project-plan-<timestamp>.md` or a stable path
|
|
226
|
+
|
|
227
|
+
Include all sections:
|
|
228
|
+
- Project
|
|
229
|
+
- Hackathon criteria
|
|
230
|
+
- Current state
|
|
231
|
+
- Target outcome
|
|
232
|
+
- Current architecture
|
|
233
|
+
- Proposed architecture
|
|
234
|
+
- Components
|
|
235
|
+
- Data flow
|
|
236
|
+
- APIs/interfaces
|
|
237
|
+
- Database/storage
|
|
238
|
+
- AI/ML
|
|
239
|
+
- External services
|
|
240
|
+
- Deployment
|
|
241
|
+
- MVP (MUST/SHOULD/OPTIONAL/EXCLUDED)
|
|
242
|
+
- Implementation workstreams
|
|
243
|
+
- Dependencies
|
|
244
|
+
- Critical path
|
|
245
|
+
- Technical risks
|
|
246
|
+
- Security priorities
|
|
247
|
+
- Testing priorities
|
|
248
|
+
- UX priorities
|
|
249
|
+
- Time strategy
|
|
250
|
+
- Architecture decisions
|
|
251
|
+
- Unknowns
|
|
252
|
+
- Recommended next action
|
|
253
|
+
|
|
254
|
+
**Plan status:** DRAFT (not READY until all implementation-ready criteria met)
|
|
255
|
+
|
|
256
|
+
### Stage 12: Update Permitted Project State
|
|
257
|
+
|
|
258
|
+
Update ONLY these compact fields in `.sherpa/project-state.md`:
|
|
259
|
+
|
|
260
|
+
| Field | New value |
|
|
261
|
+
|-------|-----------|
|
|
262
|
+
| Planning status | IN_PROGRESS | COMPLETE |
|
|
263
|
+
| Repository analysis | COMPLETE (if analysis done) |
|
|
264
|
+
| Architecture | DRAFT (not APPROVED) |
|
|
265
|
+
| MVP | DRAFT (not APPROVED) |
|
|
266
|
+
| Implementation plan | UNKNOWN (not READY until all criteria met) |
|
|
267
|
+
| Engineering risk | LOW | MEDIUM | HIGH |
|
|
268
|
+
|
|
269
|
+
**Rules:**
|
|
270
|
+
- Do NOT put detailed repository analysis or architecture inside project-state.md.
|
|
271
|
+
- Architecture cannot become APPROVED without explicit human confirmation.
|
|
272
|
+
- MVP cannot become APPROVED without explicit human confirmation.
|
|
273
|
+
- Implementation plan cannot become READY until all implementation-ready criteria are met.
|
|
274
|
+
|
|
275
|
+
**Do NOT change:**
|
|
276
|
+
- `selected idea` (remains as set by Phase 2 + human confirmation)
|
|
277
|
+
- Problem statement
|
|
278
|
+
- Hackathon criteria/weights
|
|
279
|
+
- Deadline/time remaining (unless correcting an error)
|
|
280
|
+
|
|
281
|
+
### Stage 13: Return Exactly One Primary Next Action
|
|
282
|
+
|
|
283
|
+
**Output format:**
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
PRIMARY NEXT ACTION: <exactly one action>
|
|
287
|
+
|
|
288
|
+
WHY: <explanation based on impact, time, risk, and criteria>
|
|
289
|
+
|
|
290
|
+
DONE WHEN: <clear definition of done>
|
|
291
|
+
|
|
292
|
+
Time remaining: <hours or UNKNOWN>
|
|
293
|
+
|
|
294
|
+
Blocked by: <blocker or "None">
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Rule:** Exactly one primary next action. Do not produce competing alternatives.
|
|
298
|
+
|
|
299
|
+
**Examples:**
|
|
300
|
+
- "Implement the authentication MVP flow" — WHY: on critical path — DONE WHEN: login/logout/session verified
|
|
301
|
+
- "Create repository analysis" — WHY: need baseline before architecture — DONE WHEN: repo-analysis artifact written
|
|
302
|
+
- "Confirm selected idea" — WHY: Phase 3 gate requires it — DONE WHEN: human confirms in project-state.md
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## Validation Checklist
|
|
307
|
+
|
|
308
|
+
After PROJECT-PLAN completes:
|
|
309
|
+
|
|
310
|
+
- [ ] Selected idea verified (or gate triggered)
|
|
311
|
+
- [ ] Repository analysis declared its scope
|
|
312
|
+
- [ ] Evidence classification used (FACT/INFERENCE/ASSUMPTION/UNKNOWN)
|
|
313
|
+
- [ ] No execution claims without execution evidence
|
|
314
|
+
- [ ] sherpa artifacts not treated as independent evidence
|
|
315
|
+
- [ ] Current architecture and proposed architecture separated
|
|
316
|
+
- [ ] MVP contains MUST HAVE / SHOULD HAVE / OPTIONAL / EXCLUDED
|
|
317
|
+
- [ ] Time-aware strategy applied
|
|
318
|
+
- [ ] Unknown deadline not assumed
|
|
319
|
+
- [ ] Architecture status = DRAFT (not auto-APPROVED)
|
|
320
|
+
- [ ] No application source code modified
|
|
321
|
+
- [ ] No dependencies installed
|
|
322
|
+
- [ ] No deployment performed
|
|
323
|
+
- [ ] Phase 2 scoring logic unchanged
|
|
324
|
+
- [ ] Phase 1 INIT/STATUS/NEXT unchanged
|
|
325
|
+
- [ ] project-state.md remains compact
|
|
326
|
+
- [ ] Exactly ONE primary next action returned
|
|
327
|
+
- [ ] Implementation plan READY only when all criteria met + architecture approved
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
# sherpa — Red Team Workflow
|
|
2
|
+
|
|
3
|
+
**Operation:** RED-TEAM
|
|
4
|
+
**Purpose:** Actively attempt to disprove project readiness. Identify weaknesses, construct adversarial scenarios, challenge claims, and produce a prioritized red-team review. Phase 8 is an adversarial intelligence layer — it reviews and recommends; it does not implement fixes or replace other phases.
|
|
5
|
+
|
|
6
|
+
**Pipeline:**
|
|
7
|
+
Read Project State → Verify Readiness → Read Phase 2 Idea Evidence → Read Phase 3 Project Plan → Read Phase 4 Implementation Evidence → Read Phase 5 Testing/Security Evidence → Read Phase 7 UX Evidence → Inspect Current Repository → Identify Critical Claims → Identify Assumptions → Construct Adversarial Scenarios → Attempt to Break / Disprove Claims → Record Evidence → Classify Findings → Assign Severity + Confidence → Prioritize Findings → Propose Mitigations → Determine Required Owner / Phase → Verify Applicable Mitigations → Re-test Relevant Risks → Red Team Quality Gate → Update Project State → Return Exactly ONE Primary Next Action
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
Use RED-TEAM when:
|
|
14
|
+
- A hackathon idea has been selected and implementation baseline exists
|
|
15
|
+
- You need an adversarial review of the project before judging
|
|
16
|
+
- You want to identify weaknesses that could cause the project to lose
|
|
17
|
+
|
|
18
|
+
**Prerequisite:** `.sherpa/project-state.md` must exist with `selected idea` known, Phase 3 project plan, Phase 4 implementation state, Phase 5 testing/security evidence, and Phase 7 UX evidence.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Pipeline Stages
|
|
23
|
+
|
|
24
|
+
### Stage 1: Read Project State
|
|
25
|
+
|
|
26
|
+
Read `.sherpa/project-state.md`:
|
|
27
|
+
- Hackathon name, deadline, time remaining
|
|
28
|
+
- Judging criteria and weights
|
|
29
|
+
- Problem statement, target users
|
|
30
|
+
- Selected idea (must be known)
|
|
31
|
+
- Phase 2 decision outcome
|
|
32
|
+
- Phase 3 architecture status
|
|
33
|
+
- Phase 4 implementation status
|
|
34
|
+
- Phase 5 test/security evidence
|
|
35
|
+
- Phase 7 UX evidence
|
|
36
|
+
|
|
37
|
+
If `selected idea` is UNKNOWN:
|
|
38
|
+
- STOP normal red team review.
|
|
39
|
+
- Do not invent a selected idea.
|
|
40
|
+
- Return: selected idea is unknown, RED-TEAM cannot produce a normal review yet, exactly one primary next action: confirm the selected idea.
|
|
41
|
+
|
|
42
|
+
If implementation baseline is incomplete:
|
|
43
|
+
- Set Red Team Status to BLOCKED or LIMITED.
|
|
44
|
+
- Report RED TEAM REVIEW = BLOCKED or LIMITED.
|
|
45
|
+
- Perform bounded review of known artifacts only.
|
|
46
|
+
- Clearly state limitations.
|
|
47
|
+
|
|
48
|
+
### Stage 2: Verify Readiness
|
|
49
|
+
|
|
50
|
+
Check:
|
|
51
|
+
- Phase 3 project plan exists
|
|
52
|
+
- Phase 4 implementation status is known
|
|
53
|
+
- Phase 5 testing/security evidence exists
|
|
54
|
+
- Phase 7 UX evidence exists
|
|
55
|
+
|
|
56
|
+
If required information is missing:
|
|
57
|
+
- Mark as UNKNOWN
|
|
58
|
+
- Report RED TEAM REVIEW = BLOCKED or LIMITED
|
|
59
|
+
- Do not invent readiness
|
|
60
|
+
|
|
61
|
+
### Stage 3: Read Phase 2 Idea Evaluation
|
|
62
|
+
|
|
63
|
+
Read `.sherpa/decisions.md` and `.sherpa/evaluations/<idea-name>.md`:
|
|
64
|
+
- Selected idea name
|
|
65
|
+
- Evaluation scores
|
|
66
|
+
- Red-team outcomes from Phase 2
|
|
67
|
+
- Rejected ideas and reasons
|
|
68
|
+
- MVP scope
|
|
69
|
+
|
|
70
|
+
### Stage 4: Read Phase 3 Project Plan
|
|
71
|
+
|
|
72
|
+
Read `.sherpa/evidence/project-plan-*.md`:
|
|
73
|
+
- Current architecture
|
|
74
|
+
- Proposed architecture
|
|
75
|
+
- MVP scope (MUST/SHOULD/OPTIONAL/EXCLUDED)
|
|
76
|
+
- Implementation workstreams
|
|
77
|
+
- Dependencies
|
|
78
|
+
- Critical path
|
|
79
|
+
- Technical risks
|
|
80
|
+
- Time strategy
|
|
81
|
+
|
|
82
|
+
### Stage 5: Read Phase 4 Implementation Evidence
|
|
83
|
+
|
|
84
|
+
Read `.sherpa/evidence/` implementation artifacts:
|
|
85
|
+
- Repository baseline
|
|
86
|
+
- Components implemented
|
|
87
|
+
- Tests executed
|
|
88
|
+
- Deployment configuration
|
|
89
|
+
- Known issues
|
|
90
|
+
|
|
91
|
+
### Stage 6: Read Phase 5 Testing/Security Evidence
|
|
92
|
+
|
|
93
|
+
Read `.sherpa/evidence/` testing/security artifacts:
|
|
94
|
+
- Test results
|
|
95
|
+
- Security findings
|
|
96
|
+
- Blocked tests
|
|
97
|
+
- Regression risks
|
|
98
|
+
- Known failures
|
|
99
|
+
|
|
100
|
+
Do not duplicate the Phase 5 testing/security engine. Consume its evidence only.
|
|
101
|
+
|
|
102
|
+
### Stage 7: Read Phase 7 UX Evidence
|
|
103
|
+
|
|
104
|
+
Read `.sherpa/ux-review.md` and `.sherpa/ux/` artifacts:
|
|
105
|
+
- UX baseline
|
|
106
|
+
- Critical flows
|
|
107
|
+
- Findings
|
|
108
|
+
- Quality gate status
|
|
109
|
+
- Limitations
|
|
110
|
+
|
|
111
|
+
Do not duplicate the Phase 7 UX engine. Consume its evidence only.
|
|
112
|
+
|
|
113
|
+
### Stage 8: Inspect Current Repository
|
|
114
|
+
|
|
115
|
+
Inspect the actual repository:
|
|
116
|
+
- Project metadata
|
|
117
|
+
- Dependency manifests
|
|
118
|
+
- Top-level project structure
|
|
119
|
+
- Application entry points
|
|
120
|
+
- Frontend/backend/database/AI components
|
|
121
|
+
- APIs
|
|
122
|
+
- Tests
|
|
123
|
+
- Deployment configuration
|
|
124
|
+
- Documentation
|
|
125
|
+
- Environment configuration
|
|
126
|
+
|
|
127
|
+
Evidence classification (for every observation):
|
|
128
|
+
- FACT: Directly observed
|
|
129
|
+
- INFERENCE: Logical conclusion from facts
|
|
130
|
+
- ASSUMPTION: Not yet verified
|
|
131
|
+
- UNKNOWN: No information available
|
|
132
|
+
|
|
133
|
+
Rules:
|
|
134
|
+
- Never fabricate repository facts.
|
|
135
|
+
- Execution claims require execution evidence.
|
|
136
|
+
- Seeing a test file does NOT mean tests pass.
|
|
137
|
+
- Generated sherpa artifacts are not independent evidence.
|
|
138
|
+
|
|
139
|
+
If conflicting evidence is found between sources (e.g., source code suggests one behavior but observed runtime shows another), record the contradiction as a separate finding; do not silently reconcile it.
|
|
140
|
+
|
|
141
|
+
### Stage 9: Identify Critical Claims
|
|
142
|
+
|
|
143
|
+
Identify important project claims. Each claim:
|
|
144
|
+
- Claim ID
|
|
145
|
+
- Claim text
|
|
146
|
+
- Source
|
|
147
|
+
- Evidence
|
|
148
|
+
- Evidence type
|
|
149
|
+
- Confidence
|
|
150
|
+
|
|
151
|
+
Distinguish "the application performs the algorithm" from "the algorithm produces high-quality outcomes."
|
|
152
|
+
|
|
153
|
+
### Stage 10: Identify Assumptions
|
|
154
|
+
|
|
155
|
+
Identify assumptions underlying the project:
|
|
156
|
+
- User behavior assumptions
|
|
157
|
+
- Technical assumptions
|
|
158
|
+
- Dependency assumptions
|
|
159
|
+
- Environment assumptions
|
|
160
|
+
- Performance assumptions
|
|
161
|
+
|
|
162
|
+
### Stage 11: Construct Adversarial Scenarios
|
|
163
|
+
|
|
164
|
+
Construct scenarios designed to break the project. Each scenario:
|
|
165
|
+
- Scenario ID
|
|
166
|
+
- Attack Surface
|
|
167
|
+
- Attacker/Skeptical Judge Perspective
|
|
168
|
+
- Preconditions
|
|
169
|
+
- Attack
|
|
170
|
+
- Expected Failure
|
|
171
|
+
- Actual Result
|
|
172
|
+
- Evidence
|
|
173
|
+
- Severity
|
|
174
|
+
- Confidence
|
|
175
|
+
- Finding
|
|
176
|
+
- Mitigation
|
|
177
|
+
- Verification Method
|
|
178
|
+
- Status
|
|
179
|
+
|
|
180
|
+
Only execute scenarios applicable to the actual project. Mark non-applicable scenarios NOT_APPLICABLE with justification.
|
|
181
|
+
|
|
182
|
+
Attack surfaces to consider:
|
|
183
|
+
- invalid input
|
|
184
|
+
- empty data
|
|
185
|
+
- duplicate input
|
|
186
|
+
- missing required field
|
|
187
|
+
- unexpected user behavior
|
|
188
|
+
- refresh during critical flow
|
|
189
|
+
- network failure
|
|
190
|
+
- backend failure
|
|
191
|
+
- dependency failure
|
|
192
|
+
- API timeout
|
|
193
|
+
- stale data
|
|
194
|
+
- unauthorized access
|
|
195
|
+
- privacy exposure
|
|
196
|
+
- misleading output
|
|
197
|
+
- poor recommendation quality
|
|
198
|
+
- weak differentiation
|
|
199
|
+
- unsupported claim
|
|
200
|
+
- demo failure
|
|
201
|
+
- judge confusion
|
|
202
|
+
- mobile/responsive issue
|
|
203
|
+
- accessibility barrier
|
|
204
|
+
- performance bottleneck
|
|
205
|
+
- deployment/runtime failure
|
|
206
|
+
- environment mismatch
|
|
207
|
+
- missing fallback
|
|
208
|
+
- recovery failure
|
|
209
|
+
- data corruption
|
|
210
|
+
- repeated use
|
|
211
|
+
- adversarial/abnormal input
|
|
212
|
+
- "Why should this win?" challenge
|
|
213
|
+
|
|
214
|
+
### Stage 12: Attempt to Break / Disprove Claims
|
|
215
|
+
|
|
216
|
+
For each critical claim, construct and execute adversarial attempts to disprove it. Record actual results.
|
|
217
|
+
|
|
218
|
+
### Stage 13: Record Evidence
|
|
219
|
+
|
|
220
|
+
Record all evidence for each finding, scenario, and claim. Evidence must be reproducible: path/line, route/screen, steps, result, or evidence artifact.
|
|
221
|
+
|
|
222
|
+
### Stage 14: Classify Findings
|
|
223
|
+
|
|
224
|
+
Classify each finding:
|
|
225
|
+
- Category: PRODUCT, DIFFERENTIATION, TECHNICAL, RELIABILITY, SECURITY, PRIVACY, UX, ACCESSIBILITY, RESPONSIVE, DEMO, PERFORMANCE, EVIDENCE, CREDIBILITY, DEPLOYMENT, OTHER
|
|
226
|
+
- Severity: CRITICAL, HIGH, MEDIUM, LOW, INFO, UNKNOWN
|
|
227
|
+
- Confidence: HIGH, MEDIUM, LOW, UNKNOWN
|
|
228
|
+
|
|
229
|
+
Severity rules:
|
|
230
|
+
- CRITICAL: primary flow cannot work, demo can fundamentally fail, severe security/trust issue, core claim demonstrably false
|
|
231
|
+
- HIGH: major MVP weakness, significant reliability issue, major unsupported claim
|
|
232
|
+
- MEDIUM: meaningful weakness with workaround
|
|
233
|
+
- LOW: minor friction
|
|
234
|
+
- INFO: observation without material risk
|
|
235
|
+
- UNKNOWN: insufficient evidence
|
|
236
|
+
|
|
237
|
+
Do not inflate severity.
|
|
238
|
+
|
|
239
|
+
### Stage 15: Prioritize Findings
|
|
240
|
+
|
|
241
|
+
Priority order:
|
|
242
|
+
1. CRITICAL MVP failure
|
|
243
|
+
2. CRITICAL demo failure
|
|
244
|
+
3. confirmed security/trust issue
|
|
245
|
+
4. HIGH reliability risk
|
|
246
|
+
5. HIGH differentiation weakness
|
|
247
|
+
6. unsupported major claim
|
|
248
|
+
7. HIGH UX/demo friction
|
|
249
|
+
8. important technical risk
|
|
250
|
+
9. evidence gaps
|
|
251
|
+
10. medium risks
|
|
252
|
+
11. low-risk polish
|
|
253
|
+
|
|
254
|
+
Do not prioritize cosmetic issues over project-breaking risks.
|
|
255
|
+
|
|
256
|
+
### Stage 16: Propose Mitigations
|
|
257
|
+
|
|
258
|
+
For each finding, propose mitigation:
|
|
259
|
+
- Recommended mitigation
|
|
260
|
+
- Required owner (PHASE 4 / PHASE 5 / PHASE 7 / PHASE 8 / HUMAN ARCHITECTURE APPROVAL / FUTURE PHASE / ACCEPTED RISK)
|
|
261
|
+
- Required phase
|
|
262
|
+
- Architecture impact
|
|
263
|
+
- Time estimate/confidence
|
|
264
|
+
|
|
265
|
+
### Stage 17: Determine Required Owner / Phase
|
|
266
|
+
|
|
267
|
+
Route each finding:
|
|
268
|
+
- Technical code bug → PHASE 4 — IMPLEMENTATION
|
|
269
|
+
- Missing security verification → PHASE 5 — TESTING / SECURITY
|
|
270
|
+
- UX issue → PHASE 7 — UX
|
|
271
|
+
- Architecture limitation → HUMAN ARCHITECTURE APPROVAL
|
|
272
|
+
- Judge/pitch issue → FUTURE PHASE
|
|
273
|
+
- Red-team-specific mitigation → PHASE 8 — RED TEAM
|
|
274
|
+
- Explicitly accepted risk → ACCEPTED RISK
|
|
275
|
+
|
|
276
|
+
Do not fix issues by silently modifying another phase.
|
|
277
|
+
|
|
278
|
+
### Stage 18: Verify Applicable Mitigations
|
|
279
|
+
|
|
280
|
+
For mitigations that have been implemented:
|
|
281
|
+
- Record verification evidence
|
|
282
|
+
- Mark VERIFIED only after actual verification
|
|
283
|
+
- Never mark VERIFIED merely because a recommendation was written
|
|
284
|
+
|
|
285
|
+
### Stage 19: Re-test Relevant Risks
|
|
286
|
+
|
|
287
|
+
Re-test risks that were mitigated to confirm mitigation effectiveness.
|
|
288
|
+
|
|
289
|
+
### Stage 20: Red Team Quality Gate
|
|
290
|
+
|
|
291
|
+
Evaluate gate:
|
|
292
|
+
- NOT_READY
|
|
293
|
+
- RED_TEAM_IN_PROGRESS
|
|
294
|
+
- BLOCKED
|
|
295
|
+
- CONDITIONAL
|
|
296
|
+
- READY
|
|
297
|
+
|
|
298
|
+
READY requires:
|
|
299
|
+
- critical attack surfaces reviewed
|
|
300
|
+
- no unresolved critical project-breaking finding
|
|
301
|
+
- critical demo path challenged
|
|
302
|
+
- major claims challenged
|
|
303
|
+
- high-severity findings resolved or explicitly accepted
|
|
304
|
+
- security/UX dependencies clearly routed
|
|
305
|
+
- verification evidence for claimed mitigations
|
|
306
|
+
- limitations documented
|
|
307
|
+
- remaining risks visible
|
|
308
|
+
- evidence-backed conclusions
|
|
309
|
+
|
|
310
|
+
A project can be RED TEAM READY while still having accepted medium/low risks.
|
|
311
|
+
|
|
312
|
+
### Stage 21: Update Project State
|
|
313
|
+
|
|
314
|
+
Update ONLY these compact fields in `.sherpa/project-state.md`:
|
|
315
|
+
|
|
316
|
+
| Field | New Value |
|
|
317
|
+
|-------|-----------|
|
|
318
|
+
| Red Team Status | NOT_STARTED | IN_PROGRESS | BLOCKED | COMPLETE |
|
|
319
|
+
| Red Team Baseline | UNKNOWN | VERIFIED |
|
|
320
|
+
| Critical Attack Surfaces | UNKNOWN | IDENTIFIED | REVIEWED |
|
|
321
|
+
| Critical Findings | UNKNOWN | PASS | FAIL | BLOCKED |
|
|
322
|
+
| High Findings | UNKNOWN | PASS | FAIL | BLOCKED |
|
|
323
|
+
| Red Team Quality Gate | NOT_READY | RED_TEAM_IN_PROGRESS | BLOCKED | CONDITIONAL | READY |
|
|
324
|
+
|
|
325
|
+
Rules:
|
|
326
|
+
- Do NOT put detailed red team analysis inside project-state.md.
|
|
327
|
+
- Detailed material goes to `.sherpa/red-team.md` and `.sherpa/red-team/`.
|
|
328
|
+
- Do not change `selected idea`.
|
|
329
|
+
- Do not silently change architecture.
|
|
330
|
+
- Human approval required for architecture changes and CRITICAL/HIGH risk acceptance.
|
|
331
|
+
|
|
332
|
+
### Stage 22: Return Exactly One Primary Next Action
|
|
333
|
+
|
|
334
|
+
Output format:
|
|
335
|
+
|
|
336
|
+
```
|
|
337
|
+
PRIMARY NEXT ACTION: <exactly one action>
|
|
338
|
+
|
|
339
|
+
WHY: <explanation based on impact, time, risk, and judging criteria>
|
|
340
|
+
|
|
341
|
+
DONE WHEN: <clear definition of done>
|
|
342
|
+
|
|
343
|
+
Time remaining: <hours or UNKNOWN>
|
|
344
|
+
|
|
345
|
+
Blocked by: <blocker or "None">
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Rule: Exactly one primary next action. Do not produce competing alternatives.
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## Validation Checklist
|
|
353
|
+
|
|
354
|
+
After RED-TEAM completes:
|
|
355
|
+
|
|
356
|
+
- [ ] Selected idea verified (or gate triggered)
|
|
357
|
+
- [ ] Readiness verified (or BLOCKED/LIMITED reported)
|
|
358
|
+
- [ ] Phase 2, 3, 4, 5, 7 evidence consumed
|
|
359
|
+
- [ ] Repository inspected
|
|
360
|
+
- [ ] Critical claims identified
|
|
361
|
+
- [ ] Adversarial scenarios constructed
|
|
362
|
+
- [ ] Findings classified with severity and confidence
|
|
363
|
+
- [ ] Findings prioritized
|
|
364
|
+
- [ ] Mitigations proposed with owner/phase
|
|
365
|
+
- [ ] Mitigations verified where implemented
|
|
366
|
+
- [ ] Quality gate evaluated
|
|
367
|
+
- [ ] Project state updated (compact fields only)
|
|
368
|
+
- [ ] Exactly ONE primary next action returned
|
|
369
|
+
- [ ] No application source code modified
|
|
370
|
+
- [ ] No Phase 1–7 files modified
|
|
371
|
+
- [ ] No Phase 5 or Phase 7 engine duplicated
|
|
372
|
+
- [ ] No idea silently changed
|
|
373
|
+
- [ ] No architecture silently redesigned
|