@bonesofspring/ai-rules 0.2.76 → 0.2.78

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 (1165) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/README.md +1 -1
  3. package/bin/lib/engine-scripts.js +3 -0
  4. package/docs/LOCAL-OVERLAY.md +4 -4
  5. package/docs/PRESET-CONTRIBUTION.md +15 -11
  6. package/docs/TEAM-DB.md +43 -8
  7. package/docs/ZCODE.md +1 -1
  8. package/package.json +6 -1
  9. package/presets/_shared/ai-local/scripts/aggregate-agent-task-metrics.mjs +23 -0
  10. package/presets/_shared/ai-local/scripts/check-verification.mjs +275 -0
  11. package/presets/_shared/ai-local/scripts/check-write-scope.mjs +132 -16
  12. package/presets/_shared/ai-local/scripts/manifest.mjs +78 -4
  13. package/presets/_shared/ai-local/scripts/rule-improver.mjs +366 -13
  14. package/presets/_shared/ai-local/scripts/run.mjs +29 -6
  15. package/presets/_shared/ai-local/scripts/team-db-project.mjs +208 -3
  16. package/presets/_shared/ai-local/scripts/team-db-schema.mjs +76 -15
  17. package/presets/_shared/ai-local/scripts/team-db.mjs +19 -4
  18. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +9 -4
  19. package/presets/_shared/core/agent-team/task-framing.md +1 -0
  20. package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
  21. package/presets/_shared/core/meta/preset-layering.md +4 -4
  22. package/presets/_shared/core/meta/preset-pr-checklist.md +2 -1
  23. package/presets/_shared/core/meta/preset-twin-sync.md +12 -5
  24. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +1 -1
  25. package/presets/_shared/core/quality/verification-before-completion.md +28 -4
  26. package/presets/_shared/core/review/code-review-mr.md +1 -0
  27. package/presets/_shared/core/review/receiving-code-review.md +1 -0
  28. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +313 -26
  29. package/presets/claude/android-kotlin/CLAUDE.md +2 -2
  30. package/presets/claude/android-kotlin/REPO_AGENTS.md +8 -0
  31. package/presets/claude/android-kotlin/agents/README.md +4 -0
  32. package/presets/claude/android-kotlin/agents/accessibility-reviewer.md +1 -1
  33. package/presets/claude/android-kotlin/agents/api-contract-reviewer.md +1 -1
  34. package/presets/claude/android-kotlin/agents/build-verifier.md +2 -2
  35. package/presets/claude/android-kotlin/agents/ci-investigator.md +0 -1
  36. package/presets/claude/android-kotlin/agents/code-reviewer.md +2 -2
  37. package/presets/claude/android-kotlin/agents/codebase-analyzer.md +1 -1
  38. package/presets/claude/android-kotlin/agents/debugger.md +1 -2
  39. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -2
  40. package/presets/claude/android-kotlin/agents/migration-specialist.md +1 -1
  41. package/presets/claude/android-kotlin/agents/mockup-reviewer.md +1 -0
  42. package/presets/claude/android-kotlin/agents/openspec-author.md +2 -1
  43. package/presets/claude/android-kotlin/agents/performance-auditor.md +1 -1
  44. package/presets/claude/android-kotlin/agents/qa-tester.md +0 -1
  45. package/presets/claude/android-kotlin/agents/security-reviewer.md +1 -1
  46. package/presets/claude/android-kotlin/agents/solution-architect.md +1 -1
  47. package/presets/claude/android-kotlin/agents/task-analyst.md +2 -2
  48. package/presets/claude/android-kotlin/agents/task-router.md +1 -1
  49. package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
  50. package/presets/claude/android-kotlin/agents/unit-test-generator.md +0 -1
  51. package/presets/claude/android-kotlin/agents/unit-test-healer.md +0 -1
  52. package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
  53. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +313 -26
  54. package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +66 -8
  55. package/presets/claude/android-kotlin/rules/architecture/reference-features.md +48 -2
  56. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +1 -1
  57. package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +1 -0
  58. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +4 -4
  59. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  60. package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +12 -5
  61. package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  62. package/presets/claude/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  63. package/presets/claude/go/CLAUDE.md +2 -2
  64. package/presets/claude/go/REPO_AGENTS.md +8 -0
  65. package/presets/claude/go/agents/README.md +4 -0
  66. package/presets/claude/go/agents/api-contract-reviewer.md +1 -1
  67. package/presets/claude/go/agents/build-verifier.md +2 -2
  68. package/presets/claude/go/agents/ci-investigator.md +0 -1
  69. package/presets/claude/go/agents/code-reviewer.md +4 -4
  70. package/presets/claude/go/agents/codebase-analyzer.md +1 -1
  71. package/presets/claude/go/agents/debugger.md +1 -2
  72. package/presets/claude/go/agents/feature-developer.md +3 -4
  73. package/presets/claude/go/agents/integration-test-generator.md +1 -2
  74. package/presets/claude/go/agents/integration-test-healer.md +1 -2
  75. package/presets/claude/go/agents/integration-test-planner.md +1 -2
  76. package/presets/claude/go/agents/migration-specialist.md +1 -1
  77. package/presets/claude/go/agents/openspec-author.md +2 -1
  78. package/presets/claude/go/agents/performance-auditor.md +1 -1
  79. package/presets/claude/go/agents/qa-tester.md +0 -1
  80. package/presets/claude/go/agents/security-reviewer.md +2 -2
  81. package/presets/claude/go/agents/solution-architect.md +1 -1
  82. package/presets/claude/go/agents/task-analyst.md +2 -2
  83. package/presets/claude/go/agents/task-router.md +1 -1
  84. package/presets/claude/go/agents/tech-writer.md +1 -1
  85. package/presets/claude/go/agents/unit-test-generator.md +1 -2
  86. package/presets/claude/go/agents/unit-test-healer.md +1 -2
  87. package/presets/claude/go/agents/unit-test-planner.md +1 -1
  88. package/presets/claude/go/hooks/chain-team-phases.sh +313 -26
  89. package/presets/claude/go/rules/architecture/feature-delivery.md +50 -1
  90. package/presets/claude/go/rules/architecture/reference-features.md +22 -0
  91. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +1 -1
  92. package/presets/claude/go/rules/tooling-and-review/code-review.md +1 -0
  93. package/presets/claude/go/rules/tooling-and-review/preset-layering.md +4 -4
  94. package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  95. package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +12 -5
  96. package/presets/claude/go/skills/feature-delivery/SKILL.md +2 -2
  97. package/presets/claude/go/skills/unit-testing/SKILL.md +1 -1
  98. package/presets/claude/go/team/fixtures/feature-parallel.json +84 -0
  99. package/presets/claude/ios-swift/CLAUDE.md +2 -2
  100. package/presets/claude/ios-swift/REPO_AGENTS.md +8 -0
  101. package/presets/claude/ios-swift/agents/README.md +4 -0
  102. package/presets/claude/ios-swift/agents/accessibility-reviewer.md +1 -1
  103. package/presets/claude/ios-swift/agents/api-contract-reviewer.md +1 -1
  104. package/presets/claude/ios-swift/agents/build-verifier.md +5 -2
  105. package/presets/claude/ios-swift/agents/ci-investigator.md +0 -1
  106. package/presets/claude/ios-swift/agents/code-reviewer.md +2 -2
  107. package/presets/claude/ios-swift/agents/codebase-analyzer.md +1 -1
  108. package/presets/claude/ios-swift/agents/debugger.md +1 -2
  109. package/presets/claude/ios-swift/agents/feature-developer.md +1 -2
  110. package/presets/claude/ios-swift/agents/migration-specialist.md +1 -1
  111. package/presets/claude/ios-swift/agents/mockup-reviewer.md +1 -0
  112. package/presets/claude/ios-swift/agents/openspec-author.md +2 -1
  113. package/presets/claude/ios-swift/agents/performance-auditor.md +1 -1
  114. package/presets/claude/ios-swift/agents/qa-tester.md +0 -1
  115. package/presets/claude/ios-swift/agents/security-reviewer.md +1 -1
  116. package/presets/claude/ios-swift/agents/solution-architect.md +1 -1
  117. package/presets/claude/ios-swift/agents/task-analyst.md +2 -2
  118. package/presets/claude/ios-swift/agents/task-router.md +1 -1
  119. package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
  120. package/presets/claude/ios-swift/agents/unit-test-generator.md +0 -1
  121. package/presets/claude/ios-swift/agents/unit-test-healer.md +0 -1
  122. package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
  123. package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +0 -1
  124. package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +0 -1
  125. package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +0 -1
  126. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +313 -26
  127. package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +8 -8
  128. package/presets/claude/ios-swift/rules/architecture/reference-features.md +2 -21
  129. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +1 -1
  130. package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +1 -0
  131. package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +4 -4
  132. package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  133. package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +12 -5
  134. package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
  135. package/presets/claude/ios-swift/team/fixtures/feature-parallel.json +84 -0
  136. package/presets/claude/java/CLAUDE.md +3 -3
  137. package/presets/claude/java/REPO_AGENTS.md +8 -0
  138. package/presets/claude/java/agents/README.md +4 -0
  139. package/presets/claude/java/agents/api-contract-reviewer.md +1 -1
  140. package/presets/claude/java/agents/build-verifier.md +2 -2
  141. package/presets/claude/java/agents/ci-investigator.md +0 -1
  142. package/presets/claude/java/agents/code-reviewer.md +4 -4
  143. package/presets/claude/java/agents/codebase-analyzer.md +1 -1
  144. package/presets/claude/java/agents/debugger.md +1 -2
  145. package/presets/claude/java/agents/feature-developer.md +3 -4
  146. package/presets/claude/java/agents/integration-test-generator.md +1 -2
  147. package/presets/claude/java/agents/integration-test-healer.md +1 -2
  148. package/presets/claude/java/agents/integration-test-planner.md +1 -2
  149. package/presets/claude/java/agents/migration-specialist.md +1 -1
  150. package/presets/claude/java/agents/openspec-author.md +2 -1
  151. package/presets/claude/java/agents/performance-auditor.md +1 -1
  152. package/presets/claude/java/agents/qa-tester.md +0 -1
  153. package/presets/claude/java/agents/security-reviewer.md +2 -2
  154. package/presets/claude/java/agents/solution-architect.md +1 -1
  155. package/presets/claude/java/agents/task-analyst.md +2 -2
  156. package/presets/claude/java/agents/task-router.md +1 -1
  157. package/presets/claude/java/agents/tech-writer.md +1 -1
  158. package/presets/claude/java/agents/unit-test-generator.md +1 -2
  159. package/presets/claude/java/agents/unit-test-healer.md +1 -2
  160. package/presets/claude/java/agents/unit-test-planner.md +1 -1
  161. package/presets/claude/java/hooks/chain-team-phases.sh +313 -26
  162. package/presets/claude/java/rules/architecture/feature-delivery.md +51 -1
  163. package/presets/claude/java/rules/architecture/reference-features.md +22 -0
  164. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +1 -1
  165. package/presets/claude/java/rules/tooling-and-review/code-review.md +1 -0
  166. package/presets/claude/java/rules/tooling-and-review/preset-layering.md +4 -4
  167. package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  168. package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +12 -5
  169. package/presets/claude/java/skills/feature-delivery/SKILL.md +2 -2
  170. package/presets/claude/java/team/fixtures/feature-parallel.json +84 -0
  171. package/presets/claude/mcp-ts/CLAUDE.md +2 -2
  172. package/presets/claude/mcp-ts/REPO_AGENTS.md +8 -0
  173. package/presets/claude/mcp-ts/agents/README.md +4 -0
  174. package/presets/claude/mcp-ts/agents/build-verifier.md +2 -2
  175. package/presets/claude/mcp-ts/agents/feature-developer.md +3 -4
  176. package/presets/claude/mcp-ts/agents/security-reviewer.md +2 -2
  177. package/presets/claude/mcp-ts/agents/solution-architect.md +1 -1
  178. package/presets/claude/mcp-ts/agents/task-analyst.md +2 -2
  179. package/presets/claude/mcp-ts/agents/task-router.md +1 -1
  180. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +313 -26
  181. package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +47 -1
  182. package/presets/claude/mcp-ts/rules/architecture/reference-features.md +22 -0
  183. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +1 -1
  184. package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +1 -0
  185. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +4 -4
  186. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  187. package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +12 -5
  188. package/presets/claude/mcp-ts/skills/code-review/SKILL.md +1 -1
  189. package/presets/claude/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  190. package/presets/claude/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  191. package/presets/claude/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  192. package/presets/claude/mol/CLAUDE.md +2 -2
  193. package/presets/claude/mol/REPO_AGENTS.md +8 -0
  194. package/presets/claude/mol/agents/README.md +2 -4
  195. package/presets/claude/mol/agents/accessibility-reviewer.md +1 -0
  196. package/presets/claude/mol/agents/api-contract-reviewer.md +1 -0
  197. package/presets/claude/mol/agents/build-verifier.md +5 -1
  198. package/presets/claude/mol/agents/code-reviewer.md +2 -1
  199. package/presets/claude/mol/agents/codebase-analyzer.md +1 -0
  200. package/presets/claude/mol/agents/debugger.md +1 -1
  201. package/presets/claude/mol/agents/feature-developer.md +1 -1
  202. package/presets/claude/mol/agents/migration-specialist.md +1 -0
  203. package/presets/claude/mol/agents/mockup-reviewer.md +1 -0
  204. package/presets/claude/mol/agents/openspec-author.md +1 -0
  205. package/presets/claude/mol/agents/performance-auditor.md +1 -0
  206. package/presets/claude/mol/agents/security-reviewer.md +1 -0
  207. package/presets/claude/mol/agents/solution-architect.md +1 -0
  208. package/presets/claude/mol/agents/task-analyst.md +2 -1
  209. package/presets/claude/mol/agents/task-router.md +1 -0
  210. package/presets/claude/mol/agents/tech-writer.md +1 -0
  211. package/presets/claude/mol/agents/unit-test-planner.md +1 -0
  212. package/presets/claude/mol/hooks/chain-team-phases.sh +313 -26
  213. package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +10 -10
  214. package/presets/claude/mol/rules/architecture/reference-features.md +0 -19
  215. package/presets/claude/mol/rules/tooling-and-review/ai-local-overlay.md +1 -1
  216. package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +1 -0
  217. package/presets/claude/mol/rules/tooling-and-review/preset-layering.md +4 -4
  218. package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  219. package/presets/claude/mol/rules/tooling-and-review/preset-twin-sync.md +12 -5
  220. package/presets/claude/next/CLAUDE.md +4 -4
  221. package/presets/claude/next/REPO_AGENTS.md +8 -0
  222. package/presets/claude/next/agents/README.md +4 -0
  223. package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
  224. package/presets/claude/next/agents/api-contract-reviewer.md +1 -0
  225. package/presets/claude/next/agents/build-verifier.md +7 -1
  226. package/presets/claude/next/agents/code-reviewer.md +2 -1
  227. package/presets/claude/next/agents/codebase-analyzer.md +1 -1
  228. package/presets/claude/next/agents/debugger.md +1 -1
  229. package/presets/claude/next/agents/feature-developer.md +1 -1
  230. package/presets/claude/next/agents/migration-specialist.md +1 -0
  231. package/presets/claude/next/agents/mockup-reviewer.md +1 -0
  232. package/presets/claude/next/agents/openspec-author.md +1 -0
  233. package/presets/claude/next/agents/performance-auditor.md +1 -0
  234. package/presets/claude/next/agents/security-reviewer.md +1 -0
  235. package/presets/claude/next/agents/solution-architect.md +1 -0
  236. package/presets/claude/next/agents/task-analyst.md +2 -1
  237. package/presets/claude/next/agents/task-router.md +12 -0
  238. package/presets/claude/next/agents/tech-writer.md +1 -0
  239. package/presets/claude/next/agents/unit-test-planner.md +1 -0
  240. package/presets/claude/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
  241. package/presets/claude/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
  242. package/presets/claude/next/ai-local/rules-library/analytics-events.md +18 -0
  243. package/presets/claude/next/ai-local/rules-library/api-contract-source.md +14 -0
  244. package/presets/claude/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
  245. package/presets/claude/next/ai-local/rules-library/code-style.md +68 -0
  246. package/presets/claude/next/ai-local/rules-library/commit-hygiene.md +17 -0
  247. package/presets/claude/next/ai-local/rules-library/component-child-decomposition.md +81 -0
  248. package/presets/claude/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
  249. package/presets/claude/next/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
  250. package/presets/claude/next/ai-local/rules-library/no-react-fc.md +46 -0
  251. package/presets/claude/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
  252. package/presets/claude/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
  253. package/presets/claude/next/ai-local/rules-library/pwa-service-worker.md +15 -0
  254. package/presets/claude/next/ai-local/rules-library/qa-test-cases.md +14 -0
  255. package/presets/claude/next/ai-local/rules-library/router-pages.md +25 -0
  256. package/presets/claude/next/ai-local/rules-library/single-source-copy-constants.md +18 -0
  257. package/presets/claude/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
  258. package/presets/claude/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
  259. package/presets/claude/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
  260. package/presets/claude/next/ai-local/rules-library/storybook-dev-compare-figma.md +72 -0
  261. package/presets/claude/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
  262. package/presets/claude/next/ai-local/rules-library/storybook-modals.md +64 -0
  263. package/presets/claude/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
  264. package/presets/claude/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
  265. package/presets/claude/next/ai-local/rules-library/ui-change-review-gate.md +16 -0
  266. package/presets/claude/next/hooks/chain-team-phases.sh +313 -26
  267. package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +13 -13
  268. package/presets/claude/next/rules/architecture/reference-features.md +0 -19
  269. package/presets/claude/next/rules/stack/next-app-core.md +1 -1
  270. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +2 -1
  271. package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +1 -0
  272. package/presets/claude/next/rules/tooling-and-review/preset-layering.md +4 -4
  273. package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  274. package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +12 -5
  275. package/presets/claude/next/team/fixtures/feature-l2-lite.json +27 -0
  276. package/presets/claude/nuxt/CLAUDE.md +4 -4
  277. package/presets/claude/nuxt/REPO_AGENTS.md +8 -0
  278. package/presets/claude/nuxt/agents/README.md +2 -4
  279. package/presets/claude/nuxt/agents/accessibility-reviewer.md +1 -0
  280. package/presets/claude/nuxt/agents/api-contract-reviewer.md +1 -0
  281. package/presets/claude/nuxt/agents/build-verifier.md +5 -1
  282. package/presets/claude/nuxt/agents/code-reviewer.md +2 -1
  283. package/presets/claude/nuxt/agents/codebase-analyzer.md +1 -1
  284. package/presets/claude/nuxt/agents/debugger.md +1 -1
  285. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  286. package/presets/claude/nuxt/agents/migration-specialist.md +1 -0
  287. package/presets/claude/nuxt/agents/mockup-reviewer.md +1 -0
  288. package/presets/claude/nuxt/agents/openspec-author.md +2 -1
  289. package/presets/claude/nuxt/agents/performance-auditor.md +1 -0
  290. package/presets/claude/nuxt/agents/playwright-test-generator.md +24 -68
  291. package/presets/claude/nuxt/agents/playwright-test-healer.md +28 -54
  292. package/presets/claude/nuxt/agents/playwright-test-planner.md +18 -51
  293. package/presets/claude/nuxt/agents/security-reviewer.md +1 -0
  294. package/presets/claude/nuxt/agents/solution-architect.md +1 -0
  295. package/presets/claude/nuxt/agents/task-analyst.md +13 -1
  296. package/presets/claude/nuxt/agents/task-router.md +1 -0
  297. package/presets/claude/nuxt/agents/tech-writer.md +1 -0
  298. package/presets/claude/nuxt/agents/unit-test-planner.md +1 -0
  299. package/presets/claude/nuxt/hooks/chain-team-phases.sh +313 -26
  300. package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +9 -9
  301. package/presets/claude/nuxt/rules/architecture/reference-features.md +1 -20
  302. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +1 -1
  303. package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +1 -0
  304. package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +4 -4
  305. package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  306. package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +12 -5
  307. package/presets/claude/nuxt/team/fixtures/feature-parallel.json +84 -0
  308. package/presets/claude/php-hexagonal/CLAUDE.md +3 -3
  309. package/presets/claude/php-hexagonal/REPO_AGENTS.md +8 -0
  310. package/presets/claude/php-hexagonal/agents/README.md +4 -0
  311. package/presets/claude/php-hexagonal/agents/api-contract-reviewer.md +1 -1
  312. package/presets/claude/php-hexagonal/agents/build-verifier.md +2 -2
  313. package/presets/claude/php-hexagonal/agents/ci-investigator.md +0 -1
  314. package/presets/claude/php-hexagonal/agents/code-reviewer.md +4 -4
  315. package/presets/claude/php-hexagonal/agents/codebase-analyzer.md +1 -1
  316. package/presets/claude/php-hexagonal/agents/debugger.md +1 -2
  317. package/presets/claude/php-hexagonal/agents/feature-developer.md +3 -4
  318. package/presets/claude/php-hexagonal/agents/integration-test-generator.md +1 -2
  319. package/presets/claude/php-hexagonal/agents/integration-test-healer.md +1 -2
  320. package/presets/claude/php-hexagonal/agents/integration-test-planner.md +1 -2
  321. package/presets/claude/php-hexagonal/agents/migration-specialist.md +1 -1
  322. package/presets/claude/php-hexagonal/agents/openspec-author.md +2 -1
  323. package/presets/claude/php-hexagonal/agents/performance-auditor.md +1 -1
  324. package/presets/claude/php-hexagonal/agents/qa-tester.md +0 -1
  325. package/presets/claude/php-hexagonal/agents/security-reviewer.md +2 -2
  326. package/presets/claude/php-hexagonal/agents/solution-architect.md +1 -1
  327. package/presets/claude/php-hexagonal/agents/task-analyst.md +2 -2
  328. package/presets/claude/php-hexagonal/agents/task-router.md +1 -1
  329. package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
  330. package/presets/claude/php-hexagonal/agents/unit-test-generator.md +1 -2
  331. package/presets/claude/php-hexagonal/agents/unit-test-healer.md +1 -2
  332. package/presets/claude/php-hexagonal/agents/unit-test-planner.md +1 -1
  333. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +313 -26
  334. package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +51 -1
  335. package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +25 -0
  336. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +1 -1
  337. package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +1 -0
  338. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +4 -4
  339. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  340. package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +12 -5
  341. package/presets/claude/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  342. package/presets/claude/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  343. package/presets/claude/php-laravel/CLAUDE.md +2 -2
  344. package/presets/claude/php-laravel/REPO_AGENTS.md +8 -0
  345. package/presets/claude/php-laravel/agents/README.md +4 -0
  346. package/presets/claude/php-laravel/agents/api-contract-reviewer.md +1 -1
  347. package/presets/claude/php-laravel/agents/build-verifier.md +2 -2
  348. package/presets/claude/php-laravel/agents/ci-investigator.md +0 -1
  349. package/presets/claude/php-laravel/agents/code-reviewer.md +2 -2
  350. package/presets/claude/php-laravel/agents/codebase-analyzer.md +1 -1
  351. package/presets/claude/php-laravel/agents/debugger.md +1 -2
  352. package/presets/claude/php-laravel/agents/feature-developer.md +3 -4
  353. package/presets/claude/php-laravel/agents/integration-test-generator.md +1 -2
  354. package/presets/claude/php-laravel/agents/integration-test-healer.md +1 -2
  355. package/presets/claude/php-laravel/agents/integration-test-planner.md +1 -2
  356. package/presets/claude/php-laravel/agents/migration-specialist.md +1 -1
  357. package/presets/claude/php-laravel/agents/openspec-author.md +2 -1
  358. package/presets/claude/php-laravel/agents/performance-auditor.md +1 -1
  359. package/presets/claude/php-laravel/agents/qa-tester.md +0 -1
  360. package/presets/claude/php-laravel/agents/security-reviewer.md +1 -1
  361. package/presets/claude/php-laravel/agents/solution-architect.md +1 -1
  362. package/presets/claude/php-laravel/agents/task-analyst.md +2 -2
  363. package/presets/claude/php-laravel/agents/task-router.md +1 -1
  364. package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
  365. package/presets/claude/php-laravel/agents/unit-test-generator.md +1 -2
  366. package/presets/claude/php-laravel/agents/unit-test-healer.md +1 -2
  367. package/presets/claude/php-laravel/agents/unit-test-planner.md +1 -1
  368. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +313 -26
  369. package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +54 -1
  370. package/presets/claude/php-laravel/rules/architecture/reference-features.md +27 -0
  371. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +1 -1
  372. package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +1 -0
  373. package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +4 -4
  374. package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  375. package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +12 -5
  376. package/presets/claude/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  377. package/presets/claude/php-laravel/team/fixtures/feature-parallel.json +84 -0
  378. package/presets/claude/svelte/CLAUDE.md +4 -4
  379. package/presets/claude/svelte/REPO_AGENTS.md +8 -0
  380. package/presets/claude/svelte/agents/README.md +2 -4
  381. package/presets/claude/svelte/agents/accessibility-reviewer.md +1 -0
  382. package/presets/claude/svelte/agents/api-contract-reviewer.md +1 -0
  383. package/presets/claude/svelte/agents/build-verifier.md +5 -1
  384. package/presets/claude/svelte/agents/code-reviewer.md +2 -1
  385. package/presets/claude/svelte/agents/codebase-analyzer.md +1 -1
  386. package/presets/claude/svelte/agents/debugger.md +1 -1
  387. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  388. package/presets/claude/svelte/agents/migration-specialist.md +1 -0
  389. package/presets/claude/svelte/agents/mockup-reviewer.md +1 -0
  390. package/presets/claude/svelte/agents/openspec-author.md +2 -1
  391. package/presets/claude/svelte/agents/performance-auditor.md +1 -0
  392. package/presets/claude/svelte/agents/playwright-test-generator.md +24 -68
  393. package/presets/claude/svelte/agents/playwright-test-healer.md +28 -54
  394. package/presets/claude/svelte/agents/playwright-test-planner.md +18 -51
  395. package/presets/claude/svelte/agents/security-reviewer.md +1 -0
  396. package/presets/claude/svelte/agents/solution-architect.md +1 -0
  397. package/presets/claude/svelte/agents/task-analyst.md +13 -1
  398. package/presets/claude/svelte/agents/task-router.md +1 -1
  399. package/presets/claude/svelte/agents/tech-writer.md +1 -0
  400. package/presets/claude/svelte/agents/unit-test-planner.md +1 -0
  401. package/presets/claude/svelte/hooks/chain-team-phases.sh +313 -26
  402. package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +7 -7
  403. package/presets/claude/svelte/rules/architecture/reference-features.md +1 -20
  404. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +1 -1
  405. package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +1 -0
  406. package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +4 -4
  407. package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +2 -1
  408. package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +12 -5
  409. package/presets/claude/svelte/team/fixtures/feature-parallel.json +84 -0
  410. package/presets/cursor/android-kotlin/REPO_AGENTS.md +8 -0
  411. package/presets/cursor/android-kotlin/agents/build-verifier.md +1 -1
  412. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
  413. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  414. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  415. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  416. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +313 -26
  417. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +17 -5
  418. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +1 -1
  419. package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +1 -0
  420. package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +66 -8
  421. package/presets/cursor/android-kotlin/rules/preset-layering.mdc +4 -4
  422. package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +2 -1
  423. package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +12 -5
  424. package/presets/cursor/android-kotlin/rules/reference-features.mdc +48 -2
  425. package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  426. package/presets/cursor/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  427. package/presets/cursor/go/REPO_AGENTS.md +8 -0
  428. package/presets/cursor/go/agents/build-verifier.md +1 -1
  429. package/presets/cursor/go/agents/code-reviewer.md +1 -1
  430. package/presets/cursor/go/agents/debugger.md +1 -1
  431. package/presets/cursor/go/agents/feature-developer.md +1 -1
  432. package/presets/cursor/go/agents/task-analyst.md +1 -1
  433. package/presets/cursor/go/hooks/chain-team-phases.sh +313 -26
  434. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +16 -5
  435. package/presets/cursor/go/rules/ai-local-overlay.mdc +1 -1
  436. package/presets/cursor/go/rules/code-review-mr.mdc +1 -0
  437. package/presets/cursor/go/rules/feature-delivery-workflow.mdc +63 -5
  438. package/presets/cursor/go/rules/preset-layering.mdc +4 -4
  439. package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -1
  440. package/presets/cursor/go/rules/preset-twin-sync.mdc +12 -5
  441. package/presets/cursor/go/rules/reference-features.mdc +46 -6
  442. package/presets/cursor/go/skills/feature-delivery/SKILL.md +2 -2
  443. package/presets/cursor/go/skills/unit-testing/SKILL.md +1 -1
  444. package/presets/cursor/go/team/fixtures/feature-parallel.json +84 -0
  445. package/presets/cursor/ios-swift/REPO_AGENTS.md +8 -0
  446. package/presets/cursor/ios-swift/agents/build-verifier.md +4 -1
  447. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
  448. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  449. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  450. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  451. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +313 -26
  452. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +17 -5
  453. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +1 -1
  454. package/presets/cursor/ios-swift/rules/code-review-mr.mdc +1 -0
  455. package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +64 -8
  456. package/presets/cursor/ios-swift/rules/preset-layering.mdc +4 -4
  457. package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -1
  458. package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +12 -5
  459. package/presets/cursor/ios-swift/rules/reference-features.mdc +44 -21
  460. package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
  461. package/presets/cursor/ios-swift/team/fixtures/feature-parallel.json +84 -0
  462. package/presets/cursor/java/AGENTS.md +1 -1
  463. package/presets/cursor/java/REPO_AGENTS.md +8 -0
  464. package/presets/cursor/java/agents/build-verifier.md +1 -1
  465. package/presets/cursor/java/agents/code-reviewer.md +1 -1
  466. package/presets/cursor/java/agents/debugger.md +1 -1
  467. package/presets/cursor/java/agents/feature-developer.md +1 -1
  468. package/presets/cursor/java/agents/task-analyst.md +1 -1
  469. package/presets/cursor/java/hooks/chain-team-phases.sh +313 -26
  470. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +16 -5
  471. package/presets/cursor/java/rules/ai-local-overlay.mdc +1 -1
  472. package/presets/cursor/java/rules/code-review-mr.mdc +1 -0
  473. package/presets/cursor/java/rules/feature-delivery-workflow.mdc +63 -5
  474. package/presets/cursor/java/rules/preset-layering.mdc +4 -4
  475. package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -1
  476. package/presets/cursor/java/rules/preset-twin-sync.mdc +12 -5
  477. package/presets/cursor/java/rules/reference-features.mdc +46 -6
  478. package/presets/cursor/java/skills/feature-delivery/SKILL.md +2 -2
  479. package/presets/cursor/java/team/fixtures/feature-parallel.json +84 -0
  480. package/presets/cursor/mcp-ts/REPO_AGENTS.md +8 -0
  481. package/presets/cursor/mcp-ts/agents/build-verifier.md +1 -1
  482. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  483. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  484. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +313 -26
  485. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +17 -6
  486. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +1 -1
  487. package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +1 -0
  488. package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +63 -5
  489. package/presets/cursor/mcp-ts/rules/preset-layering.mdc +4 -4
  490. package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -1
  491. package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +12 -5
  492. package/presets/cursor/mcp-ts/rules/reference-features.mdc +46 -6
  493. package/presets/cursor/mcp-ts/skills/code-review/SKILL.md +1 -1
  494. package/presets/cursor/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  495. package/presets/cursor/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  496. package/presets/cursor/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  497. package/presets/cursor/mol/REPO_AGENTS.md +8 -0
  498. package/presets/cursor/mol/agents/build-verifier.md +4 -1
  499. package/presets/cursor/mol/agents/code-reviewer.md +1 -1
  500. package/presets/cursor/mol/agents/debugger.md +1 -1
  501. package/presets/cursor/mol/agents/feature-developer.md +1 -1
  502. package/presets/cursor/mol/agents/task-analyst.md +1 -1
  503. package/presets/cursor/mol/hooks/chain-team-phases.sh +313 -26
  504. package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +16 -5
  505. package/presets/cursor/mol/rules/ai-local-overlay.mdc +1 -1
  506. package/presets/cursor/mol/rules/code-review-mr.mdc +1 -0
  507. package/presets/cursor/mol/rules/feature-delivery-workflow.mdc +65 -9
  508. package/presets/cursor/mol/rules/preset-layering.mdc +4 -4
  509. package/presets/cursor/mol/rules/preset-pr-checklist.mdc +2 -1
  510. package/presets/cursor/mol/rules/preset-twin-sync.mdc +12 -5
  511. package/presets/cursor/mol/rules/reference-features.mdc +43 -20
  512. package/presets/cursor/next/README.md +2 -2
  513. package/presets/cursor/next/REPO_AGENTS.md +8 -0
  514. package/presets/cursor/next/agents/build-verifier.md +6 -1
  515. package/presets/cursor/next/agents/code-reviewer.md +1 -1
  516. package/presets/cursor/next/agents/debugger.md +1 -1
  517. package/presets/cursor/next/agents/feature-developer.md +1 -1
  518. package/presets/cursor/next/agents/task-analyst.md +1 -1
  519. package/presets/cursor/next/hooks/chain-team-phases.sh +313 -26
  520. package/presets/cursor/next/rules/README.md +2 -2
  521. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +16 -5
  522. package/presets/cursor/next/rules/ai-local-overlay.mdc +2 -1
  523. package/presets/cursor/next/rules/code-review-mr.mdc +1 -0
  524. package/presets/cursor/next/rules/feature-delivery-workflow.mdc +68 -12
  525. package/presets/cursor/next/rules/next-app-core.mdc +1 -1
  526. package/presets/cursor/next/rules/preset-layering.mdc +4 -4
  527. package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -1
  528. package/presets/cursor/next/rules/preset-twin-sync.mdc +12 -5
  529. package/presets/cursor/next/rules/reference-features.mdc +42 -19
  530. package/presets/cursor/nuxt/REPO_AGENTS.md +8 -0
  531. package/presets/cursor/nuxt/agents/build-verifier.md +4 -1
  532. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
  533. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  534. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  535. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  536. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +313 -26
  537. package/presets/cursor/nuxt/rules/README.md +2 -2
  538. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +16 -5
  539. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +1 -1
  540. package/presets/cursor/nuxt/rules/code-review-mr.mdc +1 -0
  541. package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +64 -8
  542. package/presets/cursor/nuxt/rules/preset-layering.mdc +4 -4
  543. package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +2 -1
  544. package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +12 -5
  545. package/presets/cursor/nuxt/rules/reference-features.mdc +37 -14
  546. package/presets/cursor/nuxt/team/fixtures/feature-parallel.json +84 -0
  547. package/presets/cursor/php-hexagonal/AGENTS.md +1 -1
  548. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +8 -0
  549. package/presets/cursor/php-hexagonal/agents/build-verifier.md +1 -1
  550. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
  551. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  552. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
  553. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  554. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +313 -26
  555. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +16 -5
  556. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +1 -1
  557. package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +1 -0
  558. package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +63 -5
  559. package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +4 -4
  560. package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -1
  561. package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +12 -5
  562. package/presets/cursor/php-hexagonal/rules/reference-features.mdc +46 -6
  563. package/presets/cursor/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  564. package/presets/cursor/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  565. package/presets/cursor/php-laravel/AGENTS.md +1 -1
  566. package/presets/cursor/php-laravel/REPO_AGENTS.md +8 -0
  567. package/presets/cursor/php-laravel/agents/build-verifier.md +1 -1
  568. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
  569. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  570. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
  571. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  572. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +313 -26
  573. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +16 -5
  574. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +1 -1
  575. package/presets/cursor/php-laravel/rules/code-review-mr.mdc +1 -0
  576. package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +63 -5
  577. package/presets/cursor/php-laravel/rules/preset-layering.mdc +4 -4
  578. package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -1
  579. package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +12 -5
  580. package/presets/cursor/php-laravel/rules/reference-features.mdc +46 -6
  581. package/presets/cursor/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  582. package/presets/cursor/php-laravel/team/fixtures/feature-parallel.json +84 -0
  583. package/presets/cursor/svelte/REPO_AGENTS.md +8 -0
  584. package/presets/cursor/svelte/agents/build-verifier.md +4 -1
  585. package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
  586. package/presets/cursor/svelte/agents/debugger.md +1 -1
  587. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  588. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  589. package/presets/cursor/svelte/hooks/chain-team-phases.sh +313 -26
  590. package/presets/cursor/svelte/rules/README.md +1 -1
  591. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +16 -5
  592. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +1 -1
  593. package/presets/cursor/svelte/rules/code-review-mr.mdc +1 -0
  594. package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +62 -6
  595. package/presets/cursor/svelte/rules/preset-layering.mdc +4 -4
  596. package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +2 -1
  597. package/presets/cursor/svelte/rules/preset-twin-sync.mdc +12 -5
  598. package/presets/cursor/svelte/rules/reference-features.mdc +40 -17
  599. package/presets/cursor/svelte/team/fixtures/feature-parallel.json +84 -0
  600. package/presets/mavis/android-kotlin/REPO_AGENTS.md +8 -0
  601. package/presets/mavis/android-kotlin/adapter-map.json +11 -2
  602. package/presets/mavis/android-kotlin/agents/build-verifier.md +1 -1
  603. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
  604. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  605. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  606. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  607. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +313 -26
  608. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +1 -1
  609. package/presets/mavis/android-kotlin/rules/code-review-mr.md +1 -0
  610. package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +66 -8
  611. package/presets/mavis/android-kotlin/rules/preset-layering.md +4 -4
  612. package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +2 -1
  613. package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +12 -5
  614. package/presets/mavis/android-kotlin/rules/reference-features.md +48 -2
  615. package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  616. package/presets/mavis/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  617. package/presets/mavis/go/REPO_AGENTS.md +8 -0
  618. package/presets/mavis/go/adapter-map.json +9 -1
  619. package/presets/mavis/go/agents/build-verifier.md +1 -1
  620. package/presets/mavis/go/agents/code-reviewer.md +1 -1
  621. package/presets/mavis/go/agents/debugger.md +1 -1
  622. package/presets/mavis/go/agents/feature-developer.md +1 -1
  623. package/presets/mavis/go/agents/task-analyst.md +1 -1
  624. package/presets/mavis/go/hooks/chain-team-phases.sh +313 -26
  625. package/presets/mavis/go/rules/ai-local-overlay.md +1 -1
  626. package/presets/mavis/go/rules/code-review-mr.md +1 -0
  627. package/presets/mavis/go/rules/feature-delivery-workflow.md +50 -1
  628. package/presets/mavis/go/rules/preset-layering.md +4 -4
  629. package/presets/mavis/go/rules/preset-pr-checklist.md +2 -1
  630. package/presets/mavis/go/rules/preset-twin-sync.md +12 -5
  631. package/presets/mavis/go/rules/reference-features.md +22 -0
  632. package/presets/mavis/go/skills/feature-delivery/SKILL.md +2 -2
  633. package/presets/mavis/go/skills/unit-testing/SKILL.md +1 -1
  634. package/presets/mavis/go/team/fixtures/feature-parallel.json +84 -0
  635. package/presets/mavis/ios-swift/REPO_AGENTS.md +8 -0
  636. package/presets/mavis/ios-swift/adapter-map.json +9 -1
  637. package/presets/mavis/ios-swift/agents/build-verifier.md +4 -1
  638. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
  639. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  640. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  641. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  642. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +313 -26
  643. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +1 -1
  644. package/presets/mavis/ios-swift/rules/code-review-mr.md +1 -0
  645. package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +8 -8
  646. package/presets/mavis/ios-swift/rules/preset-layering.md +4 -4
  647. package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +2 -1
  648. package/presets/mavis/ios-swift/rules/preset-twin-sync.md +12 -5
  649. package/presets/mavis/ios-swift/rules/reference-features.md +2 -21
  650. package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
  651. package/presets/mavis/ios-swift/team/fixtures/feature-parallel.json +84 -0
  652. package/presets/mavis/java/MAVIS.md +1 -1
  653. package/presets/mavis/java/REPO_AGENTS.md +8 -0
  654. package/presets/mavis/java/adapter-map.json +9 -1
  655. package/presets/mavis/java/agents/build-verifier.md +1 -1
  656. package/presets/mavis/java/agents/code-reviewer.md +1 -1
  657. package/presets/mavis/java/agents/debugger.md +1 -1
  658. package/presets/mavis/java/agents/feature-developer.md +1 -1
  659. package/presets/mavis/java/agents/task-analyst.md +1 -1
  660. package/presets/mavis/java/hooks/chain-team-phases.sh +313 -26
  661. package/presets/mavis/java/rules/ai-local-overlay.md +1 -1
  662. package/presets/mavis/java/rules/code-review-mr.md +1 -0
  663. package/presets/mavis/java/rules/feature-delivery-workflow.md +51 -1
  664. package/presets/mavis/java/rules/preset-layering.md +4 -4
  665. package/presets/mavis/java/rules/preset-pr-checklist.md +2 -1
  666. package/presets/mavis/java/rules/preset-twin-sync.md +12 -5
  667. package/presets/mavis/java/rules/reference-features.md +22 -0
  668. package/presets/mavis/java/skills/feature-delivery/SKILL.md +2 -2
  669. package/presets/mavis/java/team/fixtures/feature-parallel.json +84 -0
  670. package/presets/mavis/mcp-ts/REPO_AGENTS.md +8 -0
  671. package/presets/mavis/mcp-ts/adapter-map.json +9 -1
  672. package/presets/mavis/mcp-ts/agents/build-verifier.md +1 -1
  673. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  674. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  675. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +313 -26
  676. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +1 -1
  677. package/presets/mavis/mcp-ts/rules/code-review-mr.md +1 -0
  678. package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +47 -1
  679. package/presets/mavis/mcp-ts/rules/preset-layering.md +4 -4
  680. package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +2 -1
  681. package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +12 -5
  682. package/presets/mavis/mcp-ts/rules/reference-features.md +22 -0
  683. package/presets/mavis/mcp-ts/skills/code-review/SKILL.md +1 -1
  684. package/presets/mavis/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  685. package/presets/mavis/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  686. package/presets/mavis/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  687. package/presets/mavis/mol/REPO_AGENTS.md +8 -0
  688. package/presets/mavis/mol/adapter-map.json +1 -1
  689. package/presets/mavis/mol/agents/build-verifier.md +4 -1
  690. package/presets/mavis/mol/agents/code-reviewer.md +1 -1
  691. package/presets/mavis/mol/agents/debugger.md +1 -1
  692. package/presets/mavis/mol/agents/feature-developer.md +1 -1
  693. package/presets/mavis/mol/agents/task-analyst.md +1 -1
  694. package/presets/mavis/mol/hooks/chain-team-phases.sh +313 -26
  695. package/presets/mavis/mol/rules/ai-local-overlay.md +1 -1
  696. package/presets/mavis/mol/rules/code-review-mr.md +1 -0
  697. package/presets/mavis/mol/rules/feature-delivery-workflow.md +10 -10
  698. package/presets/mavis/mol/rules/preset-layering.md +4 -4
  699. package/presets/mavis/mol/rules/preset-pr-checklist.md +2 -1
  700. package/presets/mavis/mol/rules/preset-twin-sync.md +12 -5
  701. package/presets/mavis/mol/rules/reference-features.md +0 -19
  702. package/presets/mavis/next/REPO_AGENTS.md +8 -0
  703. package/presets/mavis/next/adapter-map.json +1 -1
  704. package/presets/mavis/next/agents/build-verifier.md +6 -1
  705. package/presets/mavis/next/agents/code-reviewer.md +1 -1
  706. package/presets/mavis/next/agents/debugger.md +1 -1
  707. package/presets/mavis/next/agents/feature-developer.md +1 -1
  708. package/presets/mavis/next/agents/task-analyst.md +1 -1
  709. package/presets/mavis/next/hooks/chain-team-phases.sh +313 -26
  710. package/presets/mavis/next/rules/ai-local-overlay.md +2 -1
  711. package/presets/mavis/next/rules/code-review-mr.md +1 -0
  712. package/presets/mavis/next/rules/feature-delivery-workflow.md +13 -13
  713. package/presets/mavis/next/rules/next-app-core.md +1 -1
  714. package/presets/mavis/next/rules/preset-layering.md +4 -4
  715. package/presets/mavis/next/rules/preset-pr-checklist.md +2 -1
  716. package/presets/mavis/next/rules/preset-twin-sync.md +12 -5
  717. package/presets/mavis/next/rules/reference-features.md +0 -19
  718. package/presets/mavis/nuxt/REPO_AGENTS.md +8 -0
  719. package/presets/mavis/nuxt/adapter-map.json +9 -1
  720. package/presets/mavis/nuxt/agents/build-verifier.md +4 -1
  721. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
  722. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  723. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  724. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  725. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +313 -26
  726. package/presets/mavis/nuxt/rules/ai-local-overlay.md +1 -1
  727. package/presets/mavis/nuxt/rules/code-review-mr.md +1 -0
  728. package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +9 -9
  729. package/presets/mavis/nuxt/rules/preset-layering.md +4 -4
  730. package/presets/mavis/nuxt/rules/preset-pr-checklist.md +2 -1
  731. package/presets/mavis/nuxt/rules/preset-twin-sync.md +12 -5
  732. package/presets/mavis/nuxt/rules/reference-features.md +1 -20
  733. package/presets/mavis/nuxt/team/fixtures/feature-parallel.json +84 -0
  734. package/presets/mavis/php-hexagonal/MAVIS.md +1 -1
  735. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +8 -0
  736. package/presets/mavis/php-hexagonal/adapter-map.json +9 -1
  737. package/presets/mavis/php-hexagonal/agents/build-verifier.md +1 -1
  738. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
  739. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  740. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
  741. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  742. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +313 -26
  743. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +1 -1
  744. package/presets/mavis/php-hexagonal/rules/code-review-mr.md +1 -0
  745. package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
  746. package/presets/mavis/php-hexagonal/rules/preset-layering.md +4 -4
  747. package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +2 -1
  748. package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +12 -5
  749. package/presets/mavis/php-hexagonal/rules/reference-features.md +25 -0
  750. package/presets/mavis/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  751. package/presets/mavis/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  752. package/presets/mavis/php-laravel/MAVIS.md +1 -1
  753. package/presets/mavis/php-laravel/REPO_AGENTS.md +8 -0
  754. package/presets/mavis/php-laravel/adapter-map.json +9 -1
  755. package/presets/mavis/php-laravel/agents/build-verifier.md +1 -1
  756. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
  757. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  758. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
  759. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  760. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +313 -26
  761. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +1 -1
  762. package/presets/mavis/php-laravel/rules/code-review-mr.md +1 -0
  763. package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +54 -1
  764. package/presets/mavis/php-laravel/rules/preset-layering.md +4 -4
  765. package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +2 -1
  766. package/presets/mavis/php-laravel/rules/preset-twin-sync.md +12 -5
  767. package/presets/mavis/php-laravel/rules/reference-features.md +27 -0
  768. package/presets/mavis/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  769. package/presets/mavis/php-laravel/team/fixtures/feature-parallel.json +84 -0
  770. package/presets/mavis/svelte/REPO_AGENTS.md +8 -0
  771. package/presets/mavis/svelte/adapter-map.json +9 -1
  772. package/presets/mavis/svelte/agents/build-verifier.md +4 -1
  773. package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
  774. package/presets/mavis/svelte/agents/debugger.md +1 -1
  775. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  776. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  777. package/presets/mavis/svelte/hooks/chain-team-phases.sh +313 -26
  778. package/presets/mavis/svelte/rules/ai-local-overlay.md +1 -1
  779. package/presets/mavis/svelte/rules/code-review-mr.md +1 -0
  780. package/presets/mavis/svelte/rules/feature-delivery-workflow.md +7 -7
  781. package/presets/mavis/svelte/rules/preset-layering.md +4 -4
  782. package/presets/mavis/svelte/rules/preset-pr-checklist.md +2 -1
  783. package/presets/mavis/svelte/rules/preset-twin-sync.md +12 -5
  784. package/presets/mavis/svelte/rules/reference-features.md +1 -20
  785. package/presets/mavis/svelte/team/fixtures/feature-parallel.json +84 -0
  786. package/presets/opencode/android-kotlin/REPO_AGENTS.md +8 -0
  787. package/presets/opencode/android-kotlin/adapter-map.json +11 -2
  788. package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
  789. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  790. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  791. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  792. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  793. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +313 -26
  794. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +1 -1
  795. package/presets/opencode/android-kotlin/rules/code-review-mr.md +1 -0
  796. package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
  797. package/presets/opencode/android-kotlin/rules/preset-layering.md +4 -4
  798. package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +2 -1
  799. package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +12 -5
  800. package/presets/opencode/android-kotlin/rules/reference-features.md +48 -2
  801. package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  802. package/presets/opencode/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  803. package/presets/opencode/go/REPO_AGENTS.md +8 -0
  804. package/presets/opencode/go/adapter-map.json +9 -1
  805. package/presets/opencode/go/agents/build-verifier.md +1 -1
  806. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  807. package/presets/opencode/go/agents/debugger.md +1 -1
  808. package/presets/opencode/go/agents/feature-developer.md +1 -1
  809. package/presets/opencode/go/agents/task-analyst.md +1 -1
  810. package/presets/opencode/go/hooks/chain-team-phases.sh +313 -26
  811. package/presets/opencode/go/rules/ai-local-overlay.md +1 -1
  812. package/presets/opencode/go/rules/code-review-mr.md +1 -0
  813. package/presets/opencode/go/rules/feature-delivery-workflow.md +50 -1
  814. package/presets/opencode/go/rules/preset-layering.md +4 -4
  815. package/presets/opencode/go/rules/preset-pr-checklist.md +2 -1
  816. package/presets/opencode/go/rules/preset-twin-sync.md +12 -5
  817. package/presets/opencode/go/rules/reference-features.md +22 -0
  818. package/presets/opencode/go/skills/feature-delivery/SKILL.md +2 -2
  819. package/presets/opencode/go/skills/unit-testing/SKILL.md +1 -1
  820. package/presets/opencode/go/team/fixtures/feature-parallel.json +84 -0
  821. package/presets/opencode/ios-swift/REPO_AGENTS.md +8 -0
  822. package/presets/opencode/ios-swift/adapter-map.json +9 -1
  823. package/presets/opencode/ios-swift/agents/build-verifier.md +4 -1
  824. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  825. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  826. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  827. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  828. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +313 -26
  829. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +1 -1
  830. package/presets/opencode/ios-swift/rules/code-review-mr.md +1 -0
  831. package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +8 -8
  832. package/presets/opencode/ios-swift/rules/preset-layering.md +4 -4
  833. package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +2 -1
  834. package/presets/opencode/ios-swift/rules/preset-twin-sync.md +12 -5
  835. package/presets/opencode/ios-swift/rules/reference-features.md +2 -21
  836. package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  837. package/presets/opencode/ios-swift/team/fixtures/feature-parallel.json +84 -0
  838. package/presets/opencode/java/OPENCODE.md +1 -1
  839. package/presets/opencode/java/REPO_AGENTS.md +8 -0
  840. package/presets/opencode/java/adapter-map.json +9 -1
  841. package/presets/opencode/java/agents/build-verifier.md +1 -1
  842. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  843. package/presets/opencode/java/agents/debugger.md +1 -1
  844. package/presets/opencode/java/agents/feature-developer.md +1 -1
  845. package/presets/opencode/java/agents/task-analyst.md +1 -1
  846. package/presets/opencode/java/hooks/chain-team-phases.sh +313 -26
  847. package/presets/opencode/java/rules/ai-local-overlay.md +1 -1
  848. package/presets/opencode/java/rules/code-review-mr.md +1 -0
  849. package/presets/opencode/java/rules/feature-delivery-workflow.md +51 -1
  850. package/presets/opencode/java/rules/preset-layering.md +4 -4
  851. package/presets/opencode/java/rules/preset-pr-checklist.md +2 -1
  852. package/presets/opencode/java/rules/preset-twin-sync.md +12 -5
  853. package/presets/opencode/java/rules/reference-features.md +22 -0
  854. package/presets/opencode/java/skills/feature-delivery/SKILL.md +2 -2
  855. package/presets/opencode/java/team/fixtures/feature-parallel.json +84 -0
  856. package/presets/opencode/mcp-ts/REPO_AGENTS.md +8 -0
  857. package/presets/opencode/mcp-ts/adapter-map.json +9 -1
  858. package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
  859. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  860. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  861. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +313 -26
  862. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +1 -1
  863. package/presets/opencode/mcp-ts/rules/code-review-mr.md +1 -0
  864. package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
  865. package/presets/opencode/mcp-ts/rules/preset-layering.md +4 -4
  866. package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +2 -1
  867. package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +12 -5
  868. package/presets/opencode/mcp-ts/rules/reference-features.md +22 -0
  869. package/presets/opencode/mcp-ts/skills/code-review/SKILL.md +1 -1
  870. package/presets/opencode/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  871. package/presets/opencode/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  872. package/presets/opencode/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  873. package/presets/opencode/mol/REPO_AGENTS.md +8 -0
  874. package/presets/opencode/mol/adapter-map.json +1 -1
  875. package/presets/opencode/mol/agents/build-verifier.md +4 -1
  876. package/presets/opencode/mol/agents/code-reviewer.md +1 -1
  877. package/presets/opencode/mol/agents/debugger.md +1 -1
  878. package/presets/opencode/mol/agents/feature-developer.md +1 -1
  879. package/presets/opencode/mol/agents/task-analyst.md +1 -1
  880. package/presets/opencode/mol/hooks/chain-team-phases.sh +313 -26
  881. package/presets/opencode/mol/rules/ai-local-overlay.md +1 -1
  882. package/presets/opencode/mol/rules/code-review-mr.md +1 -0
  883. package/presets/opencode/mol/rules/feature-delivery-workflow.md +10 -10
  884. package/presets/opencode/mol/rules/preset-layering.md +4 -4
  885. package/presets/opencode/mol/rules/preset-pr-checklist.md +2 -1
  886. package/presets/opencode/mol/rules/preset-twin-sync.md +12 -5
  887. package/presets/opencode/mol/rules/reference-features.md +0 -19
  888. package/presets/opencode/next/REPO_AGENTS.md +8 -0
  889. package/presets/opencode/next/adapter-map.json +1 -1
  890. package/presets/opencode/next/agents/build-verifier.md +6 -1
  891. package/presets/opencode/next/agents/code-reviewer.md +1 -1
  892. package/presets/opencode/next/agents/debugger.md +1 -1
  893. package/presets/opencode/next/agents/feature-developer.md +1 -1
  894. package/presets/opencode/next/agents/task-analyst.md +1 -1
  895. package/presets/opencode/next/hooks/chain-team-phases.sh +313 -26
  896. package/presets/opencode/next/rules/ai-local-overlay.md +2 -1
  897. package/presets/opencode/next/rules/code-review-mr.md +1 -0
  898. package/presets/opencode/next/rules/feature-delivery-workflow.md +13 -13
  899. package/presets/opencode/next/rules/next-app-core.md +1 -1
  900. package/presets/opencode/next/rules/preset-layering.md +4 -4
  901. package/presets/opencode/next/rules/preset-pr-checklist.md +2 -1
  902. package/presets/opencode/next/rules/preset-twin-sync.md +12 -5
  903. package/presets/opencode/next/rules/reference-features.md +0 -19
  904. package/presets/opencode/nuxt/REPO_AGENTS.md +8 -0
  905. package/presets/opencode/nuxt/adapter-map.json +9 -1
  906. package/presets/opencode/nuxt/agents/build-verifier.md +4 -1
  907. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  908. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  909. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  910. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  911. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +313 -26
  912. package/presets/opencode/nuxt/rules/ai-local-overlay.md +1 -1
  913. package/presets/opencode/nuxt/rules/code-review-mr.md +1 -0
  914. package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +9 -9
  915. package/presets/opencode/nuxt/rules/preset-layering.md +4 -4
  916. package/presets/opencode/nuxt/rules/preset-pr-checklist.md +2 -1
  917. package/presets/opencode/nuxt/rules/preset-twin-sync.md +12 -5
  918. package/presets/opencode/nuxt/rules/reference-features.md +1 -20
  919. package/presets/opencode/nuxt/team/fixtures/feature-parallel.json +84 -0
  920. package/presets/opencode/php-hexagonal/OPENCODE.md +1 -1
  921. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +8 -0
  922. package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
  923. package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
  924. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  925. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  926. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
  927. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  928. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +313 -26
  929. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +1 -1
  930. package/presets/opencode/php-hexagonal/rules/code-review-mr.md +1 -0
  931. package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
  932. package/presets/opencode/php-hexagonal/rules/preset-layering.md +4 -4
  933. package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +2 -1
  934. package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +12 -5
  935. package/presets/opencode/php-hexagonal/rules/reference-features.md +25 -0
  936. package/presets/opencode/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  937. package/presets/opencode/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  938. package/presets/opencode/php-laravel/OPENCODE.md +1 -1
  939. package/presets/opencode/php-laravel/REPO_AGENTS.md +8 -0
  940. package/presets/opencode/php-laravel/adapter-map.json +9 -1
  941. package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
  942. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  943. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  944. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
  945. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  946. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +313 -26
  947. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +1 -1
  948. package/presets/opencode/php-laravel/rules/code-review-mr.md +1 -0
  949. package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +54 -1
  950. package/presets/opencode/php-laravel/rules/preset-layering.md +4 -4
  951. package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +2 -1
  952. package/presets/opencode/php-laravel/rules/preset-twin-sync.md +12 -5
  953. package/presets/opencode/php-laravel/rules/reference-features.md +27 -0
  954. package/presets/opencode/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  955. package/presets/opencode/php-laravel/team/fixtures/feature-parallel.json +84 -0
  956. package/presets/opencode/svelte/REPO_AGENTS.md +8 -0
  957. package/presets/opencode/svelte/adapter-map.json +9 -1
  958. package/presets/opencode/svelte/agents/build-verifier.md +4 -1
  959. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  960. package/presets/opencode/svelte/agents/debugger.md +1 -1
  961. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  962. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  963. package/presets/opencode/svelte/hooks/chain-team-phases.sh +313 -26
  964. package/presets/opencode/svelte/rules/ai-local-overlay.md +1 -1
  965. package/presets/opencode/svelte/rules/code-review-mr.md +1 -0
  966. package/presets/opencode/svelte/rules/feature-delivery-workflow.md +7 -7
  967. package/presets/opencode/svelte/rules/preset-layering.md +4 -4
  968. package/presets/opencode/svelte/rules/preset-pr-checklist.md +2 -1
  969. package/presets/opencode/svelte/rules/preset-twin-sync.md +12 -5
  970. package/presets/opencode/svelte/rules/reference-features.md +1 -20
  971. package/presets/opencode/svelte/team/fixtures/feature-parallel.json +84 -0
  972. package/presets/zcode/android-kotlin/REPO_AGENTS.md +8 -0
  973. package/presets/zcode/android-kotlin/adapter-map.json +11 -2
  974. package/presets/zcode/android-kotlin/agents/build-verifier.md +1 -1
  975. package/presets/zcode/android-kotlin/agents/code-reviewer.md +1 -1
  976. package/presets/zcode/android-kotlin/agents/debugger.md +1 -1
  977. package/presets/zcode/android-kotlin/agents/feature-developer.md +1 -1
  978. package/presets/zcode/android-kotlin/agents/task-analyst.md +1 -1
  979. package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +313 -26
  980. package/presets/zcode/android-kotlin/rules/README.md +3 -3
  981. package/presets/zcode/android-kotlin/rules/ai-local-overlay.md +1 -1
  982. package/presets/zcode/android-kotlin/rules/code-review-mr.md +1 -0
  983. package/presets/zcode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
  984. package/presets/zcode/android-kotlin/rules/preset-layering.md +4 -4
  985. package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +2 -1
  986. package/presets/zcode/android-kotlin/rules/preset-twin-sync.md +12 -5
  987. package/presets/zcode/android-kotlin/rules/reference-features.md +48 -2
  988. package/presets/zcode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
  989. package/presets/zcode/android-kotlin/team/fixtures/feature-parallel.json +84 -0
  990. package/presets/zcode/go/REPO_AGENTS.md +8 -0
  991. package/presets/zcode/go/adapter-map.json +9 -1
  992. package/presets/zcode/go/agents/build-verifier.md +1 -1
  993. package/presets/zcode/go/agents/code-reviewer.md +1 -1
  994. package/presets/zcode/go/agents/debugger.md +1 -1
  995. package/presets/zcode/go/agents/feature-developer.md +1 -1
  996. package/presets/zcode/go/agents/task-analyst.md +1 -1
  997. package/presets/zcode/go/hooks/chain-team-phases.sh +313 -26
  998. package/presets/zcode/go/rules/README.md +3 -3
  999. package/presets/zcode/go/rules/ai-local-overlay.md +1 -1
  1000. package/presets/zcode/go/rules/code-review-mr.md +1 -0
  1001. package/presets/zcode/go/rules/feature-delivery-workflow.md +50 -1
  1002. package/presets/zcode/go/rules/preset-layering.md +4 -4
  1003. package/presets/zcode/go/rules/preset-pr-checklist.md +2 -1
  1004. package/presets/zcode/go/rules/preset-twin-sync.md +12 -5
  1005. package/presets/zcode/go/rules/reference-features.md +22 -0
  1006. package/presets/zcode/go/skills/feature-delivery/SKILL.md +2 -2
  1007. package/presets/zcode/go/skills/unit-testing/SKILL.md +1 -1
  1008. package/presets/zcode/go/team/fixtures/feature-parallel.json +84 -0
  1009. package/presets/zcode/ios-swift/REPO_AGENTS.md +8 -0
  1010. package/presets/zcode/ios-swift/adapter-map.json +9 -1
  1011. package/presets/zcode/ios-swift/agents/build-verifier.md +4 -1
  1012. package/presets/zcode/ios-swift/agents/code-reviewer.md +1 -1
  1013. package/presets/zcode/ios-swift/agents/debugger.md +1 -1
  1014. package/presets/zcode/ios-swift/agents/feature-developer.md +1 -1
  1015. package/presets/zcode/ios-swift/agents/task-analyst.md +1 -1
  1016. package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +313 -26
  1017. package/presets/zcode/ios-swift/rules/README.md +3 -3
  1018. package/presets/zcode/ios-swift/rules/ai-local-overlay.md +1 -1
  1019. package/presets/zcode/ios-swift/rules/code-review-mr.md +1 -0
  1020. package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +8 -8
  1021. package/presets/zcode/ios-swift/rules/preset-layering.md +4 -4
  1022. package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +2 -1
  1023. package/presets/zcode/ios-swift/rules/preset-twin-sync.md +12 -5
  1024. package/presets/zcode/ios-swift/rules/reference-features.md +2 -21
  1025. package/presets/zcode/ios-swift/skills/unit-testing/SKILL.md +1 -1
  1026. package/presets/zcode/ios-swift/team/fixtures/feature-parallel.json +84 -0
  1027. package/presets/zcode/java/REPO_AGENTS.md +8 -0
  1028. package/presets/zcode/java/adapter-map.json +9 -1
  1029. package/presets/zcode/java/agents/build-verifier.md +1 -1
  1030. package/presets/zcode/java/agents/code-reviewer.md +1 -1
  1031. package/presets/zcode/java/agents/debugger.md +1 -1
  1032. package/presets/zcode/java/agents/feature-developer.md +1 -1
  1033. package/presets/zcode/java/agents/task-analyst.md +1 -1
  1034. package/presets/zcode/java/hooks/chain-team-phases.sh +313 -26
  1035. package/presets/zcode/java/rules/README.md +3 -3
  1036. package/presets/zcode/java/rules/ai-local-overlay.md +1 -1
  1037. package/presets/zcode/java/rules/code-review-mr.md +1 -0
  1038. package/presets/zcode/java/rules/feature-delivery-workflow.md +51 -1
  1039. package/presets/zcode/java/rules/preset-layering.md +4 -4
  1040. package/presets/zcode/java/rules/preset-pr-checklist.md +2 -1
  1041. package/presets/zcode/java/rules/preset-twin-sync.md +12 -5
  1042. package/presets/zcode/java/rules/reference-features.md +22 -0
  1043. package/presets/zcode/java/skills/feature-delivery/SKILL.md +2 -2
  1044. package/presets/zcode/java/team/fixtures/feature-parallel.json +84 -0
  1045. package/presets/zcode/mcp-ts/REPO_AGENTS.md +8 -0
  1046. package/presets/zcode/mcp-ts/adapter-map.json +9 -1
  1047. package/presets/zcode/mcp-ts/agents/build-verifier.md +1 -1
  1048. package/presets/zcode/mcp-ts/agents/feature-developer.md +1 -1
  1049. package/presets/zcode/mcp-ts/agents/task-analyst.md +1 -1
  1050. package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +313 -26
  1051. package/presets/zcode/mcp-ts/rules/README.md +3 -3
  1052. package/presets/zcode/mcp-ts/rules/ai-local-overlay.md +1 -1
  1053. package/presets/zcode/mcp-ts/rules/code-review-mr.md +1 -0
  1054. package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
  1055. package/presets/zcode/mcp-ts/rules/preset-layering.md +4 -4
  1056. package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +2 -1
  1057. package/presets/zcode/mcp-ts/rules/preset-twin-sync.md +12 -5
  1058. package/presets/zcode/mcp-ts/rules/reference-features.md +22 -0
  1059. package/presets/zcode/mcp-ts/skills/code-review/SKILL.md +1 -1
  1060. package/presets/zcode/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
  1061. package/presets/zcode/mcp-ts/skills/unit-testing/SKILL.md +1 -1
  1062. package/presets/zcode/mcp-ts/team/fixtures/feature-parallel.json +84 -0
  1063. package/presets/zcode/mol/REPO_AGENTS.md +8 -0
  1064. package/presets/zcode/mol/adapter-map.json +1 -1
  1065. package/presets/zcode/mol/agents/build-verifier.md +4 -1
  1066. package/presets/zcode/mol/agents/code-reviewer.md +1 -1
  1067. package/presets/zcode/mol/agents/debugger.md +1 -1
  1068. package/presets/zcode/mol/agents/feature-developer.md +1 -1
  1069. package/presets/zcode/mol/agents/task-analyst.md +1 -1
  1070. package/presets/zcode/mol/hooks/chain-team-phases.sh +313 -26
  1071. package/presets/zcode/mol/rules/README.md +3 -3
  1072. package/presets/zcode/mol/rules/ai-local-overlay.md +1 -1
  1073. package/presets/zcode/mol/rules/code-review-mr.md +1 -0
  1074. package/presets/zcode/mol/rules/feature-delivery-workflow.md +10 -10
  1075. package/presets/zcode/mol/rules/preset-layering.md +4 -4
  1076. package/presets/zcode/mol/rules/preset-pr-checklist.md +2 -1
  1077. package/presets/zcode/mol/rules/preset-twin-sync.md +12 -5
  1078. package/presets/zcode/mol/rules/reference-features.md +0 -19
  1079. package/presets/zcode/next/REPO_AGENTS.md +8 -0
  1080. package/presets/zcode/next/adapter-map.json +1 -1
  1081. package/presets/zcode/next/agents/build-verifier.md +6 -1
  1082. package/presets/zcode/next/agents/code-reviewer.md +1 -1
  1083. package/presets/zcode/next/agents/debugger.md +1 -1
  1084. package/presets/zcode/next/agents/feature-developer.md +1 -1
  1085. package/presets/zcode/next/agents/task-analyst.md +1 -1
  1086. package/presets/zcode/next/hooks/chain-team-phases.sh +313 -26
  1087. package/presets/zcode/next/rules/README.md +3 -3
  1088. package/presets/zcode/next/rules/ai-local-overlay.md +2 -1
  1089. package/presets/zcode/next/rules/code-review-mr.md +1 -0
  1090. package/presets/zcode/next/rules/feature-delivery-workflow.md +13 -13
  1091. package/presets/zcode/next/rules/next-app-core.md +1 -1
  1092. package/presets/zcode/next/rules/preset-layering.md +4 -4
  1093. package/presets/zcode/next/rules/preset-pr-checklist.md +2 -1
  1094. package/presets/zcode/next/rules/preset-twin-sync.md +12 -5
  1095. package/presets/zcode/next/rules/reference-features.md +0 -19
  1096. package/presets/zcode/nuxt/REPO_AGENTS.md +8 -0
  1097. package/presets/zcode/nuxt/adapter-map.json +9 -1
  1098. package/presets/zcode/nuxt/agents/build-verifier.md +4 -1
  1099. package/presets/zcode/nuxt/agents/code-reviewer.md +1 -1
  1100. package/presets/zcode/nuxt/agents/debugger.md +1 -1
  1101. package/presets/zcode/nuxt/agents/feature-developer.md +1 -1
  1102. package/presets/zcode/nuxt/agents/task-analyst.md +1 -1
  1103. package/presets/zcode/nuxt/hooks/chain-team-phases.sh +313 -26
  1104. package/presets/zcode/nuxt/rules/README.md +3 -3
  1105. package/presets/zcode/nuxt/rules/ai-local-overlay.md +1 -1
  1106. package/presets/zcode/nuxt/rules/code-review-mr.md +1 -0
  1107. package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +9 -9
  1108. package/presets/zcode/nuxt/rules/preset-layering.md +4 -4
  1109. package/presets/zcode/nuxt/rules/preset-pr-checklist.md +2 -1
  1110. package/presets/zcode/nuxt/rules/preset-twin-sync.md +12 -5
  1111. package/presets/zcode/nuxt/rules/reference-features.md +1 -20
  1112. package/presets/zcode/nuxt/team/fixtures/feature-parallel.json +84 -0
  1113. package/presets/zcode/php-hexagonal/REPO_AGENTS.md +8 -0
  1114. package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
  1115. package/presets/zcode/php-hexagonal/agents/build-verifier.md +1 -1
  1116. package/presets/zcode/php-hexagonal/agents/code-reviewer.md +1 -1
  1117. package/presets/zcode/php-hexagonal/agents/debugger.md +1 -1
  1118. package/presets/zcode/php-hexagonal/agents/feature-developer.md +1 -1
  1119. package/presets/zcode/php-hexagonal/agents/task-analyst.md +1 -1
  1120. package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +313 -26
  1121. package/presets/zcode/php-hexagonal/rules/README.md +3 -3
  1122. package/presets/zcode/php-hexagonal/rules/ai-local-overlay.md +1 -1
  1123. package/presets/zcode/php-hexagonal/rules/code-review-mr.md +1 -0
  1124. package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
  1125. package/presets/zcode/php-hexagonal/rules/preset-layering.md +4 -4
  1126. package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +2 -1
  1127. package/presets/zcode/php-hexagonal/rules/preset-twin-sync.md +12 -5
  1128. package/presets/zcode/php-hexagonal/rules/reference-features.md +25 -0
  1129. package/presets/zcode/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
  1130. package/presets/zcode/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
  1131. package/presets/zcode/php-laravel/REPO_AGENTS.md +8 -0
  1132. package/presets/zcode/php-laravel/adapter-map.json +9 -1
  1133. package/presets/zcode/php-laravel/agents/build-verifier.md +1 -1
  1134. package/presets/zcode/php-laravel/agents/code-reviewer.md +1 -1
  1135. package/presets/zcode/php-laravel/agents/debugger.md +1 -1
  1136. package/presets/zcode/php-laravel/agents/feature-developer.md +1 -1
  1137. package/presets/zcode/php-laravel/agents/task-analyst.md +1 -1
  1138. package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +313 -26
  1139. package/presets/zcode/php-laravel/rules/README.md +3 -3
  1140. package/presets/zcode/php-laravel/rules/ai-local-overlay.md +1 -1
  1141. package/presets/zcode/php-laravel/rules/code-review-mr.md +1 -0
  1142. package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +54 -1
  1143. package/presets/zcode/php-laravel/rules/preset-layering.md +4 -4
  1144. package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +2 -1
  1145. package/presets/zcode/php-laravel/rules/preset-twin-sync.md +12 -5
  1146. package/presets/zcode/php-laravel/rules/reference-features.md +27 -0
  1147. package/presets/zcode/php-laravel/skills/feature-delivery/SKILL.md +2 -2
  1148. package/presets/zcode/php-laravel/team/fixtures/feature-parallel.json +84 -0
  1149. package/presets/zcode/svelte/REPO_AGENTS.md +8 -0
  1150. package/presets/zcode/svelte/adapter-map.json +9 -1
  1151. package/presets/zcode/svelte/agents/build-verifier.md +4 -1
  1152. package/presets/zcode/svelte/agents/code-reviewer.md +1 -1
  1153. package/presets/zcode/svelte/agents/debugger.md +1 -1
  1154. package/presets/zcode/svelte/agents/feature-developer.md +1 -1
  1155. package/presets/zcode/svelte/agents/task-analyst.md +1 -1
  1156. package/presets/zcode/svelte/hooks/chain-team-phases.sh +313 -26
  1157. package/presets/zcode/svelte/rules/README.md +3 -3
  1158. package/presets/zcode/svelte/rules/ai-local-overlay.md +1 -1
  1159. package/presets/zcode/svelte/rules/code-review-mr.md +1 -0
  1160. package/presets/zcode/svelte/rules/feature-delivery-workflow.md +7 -7
  1161. package/presets/zcode/svelte/rules/preset-layering.md +4 -4
  1162. package/presets/zcode/svelte/rules/preset-pr-checklist.md +2 -1
  1163. package/presets/zcode/svelte/rules/preset-twin-sync.md +12 -5
  1164. package/presets/zcode/svelte/rules/reference-features.md +1 -20
  1165. package/presets/zcode/svelte/team/fixtures/feature-parallel.json +84 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,91 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.78
4
+
5
+ ### `engine` — a follow-up must name a different task
6
+
7
+ - **Validator.** `validateLedgerRows(rows, { taskSlug })` refuses a `followUp` equal to the filing task's own slug: the self-reference resolves to a real directory while closing nothing. The message names the row, the slug and the repair — create the follow-up task, or close the row as `fixed`/`rejected`. `team-db.mjs ledger-check --slug` passes `taskSlug`, and the chain hook still relays `failures[].reason` verbatim, so the text keeps one source.
8
+ - **Fixtures.** `ledger-followup-self-reference-red` pins the red for a bare slug and for `blocked-on: <slug>`, and the green for a follow-up that names another real task; `yarn test:team-db:project` is 53 checks.
9
+
10
+ ### `engine` — a multi-hour attempt is a human-wait suspect, not agent time
11
+
12
+ - **Aggregator.** `aggregate-agent-task-metrics.mjs` flags every attempt longer than `LONG_ATTEMPT_MS` (3 h) in `longAttempts`, and each task report gains `longestAttemptMs` and `longAttemptCount`. The hint carries the reading rule: an attempt stays open while the owner answers and no `human_gate` event covers that wait, so `activeMs` is an upper bound. `gateWaitMs` and `outOfBandMs` stay separate and are never added to attempt duration.
13
+ - **Fixture.** `a multi-hour attempt is flagged, not counted as agent time` pins the threshold, the per-task counters and the hint.
14
+
15
+ ### `engine` — the write-scope audit knows engine telemetry
16
+
17
+ - **Derived class.** `DERIVED_RULES` gains `engine-telemetry` for `.ai.local/signals.jsonl` and `.ai.local/rule-changes.jsonl` (and their `.lock` files): the self-learning loop writes them between steps, so no step's `writeScopes` can own them and an implementation step stops reporting them as `outOfScope`.
18
+ - **Fixture.** `test-write-scope.mjs` asserts the `derived: engine-telemetry` label and the new `derived: 6` count.
19
+
20
+ ### `preset` — a green gate set is not an AC verdict
21
+
22
+ - **Agent contract.** `build-verifier` (Cursor source plus the hand-maintained Claude twin) reads the AC **sentences**, not only the IDs: when the shipped behaviour diverges from an AC sentence the verdict is `FAIL` with that AC named as a blocker, however green every gate is, and "acceptable and tracked elsewhere" is a question for the gate, never a PASS.
23
+ - **Framing rule.** `task-framing` gains **Oracle on real data**: when the oracle is a shipped validator over existing data, the brief states its expected output on the real corpus — the counters, not only "it passes" — and the current predicate runs before the gate, so a semantics drift surfaces at intake rather than in review.
24
+
25
+ ### `preset` — the report-header grammar is stated where it is enforced
26
+
27
+ - **Prose.** `verification-before-completion` names the anchor: nothing follows the closing `)` on the `tree:` line. A clarification such as `(+511 dirty excluding .ai.local)` obeys "opens with these two lines" and still stalls the receipt, so every qualification belongs under `## Notes`.
28
+ - **Hook.** The stall message repeats the grammar, so the repair is readable from the receipt that failed; `gate-tree-clarification-red` pins a header that matches `HEAD` and the dirty count but carries a trailing clarification, and `gate-tree-missing-red` asserts the rule literal so no adapter can drop it again.
29
+
30
+ ## 0.2.77
31
+
32
+ ### `preset` + `engine` — verification evidence names its tree
33
+
34
+ - **Rule.** `verification-before-completion` gains three Gate clauses — name the tree, prove the gate can fail, re-run when the tree moved — plus the `validation-report.md` header grammar (`tree: <sha> (+N dirty)`, `run-at: <ISO>`) and the zero-input clause. `agent-artifact-contracts.md` names that header in the `validation-report.md` budget row. The rule stays requestable.
35
+ - **Hook.** Inside `validateCompletedArtifact`, a `build-verifier` receipt is rejected when `validation-report.md` is missing or headerless, when the named `HEAD` or dirty count no longer matches the worktree (the existing `gitSnapshot()`), or when the report carries an unallowlisted `checked: 0` row. Each message names the repair: re-run the named gate on the current tree, then `/task-continue <slug>`. The allowlist is data — `zeroInputAllowlist[{gate, reason, owner}]` in `.ai.local/pipeline-gates.json` — and an entry without a reason allowlists nothing.
36
+ - **Audit.** `check-verification.mjs` joins `ENGINE_SCRIPTS` (thirty entries, twenty-nine published): read-only buckets for missing tree, stale tree, and zero-input, with tasks last touched before `2026-11-01` reported as `legacy`. A scan over zero tasks prints `checked: 0` and exits 1 unless `check-verification` is allowlisted.
37
+ - **Fixtures.** `yarn test:hooks` gains ten cases: `gate-tree-missing-red`, `gate-tree-fresh-green`, `gate-tree-stale-red`, `gate-zero-input-red`, `gate-zero-input-allowlisted`, and `audit-{missing-tree,stale-tree,zero-input,legacy-precutoff,empty-root-red}`.
38
+
39
+ ### `preset` — one stack means one document on every platform
40
+
41
+ - **Entry text restored on all five platforms.** Every `REPO_AGENTS.md` regains the `## ZCode host` block (`node .zcode/hooks/list-ai-local.mjs`) and the `ai-local-overlay` closing sentence — additive only, 753 B and 227 B — and the 44 derived copies carry it byte for byte. `check-zcode-local-overlay`, `check-opencode-local-overlay` and `check-mavis-local-overlay` go from 22 / 11 / 11 findings to zero.
42
+ - **Canonical stem shape.** `feature-delivery-workflow` and `reference-features` now read `marker → core body verbatim → ## Stack notes → ### only` on all 11 stacks (22 Cursor sources, 88 derived): the stack-specific H1 gives way to the core H1, a duplicated core body after `## Stack notes` is dropped, and stack prose is `###`. `reference-features` in five stacks shipped its whole body twice; that copy is gone, and a duplicate heading now fails `check-shared-core-drift.sh`.
43
+ - **`paused` is documented where the hook emits it.** Cursor's `agent-team-orchestrator` carries the state-table row and the pause contract its `chain-team-phases.sh` already writes, and `embed-stems.json` `requiredSentences` holds the three fragments so no adapter can drop them again.
44
+ - **The Claude twin is complete.** 26 `rules-library` seeds and 10 `team/fixtures` files that Claude never received; `## Strict implementation rail` back on `task-router.md`; 199 agents and skills rebuilt from their Cursor bodies (`dependency graph`, `Epics / stages`, `Plan revision`, the three Playwright agents); 132 `*.mdc` references replaced by the installed `.md` name; `readonly:` removed from 135 files; `disallowedTools: Edit, MultiEdit, NotebookEdit` on the 147 agents whose OpenCode counterpart denies edits.
45
+ - **Fixtures reach every stack.** `feature-parallel.json` ships in all 11 stacks on all five platforms, so no router points at a file its stack does not carry.
46
+ - **One gate-timing sentence.** The always-on `next-app-core`, `claude/next/CLAUDE.md` and `post-change-lint` name the same moment (closure, one `build-verifier` run); the "required after code edits" claim is gone.
47
+ - **Claims match the tree.** ZCode docs describe only what ships (`## ZCode host`, eleven stacks), `guard-shell-command.mjs` replaces the `.sh` name, `mcp-ts`'s roster lists the two shipped gate agents, and the three command inventories list seven commands, not four.
48
+
49
+ ### `preset` — a gate for the defect class that slipped through
50
+
51
+ - **`check-semantic-parity.mjs` (new).** Four assertions over 11 stacks × 2 stems × 5 platforms (198 files, 0.1 s): **SP1** the derived section set is `headings(core) ∪ headings(Cursor tail)` with the core body verbatim and the marker naming its core; **SP2** every entry file carries the literals its platform's overlay checker asserts (Claude takes the union, it ships the same text); **SP3** a derived twin carries no `.mdc` token; **SP4** a scoped stem repeats no `##` and puts no `##` after `## Stack notes`. Exit 0 / 1 / 2, and a vacuous run — zero stacks, an empty scan, a stack missing on one platform, an unclassifiable core — is a failure, never a pass.
52
+ - **Required sections are derived, never tabulated.** The set comes from `_shared/core/<stem>` and the Cursor tail at run time, so a new core section fails every stack until the stack is updated and no checker edit is needed to learn about it.
53
+ - **Scoped on purpose.** SP3/SP4 cover the two architecture stems, not every derived file: `preset-layering`, `preset-pr-checklist` and the Claude `rules/README.md` mapping tables name the Cursor format on purpose. Stacks are enumerated from `presets/cursor`, never by globbing a platform directory, so `presets/opencode/plugins/` can never be read as a stack.
54
+ - **Wired twice.** `check-preset-fast.sh` runs it after `generated-drift`; `check-preset-structure.sh` runs it beside `shared-core-drift`, so `preset-structure.yml` and `release:gate` inherit it.
55
+ - **The `.mdc` leak is closed.** `_shared/core/architecture/feature-delivery-workflow.md` no longer names the Cursor extension, which is what shipped it into 44 derived files; the line now says "each rule name in the format that platform ships".
56
+
57
+ ### `engine` — the harness refuses the situations it used to record
58
+
59
+ - **`check:frontmatter` sees the dogfood installs.** `--root <dir>` (repeatable) scans another tree with the same heuristic; a root that does not exist is a usage error, never a silent pass. The six `dogfood/mcp-ts-sample` rule files with unquoted `*` globs are the first catch.
60
+ - **A write-scope baseline that attributes nothing is refused.** `--save-baseline` exits non-zero on 0 paths and on a baseline that would record every tracked path; `--allow-empty` is the explicit opt-in. A baseline already saved in that state now reads as `empty-baseline` and skips instead of charging the whole change-set to the step. Seven empty and two whole-tree baselines were live at HEAD.
61
+ - **Task intake is an invariant, not a convention.** `check-task-intake.mjs` fails a folder that carries a `pipeline.json` without its `prompt.md` (or a recorded exemption), counts the 18 pre-cutoff folders as legacy, and names the cutoff (`2026-11-18`) so the count can only shrink. The folder that shipped `0.2.76` held a bare `prompt.md`.
62
+ - **The Claude hand-maintained band is compared.** `check-generated-drift.mjs` diffs the `ai-local/**` + `team/**` file set against the Cursor SoT in both directions — the band where the missing seeds and the missing `feature-l2-lite.json` lived with no gate over them.
63
+ - **Adapter-map digest scope is stated.** `README.md` is excluded from the `sourceRevision` witness on purpose; whole-tree comparison already catches a README that fails to propagate, and extending the digest would rewrite 33 revisions for nothing.
64
+
65
+ ### `release` — the series is continuous and 0.2.76's leftover change is recorded
66
+
67
+ - **The unreleased window is a failure.** `check-release-consistency.mjs` fails when `packages/ai-rules/{src,scripts,docs,presets}` changed after the commit that introduced the newest section. `f14c431a` is exactly that window: four fixture suites added to `check-preset-structure.sh` plus a `PRESET-CONTRIBUTION.md` row, with no version bump and no CHANGELOG line. They are recorded here.
68
+ - **`0.2.69` and `0.2.75` are back.** The section `bf0d791d` overwrote on its way to `0.2.76`, and the `## Unreleased` block of tag `v0.2.69`, are restored verbatim; `seriesGaps` fails on a missing patch above `0.2.64`, where the history is continuous.
69
+
70
+ ### `engine` — the release gate's five fixtures meet the shipped contract
71
+
72
+ The `0.2.77` release gate ran phase 1 on `ddb234bf` and found five sub-checks red, none of them a product defect; they are closed here, in this commit, so the same commit that edits `packages/ai-rules/scripts/**` keeps the release window closed.
73
+
74
+ - **`cli-update`.** The W-5 mixed-source case relied on Claude not shipping `ai-local/rules-library`; now that both presets ship the 26 seeds, the case asserts the single recorded owner the tree actually has and pins the mixed-source record explicitly. The contract under test — one drift line counts both owners — is unchanged, and the assertion count grew.
75
+ - **`mcp-pack-tarball`.** `PACKED_BASELINE_BYTES` moves 4,827,609 → **5,310,390** B, the measured `0.2.77` tree, because the old anchor sat 116,027 B below its own measuring commit (`b2d670ae` packs 4,943,636 B) and the check had been red since it landed. The +49,152 B ratchet is unchanged, `docs/**` stays shipped, and the file header now records the re-measure recipe. Human gate, 2026-11-19.
76
+ - **`platform-tests`.** The `team-db serve` fixture drove `--open`, removed with the dashboard in `d3c0fd4e`; it now pins the shipped contract instead — `serve --open` is a usage error (exit 3, no listen line) and `serve` still answers `/openapi.json`.
77
+ - **`list-ai-local`.** The chain-block slice ends at the global `hashes:` trailer (added in `9ce788b4`) instead of running to EOF, with an explicit guard for a missing trailer and three assertions pinning the dedupe.
78
+ - **`hook-body-parity fixtures`.** `makeTree()` copies the whole `presets/_shared/hooks/` directory and stages the Cursor `compact-shell-output.mjs`, so a shared hook added later can no longer turn the clean-tree case into an `ENOENT`.
79
+ - **`test-write-scope` teardown.** The seven temp-repo teardowns retry `ENOTEMPTY`/`EBUSY` (`maxRetries: 5`); no assertion changed, so a real verdict failure still surfaces as itself.
80
+
81
+ ### `preset` + `engine` — three hook facts stop being reconstructed by hand
82
+
83
+ - **Bootstrap hands over the advance payload.** `bootstrap` now prints the `followup_message` the advance path builds (`handoffForAgent`): the agent, the step-owned output id, the `attemptId` it just armed, and the artifact-input line. A parallel first step uses the advance path's `handoffForParallelStep` instead, so the payload names every agent it armed and every owned id. A step that declares no resolvable agent — including `agent: []` — is refused (`ok: false` + reason, nothing armed) instead of handing over an `undefined` id. One ownership clause in the template, two call sites.
84
+ - **`manifest.mjs upsert` refuses a foreign id.** When `pipeline.json`'s active step declares `artifactOutputId` / `artifactOutputIds[producer]`, an `--id` it does not name exits 2 with the expected id and the repair; `--attempt` equal to that step's active attempt is the deliberate re-bind. The scalar `artifactOutputId` binds only to the step's own agent(s), and a bound attempt resolves its own step — so the second step of a parallel wave writes its own id while the wave's first unit still cannot. An attempt armed for another agent does not authorise the producer. A missing `pipeline.json`, a step that declares no id, and a legacy producer keep the earlier behaviour.
85
+ - **The verification snapshot refreshes on every verifier receipt.** The `existsSync` early return is gone: `snapshot`, the `validation-report.md` hash and `gate.checkedAt` follow the tree the commands ran on, and the recorded `commands[]` are preserved. Report lookup is the gate's live-then-archived one, so a post-close refresh records the archived body instead of erasing the hash. The freshness warn compares the report's `tree:` header — the same `REPORT_TREE_RE` the report gate parses — so a retried verifier no longer warns `verification_stale` about the report it just wrote.
86
+ - **The write-scope baseline is saved at activation.** `activateAttempts` runs `check-write-scope --slug <slug> --step <id> --save-baseline --paths <the step's writeScopes>` when the step declares `writeScopes`, so the audit no longer skips every step as `no-baseline`; the declared surface is seeded into the baseline, so a step armed on a clean tree still attributes its own writes instead of relying on `--allow-empty` (which the hook no longer passes). The save is create-once (`wx`, a second save keeps the first file) and a failure is a stderr note, never a failed receipt. A step with no `writeScopes` keeps the shipped `no-write-scopes` skip.
87
+ - **Fixtures.** `yarn test:hooks` gains nine cases — `bootstrap-carries-output-id`, `bootstrap-carries-parallel-payload`, `bootstrap-refuses-no-id`, `manifest-rejects-foreign-id`, `manifest-wave-owns-each-step-id`, `verification-refresh-on-retry`, `verification-reads-archived-report`, `write-scope-baseline-at-activation`, `write-scope-clean-activation-baseline` — all red on the previous tree. No new always-on rule; `package.json` unchanged.
88
+
3
89
  ## 0.2.76
4
90
 
5
91
  ### `preset` — guard accounting reads every ledger generation
@@ -65,6 +151,14 @@
65
151
  - **Claude rules block.** `fix-generated.mjs` runs `inject-claude-agent-rules-block.mjs`, the repair arm for `check-claude-agent-blocks.mjs`, because the Claude agents are hand-maintained.
66
152
  - **Structure fixtures.** `check-preset-structure.sh` runs `test-preset-token-budget-baseline.mjs` and `test-close-agent-task-human-gate.mjs`.
67
153
 
154
+ ## 0.2.75
155
+
156
+ ### `team` — the write-scope audit skips what it cannot attribute
157
+
158
+ - **Skip, not fail.** `check-write-scope.mjs` reconciles one step's paths against that step's `writeScopes`. With no step baseline it audited the whole uncommitted change-set and hard-failed an implementation step on paths that belong to earlier steps or to another task in the same worktree — the live `agent-action-telemetry` verdict was `baseline: null` with 7 foreign paths. It now skips with `skipReason: no-baseline` (exit `3`, the same "skip, not a failure" contract a legacy pipeline already had) and prints the labelled change-set as suspects, so no evidence is lost and no step fails on writes it cannot own. An empty change-set still reconciles to a pass.
159
+ - **Escape hatches keep their verdict.** `--paths` (the caller's authoritative list) and `--base <ref>` (a committed change-set) are explicit requests and still hard-fail an out-of-scope implementation write.
160
+ - **Orchestration.** `build-verifier` and `code-reviewer` read exit `3` as a skip, and a `no-baseline` skip as an orchestration defect: the orchestrator saves the step baseline (`--step <id> --save-baseline`) before the step writes and re-runs the audit.
161
+
68
162
  ## 0.2.74
69
163
 
70
164
  ### `team` — per-task agent action telemetry
@@ -180,6 +274,8 @@
180
274
  - **Commands.** The Cursor source and Claude twin, plus the generated Mavis, OpenCode, and ZCode `next` trees, ship `ui-start` and `ui-stop`. `ui-start` stops a running `team-tasks-ui` compose stack, runs `team-db.mjs migrate-tasks`, then rebuilds and starts it; `ui-stop` takes the project down and stops only the API `/ui-start` started.
181
275
  - **Scope.** The commands target repositories that contain `apps/team-tasks-ui`; both stop with a clear message when `apps/team-tasks-ui/scripts/stack.mjs` is absent.
182
276
 
277
+ ## 0.2.69
278
+
183
279
  ### `resume_blocked` — the chain hook re-arms a blocked step
184
280
 
185
281
  - **Action.** `chain-team-phases.sh` accepts `{"action":"resume_blocked"}` on a `state: blocked` step: it arms attempt N+1 (`<runId>:step-N:<agent>:attempt-<M+1>`, one `attempt_started` in `metrics.json`), sets `state: in_progress` / `phase: executing`, keeps `pipelineIndex` / `currentAgent`, and hands off to the blocked producer. The gate stays receipt-driven: the retried `completed` receipt opens it (`awaiting_approval`) when the step has `after:<agent>` in `humanGates`, and advances the chain otherwise.
package/README.md CHANGED
@@ -25,7 +25,7 @@ Run `init` from the **app root** (`--cwd` if needed). Default `--preset` is `nex
25
25
  | Root agents | `REPO_AGENTS.md` → `AGENTS.md` (same file on all five; ZCode loads it natively) | | | | |
26
26
  | `/task` artifacts | **`.ai.local/team/`** (shared; templates refreshed; `tasks/<slug>/` never overwritten) | | | |
27
27
  | Template drift | **`.ai.local/.template-base.json`** (shared; one record per tree of files that hold a shipped template byte; `update` prints one drift line, `update --merge-ai-local` fast-forwards a file only when its recorded base still matches and reports the rest) | | | |
28
- | Self-learning engine | **`.ai.local/scripts/`** (shared; twenty-eight published scripts — the six self-learning engine modules, `manifest.mjs`, `dump-output.mjs`, `run-compact.mjs`, the eight `team-db*.mjs` modules, `action-signals.mjs`, `actions-report.mjs`, `check-write-scope.mjs`, `aggregate-agent-task-metrics.mjs`, `record-usage.mjs`, `verification.mjs`, `incidents.mjs`, `processes.mjs`, `process-lease.mjs`, `rr-scheduler-start.mjs`, and `tracker-planned-drain.mjs`; existing files never overwritten. The repository-only `upstream-research.mjs` is not published) | | | |
28
+ | Self-learning engine | **`.ai.local/scripts/`** (shared; twenty-nine published scripts — the six self-learning engine modules, `manifest.mjs`, `dump-output.mjs`, `run-compact.mjs`, the eight `team-db*.mjs` modules, `action-signals.mjs`, `actions-report.mjs`, `check-write-scope.mjs`, `aggregate-agent-task-metrics.mjs`, `record-usage.mjs`, `verification.mjs`, `check-verification.mjs`, `incidents.mjs`, `processes.mjs`, `process-lease.mjs`, `rr-scheduler-start.mjs`, and `tracker-planned-drain.mjs`; existing files never overwritten. The repository-only `upstream-research.mjs` is not published) | | | |
29
29
  | Specs seed | `docs/specs/` copied only if the directory is **absent** | | | |
30
30
 
31
31
  OpenCode also ships **`.opencode/plugins/task-status/`**, a TUI sidebar for the active `/task` run (slug, state, elapsed time, step, remaining-time estimate, soft-stop). OpenCode auto-loads it; it needs no `opencode.json` entry, is refreshed by `update`, and is a viewer only — the chain hook stays manual.
@@ -86,6 +86,9 @@ const ENGINE_SCRIPTS = [
86
86
  // Persisted verification evidence: command + exit + capped log tail bound to a
87
87
  // git snapshot, with a freshness check closure can read.
88
88
  'verification.mjs',
89
+ // Read-only audit of the reports `verification.mjs` sits beside: which ones
90
+ // name no tree, a stale tree, or a zero-input gate row. Never writes.
91
+ 'check-verification.mjs',
89
92
  // Append-only incident registry: recurrence threshold, promotion gate, advice.
90
93
  'incidents.mjs',
91
94
  ];
@@ -21,12 +21,12 @@ Put a `.ai.local/` directory in your repo. Write rules as plain markdown. The `a
21
21
 
22
22
  `init` and `update` write `.ai.local/.template-base.json` — the digest of every `.ai.local/` file that holds a shipped template byte — so `update` can tell a file you edited from a file the preset moved. Your own bytes never become a base. See [Template drift](#template-drift).
23
23
 
24
- No IDE config, no `@include`, no codegen. Same files work in Cursor, Claude Code, Mavis, and OpenCode.
24
+ No IDE config, no `@include`, no codegen. Same files work in Cursor, Claude Code, Mavis, OpenCode, and ZCode.
25
25
 
26
26
  ## How it works
27
27
 
28
- 1. `init cursor|claude|mavis|opencode --preset <stack>` (or `init multi`) installs `ai-local-overlay`. Cursor: `alwaysApply: true`. Claude: session-start (no `paths:`). Mavis/OpenCode: listed as a root-entry rule in `AGENTS.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md`.
29
- 2. On every turn the rule runs `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, or `.opencode`) with the paths that step will touch. The script prints `rules/*.md` and `conventions.md` for the ancestor chain. Do **not** load `team/**` or `rules-library/**` as rules. `team/` lives only at the **repo root** `.ai.local/team/`, not in nested package overlays.
28
+ 1. `init cursor|claude|mavis|opencode|zcode --preset <stack>` (or `init multi`) installs `ai-local-overlay`. Cursor: `alwaysApply: true`. Claude: session-start (no `paths:`). Mavis/OpenCode: listed as a root-entry rule in `AGENTS.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md`. ZCode reads the root `AGENTS.md`.
29
+ 2. On every turn the rule runs `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, `.opencode`, or `.zcode`, current host first) with the paths that step will touch. The script prints `rules/*.md` and `conventions.md` for the ancestor chain. Do **not** load `team/**` or `rules-library/**` as rules. `team/` lives only at the **repo root** `.ai.local/team/`, not in nested package overlays.
30
30
  3. If a local rule conflicts with a preset rule, **the local rule wins**.
31
31
  4. **Deeper wins on one chain.** The root `.ai.local` applies to every path. A nested `.ai.local` applies only under its directory. The same rule file name on that chain: the deeper file wins (`shadowed` is not read). A sibling package does not inherit the other package's overlay.
32
32
  5. When the path set grows, run the script again with the new paths. If `.ai.local/team/tasks/<slug>/` already exists, pass `--record <slug>`. The script writes `overlay-scope.json` there and appends one `.memlog.md` `event:` per newly entered overlay directory. Read files listed under `new:` before editing. Cursor and Claude also print a prefix index at session start; that index is not the apply set.
@@ -297,7 +297,7 @@ A nested overlay does not contain `team/`. If the same rule name appears on one
297
297
 
298
298
  ## Limitations
299
299
 
300
- - Cursor, Claude, Mavis, and OpenCode do **not** natively read `.ai.local/`. `list-ai-local.mjs` prints the chain; the model still reads the listed files. Cursor and Claude inject the prefix index once per session. Mavis and OpenCode have no session hook, so the rule runs the same script.
300
+ - Cursor, Claude, Mavis, OpenCode, and ZCode do **not** natively read `.ai.local/`. `list-ai-local.mjs` prints the chain; the model still reads the listed files. Cursor and Claude inject the prefix index once per session. Mavis, OpenCode, and ZCode have no session hook, so the rule runs the same script.
301
301
  - A file added under an overlay the task has already entered is picked up the next time the script runs with a path on that chain. A brand-new `.ai.local` directory is picked up the same way; it does not wait for a new session.
302
302
  - "Priority" is **contextual**, not enforced. If the model already internalized a preset rule, the local rule may not fully override it.
303
303
  - Local rules consume your context window. Keep them tight.
@@ -19,13 +19,13 @@ Every preset artifact belongs to one of these layers. Do not mix semantics acros
19
19
  | Layer | Path | What belongs here |
20
20
  |-------|------|-------------------|
21
21
  | **Core** | `presets/_shared/core/**` | Stack-agnostic prose and checklists. No Cursor/Claude frontmatter. No stack paths (`app/src/**`, `Features/**`, Playwright, `xcodebuild`). |
22
- | **Stack** | `presets/{cursor\|claude}/<stack>/` | Domain rules, stack always-on set, stack tooling, stack examples in a delimited `## Stack notes` section. |
22
+ | **Stack** | `presets/{cursor\|claude\|mavis\|opencode\|zcode}/<stack>/` | Domain rules, stack always-on set, stack tooling, stack examples in a delimited `## Stack notes` section. |
23
23
  | **Platform** | Same stack tree | Adapter packaging: Cursor `.mdc` (`alwaysApply` / `globs`) vs Claude `.md` (`paths:`). Platform-only files (`BUGBOT.md`, `AGENTS.md`, `CLAUDE.md`, `hooks.json`). |
24
24
 
25
25
  ```text
26
26
  Core (_shared/core) → shared principles
27
27
  ↓ embed / copy + marker
28
- Stack (cursor|claude/<stack>) → domain + stack deltas
28
+ Stack (cursor/<stack>, then derived platforms) → domain + stack deltas
29
29
  ↓ frontmatter / layout
30
30
  Platform adapter → .mdc | .md + platform-only artifacts
31
31
  ```
@@ -34,7 +34,7 @@ Platform adapter → .mdc | .md + platform-only artifacts
34
34
 
35
35
  - Applies to all stacks with only example differences → **core** + stack adapters.
36
36
  - Only one installable stack (`next` / `nuxt` / `svelte` / `mol` / `ios-swift` / `android-kotlin` / `go` / `java` / `mcp-ts` / `php-hexagonal` / `php-laravel`) → **stack-specific** (never in `_shared`).
37
- - Only Cursor or only Claude file shape → **platform** (do not duplicate semantics in the other platform).
37
+ - Only one platform's file shape → **platform** (do not duplicate semantics on the other platforms).
38
38
 
39
39
  Meta-rules for **preset authors** live in `core/meta/` and are packaged into each stack with globs limited to `packages/ai-rules/presets/**` (never `alwaysApply` / session-start in consumer installs).
40
40
 
@@ -46,7 +46,8 @@ Meta-rules for **preset authors** live in `core/meta/` and are packaged into eac
46
46
  |---------|-----|-------|
47
47
  | Preset content | `packages/ai-rules/presets/**` | **Not** repo root `.cursor/` — dogfood is a synced working copy. |
48
48
  | Per stack | `presets/cursor/<stack>/` | Cursor `.mdc` is SoT for that stack. |
49
- | Claude twins | `presets/claude/<stack>/` | Derived in the **same PR** as Cursor changes. |
49
+ | Claude twins | `presets/claude/<stack>/` | Rules derived in the **same PR**. Agents, commands, skills, `CLAUDE.md`, and `settings.json` stay hand-maintained twins. |
50
+ | Mavis, OpenCode, ZCode | `presets/<platform>/<stack>/` | Derived from Cursor in the **same PR** (`generate-mavis.mjs`, `generate-opencode.mjs`, `generate-zcode.mjs`). Never hand-edit. |
50
51
  | Shared core | `presets/_shared/core/**` | Edit core first; update all `<!-- shared-core: … -->` consumers in the same PR. |
51
52
  | Monorepo dogfood | Root `.cursor/` | Sync **from** packages on release / dogfood PR (typically `cursor/next` + author meta globs). |
52
53
 
@@ -74,7 +75,7 @@ Claude topic folders (all stacks): `architecture/`, `stack/`, `api-and-data/`, `
74
75
 
75
76
  1. Change prose under `presets/_shared/core/<area>/<stem>.md`.
76
77
  2. Find consumers: `rg 'shared-core: <path>' packages/ai-rules/presets`.
77
- 3. Update every adapter (**all adapters**: stacks × 2 platforms, when the rule is shared) in the **same PR** — see **sync modes** below.
78
+ 3. Update the Cursor adapter in the **same PR**, then regenerate Claude, Mavis, OpenCode, and ZCode — see **sync modes** below. Do not hand-edit a derived tree.
78
79
  4. Keep stack-specific content only in adapters (embed: `## Stack notes`; lineage: full stack body).
79
80
  5. Update stack `rules/README.md` core→stack mapping if stems or paths changed.
80
81
  6. Sync dogfood: `packages/ai-rules/scripts/sync-dogfood-cursor.sh` when maintaining this monorepo.
@@ -171,7 +172,7 @@ Summary:
171
172
  - [ ] Anti-hallucination: `check-anti-hallucination-coverage.mjs` passes. New skill families are registered in `SKILL_CONTRACT_CLASS` (`writer` loads the stack floor; `reader` loads the contract only). `code-review` is `writer`.
172
173
  - [ ] Structure gates: `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names; `yarn release:gate` before a release (the full `bash scripts/check-preset-structure.sh` composite)
173
174
  - [ ] Twin drift: after editing a Claude `commands/**` or `skills/**` file, `node scripts/check-preset-twin-drift.mjs` passes — mirror the change in the Cursor twin (delta and divergence unchanged) or record a deliberate divergence with `--update`. A deliberate divergence that **raises** an allowance needs `--update --widen`; dropping a baseline row needs `--update --prune`. A plain `--update` refuses both.
174
- - [ ] Generated trees regenerated (`generate-mavis.mjs` + `generate-opencode.mjs`) and CLI goldens recaptured (`capture-cli-golden.mjs`) after any preset-installed file changes
175
+ - [ ] Generated trees regenerated (`generate-claude.mjs` + `generate-mavis.mjs` + `generate-opencode.mjs` + `generate-zcode.mjs`, or `yarn fix:generated`) and CLI goldens recaptured (`capture-cli-golden.mjs`) after any preset-installed file changes
175
176
 
176
177
  Validation: `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) + the `preset-pr-checklist` rule; the full composite runs in `yarn release:gate`. CI workflows: `preset-structure.yml` (`check`, `hooks`, `ai-local-engine-tests`), `platform-smoke.yml` (3-OS smoke: `init multi`/`update`/`doctor`, platform suites, script gate), `rule-eval.yml` (opt-in next rule-eval), and `release-gate.yml` (manual `yarn release:gate` run + report artifact).
177
178
 
@@ -407,14 +408,17 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
407
408
 
408
409
  | Script / npm | Purpose |
409
410
  |--------------|---------|
410
- | `yarn fix:generated` | Regenerate every released generated platform and recapture the CLI goldens it owns (`cursor/next`, `claude/next`, and every Mavis/OpenCode stack). Run after changing Cursor SoT, before fail-only checks. Capture a non-`next` Cursor/Claude golden explicitly with `node scripts/capture-cli-golden.mjs <cursor|claude> <stack>`; never hand-edit one. Dogfood sync remains separate. |
411
+ | `yarn fix:generated` | Regenerate every released generated platform and recapture the CLI goldens it owns (`cursor/next`, `claude/next`, and every Mavis/OpenCode/ZCode stack). Claude's stack set is the Cursor stack directories, not the OpenCode contract. Run after changing Cursor SoT, before fail-only checks. Capture a non-`next` Cursor/Claude golden explicitly with `node scripts/capture-cli-golden.mjs <cursor|claude> <stack>`; never hand-edit one. Dogfood sync remains separate. |
411
412
  | `scripts/sync-dogfood-cursor.sh` | Copy `presets/cursor/<preset>/` → root `.cursor/` (`AI_RULES_DOGFOOD_PRESET`, default `next`). Also copies `REPO_AGENTS.md` → repo-root `AGENTS.md`. Seeds `.ai.local/team` templates; preserves `.ai.local/team/tasks/`. |
412
413
  | `scripts/check-shared-core-drift.sh` / `yarn check:shared-core-drift` | Check embed-mode adapters vs core; lists lineage consumers. **Always hard:** every `_shared/core/**` file must be classified `embed | lineage | internal` in `_lib/embed-stems.json` (unclassified → exit 1). Drift is soft by default; set `AI_RULES_DRIFT_FAIL=1` (or use `release:gate`) to exit non-zero. A stem listed in `requiredSentences` is checked in the core **and in every adapter of that stem, whatever the lineage class** — the body comparison cannot cover a platform whose adapter is not a byte-embed of the core (the Cursor family reorders, omits and adds sections), so the normative fragments of that stem are pinned separately. |
413
414
  | `scripts/check-preset-twin-map.sh` / `yarn check:preset-twin-map` | **FAIL** if Cursor `.mdc` missing from Claude mapping table, twin file missing, or orphan topic `.md` (excl. `**/README.md`). Stacks: `next`, `nuxt`, `svelte`, `mol`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. **Rules only** — commands and skills are guarded by `check-preset-twin-drift.mjs`. |
414
415
  | `scripts/check-preset-twin-drift.mjs` / `yarn check:preset-twin-drift` | **FAIL** when a hand-maintained Claude twin (`presets/claude/<stack>/{commands,skills}/**/*.md`) drifts further from its Cursor source than `scripts/_lib/claude-twin-drift-baseline.json` records, when the recorded divergence between the twins changes while the line delta does not, when a command/skill has no twin on the other side, when a new pair has no baseline row, when a baseline row has no live pair, or when the baseline itself is missing its hash rows. Full parity is not required: mirror a change in both twins (delta and divergence unchanged) or record a deliberate divergence with `--update`. Raising an allowance needs `--update --widen`; dropping a row needs `--update --prune`. Fixture `test-preset-twin-drift.mjs`. |
415
416
  | `scripts/check-claude-agent-parity.mjs` / `yarn check:claude-agent-parity` | **FAIL** when a hand-maintained Claude `agents/*.md` twin drifts from its Cursor source beyond `scripts/_lib/claude-agent-parity-baseline.json`: a grown or shrunk normalized line delta, a one-sided rewrite at an unchanged delta, a changed divergence hash, a missing twin, an unrecorded pair, an orphan row, or a pair in the static `parity` allowlist that is not at delta 0. Normalization masks packaging only — YAML frontmatter, the `## Rules to load (subagent context)` block, `<!-- shared-core -->` markers, the two anti-hallucination load lines, the `.cursor/` / `.claude/` root, and `.mdc` → `.md` — and reuses the twin-drift diff helpers. `--update` re-records deltas and hashes; `--widen` / `--prune` gate a raised allowance or a dropped row; `parity` is never edited by `--update`. Fixture `test-claude-agent-parity.mjs` proves one-sided Claude FAIL, one-sided Cursor FAIL and mirrored PASS. Wired into `check-preset-structure.sh` next to `claude-agent-blocks`. |
416
- | `scripts/check-generated-drift.mjs` / `yarn check:generated-drift` | Regenerates Mavis, OpenCode, ZCode and the mapped Claude trees into a temp root and byte-compares them with the committed artifacts, then asserts the `.ai.local/scripts/` engine mirror. Also compares the eleven **hand-maintained** Claude `team/README.md` twins with their Cursor sources by line multiset: `generateClaudeStack` writes `rules/**` and `hooks/**` only, so those READMEs are not generator output and a Cursor-source edit must be mirrored by hand; section order differs by design and is not compared. |
417
- | `scripts/check-consumer-links.mjs` / `yarn check:consumer-links` | **FAIL** when a generated Claude rule or agent carries a source-only `.cursor/` path or a `.mdc` reference whose stem resolves through `claude/<stack>/rules/README.md`; `README.md` and `preset-*.md` are exempt by class. `scripts/_lib/claude-consumer-link-allowlist.json` records the legitimate lines one hash at a time; a stale row fails, and a planted line in an allowlisted file still fails unless it matches the recorded hash. `--update` re-hashes recorded rows only and refuses to add one. Scans `next` by default; `--stack` opts another stack in. Fixture `test-consumer-links.mjs`. Wired into `check-preset-structure.sh` next to `generated-drift`. |
417
+ | `scripts/check-generated-drift.mjs` / `yarn check:generated-drift` | Regenerates Mavis, OpenCode, ZCode and the mapped Claude trees into a temp root and byte-compares them with the committed artifacts, then asserts the `.ai.local/scripts/` engine mirror. Also compares the eleven **hand-maintained** Claude `team/README.md` twins with their Cursor sources by line multiset: `generateClaudeStack` writes `rules/**` and `hooks/**` only, so those READMEs are not generator output and a Cursor-source edit must be mirrored by hand; The Claude **hand-maintained band** (`ai-local/**`, `team/**`) is not generator output, so its file *set* is diffed against the Cursor SoT in both directions — a seed library or team fixture that Claude never received fails here (contents stay per-platform). |
418
+ | `scripts/check-semantic-parity.mjs` / `yarn check:semantic-parity` | **FAIL** when one stack is not one document on every platform (AC-8). Four codes over 11 stacks × 2 architecture stems (`feature-delivery-workflow`, `reference-features`) × 5 platforms: **SP1** the derived section set is `headings(core) ∪ headings(Cursor tail)` with the core body verbatim and the marker naming its core; **SP2** every entry file carries the literals its platform's `check-*-local-overlay.mjs` asserts (Claude takes the union, it ships the same text); **SP3** a derived twin carries no `.mdc` token; **SP4** a scoped stem repeats no `##` and puts no `##` after `## Stack notes`. The required set is derived at run time — never tabulated — so a new core section fails every stack until the stack is updated. Exit 0/1/2; a vacuous run (no stacks, no files scanned, a stack missing on one platform, an unclassifiable core) exits 1 instead of passing. Scope is stated in the source: `preset-*` meta rules and the Claude mapping tables name the Cursor format on purpose, and stacks are enumerated from `presets/cursor`, never by globbing a platform directory. `scripts/fixtures/semantic-parity/control/` is the green control. |
419
+ | `scripts/check-task-intake.mjs` / `yarn check:intake` | **FAIL** when a task folder carries a `pipeline.json` without its `prompt.md` or a recorded exemption (`intakeExempt: true`, or a `.intake-exempt` file). Folders whose last recorded state predates `INTAKE_CUTOFF` (`2026-11-18`) are counted as legacy and printed, never failed, so the historical 18 can only shrink. An explicit `--tasks-root` that does not exist is a usage error; the default root may be absent (a fresh clone has no task store). Fixtures: `scripts/fixtures/task-intake/{clean,violation}/`. |
420
+ | `scripts/check-frontmatter.mjs` / `yarn check:frontmatter` | Heuristic YAML check (unquoted `: ` / ` #` scalars, `*`-leading list items, tab indentation) over `presets/**` by default and over any `--root <dir>` (repeatable) — the fast gate passes `--root <repo>/dogfood`, so a dogfood install cannot carry YAML that no gate sees (D-09). A root that does not exist is a usage error (exit 2), never a silent pass. |
421
+ | `scripts/check-consumer-links.mjs` / `yarn check:consumer-links` | **FAIL** when a generated Claude rule or agent carries a source-only `.cursor/` path or a `.mdc` reference whose stem resolves through `claude/<stack>/rules/README.md`; `README.md` and `preset-*.md` are exempt by class. `scripts/_lib/claude-consumer-link-allowlist.json` records the legitimate lines one hash at a time; a stale rowfails, and a planted line in an allowlisted file still fails unless it matches the recorded hash. `--update` re-hashes recorded rows only and refuses to add one. Scans `next` by default; `--stack` opts another stack in. Fixture `test-consumer-links.mjs`. Wired into `check-preset-structure.sh` next to `generated-drift`. |
418
422
  | `scripts/check-preset-token-budget.sh` / `yarn check:preset-token-budget` | **FAIL** if Cursor `alwaysApply: true` or Claude no-`paths:` (excl. README) count is outside **3–10**, `preset-*` always-on, or intended body sum > **4000**. Stacks include `nuxt`, `svelte`. CI also compares the baseline to the base revision (`--base`); a widening needs `--update --widen`. |
419
423
  | `scripts/check-preset-leakage.sh` / `yarn check:preset-leakage` | **FAIL** on forbidden stems in `hooks/**/*.sh` (recursive), wrong-stack agent filenames, or **positive** (non-negation) agent body mentions; **FAIL** if chain scripts are byte-identical across stacks. Explicit **negation** of forbidden stems in agent bodies is **suppressed** (INFO summary count only — not a merge blocker). Non-negation mentions in `build-verifier` → **WARN only**. |
420
424
  | `scripts/check-preset-prompt-persistence.sh` / `yarn check:preset-structure` | **FAIL** if the prompt-persistence contract (`prompt.md` + the append-only `prompt-log.md` ledger, both on the `routing` entry) is missing from any platform × stack command (`task.md` + `task-continue.md`), orchestrator, or intake body, from the **always-on** root `REPO_AGENTS.md` entry (check **E** — reachability without `/task`), or a core `agent-artifact-contracts` anchor (`## Prompt artifact` / `## Prompt log`) is gone; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-prompt-persistence-fixtures.mjs`. |
@@ -422,7 +426,7 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
422
426
  | `scripts/check-preset-language-policy.sh` / `yarn check:preset-structure` | **FAIL** if the native-language policy is absent: the core `_shared/core/agent-team/language-policy.md` tokens, the `language-policy` consumer + `<!-- shared-core -->` marker, the Cursor `globs:`/`alwaysApply: false` + Claude `paths:` shape, the `## Language` setting home (with a BCP-47 marker) in `ai-local/conventions.md`, the always-on anchors (`ai-local-overlay` + `<app-core>` + `REPO_AGENTS.md` must contain `native language` and `every user message`), or the `language:` persistence token in `commands/task.md`; **refuses vacuous PASS** when the iteration set is empty. Wired into `check-preset-structure.sh` next to `goal-contract` / `prompt-persistence`; fixture `test-preset-language-policy-fixtures.mjs`. |
423
427
  | `scripts/check-preset-self-review-contract.sh` / `yarn check:preset-structure` | **FAIL** if the producer-side self-review / context-hygiene contract is absent: the core `_shared/core/quality/self-review-and-context-hygiene.md` tokens (G0 non-vacuous guard), the `<!-- shared-core: quality/self-review-and-context-hygiene.md -->` marker on `task-analyst` / `feature-developer` / `build-verifier` (×10) and on `debugger` / `code-reviewer` where present (skip-if-absent → `mcp-ts`), the `Self-review` + `re-anchor` tokens on every orchestrator rule, `Self-review` in `team/README.md` + `commands/task.md`, and leakage-free core + docs; **refuses vacuous PASS** when the iteration set is empty. Also holds two prose contracts: the canonical self-learning-loop sentence must not be followed by unsanctioned prose (an allowlist of sanctioned clauses; the tail is bounded by the carrier's **section**, not by a blank line, so prose moved one paragraph down still fails — a tail in a later `## ` section is out of scope), and every retro carrier (command, skill, rule) must state `finding_category`. Wired into `check-preset-structure.sh` next to `goal-contract`; fixture `test-preset-self-review-contract-fixtures.mjs`. |
424
428
  | `scripts/check-anti-hallucination-coverage.mjs` | **FAIL** when the shared contract, a Cursor load-line embed, a writer stack floor, or a generated Rules-to-load stem is missing. Writer roles are `implementer`, `unit-test`, `e2e`, `qa`, and `reviewer` (`code-reviewer` loads `STACK_FLOOR_STEMS` plus the contract). `/task` and the orchestrator must not name a floor stem. Does not scan consumer `app/**` and does not call Context7. Fixture `test-anti-hallucination-coverage.mjs` deletes `anti-hallucination-contract` from `next.reviewer` in memory and expects FAIL mentioning `next` and `reviewer`. Wired into `check-preset-structure.sh` immediately after `check-claude-agent-blocks.mjs`. |
425
- | `presets/_shared/ai-local/scripts/check-write-scope.mjs` | Read-only post-step audit: compares the actual changed paths with the current `pipeline.json` step's `writeScopes` and labels each path `declared`, `derived` (task folder, engine mirror, generated platform tree/golden/hook, dogfood tree, adapter map), or `out-of-scope`, with the source named. Shipped to consumers as `.ai.local/scripts/check-write-scope.mjs` (`ENGINE_SCRIPTS`). `--slug <slug> [--step <id>] [--base <ref>] [--root <project>] [--paths a,b] [--save-baseline] [--json]`. Baseline resolution: `--paths`, then `--base <ref>`, then the step baseline written by `--step <id> --save-baseline` (every dirty path with its content hash, so an earlier step's path is not attributed to this one and an already-dirty path the step edits still is), then `HEAD` (whole uncommitted change-set, reported with a notice). Exit `1` for an out-of-scope path on an implementation step, `0` for a reviewer/verifier step (advisory), `2` on a usage/config error, `3` (SKIP) when the pipeline predates step ids or `writeScopes` and is therefore not auditable. Fixture `test-write-scope.mjs`; wired into the build-verifier and code-reviewer prompts, never a hook. |
429
+ | `presets/_shared/ai-local/scripts/check-write-scope.mjs` | Read-only post-step audit: compares the actual changed paths with the current `pipeline.json` step's `writeScopes` and labels each path `declared`, `derived` (task folder, engine mirror, generated platform tree/golden/hook, dogfood tree, adapter map), or `out-of-scope`, with the source named. Shipped to consumers as `.ai.local/scripts/check-write-scope.mjs` (`ENGINE_SCRIPTS`). `--slug <slug> [--step <id>] [--base <ref>] [--root <project>] [--paths a,b] [--save-baseline] [--json]`. Baseline resolution: `--paths`, then `--base <ref>`, then the step baseline written by `--step <id> --save-baseline` (every dirty path with its content hash, plus the files its declared `writeScopes` cover — passed as `--paths` — so a step armed on a clean tree still owns its surface), then `HEAD` (whole uncommitted change-set, reported with a notice). Exit `1` for an out-of-scope path on an implementation step, `0` for a reviewer/verifier step (advisory), `2` on a usage/config error, `3` (SKIP) when the pipeline predates step ids or `writeScopes` and is therefore not auditable. Fixture `test-write-scope.mjs`; wired into the build-verifier and code-reviewer prompts, never a hook. |
426
430
  | `scripts/check-preset-structure.sh` / `yarn check:preset-structure` | Low-level orchestrator: twin-map + token-budget + leakage + shared-core drift + anti-hallucination coverage + rule-eval (**all hard**; drift via `AI_RULES_DRIFT_FAIL=1`). Invoked by `yarn release:gate` and CI; not a feature-task gate. |
427
431
  | `scripts/check-product-specs.sh` / `yarn check:product-specs` | Opt-in consumer tree check: frontmatter v1 keys + required body headings on `docs/specs/**` (bash; does **not** run JSON Schema). Ships in the npm package `files` (`scripts/`). **WARN** by default; **`--strict`** exits non-zero. |
428
432
  | `yarn check:product-specs:dogfood` | Same script against monorepo `dogfood/mcp-ts-sample`. Soft WARN inside the composite + CI step (`continue-on-error`); the release gate runs `--strict`; not a hard consumer CI gate. |
@@ -431,7 +435,7 @@ Load these when editing files under `packages/ai-rules/presets/**`, `.cursor/**`
431
435
  | `scripts/check-team-db-contract.mjs` / `yarn check:team-db-contract` | **FAIL** when the checked-in OpenAPI 3.1 document (`docs/openapi/team-db.v1.json`) drifts from `team-db-openapi.mjs`, fails the vendored 3.1 meta-schema (sha256-pinned), loses an `operationId`, diverges from `ROUTE_TABLE` in either direction, carries an invalid example, or leaves a `$ref` unresolved. `--write` is the only writer; no network at gate time. Wired into `check-preset-structure.sh`. |
432
436
  | `presets/_shared/hooks/guard-shell-command.mjs.tmpl` + `<stack>/guard-ports.json` | The shell guard asks before a server start whose port already listens: `startCommands` names the stack's dev-server command shape, `defaultPorts` the ports to probe when the command has no `--port`, and an explicit `--port` probes that port only. `pkill`, `killall`, and `xargs kill` always ask. Fixture `test-guard-shell-command.mjs`; rendered into every `hooks/guard-shell-command.mjs` by `generate-hooks.mjs`. |
433
437
  | `presets/_shared/ai-local/scripts/team-db-scheduler.mjs` | The scheduled-jobs module, shipped to consumers as `.ai.local/scripts/team-db-scheduler.mjs` (`ENGINE_SCRIPTS`): the job validator, a dependency-free five-field cron parser and next-fire on `Intl` zone math (both DST transitions are fixtures), the deterministic atomic `scheduler/jobs.json` store, the run-manifest and capped-capture helpers (the recorded sha256 covers exactly the pre-marker bytes, so a capped stream is not reported `E_LOG_HASH`), the projection into `scheduled_jobs` / `job_runs` / `job_run_events`, retention (1 MiB per stream, 200 runs, 30 days, 2 GiB; a pruned run directory takes its row with it; an active run is never pruned), restart reconciliation to `interrupted`, and `runScheduler` — the lease, the `BEGIN IMMEDIATE` claim, a durable run-now queue the timer re-reads and merges at every tick, the detached child with a process-group kill, `catch-up` bounded to five occurrences per gap with the truncation recorded (`E_CATCH_UP_TRUNCATED`), and the kill-switch drain. Fixture `test-team-db-scheduler.mjs`; concurrency fixtures live in `test-team-db-concurrency.mjs`. |
434
- | `scripts/test-team-db-*.mjs` | The team-db suite family: schema (17), project (18), migrate-tasks (5), dual-write (13), API (27), security (17), concurrency (10), scheduler (34), and FAIL-direction fixtures (22). The fixtures prove each gate fails on its planted defect; `test-team-db-concurrency.mjs` covers first-creation races, a mixed writer/reader load, `SIGKILL` recovery, a held lock, the 5 s hook budget, and the scheduler's four seams (scheduler versus projector on one database, a `SIGKILL`ed scheduler reconciled to one `interrupted` row, 50 finalized runs inside the WAL bound, and a held exclusive lock that neither hangs nor leaves a lease). Wired into `check-preset-structure.sh`; `yarn test:team-db` runs the family. |
438
+ | `scripts/check-team-db-contract.mjs` + `scripts/test-team-db-*.mjs` | The contract script, which validates the team-db OpenAPI contract, plus the suite family: eight suites (schema, project, migrate-tasks, dual-write, API, security, concurrency, scheduler), the tracker family (tracker, tracker-order, tracker-project, tracker-queue, tracker-import), task-runner, efficiency, and the FAIL-direction fixtures. The fixtures prove each gate fails on its planted defect; `test-team-db-concurrency.mjs` covers first-creation races, a mixed writer/reader load, `SIGKILL` recovery, a held lock, the 5 s hook budget, and the scheduler's four seams (scheduler versus projector on one database, a `SIGKILL`ed scheduler reconciled to one `interrupted` row, 50 finalized runs inside the WAL bound, and a held exclusive lock that neither hangs nor leaves a lease). `check-preset-structure.sh` wires the contract, the eight suites and the fixtures (ten entries). `yarn test:team-db` runs all seventeen stages, including the tracker family, task-runner and efficiency, which the structure gate does not run; the preset classifier names it for `team-db` paths. |
435
439
 
436
440
  Run from `packages/ai-rules/`:
437
441
 
package/docs/TEAM-DB.md CHANGED
@@ -20,8 +20,8 @@ The projection is installed by `init` as eight `team-db*.mjs` modules under `.ai
20
20
  The same seeded set is `ENGINE_SCRIPTS` in `bin/lib/engine-scripts.js`: the eight `team-db*.mjs`
21
21
  modules plus the self-learning engine, `manifest.mjs`, `dump-output.mjs`,
22
22
  `check-write-scope.mjs`, `aggregate-agent-task-metrics.mjs`, `record-usage.mjs`,
23
- `verification.mjs`, `incidents.mjs`, `tracker-planned-drain.mjs`, and the `processes.mjs` +
24
- `process-lease.mjs` process manager (twenty-five entries;
23
+ `verification.mjs`, `check-verification.mjs`, `incidents.mjs`, `tracker-planned-drain.mjs`, and the `processes.mjs` +
24
+ `process-lease.mjs` process manager (thirty entries;
25
25
  `node -e "require('./bin/lib/engine-scripts.js').ENGINE_SCRIPTS.length"` prints the shipped
26
26
  count). One further module, `upstream-research.mjs`, is declared in
27
27
  `REPO_ONLY_ENGINE_SCRIPTS`: it exists in this repository's preset source and dogfood mirror but
@@ -33,7 +33,11 @@ is excluded from the published tarball, and a consumer install skips it without
33
33
  `artifact-manifest.json`, prompts, memlogs, and review ledgers are read, never written.
34
34
  No agent writes a lifecycle field through the projection.
35
35
  - **The database is rebuildable.** Delete `team.db*` and run `sync`; the next run recreates
36
- the schema and reconverges. A schema fingerprint mismatch rebuilds automatically.
36
+ the schema and reconverges. An older database migrates in place and keeps its rows, and a
37
+ stored fingerprint that lags the DDL the migration chain produces is a stale record: it is
38
+ overwritten in place, no rebuild. A record that disagrees with a DDL the chain does not
39
+ produce is moved aside as `team.db.mismatch-<stamp>` and rebuilt. A file with no fingerprint
40
+ record is stamped with the DDL it opened with, without a comparison.
37
41
  - **Writes are isolated.** A projection or deletion failure never fails a file write or a
38
42
  receipt. The hook and `manifest.mjs` each run a bounded child (5 s, `SIGKILL`) and append
39
43
  one line to `team-db-errors.log` on failure; the confirmed task delete runs its own
@@ -367,8 +371,9 @@ reconciles it before the first fire, and `jobs reconcile` does the same on deman
367
371
  manifest and the row become `interrupted` with reason `E_ORPHANED`. `sync --rebuild` and
368
372
  `sync --vacuum` refuse with `E_SCHEDULER_RUNNING` (exit 4) while a fresh lease exists. That
369
373
  guard covers the explicit destructive flags only: a plain `init` or `sync` opens writable, and
370
- a database whose recorded schema fingerprint no longer matches is moved aside as
374
+ a database whose DDL the migration chain does not produce is moved aside as
371
375
  `team.db.mismatch-<stamp>` and rebuilt (see § Schema) even while a scheduler holds the lease.
376
+ A store whose DDL is the chain's own only has its fingerprint refreshed in place.
372
377
  Stop the scheduler before any schema upgrade; the explicit flags are a backstop, not a
373
378
  complete guard. The kill switch drains: no new claim, the in-flight child finishes inside its
374
379
  own timeout, the result is recorded, exit 0. Supervision (launchd, systemd, Task Scheduler) is
@@ -477,10 +482,14 @@ capability created after migration, with an escaped `LIKE` fallback.
477
482
  Migration `0002-scheduler` adds the scheduler's three tables — `scheduled_jobs`, `job_runs`,
478
483
  `job_run_events` — and five indexes, and moves `SCHEMA_VERSION` to 2. It is additive and
479
484
  sha256-pinned like the first one: a tampered literal aborts with `E_MIGRATION_CHECKSUM` before
480
- any DDL. A v1 database is not read forward: its recorded fingerprint no longer describes the
481
- schema, so the next open moves the file aside as `team.db.mismatch-<stamp>`, rebuilds, and
482
- reprojects from the task files — database-only rows are discarded by design, which is why the
483
- files are the source of truth. Run `sync` after an upgrade and the counters reconverge.
485
+ any DDL. A v1 database migrates in place through the chain and keeps its rows; the stored
486
+ fingerprint is a record of the DDL, so a record that lags the chain is a stale record — it is
487
+ rewritten in place and no rows move. A record that disagrees with a DDL the chain does not
488
+ produce — a table or index altered by hand — is moved aside as `team.db.mismatch-<stamp>` and
489
+ rebuilt, which is why the files stay the source of truth; under `--no-rebuild` or a read-only
490
+ open it fails as `E_SCHEMA_MISMATCH` instead. A database with no fingerprint record is stamped
491
+ with the DDL it opened with, without a comparison. Run `sync` after an upgrade and the counters
492
+ reconverge.
484
493
 
485
494
  Migration `0003-backlog` stays immutable; migration `0004-tracker` creates the tracker
486
495
  tables (`tracker_items`, `tracker_item_deps`, `tracker_queue`, `tracker_queue_events`,
@@ -525,6 +534,32 @@ gains ten columns (`intent`, `agent`, `parent_session_id`, `duration_ms`, `gap_m
525
534
  file opens and migrates in place without a row copy; a v6 file is refused by a v5 binary with
526
535
  `E_SCHEMA_NEWER`. There is no downgrade SQL: delete `team.db*` and run `sync`.
527
536
 
537
+ Migration `0008-ledger-owner` moves `SCHEMA_VERSION` to 8. It is additive: `review_ledger`
538
+ gains three nullable `TEXT` columns — `owner`, `due`, `follow_up` — so a version-7 file
539
+ migrates in place and historical rows insert `NULL`. There is no backfill and no row rewrite;
540
+ legacy is a function of the date, never of file mtime, and the header never decides it. A row is
541
+ legacy when it has no usable `at` — the one date git cannot supply — or when its `at` is before
542
+ `2026-11-22`. The header only decides a dated row: a post-cutoff row under a stale header still
543
+ fails, so a table moves to the canonical header rather than relying on width.
544
+ `ledger-check` is the single validator:
545
+ a row dated on or after `2026-11-22` whose disposition is `open`, `accepted` or `deferred`
546
+ needs an `owner` that is not one of the frozen placeholder tokens (`-`, `—`, `?`, `n/a`, `na`,
547
+ `none`, `null`, `tbd`, `tba`, `todo`, `unowned`, `unassigned`, `someone`, `anyone`, `owner`,
548
+ `team`; matching is equality after trim/quotes/one leading `@`/case, so `team-lead` passes)
549
+ and a `due` as `YYYY-MM-DD` on or after the check date (UTC); `accepted` and `deferred` also
550
+ need a `followUp` — `<slug>` or `blocked-on: <slug>`, one slug, resolving under
551
+ `<teamRoot>/tasks/`. Legacy rows are never failed and are counted in `legacyRows`; `undatedRows`
552
+ is their no-date subset. Both counters cover every parsed row, whatever its disposition — they
553
+ describe the ledger's age, not its debt. The output
554
+ carries both counters next to `checked=` / `failed=`, and `--json` adds them to the envelope.
555
+ The command
556
+ is file-only — it needs no `node:sqlite`. The chain hook spawns it on the receipt of the step
557
+ that owns the `review` artifact — `completed` and `changes_requested`, the two receipts a
558
+ review produces — and relays `failures[].reason` verbatim, so the message text lives once, in
559
+ `team-db-project.mjs`; a verifier or implementer receipt is not gated, because it may not
560
+ write a reviewer's row. A tree without the CLI or without a ledger skips the gate and says so
561
+ on stderr.
562
+
528
563
  `serve` and `schedule` keep the schema module they loaded at startup. When `team-db-schema.mjs`
529
564
  on disk is replaced by a higher `SCHEMA_VERSION`, the next request and the next idle scheduler
530
565
  tick re-import that file and open with it. A database newer than the file on disk still fails
package/docs/ZCODE.md CHANGED
@@ -37,7 +37,7 @@ contract). Config-hook enablement is a probe-gated follow-up; see
37
37
 
38
38
  ## Platform contract
39
39
 
40
- `presets/zcode/platform-contract.json` declares `managedRoot: .zcode`, the ten released stacks,
40
+ `presets/zcode/platform-contract.json` declares `managedRoot: .zcode`, the eleven released stacks,
41
41
  `entryFiles: [REPO_AGENTS.md → AGENTS.md]`, `mcp {source: mcp.json, fallbackDestination:
42
42
  .zcode/config.json, mode: merge-zcode-config}`, and 15 `nativeCapabilities` statuses from the
43
43
  enum set. Capability evidence lives in [`ZCODE-COMPATIBILITY.md`](ZCODE-COMPATIBILITY.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonesofspring/ai-rules",
3
- "version": "0.2.76",
3
+ "version": "0.2.78",
4
4
  "description": "Presets of Cursor, Claude, Mavis, OpenCode, and ZCode rules/commands for Revy Ross personal use",
5
5
  "license": "MIT",
6
6
  "author": "Revy Ross",
@@ -68,6 +68,10 @@
68
68
  "check:preset-i18n": "node scripts/run-locked.mjs --label check:preset-i18n -- env AI_RULES_I18N_FAIL=1 AI_RULES_I18N_SOFT=0 bash scripts/check-preset-i18n.sh",
69
69
  "check:frontmatter": "node scripts/run-locked.mjs --label check:frontmatter -- node scripts/check-frontmatter.mjs",
70
70
  "check:shared-core-drift": "node scripts/run-locked.mjs --label check:shared-core-drift -- bash scripts/check-shared-core-drift.sh",
71
+ "check:semantic-parity": "node scripts/run-locked.mjs --label check:semantic-parity -- node scripts/check-semantic-parity.mjs",
72
+ "test:semantic-parity-fixtures": "node scripts/test-semantic-parity.mjs",
73
+ "check:intake": "node scripts/check-task-intake.mjs",
74
+ "test:task-intake-fixtures": "node scripts/test-task-intake.mjs",
71
75
  "check:product-specs": "bash scripts/check-product-specs.sh",
72
76
  "check:product-specs:self-test": "bash scripts/check-product-specs.sh --self-test",
73
77
  "check:product-specs:dogfood": "bash scripts/check-product-specs.sh ../../dogfood/mcp-ts-sample",
@@ -80,6 +84,7 @@
80
84
  "test:shared-core-drift-lineage-fixtures": "node scripts/test-shared-core-drift-lineage-fixtures.mjs",
81
85
  "test:generated-drift-fixtures": "node scripts/test-generated-drift-fixtures.mjs",
82
86
  "test:generate-claude-fixtures": "node scripts/test-generate-claude-fixtures.mjs",
87
+ "test:probe-order": "node scripts/test-probe-order.mjs",
83
88
  "test:generated-drift-claude-fixtures": "node scripts/test-generated-drift-claude-fixtures.mjs",
84
89
  "test:rule-improver": "node scripts/test-rule-improver-ledger.mjs",
85
90
  "test:guard-shell-command": "node scripts/test-guard-shell-command.mjs",
@@ -36,12 +36,16 @@ const teamRoot =
36
36
  const slugIndex = args.indexOf('--slug');
37
37
  const slugFilter = slugIndex >= 0 ? args[slugIndex + 1] ?? null : null;
38
38
  const tasksDir = path.join(teamRoot, 'tasks');
39
+ // An attempt this long almost always contains human wait (an overnight pause, a
40
+ // gate decision answered between attempts) that no gate event covers.
41
+ const LONG_ATTEMPT_MS = 3 * 60 * 60 * 1000;
39
42
  const incomplete = [];
40
43
  const attempts = [];
41
44
  const tasks = [];
42
45
  const taskReports = [];
43
46
  const gateWaits = [];
44
47
  const outOfBandDurations = [];
48
+ const longAttempts = [];
45
49
  const attributionConfidenceCounts = new Map();
46
50
  let unmatchedAttemptCount = 0;
47
51
  let duplicateTerminalAttemptCount = 0;
@@ -200,6 +204,7 @@ function collect(metrics, filePath) {
200
204
  const gateStarts = new Map();
201
205
  const terminalAttempts = new Set();
202
206
  const attemptDurations = [];
207
+ const taskLongAttempts = [];
203
208
  const hostUsage = new Map();
204
209
  const usageEventsByAttempt = new Map();
205
210
  let taskCompleted = false;
@@ -260,6 +265,16 @@ function collect(metrics, filePath) {
260
265
  (attributionConfidenceCounts.get(attributionConfidence) ?? 0) + 1,
261
266
  );
262
267
  if (Number.isFinite(event.durationMs)) attemptDurations.push(event.durationMs);
268
+ if (Number.isFinite(event.durationMs) && event.durationMs > LONG_ATTEMPT_MS) {
269
+ const longAttempt = {
270
+ slug: metrics.task.slug,
271
+ attemptId: event.attemptId,
272
+ agent: start.agent ?? 'unknown',
273
+ durationMs: event.durationMs,
274
+ };
275
+ taskLongAttempts.push(longAttempt);
276
+ longAttempts.push(longAttempt);
277
+ }
263
278
  const usage = normalizeUsage(
264
279
  hostUsage.get(event.attemptId) ??
265
280
  (event.usage && typeof event.usage === 'object' ? event.usage : null),
@@ -331,6 +346,8 @@ function collect(metrics, filePath) {
331
346
  outOfBandMs: taskOutOfBandMs,
332
347
  outOfBandCount: taskOutOfBandCount,
333
348
  attemptCount: terminalAttempts.size,
349
+ longestAttemptMs: attemptDurations.length ? Math.max(...attemptDurations) : null,
350
+ longAttemptCount: taskLongAttempts.length,
334
351
  completed: taskCompleted,
335
352
  incomplete: ledgerIncomplete,
336
353
  usage: {
@@ -463,6 +480,12 @@ process.stdout.write(
463
480
  sumDurationMs: outOfBandDurations.reduce((sum, value) => sum + value, 0),
464
481
  },
465
482
  attributionConfidence: Object.fromEntries(attributionConfidenceCounts),
483
+ longAttempts: {
484
+ thresholdMs: LONG_ATTEMPT_MS,
485
+ count: longAttempts.length,
486
+ attempts: longAttempts,
487
+ hint: 'an attempt this long may contain human wait that no human_gate event covers; read activeMs as an upper bound, not as agent time',
488
+ },
466
489
  completeness: {
467
490
  missingLedgerCount,
468
491
  malformedLedgerCount,