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,185 @@
1
+ # sherpa — Red Team Rules
2
+
3
+ These rules are authoritative for the RED-TEAM capability. Red Team is lifecycle Phase 13; this is engineering capability Phase 8. Do not renumber or edit the 20-phase lifecycle.
4
+
5
+ ## Purpose and boundaries
6
+
7
+ Actively attempt to disprove project readiness. Attack the project and its claims — not the team. Identify hidden weaknesses, technical weaknesses, product weaknesses, UX weaknesses, differentiation weaknesses, judging weaknesses, demo weaknesses, evidence weaknesses, credibility risks, and failure modes.
8
+
9
+ Review and recommend; do not change product scope, selected idea, approved Phase 3 architecture, Phase 4 implementation plan, application source, or Phase 5/Phase 7 results. Do not replace Phase 5 testing/security, Phase 7 UX review, judge simulation, score optimization, presentation, submission, or post-mortem work.
10
+
11
+ If a proposed remediation needs database/API redesign, authentication redesign, major frontend restructuring, service restructuring, or a major dependency change, record **ARCHITECTURE CHANGE REQUIRED**, why, evidence, impact, estimated effort, alternative, risk, and recommendation. Stop that remediation pending human-controlled architecture approval.
12
+
13
+ ## Readiness and source of truth
14
+
15
+ Read `.sherpa/project-state.md`, the Phase 2 idea evaluation, Phase 3 project plan, Phase 4 implementation evidence, Phase 5 testing/security evidence, and Phase 7 UX evidence before inspecting UX. Red Team review normally requires implementation baseline, Phase 5 evidence, and Phase 7 evidence. If implementation is incomplete or readiness cannot be established, report **RED TEAM REVIEW = BLOCKED** or **LIMITED**; do not imply a review occurred.
16
+
17
+ Use the selected idea as context only. Never change it. Consume existing Phase 2 idea evaluation, Phase 3 project plan, Phase 4 implementation state, Phase 5 test/security findings, and Phase 7 UX findings. If a red-team question requires an automated or functional test, mark **TEST REQUIRED** and route it to the Phase 5 process; do not execute or duplicate that engine.
18
+
19
+ ## Evidence model
20
+
21
+ Every claim is labeled FACT, INFERENCE, ASSUMPTION, or UNKNOWN. FACT identifies inspected source, UI, state, test, or direct observation. INFERENCE states its evidence and reasoning. ASSUMPTION is an explicit provisional premise. UNKNOWN includes what is missing and why. Every finding cites reproducible evidence: path/line, route/screen, steps, result, or evidence artifact. Never claim an interaction, state, or behavior was tested when it was not.
22
+
23
+ Generated sherpa artifacts are not independent evidence. Evidence must trace back to repository inspection, actual execution, external verification, or explicit human-provided information. Do not treat previous AI-generated recommendations as facts.
24
+
25
+ ## Attack surfaces
26
+
27
+ Inspect applicable attack surfaces: Product, Differentiation, Technical, Reliability, Security/Trust, Privacy, UX, Accessibility, Responsive, Demo, Performance, Evidence, Credibility, Deployment.
28
+
29
+ Challenge every important project claim. Distinguish "the application performs the algorithm" from "the algorithm produces high-quality outcomes." Challenge unsupported statistics, unsupported performance claims, unsupported user claims, unsupported AI claims, "production-ready" claims, "secure" claims, "scalable" claims, "real-time" claims, and "zero vulnerabilities" claims.
30
+
31
+ Functional abuse scenarios include invalid input, missing input, duplicate actions, repeated submissions, unexpected navigation, invalid sequences, and unsupported actions.
32
+
33
+ ## Adversarial actors
34
+
35
+ The system considers applicable perspectives:
36
+
37
+ | Actor | Perspective |
38
+ |-------|-------------|
39
+ | Malicious User | Attempts to abuse the product |
40
+ | Careless User | Makes realistic mistakes |
41
+ | Curious User | Explores unsupported behavior |
42
+ | Skeptical Judge | Challenges claims and asks difficult questions |
43
+ | Unlucky Runtime | Produces timing, network, storage, or dependency failures |
44
+ | Invalid Input | Provides malformed or unexpected data |
45
+ | Empty Environment | Removes expected data/resources |
46
+ | Partial Failure | Breaks one component while others remain operational |
47
+ | Repeated Action | Performs the same action multiple times |
48
+ | Boundary Condition | Uses minimum, maximum, zero, empty, unusually large, or unusual values |
49
+
50
+ Every applicable actor must be considered at least once. Actors not applicable to the project are marked NOT_APPLICABLE with justification.
51
+
52
+ ## Adversarial scenarios
53
+
54
+ Each scenario contains: Scenario ID, Attack Surface, Attacker/Skeptical Judge Perspective, Preconditions, Attack, Expected Failure, Actual Result, Evidence, Severity, Confidence, Finding, Mitigation, Verification Method, Status.
55
+
56
+ Only scenarios applicable to the actual project should be executed. Non-applicable scenarios are marked NOT_APPLICABLE with justification.
57
+
58
+ ## Finding model
59
+
60
+ Each finding contains: Finding ID, Title, Attack Surface, Category, Severity, Confidence, Affected Flow/Component, Claim Challenged, Observation, Evidence, Attack/Reproduction Steps, User Impact, Judge Impact, Technical Impact, Recommended Mitigation, Required Owner, Required Phase, Architecture Impact, Verification Method, Status, Verification Evidence.
61
+
62
+ Categories: PRODUCT, DIFFERENTIATION, TECHNICAL, RELIABILITY, SECURITY, PRIVACY, UX, ACCESSIBILITY, RESPONSIVE, DEMO, PERFORMANCE, EVIDENCE, CREDIBILITY, DEPLOYMENT, OTHER.
63
+
64
+ Severity: CRITICAL / HIGH / MEDIUM / LOW / INFO / UNKNOWN. CRITICAL blocks the primary flow or makes the demo fundamentally unusable; HIGH is a major MVP weakness or significant reliability issue; MEDIUM is a meaningful weakness with a workaround; LOW is minor friction; INFO is an observation; UNKNOWN means insufficient evidence. Do not inflate severity.
65
+
66
+ Confidence: HIGH / MEDIUM / LOW / UNKNOWN. Depends on evidence quality. Do not give HIGH confidence to speculation.
67
+
68
+ ## Likelihood
69
+
70
+ Use: VERY_HIGH / HIGH / MEDIUM / LOW / VERY_LOW / UNKNOWN. Never fabricate likelihood. If evidence is insufficient, record UNKNOWN.
71
+
72
+ ## Recoverability
73
+
74
+ Use: AUTOMATIC / EASY / MANUAL / DIFFICULT / NONE / UNKNOWN. Evaluate whether the user/system can recover from the failure.
75
+
76
+ ## Red Team Scoring
77
+
78
+ Do NOT create a fake official hackathon score. Red Team may calculate a risk-priority indicator for internal ordering. If used, explicitly label it:
79
+
80
+ ```
81
+ INTERNAL RED TEAM PRIORITIZATION
82
+ NOT OFFICIAL JUDGING SCORE
83
+ ```
84
+
85
+ Never mix it with Phase 10 score optimization.
86
+
87
+ ## Critical Finding Rule
88
+
89
+ A CRITICAL finding must prevent unconditional RED_TEAM_QUALITY_GATE = READY unless it is VERIFIED_MITIGATED or explicitly ACCEPTED_RISK with human authority. Do not silently downgrade a CRITICAL finding.
90
+
91
+ ## Findings and status
92
+
93
+ Finding status: OPEN / IN_PROGRESS / MITIGATED / VERIFIED / ACCEPTED_RISK / BLOCKED / UNKNOWN / NOT_APPLICABLE / WONT_FIX. A finding may only become VERIFIED after actual verification evidence exists. Never mark a mitigation verified merely because a recommendation was written.
94
+
95
+ ## Mitigation routing
96
+
97
+ Every meaningful finding determines where action belongs:
98
+
99
+ - PHASE 4 — IMPLEMENTATION: technical code bugs, implementation gaps
100
+ - PHASE 5 — TESTING / SECURITY: missing security verification, missing test coverage
101
+ - PHASE 7 — UX: UX issues, usability problems
102
+ - PHASE 8 — RED TEAM: red-team-specific mitigations, scenario validation
103
+ - HUMAN ARCHITECTURE APPROVAL: architecture limitations
104
+ - FUTURE PHASE: judge/pitch issues, presentation issues
105
+ - ACCEPTED RISK: risks explicitly accepted by human
106
+
107
+ Do not fix issues by silently modifying another phase.
108
+
109
+ ## Priority order
110
+
111
+ 1. CRITICAL MVP failure
112
+ 2. CRITICAL demo failure
113
+ 3. confirmed security/trust issue
114
+ 4. HIGH reliability risk
115
+ 5. HIGH differentiation weakness
116
+ 6. unsupported major claim
117
+ 7. HIGH UX/demo friction
118
+ 8. important technical risk
119
+ 9. evidence gaps
120
+ 10. medium risks
121
+ 11. low-risk polish
122
+
123
+ Do not prioritize cosmetic issues over project-breaking risks.
124
+
125
+ ## Time-aware red team strategy
126
+
127
+ Use verified remaining time:
128
+
129
+ - >24 hours: Broad adversarial testing + mitigation + regression
130
+ - 12–24 hours: Critical flows + high-risk technical/product weaknesses + demo reliability
131
+ - 6–12 hours: Primary user journey + demo + critical reliability + major claims
132
+ - 2–6 hours: Demo-breaking scenarios + critical MVP failures + obvious credibility risks
133
+ - <2 hours: Freeze features. Attack only: demo path, critical MVP, obvious reliability failures, obvious unsupported claims, severe trust/security issues
134
+
135
+ If time is UNKNOWN: TIME STRATEGY = UNKNOWN. Never fabricate remaining time.
136
+
137
+ ## Red team quality gate
138
+
139
+ Gate values: NOT_READY / RED_TEAM_IN_PROGRESS / BLOCKED / CONDITIONAL / READY.
140
+
141
+ READY requires:
142
+ - critical attack surfaces reviewed
143
+ - no unresolved critical project-breaking finding
144
+ - critical demo path challenged
145
+ - major claims challenged
146
+ - high-severity findings resolved or explicitly accepted
147
+ - security/UX dependencies clearly routed
148
+ - verification evidence for claimed mitigations
149
+ - limitations documented
150
+ - remaining risks visible
151
+ - evidence-backed conclusions
152
+
153
+ A project can be RED TEAM READY while still having accepted medium/low risks. A strong red-team review should find weaknesses.
154
+
155
+ ## State and artifacts
156
+
157
+ Keep `.sherpa/project-state.md` compact. Add only these fields:
158
+
159
+ | Field | Values |
160
+ |-------|--------|
161
+ | Red Team Status | NOT_STARTED | IN_PROGRESS | BLOCKED | COMPLETE |
162
+ | Red Team Baseline | UNKNOWN | VERIFIED |
163
+ | Critical Attack Surfaces | UNKNOWN | IDENTIFIED | REVIEWED |
164
+ | Critical Findings | UNKNOWN | PASS | FAIL | BLOCKED |
165
+ | High Findings | UNKNOWN | PASS | FAIL | BLOCKED |
166
+ | Red Team Quality Gate | NOT_READY | RED_TEAM_IN_PROGRESS | BLOCKED | CONDITIONAL | READY |
167
+
168
+ Detailed material belongs in `.sherpa/red-team.md` and `.sherpa/red-team/{claim-NNN,scenario-NNN,finding-NNN,verification-NNN}.md`. Do not turn project-state.md into a giant report.
169
+
170
+ ## Human control
171
+
172
+ Human approval is required for:
173
+ - idea changes
174
+ - architecture changes
175
+ - major scope changes
176
+ - destructive refactors
177
+ - accepting CRITICAL risk
178
+ - accepting HIGH security/privacy risk
179
+ - irreversible changes
180
+
181
+ AI recommends. Human decides. Phase 8 never changes the selected idea or silently redesigns architecture.
182
+
183
+ ## Exactly one primary next action
184
+
185
+ Every successful Red Team workflow execution returns exactly one PRIMARY NEXT ACTION. Do not create another NEXT engine.
@@ -0,0 +1,184 @@
1
+ # sherpa — Research Rules
2
+
3
+ Defines authoritative behavior for the Research capability. Research is a reusable capability
4
+ that supports multiple lifecycle phases (Understand Rules, Analyze Problem, Generate Ideas,
5
+ Validate Ideas, Research Market, Select Idea, Architecture, Data Architecture, Development
6
+ Plan, Testing, Security, UX, Judge Simulation, Score Optimization, Demo Preparation,
7
+ Presentation, Final Audit, Submission, Post-Mortem). It does not create a new lifecycle phase.
8
+
9
+ ## 1. Purpose
10
+
11
+ Research provides transparent, evidence-based answers to research questions. It is not
12
+ autonomous web browsing; it is a disciplined process of finding, verifying, and organizing
13
+ evidence to support hackathon decisions.
14
+
15
+ Every research claim must carry an evidence tag: FACT, INFERENCE, ASSUMPTION, or UNKNOWN.
16
+ Every research output must trace back to repository inspection, actual execution, external
17
+ verification, or explicit human-provided information.
18
+
19
+ ## 2. Core Principles
20
+
21
+ ### Evidence Discipline
22
+
23
+ Classify repository observations and claims as FACT, INFERENCE, ASSUMPTION, or UNKNOWN.
24
+ Execution claims require direct execution evidence, including the command, result, and scope.
25
+ A present test/configuration file does not prove it works; a test failure must remain visible.
26
+ Generated sherpa state, plans, tasks, and recommendations are planning records, not
27
+ independent repository facts or execution evidence.
28
+
29
+ Never invent a commit, installed dependency, test/build result, environment value, API behavior,
30
+ deployment result, completion claim, or remaining time. When Git is unavailable, record
31
+ `Git baseline = UNKNOWN`.
32
+
33
+ ### Human Authority
34
+
35
+ Research is advisory. The human team decides what to believe and what to do. Research does not
36
+ auto-approve ideas, architecture, implementation, or any decision. Research findings route to
37
+ the appropriate phase but do not replace that phase's engine.
38
+
39
+ ### Time Awareness
40
+
41
+ Research should be time-bounded. Do not spend unlimited time searching. If remaining time is
42
+ UNKNOWN, record `TIME STRATEGY = UNKNOWN` and give a time-neutral research order.
43
+
44
+ ## 3. Research Pipeline Stages
45
+
46
+ ### Stage 1: Input
47
+
48
+ **Read from `.sherpa/project-state.md`:**
49
+ - Hackathon name, deadline, time remaining
50
+ - Judging criteria and weights (or UNKNOWN)
51
+ - Problem statement
52
+ - Target users (if known)
53
+
54
+ **Accept from user:**
55
+ - Research question (one sentence)
56
+ - Scope (what is in scope, what is out of scope)
57
+ - Depth (calibration, standard, deep)
58
+
59
+ **If no research question provided:**
60
+ - Report "No research question provided."
61
+ - Ask user to supply a research question before evaluation can run.
62
+ - Stop.
63
+
64
+ ### Stage 2: Research Plan
65
+
66
+ Define:
67
+ - What needs to be found
68
+ - Where to look (repository, web, documentation, tests)
69
+ - Evidence quality threshold
70
+ - Time budget
71
+
72
+ Record the research plan in `.sherpa/evidence/research/<research-query>.md`.
73
+
74
+ ### Stage 3: Retrieve
75
+
76
+ Retrieve candidate evidence from:
77
+ - Repository source code, config, tests, docs
78
+ - Web search (if available and permitted)
79
+ - Team input
80
+ - Existing sherpa artifacts
81
+
82
+ Save raw retrieval results to `.sherpa/evidence/research/`.
83
+
84
+ ### Stage 4: Verify
85
+
86
+ For each candidate evidence item:
87
+ - Verify the source is real and accessible
88
+ - Check the claim against the source text
89
+ - Verify numbers, dates, entity names match exactly
90
+ - Check polarity/negation (does the source say the opposite?)
91
+ - Check temporal consistency (dates, versions)
92
+
93
+ ### Stage 5: Analyze
94
+
95
+ Classify each claim as FACT, INFERENCE, ASSUMPTION, or UNKNOWN.
96
+ - FACT: directly verified from source
97
+ - INFERENCE: logical conclusion from facts
98
+ - ASSUMPTION: provisional premise not yet verified
99
+ - UNKNOWN: no information available
100
+
101
+ ### Stage 6: Synthesize
102
+
103
+ Combine evidence into a coherent answer. Address:
104
+ - What is known
105
+ - What is unknown
106
+ - What assumptions must hold
107
+ - What the evidence does and does not support
108
+
109
+ ### Stage 7: Decide
110
+
111
+ Determine what the research means for the project decision:
112
+ - Does it support proceeding?
113
+ - Does it raise blockers?
114
+ - What assumptions must hold?
115
+ - What is the recommended next action?
116
+
117
+ ### Stage 8: Persist
118
+
119
+ Save the research record to `.sherpa/evidence/research/<research-query>.md`.
120
+ Include all evidence, gates, decisions, and unknowns.
121
+
122
+ ## 4. Evidence Model
123
+
124
+ | Field | Values |
125
+ |-------|--------|
126
+ | type | FACT | INFERENCE | ASSUMPTION | UNKNOWN |
127
+ | value | The claim |
128
+ | source | URL, file path, or "team input" |
129
+ | confidence | low | medium | high |
130
+
131
+ Rules:
132
+ - No claim may be tagged FACT unless directly verified from source
133
+ - No claim may be tagged INFERENCE without explicit reasoning
134
+ - ASSUMPTION must be explicitly marked as provisional
135
+ - UNKNOWN means no information available
136
+ - Never claim research was performed unless evidence was actually retrieved
137
+
138
+ ## 5. Source Priorities
139
+
140
+ Priority order for evidence:
141
+ 1. Official documentation / official repository / official specification
142
+ 2. Repository source code and tests (direct inspection)
143
+ 3. Team input (explicitly attributed)
144
+ 4. Secondary sources (blog posts, tutorials, secondary docs)
145
+ 5. General web search results (lowest confidence)
146
+
147
+ ## 6. Source Consistency
148
+
149
+ When multiple sources conflict:
150
+ - Record each claim separately with its source
151
+ - Do not silently reconcile contradictions
152
+ - Flag the contradiction explicitly
153
+ - Mark conflicting claims as UNKNOWN until resolved
154
+
155
+ ## 7. Time Awareness
156
+
157
+ - If remaining time is UNKNOWN, record TIME STRATEGY = UNKNOWN
158
+ - Do not spend unlimited time on research
159
+ - If time is limited, prefer direct repository evidence over web search
160
+ - Record time spent on research if it exceeds a reasonable threshold
161
+
162
+ ## 8. Human Authority
163
+
164
+ Research recommends; the human decides. Research does not:
165
+ - Auto-approve ideas
166
+ - Auto-approve architecture
167
+ - Auto-approve implementation
168
+ - Change the selected idea
169
+ - Silently redesign architecture
170
+ - Replace Phase 5/7/8 engines
171
+
172
+ Research findings route to the appropriate phase but do not replace it.
173
+
174
+ ## 9. Output Contract
175
+
176
+ After each research invocation, return:
177
+ - Research question
178
+ - Evidence found (with sources and confidence)
179
+ - Contradictions found (if any)
180
+ - Unknowns
181
+ - Decision/recommendation
182
+ - Exactly one PRIMARY NEXT ACTION
183
+
184
+ All research artifacts live in `.sherpa/evidence/research/`.