hunter-harness 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +11 -0
  3. package/dist/bin.js +891 -271
  4. package/package.json +1 -1
  5. package/resources/harness/bundles/general/claude-code/.harness-build.json +6 -0
  6. package/resources/harness/{general → bundles/general/claude-code}/agents/harness-reviewer.md +2 -2
  7. package/resources/harness/{general → bundles/general/claude-code}/harness-archive/SKILL.md +1 -1
  8. package/resources/harness/{java → bundles/general/claude-code}/harness-codebase-map/SKILL.md +1 -1
  9. package/resources/harness/{java → bundles/general/claude-code}/harness-knowledge-ingest/SKILL.md +1 -1
  10. package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-ingest/reference.md +1 -1
  11. package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-query/SKILL.md +1 -1
  12. package/resources/harness/{general → bundles/general/claude-code}/harness-plan/SKILL.md +1 -1
  13. package/resources/harness/{java → bundles/general/claude-code}/harness-review/SKILL.md +8 -4
  14. package/resources/harness/{general → bundles/general/claude-code}/harness-review/checklist.md +3 -3
  15. package/resources/harness/{general → bundles/general/claude-code}/harness-run/SKILL.md +1 -1
  16. package/resources/harness/{general → bundles/general/claude-code}/harness-run/checklist.md +1 -1
  17. package/resources/harness/{general → bundles/general/claude-code}/harness-run/reference.md +2 -2
  18. package/resources/harness/{general → bundles/general/claude-code}/harness-submit/SKILL.md +1 -1
  19. package/resources/harness/{java → bundles/general/claude-code}/harness-sync/SKILL.md +2 -2
  20. package/resources/harness/{general → bundles/general/claude-code}/harness-sync/reference.md +7 -7
  21. package/resources/harness/{general → bundles/general/claude-code}/harness-test/SKILL.md +1 -1
  22. package/resources/harness/{general → bundles/general/claude-code}/harness-test/checklist.md +1 -1
  23. package/resources/harness/{java → bundles/general/claude-code}/scripts/harness_archive.py +2300 -2300
  24. package/resources/harness/{general → bundles/general/claude-code}/scripts/harness_deploy.py +74 -13
  25. package/resources/harness/{general → bundles/general/claude-code}/scripts/harness_events.py +680 -680
  26. package/resources/harness/{general → bundles/general/claude-code}/scripts/harness_ledger.py +660 -660
  27. package/resources/harness/{java → bundles/general/claude-code}/scripts/harness_preflight.py +765 -765
  28. package/resources/harness/{general → bundles/general/claude-code}/scripts/harness_service.py +1331 -1331
  29. package/resources/harness/bundles/general/codebuddy/.harness-build.json +6 -0
  30. package/resources/harness/bundles/general/codebuddy/agents/harness-evaluator.md +94 -0
  31. package/resources/harness/bundles/general/codebuddy/agents/harness-explorer.md +53 -0
  32. package/resources/harness/bundles/general/codebuddy/agents/harness-reviewer.md +52 -0
  33. package/resources/harness/bundles/general/codebuddy/harness-archive/SKILL.md +198 -0
  34. package/resources/harness/bundles/general/codebuddy/harness-codebase-map/SKILL.md +95 -0
  35. package/resources/harness/bundles/general/codebuddy/harness-knowledge-ingest/SKILL.md +229 -0
  36. package/resources/harness/{java → bundles/general/codebuddy}/harness-knowledge-ingest/reference.md +1 -1
  37. package/resources/harness/bundles/general/codebuddy/harness-knowledge-query/SKILL.md +147 -0
  38. package/resources/harness/bundles/general/codebuddy/harness-plan/SKILL.md +109 -0
  39. package/resources/harness/bundles/general/codebuddy/harness-review/SKILL.md +142 -0
  40. package/resources/harness/{java → bundles/general/codebuddy}/harness-review/checklist.md +3 -3
  41. package/resources/harness/bundles/general/codebuddy/harness-run/SKILL.md +113 -0
  42. package/resources/harness/bundles/general/codebuddy/harness-run/checklist.md +259 -0
  43. package/resources/harness/bundles/general/codebuddy/harness-run/reference.md +834 -0
  44. package/resources/harness/bundles/general/codebuddy/harness-submit/SKILL.md +142 -0
  45. package/resources/harness/bundles/general/codebuddy/harness-sync/SKILL.md +65 -0
  46. package/resources/harness/{java → bundles/general/codebuddy}/harness-sync/reference.md +7 -7
  47. package/resources/harness/bundles/general/codebuddy/harness-test/SKILL.md +160 -0
  48. package/resources/harness/bundles/general/codebuddy/harness-test/checklist.md +319 -0
  49. package/resources/harness/bundles/general/codebuddy/harness-test/reference.md +791 -0
  50. package/resources/harness/{general → bundles/general/codebuddy}/scripts/harness_archive.py +2300 -2300
  51. package/resources/harness/{java → bundles/general/codebuddy}/scripts/harness_deploy.py +74 -13
  52. package/resources/harness/{java → bundles/general/codebuddy}/scripts/harness_events.py +680 -680
  53. package/resources/harness/{java → bundles/general/codebuddy}/scripts/harness_ledger.py +660 -660
  54. package/resources/harness/{general → bundles/general/codebuddy}/scripts/harness_preflight.py +765 -765
  55. package/resources/harness/{java → bundles/general/codebuddy}/scripts/harness_service.py +1331 -1331
  56. package/resources/harness/bundles/general/codex/.harness-build.json +6 -0
  57. package/resources/harness/bundles/general/codex/CONTEXT.md +65 -0
  58. package/resources/harness/bundles/general/codex/README.md +478 -0
  59. package/resources/harness/bundles/general/codex/harness-archive/SKILL.md +198 -0
  60. package/resources/harness/bundles/general/codex/harness-archive/checklist.md +52 -0
  61. package/resources/harness/bundles/general/codex/harness-archive/reference.md +103 -0
  62. package/resources/harness/bundles/general/codex/harness-archive/scripts/gen-manifest.ps1 +31 -0
  63. package/resources/harness/bundles/general/codex/harness-archive/templates/render-summary.mjs +171 -0
  64. package/resources/harness/bundles/general/codex/harness-archive/templates/summary-data-template.json +128 -0
  65. package/resources/harness/bundles/general/codex/harness-codebase-map/SKILL.md +95 -0
  66. package/resources/harness/bundles/general/codex/harness-codebase-map/checklist.md +126 -0
  67. package/resources/harness/bundles/general/codex/harness-codebase-map/reference.md +364 -0
  68. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
  69. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/CONCERNS.md +49 -0
  70. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/CONVENTIONS.md +57 -0
  71. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
  72. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/STACK.md +55 -0
  73. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/STRUCTURE.md +69 -0
  74. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/TESTING.md +64 -0
  75. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/map-manifest.schema.json +73 -0
  76. package/resources/harness/bundles/general/codex/harness-codebase-map/templates/map-summary.md +64 -0
  77. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/SKILL.md +229 -0
  78. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/design.md +842 -0
  79. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
  80. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/mcp-config.example.json +10 -0
  81. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/reference.md +309 -0
  82. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
  83. package/resources/harness/bundles/general/codex/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
  84. package/resources/harness/bundles/general/codex/harness-knowledge-query/SKILL.md +147 -0
  85. package/resources/harness/bundles/general/codex/harness-plan/SKILL.md +109 -0
  86. package/resources/harness/bundles/general/codex/harness-plan/checklist.md +243 -0
  87. package/resources/harness/bundles/general/codex/harness-plan/protocols.md +124 -0
  88. package/resources/harness/bundles/general/codex/harness-plan/reference.md +376 -0
  89. package/resources/harness/bundles/general/codex/harness-review/SKILL.md +137 -0
  90. package/resources/harness/bundles/general/codex/harness-review/checklist.md +124 -0
  91. package/resources/harness/bundles/general/codex/harness-review/protocols.md +68 -0
  92. package/resources/harness/bundles/general/codex/harness-review/reference.md +86 -0
  93. package/resources/harness/bundles/general/codex/harness-run/SKILL.md +113 -0
  94. package/resources/harness/bundles/general/codex/harness-run/checklist.md +259 -0
  95. package/resources/harness/bundles/general/codex/harness-run/protocols.md +78 -0
  96. package/resources/harness/bundles/general/codex/harness-run/reference.md +834 -0
  97. package/resources/harness/bundles/general/codex/harness-submit/SKILL.md +142 -0
  98. package/resources/harness/bundles/general/codex/harness-submit/checklist.md +407 -0
  99. package/resources/harness/bundles/general/codex/harness-submit/reference.md +152 -0
  100. package/resources/harness/bundles/general/codex/harness-sync/SKILL.md +65 -0
  101. package/resources/harness/bundles/general/codex/harness-sync/reference.md +153 -0
  102. package/resources/harness/bundles/general/codex/harness-test/SKILL.md +160 -0
  103. package/resources/harness/bundles/general/codex/harness-test/checklist.md +319 -0
  104. package/resources/harness/bundles/general/codex/harness-test/pitfalls.md +260 -0
  105. package/resources/harness/bundles/general/codex/harness-test/reference.md +791 -0
  106. package/resources/harness/bundles/general/codex/protocols/archive-report-protocol.md +175 -0
  107. package/resources/harness/bundles/general/codex/protocols/evidence-based-reporting-protocol.md +134 -0
  108. package/resources/harness/bundles/general/codex/protocols/ledger-protocol.md +270 -0
  109. package/resources/harness/bundles/general/codex/protocols/powershell-protocol.md +181 -0
  110. package/resources/harness/bundles/general/codex/protocols/report-pipeline-protocol.md +150 -0
  111. package/resources/harness/bundles/general/codex/protocols/sensitive-info-protocol.md +92 -0
  112. package/resources/harness/bundles/general/codex/protocols/state-layout-protocol.md +131 -0
  113. package/resources/harness/bundles/general/codex/protocols/submit-protocol.md +78 -0
  114. package/resources/harness/bundles/general/codex/scripts/harness_archive.py +2319 -0
  115. package/resources/harness/bundles/general/codex/scripts/harness_deploy.py +674 -0
  116. package/resources/harness/bundles/general/codex/scripts/harness_events.py +680 -0
  117. package/resources/harness/bundles/general/codex/scripts/harness_ledger.py +671 -0
  118. package/resources/harness/bundles/general/codex/scripts/harness_preflight.py +780 -0
  119. package/resources/harness/bundles/general/codex/scripts/harness_service.py +1331 -0
  120. package/resources/harness/bundles/general/cursor/.harness-build.json +6 -0
  121. package/resources/harness/bundles/general/cursor/CONTEXT.md +65 -0
  122. package/resources/harness/bundles/general/cursor/README.md +478 -0
  123. package/resources/harness/bundles/general/cursor/harness-archive/SKILL.md +198 -0
  124. package/resources/harness/bundles/general/cursor/harness-archive/checklist.md +52 -0
  125. package/resources/harness/bundles/general/cursor/harness-archive/reference.md +103 -0
  126. package/resources/harness/bundles/general/cursor/harness-archive/scripts/gen-manifest.ps1 +31 -0
  127. package/resources/harness/bundles/general/cursor/harness-archive/templates/render-summary.mjs +171 -0
  128. package/resources/harness/bundles/general/cursor/harness-archive/templates/summary-data-template.json +128 -0
  129. package/resources/harness/bundles/general/cursor/harness-codebase-map/SKILL.md +95 -0
  130. package/resources/harness/bundles/general/cursor/harness-codebase-map/checklist.md +126 -0
  131. package/resources/harness/bundles/general/cursor/harness-codebase-map/reference.md +364 -0
  132. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
  133. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/CONCERNS.md +49 -0
  134. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/CONVENTIONS.md +57 -0
  135. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
  136. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/STACK.md +55 -0
  137. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/STRUCTURE.md +69 -0
  138. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/TESTING.md +64 -0
  139. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/map-manifest.schema.json +73 -0
  140. package/resources/harness/bundles/general/cursor/harness-codebase-map/templates/map-summary.md +64 -0
  141. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/SKILL.md +229 -0
  142. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/design.md +842 -0
  143. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
  144. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/mcp-config.example.json +10 -0
  145. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/reference.md +309 -0
  146. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
  147. package/resources/harness/bundles/general/cursor/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
  148. package/resources/harness/bundles/general/cursor/harness-knowledge-query/SKILL.md +147 -0
  149. package/resources/harness/bundles/general/cursor/harness-plan/SKILL.md +109 -0
  150. package/resources/harness/bundles/general/cursor/harness-plan/checklist.md +243 -0
  151. package/resources/harness/bundles/general/cursor/harness-plan/protocols.md +124 -0
  152. package/resources/harness/bundles/general/cursor/harness-plan/reference.md +376 -0
  153. package/resources/harness/bundles/general/cursor/harness-review/SKILL.md +137 -0
  154. package/resources/harness/bundles/general/cursor/harness-review/checklist.md +124 -0
  155. package/resources/harness/bundles/general/cursor/harness-review/protocols.md +68 -0
  156. package/resources/harness/bundles/general/cursor/harness-review/reference.md +86 -0
  157. package/resources/harness/bundles/general/cursor/harness-run/SKILL.md +113 -0
  158. package/resources/harness/bundles/general/cursor/harness-run/checklist.md +259 -0
  159. package/resources/harness/bundles/general/cursor/harness-run/protocols.md +78 -0
  160. package/resources/harness/bundles/general/cursor/harness-run/reference.md +834 -0
  161. package/resources/harness/bundles/general/cursor/harness-submit/SKILL.md +142 -0
  162. package/resources/harness/bundles/general/cursor/harness-submit/checklist.md +407 -0
  163. package/resources/harness/bundles/general/cursor/harness-submit/reference.md +152 -0
  164. package/resources/harness/bundles/general/cursor/harness-sync/SKILL.md +65 -0
  165. package/resources/harness/bundles/general/cursor/harness-sync/reference.md +153 -0
  166. package/resources/harness/bundles/general/cursor/harness-test/SKILL.md +160 -0
  167. package/resources/harness/bundles/general/cursor/harness-test/checklist.md +319 -0
  168. package/resources/harness/bundles/general/cursor/harness-test/pitfalls.md +260 -0
  169. package/resources/harness/bundles/general/cursor/harness-test/reference.md +791 -0
  170. package/resources/harness/bundles/general/cursor/protocols/archive-report-protocol.md +175 -0
  171. package/resources/harness/bundles/general/cursor/protocols/evidence-based-reporting-protocol.md +134 -0
  172. package/resources/harness/bundles/general/cursor/protocols/ledger-protocol.md +270 -0
  173. package/resources/harness/bundles/general/cursor/protocols/powershell-protocol.md +181 -0
  174. package/resources/harness/bundles/general/cursor/protocols/report-pipeline-protocol.md +150 -0
  175. package/resources/harness/bundles/general/cursor/protocols/sensitive-info-protocol.md +92 -0
  176. package/resources/harness/bundles/general/cursor/protocols/state-layout-protocol.md +131 -0
  177. package/resources/harness/bundles/general/cursor/protocols/submit-protocol.md +78 -0
  178. package/resources/harness/bundles/general/cursor/scripts/harness_archive.py +2319 -0
  179. package/resources/harness/bundles/general/cursor/scripts/harness_deploy.py +674 -0
  180. package/resources/harness/bundles/general/cursor/scripts/harness_events.py +680 -0
  181. package/resources/harness/bundles/general/cursor/scripts/harness_ledger.py +671 -0
  182. package/resources/harness/bundles/general/cursor/scripts/harness_preflight.py +780 -0
  183. package/resources/harness/bundles/general/cursor/scripts/harness_service.py +1331 -0
  184. package/resources/harness/bundles/java/claude-code/.harness-build.json +6 -0
  185. package/resources/harness/bundles/java/claude-code/CONTEXT.md +65 -0
  186. package/resources/harness/bundles/java/claude-code/README.md +478 -0
  187. package/resources/harness/{java → bundles/java/claude-code}/agents/harness-reviewer.md +2 -2
  188. package/resources/harness/{java → bundles/java/claude-code}/harness-apidoc/SKILL.md +1 -1
  189. package/resources/harness/{java → bundles/java/claude-code}/harness-archive/SKILL.md +1 -1
  190. package/resources/harness/bundles/java/claude-code/harness-archive/checklist.md +52 -0
  191. package/resources/harness/bundles/java/claude-code/harness-archive/reference.md +103 -0
  192. package/resources/harness/bundles/java/claude-code/harness-archive/scripts/gen-manifest.ps1 +31 -0
  193. package/resources/harness/bundles/java/claude-code/harness-archive/templates/render-summary.mjs +171 -0
  194. package/resources/harness/bundles/java/claude-code/harness-archive/templates/summary-data-template.json +128 -0
  195. package/resources/harness/{general → bundles/java/claude-code}/harness-codebase-map/SKILL.md +1 -1
  196. package/resources/harness/bundles/java/claude-code/harness-codebase-map/checklist.md +126 -0
  197. package/resources/harness/bundles/java/claude-code/harness-codebase-map/reference.md +364 -0
  198. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
  199. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/CONCERNS.md +49 -0
  200. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/CONVENTIONS.md +57 -0
  201. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
  202. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/STACK.md +55 -0
  203. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/STRUCTURE.md +69 -0
  204. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/TESTING.md +64 -0
  205. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/map-manifest.schema.json +73 -0
  206. package/resources/harness/bundles/java/claude-code/harness-codebase-map/templates/map-summary.md +64 -0
  207. package/resources/harness/{general → bundles/java/claude-code}/harness-knowledge-ingest/SKILL.md +1 -1
  208. package/resources/harness/bundles/java/claude-code/harness-knowledge-ingest/design.md +842 -0
  209. package/resources/harness/bundles/java/claude-code/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
  210. package/resources/harness/bundles/java/claude-code/harness-knowledge-ingest/mcp-config.example.json +10 -0
  211. package/resources/harness/bundles/java/claude-code/harness-knowledge-ingest/reference.md +309 -0
  212. package/resources/harness/bundles/java/claude-code/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
  213. package/resources/harness/bundles/java/claude-code/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
  214. package/resources/harness/{java → bundles/java/claude-code}/harness-knowledge-query/SKILL.md +1 -1
  215. package/resources/harness/{java → bundles/java/claude-code}/harness-package/SKILL.md +1 -1
  216. package/resources/harness/{java → bundles/java/claude-code}/harness-package/reference.md +1 -1
  217. package/resources/harness/{java → bundles/java/claude-code}/harness-plan/SKILL.md +1 -1
  218. package/resources/harness/bundles/java/claude-code/harness-plan/checklist.md +243 -0
  219. package/resources/harness/bundles/java/claude-code/harness-plan/protocols.md +124 -0
  220. package/resources/harness/bundles/java/claude-code/harness-plan/reference.md +376 -0
  221. package/resources/harness/{general → bundles/java/claude-code}/harness-review/SKILL.md +8 -4
  222. package/resources/harness/bundles/java/claude-code/harness-review/checklist.md +124 -0
  223. package/resources/harness/bundles/java/claude-code/harness-review/protocols.md +68 -0
  224. package/resources/harness/bundles/java/claude-code/harness-review/reference.md +86 -0
  225. package/resources/harness/{java → bundles/java/claude-code}/harness-run/SKILL.md +1 -1
  226. package/resources/harness/{java → bundles/java/claude-code}/harness-run/checklist.md +1 -1
  227. package/resources/harness/bundles/java/claude-code/harness-run/protocols.md +78 -0
  228. package/resources/harness/{java → bundles/java/claude-code}/harness-run/reference.md +2 -2
  229. package/resources/harness/{java → bundles/java/claude-code}/harness-submit/SKILL.md +1 -1
  230. package/resources/harness/bundles/java/claude-code/harness-submit/checklist.md +407 -0
  231. package/resources/harness/bundles/java/claude-code/harness-submit/reference.md +152 -0
  232. package/resources/harness/{general → bundles/java/claude-code}/harness-sync/SKILL.md +2 -2
  233. package/resources/harness/bundles/java/claude-code/harness-sync/reference.md +153 -0
  234. package/resources/harness/{java → bundles/java/claude-code}/harness-test/SKILL.md +1 -1
  235. package/resources/harness/{java → bundles/java/claude-code}/harness-test/checklist.md +316 -316
  236. package/resources/harness/bundles/java/claude-code/harness-test/pitfalls.md +260 -0
  237. package/resources/harness/{java → bundles/java/claude-code}/harness-test/reference.md +788 -788
  238. package/resources/harness/bundles/java/claude-code/protocols/archive-report-protocol.md +175 -0
  239. package/resources/harness/bundles/java/claude-code/protocols/evidence-based-reporting-protocol.md +134 -0
  240. package/resources/harness/bundles/java/claude-code/protocols/ledger-protocol.md +270 -0
  241. package/resources/harness/bundles/java/claude-code/protocols/powershell-protocol.md +181 -0
  242. package/resources/harness/bundles/java/claude-code/protocols/report-pipeline-protocol.md +150 -0
  243. package/resources/harness/bundles/java/claude-code/protocols/sensitive-info-protocol.md +92 -0
  244. package/resources/harness/bundles/java/claude-code/protocols/state-layout-protocol.md +131 -0
  245. package/resources/harness/bundles/java/claude-code/protocols/submit-protocol.md +78 -0
  246. package/resources/harness/bundles/java/claude-code/scripts/harness_archive.py +2319 -0
  247. package/resources/harness/bundles/java/claude-code/scripts/harness_deploy.py +674 -0
  248. package/resources/harness/bundles/java/claude-code/scripts/harness_events.py +680 -0
  249. package/resources/harness/bundles/java/claude-code/scripts/harness_ledger.py +671 -0
  250. package/resources/harness/bundles/java/claude-code/scripts/harness_preflight.py +780 -0
  251. package/resources/harness/bundles/java/claude-code/scripts/harness_service.py +1331 -0
  252. package/resources/harness/bundles/java/codebuddy/.harness-build.json +6 -0
  253. package/resources/harness/bundles/java/codebuddy/CONTEXT.md +65 -0
  254. package/resources/harness/bundles/java/codebuddy/README.md +478 -0
  255. package/resources/harness/bundles/java/codebuddy/agents/harness-evaluator.md +94 -0
  256. package/resources/harness/bundles/java/codebuddy/agents/harness-explorer.md +53 -0
  257. package/resources/harness/bundles/java/codebuddy/agents/harness-reviewer.md +52 -0
  258. package/resources/harness/bundles/java/codebuddy/harness-apidoc/SKILL.md +68 -0
  259. package/resources/harness/bundles/java/codebuddy/harness-apidoc/checklist.md +142 -0
  260. package/resources/harness/bundles/java/codebuddy/harness-apidoc/reference.md +233 -0
  261. package/resources/harness/bundles/java/codebuddy/harness-archive/SKILL.md +198 -0
  262. package/resources/harness/bundles/java/codebuddy/harness-archive/checklist.md +52 -0
  263. package/resources/harness/bundles/java/codebuddy/harness-archive/reference.md +103 -0
  264. package/resources/harness/bundles/java/codebuddy/harness-archive/scripts/gen-manifest.ps1 +31 -0
  265. package/resources/harness/bundles/java/codebuddy/harness-archive/templates/render-summary.mjs +171 -0
  266. package/resources/harness/bundles/java/codebuddy/harness-archive/templates/summary-data-template.json +128 -0
  267. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/SKILL.md +95 -0
  268. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/checklist.md +126 -0
  269. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/reference.md +364 -0
  270. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
  271. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/CONCERNS.md +49 -0
  272. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/CONVENTIONS.md +57 -0
  273. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
  274. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/STACK.md +55 -0
  275. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/STRUCTURE.md +69 -0
  276. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/TESTING.md +64 -0
  277. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/map-manifest.schema.json +73 -0
  278. package/resources/harness/bundles/java/codebuddy/harness-codebase-map/templates/map-summary.md +64 -0
  279. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/SKILL.md +229 -0
  280. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/design.md +842 -0
  281. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
  282. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/mcp-config.example.json +10 -0
  283. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/reference.md +309 -0
  284. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
  285. package/resources/harness/bundles/java/codebuddy/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
  286. package/resources/harness/bundles/java/codebuddy/harness-knowledge-query/SKILL.md +147 -0
  287. package/resources/harness/bundles/java/codebuddy/harness-package/SKILL.md +69 -0
  288. package/resources/harness/bundles/java/codebuddy/harness-package/checklist.md +322 -0
  289. package/resources/harness/bundles/java/codebuddy/harness-package/reference.md +210 -0
  290. package/resources/harness/bundles/java/codebuddy/harness-plan/SKILL.md +109 -0
  291. package/resources/harness/bundles/java/codebuddy/harness-plan/checklist.md +243 -0
  292. package/resources/harness/bundles/java/codebuddy/harness-plan/protocols.md +124 -0
  293. package/resources/harness/bundles/java/codebuddy/harness-plan/reference.md +376 -0
  294. package/resources/harness/bundles/java/codebuddy/harness-review/SKILL.md +142 -0
  295. package/resources/harness/bundles/java/codebuddy/harness-review/checklist.md +124 -0
  296. package/resources/harness/bundles/java/codebuddy/harness-review/protocols.md +68 -0
  297. package/resources/harness/bundles/java/codebuddy/harness-review/reference.md +86 -0
  298. package/resources/harness/bundles/java/codebuddy/harness-run/SKILL.md +129 -0
  299. package/resources/harness/bundles/java/codebuddy/harness-run/checklist.md +250 -0
  300. package/resources/harness/bundles/java/codebuddy/harness-run/protocols.md +78 -0
  301. package/resources/harness/bundles/java/codebuddy/harness-run/reference.md +814 -0
  302. package/resources/harness/bundles/java/codebuddy/harness-submit/SKILL.md +149 -0
  303. package/resources/harness/bundles/java/codebuddy/harness-submit/checklist.md +407 -0
  304. package/resources/harness/bundles/java/codebuddy/harness-submit/reference.md +152 -0
  305. package/resources/harness/bundles/java/codebuddy/harness-sync/SKILL.md +65 -0
  306. package/resources/harness/bundles/java/codebuddy/harness-sync/reference.md +153 -0
  307. package/resources/harness/bundles/java/codebuddy/harness-test/SKILL.md +172 -0
  308. package/resources/harness/bundles/java/codebuddy/harness-test/checklist.md +317 -0
  309. package/resources/harness/bundles/java/codebuddy/harness-test/pitfalls-java.md +16 -0
  310. package/resources/harness/bundles/java/codebuddy/harness-test/pitfalls.md +260 -0
  311. package/resources/harness/bundles/java/codebuddy/harness-test/reference.md +788 -0
  312. package/resources/harness/bundles/java/codebuddy/protocols/archive-report-protocol.md +175 -0
  313. package/resources/harness/bundles/java/codebuddy/protocols/evidence-based-reporting-protocol.md +134 -0
  314. package/resources/harness/bundles/java/codebuddy/protocols/ledger-protocol.md +270 -0
  315. package/resources/harness/bundles/java/codebuddy/protocols/powershell-protocol.md +181 -0
  316. package/resources/harness/bundles/java/codebuddy/protocols/report-pipeline-protocol.md +150 -0
  317. package/resources/harness/bundles/java/codebuddy/protocols/sensitive-info-protocol.md +92 -0
  318. package/resources/harness/bundles/java/codebuddy/protocols/state-layout-protocol.md +131 -0
  319. package/resources/harness/bundles/java/codebuddy/protocols/submit-protocol.md +78 -0
  320. package/resources/harness/bundles/java/codebuddy/scripts/harness_archive.py +2319 -0
  321. package/resources/harness/bundles/java/codebuddy/scripts/harness_deploy.py +674 -0
  322. package/resources/harness/bundles/java/codebuddy/scripts/harness_events.py +680 -0
  323. package/resources/harness/bundles/java/codebuddy/scripts/harness_ledger.py +671 -0
  324. package/resources/harness/bundles/java/codebuddy/scripts/harness_preflight.py +780 -0
  325. package/resources/harness/bundles/java/codebuddy/scripts/harness_service.py +1331 -0
  326. package/resources/harness/bundles/java/codex/.harness-build.json +6 -0
  327. package/resources/harness/bundles/java/codex/CONTEXT.md +65 -0
  328. package/resources/harness/bundles/java/codex/README.md +478 -0
  329. package/resources/harness/bundles/java/codex/harness-apidoc/SKILL.md +68 -0
  330. package/resources/harness/bundles/java/codex/harness-apidoc/checklist.md +142 -0
  331. package/resources/harness/bundles/java/codex/harness-apidoc/reference.md +233 -0
  332. package/resources/harness/bundles/java/codex/harness-archive/SKILL.md +198 -0
  333. package/resources/harness/bundles/java/codex/harness-archive/checklist.md +52 -0
  334. package/resources/harness/bundles/java/codex/harness-archive/reference.md +103 -0
  335. package/resources/harness/bundles/java/codex/harness-archive/scripts/gen-manifest.ps1 +31 -0
  336. package/resources/harness/bundles/java/codex/harness-archive/templates/render-summary.mjs +171 -0
  337. package/resources/harness/bundles/java/codex/harness-archive/templates/summary-data-template.json +128 -0
  338. package/resources/harness/bundles/java/codex/harness-codebase-map/SKILL.md +95 -0
  339. package/resources/harness/bundles/java/codex/harness-codebase-map/checklist.md +126 -0
  340. package/resources/harness/bundles/java/codex/harness-codebase-map/reference.md +364 -0
  341. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
  342. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/CONCERNS.md +49 -0
  343. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/CONVENTIONS.md +57 -0
  344. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
  345. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/STACK.md +55 -0
  346. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/STRUCTURE.md +69 -0
  347. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/TESTING.md +64 -0
  348. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/map-manifest.schema.json +73 -0
  349. package/resources/harness/bundles/java/codex/harness-codebase-map/templates/map-summary.md +64 -0
  350. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/SKILL.md +229 -0
  351. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/design.md +842 -0
  352. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
  353. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/mcp-config.example.json +10 -0
  354. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/reference.md +309 -0
  355. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
  356. package/resources/harness/bundles/java/codex/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
  357. package/resources/harness/bundles/java/codex/harness-knowledge-query/SKILL.md +147 -0
  358. package/resources/harness/bundles/java/codex/harness-package/SKILL.md +69 -0
  359. package/resources/harness/bundles/java/codex/harness-package/checklist.md +322 -0
  360. package/resources/harness/bundles/java/codex/harness-package/reference.md +210 -0
  361. package/resources/harness/bundles/java/codex/harness-plan/SKILL.md +109 -0
  362. package/resources/harness/bundles/java/codex/harness-plan/checklist.md +243 -0
  363. package/resources/harness/bundles/java/codex/harness-plan/protocols.md +124 -0
  364. package/resources/harness/bundles/java/codex/harness-plan/reference.md +376 -0
  365. package/resources/harness/bundles/java/codex/harness-review/SKILL.md +137 -0
  366. package/resources/harness/bundles/java/codex/harness-review/checklist.md +124 -0
  367. package/resources/harness/bundles/java/codex/harness-review/protocols.md +68 -0
  368. package/resources/harness/bundles/java/codex/harness-review/reference.md +86 -0
  369. package/resources/harness/bundles/java/codex/harness-run/SKILL.md +129 -0
  370. package/resources/harness/bundles/java/codex/harness-run/checklist.md +250 -0
  371. package/resources/harness/bundles/java/codex/harness-run/protocols.md +78 -0
  372. package/resources/harness/bundles/java/codex/harness-run/reference.md +814 -0
  373. package/resources/harness/bundles/java/codex/harness-submit/SKILL.md +149 -0
  374. package/resources/harness/bundles/java/codex/harness-submit/checklist.md +407 -0
  375. package/resources/harness/bundles/java/codex/harness-submit/reference.md +152 -0
  376. package/resources/harness/bundles/java/codex/harness-sync/SKILL.md +65 -0
  377. package/resources/harness/bundles/java/codex/harness-sync/reference.md +153 -0
  378. package/resources/harness/bundles/java/codex/harness-test/SKILL.md +172 -0
  379. package/resources/harness/bundles/java/codex/harness-test/checklist.md +317 -0
  380. package/resources/harness/bundles/java/codex/harness-test/pitfalls-java.md +16 -0
  381. package/resources/harness/bundles/java/codex/harness-test/pitfalls.md +260 -0
  382. package/resources/harness/bundles/java/codex/harness-test/reference.md +788 -0
  383. package/resources/harness/bundles/java/codex/protocols/archive-report-protocol.md +175 -0
  384. package/resources/harness/bundles/java/codex/protocols/evidence-based-reporting-protocol.md +134 -0
  385. package/resources/harness/bundles/java/codex/protocols/ledger-protocol.md +270 -0
  386. package/resources/harness/bundles/java/codex/protocols/powershell-protocol.md +181 -0
  387. package/resources/harness/bundles/java/codex/protocols/report-pipeline-protocol.md +150 -0
  388. package/resources/harness/bundles/java/codex/protocols/sensitive-info-protocol.md +92 -0
  389. package/resources/harness/bundles/java/codex/protocols/state-layout-protocol.md +131 -0
  390. package/resources/harness/bundles/java/codex/protocols/submit-protocol.md +78 -0
  391. package/resources/harness/bundles/java/codex/scripts/harness_archive.py +2319 -0
  392. package/resources/harness/bundles/java/codex/scripts/harness_deploy.py +674 -0
  393. package/resources/harness/bundles/java/codex/scripts/harness_events.py +680 -0
  394. package/resources/harness/bundles/java/codex/scripts/harness_ledger.py +671 -0
  395. package/resources/harness/bundles/java/codex/scripts/harness_preflight.py +780 -0
  396. package/resources/harness/bundles/java/codex/scripts/harness_service.py +1331 -0
  397. package/resources/harness/bundles/java/cursor/.harness-build.json +6 -0
  398. package/resources/harness/bundles/java/cursor/CONTEXT.md +65 -0
  399. package/resources/harness/bundles/java/cursor/README.md +478 -0
  400. package/resources/harness/bundles/java/cursor/harness-apidoc/SKILL.md +68 -0
  401. package/resources/harness/bundles/java/cursor/harness-apidoc/checklist.md +142 -0
  402. package/resources/harness/bundles/java/cursor/harness-apidoc/reference.md +233 -0
  403. package/resources/harness/bundles/java/cursor/harness-archive/SKILL.md +198 -0
  404. package/resources/harness/bundles/java/cursor/harness-archive/checklist.md +52 -0
  405. package/resources/harness/bundles/java/cursor/harness-archive/reference.md +103 -0
  406. package/resources/harness/bundles/java/cursor/harness-archive/scripts/gen-manifest.ps1 +31 -0
  407. package/resources/harness/bundles/java/cursor/harness-archive/templates/render-summary.mjs +171 -0
  408. package/resources/harness/bundles/java/cursor/harness-archive/templates/summary-data-template.json +128 -0
  409. package/resources/harness/bundles/java/cursor/harness-codebase-map/SKILL.md +95 -0
  410. package/resources/harness/bundles/java/cursor/harness-codebase-map/checklist.md +126 -0
  411. package/resources/harness/bundles/java/cursor/harness-codebase-map/reference.md +364 -0
  412. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/ARCHITECTURE.md +57 -0
  413. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/CONCERNS.md +49 -0
  414. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/CONVENTIONS.md +57 -0
  415. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/INTEGRATIONS.md +52 -0
  416. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/STACK.md +55 -0
  417. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/STRUCTURE.md +69 -0
  418. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/TESTING.md +64 -0
  419. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/map-manifest.schema.json +73 -0
  420. package/resources/harness/bundles/java/cursor/harness-codebase-map/templates/map-summary.md +64 -0
  421. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/SKILL.md +229 -0
  422. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/design.md +842 -0
  423. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +42 -0
  424. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/mcp-config.example.json +10 -0
  425. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/reference.md +309 -0
  426. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/scripts/harness_knowledge.py +4082 -0
  427. package/resources/harness/bundles/java/cursor/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +273 -0
  428. package/resources/harness/bundles/java/cursor/harness-knowledge-query/SKILL.md +147 -0
  429. package/resources/harness/bundles/java/cursor/harness-package/SKILL.md +69 -0
  430. package/resources/harness/bundles/java/cursor/harness-package/checklist.md +322 -0
  431. package/resources/harness/bundles/java/cursor/harness-package/reference.md +210 -0
  432. package/resources/harness/bundles/java/cursor/harness-plan/SKILL.md +109 -0
  433. package/resources/harness/bundles/java/cursor/harness-plan/checklist.md +243 -0
  434. package/resources/harness/bundles/java/cursor/harness-plan/protocols.md +124 -0
  435. package/resources/harness/bundles/java/cursor/harness-plan/reference.md +376 -0
  436. package/resources/harness/bundles/java/cursor/harness-review/SKILL.md +137 -0
  437. package/resources/harness/bundles/java/cursor/harness-review/checklist.md +124 -0
  438. package/resources/harness/bundles/java/cursor/harness-review/protocols.md +68 -0
  439. package/resources/harness/bundles/java/cursor/harness-review/reference.md +86 -0
  440. package/resources/harness/bundles/java/cursor/harness-run/SKILL.md +129 -0
  441. package/resources/harness/bundles/java/cursor/harness-run/checklist.md +250 -0
  442. package/resources/harness/bundles/java/cursor/harness-run/protocols.md +78 -0
  443. package/resources/harness/bundles/java/cursor/harness-run/reference.md +814 -0
  444. package/resources/harness/bundles/java/cursor/harness-submit/SKILL.md +149 -0
  445. package/resources/harness/bundles/java/cursor/harness-submit/checklist.md +407 -0
  446. package/resources/harness/bundles/java/cursor/harness-submit/reference.md +152 -0
  447. package/resources/harness/bundles/java/cursor/harness-sync/SKILL.md +65 -0
  448. package/resources/harness/bundles/java/cursor/harness-sync/reference.md +153 -0
  449. package/resources/harness/bundles/java/cursor/harness-test/SKILL.md +172 -0
  450. package/resources/harness/bundles/java/cursor/harness-test/checklist.md +317 -0
  451. package/resources/harness/bundles/java/cursor/harness-test/pitfalls-java.md +16 -0
  452. package/resources/harness/bundles/java/cursor/harness-test/pitfalls.md +260 -0
  453. package/resources/harness/bundles/java/cursor/harness-test/reference.md +788 -0
  454. package/resources/harness/bundles/java/cursor/protocols/archive-report-protocol.md +175 -0
  455. package/resources/harness/bundles/java/cursor/protocols/evidence-based-reporting-protocol.md +134 -0
  456. package/resources/harness/bundles/java/cursor/protocols/ledger-protocol.md +270 -0
  457. package/resources/harness/bundles/java/cursor/protocols/powershell-protocol.md +181 -0
  458. package/resources/harness/bundles/java/cursor/protocols/report-pipeline-protocol.md +150 -0
  459. package/resources/harness/bundles/java/cursor/protocols/sensitive-info-protocol.md +92 -0
  460. package/resources/harness/bundles/java/cursor/protocols/state-layout-protocol.md +131 -0
  461. package/resources/harness/bundles/java/cursor/protocols/submit-protocol.md +78 -0
  462. package/resources/harness/bundles/java/cursor/scripts/harness_archive.py +2319 -0
  463. package/resources/harness/bundles/java/cursor/scripts/harness_deploy.py +674 -0
  464. package/resources/harness/bundles/java/cursor/scripts/harness_events.py +680 -0
  465. package/resources/harness/bundles/java/cursor/scripts/harness_ledger.py +671 -0
  466. package/resources/harness/bundles/java/cursor/scripts/harness_preflight.py +780 -0
  467. package/resources/harness/bundles/java/cursor/scripts/harness_service.py +1331 -0
  468. package/resources/harness/manifests/{general.json → general/claude-code.json} +27 -26
  469. package/resources/harness/manifests/general/codebuddy.json +277 -0
  470. package/resources/harness/manifests/general/codex.json +265 -0
  471. package/resources/harness/manifests/general/cursor.json +265 -0
  472. package/resources/harness/manifests/{java.json → java/claude-code.json} +31 -30
  473. package/resources/harness/manifests/java/codebuddy.json +305 -0
  474. package/resources/harness/manifests/java/codex.json +293 -0
  475. package/resources/harness/manifests/java/cursor.json +293 -0
  476. package/resources/harness/general/.harness-build.json +0 -5
  477. package/resources/harness/java/.harness-build.json +0 -5
  478. /package/resources/harness/{general → bundles/general/claude-code}/CONTEXT.md +0 -0
  479. /package/resources/harness/{general → bundles/general/claude-code}/README.md +0 -0
  480. /package/resources/harness/{general → bundles/general/claude-code}/agents/harness-evaluator.md +0 -0
  481. /package/resources/harness/{general → bundles/general/claude-code}/agents/harness-explorer.md +0 -0
  482. /package/resources/harness/{general → bundles/general/claude-code}/harness-archive/checklist.md +0 -0
  483. /package/resources/harness/{general → bundles/general/claude-code}/harness-archive/reference.md +0 -0
  484. /package/resources/harness/{general → bundles/general/claude-code}/harness-archive/scripts/gen-manifest.ps1 +0 -0
  485. /package/resources/harness/{general → bundles/general/claude-code}/harness-archive/templates/render-summary.mjs +0 -0
  486. /package/resources/harness/{general → bundles/general/claude-code}/harness-archive/templates/summary-data-template.json +0 -0
  487. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/checklist.md +0 -0
  488. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/reference.md +0 -0
  489. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/ARCHITECTURE.md +0 -0
  490. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/CONCERNS.md +0 -0
  491. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/CONVENTIONS.md +0 -0
  492. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/INTEGRATIONS.md +0 -0
  493. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/STACK.md +0 -0
  494. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/STRUCTURE.md +0 -0
  495. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/TESTING.md +0 -0
  496. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/map-manifest.schema.json +0 -0
  497. /package/resources/harness/{general → bundles/general/claude-code}/harness-codebase-map/templates/map-summary.md +0 -0
  498. /package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-ingest/design.md +0 -0
  499. /package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +0 -0
  500. /package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-ingest/mcp-config.example.json +0 -0
  501. /package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-ingest/scripts/harness_knowledge.py +0 -0
  502. /package/resources/harness/{general → bundles/general/claude-code}/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +0 -0
  503. /package/resources/harness/{general → bundles/general/claude-code}/harness-plan/checklist.md +0 -0
  504. /package/resources/harness/{general → bundles/general/claude-code}/harness-plan/protocols.md +0 -0
  505. /package/resources/harness/{general → bundles/general/claude-code}/harness-plan/reference.md +0 -0
  506. /package/resources/harness/{general → bundles/general/claude-code}/harness-review/protocols.md +0 -0
  507. /package/resources/harness/{general → bundles/general/claude-code}/harness-review/reference.md +0 -0
  508. /package/resources/harness/{general → bundles/general/claude-code}/harness-run/protocols.md +0 -0
  509. /package/resources/harness/{general → bundles/general/claude-code}/harness-submit/checklist.md +0 -0
  510. /package/resources/harness/{general → bundles/general/claude-code}/harness-submit/reference.md +0 -0
  511. /package/resources/harness/{general → bundles/general/claude-code}/harness-test/pitfalls.md +0 -0
  512. /package/resources/harness/{general → bundles/general/claude-code}/harness-test/reference.md +0 -0
  513. /package/resources/harness/{general → bundles/general/claude-code}/protocols/archive-report-protocol.md +0 -0
  514. /package/resources/harness/{general → bundles/general/claude-code}/protocols/evidence-based-reporting-protocol.md +0 -0
  515. /package/resources/harness/{general → bundles/general/claude-code}/protocols/ledger-protocol.md +0 -0
  516. /package/resources/harness/{general → bundles/general/claude-code}/protocols/powershell-protocol.md +0 -0
  517. /package/resources/harness/{general → bundles/general/claude-code}/protocols/report-pipeline-protocol.md +0 -0
  518. /package/resources/harness/{general → bundles/general/claude-code}/protocols/sensitive-info-protocol.md +0 -0
  519. /package/resources/harness/{general → bundles/general/claude-code}/protocols/state-layout-protocol.md +0 -0
  520. /package/resources/harness/{general → bundles/general/claude-code}/protocols/submit-protocol.md +0 -0
  521. /package/resources/harness/{java → bundles/general/codebuddy}/CONTEXT.md +0 -0
  522. /package/resources/harness/{java → bundles/general/codebuddy}/README.md +0 -0
  523. /package/resources/harness/{java → bundles/general/codebuddy}/harness-archive/checklist.md +0 -0
  524. /package/resources/harness/{java → bundles/general/codebuddy}/harness-archive/reference.md +0 -0
  525. /package/resources/harness/{java → bundles/general/codebuddy}/harness-archive/scripts/gen-manifest.ps1 +0 -0
  526. /package/resources/harness/{java → bundles/general/codebuddy}/harness-archive/templates/render-summary.mjs +0 -0
  527. /package/resources/harness/{java → bundles/general/codebuddy}/harness-archive/templates/summary-data-template.json +0 -0
  528. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/checklist.md +0 -0
  529. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/reference.md +0 -0
  530. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/ARCHITECTURE.md +0 -0
  531. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/CONCERNS.md +0 -0
  532. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/CONVENTIONS.md +0 -0
  533. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/INTEGRATIONS.md +0 -0
  534. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/STACK.md +0 -0
  535. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/STRUCTURE.md +0 -0
  536. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/TESTING.md +0 -0
  537. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/map-manifest.schema.json +0 -0
  538. /package/resources/harness/{java → bundles/general/codebuddy}/harness-codebase-map/templates/map-summary.md +0 -0
  539. /package/resources/harness/{java → bundles/general/codebuddy}/harness-knowledge-ingest/design.md +0 -0
  540. /package/resources/harness/{java → bundles/general/codebuddy}/harness-knowledge-ingest/evaluations/harness_knowledge_evaluation.xml +0 -0
  541. /package/resources/harness/{java → bundles/general/codebuddy}/harness-knowledge-ingest/mcp-config.example.json +0 -0
  542. /package/resources/harness/{java → bundles/general/codebuddy}/harness-knowledge-ingest/scripts/harness_knowledge.py +0 -0
  543. /package/resources/harness/{java → bundles/general/codebuddy}/harness-knowledge-ingest/scripts/harness_knowledge_mcp.py +0 -0
  544. /package/resources/harness/{java → bundles/general/codebuddy}/harness-plan/checklist.md +0 -0
  545. /package/resources/harness/{java → bundles/general/codebuddy}/harness-plan/protocols.md +0 -0
  546. /package/resources/harness/{java → bundles/general/codebuddy}/harness-plan/reference.md +0 -0
  547. /package/resources/harness/{java → bundles/general/codebuddy}/harness-review/protocols.md +0 -0
  548. /package/resources/harness/{java → bundles/general/codebuddy}/harness-review/reference.md +0 -0
  549. /package/resources/harness/{java → bundles/general/codebuddy}/harness-run/protocols.md +0 -0
  550. /package/resources/harness/{java → bundles/general/codebuddy}/harness-submit/checklist.md +0 -0
  551. /package/resources/harness/{java → bundles/general/codebuddy}/harness-submit/reference.md +0 -0
  552. /package/resources/harness/{java → bundles/general/codebuddy}/harness-test/pitfalls.md +0 -0
  553. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/archive-report-protocol.md +0 -0
  554. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/evidence-based-reporting-protocol.md +0 -0
  555. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/ledger-protocol.md +0 -0
  556. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/powershell-protocol.md +0 -0
  557. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/report-pipeline-protocol.md +0 -0
  558. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/sensitive-info-protocol.md +0 -0
  559. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/state-layout-protocol.md +0 -0
  560. /package/resources/harness/{java → bundles/general/codebuddy}/protocols/submit-protocol.md +0 -0
  561. /package/resources/harness/{java → bundles/java/claude-code}/agents/harness-evaluator.md +0 -0
  562. /package/resources/harness/{java → bundles/java/claude-code}/agents/harness-explorer.md +0 -0
  563. /package/resources/harness/{java → bundles/java/claude-code}/harness-apidoc/checklist.md +0 -0
  564. /package/resources/harness/{java → bundles/java/claude-code}/harness-apidoc/reference.md +0 -0
  565. /package/resources/harness/{java → bundles/java/claude-code}/harness-package/checklist.md +0 -0
  566. /package/resources/harness/{java → bundles/java/claude-code}/harness-test/pitfalls-java.md +0 -0
@@ -0,0 +1,124 @@
1
+ ---
2
+ description: harness-plan 的原生规划协议。吸收 brainstorming、grill-me、writing-plans 的方法论精华,但不运行时依赖外部 skill。
3
+ ---
4
+
5
+ # harness-plan 原生规划协议
6
+
7
+ 本文件定义 `/harness-plan` 的内置 planning kernel。它吸收外部 skill 的有效做法,但正式流程不调用 Superpowers、grill-me 或 writing-plans,也不读取或同步 `docs/superpowers/` 作为计划产物。
8
+
9
+ 核心原则:**流程更轻,质量门槛更硬**。删掉外部 skill 检查、Adapter Mode、降级和草稿同步;保留需求澄清、逐问决策、方案对比、任务自检和测试优先。
10
+
11
+ ## 协议一:clarification-protocol
12
+
13
+ 用于阶段 4,目标是把需求从“用户意图”收敛成可审核设计输入。
14
+
15
+ 必须输出以下五类结论,并写入 `logs/execution-log.md`,关键决策同步追加到 `events.ndjson`:
16
+
17
+ | 输出 | 要求 |
18
+ |------|------|
19
+ | 风险识别 | 列出会影响实现、测试、数据、兼容性或交付判断的风险 |
20
+ | 复用机会 | 明确可复用的既有模块、接口、测试、迁移脚本或历史知识 |
21
+ | 替代方案 | 给出 2-3 个可行方案;简单需求可给 1 个主方案 + 1 个不选方案 |
22
+ | 推荐方案 | 明确推荐选项和理由,不让用户从空白处决策 |
23
+ | 用户确认的关键决策 | 只记录真正影响范围、行为、兼容性或风险的决策 |
24
+
25
+ 执行纪律:
26
+
27
+ 1. 先消费阶段 0.5 的 context pack、阶段 3 的代码探索结果和项目规则。
28
+ 2. 能由代码、历史知识、配置、现有文档回答的问题,不问用户。
29
+ 3. 需要用户裁决时,交给 `decision-grilling-protocol`。
30
+ 4. 影响面检查必须覆盖用户未显式提到的参数、数据、接口、权限、兼容性、模块引用和测试影响。
31
+ 5. 低风险工程判断可由 AI 推荐并记录后继续;高风险或业务语义判断必须等待用户确认。
32
+
33
+ ## 协议二:decision-grilling-protocol
34
+
35
+ 用于阶段 4 的用户澄清问题。它借鉴 grill-me 的逐问决策树,但采用有限问题预算,避免仪式化盘问。
36
+
37
+ ### 问题预算
38
+
39
+ | 场景 | 用户问题上限 |
40
+ |------|:---:|
41
+ | 信息充分、无必须裁决的问题 | 0 |
42
+ | 普通需求 | 1-3 |
43
+ | 高风险需求(auth、支付、数据迁移、并发、安全、不可逆删除、用户可见行为变化) | 5-7 |
44
+
45
+ 超过预算仍无法收敛时,不要继续追问;必须输出“未决决策清单”,标记阻塞项,并请用户裁决是否缩小范围或暂停。
46
+
47
+ ### 提问格式
48
+
49
+ 每次只问一个问题,且必须包含推荐答案:
50
+
51
+ ```markdown
52
+ ### 需要确认:<决策主题>
53
+
54
+ 我的推荐:<推荐答案>
55
+
56
+ 理由:<为什么这个选择更适合当前代码、历史上下文和风险约束>
57
+
58
+ 取舍:<代价、风险、未来扩展限制>
59
+
60
+ 请确认是否采用该推荐,或指出要调整的方向。
61
+ ```
62
+
63
+ ### 自动采用与必须确认
64
+
65
+ 可自动采用推荐并记录:
66
+ - 文件组织、命名、任务顺序、测试拆分
67
+ - 是否复用现有 helper、adapter、测试 fixture
68
+ - 不改变用户可见行为的内部实现细节
69
+
70
+ 必须用户确认:
71
+ - 需求范围增删、延期或拆分
72
+ - 权限、安全、支付、审计、数据迁移、删除行为
73
+ - API 契约、错误码、前端兼容、用户可见行为变化
74
+ - 不可逆操作或可能影响历史数据的方案
75
+
76
+ 不确定归类时,按“必须确认”处理。
77
+
78
+ ## 协议三:implementation-planning-protocol
79
+
80
+ 用于阶段 6,目标是把已审核设计转成 harness 可执行计划,而不是生成外部超细步骤文档。
81
+
82
+ ### 产物分工
83
+
84
+ | 产物 | 定位 | 详细度 |
85
+ |------|------|--------|
86
+ | `<change-name>-plan.md` | 任务真相源 | 简洁任务表:任务、涉及文件、依赖 |
87
+ | `<change-name>-implementation-detail.md` | 执行参考 | 按复杂度自适应:关键接口、顺序、坑点、测试策略 |
88
+ | `<change-name>-test-scenarios.md` | 测试真相源 | 4 维度测试场景 + 覆盖检查 |
89
+
90
+ `implementation-detail.md` 必须存在,但不再强制写成 2-5 分钟粒度、逐行代码片段或逐 commit 指令。简单任务可以短,复杂任务必须细。
91
+
92
+ ### 计划质量门槛
93
+
94
+ 任务拆分必须满足:
95
+
96
+ - 每个任务有明确目标、涉及文件和依赖。
97
+ - 不出现 `TBD`、`TODO`、`稍后实现`、`补充测试`、`适当处理错误` 等占位表达。
98
+ - 不引用尚未定义的类型、函数、接口或迁移文件。
99
+ - 层序依赖清晰:数据/契约先于业务实现,业务实现先于接口暴露,验证场景覆盖关键路径。
100
+ - 测试方向明确:单元、接口、数据兼容、集成至少说明适用与不适用原因。
101
+ - 如果设计范围发生收缩,先按 `change-name` 同步规则处理名称和路径。
102
+
103
+ ### implementation-detail 自适应规则
104
+
105
+ | 复杂度 | 内容要求 |
106
+ |--------|----------|
107
+ | 简单修复 | 关键文件、修改点、验证命令、容易误判的边界 |
108
+ | 中等功能 | 模块顺序、接口/数据约束、测试策略、回滚/兼容注意事项 |
109
+ | 高风险构建 | 迁移顺序、失败恢复、权限/安全边界、并发/幂等、评审关注点 |
110
+
111
+ 禁止为了“看起来完整”生成机械微步骤;也禁止因为“只是参考”而写空泛描述。
112
+
113
+ ## 自检
114
+
115
+ 阶段 4 和阶段 6 完成后,必须自检:
116
+
117
+ ```markdown
118
+ ### 原生规划协议自检
119
+ - clarification-protocol:风险 / 复用 / 替代方案 / 推荐方案 / 关键决策均已记录
120
+ - decision-grilling-protocol:用户问题未超预算;每问包含推荐答案;能自查的问题未打扰用户
121
+ - implementation-planning-protocol:plan 简表、implementation-detail、test-scenarios 三件套一致,无占位符
122
+ ```
123
+
124
+ 该自检写入 execution-log;关键结论写入 events.ndjson。
@@ -0,0 +1,376 @@
1
+ ---
2
+ description: harness-plan 的需求提取模板、任务拆分规则、测试场景4维度详细格式。仅在执行规划需要参考详细格式时读取。
3
+ ---
4
+
5
+ # harness-plan
6
+
7
+ ## Worktree 决策文件模板
8
+
9
+ 阶段 2 必须生成 `.harness/changes/<change-name>/meta/worktree.json`。这是后续 `/harness-run` 是否创建/切换 worktree 的唯一机器可读依据。
10
+
11
+ ### 使用 Worktree
12
+
13
+ ```json
14
+ {
15
+ "requested": true,
16
+ "created": false,
17
+ "path": ".claude/worktrees/<change-name>",
18
+ "branch": "worktree/<change-name>",
19
+ "decisionBy": "user",
20
+ "decisionAt": "YYYY-MM-DD HH:mm",
21
+ "ownerSkill": "harness-run"
22
+ }
23
+ ```
24
+
25
+ ### 不使用 Worktree
26
+
27
+ ```json
28
+ {
29
+ "requested": false,
30
+ "created": false,
31
+ "path": null,
32
+ "branch": null,
33
+ "decisionBy": "user",
34
+ "decisionAt": "YYYY-MM-DD HH:mm",
35
+ "ownerSkill": null
36
+ }
37
+ ```
38
+
39
+ ### execution-log 记录示例
40
+
41
+ ```md
42
+ ## 阶段 2:Worktree 决策
43
+ - 用户选择:使用 Worktree
44
+ - 决策文件:.harness/changes/<change-name>/meta/worktree.json
45
+ - requested=true, created=false
46
+ - 创建责任:harness-run
47
+ ```
48
+
49
+ ## 参考 — 详细格式
50
+
51
+ ## 阶段 1:需求接收
52
+
53
+ 接收用户输入(文字描述或文档路径),提取关键信息:
54
+ - 功能范围(要做什么、不做什么)
55
+ - 业务规则(校验逻辑、权限约束)
56
+ - 数据模型变更(新表、新字段)
57
+ - 接口变更(新增/修改的端点)
58
+
59
+ 如果需求不明确(如"做一个指标管理功能"),列出具体疑问向用户澄清——不要猜测后直接设计。
60
+
61
+ ### 影响面检查
62
+
63
+ 方案汇总后(阶段 4 末尾),主动列出可能受影响但用户未提及的点,让用户一次性确认:
64
+
65
+ ```markdown
66
+ ### 影响面检查
67
+
68
+ 基于代码探索,以下点可能受本次变更影响但尚未讨论:
69
+
70
+ | # | 影响点 | 说明 | 需要处理? |
71
+ |:--:|--------|------|:----------:|
72
+ | 1 | 请求参数变更 | 数据契约删除字段后,前端请求格式变化 | 是/否 |
73
+ | 2 | 数据库迁移 | 字段删除前需迁移历史数据 | 是/否 |
74
+ | 3 | 其他模块引用 | 其他业务模块引用了该字段 | 是/否 |
75
+ | 4 | 前端兼容性 | 旧前端传已删除字段会报错 | 是/否 |
76
+ ```
77
+
78
+ > 这一检查的目的是减少设计文档生成后的迭代轮次——提前发现用户可能提出的修改。
79
+
80
+ ## 阶段 3:代码探索(只读)输出格式
81
+
82
+ ```markdown
83
+ ## 设计概要 — <功能名>
84
+
85
+ ### 涉及模块
86
+ - 接口层: xxx-server/.../xxx/
87
+ - 业务层: 同上
88
+ - 新增表: xxx
89
+ - 修改表: xxx (新增 N 字段)
90
+
91
+ ### 接口变更
92
+ | 方法 | 路径 | 类型 |
93
+ |------|------|:----:|
94
+ | GET | /xxx | 新增 |
95
+ | POST | /xxx | 修改 |
96
+
97
+ ### 关键决策
98
+ - 决策1: 说明
99
+ - 决策2: 说明
100
+ ```
101
+
102
+ ## 阶段 5:生成设计文档 ⚠️ 用户审核
103
+
104
+ 基于代码探索和需求澄清的结果,撰写设计文档并展示给用户审核。
105
+
106
+ > **本阶段是强制检查点。** 设计文档生成后必须展示给用户,收到确认后才能进入阶段 6(任务拆分)。设计文档确保方向正确后再细化任务——避免基于错误理解拆分出无效任务。
107
+
108
+ **用户确认后必须立即写入** `.harness/changes/<change-name>/spec/<change-name>-design.md`。如果此文件不存在,harness-plan 不得进入阶段 6。
109
+
110
+ **设计文档路径规则**:设计文档必须保存到 `.harness/changes/<change-name>/spec/<change-name>-design.md`。禁止保存到 `docs/superpowers/specs/` 作为正式产物;`/harness-plan` 不运行时调用 Superpowers。
111
+
112
+ ### 设计文档模板
113
+
114
+ ```markdown
115
+ ---
116
+ change-name: <change-name>
117
+ created: YYYY-MM-DD HH:mm
118
+ status: approved
119
+ source: harness-plan
120
+ ---
121
+
122
+ # <功能名> 设计文档
123
+
124
+ > 日期:YYYY-MM-DD
125
+ > 状态:待审核
126
+ > 范围:<简述改动范围>
127
+
128
+ ---
129
+
130
+ ## 1. 背景与动机
131
+
132
+ <为什么做这个改动?现有代码有什么问题或缺失?这个改动解决什么痛点?>
133
+
134
+ <如果涉及差距分析,用表格对比现状与目标:>
135
+
136
+ | 维度 | 现状 | 目标 | 差距级别 |
137
+ |------|------|------|---------|
138
+ | ... | ... | ... | 🔴/🟡/🟠 |
139
+
140
+ ---
141
+
142
+ ## 2. 方案概述
143
+
144
+ <选定方案的核心思路,2-3句话概括>
145
+
146
+ ---
147
+
148
+ ## 3. 详细设计
149
+
150
+ <按改动涉及的维度分节展示,每节包含:>
151
+ - 具体做法
152
+ - 配置变更
153
+ - 关键设计决策及原因
154
+
155
+ ---
156
+
157
+ ## 4. 变更清单
158
+
159
+ | 类别 | 文件路径 | 说明 |
160
+ |------|---------|------|
161
+ | 新增 | `exact/path/to/file` | ... |
162
+ | 修改 | `exact/path/to/file` | ... |
163
+
164
+ ---
165
+
166
+ ## 5. 验证方式
167
+
168
+ <如何测试这些改动?列出关键验证步骤>
169
+ ```
170
+
171
+ ### 设计文档自审
172
+
173
+ 写完设计文档后,用以下清单自检:
174
+ - □ 无"TBD"/"TODO"/未完成章节
175
+ - □ 各节之间无矛盾
176
+ - □ 范围聚焦,无不相关内容
177
+ - □ 无歧义需求(可被两种方式解读的,已选一种并明确说明)
178
+
179
+ ## 阶段 6:任务拆分
180
+
181
+ 将设计拆分为可追踪的任务,标注涉及文件和依赖关系。任务拆分执行 `protocols.md` 的 `implementation-planning-protocol`:plan 简表保持精炼,implementation-detail 按复杂度自适应展开。
182
+
183
+ ### 产物结构
184
+
185
+ 推荐结构:
186
+
187
+ ```
188
+ .harness/changes/<change-name>/plans/
189
+ ├── <change-name>-plan.md # harness 简洁任务表,run 默认读取
190
+ ├── <change-name>-implementation-detail.md # 原生自适应详细执行参考,run 补充读取
191
+ └── <change-name>-test-scenarios.md # 测试场景表
192
+ ```
193
+
194
+ ### 计划文件 frontmatter(必须)
195
+
196
+ ```yaml
197
+ ---
198
+ change-name: <change-name>
199
+ plan-name: <change-name>
200
+ created: YYYY-MM-DD HH:mm
201
+ source-spec: ../spec/<change-name>-design.md
202
+ implementation-detail: ./<change-name>-implementation-detail.md
203
+ test-scenarios: ./<change-name>-test-scenarios.md
204
+ status: approved
205
+ ---
206
+ ```
207
+
208
+ ### 简洁任务表格式(`<change-name>-plan.md`)
209
+
210
+ ```markdown
211
+ | # | 任务 | 涉及文件 | 依赖 |
212
+ |:--:|------|----------|:----:|
213
+ | 1 | 新建枚举类 | 2 个枚举 | - |
214
+ | 2 | 扩展错误码 | 错误码定义文件 | - |
215
+ | 3 | 编写数据库迁移脚本 | 1 个迁移脚本 | - |
216
+ | 4 | 新建数据模型 | 2 个数据模型 | 3 |
217
+ | ... | ... | ... | ... |
218
+ ```
219
+
220
+ ## 阶段 7:测试场景表 4 维度格式
221
+
222
+ 场景表覆盖 **4 个维度**:
223
+
224
+ ```markdown
225
+ ## 测试场景 — <功能名>
226
+ > 生成日期:YYYY-MM-DD | 对应需求:xxx.md | 对应计划:xxx-plan.md
227
+
228
+ ### 一、单元测试场景
229
+
230
+ #### 1.1 <类名.方法名>
231
+
232
+ | # | 分类 | 场景描述 | 输入 | 预期 |
233
+ |:--:|:----:|----------|------|------|
234
+ | UT-001 | 正常 | ... | ... | ... |
235
+ | UT-002 | 异常 | ... | ... | 抛 xxxException |
236
+ | UT-003 | 边界 | ... | ... | ... |
237
+
238
+ ### 二、接口测试场景
239
+
240
+ #### 2.1 POST /xxx
241
+
242
+ | # | 分类 | 场景描述 | 关键字段 | HTTP | code | message |
243
+ |:--:|:----:|----------|----------|:----:|:----:|--------|
244
+ | API-001 | 正常 | ... | ... | 200 | 0 | 成功 |
245
+ | API-002 | 校验 | ... | ... | 200 | xxx | ... |
246
+
247
+ ### 三、数据兼容场景
248
+
249
+ | # | 分类 | 场景描述 | 操作 | 数据特征 | 预期 |
250
+ |:--:|:----:|----------|:----:|----------|------|
251
+ | COM-001 | 旧数据 | ... | ... | ... | ... |
252
+
253
+ ### 四、集成场景
254
+
255
+ | # | 分类 | 场景描述 | 前置条件 | 步骤 | 预期 |
256
+ |:--:|:----:|----------|----------|------|------|
257
+ | INT-001 | 端到端 | ... | ... | N 步操作 | ... |
258
+ ```
259
+
260
+ ## 产物保存规则(跨阶段:阶段1/5/6/8)
261
+
262
+ 1. **自动确定变更名**:基于需求描述自动生成变更名(kebab-case),无需用户确认
263
+
264
+ 变更名命名规则:
265
+ - **kebab-case**(小写字母,单词间连字符)
266
+ - 从需求/功能描述中提取核心关键词
267
+ - 示例:`contribution-module`、`fix-duplicate-submit`
268
+ - 变更名一旦确定即为最终值,后续所有 skill 自动引用
269
+
270
+ > **与 Worktree 的关系**:如果阶段 2 用户选择了 worktree,变更名在创建 worktree 时随分支名确定(worktree 名即变更名)。如果未使用 worktree,变更名在阶段 1 自动生成。
271
+
272
+ 2. **创建产出目录**:用 Write 工具创建以下目录结构(Write 会自动创建中间目录):
273
+ ```
274
+ .harness/changes/<change-name>/meta/
275
+ .harness/changes/<change-name>/logs/
276
+ .harness/changes/<change-name>/spec/
277
+ .harness/changes/<change-name>/plans/
278
+ .harness/changes/<change-name>/evidence/
279
+ .harness/changes/<change-name>/reports/
280
+ .harness/changes/<change-name>/sqls/
281
+ .harness/changes/<change-name>/scripts/
282
+ .harness/changes/<change-name>/runtime/
283
+ .harness/changes/<change-name>/backups/
284
+ ```
285
+
286
+ 3. **保存设计文档**:将阶段 5 生成的设计文档保存到:
287
+ - `.harness/changes/<change-name>/spec/<change-name>-design.md`
288
+
289
+ 设计文档 frontmatter 格式:
290
+ ```yaml
291
+ ---
292
+ change-name: <change-name>
293
+ created: YYYY-MM-DD HH:mm
294
+ status: approved
295
+ source: harness-plan
296
+ ---
297
+ ```
298
+
299
+ > 如果 frontmatter 缺失,后续 run/test/review/submit/archive 不得依赖模型猜测 change-name。
300
+
301
+ 4. **初始化执行日志和结构化事件**:创建 `.harness/changes/<change-name>/logs/execution-log.md` 与 `.harness/changes/<change-name>/events.ndjson`,写入变更开始记录和 `phase.start` 事件:
302
+
303
+ ```markdown
304
+ # 执行日志 — <change-name>
305
+
306
+ > 变更创建时间:YYYY-MM-DD HH:MM | 变更名:<change-name>
307
+
308
+ ---
309
+ ```
310
+
311
+ 5. **保存计划文件**:计划文件包含 YAML frontmatter(含 change-name),保存到:
312
+ - `.harness/changes/<change-name>/plans/<change-name>-plan.md`(简洁任务表)
313
+ - `.harness/changes/<change-name>/plans/<change-name>-implementation-detail.md`(自适应详细执行参考)
314
+ - `.harness/changes/<change-name>/plans/<change-name>-test-scenarios.md`(测试场景表)
315
+
316
+ 计划文件 frontmatter 格式:
317
+ ```yaml
318
+ ---
319
+ change-name: <change-name>
320
+ plan-name: <change-name>
321
+ created: YYYY-MM-DD HH:mm
322
+ source-spec: ../spec/<change-name>-design.md
323
+ implementation-detail: ./<change-name>-implementation-detail.md
324
+ test-scenarios: ./<change-name>-test-scenarios.md
325
+ status: approved
326
+ ---
327
+ ```
328
+
329
+ > 如果 frontmatter 缺失,后续 run 不得依赖模型猜测 change-name 或关联文件路径。
330
+
331
+ 6. **等待用户确认后**,提示下一步:运行 `/harness-run`
332
+
333
+ > 后续 skill(run/test/review)启动时,会扫描 `.harness/changes/*/plans/`(排除 `.harness/archive/*/`)自动定位变更名目录,无需手动指定路径。同一时间最多一个未归档变更。
334
+
335
+ ## 阶段 8:结束前产物完整性检查 ⚠️ 强制
336
+
337
+ > **缺任一文件 → ❌FAIL,不得宣称 plan 完成。**
338
+
339
+ | 文件 | 必须存在 |
340
+ |------|:---:|
341
+ | `.harness/changes/<change>/spec/<change>-design.md` | ✅ |
342
+ | `.harness/changes/<change>/plans/<change>-plan.md` | ✅ |
343
+ | `.harness/changes/<change>/plans/<change>-implementation-detail.md` | ✅ |
344
+ | `.harness/changes/<change>/plans/<change>-test-scenarios.md` | ✅ |
345
+ | `.harness/changes/<change>/meta/worktree.json` | ✅ |
346
+ | `.harness/changes/<change>/logs/execution-log.md` | ✅ |
347
+ | `.harness/changes/<change>/events.ndjson` | ✅ |
348
+
349
+ ### Plan 结束行为规则
350
+
351
+ - **禁止询问执行模式**:Subagent-Driven / Inline Execution 属于 /harness-run 阶段
352
+ - 最终输出只提示产出物路径和下一步 `/harness-run`
353
+ - `docs/superpowers/` 不得作为最终产物路径出现在输出中
354
+
355
+ ## C2 升级口:Codex 跨 provider 评审(可选,未实现)
356
+
357
+ 阶段 7.5 的 harness-evaluator 是同 provider(Claude)评审,基于"上下文隔离 + 档位差异"。如需真正跨 provider 对抗(高风险构建:auth/支付/数据迁移/并发),可在 evaluator 返回 REVISE 后,可选调 Codex CLI 做二次确认。
358
+
359
+ ### 前置
360
+ - Codex CLI ≥ 0.130:`npm install -g @openai/codex@latest`(现 0.142.3)
361
+ - Codex 已登录:`codex login`(ChatGPT 账号即可)
362
+ - Windows + bridge 环境未实测,TODO(review)
363
+
364
+ ### 执行(示例)
365
+ ```powershell
366
+ powershell.exe -NoProfile -Command "codex exec -s read-only '$(Get-Content .harness/changes/<cn>/spec/<cn>-design.md -Raw)'"
367
+ ```
368
+
369
+ ### 安全线 ⚠️
370
+ - 首次 `codex exec -s read-only` 强制只读沙箱
371
+ - resume 必须加 `-c sandbox_mode="read-only"`(`resume` 不接受 `-s`,漏写会继承 config 默认,可能 `danger-full-access`)——这是最关键安全线
372
+ - Codex 全程只读,从不写文件
373
+ - 不 pin `-m` 模型(ChatGPT 账号鉴权会拒 `gpt-5.x-codex` 变体并 400 报错)
374
+
375
+ ### 状态
376
+ 本节为**升级口**,当前 harness-plan 阶段 7.5 默认走 harness-evaluator(C1),不自动触发 Codex。需手动启用,且建议先验证 Codex CLI 在当前环境可用。详见 grill-me 文档的 grill-me-codex Act 2(技术知识库/02-Skills与扩展/Skills合集/grill-me.md)。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: harness-review
3
- description: "6维度代码审查(架构/安全/规范/兼容/测试/性能),对照.claude/rules/和测试场景表,在隔离上下文运行。使用场景:代码审查、提交前检查、合并评审"
3
+ description: "6维度代码审查(架构/安全/规范/兼容/测试/性能),对照项目规则(见 .harness/context-index.json)和测试场景表,在隔离上下文运行。使用场景:代码审查、提交前检查、合并评审"
4
4
  argument-hint: "变更名或留空自动检测"
5
5
  effort: high
6
6
  allowed-tools: [Read, Write, Edit, Glob, Grep, Agent, Bash(powershell.exe:*)]
@@ -21,7 +21,7 @@ disallowed-tools:
21
21
  - Bash(curl *)
22
22
  - Bash(codegraph *)
23
23
  ---
24
- <!-- generated by harness_deploy.py; core=76dd32302df53f0b; overlay=none; do not edit -->
24
+ <!-- generated by harness_deploy.py; core=c7f197c6a6f1ff5a; overlay=java; agent=claude-code; do not edit -->
25
25
  # harness-review — 代码审查
26
26
 
27
27
  ## Purpose
@@ -39,7 +39,7 @@ disallowed-tools:
39
39
  ## Inputs
40
40
 
41
41
  - `$ARGUMENTS`:变更名(可选,留空时自动扫描 `.harness/changes/*/plans/` 确定)
42
- - 相关文件:`.harness/changes/*/plans/*-plan.md`、`.claude/rules/`、测试场景表
42
+ - 相关文件:`.harness/changes/*/plans/*-plan.md`、`项目规则(见 .harness/context-index.json)/`、测试场景表
43
43
 
44
44
  ## 前置条件
45
45
 
@@ -64,7 +64,11 @@ disallowed-tools:
64
64
 
65
65
  0. **启动准备** — 确定变更名(Glob `.harness/changes/*/plans/*-plan.md`,排除 `.harness/archive/*/`,读 frontmatter 提取 change-name);**append `phase.start` 事件**(不得等审查完成才补)
66
66
  1. **读取 worktree 状态(门禁检查)** — 读 `.harness/changes/<change-name>/meta/worktree.json`:`requested=true` 但 worktree 不存在 → 停止并提示先修复 `harness-run`,不得静默回主目录(否则 git diff 为空);`requested=true` 且 worktree 已创建 → spawned agent 用该 worktree 路径执行 `git diff`(确保审查 worktree 变更而非主目录);`requested=false` → 审查主目录变更
67
- 2. **委派 harness-reviewer** — 先运行 `python <skills-root>/scripts/harness_preflight.py check-agents --skills-root <skills-root> --agent harness-reviewer --json`。`usable=false` → **直接主会话审查**,记 `decision` 事件,**不委派**。`usable=true` 时用 Agent spawn `harness-reviewer`(只读, 6 维度)。返回空 / 无报告正文 → **不 retry**,降级主会话审查。
67
+ <!-- @section-id review.delegate -->
68
+ ### 2. 委派 harness-reviewer
69
+
70
+ 先运行 `python <skills-root>/scripts/harness_preflight.py check-agents --skills-root <skills-root> --agent harness-reviewer --json`。`usable=false` → **直接主会话审查**,记 `decision` 事件,**不委派**。`usable=true` 时用 Agent spawn `harness-reviewer`(只读, 6 维度)。返回空 / 无报告正文 → **不 retry**,降级主会话审查。
71
+
68
72
  3. **持久化报告(强制,主会话)** — Agent 返回后主会话 Write 到 `reports/review/review-report-*.md`。未 Write → 🟡WARN,不得宣称 review 完成。
69
73
  4. **生成修复反馈(原生协议)** — 若报告存在 RED/YELLOW 问题,执行 `protocols.md` 的 `review-fixback-protocol`,将问题转化为结构化 fixback 清单并落盘到 `.harness/changes/<change-name>/reports/review/fixback-YYYYMMDD-HHmm.md`。若无 RED/YELLOW,记录 `review-fixback-protocol: skipped(no findings)`。不调用 Superpowers `receiving-code-review`,也不记录外部 skill 降级。
70
74
  5. **收尾** — append `phase.end` / `artifact` 事件;控制台输出摘要
@@ -0,0 +1,124 @@
1
+ ---
2
+ description: harness-review 的6维度审查检查项详细列表。仅在执行完整代码审查时读取。
3
+ ---
4
+
5
+ # harness-review 检查清单
6
+
7
+ ## 启动准备:确定变更名
8
+
9
+ 用 Glob 搜索 `.harness/changes/*/plans/*-plan.md`(**排除 `.harness/archive/*/`**),读取 frontmatter 提取 `change-name`。默认最多一个未归档变更;如有多个,优先取最近修改的,或询问用户。后续所有路径基于此变更名。
10
+
11
+ **读取 worktree 状态**:读 `.harness/changes/<change-name>/meta/worktree.json`。`requested=true` 且 worktree 已创建 → 后续 `git diff` 的 `<项目路径>` 用 worktree 路径(`.claude/worktrees/<change-name>`);`requested=true` 但 worktree 不存在 → 停止,提示先修复 `harness-run`,不得静默回主目录。
12
+
13
+ ## 审查流程
14
+
15
+ ### 1. 获取变更范围
16
+
17
+ ```powershell
18
+ powershell.exe -Command "git -C '<项目路径>' diff --stat"
19
+ powershell.exe -Command "git -C '<项目路径>' diff"
20
+ ```
21
+
22
+ ### 2. 六维度逐文件审查
23
+
24
+ #### 维度 1:架构
25
+
26
+ | 检查项 | 为什么重要 |
27
+ |--------|------------|
28
+ | 接口层中有业务逻辑 | 破坏分层,后续修改影响面不可控 |
29
+ | 业务层间循环依赖 | 启动失败或运行时 StackOverflow |
30
+ | 接口层跨模块调用业务层 | 破坏模块边界,耦合扩散 |
31
+ | 业务层抛异常、接口层 try-catch | 异常处理应在全局异常处理器统一 |
32
+ | 写操作无事务边界 | 数据不一致(部分写入成功、部分失败) |
33
+
34
+ #### 维度 2:安全
35
+
36
+ | 检查项 | 为什么重要 |
37
+ |--------|------------|
38
+ | 硬编码密码/Token/密钥 | 代码泄露 = 凭据泄露 |
39
+ | 字符串拼接 SQL | SQL 注入风险 |
40
+ | 用户输入直接返回前端 | XSS 风险 |
41
+ | 对生产库执行写操作 | 数据丢失/破坏 |
42
+ | 日志打印敏感信息 | 日志泄露 Token/身份证号 |
43
+ | 新增接口无权限校验 | 未授权访问 |
44
+
45
+ #### 维度 3:编码规范
46
+
47
+ | 检查项 | 严重度 |
48
+ |--------|:------:|
49
+ | 数据类暴露不必要可变 setter(应改只读访问器) | YELLOW |
50
+ | 控制台输出替代日志框架 | YELLOW |
51
+ | 集合方法返回 null 而非空集合 | YELLOW |
52
+ | 魔法值未定义常量 | YELLOW |
53
+ | 公共 API 无文档注释 | YELLOW |
54
+
55
+ #### 维度 4:兼容性
56
+
57
+ | 检查项 | 为什么重要 |
58
+ |--------|------------|
59
+ | 删除/修改已发布接口的字段 | 旧前端/调用方立即报错 |
60
+ | 删除/重命名数据库已有字段 | 数据丢失 |
61
+ | 删除/修改已有枚举值 | 存量数据无法解析 |
62
+ | 新增字段不为 nullable | 旧数据无法查询/写入 |
63
+
64
+ #### 维度 5:测试
65
+
66
+ 对照场景表检查覆盖。重点看新增业务方法是否有对应单元测试,异常场景是否有覆盖。
67
+
68
+ #### 维度 6:性能
69
+
70
+ | 检查项 | 信号 |
71
+ |--------|------|
72
+ | N+1 查询 | 循环体内调用数据访问层查询 |
73
+ | 缺少索引 | 新增 WHERE 条件无对应索引 |
74
+ | 大事务 | 事务内含远程调用或文件 IO |
75
+ | 逐条 insert | 循环内单条 insert 而非批量 |
76
+
77
+ ### 3. 对照 项目规则(见 .harness/context-index.json)/ 检查
78
+
79
+ 逐个规则文件检查变更是否违规。违规项标注对应规则文件名和行号。
80
+
81
+ ### 4. 对照场景表检查
82
+
83
+ 如果场景表存在,逐条确认代码是否覆盖。未覆盖的标记为「测试缺口」。
84
+
85
+ ## 输出格式
86
+
87
+ 审查报告保存到 `.harness/changes/<change-name>/reports/review/review-report-YYYYMMDD-HHmm.md`(时间戳格式:日期+时分),同时在控制台输出摘要。完整报告模板见 `reference.md`「输出报告完整模板」,本文不再重复。
88
+
89
+ ## 原生修复反馈检查
90
+
91
+ ### fixback 生成确认(按需)
92
+
93
+ 如果用户需要修复任务清单,确认以下事项:
94
+
95
+ ```
96
+ □ 已读取 harness-review/protocols.md
97
+ □ 已执行 review-fixback-protocol(不调用外部 receiving-code-review)
98
+ □ RED/YELLOW 问题已转化为结构化修复任务清单
99
+ □ 修复任务清单含严重级别、位置、风险、修复建议、验证方式、submit 影响
100
+ □ fixback 已落盘到 .harness/changes/<change-name>/reports/review/fixback-YYYYMMDD-HHmm.md
101
+ ```
102
+
103
+ > 如果没有 RED/YELLOW 问题,记录 `review-fixback-protocol: skipped(no findings)`,不要生成空 fixback。`harness-review` 不检查 Superpowers 是否安装,也不记录外部 skill 降级。
104
+
105
+ ### 代码探索效率检查
106
+
107
+ ```
108
+ □ 审查代码时优先使用 codegraph_explore(一次获取多个符号源码)
109
+ □ 未逐个 Read 文件(违反 项目 codegraph 规则 规则)
110
+ ```
111
+
112
+ ## 关键原则
113
+
114
+ - 只审查 `git diff` 中的变更部分,不审查已有代码
115
+ - 对照 `项目规则(见 .harness/context-index.json)/` 是审查的基准线
116
+ - 区分严重级别:RED=高风险建议(强烈建议处理),YELLOW=中低风险建议
117
+ - 每个问题给出具体修复建议(文件:行号 + 建议做法)
118
+ - 如果 diff 为空,直接返回"无变更可审查"
119
+ - **review 结果仅供参考,不阻塞后续 submit/archive**
120
+
121
+ ## 事件记录
122
+
123
+ - [ ] append `phase.start` 事件(步骤 0 启动准备之前;`note` 含触发指令)
124
+ - [ ] append `phase.end` 事件(`note` 含耗时、结果、落盘 path、RED/YELLOW 统计摘要)