@bonesofspring/ai-rules 0.2.40 → 0.2.42

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 (421) hide show
  1. package/CHANGELOG.md +358 -329
  2. package/package.json +1 -1
  3. package/presets/_shared/ai-local/scripts/derive-gate-signals.mjs +7 -0
  4. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +1 -0
  5. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +62 -5
  6. package/presets/claude/android-kotlin/agents/ci-investigator.md +1 -1
  7. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  8. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  9. package/presets/claude/android-kotlin/agents/migration-specialist.md +1 -1
  10. package/presets/claude/android-kotlin/agents/performance-auditor.md +1 -1
  11. package/presets/claude/android-kotlin/agents/qa-tester.md +1 -1
  12. package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
  13. package/presets/claude/android-kotlin/agents/task-router.md +1 -1
  14. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  15. package/presets/claude/android-kotlin/agents/unit-test-generator.md +1 -1
  16. package/presets/claude/android-kotlin/agents/unit-test-healer.md +1 -1
  17. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  18. package/presets/claude/android-kotlin/commands/task.md +1 -0
  19. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +62 -5
  20. package/presets/claude/android-kotlin/team/README.md +1 -1
  21. package/presets/claude/go/agents/feature-developer.md +1 -1
  22. package/presets/claude/go/agents/task-analyst.md +1 -1
  23. package/presets/claude/go/agents/task-router.md +1 -1
  24. package/presets/claude/go/commands/task.md +1 -0
  25. package/presets/claude/go/hooks/chain-team-phases.sh +62 -5
  26. package/presets/claude/go/team/README.md +1 -1
  27. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  28. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  29. package/presets/claude/ios-swift/agents/task-router.md +1 -1
  30. package/presets/claude/ios-swift/commands/task.md +1 -0
  31. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +62 -5
  32. package/presets/claude/ios-swift/team/README.md +1 -1
  33. package/presets/claude/java/agents/feature-developer.md +1 -1
  34. package/presets/claude/java/agents/task-analyst.md +1 -1
  35. package/presets/claude/java/agents/task-router.md +1 -1
  36. package/presets/claude/java/commands/task.md +1 -0
  37. package/presets/claude/java/hooks/chain-team-phases.sh +62 -5
  38. package/presets/claude/java/team/README.md +1 -1
  39. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  40. package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
  41. package/presets/claude/mcp-ts/agents/task-router.md +1 -1
  42. package/presets/claude/mcp-ts/commands/task.md +1 -0
  43. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +62 -5
  44. package/presets/claude/mcp-ts/team/README.md +1 -1
  45. package/presets/claude/next/agents/ci-investigator.md +1 -1
  46. package/presets/claude/next/agents/debugger.md +1 -1
  47. package/presets/claude/next/agents/feature-developer.md +1 -1
  48. package/presets/claude/next/agents/migration-specialist.md +1 -1
  49. package/presets/claude/next/agents/performance-auditor.md +1 -1
  50. package/presets/claude/next/agents/qa-tester.md +1 -1
  51. package/presets/claude/next/agents/solution-architect.md +1 -1
  52. package/presets/claude/next/agents/task-analyst.md +1 -1
  53. package/presets/claude/next/agents/task-router.md +1 -1
  54. package/presets/claude/next/agents/tech-writer.md +1 -1
  55. package/presets/claude/next/agents/unit-test-generator.md +1 -1
  56. package/presets/claude/next/agents/unit-test-healer.md +1 -1
  57. package/presets/claude/next/agents/unit-test-planner.md +1 -1
  58. package/presets/claude/next/commands/task.md +2 -0
  59. package/presets/claude/next/hooks/chain-team-phases.sh +62 -5
  60. package/presets/claude/next/team/README.md +1 -1
  61. package/presets/claude/nuxt/agents/ci-investigator.md +1 -1
  62. package/presets/claude/nuxt/agents/debugger.md +1 -1
  63. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  64. package/presets/claude/nuxt/agents/migration-specialist.md +1 -1
  65. package/presets/claude/nuxt/agents/performance-auditor.md +1 -1
  66. package/presets/claude/nuxt/agents/qa-tester.md +1 -1
  67. package/presets/claude/nuxt/agents/solution-architect.md +1 -1
  68. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  69. package/presets/claude/nuxt/agents/task-router.md +1 -1
  70. package/presets/claude/nuxt/agents/tech-writer.md +1 -1
  71. package/presets/claude/nuxt/agents/unit-test-generator.md +1 -1
  72. package/presets/claude/nuxt/agents/unit-test-healer.md +1 -1
  73. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -1
  74. package/presets/claude/nuxt/commands/task.md +1 -0
  75. package/presets/claude/nuxt/hooks/chain-team-phases.sh +62 -5
  76. package/presets/claude/nuxt/team/README.md +1 -1
  77. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
  78. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  79. package/presets/claude/php-hexagonal/agents/task-router.md +1 -1
  80. package/presets/claude/php-hexagonal/commands/task.md +1 -0
  81. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +62 -5
  82. package/presets/claude/php-hexagonal/team/README.md +1 -1
  83. package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
  84. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  85. package/presets/claude/php-laravel/agents/task-router.md +1 -1
  86. package/presets/claude/php-laravel/commands/task.md +1 -0
  87. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +62 -5
  88. package/presets/claude/php-laravel/team/README.md +1 -1
  89. package/presets/claude/svelte/agents/ci-investigator.md +1 -1
  90. package/presets/claude/svelte/agents/debugger.md +1 -1
  91. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  92. package/presets/claude/svelte/agents/migration-specialist.md +1 -1
  93. package/presets/claude/svelte/agents/performance-auditor.md +1 -1
  94. package/presets/claude/svelte/agents/qa-tester.md +1 -1
  95. package/presets/claude/svelte/agents/solution-architect.md +1 -1
  96. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  97. package/presets/claude/svelte/agents/task-router.md +1 -1
  98. package/presets/claude/svelte/agents/tech-writer.md +1 -1
  99. package/presets/claude/svelte/agents/unit-test-generator.md +1 -1
  100. package/presets/claude/svelte/agents/unit-test-healer.md +1 -1
  101. package/presets/claude/svelte/agents/unit-test-planner.md +1 -1
  102. package/presets/claude/svelte/commands/task.md +1 -0
  103. package/presets/claude/svelte/hooks/chain-team-phases.sh +62 -5
  104. package/presets/claude/svelte/team/README.md +1 -1
  105. package/presets/cursor/android-kotlin/agents/ci-investigator.md +1 -1
  106. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  107. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  108. package/presets/cursor/android-kotlin/agents/migration-specialist.md +1 -1
  109. package/presets/cursor/android-kotlin/agents/performance-auditor.md +1 -1
  110. package/presets/cursor/android-kotlin/agents/qa-tester.md +1 -1
  111. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  112. package/presets/cursor/android-kotlin/agents/task-router.md +1 -1
  113. package/presets/cursor/android-kotlin/agents/tech-writer.md +1 -1
  114. package/presets/cursor/android-kotlin/agents/unit-test-generator.md +1 -1
  115. package/presets/cursor/android-kotlin/agents/unit-test-healer.md +1 -1
  116. package/presets/cursor/android-kotlin/agents/unit-test-planner.md +1 -1
  117. package/presets/cursor/android-kotlin/commands/task.md +1 -0
  118. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +62 -5
  119. package/presets/cursor/android-kotlin/team/README.md +1 -1
  120. package/presets/cursor/go/agents/feature-developer.md +1 -1
  121. package/presets/cursor/go/agents/task-analyst.md +1 -1
  122. package/presets/cursor/go/agents/task-router.md +1 -1
  123. package/presets/cursor/go/commands/task.md +1 -0
  124. package/presets/cursor/go/hooks/chain-team-phases.sh +62 -5
  125. package/presets/cursor/go/team/README.md +1 -1
  126. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  127. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  128. package/presets/cursor/ios-swift/agents/task-router.md +1 -1
  129. package/presets/cursor/ios-swift/commands/task.md +1 -0
  130. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +62 -5
  131. package/presets/cursor/ios-swift/team/README.md +1 -1
  132. package/presets/cursor/java/agents/feature-developer.md +1 -1
  133. package/presets/cursor/java/agents/task-analyst.md +1 -1
  134. package/presets/cursor/java/agents/task-router.md +1 -1
  135. package/presets/cursor/java/commands/task.md +1 -0
  136. package/presets/cursor/java/hooks/chain-team-phases.sh +62 -5
  137. package/presets/cursor/java/team/README.md +1 -1
  138. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  139. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  140. package/presets/cursor/mcp-ts/agents/task-router.md +1 -1
  141. package/presets/cursor/mcp-ts/commands/task.md +1 -0
  142. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +62 -5
  143. package/presets/cursor/mcp-ts/team/README.md +1 -1
  144. package/presets/cursor/next/agents/ci-investigator.md +1 -1
  145. package/presets/cursor/next/agents/debugger.md +1 -1
  146. package/presets/cursor/next/agents/feature-developer.md +1 -1
  147. package/presets/cursor/next/agents/migration-specialist.md +1 -1
  148. package/presets/cursor/next/agents/performance-auditor.md +1 -1
  149. package/presets/cursor/next/agents/qa-tester.md +1 -1
  150. package/presets/cursor/next/agents/solution-architect.md +1 -1
  151. package/presets/cursor/next/agents/task-analyst.md +1 -1
  152. package/presets/cursor/next/agents/task-router.md +1 -1
  153. package/presets/cursor/next/agents/tech-writer.md +1 -1
  154. package/presets/cursor/next/agents/unit-test-generator.md +1 -1
  155. package/presets/cursor/next/agents/unit-test-healer.md +1 -1
  156. package/presets/cursor/next/agents/unit-test-planner.md +1 -1
  157. package/presets/cursor/next/commands/task.md +1 -0
  158. package/presets/cursor/next/hooks/chain-team-phases.sh +62 -5
  159. package/presets/cursor/next/team/README.md +1 -1
  160. package/presets/cursor/nuxt/agents/ci-investigator.md +1 -1
  161. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  162. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  163. package/presets/cursor/nuxt/agents/migration-specialist.md +1 -1
  164. package/presets/cursor/nuxt/agents/performance-auditor.md +1 -1
  165. package/presets/cursor/nuxt/agents/qa-tester.md +1 -1
  166. package/presets/cursor/nuxt/agents/solution-architect.md +1 -1
  167. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  168. package/presets/cursor/nuxt/agents/task-router.md +1 -1
  169. package/presets/cursor/nuxt/agents/tech-writer.md +1 -1
  170. package/presets/cursor/nuxt/agents/unit-test-generator.md +1 -1
  171. package/presets/cursor/nuxt/agents/unit-test-healer.md +1 -1
  172. package/presets/cursor/nuxt/agents/unit-test-planner.md +1 -1
  173. package/presets/cursor/nuxt/commands/task.md +1 -0
  174. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +62 -5
  175. package/presets/cursor/nuxt/team/README.md +1 -1
  176. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
  177. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  178. package/presets/cursor/php-hexagonal/agents/task-router.md +1 -1
  179. package/presets/cursor/php-hexagonal/commands/task.md +1 -0
  180. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +62 -5
  181. package/presets/cursor/php-hexagonal/team/README.md +1 -1
  182. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
  183. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  184. package/presets/cursor/php-laravel/agents/task-router.md +1 -1
  185. package/presets/cursor/php-laravel/commands/task.md +1 -0
  186. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +62 -5
  187. package/presets/cursor/php-laravel/team/README.md +1 -1
  188. package/presets/cursor/svelte/agents/ci-investigator.md +1 -1
  189. package/presets/cursor/svelte/agents/debugger.md +1 -1
  190. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  191. package/presets/cursor/svelte/agents/migration-specialist.md +1 -1
  192. package/presets/cursor/svelte/agents/performance-auditor.md +1 -1
  193. package/presets/cursor/svelte/agents/qa-tester.md +1 -1
  194. package/presets/cursor/svelte/agents/solution-architect.md +1 -1
  195. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  196. package/presets/cursor/svelte/agents/task-router.md +1 -1
  197. package/presets/cursor/svelte/agents/tech-writer.md +1 -1
  198. package/presets/cursor/svelte/agents/unit-test-generator.md +1 -1
  199. package/presets/cursor/svelte/agents/unit-test-healer.md +1 -1
  200. package/presets/cursor/svelte/agents/unit-test-planner.md +1 -1
  201. package/presets/cursor/svelte/commands/task.md +1 -0
  202. package/presets/cursor/svelte/hooks/chain-team-phases.sh +62 -5
  203. package/presets/cursor/svelte/team/README.md +1 -1
  204. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  205. package/presets/mavis/android-kotlin/agents/ci-investigator.md +1 -1
  206. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  207. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  208. package/presets/mavis/android-kotlin/agents/migration-specialist.md +1 -1
  209. package/presets/mavis/android-kotlin/agents/performance-auditor.md +1 -1
  210. package/presets/mavis/android-kotlin/agents/qa-tester.md +1 -1
  211. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  212. package/presets/mavis/android-kotlin/agents/task-router.md +1 -1
  213. package/presets/mavis/android-kotlin/agents/tech-writer.md +1 -1
  214. package/presets/mavis/android-kotlin/agents/unit-test-generator.md +1 -1
  215. package/presets/mavis/android-kotlin/agents/unit-test-healer.md +1 -1
  216. package/presets/mavis/android-kotlin/agents/unit-test-planner.md +1 -1
  217. package/presets/mavis/android-kotlin/commands/task.md +1 -0
  218. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +62 -5
  219. package/presets/mavis/android-kotlin/team/README.md +1 -1
  220. package/presets/mavis/go/adapter-map.json +1 -1
  221. package/presets/mavis/go/agents/feature-developer.md +1 -1
  222. package/presets/mavis/go/agents/task-analyst.md +1 -1
  223. package/presets/mavis/go/agents/task-router.md +1 -1
  224. package/presets/mavis/go/commands/task.md +1 -0
  225. package/presets/mavis/go/hooks/chain-team-phases.sh +62 -5
  226. package/presets/mavis/go/team/README.md +1 -1
  227. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  228. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  229. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  230. package/presets/mavis/ios-swift/agents/task-router.md +1 -1
  231. package/presets/mavis/ios-swift/commands/task.md +1 -0
  232. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +62 -5
  233. package/presets/mavis/ios-swift/team/README.md +1 -1
  234. package/presets/mavis/java/adapter-map.json +1 -1
  235. package/presets/mavis/java/agents/feature-developer.md +1 -1
  236. package/presets/mavis/java/agents/task-analyst.md +1 -1
  237. package/presets/mavis/java/agents/task-router.md +1 -1
  238. package/presets/mavis/java/commands/task.md +1 -0
  239. package/presets/mavis/java/hooks/chain-team-phases.sh +62 -5
  240. package/presets/mavis/java/team/README.md +1 -1
  241. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  242. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  243. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  244. package/presets/mavis/mcp-ts/agents/task-router.md +1 -1
  245. package/presets/mavis/mcp-ts/commands/task.md +1 -0
  246. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +62 -5
  247. package/presets/mavis/mcp-ts/team/README.md +1 -1
  248. package/presets/mavis/next/adapter-map.json +1 -1
  249. package/presets/mavis/next/agents/ci-investigator.md +1 -1
  250. package/presets/mavis/next/agents/debugger.md +1 -1
  251. package/presets/mavis/next/agents/feature-developer.md +1 -1
  252. package/presets/mavis/next/agents/migration-specialist.md +1 -1
  253. package/presets/mavis/next/agents/performance-auditor.md +1 -1
  254. package/presets/mavis/next/agents/qa-tester.md +1 -1
  255. package/presets/mavis/next/agents/solution-architect.md +1 -1
  256. package/presets/mavis/next/agents/task-analyst.md +1 -1
  257. package/presets/mavis/next/agents/task-router.md +1 -1
  258. package/presets/mavis/next/agents/tech-writer.md +1 -1
  259. package/presets/mavis/next/agents/unit-test-generator.md +1 -1
  260. package/presets/mavis/next/agents/unit-test-healer.md +1 -1
  261. package/presets/mavis/next/agents/unit-test-planner.md +1 -1
  262. package/presets/mavis/next/commands/task.md +1 -0
  263. package/presets/mavis/next/hooks/chain-team-phases.sh +62 -5
  264. package/presets/mavis/next/team/README.md +1 -1
  265. package/presets/mavis/nuxt/adapter-map.json +1 -1
  266. package/presets/mavis/nuxt/agents/ci-investigator.md +1 -1
  267. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  268. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  269. package/presets/mavis/nuxt/agents/migration-specialist.md +1 -1
  270. package/presets/mavis/nuxt/agents/performance-auditor.md +1 -1
  271. package/presets/mavis/nuxt/agents/qa-tester.md +1 -1
  272. package/presets/mavis/nuxt/agents/solution-architect.md +1 -1
  273. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  274. package/presets/mavis/nuxt/agents/task-router.md +1 -1
  275. package/presets/mavis/nuxt/agents/tech-writer.md +1 -1
  276. package/presets/mavis/nuxt/agents/unit-test-generator.md +1 -1
  277. package/presets/mavis/nuxt/agents/unit-test-healer.md +1 -1
  278. package/presets/mavis/nuxt/agents/unit-test-planner.md +1 -1
  279. package/presets/mavis/nuxt/commands/task.md +1 -0
  280. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +62 -5
  281. package/presets/mavis/nuxt/team/README.md +1 -1
  282. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  283. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
  284. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  285. package/presets/mavis/php-hexagonal/agents/task-router.md +1 -1
  286. package/presets/mavis/php-hexagonal/commands/task.md +1 -0
  287. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +62 -5
  288. package/presets/mavis/php-hexagonal/team/README.md +1 -1
  289. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  290. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
  291. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  292. package/presets/mavis/php-laravel/agents/task-router.md +1 -1
  293. package/presets/mavis/php-laravel/commands/task.md +1 -0
  294. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +62 -5
  295. package/presets/mavis/php-laravel/team/README.md +1 -1
  296. package/presets/mavis/svelte/adapter-map.json +1 -1
  297. package/presets/mavis/svelte/agents/ci-investigator.md +1 -1
  298. package/presets/mavis/svelte/agents/debugger.md +1 -1
  299. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  300. package/presets/mavis/svelte/agents/migration-specialist.md +1 -1
  301. package/presets/mavis/svelte/agents/performance-auditor.md +1 -1
  302. package/presets/mavis/svelte/agents/qa-tester.md +1 -1
  303. package/presets/mavis/svelte/agents/solution-architect.md +1 -1
  304. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  305. package/presets/mavis/svelte/agents/task-router.md +1 -1
  306. package/presets/mavis/svelte/agents/tech-writer.md +1 -1
  307. package/presets/mavis/svelte/agents/unit-test-generator.md +1 -1
  308. package/presets/mavis/svelte/agents/unit-test-healer.md +1 -1
  309. package/presets/mavis/svelte/agents/unit-test-planner.md +1 -1
  310. package/presets/mavis/svelte/commands/task.md +1 -0
  311. package/presets/mavis/svelte/hooks/chain-team-phases.sh +62 -5
  312. package/presets/mavis/svelte/team/README.md +1 -1
  313. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  314. package/presets/opencode/android-kotlin/agents/ci-investigator.md +1 -1
  315. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  316. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  317. package/presets/opencode/android-kotlin/agents/migration-specialist.md +1 -1
  318. package/presets/opencode/android-kotlin/agents/performance-auditor.md +1 -1
  319. package/presets/opencode/android-kotlin/agents/qa-tester.md +1 -1
  320. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  321. package/presets/opencode/android-kotlin/agents/task-router.md +1 -1
  322. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  323. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  324. package/presets/opencode/android-kotlin/agents/unit-test-healer.md +1 -1
  325. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  326. package/presets/opencode/android-kotlin/commands/task.md +1 -0
  327. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +62 -5
  328. package/presets/opencode/android-kotlin/team/README.md +1 -1
  329. package/presets/opencode/go/adapter-map.json +1 -1
  330. package/presets/opencode/go/agents/feature-developer.md +1 -1
  331. package/presets/opencode/go/agents/task-analyst.md +1 -1
  332. package/presets/opencode/go/agents/task-router.md +1 -1
  333. package/presets/opencode/go/commands/task.md +1 -0
  334. package/presets/opencode/go/hooks/chain-team-phases.sh +62 -5
  335. package/presets/opencode/go/team/README.md +1 -1
  336. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  337. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  338. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  339. package/presets/opencode/ios-swift/agents/task-router.md +1 -1
  340. package/presets/opencode/ios-swift/commands/task.md +1 -0
  341. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +62 -5
  342. package/presets/opencode/ios-swift/team/README.md +1 -1
  343. package/presets/opencode/java/adapter-map.json +1 -1
  344. package/presets/opencode/java/agents/feature-developer.md +1 -1
  345. package/presets/opencode/java/agents/task-analyst.md +1 -1
  346. package/presets/opencode/java/agents/task-router.md +1 -1
  347. package/presets/opencode/java/commands/task.md +1 -0
  348. package/presets/opencode/java/hooks/chain-team-phases.sh +62 -5
  349. package/presets/opencode/java/team/README.md +1 -1
  350. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  351. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  352. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  353. package/presets/opencode/mcp-ts/agents/task-router.md +1 -1
  354. package/presets/opencode/mcp-ts/commands/task.md +1 -0
  355. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +62 -5
  356. package/presets/opencode/mcp-ts/team/README.md +1 -1
  357. package/presets/opencode/next/adapter-map.json +1 -1
  358. package/presets/opencode/next/agents/ci-investigator.md +1 -1
  359. package/presets/opencode/next/agents/debugger.md +1 -1
  360. package/presets/opencode/next/agents/feature-developer.md +1 -1
  361. package/presets/opencode/next/agents/migration-specialist.md +1 -1
  362. package/presets/opencode/next/agents/performance-auditor.md +1 -1
  363. package/presets/opencode/next/agents/qa-tester.md +1 -1
  364. package/presets/opencode/next/agents/solution-architect.md +1 -1
  365. package/presets/opencode/next/agents/task-analyst.md +1 -1
  366. package/presets/opencode/next/agents/task-router.md +1 -1
  367. package/presets/opencode/next/agents/tech-writer.md +1 -1
  368. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  369. package/presets/opencode/next/agents/unit-test-healer.md +1 -1
  370. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  371. package/presets/opencode/next/commands/task.md +1 -0
  372. package/presets/opencode/next/hooks/chain-team-phases.sh +62 -5
  373. package/presets/opencode/next/team/README.md +1 -1
  374. package/presets/opencode/nuxt/adapter-map.json +1 -1
  375. package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
  376. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  377. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  378. package/presets/opencode/nuxt/agents/migration-specialist.md +1 -1
  379. package/presets/opencode/nuxt/agents/performance-auditor.md +1 -1
  380. package/presets/opencode/nuxt/agents/qa-tester.md +1 -1
  381. package/presets/opencode/nuxt/agents/solution-architect.md +1 -1
  382. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  383. package/presets/opencode/nuxt/agents/task-router.md +1 -1
  384. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  385. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  386. package/presets/opencode/nuxt/agents/unit-test-healer.md +1 -1
  387. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  388. package/presets/opencode/nuxt/commands/task.md +1 -0
  389. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +62 -5
  390. package/presets/opencode/nuxt/team/README.md +1 -1
  391. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  392. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
  393. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  394. package/presets/opencode/php-hexagonal/agents/task-router.md +1 -1
  395. package/presets/opencode/php-hexagonal/commands/task.md +1 -0
  396. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +62 -5
  397. package/presets/opencode/php-hexagonal/team/README.md +1 -1
  398. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  399. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
  400. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  401. package/presets/opencode/php-laravel/agents/task-router.md +1 -1
  402. package/presets/opencode/php-laravel/commands/task.md +1 -0
  403. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +62 -5
  404. package/presets/opencode/php-laravel/team/README.md +1 -1
  405. package/presets/opencode/svelte/adapter-map.json +1 -1
  406. package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
  407. package/presets/opencode/svelte/agents/debugger.md +1 -1
  408. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  409. package/presets/opencode/svelte/agents/migration-specialist.md +1 -1
  410. package/presets/opencode/svelte/agents/performance-auditor.md +1 -1
  411. package/presets/opencode/svelte/agents/qa-tester.md +1 -1
  412. package/presets/opencode/svelte/agents/solution-architect.md +1 -1
  413. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  414. package/presets/opencode/svelte/agents/task-router.md +1 -1
  415. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  416. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  417. package/presets/opencode/svelte/agents/unit-test-healer.md +1 -1
  418. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  419. package/presets/opencode/svelte/commands/task.md +1 -0
  420. package/presets/opencode/svelte/hooks/chain-team-phases.sh +62 -5
  421. package/presets/opencode/svelte/team/README.md +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,117 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ No unpublished changes.
6
+
7
+ ## 0.2.42
8
+
9
+ ### A duplicate stop no longer stalls the next pipeline step
10
+
11
+ - **Gate by step id.** `humanGates` accepts `after:<step id>` as well as `after:<agent>`. `after:frame` pauses only the `frame` step when later steps reuse `task-analyst`. The next attempt stays unopened until `/task-continue`.
12
+ - **Duplicate stop.** A stop with no `attemptId` and no receipt, arriving within 15s of the attempt this transition just opened, does not set `awaiting_artifact_receipt`. A later stop with no receipt still stalls.
13
+ - **One `task_completed`.** A second completion of the same metrics file does not append another event.
14
+ - **Deferral reason.** Steps that share an agent stay serial. When the wave keeps one and defers the rest, the metric says `same agent already in the wave`.
15
+ - **Receipt paths.** Handoffs, producer prompts, and the artifact contract require `authoritativePaths` relative to the task folder (`brief.md`). A repo-root path is rejected. The team README example that showed one is corrected.
16
+ - **Self-learning.** `derive-gate-signals` skips files in `tasks/` (such as `.gitkeep`) instead of reporting `ENOTDIR`.
17
+
18
+ ### Upgrade
19
+
20
+ - `npx @bonesofspring/ai-rules update` replaces `hooks/chain-team-phases.sh` and the agent prompts, so the step-id gate, the duplicate-stop ignore, the single `task_completed`, and the receipt-path sentence land on re-init.
21
+ - `init` / `update` does not overwrite an existing `.ai.local/scripts/derive-gate-signals.mjs`. Replace that file with the package copy to pick up the `.gitkeep` skip.
22
+
23
+ ## 0.2.41
24
+
25
+ ### `/task` slash menu shows the command description
26
+
27
+ - **Menu text.** Cursor shows the first line of `commands/task.md` after the frontmatter, not the YAML `description`. The anti-hallucination load-line marker was that line, so `/task` appeared as `<!-- shared-core: quality/anti-hallucination-load-line.md -->`.
28
+ - **Lead sentence.** Cursor, Claude, and Mavis now open the command body with `Route a natural-language task through the agent-team pipeline: task-router, pipeline.json, and the first planned specialist.` The shared-core marker and the load sentence stay in the file, after that line. OpenCode keeps the `$ARGUMENTS` block first, then the same sentence.
29
+ - **Gate.** `check-anti-hallucination-coverage.mjs` fails when the first body line of `commands/task.md` is an HTML comment.
30
+
31
+ ### Upgrade
32
+
33
+ - `npx @bonesofspring/ai-rules update` replaces `commands/task.md`. Reload the editor if the slash menu still shows the HTML comment.
34
+
35
+ ## 0.2.40
36
+
37
+ ### `/task` records a goal, an outcome, and a review ledger
38
+
39
+ - **Before specialists.** Slug bootstrap writes `goal.md` (formulated outcome: Goal, User value, Success criteria, Non-goals). `prompt.md` stays the verbatim request. Copying the prompt into the goal is invalid. The plan stop shows `goal.md` and waits for confirmation of those fields. The analyst echoes `goal.md` and does not replace it. Bounded, spike, and `light` tasks still write the thin frame.
40
+ - **After the terminal state.** The orchestrator writes `outcome.md` (`goalAchieved`, `value`, per-criterion evidence, `reviewCounts`) before the closing message. `unsatisfactory` does not reopen the task.
41
+ - **Review ledger.** Self-review defects that change the output, `code-reviewer` findings, and user or other-agent objections append to `review-ledger.md`. A `fair: yes` row at close appends one signal per distinct signature and runs `node .ai.local/scripts/run.mjs` once. Preset-prose targets stay staged for `/technical-retro`.
42
+ - **Contract.** `agent-artifact-contracts`, `task-framing`, `self-review-and-context-hygiene`, and the orchestrator. `check-plan-contract.sh` requires `goal.md`, `outcome.md`, and `review-ledger.md` on `commands/task.md` and the orchestrator. `check-preset-self-review-contract.sh` requires `review-ledger.md` on the producer agents and on `commands/task.md`.
43
+
44
+ ### Always-on budget raised to 10 files and 4000 lines
45
+
46
+ - **File cap.** Cursor `alwaysApply`, Claude session-start (README excluded), and Mavis/OpenCode `loadMode: root-entry` are **3–10** (was 3–5). The minimum stays 3. A count above 3 still includes `ai-local-overlay`. `next` keeps exactly four always-on stems.
47
+ - **Line cap.** The Cursor/Claude session-start body sum and the combined Mavis/OpenCode root `AGENTS.md` + platform entry are **≤4000** nonempty lines (was 200, stretch 170). The stretch target is the same 4000. The separate next glob-attached fixture caps stay UI 420, store 400, and API 400.
48
+ - **Enforcement.** `check-preset-token-budget.sh` (`MAX_ALWAYS_ON=10`, `BODY_CAP=4000`), `check-{mavis,opencode}-token-budget.mjs` (root-entry cap 10), and `test-{mavis,opencode}-context-budget.mjs` (entry cap 4000). Policy text is in `preset-token-budget`, `preset-pr-checklist`, `preset-layering`, each stack `README.md` / `CLAUDE.md`, and `docs/PRESET-CONTRIBUTION.md`.
49
+ - **Consumers.** The installed always-on set is unchanged. Re-init picks up the new policy text (see Upgrade).
50
+
51
+ ### CSS declaration hygiene on web layout rules
52
+
53
+ - **No initial or no-op declarations.** `css-property-order-stylelint` on `next`, `nuxt`, and `svelte` tells agents to omit a property at its initial value (`min-width: 0` on a block). `min-width: 0` stays on a flex or grid item, where it overrides the automatic minimum `auto`.
54
+ - **Integer pixels.** A fractional `px` literal rounds to the nearest integer (`334.667px` → `335px`). A tie rounds away from zero.
55
+ - **Necessity check.** After the initial-value pass, delete any declaration whose removal does not change the used value. Stylelint order auto-fix does not do this.
56
+ - **Where it loads.** The checks live in `css-property-order-stylelint`. `next` loads it on `styles.ts(x)` and `app/**/*.css`, and `react-ui` restates them. `nuxt` loads it on `*.css`, `*.scss`, and `*.vue`; `vue-ui` points at it. `svelte` loads it on `*.css`, `*.scss`, and `*.svelte`; `svelte-ui` points at it. `code-review-mr` on those three stacks applies the same checks to a UI diff.
57
+
58
+ ### Preset-update notice stands apart from the task answer
59
+
60
+ - **Version notice.** When the installed preset is older than npm `latest`, the reply opens with a level-2 heading and a blockquote in the user's language. Both versions are bold. The notice names the installed version, the latest version, and `/update`. It is not a sentence inside the task answer.
61
+ - **`/update` result.** The command reports that the update finished successfully, or that it did not. A failure quotes stderr and stops. It does not quote the numeric exit code.
62
+
63
+ ### Agents load an anti-hallucination contract
64
+
65
+ - **Requestable contract.** `anti-hallucination-contract` is on every role and is not always-on. Writer roles — implementer, unit-test, e2e, qa, and `code-reviewer` — also load that stack's floor. Read-only roles stop at the contract. `next`, `nuxt`, and `svelte` keep their dense banlists and point at the contract. `go`, `java`, `php-hexagonal`, `php-laravel`, `ios-swift`, `android-kotlin`, and `mcp-ts` ship a thin floor.
66
+ - **Coverage gate.** `yarn check:preset-structure` runs `check-anti-hallucination-coverage.mjs`. The fixture fails when `anti-hallucination-contract` is removed from `next.reviewer`. The gate does not scan consumer application source and does not call Context7.
67
+ - **Skill classes.** A new `skills/<family>` must be registered in `SKILL_CONTRACT_CLASS`. `writer` (including `code-review`) carries the stack floor sentence. `reader` carries the contract load line only.
68
+
69
+ ### Nested `.ai.local` is resolved from the paths a step touches
70
+
71
+ - **`list-ai-local.mjs`** lists the ancestor chain for each path: the root overlay applies everywhere, a nested overlay applies only under its directory, and the same rule file name on one chain resolves to the deeper file. With no paths it prints every overlay prefix and does not merge siblings. `team/**` and `rules-library/**` are not rules.
72
+ - **Scope growth.** When `.ai.local/team/tasks/<slug>/` already exists, `--record <slug>` writes `overlay-scope.json` and appends one `.memlog.md` `event:` per newly entered overlay. Files newly in that recorded scope are printed under `new:`. A missing task directory skips the write.
73
+ - **Task language.** The tag already stored in `prompt.md` stays for the task. A nested `conventions.md` entered later does not switch it. With no stored tag, the nearest `conventions.md` on the chain applies.
74
+ - **Mid-session pickup.** A new `.ai.local`, or a file under an overlay the task has already entered, is picked up the next time the script runs with a path on that chain.
75
+ - **All four hosts** ship the same script under `hooks/`. Cursor `sessionStart` and Claude `SessionStart` print the prefix index. That index is not the apply set. Mavis and OpenCode run the script from the overlay rule; they have no session hook. If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
76
+
77
+ ### Upgrade
78
+
79
+ - `npx @bonesofspring/ai-rules update` (or `init <tool|multi> --preset <stack>`) replaces managed hooks and rules. Re-init picks up `list-ai-local.mjs`, the version-notice shape, `anti-hallucination-contract`, the CSS declaration checks, the `goal.md` / `outcome.md` / `review-ledger.md` instructions, and the 3–10 / 4000 budget text.
80
+ - Cursor `sessionStart` and Claude `SessionStart` run `list-ai-local.mjs` next to the existing preset-update check.
81
+ - The budget change raises the cap. It does not add an always-on rule.
82
+
83
+ ## 0.2.39
84
+
85
+ ### A `null` journal line no longer stops the self-learning loop
86
+
87
+ - `JSON.parse("null")` is valid JSON and returns `null`. Reading `.slug` / `.at` on it threw, and one such line aborted derivation, `run.mjs`, and the efficacy oracle.
88
+ - Those readers now require a non-null object that is not an array. A `null`, primitive, or array line is skipped and left in the file. `--status` counts it as malformed. Objects that are missing fields were already skipped.
89
+
90
+ ### `task_completed` is written only after `requireArtifacts` passes
91
+
92
+ - `chain-team-phases.sh` used to record `task_completed` and then call completion, which can still write `state: blocked` when `.ai.local/pipeline-gates.json` lists a receipt that is not completed. Metrics then showed a finished task that had failed the last check.
93
+ - The metric is written only on the success branch, after the receipt check, on every platform and stack. A missing receipt still blocks and writes no `task_completed`. A pipeline that completes because no step remains now records the metric too.
94
+
95
+ ### Derived signals are deduped inside the lock
96
+
97
+ - Two overlapping `run.mjs` runs could both derive the same `(slug, id, kind)` and both append it. The check now re-reads the journal under the lock before appending. The report's `appended` count includes only the row that was written.
98
+
99
+ ### The engine lock is `flock`, and the lock file stays
100
+
101
+ - Reclaiming a stale `.ai.local/scripts` lock by `unlink` could delete a lock a second process had just taken. Ownership is now a POSIX `flock` held by a short-lived `perl` helper (`Fcntl`, `Time::HiRes`). The helper drops the lock when its parent exits, including after a crash. The lock file is not removed: a file on disk does not mean the lock is held. `staleMs` is accepted and ignored.
102
+ - `perl` with those two modules is required. If it is missing, acquire fails with `lock helper unavailable: perl with Fcntl and Time::HiRes`.
103
+ - The metrics lock inside `chain-team-phases.sh` is unchanged (token file plus `unlink`).
104
+
105
+ ### Preset-update notice refreshes after one hour
106
+
107
+ - `hooks/check-preset-update.mjs` caches the npm `latest` lookup for 1 hour. `0.2.38` cached it for 12 hours.
108
+
109
+ ### Upgrade
110
+
111
+ - `npx @bonesofspring/ai-rules update` replaces the managed hooks, so the `task_completed` order and the one-hour cache land on re-init.
112
+ - `init` / `update` does not overwrite an existing `.ai.local/scripts/*.mjs`. The journal, dedup, and `flock` fixes ship in `run.mjs`, `signals.mjs`, `lock.mjs`, `rule-improver.mjs`, `derive-gate-signals.mjs`, and `efficacy-oracle.mjs`. If those files are still the copies from an older install, replace them with the package copies (a local edit is kept on purpose).
113
+
114
+ ## 0.2.38
115
+
5
116
  ### `update` reinstalls the tools and presets already recorded
6
117
 
7
118
  - **CLI `update`.** Reads `platform` and `preset` from each existing `<tool>/.ai-rules-install.json` (`.cursor`, `.claude`, `.mavis`, `.opencode`) and re-runs `init` for those tools only. A tool without a manifest stays uninstalled. The recorded preset is kept; `--preset` and a tool name are rejected. The plan is validated before the first write, so a bad manifest does not partially update.
@@ -26,14 +137,29 @@
26
137
  - **The chain hook runs the loop after every producer receipt** (`chain-team-phases.sh` template tail): one run per completed stop, the child's stdout forwarded to stderr so the hook's own JSON stdout contract is untouched, a 15 s cap, `|| true`, and exactly one `WARNING:` line when the engine is absent. The `light` profile and `spike` intent skip silently.
27
138
  - **One loop paragraph.** The stale `rule-improver.mjs` / raw-JSONL / "skip silently" instructions are gone from every carrier (agents, orchestrator rule, commands, retro skill); `check-preset-self-review-contract.sh` now fails on reintroduction and `test-preset-self-review-contract-fixtures.mjs` proves the negative.
28
139
 
29
- ### OpenCode config: only the schema OpenCode reads (breaking for existing `opencode.json`)
140
+ ### Presets report a newer package and name the latest version
30
141
 
31
- - **The deny map is `permission.bash`.** `opencode.ai/docs/permissions` (re-read 2026-10-26) keys the v1 `permission` object by tool name, and the shell-command tool is `bash`. `permission.shell` is not that key. v2 is a separate schema (`permissions[]` with `action: "shell"`); this preset does not emit it. Rules resolve by pattern match with the **last** match winning, so `'*': 'allow'` stays first and the `git commit` / `git push` `deny` rows after it bind.
32
- - **The top-level `policies` array is removed, not renamed.** `opencode.ai/docs/policies` configures policies at `experimental.policies` and supports exactly one action, `provider.use`, so a `tool.use` hard-deny cannot be expressed at all. A consumer-authored `policies` array is left untouched.
33
- - **Bare `git commit` / `git push` are denied too.** `git commit *` does not match the argument-less form — the invocation that opens the editor. The rows live in the stack profile, so Claude Code's `settings.json` deny lists gain `Bash(git commit)` and `Bash(git push)`; `scripts/sync-claude-settings.mjs` now runs inside `fix:generated`, which is what stops the two platforms drifting.
34
- - **The guard rows are sticky.** A pre-existing `"git push *": "allow"` in a consumer's `permission.bash` is re-applied to `deny` on re-init. Every other key keeps consumer-wins, so this is not a global precedence inversion; the guard list is asserted set-equal to the profile by `check:opencode-platform-contract`.
35
- - **The claim prose is corrected.** `.opencode/AGENTS.md` no longer says the guard is "non-overridable". It states what the deny does guarantee (it survives the `'*': 'allow'` catch-all and `--auto`) and what it does not: an agent-level `permission` block takes precedence over the global map, a command whose parsed form does not match the pattern is not covered, and a user editing their own `opencode.json` can widen it. `commit-hygiene` plus the human commit step remains the control.
36
- - **Migration.** A file that only has `permission.shell` (the unbound key this package briefly emitted) is folded into `permission.bash` on re-init, and `shell` is removed. A consumer `policies` array is left untouched. `clean` still strips a block recorded under either `added.bash` or `added.shell`. Re-run `init opencode` to pick up `permission.bash`.
142
+ - Cursor `sessionStart` and Claude `SessionStart` run `hooks/check-preset-update.mjs`. Mavis and OpenCode run the same script on the first reply (`## Preset version` in root `AGENTS.md`).
143
+ - When `packageVersion` in `<tool>/.ai-rules-install.json` is older than the npm latest for `@bonesofspring/ai-rules`, the agent tells the user the installed version, the latest version, and to run `/update`. A registry failure stays silent. The registry lookup is cached for 12 hours.
144
+
145
+
146
+ ### Added
147
+
148
+ - Maintainer coverage: `scripts/test-preset-update-check.mjs` for the preset-update hook. (6023272d)
149
+
150
+ ## 0.2.37
151
+
152
+ ### Added
153
+
154
+ - Hook body parity and shared-core drift lineage fixture tests (`test-hook-body-parity-fixtures.mjs`, `test-shared-core-drift-lineage-fixtures.mjs`). (e9aea2d6)
155
+
156
+ ## 0.2.36
157
+
158
+ ### Changed
159
+
160
+ - OpenCode adapter generation and `scripts/lib/stack-platform-profiles.mjs`; extended `test-cli-mcp-merge.mjs`. (29897447)
161
+
162
+ ## 0.2.35
37
163
 
38
164
  ### Presets: prompt-persistence reachability, core classification, reachability gate, `preset-*` authoring-only
39
165
 
@@ -43,22 +169,11 @@
43
169
  - **`preset-*` meta rules are documented as preset-authoring-only** (installed but intentionally never consumer-loaded) and exempted by the gate; `docs/PRESET-CONTRIBUTION.md` + `presets/_shared/README.md` updated.
44
170
  - Generated Mavis/OpenCode trees regenerated and CLI goldens recaptured (root `AGENTS.md` + `ai-local-overlay` newline normalization).
45
171
 
46
- ### CLI: no `*.bak.*`, safe `clean`, real rollback (breaking for invalid configs)
47
-
48
- - **No more `*.bak.<stamp>` files.** An existing `mcp.json` / `.mcp.json` / `opencode.json` / `.claude/settings.json` that is not a valid JSON object now fails `init` with exit 1 and leaves the tree untouched (previously backed up and replaced). Edited managed files are overwritten without a side copy.
49
- - **`clean` keeps user content.** Cursor/Claude manifests (`schemaVersion: 2`) list only files `init` copied; v1 manifests fall back to files the recorded preset ships. Merged configs are recorded under `mergedConfigs` and only the entries `init` added are stripped; the file is removed only when `init` created it and it ends up empty.
50
- - **Rollback** of a failed `init` restores overwritten files from a transient `<toolRoot>/.rollback/<runId>/` snapshot and removes only paths that did not exist before.
51
- - **Path safety:** every destination goes through `assertSafeDest` (symlinked `AGENTS.md`, `.cursor/rules`, `.mavis/rules` … are refused); empty-dir cleanup never follows symlinks; `..foo` directory names no longer misdetected as traversal.
52
- - **`.claude/settings.json` is merged** on re-init (permission arrays unioned, preset hooks added by command) instead of overwritten.
53
- - Shared installer helpers extracted to `bin/lib/fs-utils.js` and `bin/lib/merged-config.js`.
172
+ ### Added
54
173
 
55
- ### Presets: consumer hygiene and proportional Figma gate
174
+ - Generated-tree test fixtures (`test-generate-claude-fixtures.mjs`, `test-generated-drift-fixtures.mjs`, `test-generated-drift-claude-fixtures.mjs`). (26f438de)
56
175
 
57
- - `preset-*` authoring rules attach only to `packages/ai-rules/{presets,scripts,docs}/**` — they no longer load during consumer `/task` work.
58
- - Removed project-specific names from shipped prose and the forced Russian locale for test titles / JSDoc (project locale per repo lint, default English); `types-jsdoc` documents only non-obvious meaning.
59
- - Maintainer gates (`check:preset-structure`, `packages/ai-rules/scripts/**`) removed from consumer `build-verifier` / `ci-investigator` / hooks; moved into `preset-pr-checklist`.
60
- - `figma-fidelity` is the single gate procedure: default scope = changed nodes at mobile + desktop; full matrix + fluid sweep on `fidelity: full` or new screens. `AC-n` labels dropped from shipped prose; duplicated gate prose replaced with pointers. `check-figma-contract-presence.sh` updated.
61
- - Router guidance is detect-first everywhere (`navigation-router-*`, `react-performance`); brace globs expanded to YAML lists; `language-policy` (Cursor) globs fixed.
176
+ ## 0.2.34
62
177
 
63
178
  ### Repo / tooling
64
179
 
@@ -68,6 +183,20 @@
68
183
  - npm `files` ships only the consumer scripts (`check-product-specs.sh`, `aggregate-agent-task-metrics.mjs`, `close-agent-task-human-gate.mjs`).
69
184
  - Root `package.json` / `lerna.json` version aligned to the package (`0.2.34`); commitlint rejects generic subjects (`presets update`) and subjects shorter than 10 chars.
70
185
 
186
+ ### Added
187
+
188
+ - Chain hook coverage extensions (`test-chain-team-phases-coverage.mjs`, `test-parallel-plan-fixtures.mjs`). (057f6646)
189
+
190
+ ## 0.2.33
191
+
192
+ ### Presets: consumer hygiene and proportional Figma gate
193
+
194
+ - `preset-*` authoring rules attach only to `packages/ai-rules/{presets,scripts,docs}/**` — they no longer load during consumer `/task` work.
195
+ - Removed project-specific names from shipped prose and the forced Russian locale for test titles / JSDoc (project locale per repo lint, default English); `types-jsdoc` documents only non-obvious meaning.
196
+ - Maintainer gates (`check:preset-structure`, `packages/ai-rules/scripts/**`) removed from consumer `build-verifier` / `ci-investigator` / hooks; moved into `preset-pr-checklist`.
197
+ - `figma-fidelity` is the single gate procedure: default scope = changed nodes at mobile + desktop; full matrix + fluid sweep on `fidelity: full` or new screens. `AC-n` labels dropped from shipped prose; duplicated gate prose replaced with pointers. `check-figma-contract-presence.sh` updated.
198
+ - Router guidance is detect-first everywhere (`navigation-router-*`, `react-performance`); brace globs expanded to YAML lists; `language-policy` (Cursor) globs fixed.
199
+
71
200
  ### Preset brevity & comment discipline
72
201
 
73
202
  - **New requestable shared-core meta rule `meta/preset-writing-style.md`** — preset prose: state the rule, cut the demagogy (no filler, hedging, emphasis inflation, restated rules, storytelling), one testable rule per line, link instead of duplicate. EMBED: 10 Cursor `preset-writing-style.mdc` + 10 Claude twins + regenerated `mavis/**` / `opencode/**`; referenced from `preset-goals` and `preset-pr-checklist`.
@@ -99,6 +228,12 @@
99
228
  - **Next rules/agents/skills extended:** `mockup-review` + `code-review-mr` + `feature-delivery-workflow` Stack notes carry the MCP matrix (Figma / chrome-devtools / Playwright / Storybook) + degradation; `design-tokens-binding` carries the QA baseline + value/geometry diff; `mockup-reviewer`/`feature-developer`/`code-reviewer` prompts gain the contract precondition, parity/value diff, and `mockup-change-requested` verdict; 4 next `.ai.local` seeds reference the contract.
100
229
  - **New hard gate `scripts/check-figma-contract-presence.sh`** wired into `check-preset-structure.sh` (+ `yarn check:figma-contract`) — asserts the contract headings / keys / markers / skill steps are present. **Deliberate non-change:** core `review/code-review-mr.md` untouched (anti-fan-out); lineage propagation for `feature-delivery-workflow` / `agent-team-orchestrator` (core + next adapters only).
101
230
 
231
+ ### Added
232
+
233
+ - Preset contract fixture suites (`test-preset-language-policy-fixtures.mjs`, `test-preset-prompt-persistence-fixtures.mjs`, `test-preset-self-review-contract-fixtures.mjs`). (5d214e58)
234
+
235
+ ## 0.2.32
236
+
102
237
  ### Next: runtime-model, catalog, seeds, and generated-tree correctness
103
238
 
104
239
  - **Generated trees no longer ship dangling `.mdc` pointers.** `generate-mavis` / `generate-opencode` rewrite in-body `.mdc` cross-references to sibling rule `.md` stems (embed-mode bodies previously kept Cursor `## Stack notes` verbatim); author `preset-*` meta-rules keep their intentional Cursor `.mdc` references. `check-generated-drift.mjs` now fails on a dangling sibling-stem `.mdc` in any generated rule tree.
@@ -110,6 +245,18 @@
110
245
  - **Pipeline/agent wiring:** `task-router` and `feature-delivery-workflow` require `mockup-reviewer` for UI scope **without** a Figma URL; `build-verifier` runs the catalog suite; `code-review-mr` adds a spec/docs sync gate; `task-analyst`/`openspec-author` templates gain `## Hard rules applied` and `## Compliance impact`; `feature-developer`/`code-reviewer` return a `## Human commits` plan.
111
246
  - **`init` overwrite contract documented** (managed vs preserved) in `ai-local-overlay`, root `AGENTS.md`, and `docs/LOCAL-OVERLAY.md`; `post-change-lint`/`tests-unit` prefer package scripts and cover secondary packages.
112
247
 
248
+ ### Changed
249
+
250
+ - Mavis/OpenCode adapter generators (`scripts/lib/generate-adapter-common.mjs`, `generate-mavis-adapter.mjs`, `generate-opencode-adapter.mjs`). (879ec753)
251
+
252
+ ## 0.2.30
253
+
254
+ ### Changed
255
+
256
+ - Refreshed Mavis/OpenCode CLI goldens (`scripts/fixtures/cli-golden/mavis/next.json`, `opencode/next.json`). (997c45f8)
257
+
258
+ ## 0.2.29
259
+
113
260
  ### Claude session-start overlay, settings hooks, and dogfood sync
114
261
 
115
262
  - Claude `ai-local-overlay` is session-start (no `paths:`) on all 10 stacks, inside the 3–10 always-on budget, with entry-file probe text in `CLAUDE.md` and root `AGENTS.md`.
@@ -117,11 +264,41 @@
117
264
  - Mavis and OpenCode keep prompt-contract overlay loading (`nativeProjectRules` unknown / no-equivalent). `projectHooks` and the unverified Mavis workspace discovery fields are `manual`. Mavis `freshInit` stays `unknown`; MCP import stays `fallback-manual-import`.
118
265
  - Maintainers: `scripts/sync-dogfood-claude.sh` copies `presets/claude/<stack>` to `.claude/`.
119
266
 
267
+ ### Added
268
+
269
+ - `scripts/sync-dogfood-claude.sh` for Claude dogfood sync from presets. (e22c5b7f)
270
+
271
+ ## 0.2.28
272
+
273
+ ### OpenCode config: only the schema OpenCode reads (breaking for existing `opencode.json`)
274
+
275
+ - **The deny map is `permission.bash`.** `opencode.ai/docs/permissions` (re-read 2026-10-26) keys the v1 `permission` object by tool name, and the shell-command tool is `bash`. `permission.shell` is not that key. v2 is a separate schema (`permissions[]` with `action: "shell"`); this preset does not emit it. Rules resolve by pattern match with the **last** match winning, so `'*': 'allow'` stays first and the `git commit` / `git push` `deny` rows after it bind.
276
+ - **The top-level `policies` array is removed, not renamed.** `opencode.ai/docs/policies` configures policies at `experimental.policies` and supports exactly one action, `provider.use`, so a `tool.use` hard-deny cannot be expressed at all. A consumer-authored `policies` array is left untouched.
277
+ - **Bare `git commit` / `git push` are denied too.** `git commit *` does not match the argument-less form — the invocation that opens the editor. The rows live in the stack profile, so Claude Code's `settings.json` deny lists gain `Bash(git commit)` and `Bash(git push)`; `scripts/sync-claude-settings.mjs` now runs inside `fix:generated`, which is what stops the two platforms drifting.
278
+ - **The guard rows are sticky.** A pre-existing `"git push *": "allow"` in a consumer's `permission.bash` is re-applied to `deny` on re-init. Every other key keeps consumer-wins, so this is not a global precedence inversion; the guard list is asserted set-equal to the profile by `check:opencode-platform-contract`.
279
+ - **The claim prose is corrected.** `.opencode/AGENTS.md` no longer says the guard is "non-overridable". It states what the deny does guarantee (it survives the `'*': 'allow'` catch-all and `--auto`) and what it does not: an agent-level `permission` block takes precedence over the global map, a command whose parsed form does not match the pattern is not covered, and a user editing their own `opencode.json` can widen it. `commit-hygiene` plus the human commit step remains the control.
280
+ - **Migration.** A file that only has `permission.shell` (the unbound key this package briefly emitted) is folded into `permission.bash` on re-init, and `shell` is removed. A consumer `policies` array is left untouched. `clean` still strips a block recorded under either `added.bash` or `added.shell`. Re-run `init opencode` to pick up `permission.bash`.
281
+
120
282
  ### OpenCode re-init picks up preset rules; Claude ships `settings.json`
121
283
 
122
284
  - `init opencode` merges `opencode.json` by **unioning** preset `instructions` paths and **filling missing** `permission.bash` keys. Consumer extra paths and same-key overrides stay, including on re-init. An empty `instructions` array no longer blocks the preset list.
123
285
  - Claude presets now include `presets/claude/<stack>/settings.json` (harness `permissions.deny` / `ask`). `init claude` copies it to `.claude/settings.json` and overwrites that file on re-init.
124
286
 
287
+ ### Added
288
+
289
+ - `scripts/sync-claude-settings.mjs`; additional `test-cli-mcp-merge.mjs` cases. (cc5ea6a9)
290
+
291
+ ## 0.2.27
292
+
293
+ ### CLI: no `*.bak.*`, safe `clean`, real rollback (breaking for invalid configs)
294
+
295
+ - **No more `*.bak.<stamp>` files.** An existing `mcp.json` / `.mcp.json` / `opencode.json` / `.claude/settings.json` that is not a valid JSON object now fails `init` with exit 1 and leaves the tree untouched (previously backed up and replaced). Edited managed files are overwritten without a side copy.
296
+ - **`clean` keeps user content.** Cursor/Claude manifests (`schemaVersion: 2`) list only files `init` copied; v1 manifests fall back to files the recorded preset ships. Merged configs are recorded under `mergedConfigs` and only the entries `init` added are stripped; the file is removed only when `init` created it and it ends up empty.
297
+ - **Rollback** of a failed `init` restores overwritten files from a transient `<toolRoot>/.rollback/<runId>/` snapshot and removes only paths that did not exist before.
298
+ - **Path safety:** every destination goes through `assertSafeDest` (symlinked `AGENTS.md`, `.cursor/rules`, `.mavis/rules` … are refused); empty-dir cleanup never follows symlinks; `..foo` directory names no longer misdetected as traversal.
299
+ - **`.claude/settings.json` is merged** on re-init (permission arrays unioned, preset hooks added by command) instead of overwritten.
300
+ - Shared installer helpers extracted to `bin/lib/fs-utils.js` and `bin/lib/merged-config.js`.
301
+
125
302
  ### Over-abstraction guardrails + aligned always-on budget
126
303
 
127
304
  - **Shared core** `quality/code-quality-and-refactoring` gains an **Over-abstraction guardrails** section: no unnecessary constants, no invented one-off utilities (Rule of Three), decompose over conditionals. Propagated to all 10 stacks (Cursor + Claude; Mavis / OpenCode regenerated).
@@ -129,6 +306,12 @@
129
306
  - **Token budget raised and aligned** across platforms: Cursor / Claude / Mavis / OpenCode always-on count moved to **3–5** (was Cursor ≤4, Claude exactly 3, Mavis/OpenCode ≤4); session-start body cap moved to **200** lines (stretch **170**) and the combined Mavis/OpenCode entry cap to **200** nonempty lines (was 140/170). The current cap is **3–10** files and **4000** lines (see 0.2.40). Enforced by `check-preset-token-budget.sh`, `check-{mavis,opencode}-token-budget.mjs`, `test-{mavis,opencode}-context-budget.mjs`; policy in `preset-token-budget` / `preset-pr-checklist`, `docs/PRESET-CONTRIBUTION.md`, and every `build-verifier` / `rules/README.md`.
130
307
  - Consumers: re-run `npx @bonesofspring/ai-rules init <tool|multi> --preset <stack>` to pick up the new rule bodies and policy text.
131
308
 
309
+ ### Changed
310
+
311
+ - Large preset tree refresh under `packages/ai-rules/presets/**` (Mavis/OpenCode/Cursor twins). (f293ba6f)
312
+
313
+ ## 0.2.26
314
+
132
315
  ### Shared `.ai.local/team/` pipelines (breaking)
133
316
 
134
317
  - `/task` artifacts (`pipeline.json`, `status.json`, `metrics.json`, receipts) now live at **`.ai.local/team/tasks/<slug>/`**, shared across Cursor, Claude, Mavis, and OpenCode (including `init multi`).
@@ -138,6 +321,12 @@
138
321
  - Living gotchas stay in **`.ai.local/conventions.md`**. Overlay does not load `team/**` as rules. `init` seeds that file from the preset template `presets/<platform>/<stack>/ai-local/conventions.md` (moved out of `team/`) and **never** overwrites an existing consumer file.
139
322
  - Consumers: re-run `npx @bonesofspring/ai-rules init <tool|multi> --preset <stack>` to seed/migrate. Commit `.ai.local/team/` if you want tasks to survive clones.
140
323
 
324
+ ### Changed
325
+
326
+ - Mass regeneration of Mavis/OpenCode install trees and related preset sources (`presets/mavis/**`, `presets/opencode/**`). (42bc7e13)
327
+
328
+ ## 0.2.25
329
+
141
330
  ### WP-F: Mavis / OpenCode / multi for all 10 stacks
142
331
 
143
332
  - `init mavis|opencode|multi --preset <stack>` now covers every installable stack: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`.
@@ -157,20 +346,44 @@
157
346
  ### OpenCode platform (experimental Next-only)
158
347
 
159
348
  - New platform **`opencode`**: `npx @bonesofspring/ai-rules init opencode --preset next` installs **`.opencode/**`** plus root `AGENTS.md` and merges MCP into **`opencode.json`**. `clean opencode` is manifest/hash-safe. The CLI never writes `~/.config/opencode/**`.
160
- - Source: `presets/opencode/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-opencode.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in WP-F (see above).
349
+ - Source: `presets/opencode/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-opencode.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in 0.2.25.
161
350
  - Native OpenCode discovery for agents, skills, and slash commands. Rules under `.opencode/rules/` are lazy-loaded from `AGENTS.md` (no `alwaysApply`/`globs` engine). Pipeline hook is manual `chain-team-phases.sh` (no `hooks.json` plugin in v1).
162
351
  - Docs: [`docs/OPENCODE.md`](docs/OPENCODE.md) (consumer), [`docs/OPENCODE-COMPATIBILITY.md`](docs/OPENCODE-COMPATIBILITY.md) (docs-floor evidence). Gates: `check-opencode-*`, `test-opencode-context-budget` wired into `check:preset-structure`.
163
352
  - Review follow-up: team-agent write-scope lead-in is role-specific; consumer `OPENCODE.md` no longer uses broken relative doc links; orchestrator uses OpenCode `mode`/`permission` wording; `build-verifier` preset-structure lists OpenCode/Mavis derive gates; Cursor/Claude `REPO_AGENTS.md` keep OpenCode/Mavis pointers so mixed-tool `init` does not drop them.
164
353
  - Consumers: re-run `npx @bonesofspring/ai-rules init opencode --preset next` after publish. Cursor/Claude/Mavis installs unchanged.
165
354
 
355
+ ### Added
356
+
357
+ - **OpenCode** platform preset (`presets/opencode/**`) and `scripts/test-opencode-context-budget.mjs`. (1a05fffd)
358
+
359
+ ## 0.2.24
360
+
361
+ ### Changed
362
+
363
+ - Mavis preset review follow-up: `scripts/sync-dogfood-mavis.sh`, CLI golden tweaks. (df44f6f4)
364
+
365
+ ## 0.2.23
366
+
166
367
  ### Mavis platform (MiniMax Code, experimental Next-only)
167
368
 
168
369
  - New platform **`mavis`** (`mcode` runtime): `npx @bonesofspring/ai-rules init mavis --preset next` installs **`.mavis/**`** plus root `AGENTS.md`. `clean mavis` is manifest/hash-safe. MCP merges to **`.mavis/mcp.json`** only — the CLI never writes `~/.minimax/**`.
169
- - Source: `presets/mavis/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-mavis.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in WP-F (see above).
170
- - Semi-auto orchestration: `chain-team-phases.sh` on `.mavis/team` *(superseded by the shared `.ai.local/team/` runtime — see Unreleased)*; no shipped `hooks.json`. Human gates via `task-continue` → hook `end_human_gate`. Agents upsert `artifact-manifest.json` only — hook owns `status.json` / `metrics.json`.
370
+ - Source: `presets/mavis/<stack>/` derived from `presets/cursor/<stack>` (`adapter-map.json`, `generate-mavis.mjs --stack`). Next-pilot `releasedStacks: ["next"]` expanded in 0.2.25.
371
+ - Semi-auto orchestration: `chain-team-phases.sh` on `.mavis/team` *(superseded by the shared `.ai.local/team/` runtime in 0.2.26)*; no shipped `hooks.json`. Human gates via `task-continue` → hook `end_human_gate`. Agents upsert `artifact-manifest.json` only — hook owns `status.json` / `metrics.json`.
171
372
  - Docs: [`docs/MAVIS.md`](docs/MAVIS.md) (consumer), [`docs/MAVIS-COMPATIBILITY.md`](docs/MAVIS-COMPATIBILITY.md) (probe evidence). Gates: `check-mavis-*`, `test-mavis-*` wired into `check:preset-structure`.
172
373
  - Consumers: re-run `npx @bonesofspring/ai-rules init mavis --preset next` after publish. Cursor/Claude installs unchanged.
173
374
 
375
+ ### Added
376
+
377
+ - **Mavis** platform preset (`presets/mavis/**`) with `scripts/test-mavis-orchestration.mjs` and capability probes. (2f4880da)
378
+
379
+ ## 0.2.22
380
+
381
+ ### Added
382
+
383
+ - `scripts/test-task-router-intents-fixtures.mjs`; extended chain-hook coverage tests. (f7251cef)
384
+
385
+ ## 0.2.21
386
+
174
387
  ### Chain-team-phases hook coverage + pipeline race fixes
175
388
 
176
389
  - `chain-team-phases.sh` (all 20 stack × platform hooks) now covers every agent that ships in its stack's `agents/` directory:
@@ -199,6 +412,12 @@
199
412
  - 40 preset command files deleted from this monorepo (`packages/ai-rules/presets/{claude,cursor}/<stack>/commands/{feature-start,feature-continue}.md`, 10 stacks × 2 platforms × 2 commands). The equivalent deletions in three sub-repo dogfood mirrors (`dogfood/go-hexagonal`, `dogfood/java-spring-hexagonal`, `dogfood/mcp-ts-sample`) are part of the same change set but live in separate git trees. Cross-references in `commands/README.md`, `agents/README.md`, `team/README.md`, `rules/README.md`, `AGENTS.md` / `CLAUDE.md`, `agent-team-orchestrator`, and `commands/{task,task-continue,technical-retro}.md` updated.
200
413
  - Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish; both legacy commands are no longer installed.
201
414
 
415
+ ### Added
416
+
417
+ - `scripts/test-chain-team-phases-coverage.mjs` for hook/agent handoff coverage. (73c2d788)
418
+
419
+ ## 0.2.20
420
+
202
421
  ### Superpowers B1–B5 (all installable stacks)
203
422
 
204
423
  - All 10 stacks (Cursor + Claude): **verification-before-completion** lineage snippet on `build-verifier` / `feature-developer` only. `debugger` keeps inline 3-fix + `fixApplied` re-run (skill cross-ref) — not the verification stem. **receiving-code-review** embed on `code-review` skill; implementer one-liner on `feature-developer`, `debugger`, and `ci-investigator` (where those agents exist). Debug skill 4-phase + 3-fix architecture gate; task-analyst/router classify spike / bounded / architectural onto **existing** pipeline profiles.
@@ -207,14 +426,18 @@
207
426
  - No 4th always-on rule; `anti-sycophancy-discipline` core body unchanged (promote receiving-CR there in a later 10-stack PR).
208
427
  - Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish.
209
428
 
210
- Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P0/P1, hook-only lifecycle, and the review follow-up below; **(B)** sections after MCP (UX, mockup reviewer, product-specs, android-kotlin, nuxt/svelte/php-laravel, …) were already Unreleased **on the `v0.2.18` tag** and were never versioned.
211
-
212
429
  ### Follow-up: Superpowers B1–B5 review alignment
213
430
 
214
431
  - CHANGELOG/SoT match PRESET-CONTRIBUTION: verification lineage is `build-verifier` + `feature-developer`; debugger 3-fix stays inline (no verification marker).
215
432
  - receiving-CR implementer one-liner extended to `debugger` and `ci-investigator` (9 stacks × 2; mcp-ts has neither).
216
433
  - Backend `debugger` agents (`go` / `java` / `php-hexagonal` / `php-laravel`, Cursor + Claude) now load `debug-investigation` at the top, matching UI/mobile.
217
434
 
435
+ ### Changed
436
+
437
+ - Preset cleanup and shared-core drift checks across stacks (`check-shared-core-drift.sh` updates). (0cebd54b)
438
+
439
+ ## 0.2.19
440
+
218
441
  ### Follow-up: review fixes (lifecycle, MCP merge, docs)
219
442
 
220
443
  - Hook-only lifecycle sweep: 22 ios-swift agents, 8 next/nuxt/svelte/ios `code-review` skills, 5 Claude `feature-continue` commands, Claude Playwright generators, and backend `code-review` skills upsert `artifact-manifest.json` receipts and must not mutate `status.json`. New hard gate `check:hook-only-lifecycle` (wired into `check:preset-structure`).
@@ -234,9 +457,9 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
234
457
  - **`specMode`** (`consume` | `generate` | `none`) on `brief.md` / optional `pipeline.json`. Spike/research uses `none` — no dummy INDEX row.
235
458
  - **`applyReadiness`:** YAML frontmatter on developer `implementation.md`; JSON-shaped `{ state: blocked|ready|all_done, contextFiles[] }` on the analyst receipt (analyst may emit `blocked` before the authoring gate).
236
459
  - Requestable skill **`spec-discovery`** (11 methods, mandatory claim ledger). Analyst loads it only for research-before-spec — not default `/task` consume. Cursor + Claude ×10 stacks.
237
- - **Memlog** `.cursor/team/tasks/<slug>/.memlog.md` (Claude: `.claude/…`) *(path superseded by `.ai.local/team/` — see Unreleased)* — append-only agent notes; hook does not parse it.
460
+ - **Memlog** `.cursor/team/tasks/<slug>/.memlog.md` (Claude: `.claude/…`) *(path superseded by `.ai.local/team/` in 0.2.26)* — append-only agent notes; hook does not parse it.
238
461
  - **Code Map** (3–8 annotated paths) + **Suggested Review Order** when a WP spans more than one layer.
239
- - Skills README catalogs include **`spec-authoring`** (was missing beside `spec-discovery`). Claude nuxt `task-router` writes `.claude/team` (not `.cursor/team`) *(both paths superseded by `.ai.local/team/` — see Unreleased)*.
462
+ - Skills README catalogs include **`spec-authoring`** (was missing beside `spec-discovery`). Claude nuxt `task-router` writes `.claude/team` (not `.cursor/team`) *(both paths superseded by `.ai.local/team/` in 0.2.26)*.
240
463
  - Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish.
241
464
 
242
465
  ### Spec workflow P0 hygiene
@@ -258,11 +481,17 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
258
481
  - Leakage: `storybook-reviewer` forbidden as an agent stem on backend/mobile; Storybook/Chrome DevTools must not be required handoffs there.
259
482
  - Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` after publish. Overlay servers in project `mcp.json` survive re-init **when the existing file is valid JSON**.
260
483
 
261
- ### UX design skill (UI stacks)
484
+ ### Added
262
485
 
263
- - New requestable skill/rule **`ux-design`** on **`next`**, **`nuxt`**, **`svelte`**, **`ios-swift`**, **`android-kotlin`** (Cursor + Claude twins). Shared-core checklist: `presets/_shared/core/review/ux-design.md`. Invoked by **`task-analyst`** — **no** `ux-designer` agent, **no** FAIL-only hook, **no** Figma MCP in the skill/rule.
264
- - Standalone intent **`ux-design`**: synthesize or review behavioral UX (IA, named flows, empty/error/loading matrix) → profile `light`, steps only `task-analyst`, `humanGates: []`. Classify `mockup-review` before `ux-design` before `review-only`.
265
- - Embedded: on UI required-signal or advisory AC, analyst loads the skill (no new pipeline step). Required `INCOMPLETE` blocks DoR; advisory notes only. Developer gate: required-signal + no Figma + missing/`INCOMPLETE` UX artifact → `blocked`, hand back to analyst.
486
+ - CLI MCP merge tests in `scripts/test-cli-mcp-merge.mjs`. (9208ab39)
487
+
488
+ ## 0.2.18
489
+
490
+ ### UX design skill (UI stacks)
491
+
492
+ - New requestable skill/rule **`ux-design`** on **`next`**, **`nuxt`**, **`svelte`**, **`ios-swift`**, **`android-kotlin`** (Cursor + Claude twins). Shared-core checklist: `presets/_shared/core/review/ux-design.md`. Invoked by **`task-analyst`** — **no** `ux-designer` agent, **no** FAIL-only hook, **no** Figma MCP in the skill/rule.
493
+ - Standalone intent **`ux-design`**: synthesize or review behavioral UX (IA, named flows, empty/error/loading matrix) → profile `light`, steps only `task-analyst`, `humanGates: []`. Classify `mockup-review` before `ux-design` before `review-only`.
494
+ - Embedded: on UI required-signal or advisory AC, analyst loads the skill (no new pipeline step). Required `INCOMPLETE` blocks DoR; advisory notes only. Developer gate: required-signal + no Figma + missing/`INCOMPLETE` UX artifact → `blocked`, hand back to analyst.
266
495
  - Backend stacks (`go`, `java`, `mcp-ts`, `php-*`) never ship `skills/ux-design` / `rules/ux-design` or `agents/ux-designer.md`; leakage checker forbids those stems.
267
496
  - `/task` examples include standalone UX (no Figma). `artifact-manifest.example.json` analysis paths append `ux-design.md` on web stacks.
268
497
  - Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <ui-stack>` after publish.
@@ -276,6 +505,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
276
505
  - Backend stacks (`go`, `java`, `mcp-ts`, `php-*`) never schedule `mockup-reviewer`; leakage checker forbids agent stem on backend.
277
506
  - Consumers: re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <ui-stack>` after publish.
278
507
 
508
+ ### Added
509
+
510
+ - UX / mockup-review preset stems and routing updates (`feat: ux changes` diff under `presets/**/rules` and agents). (7e9a9040)
511
+
512
+ ## 0.2.17
513
+
279
514
  ### Product specs authoring (Phases A–E)
280
515
 
281
516
  - **Generation modes** (shared-core): **Consume** (default discovery, soft-fail on miss) · **Generate** (explicit intent / AC / `/spec-start` with existing tree) · **Bootstrap** (same triggers when `docs/specs/` absent). Greenfield policy: no INDEX/spec invention without explicit intent; conflict precedence human > brief AC > approved spec > code.
@@ -298,6 +533,11 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
298
533
  - Consumers: after publish, re-run `npx @bonesofspring/ai-rules init cursor|claude --preset <stack>` to pick up the stem.
299
534
  - Follow-up polish: android-kotlin Stack notes use `features/**` (not iOS `Features/**`); Claude next/nuxt/ios/android feature-delivery INDEX step numbering aligned with Cursor; next `code-reviewer` checks `docs/specs/**` drift via `product-specs`.
300
535
 
536
+ ### Added
537
+
538
+ - Product specs checker `scripts/check-product-specs.sh` and related preset authoring assets. (97dd9696)
539
+
540
+ ## 0.2.16
301
541
 
302
542
  ### Android Kotlin preset (`android-kotlin`)
303
543
 
@@ -307,6 +547,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
307
547
  - Install: `npx @bonesofspring/ai-rules init cursor|claude --preset android-kotlin`.
308
548
  - Dogfood default remains **`next`** (no switch to android-kotlin).
309
549
 
550
+ ### Added
551
+
552
+ - **android-kotlin** installable preset (`presets/cursor/android-kotlin/**`, `presets/claude/android-kotlin/**`). (1271e4bb)
553
+
554
+ ## 0.2.15
555
+
310
556
  ### Preset EN translation polish (patch)
311
557
 
312
558
  - Hardened `check-preset-i18n.sh`: ±3-line keep-marker window (matches style guide), scans `.md`/`.mdc` plus hook/script suffixes; wired as hard gate via `check:preset-i18n` and `check-preset-structure` / CI.
@@ -322,24 +568,11 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
322
568
  - Consumers: optional `npx @bonesofspring/ai-rules init …` to refresh local wording; no required re-init for path/automation compatibility.
323
569
  - Dogfood: re-run `scripts/sync-dogfood-cursor.sh` after next (or `AI_RULES_DOGFOOD_PRESET=…`) preset edits.
324
570
 
325
- ### Agent artifact contracts
326
-
327
- - New shared-core schema SoT: `presets/_shared/core/agent-team/agent-artifact-contracts.md` — per-slug `artifact-manifest.json` (schema v1) as context index + completion receipts; markdown remains narrative evidence.
328
- - Agents upsert only owned manifest entries/receipts; the orchestration runtime/hook is the sole writer of `status.json` lifecycle fields and `metrics.json`.
329
- - All seven Cursor/Claude stack team docs and existing task-router, task-analyst, feature-developer, build-verifier, and code-reviewer prompts declare authoritative inputs, owned outputs, and terminal receipt outcomes (orchestration runtime/hook remains the sole writer of `status.json` / `metrics.json`; hook instrumentation for metrics and receipt reconciliation is covered below).
330
- - Added mirrored Next `artifact-manifest.example.json` fixtures and the `apply-agent-team-p0` dogfood pilot. Existing tasks without a manifest fall back to `brief.md`, `decomposition.md`, and `pipeline.json` and report the gap.
331
-
332
- ### Agent-team routing rubric
333
-
334
- - New agent-team pipelines retain top-level `profile` and emit a structured `routingDecision` with `complexity`, `riskFlags`, auditable `routingReasons`, `estimatedWorkPackages`, and `openDecisionCount`.
335
- - Updated all seven Cursor routers and seven Claude twins with shared low/moderate/high heuristics and concrete risk signals. Next light/standard/full fixtures demonstrate the contract; existing pipelines without the optional block remain valid.
571
+ ### Changed
336
572
 
337
- ### Agent-task metrics
573
+ - Preset English translation pass; `scripts/sync-shared-core-embeds.sh` and `check-preset-i18n` wiring. (260f29ca)
338
574
 
339
- - Added local schema-v1 `metrics.json` ledgers for agent-team pipelines: append-only task, attempt, retry, skip, completion, and human-gate lifecycle events. Allowlisted identifiers/timestamps/outcomes only (no prompts, secrets, file paths/contents, or remote telemetry). Shared-core policy: `presets/_shared/core/agent-team/agent-task-metrics.md` (requestable via orchestrator; no new always-on rule).
340
- - Instrumented all Cursor/Claude `chain-team-phases.sh` forks with lock-safe temp-and-rename ledger/status writes, `status.json` `activeAttempts` / `lastCompletedAttempt` bridge, and conservative parallel attribution (payload `attemptId`, sole active attempt, or `.metrics-receipts.json` fallback—never guess from `currentAgent`). Repeated work-package retries now target the nearest preceding developer and return to the requesting verifier/reviewer; stale duplicate stops are ignored.
341
- - Human-gate resume is a hook action: `{"status":"completed","action":"end_human_gate","activateNext":true}` on the installed `hooks/chain-team-phases.sh` (`/task-continue`); optional wrapper `scripts/close-agent-task-human-gate.mjs`.
342
- - Added `aggregate-agent-task-metrics.mjs` (role/count/duration, gate wait, attribution confidence, and separate missing-ledger, malformed-JSON, duplicate-ID, unterminated, unmatched, and duplicate-terminal completeness categories), Next fixtures under `presets/cursor/next/team/fixtures/`, and a 14-fork lifecycle harness covering retry, concurrent parallel completion, skip, gate, and invalid-ledger scenarios. Technical-retro commands include a Metrics evidence section.
575
+ ## 0.2.14
343
576
 
344
577
  ### Nuxt preset (`nuxt`)
345
578
 
@@ -361,6 +594,37 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
361
594
  - Install: `npx @bonesofspring/ai-rules init cursor|claude --preset svelte`.
362
595
  - No dogfood switch from `next` in this monorepo.
363
596
 
597
+ ### Added
598
+
599
+ - **nuxt** and **svelte** installable presets (`presets/cursor/nuxt/**`, `presets/cursor/svelte/**`, Claude twins). (342200c1, 142e3650)
600
+
601
+ ## 0.2.13
602
+
603
+ ### Agent artifact contracts
604
+
605
+ - New shared-core schema SoT: `presets/_shared/core/agent-team/agent-artifact-contracts.md` — per-slug `artifact-manifest.json` (schema v1) as context index + completion receipts; markdown remains narrative evidence.
606
+ - Agents upsert only owned manifest entries/receipts; the orchestration runtime/hook is the sole writer of `status.json` lifecycle fields and `metrics.json`.
607
+ - All seven Cursor/Claude stack team docs and existing task-router, task-analyst, feature-developer, build-verifier, and code-reviewer prompts declare authoritative inputs, owned outputs, and terminal receipt outcomes (orchestration runtime/hook remains the sole writer of `status.json` / `metrics.json`; hook instrumentation for metrics and receipt reconciliation is covered below).
608
+ - Added mirrored Next `artifact-manifest.example.json` fixtures and the `apply-agent-team-p0` dogfood pilot. Existing tasks without a manifest fall back to `brief.md`, `decomposition.md`, and `pipeline.json` and report the gap.
609
+
610
+ ### Agent-team routing rubric
611
+
612
+ - New agent-team pipelines retain top-level `profile` and emit a structured `routingDecision` with `complexity`, `riskFlags`, auditable `routingReasons`, `estimatedWorkPackages`, and `openDecisionCount`.
613
+ - Updated all seven Cursor routers and seven Claude twins with shared low/moderate/high heuristics and concrete risk signals. Next light/standard/full fixtures demonstrate the contract; existing pipelines without the optional block remain valid.
614
+
615
+ ### Changed
616
+
617
+ - **php-laravel** preset follow-up; `scripts/aggregate-agent-task-metrics.mjs` and metrics hook tests extended. (f1da4526)
618
+
619
+ ## 0.2.12
620
+
621
+ ### Agent-task metrics
622
+
623
+ - Added local schema-v1 `metrics.json` ledgers for agent-team pipelines: append-only task, attempt, retry, skip, completion, and human-gate lifecycle events. Allowlisted identifiers/timestamps/outcomes only (no prompts, secrets, file paths/contents, or remote telemetry). Shared-core policy: `presets/_shared/core/agent-team/agent-task-metrics.md` (requestable via orchestrator; no new always-on rule).
624
+ - Instrumented all Cursor/Claude `chain-team-phases.sh` forks with lock-safe temp-and-rename ledger/status writes, `status.json` `activeAttempts` / `lastCompletedAttempt` bridge, and conservative parallel attribution (payload `attemptId`, sole active attempt, or `.metrics-receipts.json` fallback—never guess from `currentAgent`). Repeated work-package retries now target the nearest preceding developer and return to the requesting verifier/reviewer; stale duplicate stops are ignored.
625
+ - Human-gate resume is a hook action: `{"status":"completed","action":"end_human_gate","activateNext":true}` on the installed `hooks/chain-team-phases.sh` (`/task-continue`); optional wrapper `scripts/close-agent-task-human-gate.mjs`.
626
+ - Added `aggregate-agent-task-metrics.mjs` (role/count/duration, gate wait, attribution confidence, and separate missing-ledger, malformed-JSON, duplicate-ID, unterminated, unmatched, and duplicate-terminal completeness categories), Next fixtures under `presets/cursor/next/team/fixtures/`, and a 14-fork lifecycle harness covering retry, concurrent parallel completion, skip, gate, and invalid-ledger scenarios. Technical-retro commands include a Metrics evidence section.
627
+
364
628
  ### PHP Laravel preset (`php-laravel`)
365
629
 
366
630
  - New installable preset **`php-laravel`** (Cursor + Claude twins): Laravel backend/API projects — flat `app/` layout, Eloquent, Form Requests, Policies, Actions/Services, Service Providers, Jobs/Queues/Events; thin controllers with clean-architecture leanings (repositories only when justified).
@@ -384,6 +648,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
384
648
  - Dogfood: `dogfood/php-hexagonal` (domain → ports → HTTP/persistence/messaging adapters → composition → PHPUnit unit + integration).
385
649
  - Review follow-ups: README titles use install name `php-hexagonal`; dogfood twin-sync paths synced; leakage checker scans `team/fixtures` (`steps[]` FAIL / `skipped[]` anti-pattern OK); composition-root HTTP integration test; AB.md PHP sample note; `check:rule-eval` documented as next-only.
386
650
 
651
+ ### Added
652
+
653
+ - **php-hexagonal** and **php-laravel** presets; `scripts/close-agent-task-human-gate.mjs` and `test-agent-task-metrics-hooks.mjs`. (d5057bfc)
654
+
655
+ ## 0.2.11
656
+
387
657
  ### MCP TypeScript preset (`mcp-ts`)
388
658
 
389
659
  - New installable preset **`mcp-ts`** (Cursor + Claude twins): TypeScript MCP server authoring with `@modelcontextprotocol/sdk`, stdio-first transport, Context7-only MCP, package-manager–discovered typecheck/test via `mcp-ts-tooling` / `post-change-test`.
@@ -394,6 +664,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
394
664
  - Dogfood: `dogfood/mcp-ts-sample` (scenarios M1–M3 in `reference-features`).
395
665
  - Platform asymmetry: `BUGBOT.md` + `hooks.json` Cursor-only; `CLAUDE.md` Claude-only.
396
666
 
667
+ ### Added
668
+
669
+ - **mcp-ts** installable preset (`presets/cursor/mcp-ts/**`, `presets/claude/mcp-ts/**`). (175c8096)
670
+
671
+ ## 0.2.10
672
+
397
673
  ### Go/Java stub thicken + session-start budget raise (`go-java-rules-thicken-dogfood`)
398
674
 
399
675
  - **Session-start body cap:** **120 → 140** (stretch **≤120**); `alwaysApply` / Claude session-start count stays **exactly 3**. Checker `BODY_CAP=140`; policy core + embed adapters + build-verifier copy updated.
@@ -402,6 +678,20 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
402
678
  - **Java:** `messaging-adapters` expanded to **full** (J3); `api-grpc` remains documented stub.
403
679
  - **Dogfood hosts:** dedicated samples under `dogfood/go-hexagonal` and `dogfood/java-spring-hexagonal` (A/B runs follow-up).
404
680
 
681
+ ### Review follow-ups (core sharing / structure)
682
+
683
+ - **Shared-core drift is a hard gate** in `check:preset-structure` / CI (`AI_RULES_DRIFT_FAIL=1`).
684
+ - **build-verifier** agents (next/ios-swift/go/java × Cursor+Claude): twin / REPO_AGENTS / react-performance gates list all four stacks.
685
+ - **Leakage core DRY:** merged go+java forbidden blocks in `meta/preset-no-cross-stack-leakage` (+8 embed adapters).
686
+ - **ios-swift session-start:** trimmed `ios-app-core` toward stretch ≤100 body sum (at ship; stretch target now ≤120 with hard cap 140).
687
+ - **Docs:** leakage soft-WARN baseline + drift hardgate in `PRESET-CONTRIBUTION.md`; go/java `feature-full` fixtures drop Playwright/XCUITest skipped noise.
688
+
689
+ ### Changed
690
+
691
+ - Shared-core embed and token-budget script updates across stacks. (edb4f7eb)
692
+
693
+ ## 0.2.9
694
+
405
695
  ### React/Next anti-hallucination (P0-B / `preset-react-next-anti-hallucination`)
406
696
 
407
697
  - New **requestable** next-only rule `react-next-anti-hallucination` (Cursor `.mdc` + Claude twin under `anti-hallucination/`) — ≥15 ❌/✅ banlist rows for phantom Next/React/RTK imports, RSC boundaries, navigation, version drift.
@@ -413,15 +703,13 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
413
703
  - Slimmed always-on `quality/code-quality-and-refactoring` (Principles + condensed Agent discipline essentials + pointer).
414
704
  - New requestable shared-core `quality/anti-sycophancy-discipline` (~17 procedural rules) + Cursor/Claude adapters ×4 stacks (`alwaysApply: false` / `paths:`).
415
705
  - Wired `feature-developer` / `debugger` / `ci-investigator` (Cursor + Claude ×4) to load `anti-sycophancy-discipline` when writing/changing code.
416
- - Session-start alwaysApply trio body sum target was ≤120 (prefer ≤110) at ship time; **superseded** by Unreleased budget raise to ≤140 (prefer ≤120).
706
+ - Session-start alwaysApply trio body sum target was ≤120 (prefer ≤110) at ship time; **superseded** by the 140-line cap in 0.2.10, then by the 4000-line cap in 0.2.40.
417
707
 
418
- ### Review follow-ups (core sharing / structure)
708
+ ### Added
419
709
 
420
- - **Shared-core drift is a hard gate** in `check:preset-structure` / CI (`AI_RULES_DRIFT_FAIL=1`).
421
- - **build-verifier** agents (next/ios-swift/go/java × Cursor+Claude): twin / REPO_AGENTS / react-performance gates list all four stacks.
422
- - **Leakage core DRY:** merged go+java forbidden blocks in `meta/preset-no-cross-stack-leakage` (+8 embed adapters).
423
- - **ios-swift session-start:** trimmed `ios-app-core` toward stretch ≤100 body sum (at ship; stretch target now ≤120 with hard cap 140).
424
- - **Docs:** leakage soft-WARN baseline + drift hardgate in `PRESET-CONTRIBUTION.md`; go/java `feature-full` fixtures drop Playwright/XCUITest skipped noise.
710
+ - Requestable `react-next-anti-hallucination` rule (`presets/cursor/next/rules/react-next-anti-hallucination.mdc`). (ec27c49e)
711
+
712
+ ## 0.2.8
425
713
 
426
714
  ### Java preset
427
715
 
@@ -432,6 +720,12 @@ Grouping for the next npm cut: **(A)** post-`0.2.18` delta — MCP merge, spec P
432
720
  - Install: `npx @bonesofspring/ai-rules init cursor|claude --preset java`.
433
721
  - Platform asymmetry: `BUGBOT.md` + `hooks.json` Cursor-only; `CLAUDE.md` Claude-only.
434
722
 
723
+ ### Changed
724
+
725
+ - Preset structure/leakage gate scripts (`check-preset-leakage.sh`, `check-preset-structure.sh`). (59157110)
726
+
727
+ ## 0.2.7
728
+
435
729
  ### Claude Code handbook agent discipline
436
730
 
437
731
  Borrowed workflow patterns from [claude-code-rules](https://github.com/nikiforovall/claude-code-rules) (methodology marketplace — not coding standards). Additive on top of structure-change / preset-rules-improvements work.
@@ -453,11 +747,17 @@ Borrowed workflow patterns from [claude-code-rules](https://github.com/nikiforov
453
747
  - **iOS:** `swiftui-ui` lifecycle/ownership (`.task`, DI vs `@StateObject`, hit testing).
454
748
  - **Shared quality:** Agent discipline (anti-sycophancy) section in `quality/code-quality-and-refactoring` (+6 adapters).
455
749
 
750
+ ### Added
751
+
752
+ - Opt-in rule eval harness `scripts/check-rule-eval.mjs`; team `conventions.md` template under cursor next. (03b4088b)
753
+
754
+ ## 0.2.6
755
+
456
756
  ### Preset rules improvements (9 items)
457
757
 
458
758
  Cross-cutting preset packaging work (all six presets unless noted **next-only**). Hard gates unchanged: twin sync, ≤3 always-on, no cross-stack leakage.
459
759
 
460
- | # | Item | Unreleased note |
760
+ | # | Item | Note |
461
761
  |---|------|-----------------|
462
762
  | 1 | Root `AGENTS.md` + **CLI** | `repoRootFiles`: `REPO_AGENTS.md` → `<cwd>/AGENTS.md` on cursor **and** claude `init` (overwrite policy A); removed on `clean` either tool |
463
763
  | 2 | Incorrect/Correct samples | **next only** — 9 domain rules with emedcard-grounded pairs |
@@ -494,6 +794,8 @@ Cross-cutting preset packaging work (all six presets unless noted **next-only**)
494
794
 
495
795
  ### Changed
496
796
 
797
+ State at the 0.2.6 cut. Later releases replace `.cursor` / `.claude` team paths with `.ai.local/team` (0.2.26), remove `/feature-start` (0.2.21), and raise the always-on cap (0.2.40).
798
+
497
799
  - **Style delegate:** next `arrow-functions` trimmed → ESLint/Stylelint + `post-change-lint`; ios/go Stack notes point to SwiftLint / golangci; abstract style sentence in shared code-quality core (no tool names in core body).
498
800
  - **Leakage scan:** `hooks/**/*.sh` recursive (includes cookbook examples).
499
801
  - **Meta twin policy (three stacks):** `preset-twin-sync` / `preset-pr-checklist` / `preset-layering` core + embeds name **next, ios-swift, and go**; twin FAIL applies to all three (`check-preset-twin-map.sh`).
@@ -520,279 +822,6 @@ Cross-cutting preset packaging work (all six presets unless noted **next-only**)
520
822
 
521
823
  - **P2 optional (ios-swift):** Remaining polish: feature-delivery matrix enrichment, swift-conventions body cap. (`BUGBOT.md` shipped.)
522
824
 
523
- ## 0.2.40
524
-
525
- ### `/task` records a goal, an outcome, and a review ledger
526
-
527
- - **Before specialists.** Slug bootstrap writes `goal.md` (formulated outcome: Goal, User value, Success criteria, Non-goals). `prompt.md` stays the verbatim request. Copying the prompt into the goal is invalid. The plan stop shows `goal.md` and waits for confirmation of those fields. The analyst echoes `goal.md` and does not replace it. Bounded, spike, and `light` tasks still write the thin frame.
528
- - **After the terminal state.** The orchestrator writes `outcome.md` (`goalAchieved`, `value`, per-criterion evidence, `reviewCounts`) before the closing message. `unsatisfactory` does not reopen the task.
529
- - **Review ledger.** Self-review defects that change the output, `code-reviewer` findings, and user or other-agent objections append to `review-ledger.md`. A `fair: yes` row at close appends one signal per distinct signature and runs `node .ai.local/scripts/run.mjs` once. Preset-prose targets stay staged for `/technical-retro`.
530
- - **Contract.** `agent-artifact-contracts`, `task-framing`, `self-review-and-context-hygiene`, and the orchestrator. `check-plan-contract.sh` requires `goal.md`, `outcome.md`, and `review-ledger.md` on `commands/task.md` and the orchestrator. `check-preset-self-review-contract.sh` requires `review-ledger.md` on the producer agents and on `commands/task.md`.
531
-
532
- ### Always-on budget raised to 10 files and 4000 lines
533
-
534
- - **File cap.** Cursor `alwaysApply`, Claude session-start (README excluded), and Mavis/OpenCode `loadMode: root-entry` are **3–10** (was 3–5). The minimum stays 3. A count above 3 still includes `ai-local-overlay`. `next` keeps exactly four always-on stems.
535
- - **Line cap.** The Cursor/Claude session-start body sum and the combined Mavis/OpenCode root `AGENTS.md` + platform entry are **≤4000** nonempty lines (was 200, stretch 170). The stretch target is the same 4000. The separate next glob-attached fixture caps stay UI 420, store 400, and API 400.
536
- - **Enforcement.** `check-preset-token-budget.sh` (`MAX_ALWAYS_ON=10`, `BODY_CAP=4000`), `check-{mavis,opencode}-token-budget.mjs` (root-entry cap 10), and `test-{mavis,opencode}-context-budget.mjs` (entry cap 4000). Policy text is in `preset-token-budget`, `preset-pr-checklist`, `preset-layering`, each stack `README.md` / `CLAUDE.md`, and `docs/PRESET-CONTRIBUTION.md`.
537
- - **Consumers.** The installed always-on set is unchanged. Re-init picks up the new policy text (see Upgrade).
538
-
539
- ### CSS declaration hygiene on web layout rules
540
-
541
- - **No initial or no-op declarations.** `css-property-order-stylelint` on `next`, `nuxt`, and `svelte` tells agents to omit a property at its initial value (`min-width: 0` on a block). `min-width: 0` stays on a flex or grid item, where it overrides the automatic minimum `auto`.
542
- - **Integer pixels.** A fractional `px` literal rounds to the nearest integer (`334.667px` → `335px`). A tie rounds away from zero.
543
- - **Necessity check.** After the initial-value pass, delete any declaration whose removal does not change the used value. Stylelint order auto-fix does not do this.
544
- - **Where it loads.** The checks live in `css-property-order-stylelint`. `next` loads it on `styles.ts(x)` and `app/**/*.css`, and `react-ui` restates them. `nuxt` loads it on `*.css`, `*.scss`, and `*.vue`; `vue-ui` points at it. `svelte` loads it on `*.css`, `*.scss`, and `*.svelte`; `svelte-ui` points at it. `code-review-mr` on those three stacks applies the same checks to a UI diff.
545
-
546
- ### Preset-update notice stands apart from the task answer
547
-
548
- - **Version notice.** When the installed preset is older than npm `latest`, the reply opens with a level-2 heading and a blockquote in the user's language. Both versions are bold. The notice names the installed version, the latest version, and `/update`. It is not a sentence inside the task answer.
549
- - **`/update` result.** The command reports that the update finished successfully, or that it did not. A failure quotes stderr and stops. It does not quote the numeric exit code.
550
-
551
- ### Agents load an anti-hallucination contract
552
-
553
- - **Requestable contract.** `anti-hallucination-contract` is on every role and is not always-on. Writer roles — implementer, unit-test, e2e, qa, and `code-reviewer` — also load that stack's floor. Read-only roles stop at the contract. `next`, `nuxt`, and `svelte` keep their dense banlists and point at the contract. `go`, `java`, `php-hexagonal`, `php-laravel`, `ios-swift`, `android-kotlin`, and `mcp-ts` ship a thin floor.
554
- - **Coverage gate.** `yarn check:preset-structure` runs `check-anti-hallucination-coverage.mjs`. The fixture fails when `anti-hallucination-contract` is removed from `next.reviewer`. The gate does not scan consumer application source and does not call Context7.
555
- - **Skill classes.** A new `skills/<family>` must be registered in `SKILL_CONTRACT_CLASS`. `writer` (including `code-review`) carries the stack floor sentence. `reader` carries the contract load line only.
556
-
557
- ### Nested `.ai.local` is resolved from the paths a step touches
558
-
559
- - **`list-ai-local.mjs`** lists the ancestor chain for each path: the root overlay applies everywhere, a nested overlay applies only under its directory, and the same rule file name on one chain resolves to the deeper file. With no paths it prints every overlay prefix and does not merge siblings. `team/**` and `rules-library/**` are not rules.
560
- - **Scope growth.** When `.ai.local/team/tasks/<slug>/` already exists, `--record <slug>` writes `overlay-scope.json` and appends one `.memlog.md` `event:` per newly entered overlay. Files newly in that recorded scope are printed under `new:`. A missing task directory skips the write.
561
- - **Task language.** The tag already stored in `prompt.md` stays for the task. A nested `conventions.md` entered later does not switch it. With no stored tag, the nearest `conventions.md` on the chain applies.
562
- - **Mid-session pickup.** A new `.ai.local`, or a file under an overlay the task has already entered, is picked up the next time the script runs with a path on that chain.
563
- - **All four hosts** ship the same script under `hooks/`. Cursor `sessionStart` and Claude `SessionStart` print the prefix index. That index is not the apply set. Mavis and OpenCode run the script from the overlay rule; they have no session hook. If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
564
-
565
- ### Upgrade
566
-
567
- - `npx @bonesofspring/ai-rules update` (or `init <tool|multi> --preset <stack>`) replaces managed hooks and rules. Re-init picks up `list-ai-local.mjs`, the version-notice shape, `anti-hallucination-contract`, the CSS declaration checks, the `goal.md` / `outcome.md` / `review-ledger.md` instructions, and the 3–10 / 4000 budget text.
568
- - Cursor `sessionStart` and Claude `SessionStart` run `list-ai-local.mjs` next to the existing preset-update check.
569
- - The budget change raises the cap. It does not add an always-on rule.
570
-
571
- ## 0.2.39
572
-
573
- ### A `null` journal line no longer stops the self-learning loop
574
-
575
- - `JSON.parse("null")` is valid JSON and returns `null`. Reading `.slug` / `.at` on it threw, and one such line aborted derivation, `run.mjs`, and the efficacy oracle.
576
- - Those readers now require a non-null object that is not an array. A `null`, primitive, or array line is skipped and left in the file. `--status` counts it as malformed. Objects that are missing fields were already skipped.
577
-
578
- ### `task_completed` is written only after `requireArtifacts` passes
579
-
580
- - `chain-team-phases.sh` used to record `task_completed` and then call completion, which can still write `state: blocked` when `.ai.local/pipeline-gates.json` lists a receipt that is not completed. Metrics then showed a finished task that had failed the last check.
581
- - The metric is written only on the success branch, after the receipt check, on every platform and stack. A missing receipt still blocks and writes no `task_completed`. A pipeline that completes because no step remains now records the metric too.
582
-
583
- ### Derived signals are deduped inside the lock
584
-
585
- - Two overlapping `run.mjs` runs could both derive the same `(slug, id, kind)` and both append it. The check now re-reads the journal under the lock before appending. The report's `appended` count includes only the row that was written.
586
-
587
- ### The engine lock is `flock`, and the lock file stays
588
-
589
- - Reclaiming a stale `.ai.local/scripts` lock by `unlink` could delete a lock a second process had just taken. Ownership is now a POSIX `flock` held by a short-lived `perl` helper (`Fcntl`, `Time::HiRes`). The helper drops the lock when its parent exits, including after a crash. The lock file is not removed: a file on disk does not mean the lock is held. `staleMs` is accepted and ignored.
590
- - `perl` with those two modules is required. If it is missing, acquire fails with `lock helper unavailable: perl with Fcntl and Time::HiRes`.
591
- - The metrics lock inside `chain-team-phases.sh` is unchanged (token file plus `unlink`).
592
-
593
- ### Preset-update notice refreshes after one hour
594
-
595
- - `hooks/check-preset-update.mjs` caches the npm `latest` lookup for 1 hour. `0.2.38` cached it for 12 hours.
596
-
597
- ### Upgrade
598
-
599
- - `npx @bonesofspring/ai-rules update` replaces the managed hooks, so the `task_completed` order and the one-hour cache land on re-init.
600
- - `init` / `update` does not overwrite an existing `.ai.local/scripts/*.mjs`. The journal, dedup, and `flock` fixes ship in `run.mjs`, `signals.mjs`, `lock.mjs`, `rule-improver.mjs`, `derive-gate-signals.mjs`, and `efficacy-oracle.mjs`. If those files are still the copies from an older install, replace them with the package copies (a local edit is kept on purpose).
601
-
602
- ## 0.2.38
603
-
604
- ### Presets report a newer package and name the latest version
605
-
606
- - Cursor `sessionStart` and Claude `SessionStart` run `hooks/check-preset-update.mjs`. Mavis and OpenCode run the same script on the first reply (`## Preset version` in root `AGENTS.md`).
607
- - When `packageVersion` in `<tool>/.ai-rules-install.json` is older than the npm latest for `@bonesofspring/ai-rules`, the agent tells the user the installed version, the latest version, and to run `/update`. A registry failure stays silent. The registry lookup is cached for 12 hours.
608
-
609
-
610
- ### Added
611
-
612
- - Maintainer coverage: `scripts/test-preset-update-check.mjs` for the preset-update hook. (6023272d)
613
-
614
- ## 0.2.37
615
-
616
- ### Added
617
-
618
- - Hook body parity and shared-core drift lineage fixture tests (`test-hook-body-parity-fixtures.mjs`, `test-shared-core-drift-lineage-fixtures.mjs`). (e9aea2d6)
619
-
620
- ## 0.2.36
621
-
622
- ### Changed
623
-
624
- - OpenCode adapter generation and `scripts/lib/stack-platform-profiles.mjs`; extended `test-cli-mcp-merge.mjs`. (29897447)
625
-
626
- ## 0.2.35
627
-
628
- ### Added
629
-
630
- - Generated-tree test fixtures (`test-generate-claude-fixtures.mjs`, `test-generated-drift-fixtures.mjs`, `test-generated-drift-claude-fixtures.mjs`). (26f438de)
631
-
632
- ## 0.2.34
633
-
634
- ### Added
635
-
636
- - Chain hook coverage extensions (`test-chain-team-phases-coverage.mjs`, `test-parallel-plan-fixtures.mjs`). (057f6646)
637
-
638
- ## 0.2.33
639
-
640
- ### Added
641
-
642
- - Preset contract fixture suites (`test-preset-language-policy-fixtures.mjs`, `test-preset-prompt-persistence-fixtures.mjs`, `test-preset-self-review-contract-fixtures.mjs`). (5d214e58)
643
-
644
- ## 0.2.32
645
-
646
- ### Changed
647
-
648
- - Mavis/OpenCode adapter generators (`scripts/lib/generate-adapter-common.mjs`, `generate-mavis-adapter.mjs`, `generate-opencode-adapter.mjs`). (879ec753)
649
-
650
- ## 0.2.30
651
-
652
- ### Changed
653
-
654
- - Refreshed Mavis/OpenCode CLI goldens (`scripts/fixtures/cli-golden/mavis/next.json`, `opencode/next.json`). (997c45f8)
655
-
656
- ## 0.2.29
657
-
658
- ### Added
659
-
660
- - `scripts/sync-dogfood-claude.sh` for Claude dogfood sync from presets. (e22c5b7f)
661
-
662
- ## 0.2.28
663
-
664
- ### Added
665
-
666
- - `scripts/sync-claude-settings.mjs`; additional `test-cli-mcp-merge.mjs` cases. (cc5ea6a9)
667
-
668
- ## 0.2.27
669
-
670
- ### Changed
671
-
672
- - Large preset tree refresh under `packages/ai-rules/presets/**` (Mavis/OpenCode/Cursor twins). (f293ba6f)
673
-
674
- ## 0.2.26
675
-
676
- ### Changed
677
-
678
- - Mass regeneration of Mavis/OpenCode install trees and related preset sources (`presets/mavis/**`, `presets/opencode/**`). (42bc7e13)
679
-
680
- ## 0.2.25
681
-
682
- ### Added
683
-
684
- - **OpenCode** platform preset (`presets/opencode/**`) and `scripts/test-opencode-context-budget.mjs`. (1a05fffd)
685
-
686
- ## 0.2.24
687
-
688
- ### Changed
689
-
690
- - Mavis preset review follow-up: `scripts/sync-dogfood-mavis.sh`, CLI golden tweaks. (df44f6f4)
691
-
692
- ## 0.2.23
693
-
694
- ### Added
695
-
696
- - **Mavis** platform preset (`presets/mavis/**`) with `scripts/test-mavis-orchestration.mjs` and capability probes. (2f4880da)
697
-
698
- ## 0.2.22
699
-
700
- ### Added
701
-
702
- - `scripts/test-task-router-intents-fixtures.mjs`; extended chain-hook coverage tests. (f7251cef)
703
-
704
- ## 0.2.21
705
-
706
- ### Added
707
-
708
- - `scripts/test-chain-team-phases-coverage.mjs` for hook/agent handoff coverage. (73c2d788)
709
-
710
- ## 0.2.20
711
-
712
- ### Changed
713
-
714
- - Preset cleanup and shared-core drift checks across stacks (`check-shared-core-drift.sh` updates). (0cebd54b)
715
-
716
- ## 0.2.19
717
-
718
- ### Added
719
-
720
- - CLI MCP merge tests in `scripts/test-cli-mcp-merge.mjs`. (9208ab39)
721
-
722
- ## 0.2.18
723
-
724
- ### Added
725
-
726
- - UX / mockup-review preset stems and routing updates (`feat: ux changes` diff under `presets/**/rules` and agents). (7e9a9040)
727
-
728
- ## 0.2.17
729
-
730
- ### Added
731
-
732
- - Product specs checker `scripts/check-product-specs.sh` and related preset authoring assets. (97dd9696)
733
-
734
- ## 0.2.16
735
-
736
- ### Added
737
-
738
- - **android-kotlin** installable preset (`presets/cursor/android-kotlin/**`, `presets/claude/android-kotlin/**`). (1271e4bb)
739
-
740
- ## 0.2.15
741
-
742
- ### Changed
743
-
744
- - Preset English translation pass; `scripts/sync-shared-core-embeds.sh` and `check-preset-i18n` wiring. (260f29ca)
745
-
746
- ## 0.2.14
747
-
748
- ### Added
749
-
750
- - **nuxt** and **svelte** installable presets (`presets/cursor/nuxt/**`, `presets/cursor/svelte/**`, Claude twins). (342200c1, 142e3650)
751
-
752
- ## 0.2.13
753
-
754
- ### Changed
755
-
756
- - **php-laravel** preset follow-up; `scripts/aggregate-agent-task-metrics.mjs` and metrics hook tests extended. (f1da4526)
757
-
758
- ## 0.2.12
759
-
760
- ### Added
761
-
762
- - **php-hexagonal** and **php-laravel** presets; `scripts/close-agent-task-human-gate.mjs` and `test-agent-task-metrics-hooks.mjs`. (d5057bfc)
763
-
764
- ## 0.2.11
765
-
766
- ### Added
767
-
768
- - **mcp-ts** installable preset (`presets/cursor/mcp-ts/**`, `presets/claude/mcp-ts/**`). (175c8096)
769
-
770
- ## 0.2.10
771
-
772
- ### Changed
773
-
774
- - Shared-core embed and token-budget script updates across stacks. (edb4f7eb)
775
-
776
- ## 0.2.9
777
-
778
- ### Added
779
-
780
- - Requestable `react-next-anti-hallucination` rule (`presets/cursor/next/rules/react-next-anti-hallucination.mdc`). (ec27c49e)
781
-
782
- ## 0.2.8
783
-
784
- ### Changed
785
-
786
- - Preset structure/leakage gate scripts (`check-preset-leakage.sh`, `check-preset-structure.sh`). (59157110)
787
-
788
- ## 0.2.7
789
-
790
- ### Added
791
-
792
- - Opt-in rule eval harness `scripts/check-rule-eval.mjs`; team `conventions.md` template under cursor next. (03b4088b)
793
-
794
- ## 0.2.6
795
-
796
825
  ### Added
797
826
 
798
827
  - Preset CI gates: `check-preset-twin-map.sh`, `check-preset-token-budget.sh`, `check-shared-core-drift.sh`, `sync-dogfood-cursor.sh`; `_shared/core/**` expansion. (5067c91e)