@bonesofspring/ai-rules 0.2.80 → 0.2.86

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 (700) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/bin/lib/merged-config.js +49 -0
  3. package/bin/lib/seed-ai-local-team.js +2 -0
  4. package/bin/mavis-install.js +53 -3
  5. package/docs/MAVIS-COMPATIBILITY.md +136 -8
  6. package/docs/PRESET-CONTRIBUTION.md +25 -7
  7. package/docs/TEAM-DB.md +76 -3
  8. package/docs/openapi/team-db.v1.json +7069 -5895
  9. package/package.json +8 -2
  10. package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +20 -2
  11. package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
  12. package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +66 -16
  13. package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
  14. package/presets/_shared/ai-local/scripts/team-db-api.mjs +253 -15
  15. package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +310 -4
  16. package/presets/_shared/ai-local/scripts/team-db-project.mjs +733 -8
  17. package/presets/_shared/ai-local/scripts/team-db-schema.mjs +44 -0
  18. package/presets/_shared/ai-local/scripts/team-db.mjs +43 -3
  19. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
  20. package/presets/_shared/core/review/code-review-mr.md +19 -4
  21. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +40 -0
  22. package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
  23. package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
  24. package/presets/claude/android-kotlin/commands/update.md +1 -0
  25. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +40 -0
  26. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  27. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
  28. package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
  29. package/presets/claude/go/agents/code-reviewer.md +5 -1
  30. package/presets/claude/go/commands/update.md +1 -0
  31. package/presets/claude/go/hooks/chain-team-phases.sh +40 -0
  32. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  33. package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
  34. package/presets/claude/go/skills/code-review/SKILL.md +2 -1
  35. package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
  36. package/presets/claude/ios-swift/commands/update.md +1 -0
  37. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +40 -0
  38. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  39. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
  40. package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
  41. package/presets/claude/java/agents/code-reviewer.md +5 -1
  42. package/presets/claude/java/commands/update.md +1 -0
  43. package/presets/claude/java/hooks/chain-team-phases.sh +40 -0
  44. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  45. package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
  46. package/presets/claude/java/skills/code-review/SKILL.md +2 -1
  47. package/presets/claude/mcp-ts/commands/update.md +1 -0
  48. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +40 -0
  49. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  50. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
  51. package/presets/claude/mol/REPO_AGENTS.md +1 -1
  52. package/presets/claude/mol/agents/code-reviewer.md +5 -1
  53. package/presets/claude/mol/agents/task-router.md +1 -1
  54. package/presets/claude/mol/commands/update.md +1 -0
  55. package/presets/claude/mol/hooks/chain-team-phases.sh +40 -0
  56. package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  57. package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
  58. package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
  59. package/presets/claude/next/REPO_AGENTS.md +1 -1
  60. package/presets/claude/next/agents/build-verifier.md +2 -1
  61. package/presets/claude/next/agents/code-reviewer.md +5 -1
  62. package/presets/claude/next/agents/feature-developer.md +1 -1
  63. package/presets/claude/next/agents/task-router.md +1 -1
  64. package/presets/claude/next/commands/update.md +1 -0
  65. package/presets/claude/next/hooks/chain-team-phases.sh +40 -0
  66. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  67. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
  68. package/presets/claude/next/skills/code-review/SKILL.md +2 -1
  69. package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
  70. package/presets/claude/nuxt/agents/task-router.md +1 -1
  71. package/presets/claude/nuxt/commands/update.md +1 -0
  72. package/presets/claude/nuxt/hooks/chain-team-phases.sh +40 -0
  73. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  74. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
  75. package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
  76. package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
  77. package/presets/claude/php-hexagonal/commands/update.md +1 -0
  78. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  79. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  80. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
  81. package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
  82. package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
  83. package/presets/claude/php-laravel/commands/update.md +1 -0
  84. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +40 -0
  85. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  86. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
  87. package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
  88. package/presets/claude/svelte/agents/code-reviewer.md +5 -1
  89. package/presets/claude/svelte/agents/task-router.md +1 -1
  90. package/presets/claude/svelte/commands/update.md +1 -0
  91. package/presets/claude/svelte/hooks/chain-team-phases.sh +40 -0
  92. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
  93. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
  94. package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
  95. package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
  96. package/presets/cursor/android-kotlin/commands/update.md +1 -0
  97. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +40 -0
  98. package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
  99. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
  100. package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
  101. package/presets/cursor/go/agents/code-reviewer.md +5 -1
  102. package/presets/cursor/go/commands/update.md +1 -0
  103. package/presets/cursor/go/hooks/chain-team-phases.sh +40 -0
  104. package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
  105. package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
  106. package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
  107. package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
  108. package/presets/cursor/ios-swift/commands/update.md +1 -0
  109. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +40 -0
  110. package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
  111. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
  112. package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
  113. package/presets/cursor/java/agents/code-reviewer.md +5 -1
  114. package/presets/cursor/java/commands/update.md +1 -0
  115. package/presets/cursor/java/hooks/chain-team-phases.sh +40 -0
  116. package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
  117. package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
  118. package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
  119. package/presets/cursor/mcp-ts/commands/update.md +1 -0
  120. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +40 -0
  121. package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
  122. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
  123. package/presets/cursor/mol/REPO_AGENTS.md +1 -1
  124. package/presets/cursor/mol/agents/code-reviewer.md +5 -1
  125. package/presets/cursor/mol/agents/task-router.md +1 -1
  126. package/presets/cursor/mol/commands/update.md +1 -0
  127. package/presets/cursor/mol/hooks/chain-team-phases.sh +40 -0
  128. package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
  129. package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
  130. package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
  131. package/presets/cursor/next/REPO_AGENTS.md +1 -1
  132. package/presets/cursor/next/agents/build-verifier.md +2 -1
  133. package/presets/cursor/next/agents/code-reviewer.md +5 -1
  134. package/presets/cursor/next/agents/feature-developer.md +1 -1
  135. package/presets/cursor/next/agents/task-router.md +1 -1
  136. package/presets/cursor/next/commands/update.md +1 -0
  137. package/presets/cursor/next/hooks/README.md +2 -0
  138. package/presets/cursor/next/hooks/chain-team-phases.sh +40 -0
  139. package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
  140. package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
  141. package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
  142. package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
  143. package/presets/cursor/nuxt/agents/task-router.md +1 -1
  144. package/presets/cursor/nuxt/commands/update.md +1 -0
  145. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +40 -0
  146. package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
  147. package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
  148. package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
  149. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
  150. package/presets/cursor/php-hexagonal/commands/update.md +1 -0
  151. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  152. package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
  153. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
  154. package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
  155. package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
  156. package/presets/cursor/php-laravel/commands/update.md +1 -0
  157. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +40 -0
  158. package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
  159. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
  160. package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
  161. package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
  162. package/presets/cursor/svelte/agents/task-router.md +1 -1
  163. package/presets/cursor/svelte/commands/update.md +1 -0
  164. package/presets/cursor/svelte/hooks/chain-team-phases.sh +40 -0
  165. package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
  166. package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
  167. package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
  168. package/presets/mavis/android-kotlin/MAVIS.md +9 -3
  169. package/presets/mavis/android-kotlin/README.md +3 -1
  170. package/presets/mavis/android-kotlin/adapter-map.json +104 -44
  171. package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
  172. package/presets/mavis/android-kotlin/commands/update.md +1 -0
  173. package/presets/mavis/android-kotlin/hooks/README.md +29 -7
  174. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +40 -0
  175. package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
  176. package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
  177. package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
  178. package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
  179. package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
  180. package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
  181. package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
  182. package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
  183. package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
  184. package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
  185. package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
  186. package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  187. package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
  188. package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
  189. package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
  190. package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
  191. package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
  192. package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
  193. package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
  194. package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
  195. package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
  196. package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
  197. package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
  198. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
  199. package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
  200. package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
  201. package/presets/mavis/go/MAVIS.md +9 -3
  202. package/presets/mavis/go/README.md +3 -1
  203. package/presets/mavis/go/adapter-map.json +94 -40
  204. package/presets/mavis/go/agents/code-reviewer.md +5 -1
  205. package/presets/mavis/go/commands/update.md +1 -0
  206. package/presets/mavis/go/hooks/README.md +29 -7
  207. package/presets/mavis/go/hooks/chain-team-phases.sh +40 -0
  208. package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
  209. package/presets/mavis/go/hooks/run-hook.mjs +103 -0
  210. package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
  211. package/presets/mavis/go/native-skills/README.md +15 -0
  212. package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
  213. package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
  214. package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
  215. package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
  216. package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
  217. package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
  218. package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  219. package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
  220. package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
  221. package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
  222. package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
  223. package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
  224. package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
  225. package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
  226. package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
  227. package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
  228. package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
  229. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
  230. package/presets/mavis/go/rules/code-review-mr.md +19 -4
  231. package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
  232. package/presets/mavis/ios-swift/MAVIS.md +9 -3
  233. package/presets/mavis/ios-swift/README.md +3 -1
  234. package/presets/mavis/ios-swift/adapter-map.json +104 -44
  235. package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
  236. package/presets/mavis/ios-swift/commands/update.md +1 -0
  237. package/presets/mavis/ios-swift/hooks/README.md +29 -7
  238. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +40 -0
  239. package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
  240. package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
  241. package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
  242. package/presets/mavis/ios-swift/native-skills/README.md +15 -0
  243. package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
  244. package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
  245. package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
  246. package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
  247. package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
  248. package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
  249. package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  250. package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
  251. package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
  252. package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
  253. package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
  254. package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
  255. package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
  256. package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
  257. package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
  258. package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
  259. package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
  260. package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
  261. package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
  262. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
  263. package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
  264. package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
  265. package/presets/mavis/java/MAVIS.md +9 -3
  266. package/presets/mavis/java/README.md +3 -1
  267. package/presets/mavis/java/adapter-map.json +94 -40
  268. package/presets/mavis/java/agents/code-reviewer.md +5 -1
  269. package/presets/mavis/java/commands/update.md +1 -0
  270. package/presets/mavis/java/hooks/README.md +29 -7
  271. package/presets/mavis/java/hooks/chain-team-phases.sh +40 -0
  272. package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
  273. package/presets/mavis/java/hooks/run-hook.mjs +103 -0
  274. package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
  275. package/presets/mavis/java/native-skills/README.md +15 -0
  276. package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
  277. package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
  278. package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
  279. package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
  280. package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
  281. package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
  282. package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  283. package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
  284. package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
  285. package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
  286. package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
  287. package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
  288. package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
  289. package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
  290. package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
  291. package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
  292. package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
  293. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
  294. package/presets/mavis/java/rules/code-review-mr.md +19 -4
  295. package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
  296. package/presets/mavis/mcp-ts/MAVIS.md +9 -3
  297. package/presets/mavis/mcp-ts/README.md +3 -1
  298. package/presets/mavis/mcp-ts/adapter-map.json +77 -32
  299. package/presets/mavis/mcp-ts/commands/update.md +1 -0
  300. package/presets/mavis/mcp-ts/hooks/README.md +29 -7
  301. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +40 -0
  302. package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
  303. package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
  304. package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
  305. package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
  306. package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
  307. package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
  308. package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
  309. package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
  310. package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  311. package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
  312. package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
  313. package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
  314. package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
  315. package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
  316. package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
  317. package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
  318. package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
  319. package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
  320. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
  321. package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
  322. package/presets/mavis/mol/MAVIS.md +9 -3
  323. package/presets/mavis/mol/README.md +3 -1
  324. package/presets/mavis/mol/REPO_AGENTS.md +1 -1
  325. package/presets/mavis/mol/adapter-map.json +94 -40
  326. package/presets/mavis/mol/agents/code-reviewer.md +5 -1
  327. package/presets/mavis/mol/agents/task-router.md +1 -1
  328. package/presets/mavis/mol/commands/update.md +1 -0
  329. package/presets/mavis/mol/hooks/README.md +29 -7
  330. package/presets/mavis/mol/hooks/chain-team-phases.sh +40 -0
  331. package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
  332. package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
  333. package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
  334. package/presets/mavis/mol/native-skills/README.md +15 -0
  335. package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
  336. package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
  337. package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
  338. package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
  339. package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
  340. package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  341. package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
  342. package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
  343. package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
  344. package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
  345. package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
  346. package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
  347. package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
  348. package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
  349. package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
  350. package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
  351. package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
  352. package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
  353. package/presets/mavis/mol/rules/code-review-mr.md +19 -4
  354. package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
  355. package/presets/mavis/next/MAVIS.md +9 -3
  356. package/presets/mavis/next/README.md +3 -1
  357. package/presets/mavis/next/REPO_AGENTS.md +1 -1
  358. package/presets/mavis/next/adapter-map.json +128 -53
  359. package/presets/mavis/next/agents/build-verifier.md +2 -1
  360. package/presets/mavis/next/agents/code-reviewer.md +5 -1
  361. package/presets/mavis/next/agents/feature-developer.md +1 -1
  362. package/presets/mavis/next/agents/task-router.md +1 -1
  363. package/presets/mavis/next/commands/update.md +1 -0
  364. package/presets/mavis/next/hooks/README.md +29 -7
  365. package/presets/mavis/next/hooks/chain-team-phases.sh +40 -0
  366. package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
  367. package/presets/mavis/next/hooks/run-hook.mjs +103 -0
  368. package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
  369. package/presets/mavis/next/native-skills/README.md +15 -0
  370. package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
  371. package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
  372. package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
  373. package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
  374. package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
  375. package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
  376. package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
  377. package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
  378. package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
  379. package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  380. package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
  381. package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
  382. package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
  383. package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
  384. package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
  385. package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
  386. package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
  387. package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
  388. package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
  389. package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
  390. package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
  391. package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
  392. package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
  393. package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
  394. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
  395. package/presets/mavis/next/rules/code-review-mr.md +19 -4
  396. package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
  397. package/presets/mavis/nuxt/MAVIS.md +9 -3
  398. package/presets/mavis/nuxt/README.md +3 -1
  399. package/presets/mavis/nuxt/adapter-map.json +109 -46
  400. package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
  401. package/presets/mavis/nuxt/agents/task-router.md +1 -1
  402. package/presets/mavis/nuxt/commands/update.md +1 -0
  403. package/presets/mavis/nuxt/hooks/README.md +29 -7
  404. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +40 -0
  405. package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
  406. package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
  407. package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
  408. package/presets/mavis/nuxt/native-skills/README.md +15 -0
  409. package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
  410. package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
  411. package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
  412. package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
  413. package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
  414. package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
  415. package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
  416. package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  417. package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
  418. package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
  419. package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
  420. package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
  421. package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
  422. package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
  423. package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
  424. package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
  425. package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
  426. package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
  427. package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
  428. package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
  429. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
  430. package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
  431. package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
  432. package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
  433. package/presets/mavis/php-hexagonal/README.md +3 -1
  434. package/presets/mavis/php-hexagonal/adapter-map.json +94 -40
  435. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
  436. package/presets/mavis/php-hexagonal/commands/update.md +1 -0
  437. package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
  438. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  439. package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
  440. package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
  441. package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
  442. package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
  443. package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
  444. package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
  445. package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
  446. package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
  447. package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
  448. package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
  449. package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  450. package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
  451. package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
  452. package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
  453. package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
  454. package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
  455. package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
  456. package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
  457. package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
  458. package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
  459. package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
  460. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
  461. package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
  462. package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
  463. package/presets/mavis/php-laravel/MAVIS.md +9 -3
  464. package/presets/mavis/php-laravel/README.md +3 -1
  465. package/presets/mavis/php-laravel/adapter-map.json +94 -40
  466. package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
  467. package/presets/mavis/php-laravel/commands/update.md +1 -0
  468. package/presets/mavis/php-laravel/hooks/README.md +29 -7
  469. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +40 -0
  470. package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
  471. package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
  472. package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
  473. package/presets/mavis/php-laravel/native-skills/README.md +15 -0
  474. package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
  475. package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
  476. package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
  477. package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
  478. package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
  479. package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
  480. package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  481. package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
  482. package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
  483. package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
  484. package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
  485. package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
  486. package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
  487. package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
  488. package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
  489. package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
  490. package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
  491. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
  492. package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
  493. package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
  494. package/presets/mavis/platform-contract.json +18 -5
  495. package/presets/mavis/svelte/MAVIS.md +9 -3
  496. package/presets/mavis/svelte/README.md +3 -1
  497. package/presets/mavis/svelte/adapter-map.json +109 -46
  498. package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
  499. package/presets/mavis/svelte/agents/task-router.md +1 -1
  500. package/presets/mavis/svelte/commands/update.md +1 -0
  501. package/presets/mavis/svelte/hooks/README.md +29 -7
  502. package/presets/mavis/svelte/hooks/chain-team-phases.sh +40 -0
  503. package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
  504. package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
  505. package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
  506. package/presets/mavis/svelte/native-skills/README.md +15 -0
  507. package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
  508. package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
  509. package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
  510. package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
  511. package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
  512. package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
  513. package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
  514. package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
  515. package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
  516. package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
  517. package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
  518. package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
  519. package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
  520. package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
  521. package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
  522. package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
  523. package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
  524. package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
  525. package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
  526. package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
  527. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
  528. package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
  529. package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
  530. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  531. package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
  532. package/presets/opencode/android-kotlin/commands/update.md +1 -0
  533. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +40 -0
  534. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
  535. package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
  536. package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
  537. package/presets/opencode/go/adapter-map.json +1 -1
  538. package/presets/opencode/go/agents/code-reviewer.md +5 -1
  539. package/presets/opencode/go/commands/update.md +1 -0
  540. package/presets/opencode/go/hooks/chain-team-phases.sh +40 -0
  541. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
  542. package/presets/opencode/go/rules/code-review-mr.md +19 -4
  543. package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
  544. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  545. package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
  546. package/presets/opencode/ios-swift/commands/update.md +1 -0
  547. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +40 -0
  548. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
  549. package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
  550. package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
  551. package/presets/opencode/java/adapter-map.json +1 -1
  552. package/presets/opencode/java/agents/code-reviewer.md +5 -1
  553. package/presets/opencode/java/commands/update.md +1 -0
  554. package/presets/opencode/java/hooks/chain-team-phases.sh +40 -0
  555. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
  556. package/presets/opencode/java/rules/code-review-mr.md +19 -4
  557. package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
  558. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  559. package/presets/opencode/mcp-ts/commands/update.md +1 -0
  560. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +40 -0
  561. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
  562. package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
  563. package/presets/opencode/mol/REPO_AGENTS.md +1 -1
  564. package/presets/opencode/mol/adapter-map.json +1 -1
  565. package/presets/opencode/mol/agents/code-reviewer.md +5 -1
  566. package/presets/opencode/mol/agents/task-router.md +1 -1
  567. package/presets/opencode/mol/commands/update.md +1 -0
  568. package/presets/opencode/mol/hooks/chain-team-phases.sh +40 -0
  569. package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
  570. package/presets/opencode/mol/rules/code-review-mr.md +19 -4
  571. package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
  572. package/presets/opencode/next/REPO_AGENTS.md +1 -1
  573. package/presets/opencode/next/adapter-map.json +1 -1
  574. package/presets/opencode/next/agents/build-verifier.md +2 -1
  575. package/presets/opencode/next/agents/code-reviewer.md +5 -1
  576. package/presets/opencode/next/agents/feature-developer.md +1 -1
  577. package/presets/opencode/next/agents/task-router.md +1 -1
  578. package/presets/opencode/next/commands/update.md +1 -0
  579. package/presets/opencode/next/hooks/chain-team-phases.sh +40 -0
  580. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
  581. package/presets/opencode/next/rules/code-review-mr.md +19 -4
  582. package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
  583. package/presets/opencode/nuxt/adapter-map.json +1 -1
  584. package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
  585. package/presets/opencode/nuxt/agents/task-router.md +1 -1
  586. package/presets/opencode/nuxt/commands/update.md +1 -0
  587. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +40 -0
  588. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
  589. package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
  590. package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
  591. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  592. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
  593. package/presets/opencode/php-hexagonal/commands/update.md +1 -0
  594. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  595. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
  596. package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
  597. package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
  598. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  599. package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
  600. package/presets/opencode/php-laravel/commands/update.md +1 -0
  601. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +40 -0
  602. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
  603. package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
  604. package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
  605. package/presets/opencode/plugins/task-status/README.md +4 -3
  606. package/presets/opencode/plugins/task-status/deepseek.ts +68 -34
  607. package/presets/opencode/plugins/task-status/task-view.ts +4 -1
  608. package/presets/opencode/plugins/task-status/tui.tsx +16 -18
  609. package/presets/opencode/plugins/task-status/types.ts +5 -1
  610. package/presets/opencode/svelte/adapter-map.json +1 -1
  611. package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
  612. package/presets/opencode/svelte/agents/task-router.md +1 -1
  613. package/presets/opencode/svelte/commands/update.md +1 -0
  614. package/presets/opencode/svelte/hooks/chain-team-phases.sh +40 -0
  615. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
  616. package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
  617. package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
  618. package/presets/zcode/android-kotlin/adapter-map.json +1 -1
  619. package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
  620. package/presets/zcode/android-kotlin/commands/update.md +1 -0
  621. package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +40 -0
  622. package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
  623. package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
  624. package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
  625. package/presets/zcode/go/adapter-map.json +1 -1
  626. package/presets/zcode/go/agents/code-reviewer.md +5 -1
  627. package/presets/zcode/go/commands/update.md +1 -0
  628. package/presets/zcode/go/hooks/chain-team-phases.sh +40 -0
  629. package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
  630. package/presets/zcode/go/rules/code-review-mr.md +19 -4
  631. package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
  632. package/presets/zcode/ios-swift/adapter-map.json +1 -1
  633. package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
  634. package/presets/zcode/ios-swift/commands/update.md +1 -0
  635. package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +40 -0
  636. package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
  637. package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
  638. package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
  639. package/presets/zcode/java/adapter-map.json +1 -1
  640. package/presets/zcode/java/agents/code-reviewer.md +5 -1
  641. package/presets/zcode/java/commands/update.md +1 -0
  642. package/presets/zcode/java/hooks/chain-team-phases.sh +40 -0
  643. package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
  644. package/presets/zcode/java/rules/code-review-mr.md +19 -4
  645. package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
  646. package/presets/zcode/mcp-ts/adapter-map.json +1 -1
  647. package/presets/zcode/mcp-ts/commands/update.md +1 -0
  648. package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +40 -0
  649. package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
  650. package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
  651. package/presets/zcode/mol/REPO_AGENTS.md +1 -1
  652. package/presets/zcode/mol/adapter-map.json +1 -1
  653. package/presets/zcode/mol/agents/code-reviewer.md +5 -1
  654. package/presets/zcode/mol/agents/task-router.md +1 -1
  655. package/presets/zcode/mol/commands/update.md +1 -0
  656. package/presets/zcode/mol/hooks/chain-team-phases.sh +40 -0
  657. package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
  658. package/presets/zcode/mol/rules/code-review-mr.md +19 -4
  659. package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
  660. package/presets/zcode/next/REPO_AGENTS.md +1 -1
  661. package/presets/zcode/next/adapter-map.json +1 -1
  662. package/presets/zcode/next/agents/build-verifier.md +2 -1
  663. package/presets/zcode/next/agents/code-reviewer.md +5 -1
  664. package/presets/zcode/next/agents/feature-developer.md +1 -1
  665. package/presets/zcode/next/agents/task-router.md +1 -1
  666. package/presets/zcode/next/commands/update.md +1 -0
  667. package/presets/zcode/next/hooks/chain-team-phases.sh +40 -0
  668. package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
  669. package/presets/zcode/next/rules/code-review-mr.md +19 -4
  670. package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
  671. package/presets/zcode/nuxt/adapter-map.json +1 -1
  672. package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
  673. package/presets/zcode/nuxt/agents/task-router.md +1 -1
  674. package/presets/zcode/nuxt/commands/update.md +1 -0
  675. package/presets/zcode/nuxt/hooks/chain-team-phases.sh +40 -0
  676. package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
  677. package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
  678. package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
  679. package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
  680. package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
  681. package/presets/zcode/php-hexagonal/commands/update.md +1 -0
  682. package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
  683. package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
  684. package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
  685. package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
  686. package/presets/zcode/php-laravel/adapter-map.json +1 -1
  687. package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
  688. package/presets/zcode/php-laravel/commands/update.md +1 -0
  689. package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +40 -0
  690. package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
  691. package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
  692. package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
  693. package/presets/zcode/svelte/adapter-map.json +1 -1
  694. package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
  695. package/presets/zcode/svelte/agents/task-router.md +1 -1
  696. package/presets/zcode/svelte/commands/update.md +1 -0
  697. package/presets/zcode/svelte/hooks/chain-team-phases.sh +40 -0
  698. package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
  699. package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
  700. package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
@@ -913,6 +913,44 @@ export const REPOSITORY_ATTRIBUTIONS_SQL = SQL`CREATE TABLE task_repository_attr
913
913
  ) STRICT;
914
914
  `;
915
915
 
916
+ /**
917
+ * Migration 11: the project registry projection. Two tables mirroring the
918
+ * repository registry set; both foreign keys cascade because both endpoints
919
+ * are reader-validated registry records (`project-registry.json` refuses an
920
+ * unknown endpoint), unlike `task_repositories.task_slug`, which deliberately
921
+ * names unprojected folders. `status` stays validated on write, never a
922
+ * `CHECK`: a hand-edited file must still project its row.
923
+ */
924
+ export const PROJECT_REGISTRY_SQL = SQL`CREATE TABLE projects (
925
+ id TEXT PRIMARY KEY,
926
+ name TEXT NOT NULL,
927
+ description TEXT,
928
+ status TEXT NOT NULL,
929
+ revision INTEGER NOT NULL CHECK (revision >= 1),
930
+ created_at TEXT NOT NULL,
931
+ updated_at TEXT NOT NULL,
932
+ content_hash TEXT NOT NULL,
933
+ parse_error TEXT,
934
+ projected_at TEXT NOT NULL,
935
+ first_seen_at TEXT NOT NULL,
936
+ last_seen_at TEXT NOT NULL,
937
+ absent_at TEXT
938
+ ) STRICT;
939
+
940
+ CREATE TABLE project_repositories (
941
+ project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
942
+ repository_id TEXT NOT NULL REFERENCES repositories(id) ON DELETE CASCADE,
943
+ added_at TEXT NOT NULL,
944
+ content_hash TEXT NOT NULL,
945
+ projected_at TEXT NOT NULL,
946
+ PRIMARY KEY (project_id, repository_id)
947
+ ) STRICT;
948
+
949
+ CREATE INDEX idx_projects_absent ON projects(absent_at);
950
+ CREATE INDEX idx_projects_status_name ON projects(status, name COLLATE NOCASE);
951
+ CREATE INDEX idx_project_repositories_repository ON project_repositories(repository_id);
952
+ `;
953
+
916
954
  const sha256 = (value) => crypto.createHash('sha256').update(value).digest('hex');
917
955
  /**
918
956
  * Ordered, immutable migrations. The literal checksum is verified before any
@@ -979,6 +1017,12 @@ export const MIGRATIONS = [
979
1017
  sql: REPOSITORY_ATTRIBUTIONS_SQL,
980
1018
  checksum: '4677b2b62b5b9c8cb571f5706abac97487175c8251facdab6b42bf2371f2720e',
981
1019
  },
1020
+ {
1021
+ version: 11,
1022
+ name: '0011-project-registry',
1023
+ sql: PROJECT_REGISTRY_SQL,
1024
+ checksum: '46ff23b832f6d4b7891e90c119173b5f5f533ffa4b47dc43ebf6a605de812779',
1025
+ },
982
1026
  ];
983
1027
 
984
1028
  /** Highest migration version shipped by this module. */
@@ -77,6 +77,7 @@ import {
77
77
  LEDGER_HEADER_ROW,
78
78
  listTaskDirectories,
79
79
  parseReviewLedgerMarkdown,
80
+ runProjectsCommand,
80
81
  runRepositoriesCommand,
81
82
  searchProjection,
82
83
  syncProjection,
@@ -116,6 +117,10 @@ const USAGE = `usage:
116
117
  team-db.mjs repositories apply --file <path|-> [--dry-run] [--root <team-dir>] [--json]
117
118
  team-db.mjs repositories put --file <path|-> [--dry-run] [--root <team-dir>] [--json]
118
119
  team-db.mjs repositories delete <id> [--force] [--revision <n>] [--root <team-dir>] [--json]
120
+ team-db.mjs projects put --file <path|-> [--dry-run] [--root <team-dir>] [--json]
121
+ team-db.mjs projects delete <id> [--force] [--revision <n>] [--root <team-dir>] [--json]
122
+ team-db.mjs projects link|unlink <projectId> <repositoryId> [--root <team-dir>] [--json]
123
+ team-db.mjs projects list|project [--root <team-dir>] [--json] [--quiet]
119
124
  team-db.mjs schedule [--root <team-dir>] [--once] [--interval-ms <n>]
120
125
  [--grace-ms <n>] [--drain-ms <n>] [--json] [--quiet]
121
126
  team-db.mjs tracker add --file <path|-> [--root <team-dir>] [--json] [--quiet]
@@ -171,7 +176,7 @@ const BOOLEAN_FLAGS = new Set([
171
176
  'claim',
172
177
  'force',
173
178
  ]);
174
- const COMMANDS = new Set(['init', 'check', 'search', 'sync', 'delete', 'migrate-tasks', 'ledger-check', 'serve', 'jobs', 'schedule', 'tracker', 'task-run', 'repositories']);
179
+ const COMMANDS = new Set(['init', 'check', 'search', 'sync', 'delete', 'migrate-tasks', 'ledger-check', 'serve', 'jobs', 'schedule', 'tracker', 'task-run', 'repositories', 'projects']);
175
180
  const ALLOWED_FLAGS = {
176
181
  init: new Set(['root', 'rebuild']),
177
182
  check: new Set(['root']),
@@ -186,6 +191,7 @@ const ALLOWED_FLAGS = {
186
191
  tracker: new Set(['root', 'json', 'quiet', 'file', 'dry-run', 'older-than', 'status', 'ready', 'claim']),
187
192
  'task-run': new Set(['root', 'json', 'task', 'item', 'link', 'run']),
188
193
  repositories: new Set(['root', 'json', 'quiet', 'file', 'dry-run', 'force', 'revision']),
194
+ projects: new Set(['root', 'json', 'quiet', 'file', 'dry-run', 'force', 'revision']),
189
195
  };
190
196
 
191
197
  const JOBS_POSITIONALS = new Set([
@@ -222,11 +228,14 @@ const TASK_RUN_POSITIONALS = new Set(['start', 'stop', 'supervise', 'list', 'sho
222
228
 
223
229
  const REPOSITORIES_POSITIONALS = new Set(['list', 'project', 'apply', 'put', 'delete']);
224
230
 
231
+ const PROJECTS_POSITIONALS = new Set(['list', 'project', 'put', 'delete', 'link', 'unlink']);
232
+
225
233
  const POSITIONAL_VERBS = {
226
234
  jobs: JOBS_POSITIONALS,
227
235
  tracker: TRACKER_POSITIONALS,
228
236
  'task-run': TASK_RUN_POSITIONALS,
229
237
  repositories: REPOSITORIES_POSITIONALS,
238
+ projects: PROJECTS_POSITIONALS,
230
239
  };
231
240
 
232
241
  const parseArgs = (argv) => {
@@ -248,9 +257,11 @@ const parseArgs = (argv) => {
248
257
  continue;
249
258
  }
250
259
  // `jobs <verb> [id]`, `tracker <verb> [id|entryId]` and `task-run <verb>`
251
- // are the only commands with positional arguments.
260
+ // are the only commands with positional arguments; `projects link|unlink
261
+ // <projectId> <repositoryId>` is the one family that carries two.
252
262
  const verbs = POSITIONAL_VERBS[command];
253
- if (verbs && positionals.length < 2) {
263
+ const positionalCap = command === 'projects' ? 3 : 2;
264
+ if (verbs && positionals.length < positionalCap) {
254
265
  if (positionals.length === 0 && !verbs.has(token)) {
255
266
  teamDbFail('E_USAGE', `unknown ${command} subcommand "${token}"`, 3);
256
267
  }
@@ -618,6 +629,34 @@ const runRepositories = (flags, positionals) => {
618
629
  }
619
630
  };
620
631
 
632
+ const runProjects = (flags, positionals) => {
633
+ const [subcommand = 'list', firstId, secondId] = positionals;
634
+ try {
635
+ const result = runProjectsCommand(subcommand, [firstId, secondId].filter((entry) => entry !== undefined), {
636
+ root: flags.root,
637
+ json: Boolean(flags.json),
638
+ quiet: Boolean(flags.quiet),
639
+ file: flags.file,
640
+ dryRun: Boolean(flags['dry-run']),
641
+ force: Boolean(flags.force),
642
+ revision: flags.revision === undefined ? undefined : Number(flags.revision),
643
+ });
644
+ if (result.output) process.stdout.write(result.output);
645
+ return result.exitCode;
646
+ } catch (error) {
647
+ const code = error instanceof TeamDbError ? error.code : 'E_INTERNAL';
648
+ const exitCode = error instanceof TeamDbError ? error.exitCode : 2;
649
+ const failure = { ok: false, code, message: error.message };
650
+ if (error instanceof TeamDbError && typeof error.parameter === 'string') failure.parameter = error.parameter;
651
+ // The delete guard names the member count; the API lifts it into
652
+ // `details.memberRepositories` without parsing prose.
653
+ if (error && Number.isInteger(error.memberRepositories)) failure.memberRepositories = error.memberRepositories;
654
+ if (flags.json) process.stdout.write(`${JSON.stringify(failure)}\n`);
655
+ process.stderr.write(`${error.message}\n`);
656
+ return exitCode;
657
+ }
658
+ };
659
+
621
660
  const runTaskRunner = async (flags, positionals) => {
622
661
  const [subcommand = 'status'] = positionals;
623
662
  try {
@@ -784,6 +823,7 @@ export async function runCli(argv) {
784
823
  if (command === 'serve') return runServe(flags);
785
824
  if (command === 'jobs') return runJobs(flags, positionals);
786
825
  if (command === 'repositories') return runRepositories(flags, positionals);
826
+ if (command === 'projects') return runProjects(flags, positionals);
787
827
  if (command === 'tracker') return runTracker(flags, positionals);
788
828
  if (command === 'task-run') return runTaskRunner(flags, positionals);
789
829
  if (command === 'schedule') return runSchedule(flags);
@@ -126,6 +126,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
126
126
  - Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
127
127
  - The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
128
128
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
129
+ - A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
129
130
 
130
131
  ## Out-of-band producer passes
131
132
 
@@ -25,7 +25,7 @@ Concrete rule stems — in **Stack notes**.
25
25
 
26
26
  ## Depth passes
27
27
 
28
- A diff-shaped read is a floor, not a review. Run these five passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
28
+ A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
29
29
 
30
30
  - **`finding`** — reported like any other finding, with `path:line`.
31
31
  - **`no finding`** — with one line of evidence: what was searched or read.
@@ -39,10 +39,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
39
39
  3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
40
40
  4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
41
41
  5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
42
+ 6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
42
43
 
43
44
  ## Review breadth budget
44
45
 
45
- - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The five depth passes still run on what was read.
46
+ - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
46
47
  - Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
47
48
  - Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
48
49
  - When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
@@ -65,8 +66,22 @@ Procedure details live in skill `code-review`. Required shape:
65
66
  - Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
66
67
  - Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
67
68
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
68
- - End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
69
- - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it.
69
+ - A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
70
+ - End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
71
+ - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
72
+
73
+ ## Review without an acceptance criterion
74
+
75
+ A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
76
+
77
+ - null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
78
+ - empty, boundary, repeated, and concurrent inputs;
79
+ - resource limits: buffers, timeouts, retries, exit codes, stdio;
80
+ - secrets and credentials reaching logs, files, URLs, or an outbound request;
81
+ - path resolution that assumes a cwd; quoting of argv and of interpolated shell;
82
+ - idempotency of migrations, re-runs, and partial failures;
83
+ - machine-local runtime state that a commit would carry;
84
+ - a second unowned copy of a rule that already exists elsewhere.
70
85
 
71
86
  ## Verdict and terminal receipt
72
87
 
@@ -1375,6 +1375,40 @@ function missingConsumerArtifacts() {
1375
1375
  );
1376
1376
  return ids.filter((id) => !done.has(id));
1377
1377
  }
1378
+ // A step that names a gate agent is a promise the plan made to the diff. The
1379
+ // consumer config is optional, but a declared gate is not: an unreviewed diff
1380
+ // completed while the plan said "code-reviewer" reads as a passed review.
1381
+ // A step the run skipped (status.skippedSteps) or skipIf-matched never promised
1382
+ // anything, so it is not required here.
1383
+ const GATE_AGENTS = new Set([
1384
+ 'build-verifier',
1385
+ 'code-reviewer',
1386
+ 'mockup-reviewer',
1387
+ 'security-reviewer',
1388
+ 'accessibility-reviewer',
1389
+ 'api-contract-reviewer',
1390
+ 'performance-auditor',
1391
+ ]);
1392
+ function missingDeclaredGateArtifacts() {
1393
+ if (steps.length === 0) return [];
1394
+ let manifest = { artifacts: [] };
1395
+ try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
1396
+ const done = new Set(
1397
+ (manifest.artifacts || [])
1398
+ .filter((artifact) => artifact && artifact.status === 'completed')
1399
+ .map((artifact) => artifact.id),
1400
+ );
1401
+ const missing = [];
1402
+ steps.forEach((step, index) => {
1403
+ if (!step || isStepSkipped(index)) return;
1404
+ for (const agent of getStepAgents(step)) {
1405
+ if (!GATE_AGENTS.has(agent)) continue;
1406
+ const id = artifactOutputIdFor(step, agent);
1407
+ if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
1408
+ }
1409
+ });
1410
+ return [...new Set(missing)];
1411
+ }
1378
1412
  function completePipeline(statusPatch) {
1379
1413
  const missing = missingConsumerArtifacts();
1380
1414
  if (missing.length > 0) {
@@ -1382,6 +1416,12 @@ function completePipeline(statusPatch) {
1382
1416
  out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
1383
1417
  process.exit(0);
1384
1418
  }
1419
+ const missingGates = missingDeclaredGateArtifacts();
1420
+ if (missingGates.length > 0) {
1421
+ writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
1422
+ out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
1423
+ process.exit(0);
1424
+ }
1385
1425
  // task_completed is written only on this branch. A missing receipt blocks
1386
1426
  // above and must not be counted as a finished task.
1387
1427
  status.state = 'completed';
@@ -4,6 +4,7 @@
4
4
  // the generator copies it into each Cursor stack.
5
5
 
6
6
  import fs from 'node:fs';
7
+ import path from 'node:path';
7
8
  import { fileURLToPath } from 'node:url';
8
9
 
9
10
  const SLUG_MAX = 48;
@@ -12,6 +13,18 @@ const ELIGIBLE =
12
13
  /^(?:(?:yarn|pnpm|npm|npx|bun)\s+(?:run\s+)?(?:test|lint)(?::\S+)?|git\s+(?:log|diff)|go\s+test|cargo\s+test|pytest|phpunit)\b/;
13
14
  const META = /[|&;<>()\n`]|\$\(/;
14
15
 
16
+ // The rewritten command runs in the agent shell's cwd, which may be a package
17
+ // directory (`app/`); a repo-relative wrapper path breaks there.
18
+ const here = path.dirname(fileURLToPath(import.meta.url));
19
+ const WRAPPER = path.join(here, '..', '..', '.ai.local', 'scripts', 'run-compact.mjs');
20
+
21
+ /** POSIX-quote the wrapper path; a path a shell cannot quote stays unrewritten. */
22
+ const shellQuote = (value) => {
23
+ if (/^[A-Za-z0-9_@%+=:,./-]+$/.test(value)) return value;
24
+ if (value.includes("'") || value.includes('\n')) return null;
25
+ return `'${value}'`;
26
+ };
27
+
15
28
  const slugOf = (env) => {
16
29
  const value = typeof env?.TEAM_TASK_SLUG === 'string' ? env.TEAM_TASK_SLUG : '';
17
30
  if (value.length === 0 || value.length > SLUG_MAX || !SLUG_RE.test(value)) return '';
@@ -27,7 +40,9 @@ export const rewriteCommand = (command, env) => {
27
40
  if (text.split(/\s+/).some((token) => token.includes("'") || token.includes('"'))) return null;
28
41
  if (text.includes('dump-output.mjs') || text.includes('run-compact.mjs')) return null;
29
42
  if (!ELIGIBLE.test(text)) return null;
30
- return `node .ai.local/scripts/run-compact.mjs --task ${slug} -- ${text}`;
43
+ const wrapper = shellQuote(WRAPPER);
44
+ if (wrapper === null) return null;
45
+ return `node ${wrapper} --task ${slug} -- ${text}`;
31
46
  };
32
47
 
33
48
  const allow = () => {
@@ -76,8 +76,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
76
76
  # Code review: <slug>
77
77
 
78
78
  ## Verdict
79
- APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
79
+ APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
80
80
  Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
81
+ `APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
81
82
 
82
83
  ## Critical (must fix)
83
84
  - ...
@@ -88,6 +89,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
88
89
  ## Suggestions (nice to have)
89
90
  - ...
90
91
 
92
+ ## Open questions
93
+ - <question> — check: <what would settle it> — blocker-candidate: yes | no
94
+
91
95
  ## Depth passes
92
96
  | Pass | Outcome | Evidence or reason |
93
97
  |------|---------|--------------------|
@@ -18,6 +18,7 @@ npx @bonesofspring/ai-rules update
18
18
  2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
19
19
  3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
20
20
  4. Do not report the numeric exit code.
21
+ 5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
21
22
 
22
23
  ## Record
23
24
 
@@ -1412,6 +1412,40 @@ function missingConsumerArtifacts() {
1412
1412
  );
1413
1413
  return ids.filter((id) => !done.has(id));
1414
1414
  }
1415
+ // A step that names a gate agent is a promise the plan made to the diff. The
1416
+ // consumer config is optional, but a declared gate is not: an unreviewed diff
1417
+ // completed while the plan said "code-reviewer" reads as a passed review.
1418
+ // A step the run skipped (status.skippedSteps) or skipIf-matched never promised
1419
+ // anything, so it is not required here.
1420
+ const GATE_AGENTS = new Set([
1421
+ 'build-verifier',
1422
+ 'code-reviewer',
1423
+ 'mockup-reviewer',
1424
+ 'security-reviewer',
1425
+ 'accessibility-reviewer',
1426
+ 'api-contract-reviewer',
1427
+ 'performance-auditor',
1428
+ ]);
1429
+ function missingDeclaredGateArtifacts() {
1430
+ if (steps.length === 0) return [];
1431
+ let manifest = { artifacts: [] };
1432
+ try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
1433
+ const done = new Set(
1434
+ (manifest.artifacts || [])
1435
+ .filter((artifact) => artifact && artifact.status === 'completed')
1436
+ .map((artifact) => artifact.id),
1437
+ );
1438
+ const missing = [];
1439
+ steps.forEach((step, index) => {
1440
+ if (!step || isStepSkipped(index)) return;
1441
+ for (const agent of getStepAgents(step)) {
1442
+ if (!GATE_AGENTS.has(agent)) continue;
1443
+ const id = artifactOutputIdFor(step, agent);
1444
+ if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
1445
+ }
1446
+ });
1447
+ return [...new Set(missing)];
1448
+ }
1415
1449
  function completePipeline(statusPatch) {
1416
1450
  const missing = missingConsumerArtifacts();
1417
1451
  if (missing.length > 0) {
@@ -1419,6 +1453,12 @@ function completePipeline(statusPatch) {
1419
1453
  out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
1420
1454
  process.exit(0);
1421
1455
  }
1456
+ const missingGates = missingDeclaredGateArtifacts();
1457
+ if (missingGates.length > 0) {
1458
+ writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
1459
+ out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
1460
+ process.exit(0);
1461
+ }
1422
1462
  // task_completed is written only on this branch. A missing receipt blocks
1423
1463
  // above and must not be counted as a finished task.
1424
1464
  status.state = 'completed';
@@ -137,6 +137,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
137
137
  - Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
138
138
  - The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
139
139
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
140
+ - A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
140
141
 
141
142
  ## Out-of-band producer passes
142
143
 
@@ -32,7 +32,7 @@ Concrete rule stems — in **Stack notes**.
32
32
 
33
33
  ## Depth passes
34
34
 
35
- A diff-shaped read is a floor, not a review. Run these five passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
35
+ A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
36
36
 
37
37
  - **`finding`** — reported like any other finding, with `path:line`.
38
38
  - **`no finding`** — with one line of evidence: what was searched or read.
@@ -46,10 +46,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
46
46
  3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
47
47
  4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
48
48
  5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
49
+ 6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
49
50
 
50
51
  ## Review breadth budget
51
52
 
52
- - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The five depth passes still run on what was read.
53
+ - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
53
54
  - Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
54
55
  - Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
55
56
  - When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
@@ -72,8 +73,22 @@ Procedure details live in skill `code-review`. Required shape:
72
73
  - Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
73
74
  - Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
74
75
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
75
- - End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
76
- - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it.
76
+ - A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
77
+ - End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
78
+ - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
79
+
80
+ ## Review without an acceptance criterion
81
+
82
+ A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
83
+
84
+ - null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
85
+ - empty, boundary, repeated, and concurrent inputs;
86
+ - resource limits: buffers, timeouts, retries, exit codes, stdio;
87
+ - secrets and credentials reaching logs, files, URLs, or an outbound request;
88
+ - path resolution that assumes a cwd; quoting of argv and of interpolated shell;
89
+ - idempotency of migrations, re-runs, and partial failures;
90
+ - machine-local runtime state that a commit would carry;
91
+ - a second unowned copy of a rule that already exists elsewhere.
77
92
 
78
93
  ## Verdict and terminal receipt
79
94
 
@@ -31,7 +31,8 @@ Lead with findings ordered by severity. Required shape (also in `code-review`):
31
31
  - Each finding: **`path:line`** — problem — impact — concrete fix direction.
32
32
  - Severity: **`blocker` | `important` | `nit`** (list blocker → nit).
33
33
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding context.
34
- - End with a verdict line: **`Safe to merge | needs changes | reject`**.
34
+ - A behaviour you cannot settle by reading is a question, not silence: list it under `## Open questions` as `- <question> — check: <what would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`.
35
+ - End with a verdict line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` requires no `blocker`/`important` finding and at least one open question.
35
36
  - If there are no findings, say so and call out remaining test or validation risk.
36
37
  - Carry `confidence` on every finding and close with `## Not verified` (see `code-review-mr` § Output contract).
37
38
 
@@ -75,8 +75,9 @@ Write `.ai.local/team/tasks/<slug>/review.md` with this format:
75
75
  # Code review: <slug>
76
76
 
77
77
  ## Verdict
78
- APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
78
+ APPROVE | APPROVE_WITH_QUESTIONS | APPROVE_WITH_NOTES | REQUEST_CHANGES
79
79
  Findings carry `path:line`, severity, `confidence`, and a fix direction — rules in `code-review-mr` § Output contract.
80
+ `APPROVE_WITH_QUESTIONS` needs no `blocker`/`important` finding and at least one open question below.
80
81
 
81
82
  ## Critical (must fix)
82
83
  - ...
@@ -87,6 +88,9 @@ Findings carry `path:line`, severity, `confidence`, and a fix direction — rule
87
88
  ## Suggestions (nice to have)
88
89
  - ...
89
90
 
91
+ ## Open questions
92
+ - <question> — check: <what would settle it> — blocker-candidate: yes | no
93
+
90
94
  ## Depth passes
91
95
  | Pass | Outcome | Evidence or reason |
92
96
  |------|---------|--------------------|
@@ -18,6 +18,7 @@ npx @bonesofspring/ai-rules update
18
18
  2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
19
19
  3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
20
20
  4. Do not report the numeric exit code.
21
+ 5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
21
22
 
22
23
  ## Record
23
24
 
@@ -1411,6 +1411,40 @@ function missingConsumerArtifacts() {
1411
1411
  );
1412
1412
  return ids.filter((id) => !done.has(id));
1413
1413
  }
1414
+ // A step that names a gate agent is a promise the plan made to the diff. The
1415
+ // consumer config is optional, but a declared gate is not: an unreviewed diff
1416
+ // completed while the plan said "code-reviewer" reads as a passed review.
1417
+ // A step the run skipped (status.skippedSteps) or skipIf-matched never promised
1418
+ // anything, so it is not required here.
1419
+ const GATE_AGENTS = new Set([
1420
+ 'build-verifier',
1421
+ 'code-reviewer',
1422
+ 'mockup-reviewer',
1423
+ 'security-reviewer',
1424
+ 'accessibility-reviewer',
1425
+ 'api-contract-reviewer',
1426
+ 'performance-auditor',
1427
+ ]);
1428
+ function missingDeclaredGateArtifacts() {
1429
+ if (steps.length === 0) return [];
1430
+ let manifest = { artifacts: [] };
1431
+ try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
1432
+ const done = new Set(
1433
+ (manifest.artifacts || [])
1434
+ .filter((artifact) => artifact && artifact.status === 'completed')
1435
+ .map((artifact) => artifact.id),
1436
+ );
1437
+ const missing = [];
1438
+ steps.forEach((step, index) => {
1439
+ if (!step || isStepSkipped(index)) return;
1440
+ for (const agent of getStepAgents(step)) {
1441
+ if (!GATE_AGENTS.has(agent)) continue;
1442
+ const id = artifactOutputIdFor(step, agent);
1443
+ if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
1444
+ }
1445
+ });
1446
+ return [...new Set(missing)];
1447
+ }
1414
1448
  function completePipeline(statusPatch) {
1415
1449
  const missing = missingConsumerArtifacts();
1416
1450
  if (missing.length > 0) {
@@ -1418,6 +1452,12 @@ function completePipeline(statusPatch) {
1418
1452
  out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
1419
1453
  process.exit(0);
1420
1454
  }
1455
+ const missingGates = missingDeclaredGateArtifacts();
1456
+ if (missingGates.length > 0) {
1457
+ writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
1458
+ out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
1459
+ process.exit(0);
1460
+ }
1421
1461
  // task_completed is written only on this branch. A missing receipt blocks
1422
1462
  // above and must not be counted as a finished task.
1423
1463
  status.state = 'completed';
@@ -137,6 +137,7 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
137
137
  - Agents upsert only the items they own in `manifest.artifacts[]` and preserve all foreign items in that array. Parallel agents use distinct IDs. Every write is a whole-file merge through `node .ai.local/scripts/manifest.mjs upsert …` under `.manifest.lock` (see the installed `team/README.md` § artifact-manifest.json — write protocol); the parent does not need to serialize merges, and a fragment/replace edit of the JSON is forbidden. The top-level array key is `artifacts` — not `entries`; see `agent-artifact-contracts.md` for the schema callout.
138
138
  - The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
139
139
  - Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
140
+ - A step that names a gate agent (`build-verifier`, `code-reviewer`, `mockup-reviewer`, `security-reviewer`, `accessibility-reviewer`, `api-contract-reviewer`, `performance-auditor`) is a promise the plan made to the diff: the hook blocks `completed` while its receipt is missing, with or without `.ai.local/pipeline-gates.json`. An intentional skip is recorded in `status.skippedSteps` with its reason — never by dropping the step quietly.
140
141
 
141
142
  ## Out-of-band producer passes
142
143
 
@@ -32,7 +32,7 @@ Concrete rule stems — in **Stack notes**.
32
32
 
33
33
  ## Depth passes
34
34
 
35
- A diff-shaped read is a floor, not a review. Run these five passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
35
+ A diff-shaped read is a floor, not a review. Run these six passes on every non-trivial review and record each one under `## Depth passes` in the review artifact as exactly one of:
36
36
 
37
37
  - **`finding`** — reported like any other finding, with `path:line`.
38
38
  - **`no finding`** — with one line of evidence: what was searched or read.
@@ -46,10 +46,11 @@ An outcome word alone is not a record: `no finding` without its evidence line, o
46
46
  3. **Trust boundary** — which data crosses a trust boundary in this change, and where is it validated. Data reaching storage, logs, HTML, SQL, shell, or an outbound request without an edge check is a finding.
47
47
  4. **Test gap** — not "is there a test" but "which behaviour change would still pass every existing test". That gap is the finding.
48
48
  5. **Half-life** — what breaks in six months: hidden coupling, implicit contract, missing migration, an unowned copy of the same rule.
49
+ 6. **Executable surface** — when the diff touches anything that runs outside app code (`*.mjs`, hooks, `scripts/`, CI steps): state the working directory the code assumes, quote every path spliced into a shell string, and check that a spawn cannot kill or truncate the command it wraps. A config-derived value written into storage carries no credential, and a migration or scan re-runs with a stable id.
49
50
 
50
51
  ## Review breadth budget
51
52
 
52
- - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The five depth passes still run on what was read.
53
+ - Bound **breadth**, not depth: the call-site sweep and the one-hop consumer read stop at this budget. The six depth passes still run on what was read.
53
54
  - Budget: the changed exports, types, routes, and events in the diff, plus one hop of their consumers. Read no consumer that neither the diff nor a recorded finding names.
54
55
  - Stop when either limit is reached: 40 changed-symbol call sites, or 15 minutes of breadth reads on one review.
55
56
  - When the budget is exhausted, stop the sweep and record `partial` in `## Depth passes` for the call-site sweep, with every unread path or glob named inline.
@@ -72,8 +73,22 @@ Procedure details live in skill `code-review`. Required shape:
72
73
  - Confidence is not a second severity: the verdict and the receipt still map from severity alone. A `blocker` at `low` confidence stands only with that confirming check named.
73
74
  - Rank by severity: **`blocker` | `important` | `nit`** (list blocker → nit).
74
75
  - Vague («looks risky») is not a finding — cite evidence or ask for surrounding file context.
75
- - End with a verdict on its own line: **`Safe to merge | needs changes | reject`**.
76
- - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it.
76
+ - A behaviour you cannot settle by reading is a **question, not silence**. Put it under `## Open questions` as `- <question> — check: <the one check that would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`; leaving it out because it is unproven is the failure this section exists to prevent.
77
+ - End with a verdict on its own line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` is allowed only with no `blocker`/`important` finding and at least one open question; the terminal receipt stays `completed`. A silent `Safe to merge` over an open question is not a verdict.
78
+ - Close with `## Not verified` — what was read shallowly, which pass could not run, which assumption went unchecked. An empty section reads `none`; never omit it. A depth pass recorded `unable to run` or `partial` over an executable surface (scripts, hooks, CI, migrations) forbids `Safe to merge` until the check runs or a human accepts it in writing.
79
+
80
+ ## Review without an acceptance criterion
81
+
82
+ A change-set that no brief, decomposition, or plan names is still reviewable: the diff is the scope, and the verdict rests on it alone. State in `## Not verified` that no AC existed; absence of an AC is a scope fact, never a review exemption. When the plan is missing, review against these classes; a class you cannot settle by reading becomes an `## Open question`:
83
+
84
+ - null/undefined after `JSON.parse`, a missing key, or a shape the producer never promised;
85
+ - empty, boundary, repeated, and concurrent inputs;
86
+ - resource limits: buffers, timeouts, retries, exit codes, stdio;
87
+ - secrets and credentials reaching logs, files, URLs, or an outbound request;
88
+ - path resolution that assumes a cwd; quoting of argv and of interpolated shell;
89
+ - idempotency of migrations, re-runs, and partial failures;
90
+ - machine-local runtime state that a commit would carry;
91
+ - a second unowned copy of a rule that already exists elsewhere.
77
92
 
78
93
  ## Verdict and terminal receipt
79
94
 
@@ -16,7 +16,8 @@ description: Reviews pull requests and branch diffs for Go hexagonal services us
16
16
 
17
17
  - Each finding: **`path:line`** — problem — impact — concrete fix direction.
18
18
  - Severity: **`blocker` | `important` | `nit`** (list blocker → nit).
19
- - End with a verdict line: **`Safe to merge | needs changes | reject`**.
19
+ - A behaviour you cannot settle by reading is a question, not silence: list it under `## Open questions` as `- <question> — check: <what would settle it> — blocker-candidate: yes | no`. A question needs no `path:line` and no `confidence`.
20
+ - End with a verdict line: **`Safe to merge | safe to merge with questions | needs changes | reject`**. `safe to merge with questions` requires no `blocker`/`important` finding and at least one open question.
20
21
  - Map agent status: Safe to merge → `completed`; needs changes / reject → `changes_requested`.
21
22
  - Carry `confidence` on every finding and close with `## Not verified` (see `code-review-mr` § Output contract).
22
23