@bonesofspring/ai-rules 0.2.43 → 0.2.44

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 (310) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/docs/LOCAL-OVERLAY.md +3 -3
  3. package/docs/PRESET-CONTRIBUTION.md +2 -2
  4. package/docs/PRESET-ENGLISH-STYLE.md +1 -1
  5. package/package.json +1 -1
  6. package/presets/_shared/README.md +1 -1
  7. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +1 -1
  8. package/presets/_shared/core/agent-team/agent-team-intake.md +1 -1
  9. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +2 -2
  10. package/presets/_shared/core/agent-team/language-policy.md +24 -16
  11. package/presets/claude/android-kotlin/REPO_AGENTS.md +1 -3
  12. package/presets/claude/android-kotlin/commands/task.md +1 -3
  13. package/presets/claude/android-kotlin/rules/stack/android-app-core.md +1 -3
  14. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +1 -1
  15. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  16. package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +1 -1
  17. package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +25 -17
  18. package/presets/claude/go/REPO_AGENTS.md +1 -3
  19. package/presets/claude/go/commands/task.md +1 -3
  20. package/presets/claude/go/rules/stack/go-app-core.md +1 -3
  21. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +1 -1
  22. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  23. package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +1 -1
  24. package/presets/claude/go/rules/tooling-and-review/language-policy.md +25 -17
  25. package/presets/claude/ios-swift/REPO_AGENTS.md +1 -3
  26. package/presets/claude/ios-swift/commands/task.md +1 -3
  27. package/presets/claude/ios-swift/rules/stack/ios-app-core.md +1 -3
  28. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +1 -1
  29. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  30. package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +1 -1
  31. package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +25 -17
  32. package/presets/claude/java/REPO_AGENTS.md +1 -3
  33. package/presets/claude/java/commands/task.md +1 -3
  34. package/presets/claude/java/rules/stack/java-app-core.md +1 -3
  35. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +1 -1
  36. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  37. package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +1 -1
  38. package/presets/claude/java/rules/tooling-and-review/language-policy.md +25 -17
  39. package/presets/claude/mcp-ts/REPO_AGENTS.md +1 -3
  40. package/presets/claude/mcp-ts/commands/task.md +1 -3
  41. package/presets/claude/mcp-ts/rules/stack/mcp-ts-app-core.md +1 -3
  42. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +1 -1
  43. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  44. package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +1 -1
  45. package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +25 -17
  46. package/presets/claude/next/REPO_AGENTS.md +1 -3
  47. package/presets/claude/next/commands/task.md +1 -3
  48. package/presets/claude/next/rules/stack/next-app-core.md +1 -3
  49. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +1 -1
  50. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  51. package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +1 -1
  52. package/presets/claude/next/rules/tooling-and-review/language-policy.md +25 -17
  53. package/presets/claude/nuxt/REPO_AGENTS.md +1 -3
  54. package/presets/claude/nuxt/commands/task.md +1 -3
  55. package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +1 -3
  56. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +1 -1
  57. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  58. package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +1 -1
  59. package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +25 -17
  60. package/presets/claude/php-hexagonal/REPO_AGENTS.md +1 -3
  61. package/presets/claude/php-hexagonal/commands/task.md +1 -3
  62. package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +1 -3
  63. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +1 -1
  64. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  65. package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +1 -1
  66. package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +25 -17
  67. package/presets/claude/php-laravel/REPO_AGENTS.md +1 -3
  68. package/presets/claude/php-laravel/commands/task.md +1 -3
  69. package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +1 -3
  70. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +1 -1
  71. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  72. package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +1 -1
  73. package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +25 -17
  74. package/presets/claude/svelte/REPO_AGENTS.md +1 -3
  75. package/presets/claude/svelte/commands/task.md +1 -3
  76. package/presets/claude/svelte/rules/stack/svelte-app-core.md +1 -3
  77. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +1 -1
  78. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +2 -2
  79. package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +1 -1
  80. package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +25 -17
  81. package/presets/cursor/android-kotlin/REPO_AGENTS.md +1 -3
  82. package/presets/cursor/android-kotlin/commands/task.md +1 -3
  83. package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +1 -1
  84. package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +2 -9
  85. package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +1 -1
  86. package/presets/cursor/android-kotlin/rules/android-app-core.mdc +1 -3
  87. package/presets/cursor/android-kotlin/rules/language-policy.mdc +25 -17
  88. package/presets/cursor/go/REPO_AGENTS.md +1 -3
  89. package/presets/cursor/go/commands/task.md +1 -3
  90. package/presets/cursor/go/rules/agent-team-intake.mdc +1 -1
  91. package/presets/cursor/go/rules/agent-team-orchestrator.mdc +2 -9
  92. package/presets/cursor/go/rules/ai-local-overlay.mdc +1 -1
  93. package/presets/cursor/go/rules/go-app-core.mdc +1 -3
  94. package/presets/cursor/go/rules/language-policy.mdc +25 -17
  95. package/presets/cursor/ios-swift/REPO_AGENTS.md +1 -3
  96. package/presets/cursor/ios-swift/commands/task.md +1 -3
  97. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +1 -1
  98. package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +2 -9
  99. package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +1 -1
  100. package/presets/cursor/ios-swift/rules/ios-app-core.mdc +1 -3
  101. package/presets/cursor/ios-swift/rules/language-policy.mdc +25 -17
  102. package/presets/cursor/java/REPO_AGENTS.md +1 -3
  103. package/presets/cursor/java/commands/task.md +1 -3
  104. package/presets/cursor/java/rules/agent-team-intake.mdc +1 -1
  105. package/presets/cursor/java/rules/agent-team-orchestrator.mdc +2 -9
  106. package/presets/cursor/java/rules/ai-local-overlay.mdc +1 -1
  107. package/presets/cursor/java/rules/java-app-core.mdc +1 -3
  108. package/presets/cursor/java/rules/language-policy.mdc +25 -17
  109. package/presets/cursor/mcp-ts/REPO_AGENTS.md +1 -3
  110. package/presets/cursor/mcp-ts/commands/task.md +1 -3
  111. package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +1 -1
  112. package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +2 -9
  113. package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +1 -1
  114. package/presets/cursor/mcp-ts/rules/language-policy.mdc +25 -17
  115. package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +1 -3
  116. package/presets/cursor/next/REPO_AGENTS.md +1 -3
  117. package/presets/cursor/next/commands/task.md +1 -3
  118. package/presets/cursor/next/rules/agent-team-intake.mdc +1 -1
  119. package/presets/cursor/next/rules/agent-team-orchestrator.mdc +2 -9
  120. package/presets/cursor/next/rules/ai-local-overlay.mdc +1 -1
  121. package/presets/cursor/next/rules/language-policy.mdc +25 -17
  122. package/presets/cursor/next/rules/next-app-core.mdc +1 -3
  123. package/presets/cursor/nuxt/REPO_AGENTS.md +1 -3
  124. package/presets/cursor/nuxt/commands/task.md +1 -3
  125. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +1 -1
  126. package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +2 -9
  127. package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +1 -1
  128. package/presets/cursor/nuxt/rules/language-policy.mdc +25 -17
  129. package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +1 -3
  130. package/presets/cursor/php-hexagonal/REPO_AGENTS.md +1 -3
  131. package/presets/cursor/php-hexagonal/commands/task.md +1 -3
  132. package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +1 -1
  133. package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +2 -9
  134. package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +1 -1
  135. package/presets/cursor/php-hexagonal/rules/language-policy.mdc +25 -17
  136. package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +1 -3
  137. package/presets/cursor/php-laravel/REPO_AGENTS.md +1 -3
  138. package/presets/cursor/php-laravel/commands/task.md +1 -3
  139. package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +1 -1
  140. package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +2 -9
  141. package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +1 -1
  142. package/presets/cursor/php-laravel/rules/language-policy.mdc +25 -17
  143. package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +1 -3
  144. package/presets/cursor/svelte/REPO_AGENTS.md +1 -3
  145. package/presets/cursor/svelte/commands/task.md +1 -3
  146. package/presets/cursor/svelte/rules/agent-team-intake.mdc +1 -1
  147. package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +2 -9
  148. package/presets/cursor/svelte/rules/ai-local-overlay.mdc +1 -1
  149. package/presets/cursor/svelte/rules/language-policy.mdc +25 -17
  150. package/presets/cursor/svelte/rules/svelte-app-core.mdc +1 -3
  151. package/presets/mavis/android-kotlin/REPO_AGENTS.md +1 -3
  152. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  153. package/presets/mavis/android-kotlin/commands/task.md +1 -3
  154. package/presets/mavis/android-kotlin/rules/agent-team-intake.md +1 -1
  155. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +2 -2
  156. package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +1 -1
  157. package/presets/mavis/android-kotlin/rules/android-app-core.md +1 -3
  158. package/presets/mavis/android-kotlin/rules/language-policy.md +24 -16
  159. package/presets/mavis/go/REPO_AGENTS.md +1 -3
  160. package/presets/mavis/go/adapter-map.json +1 -1
  161. package/presets/mavis/go/commands/task.md +1 -3
  162. package/presets/mavis/go/rules/agent-team-intake.md +1 -1
  163. package/presets/mavis/go/rules/agent-team-orchestrator.md +2 -2
  164. package/presets/mavis/go/rules/ai-local-overlay.md +1 -1
  165. package/presets/mavis/go/rules/go-app-core.md +1 -3
  166. package/presets/mavis/go/rules/language-policy.md +24 -16
  167. package/presets/mavis/ios-swift/REPO_AGENTS.md +1 -3
  168. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  169. package/presets/mavis/ios-swift/commands/task.md +1 -3
  170. package/presets/mavis/ios-swift/rules/agent-team-intake.md +1 -1
  171. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +2 -2
  172. package/presets/mavis/ios-swift/rules/ai-local-overlay.md +1 -1
  173. package/presets/mavis/ios-swift/rules/ios-app-core.md +1 -3
  174. package/presets/mavis/ios-swift/rules/language-policy.md +24 -16
  175. package/presets/mavis/java/REPO_AGENTS.md +1 -3
  176. package/presets/mavis/java/adapter-map.json +1 -1
  177. package/presets/mavis/java/commands/task.md +1 -3
  178. package/presets/mavis/java/rules/agent-team-intake.md +1 -1
  179. package/presets/mavis/java/rules/agent-team-orchestrator.md +2 -2
  180. package/presets/mavis/java/rules/ai-local-overlay.md +1 -1
  181. package/presets/mavis/java/rules/java-app-core.md +1 -3
  182. package/presets/mavis/java/rules/language-policy.md +24 -16
  183. package/presets/mavis/mcp-ts/REPO_AGENTS.md +1 -3
  184. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  185. package/presets/mavis/mcp-ts/commands/task.md +1 -3
  186. package/presets/mavis/mcp-ts/rules/agent-team-intake.md +1 -1
  187. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +2 -2
  188. package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +1 -1
  189. package/presets/mavis/mcp-ts/rules/language-policy.md +24 -16
  190. package/presets/mavis/mcp-ts/rules/mcp-ts-app-core.md +1 -3
  191. package/presets/mavis/next/REPO_AGENTS.md +1 -3
  192. package/presets/mavis/next/adapter-map.json +1 -1
  193. package/presets/mavis/next/commands/task.md +1 -3
  194. package/presets/mavis/next/rules/agent-team-intake.md +1 -1
  195. package/presets/mavis/next/rules/agent-team-orchestrator.md +2 -2
  196. package/presets/mavis/next/rules/ai-local-overlay.md +1 -1
  197. package/presets/mavis/next/rules/language-policy.md +24 -16
  198. package/presets/mavis/next/rules/next-app-core.md +1 -3
  199. package/presets/mavis/nuxt/REPO_AGENTS.md +1 -3
  200. package/presets/mavis/nuxt/adapter-map.json +1 -1
  201. package/presets/mavis/nuxt/commands/task.md +1 -3
  202. package/presets/mavis/nuxt/rules/agent-team-intake.md +1 -1
  203. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +2 -2
  204. package/presets/mavis/nuxt/rules/ai-local-overlay.md +1 -1
  205. package/presets/mavis/nuxt/rules/language-policy.md +24 -16
  206. package/presets/mavis/nuxt/rules/nuxt-app-core.md +1 -3
  207. package/presets/mavis/php-hexagonal/REPO_AGENTS.md +1 -3
  208. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  209. package/presets/mavis/php-hexagonal/commands/task.md +1 -3
  210. package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +1 -1
  211. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +2 -2
  212. package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +1 -1
  213. package/presets/mavis/php-hexagonal/rules/language-policy.md +24 -16
  214. package/presets/mavis/php-hexagonal/rules/php-app-core.md +1 -3
  215. package/presets/mavis/php-laravel/REPO_AGENTS.md +1 -3
  216. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  217. package/presets/mavis/php-laravel/commands/task.md +1 -3
  218. package/presets/mavis/php-laravel/rules/agent-team-intake.md +1 -1
  219. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +2 -2
  220. package/presets/mavis/php-laravel/rules/ai-local-overlay.md +1 -1
  221. package/presets/mavis/php-laravel/rules/language-policy.md +24 -16
  222. package/presets/mavis/php-laravel/rules/laravel-app-core.md +1 -3
  223. package/presets/mavis/svelte/REPO_AGENTS.md +1 -3
  224. package/presets/mavis/svelte/adapter-map.json +1 -1
  225. package/presets/mavis/svelte/commands/task.md +1 -3
  226. package/presets/mavis/svelte/rules/agent-team-intake.md +1 -1
  227. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +2 -2
  228. package/presets/mavis/svelte/rules/ai-local-overlay.md +1 -1
  229. package/presets/mavis/svelte/rules/language-policy.md +24 -16
  230. package/presets/mavis/svelte/rules/svelte-app-core.md +1 -3
  231. package/presets/opencode/android-kotlin/REPO_AGENTS.md +1 -3
  232. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  233. package/presets/opencode/android-kotlin/commands/task.md +1 -3
  234. package/presets/opencode/android-kotlin/rules/agent-team-intake.md +1 -1
  235. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +2 -2
  236. package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +1 -1
  237. package/presets/opencode/android-kotlin/rules/android-app-core.md +1 -3
  238. package/presets/opencode/android-kotlin/rules/language-policy.md +24 -16
  239. package/presets/opencode/go/REPO_AGENTS.md +1 -3
  240. package/presets/opencode/go/adapter-map.json +1 -1
  241. package/presets/opencode/go/commands/task.md +1 -3
  242. package/presets/opencode/go/rules/agent-team-intake.md +1 -1
  243. package/presets/opencode/go/rules/agent-team-orchestrator.md +2 -2
  244. package/presets/opencode/go/rules/ai-local-overlay.md +1 -1
  245. package/presets/opencode/go/rules/go-app-core.md +1 -3
  246. package/presets/opencode/go/rules/language-policy.md +24 -16
  247. package/presets/opencode/ios-swift/REPO_AGENTS.md +1 -3
  248. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  249. package/presets/opencode/ios-swift/commands/task.md +1 -3
  250. package/presets/opencode/ios-swift/rules/agent-team-intake.md +1 -1
  251. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +2 -2
  252. package/presets/opencode/ios-swift/rules/ai-local-overlay.md +1 -1
  253. package/presets/opencode/ios-swift/rules/ios-app-core.md +1 -3
  254. package/presets/opencode/ios-swift/rules/language-policy.md +24 -16
  255. package/presets/opencode/java/REPO_AGENTS.md +1 -3
  256. package/presets/opencode/java/adapter-map.json +1 -1
  257. package/presets/opencode/java/commands/task.md +1 -3
  258. package/presets/opencode/java/rules/agent-team-intake.md +1 -1
  259. package/presets/opencode/java/rules/agent-team-orchestrator.md +2 -2
  260. package/presets/opencode/java/rules/ai-local-overlay.md +1 -1
  261. package/presets/opencode/java/rules/java-app-core.md +1 -3
  262. package/presets/opencode/java/rules/language-policy.md +24 -16
  263. package/presets/opencode/mcp-ts/REPO_AGENTS.md +1 -3
  264. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  265. package/presets/opencode/mcp-ts/commands/task.md +1 -3
  266. package/presets/opencode/mcp-ts/rules/agent-team-intake.md +1 -1
  267. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +2 -2
  268. package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +1 -1
  269. package/presets/opencode/mcp-ts/rules/language-policy.md +24 -16
  270. package/presets/opencode/mcp-ts/rules/mcp-ts-app-core.md +1 -3
  271. package/presets/opencode/next/REPO_AGENTS.md +1 -3
  272. package/presets/opencode/next/adapter-map.json +1 -1
  273. package/presets/opencode/next/commands/task.md +1 -3
  274. package/presets/opencode/next/rules/agent-team-intake.md +1 -1
  275. package/presets/opencode/next/rules/agent-team-orchestrator.md +2 -2
  276. package/presets/opencode/next/rules/ai-local-overlay.md +1 -1
  277. package/presets/opencode/next/rules/language-policy.md +24 -16
  278. package/presets/opencode/next/rules/next-app-core.md +1 -3
  279. package/presets/opencode/nuxt/REPO_AGENTS.md +1 -3
  280. package/presets/opencode/nuxt/adapter-map.json +1 -1
  281. package/presets/opencode/nuxt/commands/task.md +1 -3
  282. package/presets/opencode/nuxt/rules/agent-team-intake.md +1 -1
  283. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +2 -2
  284. package/presets/opencode/nuxt/rules/ai-local-overlay.md +1 -1
  285. package/presets/opencode/nuxt/rules/language-policy.md +24 -16
  286. package/presets/opencode/nuxt/rules/nuxt-app-core.md +1 -3
  287. package/presets/opencode/php-hexagonal/REPO_AGENTS.md +1 -3
  288. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  289. package/presets/opencode/php-hexagonal/commands/task.md +1 -3
  290. package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +1 -1
  291. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +2 -2
  292. package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +1 -1
  293. package/presets/opencode/php-hexagonal/rules/language-policy.md +24 -16
  294. package/presets/opencode/php-hexagonal/rules/php-app-core.md +1 -3
  295. package/presets/opencode/php-laravel/REPO_AGENTS.md +1 -3
  296. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  297. package/presets/opencode/php-laravel/commands/task.md +1 -3
  298. package/presets/opencode/php-laravel/rules/agent-team-intake.md +1 -1
  299. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +2 -2
  300. package/presets/opencode/php-laravel/rules/ai-local-overlay.md +1 -1
  301. package/presets/opencode/php-laravel/rules/language-policy.md +24 -16
  302. package/presets/opencode/php-laravel/rules/laravel-app-core.md +1 -3
  303. package/presets/opencode/svelte/REPO_AGENTS.md +1 -3
  304. package/presets/opencode/svelte/adapter-map.json +1 -1
  305. package/presets/opencode/svelte/commands/task.md +1 -3
  306. package/presets/opencode/svelte/rules/agent-team-intake.md +1 -1
  307. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +2 -2
  308. package/presets/opencode/svelte/rules/ai-local-overlay.md +1 -1
  309. package/presets/opencode/svelte/rules/language-policy.md +24 -16
  310. package/presets/opencode/svelte/rules/svelte-app-core.md +1 -3
@@ -7,9 +7,7 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
7
7
  - Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, or other).
8
8
  - All four platforms ship **the same** root file. `init` overwrites it; content does not depend on which tool ran last.
9
9
  - Tool maps (agent-team tables, slash commands) live in `.cursor/AGENTS.md` / `.claude/CLAUDE.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md` — use them when that tool is installed.
10
- - **Language.** Keep development, reasoning, and artifacts in **English**; answer the user in their
11
- **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English) for
12
- every question, gate prompt, status, and summary — see the `language-policy` rule.
10
+ - **Language.** On every user message, before you answer, resolve the dialogue language and answer in the user's **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English), including a question and a message without a slash command. Commands reuse this resolution. Development, reasoning, and artifacts stay **English**. See the `language-policy` rule.
13
11
  - Install:
14
12
 
15
13
  ```bash
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "php-hexagonal",
5
5
  "semanticSource": "cursor/php-hexagonal",
6
- "sourceRevision": "234e3e9075130661b8b41f20f58ab80ee2fa1559880c3a21319bd7e5669b0455",
6
+ "sourceRevision": "05026941ba632e4c8d65fa7a57f1c0e4c4d22acb3212846d54b0e84588e3fe4b",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -66,9 +66,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
66
66
 
67
67
  ## Dialogue language
68
68
 
69
- Resolve the user-facing language once at task start (`.ai.local` `## Language` → prompt language → English;
70
- mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
71
- user-facing message and `/task-continue`. See `language-policy`.
69
+ The always-on language rule already resolved the user-facing language on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant). Record that tag in the `prompt.md` header (`language: <BCP-47>`) and reuse it for every user-facing message and `/task-continue`. This command records the tag. See `language-policy`.
72
70
 
73
71
 
74
72
  ## Metrics
@@ -9,7 +9,7 @@ When the user message looks like a **work request** (implement, add, fix, refact
9
9
  3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
10
10
  4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
11
11
  5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
12
- 6. **Resolve the dialogue language before you speak to the user.** Read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); else infer from the prompt language; else English (mixed → dominant). Persist it once in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line, and reuse it for the whole task. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
12
+ 6. **Reuse the dialogue language already resolved on this turn** (always-on `ai-local-overlay` / **language-policy**). A question and a message without a slash command still resolve before you speak. When this request writes `prompt.md`, persist that tag once in the header (`language: <BCP-47>`) + a `.memlog.md` `event:` line. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
13
13
 
14
14
  Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
15
15
 
@@ -221,7 +221,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
221
221
  8. When all steps complete, suggest `/technical-retro <slug>`.
222
222
  9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
223
223
  10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). It is not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
224
- 11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
224
+ 11. **Answer the user in the resolved dialogue language for the whole task.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English). Pass that tag to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
225
225
  12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger. The role pipeline and the engineering graph are two linked objects: `pipeline.json` `steps[].dependsOn` still decides which agent runs; the decomposition ready set only chooses rows inside the active step. Reviewer and QA steps stay on the pipeline.
226
226
  13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model. Each decomposition task lists the repo paths it may create or modify. That list is a subset of the implementing step's `writeScopes[]` when the step declares `writeScopes`. Tasks with no `dependsOn` path between them keep those lists disjoint; a shared path stays sequential. `docs/specs/**` or `openspec/**` paths and `app/**` paths stay in different lists. `steps[].writeScopes[]` stays the role-level authority. Reviewer steps stay team-artifact only.
227
227
 
@@ -229,7 +229,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
229
229
 
230
230
  - **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
231
231
  - **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
232
- - **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
232
+ - **Answer in the resolved dialogue language.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins). Reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
233
233
  - Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
234
234
  - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
235
235
  - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
10
10
  4. **Activate seeds** — if `.ai.local/rules-library/<seed>.md` on the active chain matches the task, treat it as the applicable local rule and tell the owner to move it into that overlay's `rules/`. Seeds stay inactive until moved. Do not read the whole library up front.
11
11
  5. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
12
12
  6. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If the probe prints `overlays=0`, do NOT mention this rule.
13
- 7. **Language** — reply to the user in their **native language**: use the tag already stored for the task; when it is absent, read the `## Language` section of the nearest `conventions.md` on the chain; if unset, infer from the prompt language; else English. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
13
+ 7. **Language** — on every user message, before you answer, resolve the dialogue language and reply in the user's **native language**. Order: `language:` already stored for an active task; else the `## Language` section of the nearest `conventions.md`; else infer from the prompt (mixed → dominant); else English. A question and a message without a slash command still resolve. Commands reuse this resolution. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
14
14
  8. **Re-read** — before answering a question that touches a local rule, re-read that file.
15
15
 
16
16
  If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
@@ -2,9 +2,10 @@
2
2
 
3
3
  # Language policy
4
4
 
5
- Behavior contract for **every agent and command in any consumer repo** — stack-agnostic. Not a
6
- preset-authoring meta rule. The essentials are anchored on the always-on surfaces; this rule is the
7
- detailed reference.
5
+ Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
6
+ preset-authoring meta rule. Resolve the dialogue language on every user message from the
7
+ always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
8
+ is the detailed reference. A slash command does not gate resolution.
8
9
 
9
10
  ## Two halves (mandatory)
10
11
 
@@ -14,30 +15,37 @@ detailed reference.
14
15
  code, identifiers, logs, or artifacts.
15
16
  2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
16
17
  human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
17
- escalations are written in the resolved language. Every such message — no exception.
18
+ escalations are written in the resolved language. Every such message — a question, a one-liner, or a
19
+ slash command — no exception.
18
20
 
19
- ## Resolution (ordered)
21
+ ## Resolution (every user message)
20
22
 
21
- 1. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
23
+ Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
24
+ command. Those commands reuse the language this step already resolved.
25
+
26
+ 1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
27
+ `prompt.md`.
28
+ 2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
22
29
  **nearest** `.ai.local` wins in a monorepo.
23
- 2. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
30
+ 3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
24
31
  the request.
25
- 3. Otherwise **English** (English-only / ambiguous prompt).
32
+ 4. Otherwise **English** (English-only / ambiguous prompt).
26
33
 
27
- The `.ai.local` setting **wins over** a mid-task prompt in another language. On a disagreement, follow the
34
+ The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
28
35
  setting and surface the mismatch **once in one sentence** — never block, and **never ask a
29
- language-confirmation question**.
36
+ language-confirmation question**. A message with no task still resolves on this turn.
30
37
 
31
38
  ## Per-task persistence
32
39
 
33
- Resolve the language once at task start and reuse it for the whole task — every pipeline agent and every
34
- `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header (`language: <BCP-47>`) and an
35
- append-only `.memlog.md` `event:` checkpoint. A later correction is an append-only memlog event (the fenced
36
- verbatim block is frozen). Never store it in `status.json`, `metrics.json`, or an `artifacts[]` body.
40
+ When a task artifact is created, record the language already resolved above and reuse it for the whole
41
+ task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
42
+ (`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
43
+ append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
44
+ `metrics.json`, or an `artifacts[]` body.
37
45
 
38
46
  ## See also
39
47
 
40
- - `ai-local-overlay` — reads `.ai.local` every turn; carries the setting read.
41
- - `agent-team-intake` — resolves the language when a work request starts.
48
+ - `ai-local-overlay` — always-on; resolves the language on every user message.
49
+ - `agent-team-intake` — persists the already-resolved language when a work request starts.
42
50
  - `agent-team-orchestrator` — carries the resolved language across steps.
43
51
  - `agent-artifact-contracts` — the `prompt.md` header contract.
@@ -33,6 +33,4 @@ Boundaries — **`architecture-boundaries.md`**. Tooling — requestable **`php-
33
33
 
34
34
  ## Language
35
35
 
36
- Development, reasoning, and artifacts stay **English**; every user-facing message (questions, gate prompts,
37
- status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
38
- (`## Language`) or the prompt, else English. See `language-policy`.
36
+ On every user message, before you answer, resolve the dialogue language and reply in the user's **native language**, including a question and a message without a slash command. Order: stored task `language:`, else `.ai.local` (`## Language`), else the prompt, else English. Development, reasoning, and artifacts stay **English**. Commands reuse this resolution. See `language-policy`.
@@ -7,9 +7,7 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
7
7
  - Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, or other).
8
8
  - All four platforms ship **the same** root file. `init` overwrites it; content does not depend on which tool ran last.
9
9
  - Tool maps (agent-team tables, slash commands) live in `.cursor/AGENTS.md` / `.claude/CLAUDE.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md` — use them when that tool is installed.
10
- - **Language.** Keep development, reasoning, and artifacts in **English**; answer the user in their
11
- **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English) for
12
- every question, gate prompt, status, and summary — see the `language-policy` rule.
10
+ - **Language.** On every user message, before you answer, resolve the dialogue language and answer in the user's **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English), including a question and a message without a slash command. Commands reuse this resolution. Development, reasoning, and artifacts stay **English**. See the `language-policy` rule.
13
11
  - Install:
14
12
 
15
13
  ```bash
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "php-laravel",
5
5
  "semanticSource": "cursor/php-laravel",
6
- "sourceRevision": "a94a0a9188b652e41c02b677415e11a1a322d0b8d15603a4d3361ed4304428c5",
6
+ "sourceRevision": "e3258f6dd96d4ff0cbfbe0100d49c278aa66da8750a98cf87949af5b9d5d3991",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -66,9 +66,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
66
66
 
67
67
  ## Dialogue language
68
68
 
69
- Resolve the user-facing language once at task start (`.ai.local` `## Language` → prompt language → English;
70
- mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
71
- user-facing message and `/task-continue`. See `language-policy`.
69
+ The always-on language rule already resolved the user-facing language on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant). Record that tag in the `prompt.md` header (`language: <BCP-47>`) and reuse it for every user-facing message and `/task-continue`. This command records the tag. See `language-policy`.
72
70
 
73
71
 
74
72
  ## Metrics
@@ -9,7 +9,7 @@ When the user message looks like a **work request** (implement, add, fix, refact
9
9
  3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
10
10
  4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
11
11
  5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
12
- 6. **Resolve the dialogue language before you speak to the user.** Read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); else infer from the prompt language; else English (mixed → dominant). Persist it once in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line, and reuse it for the whole task. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
12
+ 6. **Reuse the dialogue language already resolved on this turn** (always-on `ai-local-overlay` / **language-policy**). A question and a message without a slash command still resolve before you speak. When this request writes `prompt.md`, persist that tag once in the header (`language: <BCP-47>`) + a `.memlog.md` `event:` line. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
13
13
 
14
14
  Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
15
15
 
@@ -221,7 +221,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
221
221
  8. When all steps complete, suggest `/technical-retro <slug>`.
222
222
  9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
223
223
  10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). It is not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
224
- 11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
224
+ 11. **Answer the user in the resolved dialogue language for the whole task.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English). Pass that tag to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
225
225
  12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger. The role pipeline and the engineering graph are two linked objects: `pipeline.json` `steps[].dependsOn` still decides which agent runs; the decomposition ready set only chooses rows inside the active step. Reviewer and QA steps stay on the pipeline.
226
226
  13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model. Each decomposition task lists the repo paths it may create or modify. That list is a subset of the implementing step's `writeScopes[]` when the step declares `writeScopes`. Tasks with no `dependsOn` path between them keep those lists disjoint; a shared path stays sequential. `docs/specs/**` or `openspec/**` paths and `app/**` paths stay in different lists. `steps[].writeScopes[]` stays the role-level authority. Reviewer steps stay team-artifact only.
227
227
 
@@ -229,7 +229,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
229
229
 
230
230
  - **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
231
231
  - **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
232
- - **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
232
+ - **Answer in the resolved dialogue language.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins). Reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
233
233
  - Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
234
234
  - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
235
235
  - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
10
10
  4. **Activate seeds** — if `.ai.local/rules-library/<seed>.md` on the active chain matches the task, treat it as the applicable local rule and tell the owner to move it into that overlay's `rules/`. Seeds stay inactive until moved. Do not read the whole library up front.
11
11
  5. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
12
12
  6. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If the probe prints `overlays=0`, do NOT mention this rule.
13
- 7. **Language** — reply to the user in their **native language**: use the tag already stored for the task; when it is absent, read the `## Language` section of the nearest `conventions.md` on the chain; if unset, infer from the prompt language; else English. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
13
+ 7. **Language** — on every user message, before you answer, resolve the dialogue language and reply in the user's **native language**. Order: `language:` already stored for an active task; else the `## Language` section of the nearest `conventions.md`; else infer from the prompt (mixed → dominant); else English. A question and a message without a slash command still resolve. Commands reuse this resolution. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
14
14
  8. **Re-read** — before answering a question that touches a local rule, re-read that file.
15
15
 
16
16
  If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
@@ -2,9 +2,10 @@
2
2
 
3
3
  # Language policy
4
4
 
5
- Behavior contract for **every agent and command in any consumer repo** — stack-agnostic. Not a
6
- preset-authoring meta rule. The essentials are anchored on the always-on surfaces; this rule is the
7
- detailed reference.
5
+ Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
6
+ preset-authoring meta rule. Resolve the dialogue language on every user message from the
7
+ always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
8
+ is the detailed reference. A slash command does not gate resolution.
8
9
 
9
10
  ## Two halves (mandatory)
10
11
 
@@ -14,30 +15,37 @@ detailed reference.
14
15
  code, identifiers, logs, or artifacts.
15
16
  2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
16
17
  human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
17
- escalations are written in the resolved language. Every such message — no exception.
18
+ escalations are written in the resolved language. Every such message — a question, a one-liner, or a
19
+ slash command — no exception.
18
20
 
19
- ## Resolution (ordered)
21
+ ## Resolution (every user message)
20
22
 
21
- 1. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
23
+ Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
24
+ command. Those commands reuse the language this step already resolved.
25
+
26
+ 1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
27
+ `prompt.md`.
28
+ 2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
22
29
  **nearest** `.ai.local` wins in a monorepo.
23
- 2. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
30
+ 3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
24
31
  the request.
25
- 3. Otherwise **English** (English-only / ambiguous prompt).
32
+ 4. Otherwise **English** (English-only / ambiguous prompt).
26
33
 
27
- The `.ai.local` setting **wins over** a mid-task prompt in another language. On a disagreement, follow the
34
+ The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
28
35
  setting and surface the mismatch **once in one sentence** — never block, and **never ask a
29
- language-confirmation question**.
36
+ language-confirmation question**. A message with no task still resolves on this turn.
30
37
 
31
38
  ## Per-task persistence
32
39
 
33
- Resolve the language once at task start and reuse it for the whole task — every pipeline agent and every
34
- `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header (`language: <BCP-47>`) and an
35
- append-only `.memlog.md` `event:` checkpoint. A later correction is an append-only memlog event (the fenced
36
- verbatim block is frozen). Never store it in `status.json`, `metrics.json`, or an `artifacts[]` body.
40
+ When a task artifact is created, record the language already resolved above and reuse it for the whole
41
+ task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
42
+ (`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
43
+ append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
44
+ `metrics.json`, or an `artifacts[]` body.
37
45
 
38
46
  ## See also
39
47
 
40
- - `ai-local-overlay` — reads `.ai.local` every turn; carries the setting read.
41
- - `agent-team-intake` — resolves the language when a work request starts.
48
+ - `ai-local-overlay` — always-on; resolves the language on every user message.
49
+ - `agent-team-intake` — persists the already-resolved language when a work request starts.
42
50
  - `agent-team-orchestrator` — carries the resolved language across steps.
43
51
  - `agent-artifact-contracts` — the `prompt.md` header contract.
@@ -31,6 +31,4 @@ Boundaries — **`architecture-boundaries.md`**. Tooling — requestable **`php-
31
31
 
32
32
  ## Language
33
33
 
34
- Development, reasoning, and artifacts stay **English**; every user-facing message (questions, gate prompts,
35
- status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
36
- (`## Language`) or the prompt, else English. See `language-policy`.
34
+ On every user message, before you answer, resolve the dialogue language and reply in the user's **native language**, including a question and a message without a slash command. Order: stored task `language:`, else `.ai.local` (`## Language`), else the prompt, else English. Development, reasoning, and artifacts stay **English**. Commands reuse this resolution. See `language-policy`.
@@ -7,9 +7,7 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
7
7
  - Treat this file as the **shared** entry for any agent (Cursor, Claude Code, Mavis, OpenCode, or other).
8
8
  - All four platforms ship **the same** root file. `init` overwrites it; content does not depend on which tool ran last.
9
9
  - Tool maps (agent-team tables, slash commands) live in `.cursor/AGENTS.md` / `.claude/CLAUDE.md` / `.mavis/AGENTS.md` / `.opencode/AGENTS.md` — use them when that tool is installed.
10
- - **Language.** Keep development, reasoning, and artifacts in **English**; answer the user in their
11
- **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English) for
12
- every question, gate prompt, status, and summary — see the `language-policy` rule.
10
+ - **Language.** On every user message, before you answer, resolve the dialogue language and answer in the user's **native language** (`.ai.local/conventions.md` `## Language`, else the prompt language, else English), including a question and a message without a slash command. Commands reuse this resolution. Development, reasoning, and artifacts stay **English**. See the `language-policy` rule.
13
11
  - Install:
14
12
 
15
13
  ```bash
@@ -3,7 +3,7 @@
3
3
  "platform": "opencode",
4
4
  "stack": "svelte",
5
5
  "semanticSource": "cursor/svelte",
6
- "sourceRevision": "a3a0ff3f0d11d42b4bebd57e625cc6cf865531b4a389761fd5067aaf9ad5310c",
6
+ "sourceRevision": "22a8426a46dc24705ba2d9229b1a14f46f80826cc228174bc3f4073d03b83fd4",
7
7
  "entries": [
8
8
  {
9
9
  "source": "AGENTS.md",
@@ -68,9 +68,7 @@ Before any specialist runs, `goal.md` is written and shown with the plan. When t
68
68
 
69
69
  ## Dialogue language
70
70
 
71
- Resolve the user-facing language once at task start (`.ai.local` `## Language` → prompt language → English;
72
- mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
73
- user-facing message and `/task-continue`. See `language-policy`.
71
+ The always-on language rule already resolved the user-facing language on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant). Record that tag in the `prompt.md` header (`language: <BCP-47>`) and reuse it for every user-facing message and `/task-continue`. This command records the tag. See `language-policy`.
74
72
 
75
73
 
76
74
  ## Metrics
@@ -9,6 +9,6 @@ When the user message looks like a **work request** (implement, add, fix, refact
9
9
  3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
10
10
  4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
11
11
  5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
12
- 6. **Resolve the dialogue language before you speak to the user.** Read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); else infer from the prompt language; else English (mixed → dominant). Persist it once in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line, and reuse it for the whole task. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
12
+ 6. **Reuse the dialogue language already resolved on this turn** (always-on `ai-local-overlay` / **language-policy**). A question and a message without a slash command still resolve before you speak. When this request writes `prompt.md`, persist that tag once in the header (`language: <BCP-47>`) + a `.memlog.md` `event:` line. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
13
13
 
14
14
  Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
@@ -221,7 +221,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
221
221
  8. When all steps complete, suggest `/technical-retro <slug>`.
222
222
  9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
223
223
  10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). It is not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact. Also append every **subsequent user-authored** prompt for the same slug — a new user message while the slug is active, `/task-continue` arguments, human-gate feedback, a clarification answer — to the append-only `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; never rewrite or duplicate an entry; never log machine-generated hook `followup_message` or empty/argument-less invocations). Register its path on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
224
- 11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
224
+ 11. **Answer the user in the resolved dialogue language for the whole task.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English). Pass that tag to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
225
225
  12. **Invoke the ready set, and never advance before reconciliation.** In graph mode the hook computes the ready queue; invoke exactly the handoff's agent list (a wave in one assistant turn, multiple Task calls) and do not start any next step from your own reasoning until the hook records the join and emits the next handoff. The wave is the join unit; `status.joinedSlots` is the satisfaction ledger. The role pipeline and the engineering graph are two linked objects: `pipeline.json` `steps[].dependsOn` still decides which agent runs; the decomposition ready set only chooses rows inside the active step. Reviewer and QA steps stay on the pipeline.
226
226
  13. **Only a proven conflict-free set is `parallel: true`.** Disjoint declared `writeScopes`, distinct agents, distinct `artifactOutputIds`, no shared lifecycle file; `mockup-reviewer` is never parallel (its FAIL gate is serial). See **plan-graph** § Conflict model. Each decomposition task lists the repo paths it may create or modify. That list is a subset of the implementing step's `writeScopes[]` when the step declares `writeScopes`. Tasks with no `dependsOn` path between them keep those lists disjoint; a shared path stays sequential. `docs/specs/**` or `openspec/**` paths and `app/**` paths stay in different lists. `steps[].writeScopes[]` stays the role-level authority. Reviewer steps stay team-artifact only.
227
227
 
@@ -229,7 +229,7 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
229
229
 
230
230
  - **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
231
231
  - **Append follow-up prompts.** When a user-authored prompt arrives for an active slug (new message, `/task-continue` args, gate feedback, clarification), append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` — `seq` = current max + 1, create on first append, never rewrite or duplicate an entry, never touch `prompt.md`. Exclude hook `followup_message` and empty/argument-less invocations. Not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt log.
232
- - **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
232
+ - **Answer in the resolved dialogue language.** The always-on language rule already resolved it on this turn (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins). Reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
233
233
  - Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
234
234
  - If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
235
235
  - Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
@@ -10,7 +10,7 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
10
10
  4. **Activate seeds** — if `.ai.local/rules-library/<seed>.md` on the active chain matches the task, treat it as the applicable local rule and tell the owner to move it into that overlay's `rules/`. Seeds stay inactive until moved. Do not read the whole library up front.
11
11
  5. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
12
12
  6. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If the probe prints `overlays=0`, do NOT mention this rule.
13
- 7. **Language** — reply to the user in their **native language**: use the tag already stored for the task; when it is absent, read the `## Language` section of the nearest `conventions.md` on the chain; if unset, infer from the prompt language; else English. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
13
+ 7. **Language** — on every user message, before you answer, resolve the dialogue language and reply in the user's **native language**. Order: `language:` already stored for an active task; else the `## Language` section of the nearest `conventions.md`; else infer from the prompt (mixed → dominant); else English. A question and a message without a slash command still resolve. Commands reuse this resolution. A newly entered overlay does not switch the task language. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
14
14
  8. **Re-read** — before answering a question that touches a local rule, re-read that file.
15
15
 
16
16
  If the script is missing, read the root `.ai.local/rules/*.md` and `.ai.local/conventions.md` only.
@@ -2,9 +2,10 @@
2
2
 
3
3
  # Language policy
4
4
 
5
- Behavior contract for **every agent and command in any consumer repo** — stack-agnostic. Not a
6
- preset-authoring meta rule. The essentials are anchored on the always-on surfaces; this rule is the
7
- detailed reference.
5
+ Behavior contract for **every agent in any consumer repo** — stack-agnostic. Not a
6
+ preset-authoring meta rule. Resolve the dialogue language on every user message from the
7
+ always-on surfaces (`ai-local-overlay`, the stack app-core, root `AGENTS.md`). This file
8
+ is the detailed reference. A slash command does not gate resolution.
8
9
 
9
10
  ## Two halves (mandatory)
10
11
 
@@ -14,30 +15,37 @@ detailed reference.
14
15
  code, identifiers, logs, or artifacts.
15
16
  2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
16
17
  human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
17
- escalations are written in the resolved language. Every such message — no exception.
18
+ escalations are written in the resolved language. Every such message — a question, a one-liner, or a
19
+ slash command — no exception.
18
20
 
19
- ## Resolution (ordered)
21
+ ## Resolution (every user message)
20
22
 
21
- 1. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
23
+ Resolve on every user message, before you answer. Do not wait for `/task`, `/update`, or any other
24
+ command. Those commands reuse the language this step already resolved.
25
+
26
+ 1. **Active task tag** — when a task is in progress, the `language:` value already stored in that task's
27
+ `prompt.md`.
28
+ 2. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
22
29
  **nearest** `.ai.local` wins in a monorepo.
23
- 2. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
30
+ 3. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
24
31
  the request.
25
- 3. Otherwise **English** (English-only / ambiguous prompt).
32
+ 4. Otherwise **English** (English-only / ambiguous prompt).
26
33
 
27
- The `.ai.local` setting **wins over** a mid-task prompt in another language. On a disagreement, follow the
34
+ The `.ai.local` setting **wins over** a later prompt in another language. On a disagreement, follow the
28
35
  setting and surface the mismatch **once in one sentence** — never block, and **never ask a
29
- language-confirmation question**.
36
+ language-confirmation question**. A message with no task still resolves on this turn.
30
37
 
31
38
  ## Per-task persistence
32
39
 
33
- Resolve the language once at task start and reuse it for the whole task — every pipeline agent and every
34
- `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header (`language: <BCP-47>`) and an
35
- append-only `.memlog.md` `event:` checkpoint. A later correction is an append-only memlog event (the fenced
36
- verbatim block is frozen). Never store it in `status.json`, `metrics.json`, or an `artifacts[]` body.
40
+ When a task artifact is created, record the language already resolved above and reuse it for the whole
41
+ task — every pipeline agent and every `/task-continue`. Persist the BCP-47 tag in the `prompt.md` header
42
+ (`language: <BCP-47>`) and an append-only `.memlog.md` `event:` checkpoint. A later correction is an
43
+ append-only memlog event (the fenced verbatim block is frozen). Never store it in `status.json`,
44
+ `metrics.json`, or an `artifacts[]` body.
37
45
 
38
46
  ## See also
39
47
 
40
- - `ai-local-overlay` — reads `.ai.local` every turn; carries the setting read.
41
- - `agent-team-intake` — resolves the language when a work request starts.
48
+ - `ai-local-overlay` — always-on; resolves the language on every user message.
49
+ - `agent-team-intake` — persists the already-resolved language when a work request starts.
42
50
  - `agent-team-orchestrator` — carries the resolved language across steps.
43
51
  - `agent-artifact-contracts` — the `prompt.md` header contract.
@@ -41,6 +41,4 @@ Boundaries — **`architecture-boundaries`**. Imports `$lib/types`, `$lib/api` (
41
41
 
42
42
  ## Language
43
43
 
44
- Development, reasoning, and artifacts stay **English**; every user-facing message (questions, gate prompts,
45
- status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
46
- (`## Language`) or the prompt, else English. See `language-policy`.
44
+ On every user message, before you answer, resolve the dialogue language and reply in the user's **native language**, including a question and a message without a slash command. Order: stored task `language:`, else `.ai.local` (`## Language`), else the prompt, else English. Development, reasoning, and artifacts stay **English**. Commands reuse this resolution. See `language-policy`.