@bonesofspring/ai-rules 0.2.41 → 0.2.43

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 (528) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/bin/lib/seed-ai-local-team.js +41 -4
  3. package/docs/LOCAL-OVERLAY.md +3 -1
  4. package/docs/specs/INDEX.md +3 -1
  5. package/docs/specs/_templates/feature.md +6 -0
  6. package/package.json +1 -1
  7. package/presets/_shared/ai-local/scripts/derive-gate-signals.mjs +7 -0
  8. package/presets/_shared/assets/docs-specs/_templates/feature.md +6 -0
  9. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +1 -0
  10. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +21 -5
  11. package/presets/_shared/core/agent-team/plan-graph.md +9 -1
  12. package/presets/_shared/core/quality/anti-hallucination-contract.md +2 -0
  13. package/presets/_shared/core/quality/context-and-iteration.md +2 -1
  14. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +1140 -7
  15. package/presets/claude/android-kotlin/agents/ci-investigator.md +1 -1
  16. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  17. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  18. package/presets/claude/android-kotlin/agents/migration-specialist.md +1 -1
  19. package/presets/claude/android-kotlin/agents/performance-auditor.md +1 -1
  20. package/presets/claude/android-kotlin/agents/qa-tester.md +1 -1
  21. package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
  22. package/presets/claude/android-kotlin/agents/task-router.md +1 -1
  23. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  24. package/presets/claude/android-kotlin/agents/unit-test-generator.md +1 -1
  25. package/presets/claude/android-kotlin/agents/unit-test-healer.md +1 -1
  26. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  27. package/presets/claude/android-kotlin/commands/task-continue.md +1 -1
  28. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +1140 -7
  29. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  30. package/presets/claude/android-kotlin/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  31. package/presets/claude/android-kotlin/team/README.md +1 -1
  32. package/presets/claude/go/agents/feature-developer.md +1 -1
  33. package/presets/claude/go/agents/task-analyst.md +1 -1
  34. package/presets/claude/go/agents/task-router.md +1 -1
  35. package/presets/claude/go/commands/task-continue.md +1 -1
  36. package/presets/claude/go/hooks/chain-team-phases.sh +1140 -7
  37. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  38. package/presets/claude/go/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  39. package/presets/claude/go/team/README.md +1 -1
  40. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  41. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  42. package/presets/claude/ios-swift/agents/task-router.md +1 -1
  43. package/presets/claude/ios-swift/commands/task-continue.md +1 -1
  44. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +1140 -7
  45. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  46. package/presets/claude/ios-swift/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  47. package/presets/claude/ios-swift/team/README.md +1 -1
  48. package/presets/claude/java/agents/feature-developer.md +1 -1
  49. package/presets/claude/java/agents/task-analyst.md +1 -1
  50. package/presets/claude/java/agents/task-router.md +1 -1
  51. package/presets/claude/java/commands/task-continue.md +1 -1
  52. package/presets/claude/java/hooks/chain-team-phases.sh +1140 -7
  53. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  54. package/presets/claude/java/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  55. package/presets/claude/java/team/README.md +1 -1
  56. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  57. package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
  58. package/presets/claude/mcp-ts/agents/task-router.md +1 -1
  59. package/presets/claude/mcp-ts/commands/task-continue.md +1 -1
  60. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +1140 -7
  61. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  62. package/presets/claude/mcp-ts/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  63. package/presets/claude/mcp-ts/team/README.md +1 -1
  64. package/presets/claude/next/REPO_AGENTS.md +1 -1
  65. package/presets/claude/next/agents/ci-investigator.md +1 -1
  66. package/presets/claude/next/agents/debugger.md +1 -1
  67. package/presets/claude/next/agents/feature-developer.md +1 -1
  68. package/presets/claude/next/agents/migration-specialist.md +1 -1
  69. package/presets/claude/next/agents/openspec-author.md +26 -2
  70. package/presets/claude/next/agents/performance-auditor.md +1 -1
  71. package/presets/claude/next/agents/qa-tester.md +1 -1
  72. package/presets/claude/next/agents/solution-architect.md +1 -1
  73. package/presets/claude/next/agents/task-analyst.md +16 -7
  74. package/presets/claude/next/agents/task-router.md +21 -3
  75. package/presets/claude/next/agents/tech-writer.md +1 -1
  76. package/presets/claude/next/agents/unit-test-generator.md +1 -1
  77. package/presets/claude/next/agents/unit-test-healer.md +1 -1
  78. package/presets/claude/next/agents/unit-test-planner.md +1 -1
  79. package/presets/{cursor/next/ai-local/rules-library → claude/next/ai-local/rules}/task-levels.md +2 -0
  80. package/presets/claude/next/commands/task-continue.md +1 -1
  81. package/presets/claude/next/hooks/chain-team-phases.sh +1140 -7
  82. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  83. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +1 -1
  84. package/presets/claude/next/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  85. package/presets/claude/next/team/README.md +1 -1
  86. package/presets/claude/nuxt/agents/README.md +1 -1
  87. package/presets/claude/nuxt/agents/ci-investigator.md +1 -1
  88. package/presets/claude/nuxt/agents/debugger.md +1 -1
  89. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  90. package/presets/claude/nuxt/agents/migration-specialist.md +1 -1
  91. package/presets/claude/nuxt/agents/performance-auditor.md +1 -1
  92. package/presets/claude/nuxt/agents/qa-tester.md +1 -1
  93. package/presets/claude/nuxt/agents/solution-architect.md +1 -1
  94. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  95. package/presets/claude/nuxt/agents/task-router.md +1 -1
  96. package/presets/claude/nuxt/agents/tech-writer.md +1 -1
  97. package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
  98. package/presets/claude/nuxt/agents/unit-test-healer.md +1 -1
  99. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
  100. package/presets/claude/nuxt/commands/task-continue.md +1 -1
  101. package/presets/claude/nuxt/hooks/chain-team-phases.sh +1140 -7
  102. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  103. package/presets/claude/nuxt/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  104. package/presets/claude/nuxt/team/README.md +1 -1
  105. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
  106. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  107. package/presets/claude/php-hexagonal/agents/task-router.md +1 -1
  108. package/presets/claude/php-hexagonal/commands/task-continue.md +1 -1
  109. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +1140 -7
  110. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  111. package/presets/claude/php-hexagonal/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  112. package/presets/claude/php-hexagonal/team/README.md +1 -1
  113. package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
  114. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  115. package/presets/claude/php-laravel/agents/task-router.md +1 -1
  116. package/presets/claude/php-laravel/commands/task-continue.md +1 -1
  117. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +1140 -7
  118. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  119. package/presets/claude/php-laravel/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  120. package/presets/claude/php-laravel/team/README.md +1 -1
  121. package/presets/claude/svelte/agents/README.md +1 -1
  122. package/presets/claude/svelte/agents/ci-investigator.md +1 -1
  123. package/presets/claude/svelte/agents/debugger.md +1 -1
  124. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  125. package/presets/claude/svelte/agents/migration-specialist.md +1 -1
  126. package/presets/claude/svelte/agents/performance-auditor.md +1 -1
  127. package/presets/claude/svelte/agents/qa-tester.md +1 -1
  128. package/presets/claude/svelte/agents/solution-architect.md +1 -1
  129. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  130. package/presets/claude/svelte/agents/task-router.md +1 -1
  131. package/presets/claude/svelte/agents/tech-writer.md +1 -1
  132. package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
  133. package/presets/claude/svelte/agents/unit-test-healer.md +1 -1
  134. package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
  135. package/presets/claude/svelte/commands/task-continue.md +1 -1
  136. package/presets/claude/svelte/hooks/chain-team-phases.sh +1140 -7
  137. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +21 -5
  138. package/presets/claude/svelte/rules/tooling-and-review/anti-hallucination-contract.md +2 -0
  139. package/presets/claude/svelte/team/README.md +1 -1
  140. package/presets/cursor/android-kotlin/agents/ci-investigator.md +1 -1
  141. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  142. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  143. package/presets/cursor/android-kotlin/agents/migration-specialist.md +1 -1
  144. package/presets/cursor/android-kotlin/agents/performance-auditor.md +1 -1
  145. package/presets/cursor/android-kotlin/agents/qa-tester.md +1 -1
  146. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  147. package/presets/cursor/android-kotlin/agents/task-router.md +1 -1
  148. package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
  149. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
  150. package/presets/cursor/android-kotlin/agents/unit-test-healer.md +1 -1
  151. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
  152. package/presets/cursor/android-kotlin/commands/task-continue.md +1 -1
  153. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +1140 -7
  154. package/presets/cursor/android-kotlin/rules/anti-hallucination-contract.mdc +2 -0
  155. package/presets/cursor/android-kotlin/team/README.md +1 -1
  156. package/presets/cursor/go/agents/feature-developer.md +1 -1
  157. package/presets/cursor/go/agents/task-analyst.md +1 -1
  158. package/presets/cursor/go/agents/task-router.md +1 -1
  159. package/presets/cursor/go/commands/task-continue.md +1 -1
  160. package/presets/cursor/go/hooks/chain-team-phases.sh +1140 -7
  161. package/presets/cursor/go/rules/anti-hallucination-contract.mdc +2 -0
  162. package/presets/cursor/go/team/README.md +1 -1
  163. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  164. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  165. package/presets/cursor/ios-swift/agents/task-router.md +1 -1
  166. package/presets/cursor/ios-swift/commands/task-continue.md +1 -1
  167. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +1140 -7
  168. package/presets/cursor/ios-swift/rules/anti-hallucination-contract.mdc +2 -0
  169. package/presets/cursor/ios-swift/team/README.md +1 -1
  170. package/presets/cursor/java/agents/feature-developer.md +1 -1
  171. package/presets/cursor/java/agents/task-analyst.md +1 -1
  172. package/presets/cursor/java/agents/task-router.md +1 -1
  173. package/presets/cursor/java/commands/task-continue.md +1 -1
  174. package/presets/cursor/java/hooks/chain-team-phases.sh +1140 -7
  175. package/presets/cursor/java/rules/anti-hallucination-contract.mdc +2 -0
  176. package/presets/cursor/java/team/README.md +1 -1
  177. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  178. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  179. package/presets/cursor/mcp-ts/agents/task-router.md +1 -1
  180. package/presets/cursor/mcp-ts/commands/task-continue.md +1 -1
  181. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +1140 -7
  182. package/presets/cursor/mcp-ts/rules/anti-hallucination-contract.mdc +2 -0
  183. package/presets/cursor/mcp-ts/team/README.md +1 -1
  184. package/presets/cursor/next/REPO_AGENTS.md +1 -1
  185. package/presets/cursor/next/agents/README.md +1 -1
  186. package/presets/cursor/next/agents/build-verifier.md +2 -0
  187. package/presets/cursor/next/agents/ci-investigator.md +1 -1
  188. package/presets/cursor/next/agents/debugger.md +1 -1
  189. package/presets/cursor/next/agents/feature-developer.md +10 -1
  190. package/presets/cursor/next/agents/migration-specialist.md +1 -1
  191. package/presets/cursor/next/agents/openspec-author.md +26 -2
  192. package/presets/cursor/next/agents/performance-auditor.md +1 -1
  193. package/presets/cursor/next/agents/qa-tester.md +1 -1
  194. package/presets/cursor/next/agents/solution-architect.md +1 -1
  195. package/presets/cursor/next/agents/task-analyst.md +21 -7
  196. package/presets/cursor/next/agents/task-router.md +32 -3
  197. package/presets/cursor/next/agents/tech-writer.md +1 -1
  198. package/presets/cursor/next/agents/unit-test-generator.md +1 -1
  199. package/presets/cursor/next/agents/unit-test-healer.md +1 -1
  200. package/presets/cursor/next/agents/unit-test-planner.md +1 -1
  201. package/presets/cursor/next/ai-local/conventions.md +20 -0
  202. package/presets/{mavis/next/ai-local/rules-library → cursor/next/ai-local/rules}/task-levels.md +12 -0
  203. package/presets/cursor/next/commands/task-continue.md +1 -1
  204. package/presets/cursor/next/hooks/chain-team-phases.sh +1140 -7
  205. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +18 -2
  206. package/presets/cursor/next/rules/ai-local-overlay.mdc +1 -1
  207. package/presets/cursor/next/rules/anti-hallucination-contract.mdc +2 -0
  208. package/presets/cursor/next/team/README.md +1 -1
  209. package/presets/cursor/nuxt/agents/README.md +1 -1
  210. package/presets/cursor/nuxt/agents/ci-investigator.md +1 -1
  211. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  212. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  213. package/presets/cursor/nuxt/agents/migration-specialist.md +1 -1
  214. package/presets/cursor/nuxt/agents/performance-auditor.md +1 -1
  215. package/presets/cursor/nuxt/agents/qa-tester.md +1 -1
  216. package/presets/cursor/nuxt/agents/solution-architect.md +1 -1
  217. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  218. package/presets/cursor/nuxt/agents/task-router.md +1 -1
  219. package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
  220. package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
  221. package/presets/cursor/nuxt/agents/unit-test-healer.md +1 -1
  222. package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
  223. package/presets/cursor/nuxt/commands/task-continue.md +1 -1
  224. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +1140 -7
  225. package/presets/cursor/nuxt/rules/anti-hallucination-contract.mdc +2 -0
  226. package/presets/cursor/nuxt/team/README.md +1 -1
  227. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
  228. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  229. package/presets/cursor/php-hexagonal/agents/task-router.md +1 -1
  230. package/presets/cursor/php-hexagonal/commands/task-continue.md +1 -1
  231. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +1140 -7
  232. package/presets/cursor/php-hexagonal/rules/anti-hallucination-contract.mdc +2 -0
  233. package/presets/cursor/php-hexagonal/team/README.md +1 -1
  234. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
  235. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  236. package/presets/cursor/php-laravel/agents/task-router.md +1 -1
  237. package/presets/cursor/php-laravel/commands/task-continue.md +1 -1
  238. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +1140 -7
  239. package/presets/cursor/php-laravel/rules/anti-hallucination-contract.mdc +2 -0
  240. package/presets/cursor/php-laravel/team/README.md +1 -1
  241. package/presets/cursor/svelte/agents/README.md +1 -1
  242. package/presets/cursor/svelte/agents/ci-investigator.md +1 -1
  243. package/presets/cursor/svelte/agents/debugger.md +1 -1
  244. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  245. package/presets/cursor/svelte/agents/migration-specialist.md +1 -1
  246. package/presets/cursor/svelte/agents/performance-auditor.md +1 -1
  247. package/presets/cursor/svelte/agents/qa-tester.md +1 -1
  248. package/presets/cursor/svelte/agents/solution-architect.md +1 -1
  249. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  250. package/presets/cursor/svelte/agents/task-router.md +1 -1
  251. package/presets/cursor/svelte/agents/tech-writer.md +1 -1
  252. package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
  253. package/presets/cursor/svelte/agents/unit-test-healer.md +1 -1
  254. package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
  255. package/presets/cursor/svelte/commands/task-continue.md +1 -1
  256. package/presets/cursor/svelte/hooks/chain-team-phases.sh +1140 -7
  257. package/presets/cursor/svelte/rules/anti-hallucination-contract.mdc +2 -0
  258. package/presets/cursor/svelte/team/README.md +1 -1
  259. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  260. package/presets/mavis/android-kotlin/agents/ci-investigator.md +1 -1
  261. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  262. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  263. package/presets/mavis/android-kotlin/agents/migration-specialist.md +1 -1
  264. package/presets/mavis/android-kotlin/agents/performance-auditor.md +1 -1
  265. package/presets/mavis/android-kotlin/agents/qa-tester.md +1 -1
  266. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  267. package/presets/mavis/android-kotlin/agents/task-router.md +1 -1
  268. package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
  269. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
  270. package/presets/mavis/android-kotlin/agents/unit-test-healer.md +1 -1
  271. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
  272. package/presets/mavis/android-kotlin/commands/task-continue.md +1 -1
  273. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +1140 -7
  274. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +21 -5
  275. package/presets/mavis/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  276. package/presets/mavis/android-kotlin/team/README.md +1 -1
  277. package/presets/mavis/go/adapter-map.json +1 -1
  278. package/presets/mavis/go/agents/feature-developer.md +1 -1
  279. package/presets/mavis/go/agents/task-analyst.md +1 -1
  280. package/presets/mavis/go/agents/task-router.md +1 -1
  281. package/presets/mavis/go/commands/task-continue.md +1 -1
  282. package/presets/mavis/go/hooks/chain-team-phases.sh +1140 -7
  283. package/presets/mavis/go/rules/agent-team-orchestrator.md +21 -5
  284. package/presets/mavis/go/rules/anti-hallucination-contract.md +2 -0
  285. package/presets/mavis/go/team/README.md +1 -1
  286. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  287. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  288. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  289. package/presets/mavis/ios-swift/agents/task-router.md +1 -1
  290. package/presets/mavis/ios-swift/commands/task-continue.md +1 -1
  291. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +1140 -7
  292. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +21 -5
  293. package/presets/mavis/ios-swift/rules/anti-hallucination-contract.md +2 -0
  294. package/presets/mavis/ios-swift/team/README.md +1 -1
  295. package/presets/mavis/java/adapter-map.json +1 -1
  296. package/presets/mavis/java/agents/feature-developer.md +1 -1
  297. package/presets/mavis/java/agents/task-analyst.md +1 -1
  298. package/presets/mavis/java/agents/task-router.md +1 -1
  299. package/presets/mavis/java/commands/task-continue.md +1 -1
  300. package/presets/mavis/java/hooks/chain-team-phases.sh +1140 -7
  301. package/presets/mavis/java/rules/agent-team-orchestrator.md +21 -5
  302. package/presets/mavis/java/rules/anti-hallucination-contract.md +2 -0
  303. package/presets/mavis/java/team/README.md +1 -1
  304. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  305. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  306. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  307. package/presets/mavis/mcp-ts/agents/task-router.md +1 -1
  308. package/presets/mavis/mcp-ts/commands/task-continue.md +1 -1
  309. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +1140 -7
  310. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +21 -5
  311. package/presets/mavis/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  312. package/presets/mavis/mcp-ts/team/README.md +1 -1
  313. package/presets/mavis/next/REPO_AGENTS.md +1 -1
  314. package/presets/mavis/next/adapter-map.json +5 -5
  315. package/presets/mavis/next/agents/build-verifier.md +2 -0
  316. package/presets/mavis/next/agents/ci-investigator.md +1 -1
  317. package/presets/mavis/next/agents/debugger.md +1 -1
  318. package/presets/mavis/next/agents/feature-developer.md +10 -1
  319. package/presets/mavis/next/agents/migration-specialist.md +1 -1
  320. package/presets/mavis/next/agents/openspec-author.md +26 -2
  321. package/presets/mavis/next/agents/performance-auditor.md +1 -1
  322. package/presets/mavis/next/agents/qa-tester.md +1 -1
  323. package/presets/mavis/next/agents/solution-architect.md +1 -1
  324. package/presets/mavis/next/agents/task-analyst.md +21 -7
  325. package/presets/mavis/next/agents/task-router.md +32 -3
  326. package/presets/mavis/next/agents/tech-writer.md +1 -1
  327. package/presets/mavis/next/agents/unit-test-generator.md +1 -1
  328. package/presets/mavis/next/agents/unit-test-healer.md +1 -1
  329. package/presets/mavis/next/agents/unit-test-planner.md +1 -1
  330. package/presets/mavis/next/ai-local/conventions.md +20 -0
  331. package/presets/{opencode/next/ai-local/rules-library → mavis/next/ai-local/rules}/task-levels.md +12 -0
  332. package/presets/mavis/next/commands/task-continue.md +1 -1
  333. package/presets/mavis/next/hooks/chain-team-phases.sh +1140 -7
  334. package/presets/mavis/next/rules/agent-team-orchestrator.md +21 -5
  335. package/presets/mavis/next/rules/ai-local-overlay.md +1 -1
  336. package/presets/mavis/next/rules/anti-hallucination-contract.md +2 -0
  337. package/presets/mavis/next/team/README.md +1 -1
  338. package/presets/mavis/nuxt/adapter-map.json +1 -1
  339. package/presets/mavis/nuxt/agents/ci-investigator.md +1 -1
  340. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  341. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  342. package/presets/mavis/nuxt/agents/migration-specialist.md +1 -1
  343. package/presets/mavis/nuxt/agents/performance-auditor.md +1 -1
  344. package/presets/mavis/nuxt/agents/qa-tester.md +1 -1
  345. package/presets/mavis/nuxt/agents/solution-architect.md +1 -1
  346. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  347. package/presets/mavis/nuxt/agents/task-router.md +1 -1
  348. package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
  349. package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
  350. package/presets/mavis/nuxt/agents/unit-test-healer.md +1 -1
  351. package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
  352. package/presets/mavis/nuxt/commands/task-continue.md +1 -1
  353. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +1140 -7
  354. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +21 -5
  355. package/presets/mavis/nuxt/rules/anti-hallucination-contract.md +2 -0
  356. package/presets/mavis/nuxt/team/README.md +1 -1
  357. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  358. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
  359. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  360. package/presets/mavis/php-hexagonal/agents/task-router.md +1 -1
  361. package/presets/mavis/php-hexagonal/commands/task-continue.md +1 -1
  362. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +1140 -7
  363. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +21 -5
  364. package/presets/mavis/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  365. package/presets/mavis/php-hexagonal/team/README.md +1 -1
  366. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  367. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
  368. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  369. package/presets/mavis/php-laravel/agents/task-router.md +1 -1
  370. package/presets/mavis/php-laravel/commands/task-continue.md +1 -1
  371. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +1140 -7
  372. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +21 -5
  373. package/presets/mavis/php-laravel/rules/anti-hallucination-contract.md +2 -0
  374. package/presets/mavis/php-laravel/team/README.md +1 -1
  375. package/presets/mavis/svelte/adapter-map.json +1 -1
  376. package/presets/mavis/svelte/agents/ci-investigator.md +1 -1
  377. package/presets/mavis/svelte/agents/debugger.md +1 -1
  378. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  379. package/presets/mavis/svelte/agents/migration-specialist.md +1 -1
  380. package/presets/mavis/svelte/agents/performance-auditor.md +1 -1
  381. package/presets/mavis/svelte/agents/qa-tester.md +1 -1
  382. package/presets/mavis/svelte/agents/solution-architect.md +1 -1
  383. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  384. package/presets/mavis/svelte/agents/task-router.md +1 -1
  385. package/presets/mavis/svelte/agents/tech-writer.md +1 -1
  386. package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
  387. package/presets/mavis/svelte/agents/unit-test-healer.md +1 -1
  388. package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
  389. package/presets/mavis/svelte/commands/task-continue.md +1 -1
  390. package/presets/mavis/svelte/hooks/chain-team-phases.sh +1140 -7
  391. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +21 -5
  392. package/presets/mavis/svelte/rules/anti-hallucination-contract.md +2 -0
  393. package/presets/mavis/svelte/team/README.md +1 -1
  394. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  395. package/presets/opencode/android-kotlin/agents/ci-investigator.md +1 -1
  396. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  397. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  398. package/presets/opencode/android-kotlin/agents/migration-specialist.md +1 -1
  399. package/presets/opencode/android-kotlin/agents/performance-auditor.md +1 -1
  400. package/presets/opencode/android-kotlin/agents/qa-tester.md +1 -1
  401. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  402. package/presets/opencode/android-kotlin/agents/task-router.md +1 -1
  403. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  404. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  405. package/presets/opencode/android-kotlin/agents/unit-test-healer.md +1 -1
  406. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  407. package/presets/opencode/android-kotlin/commands/task-continue.md +1 -1
  408. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +1140 -7
  409. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +21 -5
  410. package/presets/opencode/android-kotlin/rules/anti-hallucination-contract.md +2 -0
  411. package/presets/opencode/android-kotlin/team/README.md +1 -1
  412. package/presets/opencode/go/adapter-map.json +1 -1
  413. package/presets/opencode/go/agents/feature-developer.md +1 -1
  414. package/presets/opencode/go/agents/task-analyst.md +1 -1
  415. package/presets/opencode/go/agents/task-router.md +1 -1
  416. package/presets/opencode/go/commands/task-continue.md +1 -1
  417. package/presets/opencode/go/hooks/chain-team-phases.sh +1140 -7
  418. package/presets/opencode/go/rules/agent-team-orchestrator.md +21 -5
  419. package/presets/opencode/go/rules/anti-hallucination-contract.md +2 -0
  420. package/presets/opencode/go/team/README.md +1 -1
  421. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  422. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  423. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  424. package/presets/opencode/ios-swift/agents/task-router.md +1 -1
  425. package/presets/opencode/ios-swift/commands/task-continue.md +1 -1
  426. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +1140 -7
  427. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +21 -5
  428. package/presets/opencode/ios-swift/rules/anti-hallucination-contract.md +2 -0
  429. package/presets/opencode/ios-swift/team/README.md +1 -1
  430. package/presets/opencode/java/adapter-map.json +1 -1
  431. package/presets/opencode/java/agents/feature-developer.md +1 -1
  432. package/presets/opencode/java/agents/task-analyst.md +1 -1
  433. package/presets/opencode/java/agents/task-router.md +1 -1
  434. package/presets/opencode/java/commands/task-continue.md +1 -1
  435. package/presets/opencode/java/hooks/chain-team-phases.sh +1140 -7
  436. package/presets/opencode/java/rules/agent-team-orchestrator.md +21 -5
  437. package/presets/opencode/java/rules/anti-hallucination-contract.md +2 -0
  438. package/presets/opencode/java/team/README.md +1 -1
  439. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  440. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  441. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  442. package/presets/opencode/mcp-ts/agents/task-router.md +1 -1
  443. package/presets/opencode/mcp-ts/commands/task-continue.md +1 -1
  444. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +1140 -7
  445. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +21 -5
  446. package/presets/opencode/mcp-ts/rules/anti-hallucination-contract.md +2 -0
  447. package/presets/opencode/mcp-ts/team/README.md +1 -1
  448. package/presets/opencode/next/REPO_AGENTS.md +1 -1
  449. package/presets/opencode/next/adapter-map.json +5 -5
  450. package/presets/opencode/next/agents/build-verifier.md +2 -0
  451. package/presets/opencode/next/agents/ci-investigator.md +1 -1
  452. package/presets/opencode/next/agents/debugger.md +1 -1
  453. package/presets/opencode/next/agents/feature-developer.md +10 -1
  454. package/presets/opencode/next/agents/migration-specialist.md +1 -1
  455. package/presets/opencode/next/agents/openspec-author.md +26 -2
  456. package/presets/opencode/next/agents/performance-auditor.md +1 -1
  457. package/presets/opencode/next/agents/qa-tester.md +1 -1
  458. package/presets/opencode/next/agents/solution-architect.md +1 -1
  459. package/presets/opencode/next/agents/task-analyst.md +21 -7
  460. package/presets/opencode/next/agents/task-router.md +32 -3
  461. package/presets/opencode/next/agents/tech-writer.md +1 -1
  462. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  463. package/presets/opencode/next/agents/unit-test-healer.md +1 -1
  464. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  465. package/presets/opencode/next/ai-local/conventions.md +20 -0
  466. package/presets/opencode/next/ai-local/rules/task-levels.md +40 -0
  467. package/presets/opencode/next/commands/task-continue.md +1 -1
  468. package/presets/opencode/next/hooks/chain-team-phases.sh +1140 -7
  469. package/presets/opencode/next/rules/agent-team-orchestrator.md +21 -5
  470. package/presets/opencode/next/rules/ai-local-overlay.md +1 -1
  471. package/presets/opencode/next/rules/anti-hallucination-contract.md +2 -0
  472. package/presets/opencode/next/team/README.md +1 -1
  473. package/presets/opencode/nuxt/adapter-map.json +1 -1
  474. package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
  475. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  476. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  477. package/presets/opencode/nuxt/agents/migration-specialist.md +1 -1
  478. package/presets/opencode/nuxt/agents/performance-auditor.md +1 -1
  479. package/presets/opencode/nuxt/agents/qa-tester.md +1 -1
  480. package/presets/opencode/nuxt/agents/solution-architect.md +1 -1
  481. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  482. package/presets/opencode/nuxt/agents/task-router.md +1 -1
  483. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  484. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  485. package/presets/opencode/nuxt/agents/unit-test-healer.md +1 -1
  486. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  487. package/presets/opencode/nuxt/commands/task-continue.md +1 -1
  488. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +1140 -7
  489. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +21 -5
  490. package/presets/opencode/nuxt/rules/anti-hallucination-contract.md +2 -0
  491. package/presets/opencode/nuxt/team/README.md +1 -1
  492. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  493. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
  494. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  495. package/presets/opencode/php-hexagonal/agents/task-router.md +1 -1
  496. package/presets/opencode/php-hexagonal/commands/task-continue.md +1 -1
  497. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +1140 -7
  498. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +21 -5
  499. package/presets/opencode/php-hexagonal/rules/anti-hallucination-contract.md +2 -0
  500. package/presets/opencode/php-hexagonal/team/README.md +1 -1
  501. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  502. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
  503. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  504. package/presets/opencode/php-laravel/agents/task-router.md +1 -1
  505. package/presets/opencode/php-laravel/commands/task-continue.md +1 -1
  506. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +1140 -7
  507. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +21 -5
  508. package/presets/opencode/php-laravel/rules/anti-hallucination-contract.md +2 -0
  509. package/presets/opencode/php-laravel/team/README.md +1 -1
  510. package/presets/opencode/svelte/adapter-map.json +1 -1
  511. package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
  512. package/presets/opencode/svelte/agents/debugger.md +1 -1
  513. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  514. package/presets/opencode/svelte/agents/migration-specialist.md +1 -1
  515. package/presets/opencode/svelte/agents/performance-auditor.md +1 -1
  516. package/presets/opencode/svelte/agents/qa-tester.md +1 -1
  517. package/presets/opencode/svelte/agents/solution-architect.md +1 -1
  518. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  519. package/presets/opencode/svelte/agents/task-router.md +1 -1
  520. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  521. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  522. package/presets/opencode/svelte/agents/unit-test-healer.md +1 -1
  523. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  524. package/presets/opencode/svelte/commands/task-continue.md +1 -1
  525. package/presets/opencode/svelte/hooks/chain-team-phases.sh +1140 -7
  526. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +21 -5
  527. package/presets/opencode/svelte/rules/anti-hallucination-contract.md +2 -0
  528. package/presets/opencode/svelte/team/README.md +1 -1
@@ -19,6 +19,8 @@ Do not invent MCP or tool input schemas. Read the installed schema, or mark unce
19
19
 
20
20
  `// VERIFY` is an uncertainty marker. It is not confirmation and it is not a passing check.
21
21
 
22
+ For team specs and `brief.md`, the artifact marker is a literal `[NEEDS CLARIFICATION]` line for each unresolved product decision. This contract points at that marker. `// VERIFY` stays a code comment and is not a spec token.
23
+
22
24
  Context7 is optional. When it is down or absent, write `// VERIFY` and state the uncertainty. Do not block the pipeline and do not invent the signature.
23
25
 
24
26
  Status claims follow `verification-before-completion`. Procedural rules stay in `anti-sycophancy-discipline`. Stack floors stay in their own stems.
@@ -87,7 +87,7 @@ Same JSON on Claude, Mavis, or OpenCode: `bash .<tool>/hooks/chain-team-phases.s
87
87
  ## Contracts
88
88
 
89
89
  - **Manifest field name:** receipts go in `artifacts[]`. Anything written under `entries` is ignored — the hook reads only `artifacts` and prints a dual-read warning naming the file. See `agent-team/agent-artifact-contracts.md` § Schema field name.
90
- - **Evidence paths:** `authoritativePaths[]` must be task-relative (`.ai.local/team/tasks/<slug>/…`). Put anything outside the task directory — e.g. `openspec/changes/**` — in `evidencePaths[]`.
90
+ - **Evidence paths:** `authoritativePaths[]` is relative to the task directory (`brief.md`). A repo-root path (`.ai.local/team/tasks/<slug>/brief.md`) is rejected. Put anything outside the task directory — e.g. `openspec/changes/**` — in `evidencePaths[]`.
91
91
  - Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
92
92
  - Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node node_modules/@bonesofspring/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
93
93
  - Commit `.ai.local/team/` templates (and slugs if you want them in clones).
@@ -3,7 +3,7 @@
3
3
  "platform": "mavis",
4
4
  "stack": "android-kotlin",
5
5
  "semanticSource": "cursor/android-kotlin",
6
- "sourceRevision": "97547bc622753e5b46554d9f82fcd43f5779f537773e0a1cda4a6961c1d4c36c",
6
+ "sourceRevision": "34e700d7ce6c67a72ea1613f6ab2c1befefb3e69305cd76dfce1cdbfa29547a4",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -98,7 +98,7 @@ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error
98
98
 
99
99
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
100
100
  - **Owned outputs:** `ci-report.md` plus any minimal CI fix paths; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `ci-report`) and preserve all foreign items in `manifest.artifacts[]`.
101
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
101
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
102
102
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
103
103
 
104
104
  Provide summary: failed check, root cause, files changed, validation commands run, `resolved`.
@@ -114,7 +114,7 @@ If a Sentry/Datadog (or similar) MCP is ready and the task is a production error
114
114
 
115
115
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
116
116
  - **Owned outputs:** `debug-report.md`; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `debug`) and preserve all foreign items in `manifest.artifacts[]`.
117
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
117
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
118
118
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
119
119
 
120
120
  Handoff summary: root cause, recommended fix, files touched (if any), `fixApplied`.
@@ -145,5 +145,5 @@ Load requestable rule `mcp-usage` when verifying third-party library APIs (Conte
145
145
 
146
146
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, current scope, and applicable prior findings.
147
147
  - **Owned outputs:** `implementation.md` plus changed implementation/test paths; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `implementation`) and preserve all foreign items in `manifest.artifacts[]`.
148
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
148
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
149
149
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
@@ -84,7 +84,7 @@ Load requestable rule `mcp-usage` when verifying third-party library APIs (Conte
84
84
 
85
85
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
86
86
  - **Owned outputs:** `migration-plan.md`; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `migration-plan`) and preserve all foreign items in `manifest.artifacts[]`.
87
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
87
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
88
88
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
89
89
 
90
90
  Hand off: orchestrator runs human gate (if configured), then `feature-developer` executes phases from the plan.
@@ -75,7 +75,7 @@ Load requestable rule `mcp-usage` when verifying third-party library APIs (Conte
75
75
 
76
76
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for brief when present and the scoped git diff / screens under audit.
77
77
  - **Owned outputs:** `perf-report.md`; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `perf-report`) and preserve all foreign items in `manifest.artifacts[]`.
78
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
78
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
79
79
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
80
80
 
81
81
  For standalone `perf-audit` intent, suggest `/technical-retro` or a follow-up `/task` to implement fixes.
@@ -71,7 +71,7 @@ Write the owned terminal receipt described under **Artifact contract**.
71
71
 
72
72
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
73
73
  - **Owned outputs:** updated JUnit / instrumentation tests and handoff summary; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `qa`) and preserve all foreign items in `manifest.artifacts[]`.
74
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
74
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
75
75
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
76
76
 
77
77
  Provide summary:
@@ -141,5 +141,5 @@ If the prompt/brief has a tracker URL (Linear/Jira/Notion/…) and that MCP is r
141
141
 
142
142
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume `pipeline.json`, the manifest routing entry, user-approved decisions, and any authoritative architecture/approval entries.
143
143
  - **Owned outputs:** `brief.md` and `decomposition.md` (plus `ux-design.md` when produced); upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `analysis`) and preserve all foreign items in `manifest.artifacts[]`.
144
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
144
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
145
145
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
@@ -179,5 +179,5 @@ Return the routing receipt to the orchestrator. The orchestration runtime/hook e
179
179
 
180
180
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume the user request and any existing authoritative task/decision entries.
181
181
  - **Owned outputs:** `pipeline.json` and the routing entry in `manifest.artifacts[]`; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `routing`) and preserve all foreign items in `manifest.artifacts[]`.
182
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
182
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
183
183
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
@@ -75,7 +75,7 @@ Post-delivery: when behavior or public docs changed and `docs/specs/` is in play
75
75
 
76
76
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
77
77
  - **Owned outputs:** `documentation.md` (and Docs paths only if the task explicitly requests); upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `documentation`) and preserve all foreign items in `manifest.artifacts[]`.
78
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
78
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
79
79
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
80
80
 
81
81
  Suggest `/technical-retro <slug>` when this is the final pipeline step.
@@ -62,7 +62,7 @@ Write the owned terminal receipt described under **Artifact contract**.
62
62
 
63
63
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
64
64
  - **Owned outputs:** new/updated `*Test` sources under `src/test`; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `unit-tests`) and preserve all foreign items in `manifest.artifacts[]`.
65
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
65
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
66
66
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
67
67
 
68
68
  Run affected unit tests via `./gradlew test` (`gradle-tooling`) when feasible. Report commands, pass/fail, and gaps.
@@ -61,7 +61,7 @@ Write the owned terminal receipt described under **Artifact contract**.
61
61
 
62
62
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
63
63
  - **Owned outputs:** fixed test sources; optional `debug-report.md` when complex; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `unit-test-heal`) and preserve all foreign items in `manifest.artifacts[]`.
64
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
64
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
65
65
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
66
66
 
67
67
  Report root cause, files changed, validation result, and remaining risk.
@@ -72,7 +72,7 @@ Write the owned terminal receipt described under **Artifact contract**.
72
72
 
73
73
  - **Authoritative inputs:** read `.ai.local/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the items in `manifest.artifacts[]` for `brief.md`, `decomposition.md`, and other authoritative prior artifacts for this step.
74
74
  - **Owned outputs:** `unit-test-plan.md`; upsert only the entry in `manifest.artifacts[]` assigned by handoff (`artifactOutputId`; fallback `unit-test-plan`) and preserve all foreign items in `manifest.artifacts[]`.
75
- - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
75
+ - **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present. `authoritativePaths` are relative to the task folder (`brief.md`), not the repo root; put external files in `evidencePaths`.
76
76
  - **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
77
77
 
78
78
  Do not write test source files — that is `unit-test-generator`'s job.
@@ -34,7 +34,7 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
34
34
 
35
35
  ## Checkpoint & resume
36
36
 
37
- Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent). Append the `/task-continue` arguments (when present) and any gate feedback verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; skip when the invocation carries no new user words).
37
+ Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/focus.md` first (a view, not the system of record), then `artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent). Append the `/task-continue` arguments (when present) and any gate feedback verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; skip when the invocation carries no new user words).
38
38
 
39
39
  Plan revision during execution is a named, auditable operation: an evaluation oracle failing twice, a scope/requirement change, or a newly discovered dependency triggers `decision: replan rev N → N+1` in `.memlog.md`, an edit to `decomposition.md` (+ optional `planRevision`), and a **re-run of the affected gate**.
40
40