@bonesofspring/ai-rules 0.2.84 → 0.2.87

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 (445) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/bin/lib/engine-scripts.js +4 -0
  3. package/bin/lib/seed-ai-local-team.js +39 -2
  4. package/bin/opencode-install.js +3 -2
  5. package/docs/OPENCODE-COMPATIBILITY.md +6 -4
  6. package/docs/OPENCODE.md +8 -5
  7. package/docs/PRESET-CONTRIBUTION.md +19 -10
  8. package/docs/TEAM-DB.md +76 -3
  9. package/docs/TOKEN-ECONOMY.md +20 -0
  10. package/docs/openapi/team-db.v1.json +7069 -5895
  11. package/package.json +5 -2
  12. package/presets/_shared/ai-local/scripts/report-step-cost.mjs +544 -0
  13. package/presets/_shared/ai-local/scripts/team-db-api.mjs +253 -15
  14. package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +310 -4
  15. package/presets/_shared/ai-local/scripts/team-db-project.mjs +733 -8
  16. package/presets/_shared/ai-local/scripts/team-db-schema.mjs +44 -0
  17. package/presets/_shared/ai-local/scripts/team-db.mjs +43 -3
  18. package/presets/_shared/assets/model-tiers.json +6 -0
  19. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +3 -3
  20. package/presets/_shared/hooks/guard-shell-command.mjs.tmpl +125 -105
  21. package/presets/claude/android-kotlin/hooks/guard-shell-command.mjs +125 -105
  22. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  23. package/presets/claude/go/hooks/guard-shell-command.mjs +125 -105
  24. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  25. package/presets/claude/ios-swift/hooks/guard-shell-command.mjs +125 -105
  26. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  27. package/presets/claude/java/hooks/guard-shell-command.mjs +125 -105
  28. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  29. package/presets/claude/mcp-ts/hooks/guard-shell-command.mjs +125 -105
  30. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  31. package/presets/claude/mol/hooks/guard-shell-command.mjs +125 -105
  32. package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  33. package/presets/claude/next/agents/build-verifier.md +2 -1
  34. package/presets/claude/next/agents/feature-developer.md +1 -1
  35. package/presets/claude/next/hooks/guard-shell-command.mjs +125 -105
  36. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  37. package/presets/claude/nuxt/hooks/guard-shell-command.mjs +125 -105
  38. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  39. package/presets/claude/php-hexagonal/hooks/guard-shell-command.mjs +125 -105
  40. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  41. package/presets/claude/php-laravel/hooks/guard-shell-command.mjs +125 -105
  42. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  43. package/presets/claude/svelte/hooks/guard-shell-command.mjs +125 -105
  44. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +3 -3
  45. package/presets/cursor/android-kotlin/hooks/guard-shell-command.mjs +125 -105
  46. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +3 -3
  47. package/presets/cursor/go/hooks/guard-shell-command.mjs +125 -105
  48. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +3 -3
  49. package/presets/cursor/ios-swift/hooks/guard-shell-command.mjs +125 -105
  50. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +3 -3
  51. package/presets/cursor/java/hooks/guard-shell-command.mjs +125 -105
  52. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +3 -3
  53. package/presets/cursor/mcp-ts/hooks/guard-shell-command.mjs +125 -105
  54. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +3 -3
  55. package/presets/cursor/mol/hooks/guard-shell-command.mjs +125 -105
  56. package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +3 -3
  57. package/presets/cursor/next/agents/build-verifier.md +2 -1
  58. package/presets/cursor/next/agents/feature-developer.md +1 -1
  59. package/presets/cursor/next/hooks/guard-shell-command.mjs +125 -105
  60. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +3 -3
  61. package/presets/cursor/nuxt/hooks/guard-shell-command.mjs +125 -105
  62. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +3 -3
  63. package/presets/cursor/php-hexagonal/hooks/guard-shell-command.mjs +125 -105
  64. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +3 -3
  65. package/presets/cursor/php-laravel/hooks/guard-shell-command.mjs +125 -105
  66. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +3 -3
  67. package/presets/cursor/svelte/hooks/guard-shell-command.mjs +125 -105
  68. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +3 -3
  69. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  70. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +3 -3
  71. package/presets/mavis/go/adapter-map.json +1 -1
  72. package/presets/mavis/go/rules/agent-team-orchestrator.md +3 -3
  73. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  74. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +3 -3
  75. package/presets/mavis/java/adapter-map.json +1 -1
  76. package/presets/mavis/java/rules/agent-team-orchestrator.md +3 -3
  77. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  78. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +3 -3
  79. package/presets/mavis/mol/adapter-map.json +1 -1
  80. package/presets/mavis/mol/rules/agent-team-orchestrator.md +3 -3
  81. package/presets/mavis/next/adapter-map.json +1 -1
  82. package/presets/mavis/next/agents/build-verifier.md +2 -1
  83. package/presets/mavis/next/agents/feature-developer.md +1 -1
  84. package/presets/mavis/next/rules/agent-team-orchestrator.md +3 -3
  85. package/presets/mavis/nuxt/adapter-map.json +1 -1
  86. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +3 -3
  87. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  88. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +3 -3
  89. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  90. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +3 -3
  91. package/presets/mavis/svelte/adapter-map.json +1 -1
  92. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +3 -3
  93. package/presets/opencode/android-kotlin/OPENCODE.md +5 -66
  94. package/presets/opencode/android-kotlin/adapter-map.json +42 -42
  95. package/presets/opencode/android-kotlin/agents/accessibility-reviewer.md +1 -1
  96. package/presets/opencode/android-kotlin/agents/api-contract-reviewer.md +1 -1
  97. package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
  98. package/presets/opencode/android-kotlin/agents/ci-investigator.md +1 -1
  99. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  100. package/presets/opencode/android-kotlin/agents/codebase-analyzer.md +1 -1
  101. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  102. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  103. package/presets/opencode/android-kotlin/agents/instrumentation-test-generator.md +1 -1
  104. package/presets/opencode/android-kotlin/agents/instrumentation-test-healer.md +1 -1
  105. package/presets/opencode/android-kotlin/agents/instrumentation-test-planner.md +1 -1
  106. package/presets/opencode/android-kotlin/agents/migration-specialist.md +1 -1
  107. package/presets/opencode/android-kotlin/agents/mockup-reviewer.md +1 -1
  108. package/presets/opencode/android-kotlin/agents/openspec-author.md +1 -1
  109. package/presets/opencode/android-kotlin/agents/performance-auditor.md +1 -1
  110. package/presets/opencode/android-kotlin/agents/qa-tester.md +1 -1
  111. package/presets/opencode/android-kotlin/agents/security-reviewer.md +1 -1
  112. package/presets/opencode/android-kotlin/agents/solution-architect.md +1 -1
  113. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  114. package/presets/opencode/android-kotlin/agents/task-router.md +1 -1
  115. package/presets/opencode/android-kotlin/agents/tech-writer.md +1 -1
  116. package/presets/opencode/android-kotlin/agents/unit-test-generator.md +1 -1
  117. package/presets/opencode/android-kotlin/agents/unit-test-healer.md +1 -1
  118. package/presets/opencode/android-kotlin/agents/unit-test-planner.md +1 -1
  119. package/presets/opencode/android-kotlin/commands/task-continue.md +1 -1
  120. package/presets/opencode/android-kotlin/hooks/README.md +11 -1
  121. package/presets/opencode/android-kotlin/hooks/guard-shell-command.mjs +155 -0
  122. package/presets/opencode/android-kotlin/plugins/rule-attach/globs.json +167 -0
  123. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
  124. package/presets/opencode/go/OPENCODE.md +5 -51
  125. package/presets/opencode/go/adapter-map.json +45 -45
  126. package/presets/opencode/go/agents/api-contract-reviewer.md +1 -1
  127. package/presets/opencode/go/agents/build-verifier.md +1 -1
  128. package/presets/opencode/go/agents/ci-investigator.md +1 -1
  129. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  130. package/presets/opencode/go/agents/codebase-analyzer.md +1 -1
  131. package/presets/opencode/go/agents/debugger.md +1 -1
  132. package/presets/opencode/go/agents/feature-developer.md +1 -1
  133. package/presets/opencode/go/agents/integration-test-generator.md +1 -1
  134. package/presets/opencode/go/agents/integration-test-healer.md +1 -1
  135. package/presets/opencode/go/agents/integration-test-planner.md +1 -1
  136. package/presets/opencode/go/agents/migration-specialist.md +1 -1
  137. package/presets/opencode/go/agents/openspec-author.md +1 -1
  138. package/presets/opencode/go/agents/performance-auditor.md +1 -1
  139. package/presets/opencode/go/agents/qa-tester.md +1 -1
  140. package/presets/opencode/go/agents/security-reviewer.md +1 -1
  141. package/presets/opencode/go/agents/solution-architect.md +1 -1
  142. package/presets/opencode/go/agents/task-analyst.md +1 -1
  143. package/presets/opencode/go/agents/task-router.md +1 -1
  144. package/presets/opencode/go/agents/tech-writer.md +1 -1
  145. package/presets/opencode/go/agents/unit-test-generator.md +1 -1
  146. package/presets/opencode/go/agents/unit-test-healer.md +1 -1
  147. package/presets/opencode/go/agents/unit-test-planner.md +1 -1
  148. package/presets/opencode/go/commands/task-continue.md +1 -1
  149. package/presets/opencode/go/hooks/README.md +11 -1
  150. package/presets/opencode/go/hooks/guard-shell-command.mjs +154 -0
  151. package/presets/opencode/go/plugins/rule-attach/globs.json +198 -0
  152. package/presets/opencode/go/rules/agent-team-orchestrator.md +5 -5
  153. package/presets/opencode/ios-swift/OPENCODE.md +5 -66
  154. package/presets/opencode/ios-swift/adapter-map.json +41 -41
  155. package/presets/opencode/ios-swift/agents/accessibility-reviewer.md +1 -1
  156. package/presets/opencode/ios-swift/agents/api-contract-reviewer.md +1 -1
  157. package/presets/opencode/ios-swift/agents/build-verifier.md +1 -1
  158. package/presets/opencode/ios-swift/agents/ci-investigator.md +1 -1
  159. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  160. package/presets/opencode/ios-swift/agents/codebase-analyzer.md +1 -1
  161. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  162. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  163. package/presets/opencode/ios-swift/agents/migration-specialist.md +1 -1
  164. package/presets/opencode/ios-swift/agents/mockup-reviewer.md +1 -1
  165. package/presets/opencode/ios-swift/agents/openspec-author.md +1 -1
  166. package/presets/opencode/ios-swift/agents/performance-auditor.md +1 -1
  167. package/presets/opencode/ios-swift/agents/qa-tester.md +1 -1
  168. package/presets/opencode/ios-swift/agents/security-reviewer.md +1 -1
  169. package/presets/opencode/ios-swift/agents/solution-architect.md +1 -1
  170. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  171. package/presets/opencode/ios-swift/agents/task-router.md +1 -1
  172. package/presets/opencode/ios-swift/agents/tech-writer.md +1 -1
  173. package/presets/opencode/ios-swift/agents/unit-test-generator.md +1 -1
  174. package/presets/opencode/ios-swift/agents/unit-test-healer.md +1 -1
  175. package/presets/opencode/ios-swift/agents/unit-test-planner.md +1 -1
  176. package/presets/opencode/ios-swift/agents/xcuitest-test-generator.md +1 -1
  177. package/presets/opencode/ios-swift/agents/xcuitest-test-healer.md +1 -1
  178. package/presets/opencode/ios-swift/agents/xcuitest-test-planner.md +1 -1
  179. package/presets/opencode/ios-swift/commands/task-continue.md +1 -1
  180. package/presets/opencode/ios-swift/hooks/README.md +11 -1
  181. package/presets/opencode/ios-swift/hooks/guard-shell-command.mjs +154 -0
  182. package/presets/opencode/ios-swift/plugins/rule-attach/globs.json +160 -0
  183. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +5 -5
  184. package/presets/opencode/java/OPENCODE.md +5 -58
  185. package/presets/opencode/java/adapter-map.json +45 -45
  186. package/presets/opencode/java/agents/api-contract-reviewer.md +1 -1
  187. package/presets/opencode/java/agents/build-verifier.md +1 -1
  188. package/presets/opencode/java/agents/ci-investigator.md +1 -1
  189. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  190. package/presets/opencode/java/agents/codebase-analyzer.md +1 -1
  191. package/presets/opencode/java/agents/debugger.md +1 -1
  192. package/presets/opencode/java/agents/feature-developer.md +1 -1
  193. package/presets/opencode/java/agents/integration-test-generator.md +1 -1
  194. package/presets/opencode/java/agents/integration-test-healer.md +1 -1
  195. package/presets/opencode/java/agents/integration-test-planner.md +1 -1
  196. package/presets/opencode/java/agents/migration-specialist.md +1 -1
  197. package/presets/opencode/java/agents/openspec-author.md +1 -1
  198. package/presets/opencode/java/agents/performance-auditor.md +1 -1
  199. package/presets/opencode/java/agents/qa-tester.md +1 -1
  200. package/presets/opencode/java/agents/security-reviewer.md +1 -1
  201. package/presets/opencode/java/agents/solution-architect.md +1 -1
  202. package/presets/opencode/java/agents/task-analyst.md +1 -1
  203. package/presets/opencode/java/agents/task-router.md +1 -1
  204. package/presets/opencode/java/agents/tech-writer.md +1 -1
  205. package/presets/opencode/java/agents/unit-test-generator.md +1 -1
  206. package/presets/opencode/java/agents/unit-test-healer.md +1 -1
  207. package/presets/opencode/java/agents/unit-test-planner.md +1 -1
  208. package/presets/opencode/java/commands/task-continue.md +1 -1
  209. package/presets/opencode/java/hooks/README.md +11 -1
  210. package/presets/opencode/java/hooks/guard-shell-command.mjs +155 -0
  211. package/presets/opencode/java/plugins/rule-attach/globs.json +230 -0
  212. package/presets/opencode/java/rules/agent-team-orchestrator.md +5 -5
  213. package/presets/opencode/mcp-ts/OPENCODE.md +5 -48
  214. package/presets/opencode/mcp-ts/adapter-map.json +36 -36
  215. package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
  216. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  217. package/presets/opencode/mcp-ts/agents/security-reviewer.md +1 -1
  218. package/presets/opencode/mcp-ts/agents/solution-architect.md +1 -1
  219. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  220. package/presets/opencode/mcp-ts/agents/task-router.md +1 -1
  221. package/presets/opencode/mcp-ts/commands/task-continue.md +1 -1
  222. package/presets/opencode/mcp-ts/hooks/README.md +11 -1
  223. package/presets/opencode/mcp-ts/hooks/guard-shell-command.mjs +154 -0
  224. package/presets/opencode/mcp-ts/plugins/rule-attach/globs.json +151 -0
  225. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
  226. package/presets/opencode/mol/OPENCODE.md +5 -56
  227. package/presets/opencode/mol/adapter-map.json +31 -31
  228. package/presets/opencode/mol/agents/accessibility-reviewer.md +1 -1
  229. package/presets/opencode/mol/agents/api-contract-reviewer.md +1 -1
  230. package/presets/opencode/mol/agents/build-verifier.md +1 -1
  231. package/presets/opencode/mol/agents/ci-investigator.md +1 -1
  232. package/presets/opencode/mol/agents/code-reviewer.md +1 -1
  233. package/presets/opencode/mol/agents/codebase-analyzer.md +1 -1
  234. package/presets/opencode/mol/agents/debugger.md +1 -1
  235. package/presets/opencode/mol/agents/feature-developer.md +1 -1
  236. package/presets/opencode/mol/agents/migration-specialist.md +1 -1
  237. package/presets/opencode/mol/agents/mockup-reviewer.md +1 -1
  238. package/presets/opencode/mol/agents/openspec-author.md +1 -1
  239. package/presets/opencode/mol/agents/performance-auditor.md +1 -1
  240. package/presets/opencode/mol/agents/playwright-test-generator.md +1 -1
  241. package/presets/opencode/mol/agents/playwright-test-healer.md +1 -1
  242. package/presets/opencode/mol/agents/playwright-test-planner.md +1 -1
  243. package/presets/opencode/mol/agents/qa-tester.md +1 -1
  244. package/presets/opencode/mol/agents/security-reviewer.md +1 -1
  245. package/presets/opencode/mol/agents/solution-architect.md +1 -1
  246. package/presets/opencode/mol/agents/task-analyst.md +1 -1
  247. package/presets/opencode/mol/agents/task-router.md +1 -1
  248. package/presets/opencode/mol/agents/tech-writer.md +1 -1
  249. package/presets/opencode/mol/agents/unit-test-generator.md +1 -1
  250. package/presets/opencode/mol/agents/unit-test-healer.md +1 -1
  251. package/presets/opencode/mol/agents/unit-test-planner.md +1 -1
  252. package/presets/opencode/mol/commands/task-continue.md +1 -1
  253. package/presets/opencode/mol/hooks/README.md +11 -1
  254. package/presets/opencode/mol/hooks/guard-shell-command.mjs +153 -0
  255. package/presets/opencode/mol/plugins/rule-attach/globs.json +112 -0
  256. package/presets/opencode/mol/rules/agent-team-orchestrator.md +5 -5
  257. package/presets/opencode/next/OPENCODE.md +5 -55
  258. package/presets/opencode/next/adapter-map.json +56 -56
  259. package/presets/opencode/next/agents/accessibility-reviewer.md +1 -1
  260. package/presets/opencode/next/agents/api-contract-reviewer.md +1 -1
  261. package/presets/opencode/next/agents/build-verifier.md +3 -2
  262. package/presets/opencode/next/agents/ci-investigator.md +1 -1
  263. package/presets/opencode/next/agents/code-reviewer.md +1 -1
  264. package/presets/opencode/next/agents/codebase-analyzer.md +1 -1
  265. package/presets/opencode/next/agents/debugger.md +1 -1
  266. package/presets/opencode/next/agents/feature-developer.md +2 -2
  267. package/presets/opencode/next/agents/migration-specialist.md +1 -1
  268. package/presets/opencode/next/agents/mockup-reviewer.md +1 -1
  269. package/presets/opencode/next/agents/openspec-author.md +1 -1
  270. package/presets/opencode/next/agents/performance-auditor.md +1 -1
  271. package/presets/opencode/next/agents/playwright-test-generator.md +1 -1
  272. package/presets/opencode/next/agents/playwright-test-healer.md +1 -1
  273. package/presets/opencode/next/agents/playwright-test-planner.md +1 -1
  274. package/presets/opencode/next/agents/qa-tester.md +1 -1
  275. package/presets/opencode/next/agents/security-reviewer.md +1 -1
  276. package/presets/opencode/next/agents/solution-architect.md +1 -1
  277. package/presets/opencode/next/agents/task-analyst.md +1 -1
  278. package/presets/opencode/next/agents/task-router.md +1 -1
  279. package/presets/opencode/next/agents/tech-writer.md +1 -1
  280. package/presets/opencode/next/agents/unit-test-generator.md +1 -1
  281. package/presets/opencode/next/agents/unit-test-healer.md +1 -1
  282. package/presets/opencode/next/agents/unit-test-planner.md +1 -1
  283. package/presets/opencode/next/commands/task-continue.md +1 -1
  284. package/presets/opencode/next/hooks/README.md +11 -1
  285. package/presets/opencode/next/hooks/guard-shell-command.mjs +153 -0
  286. package/presets/opencode/next/plugins/rule-attach/globs.json +276 -0
  287. package/presets/opencode/next/rules/agent-team-orchestrator.md +5 -5
  288. package/presets/opencode/nuxt/OPENCODE.md +5 -54
  289. package/presets/opencode/nuxt/adapter-map.json +51 -51
  290. package/presets/opencode/nuxt/agents/accessibility-reviewer.md +1 -1
  291. package/presets/opencode/nuxt/agents/api-contract-reviewer.md +1 -1
  292. package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
  293. package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
  294. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  295. package/presets/opencode/nuxt/agents/codebase-analyzer.md +1 -1
  296. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  297. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  298. package/presets/opencode/nuxt/agents/migration-specialist.md +1 -1
  299. package/presets/opencode/nuxt/agents/mockup-reviewer.md +1 -1
  300. package/presets/opencode/nuxt/agents/openspec-author.md +1 -1
  301. package/presets/opencode/nuxt/agents/performance-auditor.md +1 -1
  302. package/presets/opencode/nuxt/agents/playwright-test-generator.md +1 -1
  303. package/presets/opencode/nuxt/agents/playwright-test-healer.md +1 -1
  304. package/presets/opencode/nuxt/agents/playwright-test-planner.md +1 -1
  305. package/presets/opencode/nuxt/agents/qa-tester.md +1 -1
  306. package/presets/opencode/nuxt/agents/security-reviewer.md +1 -1
  307. package/presets/opencode/nuxt/agents/solution-architect.md +1 -1
  308. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  309. package/presets/opencode/nuxt/agents/task-router.md +1 -1
  310. package/presets/opencode/nuxt/agents/tech-writer.md +1 -1
  311. package/presets/opencode/nuxt/agents/unit-test-generator.md +1 -1
  312. package/presets/opencode/nuxt/agents/unit-test-healer.md +1 -1
  313. package/presets/opencode/nuxt/agents/unit-test-planner.md +1 -1
  314. package/presets/opencode/nuxt/commands/task-continue.md +1 -1
  315. package/presets/opencode/nuxt/hooks/README.md +11 -1
  316. package/presets/opencode/nuxt/hooks/guard-shell-command.mjs +153 -0
  317. package/presets/opencode/nuxt/plugins/rule-attach/globs.json +266 -0
  318. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +5 -5
  319. package/presets/opencode/php-hexagonal/OPENCODE.md +5 -60
  320. package/presets/opencode/php-hexagonal/adapter-map.json +45 -45
  321. package/presets/opencode/php-hexagonal/agents/api-contract-reviewer.md +1 -1
  322. package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
  323. package/presets/opencode/php-hexagonal/agents/ci-investigator.md +1 -1
  324. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  325. package/presets/opencode/php-hexagonal/agents/codebase-analyzer.md +1 -1
  326. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  327. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
  328. package/presets/opencode/php-hexagonal/agents/integration-test-generator.md +1 -1
  329. package/presets/opencode/php-hexagonal/agents/integration-test-healer.md +1 -1
  330. package/presets/opencode/php-hexagonal/agents/integration-test-planner.md +1 -1
  331. package/presets/opencode/php-hexagonal/agents/migration-specialist.md +1 -1
  332. package/presets/opencode/php-hexagonal/agents/openspec-author.md +1 -1
  333. package/presets/opencode/php-hexagonal/agents/performance-auditor.md +1 -1
  334. package/presets/opencode/php-hexagonal/agents/qa-tester.md +1 -1
  335. package/presets/opencode/php-hexagonal/agents/security-reviewer.md +1 -1
  336. package/presets/opencode/php-hexagonal/agents/solution-architect.md +1 -1
  337. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  338. package/presets/opencode/php-hexagonal/agents/task-router.md +1 -1
  339. package/presets/opencode/php-hexagonal/agents/tech-writer.md +1 -1
  340. package/presets/opencode/php-hexagonal/agents/unit-test-generator.md +1 -1
  341. package/presets/opencode/php-hexagonal/agents/unit-test-healer.md +1 -1
  342. package/presets/opencode/php-hexagonal/agents/unit-test-planner.md +1 -1
  343. package/presets/opencode/php-hexagonal/commands/task-continue.md +1 -1
  344. package/presets/opencode/php-hexagonal/hooks/README.md +11 -1
  345. package/presets/opencode/php-hexagonal/hooks/guard-shell-command.mjs +155 -0
  346. package/presets/opencode/php-hexagonal/plugins/rule-attach/globs.json +242 -0
  347. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
  348. package/presets/opencode/php-laravel/OPENCODE.md +5 -60
  349. package/presets/opencode/php-laravel/adapter-map.json +45 -45
  350. package/presets/opencode/php-laravel/agents/api-contract-reviewer.md +1 -1
  351. package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
  352. package/presets/opencode/php-laravel/agents/ci-investigator.md +1 -1
  353. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  354. package/presets/opencode/php-laravel/agents/codebase-analyzer.md +1 -1
  355. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  356. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
  357. package/presets/opencode/php-laravel/agents/integration-test-generator.md +1 -1
  358. package/presets/opencode/php-laravel/agents/integration-test-healer.md +1 -1
  359. package/presets/opencode/php-laravel/agents/integration-test-planner.md +1 -1
  360. package/presets/opencode/php-laravel/agents/migration-specialist.md +1 -1
  361. package/presets/opencode/php-laravel/agents/openspec-author.md +1 -1
  362. package/presets/opencode/php-laravel/agents/performance-auditor.md +1 -1
  363. package/presets/opencode/php-laravel/agents/qa-tester.md +1 -1
  364. package/presets/opencode/php-laravel/agents/security-reviewer.md +1 -1
  365. package/presets/opencode/php-laravel/agents/solution-architect.md +1 -1
  366. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  367. package/presets/opencode/php-laravel/agents/task-router.md +1 -1
  368. package/presets/opencode/php-laravel/agents/tech-writer.md +1 -1
  369. package/presets/opencode/php-laravel/agents/unit-test-generator.md +1 -1
  370. package/presets/opencode/php-laravel/agents/unit-test-healer.md +1 -1
  371. package/presets/opencode/php-laravel/agents/unit-test-planner.md +1 -1
  372. package/presets/opencode/php-laravel/commands/task-continue.md +1 -1
  373. package/presets/opencode/php-laravel/hooks/README.md +11 -1
  374. package/presets/opencode/php-laravel/hooks/guard-shell-command.mjs +155 -0
  375. package/presets/opencode/php-laravel/plugins/rule-attach/globs.json +232 -0
  376. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +5 -5
  377. package/presets/opencode/platform-contract.json +4 -0
  378. package/presets/opencode/plugins/output-guard/README.md +1 -1
  379. package/presets/opencode/plugins/output-guard/index.ts +8 -2
  380. package/presets/opencode/plugins/output-guard/rewrite.ts +37 -0
  381. package/presets/opencode/plugins/rule-attach/README.md +34 -0
  382. package/presets/opencode/plugins/rule-attach/attach.ts +224 -0
  383. package/presets/opencode/plugins/rule-attach/index.ts +169 -0
  384. package/presets/opencode/plugins/rule-attach/package.json +9 -0
  385. package/presets/opencode/plugins/task-status/README.md +1 -1
  386. package/presets/opencode/plugins/task-status/deepseek.ts +13 -3
  387. package/presets/opencode/plugins/task-status/task-view.ts +4 -1
  388. package/presets/opencode/plugins/task-status/tui.tsx +4 -6
  389. package/presets/opencode/plugins/task-status/types.ts +5 -1
  390. package/presets/opencode/svelte/OPENCODE.md +5 -54
  391. package/presets/opencode/svelte/adapter-map.json +51 -51
  392. package/presets/opencode/svelte/agents/accessibility-reviewer.md +1 -1
  393. package/presets/opencode/svelte/agents/api-contract-reviewer.md +1 -1
  394. package/presets/opencode/svelte/agents/build-verifier.md +1 -1
  395. package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
  396. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  397. package/presets/opencode/svelte/agents/codebase-analyzer.md +1 -1
  398. package/presets/opencode/svelte/agents/debugger.md +1 -1
  399. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  400. package/presets/opencode/svelte/agents/migration-specialist.md +1 -1
  401. package/presets/opencode/svelte/agents/mockup-reviewer.md +1 -1
  402. package/presets/opencode/svelte/agents/openspec-author.md +1 -1
  403. package/presets/opencode/svelte/agents/performance-auditor.md +1 -1
  404. package/presets/opencode/svelte/agents/playwright-test-generator.md +1 -1
  405. package/presets/opencode/svelte/agents/playwright-test-healer.md +1 -1
  406. package/presets/opencode/svelte/agents/playwright-test-planner.md +1 -1
  407. package/presets/opencode/svelte/agents/qa-tester.md +1 -1
  408. package/presets/opencode/svelte/agents/security-reviewer.md +1 -1
  409. package/presets/opencode/svelte/agents/solution-architect.md +1 -1
  410. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  411. package/presets/opencode/svelte/agents/task-router.md +1 -1
  412. package/presets/opencode/svelte/agents/tech-writer.md +1 -1
  413. package/presets/opencode/svelte/agents/unit-test-generator.md +1 -1
  414. package/presets/opencode/svelte/agents/unit-test-healer.md +1 -1
  415. package/presets/opencode/svelte/agents/unit-test-planner.md +1 -1
  416. package/presets/opencode/svelte/commands/task-continue.md +1 -1
  417. package/presets/opencode/svelte/hooks/README.md +11 -1
  418. package/presets/opencode/svelte/hooks/guard-shell-command.mjs +153 -0
  419. package/presets/opencode/svelte/plugins/rule-attach/globs.json +245 -0
  420. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +5 -5
  421. package/presets/zcode/android-kotlin/adapter-map.json +1 -1
  422. package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +3 -3
  423. package/presets/zcode/go/adapter-map.json +1 -1
  424. package/presets/zcode/go/rules/agent-team-orchestrator.md +3 -3
  425. package/presets/zcode/ios-swift/adapter-map.json +1 -1
  426. package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +3 -3
  427. package/presets/zcode/java/adapter-map.json +1 -1
  428. package/presets/zcode/java/rules/agent-team-orchestrator.md +3 -3
  429. package/presets/zcode/mcp-ts/adapter-map.json +1 -1
  430. package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +3 -3
  431. package/presets/zcode/mol/adapter-map.json +1 -1
  432. package/presets/zcode/mol/rules/agent-team-orchestrator.md +3 -3
  433. package/presets/zcode/next/adapter-map.json +1 -1
  434. package/presets/zcode/next/agents/build-verifier.md +2 -1
  435. package/presets/zcode/next/agents/feature-developer.md +1 -1
  436. package/presets/zcode/next/rules/agent-team-orchestrator.md +3 -3
  437. package/presets/zcode/nuxt/adapter-map.json +1 -1
  438. package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +3 -3
  439. package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
  440. package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +3 -3
  441. package/presets/zcode/php-laravel/adapter-map.json +1 -1
  442. package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +3 -3
  443. package/presets/zcode/svelte/adapter-map.json +1 -1
  444. package/presets/zcode/svelte/rules/agent-team-orchestrator.md +3 -3
  445. package/scripts/report-context-cost.mjs +1 -20
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "next",
5
5
  "semanticSource": "cursor/next",
6
- "sourceRevision": "e31430798b81e4b9e5ad1d6cc30a2e62354f7b8d4b0aa457f12b723fe37b5f5d",
6
+ "sourceRevision": "e08dae99504aa7340f494913e64f2936e9ce81ec2de1a4861dcfc6e3eee704b4",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -633,11 +633,11 @@
633
633
  },
634
634
  {
635
635
  "source": "hooks/guard-shell-command.mjs",
636
- "target": null,
636
+ "target": "hooks/guard-shell-command.mjs",
637
637
  "category": "hooks",
638
- "disposition": "omit",
639
- "loadMode": "not-installed",
640
- "reason": "omit from active wiring; no native hook schema, safety policy stays in entry prose"
638
+ "disposition": "transform",
639
+ "loadMode": "manual",
640
+ "reason": "Rendered from the shared template with a pure evaluate(event); runnable CLI, no host event dispatches it on v2.4.1"
641
641
  },
642
642
  {
643
643
  "source": "hooks/list-ai-local.mjs",
@@ -669,7 +669,7 @@
669
669
  "category": "rules",
670
670
  "disposition": "transform",
671
671
  "loadMode": "referenced",
672
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
672
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
673
673
  "sharedCoreStem": "agent-team/agent-team-intake.md"
674
674
  },
675
675
  {
@@ -678,7 +678,7 @@
678
678
  "category": "rules",
679
679
  "disposition": "transform",
680
680
  "loadMode": "referenced",
681
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
681
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
682
682
  "sharedCoreStem": "agent-team/agent-team-orchestrator.md"
683
683
  },
684
684
  {
@@ -695,7 +695,7 @@
695
695
  "category": "rules",
696
696
  "disposition": "transform",
697
697
  "loadMode": "referenced",
698
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
698
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
699
699
  "sharedCoreStem": "quality/anti-hallucination-contract.md"
700
700
  },
701
701
  {
@@ -704,7 +704,7 @@
704
704
  "category": "rules",
705
705
  "disposition": "transform",
706
706
  "loadMode": "referenced",
707
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
707
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
708
708
  "sharedCoreStem": "quality/anti-sycophancy-discipline.md"
709
709
  },
710
710
  {
@@ -713,7 +713,7 @@
713
713
  "category": "rules",
714
714
  "disposition": "transform",
715
715
  "loadMode": "referenced",
716
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
716
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
717
717
  },
718
718
  {
719
719
  "source": "rules/architecture-boundaries-ui.mdc",
@@ -721,7 +721,7 @@
721
721
  "category": "rules",
722
722
  "disposition": "transform",
723
723
  "loadMode": "referenced",
724
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
724
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
725
725
  },
726
726
  {
727
727
  "source": "rules/architecture-boundaries.mdc",
@@ -729,7 +729,7 @@
729
729
  "category": "rules",
730
730
  "disposition": "transform",
731
731
  "loadMode": "referenced",
732
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
732
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
733
733
  },
734
734
  {
735
735
  "source": "rules/arrow-functions.mdc",
@@ -737,7 +737,7 @@
737
737
  "category": "rules",
738
738
  "disposition": "transform",
739
739
  "loadMode": "referenced",
740
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
740
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
741
741
  },
742
742
  {
743
743
  "source": "rules/code-quality-and-refactoring.mdc",
@@ -754,7 +754,7 @@
754
754
  "category": "rules",
755
755
  "disposition": "transform",
756
756
  "loadMode": "referenced",
757
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
757
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
758
758
  "sharedCoreStem": "review/code-review-mr.md"
759
759
  },
760
760
  {
@@ -763,7 +763,7 @@
763
763
  "category": "rules",
764
764
  "disposition": "transform",
765
765
  "loadMode": "referenced",
766
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
766
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
767
767
  },
768
768
  {
769
769
  "source": "rules/css-property-order-stylelint.mdc",
@@ -771,7 +771,7 @@
771
771
  "category": "rules",
772
772
  "disposition": "transform",
773
773
  "loadMode": "referenced",
774
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
774
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
775
775
  },
776
776
  {
777
777
  "source": "rules/design-guidance.mdc",
@@ -779,7 +779,7 @@
779
779
  "category": "rules",
780
780
  "disposition": "transform",
781
781
  "loadMode": "referenced",
782
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
782
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
783
783
  "sharedCoreStem": "quality/design-guidance.md"
784
784
  },
785
785
  {
@@ -788,7 +788,7 @@
788
788
  "category": "rules",
789
789
  "disposition": "transform",
790
790
  "loadMode": "referenced",
791
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
791
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
792
792
  },
793
793
  {
794
794
  "source": "rules/dev-process-lifecycle.mdc",
@@ -796,7 +796,7 @@
796
796
  "category": "rules",
797
797
  "disposition": "transform",
798
798
  "loadMode": "referenced",
799
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
799
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
800
800
  },
801
801
  {
802
802
  "source": "rules/feature-delivery-workflow.mdc",
@@ -804,7 +804,7 @@
804
804
  "category": "rules",
805
805
  "disposition": "transform",
806
806
  "loadMode": "referenced",
807
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
807
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
808
808
  "sharedCoreStem": "architecture/feature-delivery-workflow.md"
809
809
  },
810
810
  {
@@ -813,7 +813,7 @@
813
813
  "category": "rules",
814
814
  "disposition": "transform",
815
815
  "loadMode": "referenced",
816
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
816
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
817
817
  },
818
818
  {
819
819
  "source": "rules/http-client.mdc",
@@ -821,7 +821,7 @@
821
821
  "category": "rules",
822
822
  "disposition": "transform",
823
823
  "loadMode": "referenced",
824
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
824
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
825
825
  },
826
826
  {
827
827
  "source": "rules/interactive-questions.mdc",
@@ -829,7 +829,7 @@
829
829
  "category": "rules",
830
830
  "disposition": "transform",
831
831
  "loadMode": "referenced",
832
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
832
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
833
833
  "sharedCoreStem": "quality/interactive-questions.md"
834
834
  },
835
835
  {
@@ -838,7 +838,7 @@
838
838
  "category": "rules",
839
839
  "disposition": "transform",
840
840
  "loadMode": "referenced",
841
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
841
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
842
842
  "sharedCoreStem": "agent-team/language-policy.md"
843
843
  },
844
844
  {
@@ -847,7 +847,7 @@
847
847
  "category": "rules",
848
848
  "disposition": "transform",
849
849
  "loadMode": "referenced",
850
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
850
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
851
851
  },
852
852
  {
853
853
  "source": "rules/mcp-usage.mdc",
@@ -855,7 +855,7 @@
855
855
  "category": "rules",
856
856
  "disposition": "transform",
857
857
  "loadMode": "referenced",
858
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
858
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
859
859
  "sharedCoreStem": "quality/mcp-usage.md"
860
860
  },
861
861
  {
@@ -864,7 +864,7 @@
864
864
  "category": "rules",
865
865
  "disposition": "transform",
866
866
  "loadMode": "referenced",
867
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
867
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
868
868
  "sharedCoreStem": "review/mockup-review.md"
869
869
  },
870
870
  {
@@ -873,7 +873,7 @@
873
873
  "category": "rules",
874
874
  "disposition": "transform",
875
875
  "loadMode": "referenced",
876
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
876
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
877
877
  },
878
878
  {
879
879
  "source": "rules/navigation-router-ui.mdc",
@@ -881,7 +881,7 @@
881
881
  "category": "rules",
882
882
  "disposition": "transform",
883
883
  "loadMode": "referenced",
884
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
884
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
885
885
  },
886
886
  {
887
887
  "source": "rules/next-app-core.mdc",
@@ -897,7 +897,7 @@
897
897
  "category": "rules",
898
898
  "disposition": "transform",
899
899
  "loadMode": "referenced",
900
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
900
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
901
901
  },
902
902
  {
903
903
  "source": "rules/next-static-export.mdc",
@@ -905,7 +905,7 @@
905
905
  "category": "rules",
906
906
  "disposition": "transform",
907
907
  "loadMode": "referenced",
908
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
908
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
909
909
  },
910
910
  {
911
911
  "source": "rules/no-props-spread.mdc",
@@ -913,7 +913,7 @@
913
913
  "category": "rules",
914
914
  "disposition": "transform",
915
915
  "loadMode": "referenced",
916
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
916
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
917
917
  },
918
918
  {
919
919
  "source": "rules/no-type-assertion-as-import-export.mdc",
@@ -921,7 +921,7 @@
921
921
  "category": "rules",
922
922
  "disposition": "transform",
923
923
  "loadMode": "referenced",
924
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
924
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
925
925
  },
926
926
  {
927
927
  "source": "rules/package-manager.mdc",
@@ -937,7 +937,7 @@
937
937
  "category": "rules",
938
938
  "disposition": "transform",
939
939
  "loadMode": "referenced",
940
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
940
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
941
941
  },
942
942
  {
943
943
  "source": "rules/post-change-lint.mdc",
@@ -945,7 +945,7 @@
945
945
  "category": "rules",
946
946
  "disposition": "transform",
947
947
  "loadMode": "referenced",
948
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
948
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
949
949
  },
950
950
  {
951
951
  "source": "rules/preset-goals.mdc",
@@ -953,7 +953,7 @@
953
953
  "category": "rules",
954
954
  "disposition": "transform",
955
955
  "loadMode": "referenced",
956
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
956
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
957
957
  "sharedCoreStem": "meta/preset-goals.md"
958
958
  },
959
959
  {
@@ -962,7 +962,7 @@
962
962
  "category": "rules",
963
963
  "disposition": "transform",
964
964
  "loadMode": "referenced",
965
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
965
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
966
966
  "sharedCoreStem": "meta/preset-layering.md"
967
967
  },
968
968
  {
@@ -971,7 +971,7 @@
971
971
  "category": "rules",
972
972
  "disposition": "transform",
973
973
  "loadMode": "referenced",
974
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
974
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
975
975
  "sharedCoreStem": "meta/preset-no-cross-stack-leakage.md"
976
976
  },
977
977
  {
@@ -980,7 +980,7 @@
980
980
  "category": "rules",
981
981
  "disposition": "transform",
982
982
  "loadMode": "referenced",
983
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
983
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
984
984
  "sharedCoreStem": "meta/preset-pr-checklist.md"
985
985
  },
986
986
  {
@@ -989,7 +989,7 @@
989
989
  "category": "rules",
990
990
  "disposition": "transform",
991
991
  "loadMode": "referenced",
992
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
992
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
993
993
  "sharedCoreStem": "meta/preset-token-budget.md"
994
994
  },
995
995
  {
@@ -998,7 +998,7 @@
998
998
  "category": "rules",
999
999
  "disposition": "transform",
1000
1000
  "loadMode": "referenced",
1001
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1001
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1002
1002
  "sharedCoreStem": "meta/preset-twin-sync.md"
1003
1003
  },
1004
1004
  {
@@ -1007,7 +1007,7 @@
1007
1007
  "category": "rules",
1008
1008
  "disposition": "transform",
1009
1009
  "loadMode": "referenced",
1010
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1010
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1011
1011
  "sharedCoreStem": "meta/preset-writing-style.md"
1012
1012
  },
1013
1013
  {
@@ -1016,7 +1016,7 @@
1016
1016
  "category": "rules",
1017
1017
  "disposition": "transform",
1018
1018
  "loadMode": "referenced",
1019
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1019
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1020
1020
  "sharedCoreStem": "architecture/product-specs-authoring.md"
1021
1021
  },
1022
1022
  {
@@ -1025,7 +1025,7 @@
1025
1025
  "category": "rules",
1026
1026
  "disposition": "transform",
1027
1027
  "loadMode": "referenced",
1028
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1028
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1029
1029
  "sharedCoreStem": "architecture/product-specs.md"
1030
1030
  },
1031
1031
  {
@@ -1034,7 +1034,7 @@
1034
1034
  "category": "rules",
1035
1035
  "disposition": "transform",
1036
1036
  "loadMode": "referenced",
1037
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1037
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1038
1038
  },
1039
1039
  {
1040
1040
  "source": "rules/react-a11y-coding.mdc",
@@ -1042,7 +1042,7 @@
1042
1042
  "category": "rules",
1043
1043
  "disposition": "transform",
1044
1044
  "loadMode": "referenced",
1045
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1045
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1046
1046
  },
1047
1047
  {
1048
1048
  "source": "rules/react-next-anti-hallucination.mdc",
@@ -1050,7 +1050,7 @@
1050
1050
  "category": "rules",
1051
1051
  "disposition": "transform",
1052
1052
  "loadMode": "referenced",
1053
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1053
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1054
1054
  },
1055
1055
  {
1056
1056
  "source": "rules/react-ui.mdc",
@@ -1058,7 +1058,7 @@
1058
1058
  "category": "rules",
1059
1059
  "disposition": "transform",
1060
1060
  "loadMode": "referenced",
1061
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1061
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1062
1062
  },
1063
1063
  {
1064
1064
  "source": "rules/reference-features.mdc",
@@ -1066,7 +1066,7 @@
1066
1066
  "category": "rules",
1067
1067
  "disposition": "transform",
1068
1068
  "loadMode": "referenced",
1069
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1069
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1070
1070
  "sharedCoreStem": "architecture/reference-features.template.md"
1071
1071
  },
1072
1072
  {
@@ -1075,7 +1075,7 @@
1075
1075
  "category": "rules",
1076
1076
  "disposition": "transform",
1077
1077
  "loadMode": "referenced",
1078
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1078
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1079
1079
  },
1080
1080
  {
1081
1081
  "source": "rules/store-rtk.mdc",
@@ -1083,7 +1083,7 @@
1083
1083
  "category": "rules",
1084
1084
  "disposition": "transform",
1085
1085
  "loadMode": "referenced",
1086
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1086
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1087
1087
  },
1088
1088
  {
1089
1089
  "source": "rules/technical-retro.mdc",
@@ -1091,7 +1091,7 @@
1091
1091
  "category": "rules",
1092
1092
  "disposition": "transform",
1093
1093
  "loadMode": "referenced",
1094
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1094
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1095
1095
  "sharedCoreStem": "review/technical-retro.md"
1096
1096
  },
1097
1097
  {
@@ -1100,7 +1100,7 @@
1100
1100
  "category": "rules",
1101
1101
  "disposition": "transform",
1102
1102
  "loadMode": "referenced",
1103
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1103
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1104
1104
  "sharedCoreStem": "testing/testing-principles.md"
1105
1105
  },
1106
1106
  {
@@ -1109,7 +1109,7 @@
1109
1109
  "category": "rules",
1110
1110
  "disposition": "transform",
1111
1111
  "loadMode": "referenced",
1112
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1112
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1113
1113
  "sharedCoreStem": "testing/testing-principles.md"
1114
1114
  },
1115
1115
  {
@@ -1118,7 +1118,7 @@
1118
1118
  "category": "rules",
1119
1119
  "disposition": "transform",
1120
1120
  "loadMode": "referenced",
1121
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
1121
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached"
1122
1122
  },
1123
1123
  {
1124
1124
  "source": "rules/ux-design.mdc",
@@ -1126,7 +1126,7 @@
1126
1126
  "category": "rules",
1127
1127
  "disposition": "transform",
1128
1128
  "loadMode": "referenced",
1129
- "reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
1129
+ "reason": "Requestable Cursor rule: rule-attach attaches the body on a glob match; lazy Read only when unattached",
1130
1130
  "sharedCoreStem": "review/ux-design.md"
1131
1131
  },
1132
1132
  {
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -60,7 +60,8 @@ Use **`package-manager.md`** for the repo package manager.
60
60
 
61
61
  Prefer **`lint`** (= js + css + type-check) before handoff on large changes. Do not re-run a green command with unchanged inputs; record the skipped row and its base.
62
62
 
63
- - **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other generated twin surfaces), require `node scripts/fix-generated.mjs` then `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names from `packages/ai-rules` with exit 0 before validation PASS. The full `yarn release:gate` is release-only.
63
+ - **Preset twin/golden DoD (preset source repo only).** When the change-set edits preset source, require `node scripts/fix-generated.mjs`, then run `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names, exit 0, before validation PASS. This step is the only owner of those exit rows. `yarn release:gate` is release-only.
64
+ - **AC evidence.** `validation-report.md` includes `## AC evidence`. One bullet per AC sentence: the `AC-n` id when the brief has one, the sentence, and either a test path in backticks or `gap:` plus why no test exists. `check-task-receipt.mjs` fails a report that omits the section, a row, or a brief id.
64
65
 
65
66
  ## Delta gate policy (retry / carry-forward)
66
67
 
@@ -8,7 +8,7 @@ permission:
8
8
 
9
9
  ## Rules to load (subagent context)
10
10
 
11
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
11
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
12
12
 
13
13
  - `.opencode/rules/next-app-core.md`
14
14
  - `.opencode/rules/package-manager.md`
@@ -12,7 +12,7 @@ Write only review artifacts under `.ai.local/team/**`. Do not edit production co
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -8,7 +8,7 @@ permission:
8
8
 
9
9
  ## Rules to load (subagent context)
10
10
 
11
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
11
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
12
12
 
13
13
  - `.opencode/rules/next-app-core.md`
14
14
  - `.opencode/rules/package-manager.md`
@@ -8,7 +8,7 @@ permission:
8
8
 
9
9
  ## Rules to load (subagent context)
10
10
 
11
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
11
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
12
12
 
13
13
  - `.opencode/rules/next-app-core.md`
14
14
  - `.opencode/rules/package-manager.md`
@@ -81,7 +81,7 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
81
81
  - L0, docs-only, research, and preset-only tasks do not take the rail. `build-verifier` and `code-reviewer` stay.
82
82
  - Mark completed tasks in `decomposition.md`.
83
83
  - Validation: **`post-change-lint.md`** is the closure gate. Do **not** run project lint/type-check/test/build in this step; hand off with the diff and authored specs. `build-verifier` owns the full run.
84
- - **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other surfaces that require generated twins), from `packages/ai-rules` run `node scripts/fix-generated.mjs` then `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names (exit 0) before implementation handoff. The full `yarn release:gate` is release-only.
84
+ - **Preset twin/golden DoD (preset source repo only).** When the change-set edits preset source, regenerate twins with `node scripts/fix-generated.mjs`. Do not run the classifier set in this step. `build-verifier` runs `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names, and owns the exit rows. `yarn release:gate` is release-only.
85
85
 
86
86
  ## Zero improvisation
87
87
 
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -13,7 +13,7 @@ Write team artifacts under `.ai.local/team/**` and scoped files (`openspec/**`).
13
13
 
14
14
  ## Rules to load (subagent context)
15
15
 
16
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
16
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
17
17
 
18
18
  - `.opencode/rules/next-app-core.md`
19
19
  - `.opencode/rules/package-manager.md`
@@ -12,7 +12,7 @@ Write only team artifacts under `.ai.local/team/**`. Do not edit production code
12
12
 
13
13
  ## Rules to load (subagent context)
14
14
 
15
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
15
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
16
16
 
17
17
  - `.opencode/rules/next-app-core.md`
18
18
  - `.opencode/rules/package-manager.md`
@@ -8,7 +8,7 @@ permission:
8
8
 
9
9
  ## Rules to load (subagent context)
10
10
 
11
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
11
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
12
12
 
13
13
  - `.opencode/rules/next-app-core.md`
14
14
  - `.opencode/rules/package-manager.md`
@@ -8,7 +8,7 @@ permission:
8
8
 
9
9
  ## Rules to load (subagent context)
10
10
 
11
- This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting:
11
+ This subagent does **not** inherit `opencode.json` `instructions`. Read these rules explicitly before acting; a rule the `rule-attach` plugin already attached to your context need not be Read again:
12
12
 
13
13
  - `.opencode/rules/next-app-core.md`
14
14
  - `.opencode/rules/package-manager.md`