@bonesofspring/ai-rules 0.2.72 → 0.2.74

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 (634) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +7 -6
  3. package/bin/lib/ai-local-drift.js +4 -4
  4. package/bin/lib/engine-scripts.js +10 -0
  5. package/bin/lib/seed-ai-local-team.js +9 -5
  6. package/docs/TEAM-DB.md +105 -9
  7. package/docs/openapi/team-db.v1.json +1164 -224
  8. package/package.json +1 -1
  9. package/presets/_shared/ai-local/scripts/action-signals.mjs +225 -0
  10. package/presets/_shared/ai-local/scripts/actions-report.mjs +210 -0
  11. package/presets/_shared/ai-local/scripts/manifest.mjs +19 -1
  12. package/presets/_shared/ai-local/scripts/processes.mjs +5 -4
  13. package/presets/_shared/ai-local/scripts/rr-scheduler-start.mjs +161 -0
  14. package/presets/_shared/ai-local/scripts/team-db-api.mjs +347 -9
  15. package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +309 -4
  16. package/presets/_shared/ai-local/scripts/team-db-project.mjs +312 -36
  17. package/presets/_shared/ai-local/scripts/team-db-schema.mjs +86 -1
  18. package/presets/_shared/ai-local/scripts/team-db.mjs +125 -40
  19. package/presets/_shared/ai-local/scripts/tracker-planned-drain.mjs +335 -0
  20. package/presets/_shared/core/agent-team/agent-artifact-contracts.md +9 -0
  21. package/presets/_shared/core/agent-team/agent-team-intake.md +2 -2
  22. package/presets/_shared/core/quality/self-review-and-context-hygiene.md +1 -0
  23. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +15 -1
  24. package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
  25. package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
  26. package/presets/claude/android-kotlin/agents/debugger.md +1 -1
  27. package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
  28. package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
  29. package/presets/claude/android-kotlin/commands/README.md +4 -0
  30. package/presets/claude/android-kotlin/commands/rr-scheduler-start.md +32 -0
  31. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +15 -1
  32. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +2 -2
  33. package/presets/claude/go/agents/build-verifier.md +1 -1
  34. package/presets/claude/go/agents/code-reviewer.md +1 -1
  35. package/presets/claude/go/agents/debugger.md +1 -1
  36. package/presets/claude/go/agents/feature-developer.md +1 -1
  37. package/presets/claude/go/agents/task-analyst.md +1 -1
  38. package/presets/claude/go/commands/README.md +4 -0
  39. package/presets/claude/go/commands/rr-scheduler-start.md +32 -0
  40. package/presets/claude/go/hooks/chain-team-phases.sh +15 -1
  41. package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -2
  42. package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
  43. package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
  44. package/presets/claude/ios-swift/agents/debugger.md +1 -1
  45. package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
  46. package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
  47. package/presets/claude/ios-swift/commands/README.md +4 -0
  48. package/presets/claude/ios-swift/commands/rr-scheduler-start.md +32 -0
  49. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +15 -1
  50. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -2
  51. package/presets/claude/java/agents/build-verifier.md +1 -1
  52. package/presets/claude/java/agents/code-reviewer.md +1 -1
  53. package/presets/claude/java/agents/debugger.md +1 -1
  54. package/presets/claude/java/agents/feature-developer.md +1 -1
  55. package/presets/claude/java/agents/task-analyst.md +1 -1
  56. package/presets/claude/java/commands/README.md +4 -0
  57. package/presets/claude/java/commands/rr-scheduler-start.md +32 -0
  58. package/presets/claude/java/hooks/chain-team-phases.sh +15 -1
  59. package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -2
  60. package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
  61. package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
  62. package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
  63. package/presets/claude/mcp-ts/commands/README.md +4 -0
  64. package/presets/claude/mcp-ts/commands/rr-scheduler-start.md +32 -0
  65. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +15 -1
  66. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +2 -2
  67. package/presets/claude/mol/agents/build-verifier.md +1 -1
  68. package/presets/claude/mol/agents/code-reviewer.md +1 -1
  69. package/presets/claude/mol/agents/debugger.md +1 -1
  70. package/presets/claude/mol/agents/feature-developer.md +1 -1
  71. package/presets/claude/mol/agents/task-analyst.md +1 -1
  72. package/presets/claude/mol/commands/README.md +4 -0
  73. package/presets/claude/mol/commands/rr-scheduler-start.md +32 -0
  74. package/presets/claude/mol/hooks/chain-team-phases.sh +15 -1
  75. package/presets/claude/mol/rules/tooling-and-review/agent-team-intake.md +2 -2
  76. package/presets/claude/next/REPO_AGENTS.md +16 -0
  77. package/presets/claude/next/agents/accessibility-reviewer.md +4 -1
  78. package/presets/claude/next/agents/api-contract-reviewer.md +5 -2
  79. package/presets/claude/next/agents/build-verifier.md +6 -3
  80. package/presets/claude/next/agents/ci-investigator.md +1 -1
  81. package/presets/claude/next/agents/code-reviewer.md +7 -4
  82. package/presets/claude/next/agents/codebase-analyzer.md +4 -1
  83. package/presets/claude/next/agents/debugger.md +2 -2
  84. package/presets/claude/next/agents/feature-developer.md +2 -2
  85. package/presets/claude/next/agents/migration-specialist.md +4 -1
  86. package/presets/claude/next/agents/mockup-reviewer.md +4 -1
  87. package/presets/claude/next/agents/openspec-author.md +4 -1
  88. package/presets/claude/next/agents/performance-auditor.md +4 -1
  89. package/presets/claude/next/agents/playwright-test-generator.md +5 -2
  90. package/presets/claude/next/agents/playwright-test-healer.md +5 -2
  91. package/presets/claude/next/agents/playwright-test-planner.md +5 -2
  92. package/presets/claude/next/agents/qa-tester.md +5 -2
  93. package/presets/claude/next/agents/security-reviewer.md +4 -1
  94. package/presets/claude/next/agents/solution-architect.md +4 -1
  95. package/presets/claude/next/agents/task-analyst.md +5 -2
  96. package/presets/claude/next/agents/task-router.md +4 -1
  97. package/presets/claude/next/agents/tech-writer.md +4 -1
  98. package/presets/claude/next/agents/unit-test-generator.md +5 -2
  99. package/presets/claude/next/agents/unit-test-healer.md +5 -2
  100. package/presets/claude/next/agents/unit-test-planner.md +5 -2
  101. package/presets/claude/next/ai-local/conventions.md +26 -1
  102. package/presets/claude/next/commands/README.md +4 -0
  103. package/presets/claude/next/commands/rr-scheduler-start.md +32 -0
  104. package/presets/claude/next/hooks/chain-team-phases.sh +15 -1
  105. package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -2
  106. package/presets/claude/nuxt/agents/build-verifier.md +1 -1
  107. package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
  108. package/presets/claude/nuxt/agents/debugger.md +1 -1
  109. package/presets/claude/nuxt/agents/feature-developer.md +1 -1
  110. package/presets/claude/nuxt/agents/task-analyst.md +1 -1
  111. package/presets/claude/nuxt/commands/README.md +4 -0
  112. package/presets/claude/nuxt/commands/rr-scheduler-start.md +32 -0
  113. package/presets/claude/nuxt/hooks/chain-team-phases.sh +15 -1
  114. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +2 -2
  115. package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
  116. package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
  117. package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
  118. package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
  119. package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
  120. package/presets/claude/php-hexagonal/commands/README.md +4 -0
  121. package/presets/claude/php-hexagonal/commands/rr-scheduler-start.md +32 -0
  122. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +15 -1
  123. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -2
  124. package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
  125. package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
  126. package/presets/claude/php-laravel/agents/debugger.md +1 -1
  127. package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
  128. package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
  129. package/presets/claude/php-laravel/commands/README.md +4 -0
  130. package/presets/claude/php-laravel/commands/rr-scheduler-start.md +32 -0
  131. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +15 -1
  132. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +2 -2
  133. package/presets/claude/svelte/agents/build-verifier.md +1 -1
  134. package/presets/claude/svelte/agents/code-reviewer.md +1 -1
  135. package/presets/claude/svelte/agents/debugger.md +1 -1
  136. package/presets/claude/svelte/agents/feature-developer.md +1 -1
  137. package/presets/claude/svelte/agents/task-analyst.md +1 -1
  138. package/presets/claude/svelte/commands/README.md +4 -0
  139. package/presets/claude/svelte/commands/rr-scheduler-start.md +32 -0
  140. package/presets/claude/svelte/hooks/chain-team-phases.sh +15 -1
  141. package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -2
  142. package/presets/cursor/android-kotlin/agents/build-verifier.md +1 -1
  143. package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
  144. package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
  145. package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
  146. package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
  147. package/presets/cursor/android-kotlin/commands/README.md +4 -0
  148. package/presets/cursor/android-kotlin/commands/rr-scheduler-start.md +32 -0
  149. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +15 -1
  150. package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +2 -2
  151. package/presets/cursor/go/agents/build-verifier.md +1 -1
  152. package/presets/cursor/go/agents/code-reviewer.md +1 -1
  153. package/presets/cursor/go/agents/debugger.md +1 -1
  154. package/presets/cursor/go/agents/feature-developer.md +1 -1
  155. package/presets/cursor/go/agents/task-analyst.md +1 -1
  156. package/presets/cursor/go/commands/README.md +4 -0
  157. package/presets/cursor/go/commands/rr-scheduler-start.md +32 -0
  158. package/presets/cursor/go/hooks/chain-team-phases.sh +15 -1
  159. package/presets/cursor/go/rules/agent-team-intake.mdc +2 -2
  160. package/presets/cursor/ios-swift/agents/build-verifier.md +1 -1
  161. package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
  162. package/presets/cursor/ios-swift/agents/debugger.md +1 -1
  163. package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
  164. package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
  165. package/presets/cursor/ios-swift/commands/README.md +4 -0
  166. package/presets/cursor/ios-swift/commands/rr-scheduler-start.md +32 -0
  167. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +15 -1
  168. package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +2 -2
  169. package/presets/cursor/java/agents/build-verifier.md +1 -1
  170. package/presets/cursor/java/agents/code-reviewer.md +1 -1
  171. package/presets/cursor/java/agents/debugger.md +1 -1
  172. package/presets/cursor/java/agents/feature-developer.md +1 -1
  173. package/presets/cursor/java/agents/task-analyst.md +1 -1
  174. package/presets/cursor/java/commands/README.md +4 -0
  175. package/presets/cursor/java/commands/rr-scheduler-start.md +32 -0
  176. package/presets/cursor/java/hooks/chain-team-phases.sh +15 -1
  177. package/presets/cursor/java/rules/agent-team-intake.mdc +2 -2
  178. package/presets/cursor/mcp-ts/agents/build-verifier.md +1 -1
  179. package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
  180. package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
  181. package/presets/cursor/mcp-ts/commands/README.md +4 -0
  182. package/presets/cursor/mcp-ts/commands/rr-scheduler-start.md +32 -0
  183. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +15 -1
  184. package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +2 -2
  185. package/presets/cursor/mol/agents/build-verifier.md +1 -1
  186. package/presets/cursor/mol/agents/code-reviewer.md +1 -1
  187. package/presets/cursor/mol/agents/debugger.md +1 -1
  188. package/presets/cursor/mol/agents/feature-developer.md +1 -1
  189. package/presets/cursor/mol/agents/task-analyst.md +1 -1
  190. package/presets/cursor/mol/commands/README.md +4 -0
  191. package/presets/cursor/mol/commands/rr-scheduler-start.md +32 -0
  192. package/presets/cursor/mol/hooks/chain-team-phases.sh +15 -1
  193. package/presets/cursor/mol/rules/agent-team-intake.mdc +2 -2
  194. package/presets/cursor/next/AGENTS.md +2 -1
  195. package/presets/cursor/next/REPO_AGENTS.md +16 -0
  196. package/presets/cursor/next/agents/build-verifier.md +1 -1
  197. package/presets/cursor/next/agents/code-reviewer.md +1 -1
  198. package/presets/cursor/next/agents/debugger.md +1 -1
  199. package/presets/cursor/next/agents/feature-developer.md +1 -1
  200. package/presets/cursor/next/agents/task-analyst.md +1 -1
  201. package/presets/cursor/next/ai-local/conventions.md +6 -1
  202. package/presets/cursor/next/commands/README.md +4 -0
  203. package/presets/cursor/next/commands/rr-scheduler-start.md +32 -0
  204. package/presets/cursor/next/hooks/chain-team-phases.sh +15 -1
  205. package/presets/cursor/next/rules/agent-team-intake.mdc +2 -2
  206. package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
  207. package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
  208. package/presets/cursor/nuxt/agents/debugger.md +1 -1
  209. package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
  210. package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
  211. package/presets/cursor/nuxt/commands/README.md +4 -0
  212. package/presets/cursor/nuxt/commands/rr-scheduler-start.md +32 -0
  213. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +15 -1
  214. package/presets/cursor/nuxt/rules/agent-team-intake.mdc +2 -2
  215. package/presets/cursor/php-hexagonal/agents/build-verifier.md +1 -1
  216. package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
  217. package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
  218. package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
  219. package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
  220. package/presets/cursor/php-hexagonal/commands/README.md +4 -0
  221. package/presets/cursor/php-hexagonal/commands/rr-scheduler-start.md +32 -0
  222. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +15 -1
  223. package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +2 -2
  224. package/presets/cursor/php-laravel/agents/build-verifier.md +1 -1
  225. package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
  226. package/presets/cursor/php-laravel/agents/debugger.md +1 -1
  227. package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
  228. package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
  229. package/presets/cursor/php-laravel/commands/README.md +4 -0
  230. package/presets/cursor/php-laravel/commands/rr-scheduler-start.md +32 -0
  231. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +15 -1
  232. package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +2 -2
  233. package/presets/cursor/svelte/agents/build-verifier.md +1 -1
  234. package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
  235. package/presets/cursor/svelte/agents/debugger.md +1 -1
  236. package/presets/cursor/svelte/agents/feature-developer.md +1 -1
  237. package/presets/cursor/svelte/agents/task-analyst.md +1 -1
  238. package/presets/cursor/svelte/commands/README.md +4 -0
  239. package/presets/cursor/svelte/commands/rr-scheduler-start.md +32 -0
  240. package/presets/cursor/svelte/hooks/chain-team-phases.sh +15 -1
  241. package/presets/cursor/svelte/rules/agent-team-intake.mdc +2 -2
  242. package/presets/mavis/android-kotlin/adapter-map.json +9 -1
  243. package/presets/mavis/android-kotlin/agents/build-verifier.md +1 -1
  244. package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
  245. package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
  246. package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
  247. package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
  248. package/presets/mavis/android-kotlin/commands/README.md +4 -0
  249. package/presets/mavis/android-kotlin/commands/rr-scheduler-start.md +27 -0
  250. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +15 -1
  251. package/presets/mavis/android-kotlin/rules/agent-team-intake.md +2 -2
  252. package/presets/mavis/go/adapter-map.json +9 -1
  253. package/presets/mavis/go/agents/build-verifier.md +1 -1
  254. package/presets/mavis/go/agents/code-reviewer.md +1 -1
  255. package/presets/mavis/go/agents/debugger.md +1 -1
  256. package/presets/mavis/go/agents/feature-developer.md +1 -1
  257. package/presets/mavis/go/agents/task-analyst.md +1 -1
  258. package/presets/mavis/go/commands/README.md +4 -0
  259. package/presets/mavis/go/commands/rr-scheduler-start.md +27 -0
  260. package/presets/mavis/go/hooks/chain-team-phases.sh +15 -1
  261. package/presets/mavis/go/rules/agent-team-intake.md +2 -2
  262. package/presets/mavis/ios-swift/adapter-map.json +9 -1
  263. package/presets/mavis/ios-swift/agents/build-verifier.md +1 -1
  264. package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
  265. package/presets/mavis/ios-swift/agents/debugger.md +1 -1
  266. package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
  267. package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
  268. package/presets/mavis/ios-swift/commands/README.md +4 -0
  269. package/presets/mavis/ios-swift/commands/rr-scheduler-start.md +27 -0
  270. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +15 -1
  271. package/presets/mavis/ios-swift/rules/agent-team-intake.md +2 -2
  272. package/presets/mavis/java/adapter-map.json +9 -1
  273. package/presets/mavis/java/agents/build-verifier.md +1 -1
  274. package/presets/mavis/java/agents/code-reviewer.md +1 -1
  275. package/presets/mavis/java/agents/debugger.md +1 -1
  276. package/presets/mavis/java/agents/feature-developer.md +1 -1
  277. package/presets/mavis/java/agents/task-analyst.md +1 -1
  278. package/presets/mavis/java/commands/README.md +4 -0
  279. package/presets/mavis/java/commands/rr-scheduler-start.md +27 -0
  280. package/presets/mavis/java/hooks/chain-team-phases.sh +15 -1
  281. package/presets/mavis/java/rules/agent-team-intake.md +2 -2
  282. package/presets/mavis/mcp-ts/adapter-map.json +9 -1
  283. package/presets/mavis/mcp-ts/agents/build-verifier.md +1 -1
  284. package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
  285. package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
  286. package/presets/mavis/mcp-ts/commands/README.md +4 -0
  287. package/presets/mavis/mcp-ts/commands/rr-scheduler-start.md +27 -0
  288. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +15 -1
  289. package/presets/mavis/mcp-ts/rules/agent-team-intake.md +2 -2
  290. package/presets/mavis/mol/adapter-map.json +9 -1
  291. package/presets/mavis/mol/agents/build-verifier.md +1 -1
  292. package/presets/mavis/mol/agents/code-reviewer.md +1 -1
  293. package/presets/mavis/mol/agents/debugger.md +1 -1
  294. package/presets/mavis/mol/agents/feature-developer.md +1 -1
  295. package/presets/mavis/mol/agents/task-analyst.md +1 -1
  296. package/presets/mavis/mol/commands/README.md +4 -0
  297. package/presets/mavis/mol/commands/rr-scheduler-start.md +27 -0
  298. package/presets/mavis/mol/hooks/chain-team-phases.sh +15 -1
  299. package/presets/mavis/mol/rules/agent-team-intake.md +2 -2
  300. package/presets/mavis/next/MAVIS.md +2 -1
  301. package/presets/mavis/next/REPO_AGENTS.md +16 -0
  302. package/presets/mavis/next/adapter-map.json +9 -1
  303. package/presets/mavis/next/agents/accessibility-reviewer.md +4 -1
  304. package/presets/mavis/next/agents/api-contract-reviewer.md +5 -2
  305. package/presets/mavis/next/agents/build-verifier.md +6 -3
  306. package/presets/mavis/next/agents/ci-investigator.md +1 -1
  307. package/presets/mavis/next/agents/code-reviewer.md +7 -4
  308. package/presets/mavis/next/agents/codebase-analyzer.md +4 -1
  309. package/presets/mavis/next/agents/debugger.md +2 -2
  310. package/presets/mavis/next/agents/feature-developer.md +2 -2
  311. package/presets/mavis/next/agents/migration-specialist.md +4 -1
  312. package/presets/mavis/next/agents/mockup-reviewer.md +4 -1
  313. package/presets/mavis/next/agents/openspec-author.md +4 -1
  314. package/presets/mavis/next/agents/performance-auditor.md +4 -1
  315. package/presets/mavis/next/agents/playwright-test-generator.md +5 -2
  316. package/presets/mavis/next/agents/playwright-test-healer.md +5 -2
  317. package/presets/mavis/next/agents/playwright-test-planner.md +5 -2
  318. package/presets/mavis/next/agents/qa-tester.md +5 -2
  319. package/presets/mavis/next/agents/security-reviewer.md +4 -1
  320. package/presets/mavis/next/agents/solution-architect.md +4 -1
  321. package/presets/mavis/next/agents/task-analyst.md +5 -2
  322. package/presets/mavis/next/agents/task-router.md +4 -1
  323. package/presets/mavis/next/agents/tech-writer.md +4 -1
  324. package/presets/mavis/next/agents/unit-test-generator.md +5 -2
  325. package/presets/mavis/next/agents/unit-test-healer.md +5 -2
  326. package/presets/mavis/next/agents/unit-test-planner.md +5 -2
  327. package/presets/mavis/next/ai-local/conventions.md +6 -1
  328. package/presets/mavis/next/commands/README.md +4 -0
  329. package/presets/mavis/next/commands/rr-scheduler-start.md +27 -0
  330. package/presets/mavis/next/hooks/chain-team-phases.sh +15 -1
  331. package/presets/mavis/next/rules/agent-team-intake.md +2 -2
  332. package/presets/mavis/nuxt/adapter-map.json +9 -1
  333. package/presets/mavis/nuxt/agents/build-verifier.md +1 -1
  334. package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
  335. package/presets/mavis/nuxt/agents/debugger.md +1 -1
  336. package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
  337. package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
  338. package/presets/mavis/nuxt/commands/README.md +4 -0
  339. package/presets/mavis/nuxt/commands/rr-scheduler-start.md +27 -0
  340. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +15 -1
  341. package/presets/mavis/nuxt/rules/agent-team-intake.md +2 -2
  342. package/presets/mavis/php-hexagonal/adapter-map.json +9 -1
  343. package/presets/mavis/php-hexagonal/agents/build-verifier.md +1 -1
  344. package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
  345. package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
  346. package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
  347. package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
  348. package/presets/mavis/php-hexagonal/commands/README.md +4 -0
  349. package/presets/mavis/php-hexagonal/commands/rr-scheduler-start.md +27 -0
  350. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +15 -1
  351. package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +2 -2
  352. package/presets/mavis/php-laravel/adapter-map.json +9 -1
  353. package/presets/mavis/php-laravel/agents/build-verifier.md +1 -1
  354. package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
  355. package/presets/mavis/php-laravel/agents/debugger.md +1 -1
  356. package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
  357. package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
  358. package/presets/mavis/php-laravel/commands/README.md +4 -0
  359. package/presets/mavis/php-laravel/commands/rr-scheduler-start.md +27 -0
  360. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +15 -1
  361. package/presets/mavis/php-laravel/rules/agent-team-intake.md +2 -2
  362. package/presets/mavis/svelte/adapter-map.json +9 -1
  363. package/presets/mavis/svelte/agents/build-verifier.md +1 -1
  364. package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
  365. package/presets/mavis/svelte/agents/debugger.md +1 -1
  366. package/presets/mavis/svelte/agents/feature-developer.md +1 -1
  367. package/presets/mavis/svelte/agents/task-analyst.md +1 -1
  368. package/presets/mavis/svelte/commands/README.md +4 -0
  369. package/presets/mavis/svelte/commands/rr-scheduler-start.md +27 -0
  370. package/presets/mavis/svelte/hooks/chain-team-phases.sh +15 -1
  371. package/presets/mavis/svelte/rules/agent-team-intake.md +2 -2
  372. package/presets/opencode/android-kotlin/adapter-map.json +9 -1
  373. package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
  374. package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
  375. package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
  376. package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
  377. package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
  378. package/presets/opencode/android-kotlin/commands/README.md +4 -0
  379. package/presets/opencode/android-kotlin/commands/rr-scheduler-start.md +35 -0
  380. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +15 -1
  381. package/presets/opencode/android-kotlin/rules/agent-team-intake.md +2 -2
  382. package/presets/opencode/go/adapter-map.json +9 -1
  383. package/presets/opencode/go/agents/build-verifier.md +1 -1
  384. package/presets/opencode/go/agents/code-reviewer.md +1 -1
  385. package/presets/opencode/go/agents/debugger.md +1 -1
  386. package/presets/opencode/go/agents/feature-developer.md +1 -1
  387. package/presets/opencode/go/agents/task-analyst.md +1 -1
  388. package/presets/opencode/go/commands/README.md +4 -0
  389. package/presets/opencode/go/commands/rr-scheduler-start.md +35 -0
  390. package/presets/opencode/go/hooks/chain-team-phases.sh +15 -1
  391. package/presets/opencode/go/rules/agent-team-intake.md +2 -2
  392. package/presets/opencode/ios-swift/adapter-map.json +9 -1
  393. package/presets/opencode/ios-swift/agents/build-verifier.md +1 -1
  394. package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
  395. package/presets/opencode/ios-swift/agents/debugger.md +1 -1
  396. package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
  397. package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
  398. package/presets/opencode/ios-swift/commands/README.md +4 -0
  399. package/presets/opencode/ios-swift/commands/rr-scheduler-start.md +35 -0
  400. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +15 -1
  401. package/presets/opencode/ios-swift/rules/agent-team-intake.md +2 -2
  402. package/presets/opencode/java/adapter-map.json +9 -1
  403. package/presets/opencode/java/agents/build-verifier.md +1 -1
  404. package/presets/opencode/java/agents/code-reviewer.md +1 -1
  405. package/presets/opencode/java/agents/debugger.md +1 -1
  406. package/presets/opencode/java/agents/feature-developer.md +1 -1
  407. package/presets/opencode/java/agents/task-analyst.md +1 -1
  408. package/presets/opencode/java/commands/README.md +4 -0
  409. package/presets/opencode/java/commands/rr-scheduler-start.md +35 -0
  410. package/presets/opencode/java/hooks/chain-team-phases.sh +15 -1
  411. package/presets/opencode/java/rules/agent-team-intake.md +2 -2
  412. package/presets/opencode/mcp-ts/adapter-map.json +9 -1
  413. package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
  414. package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
  415. package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
  416. package/presets/opencode/mcp-ts/commands/README.md +4 -0
  417. package/presets/opencode/mcp-ts/commands/rr-scheduler-start.md +35 -0
  418. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +15 -1
  419. package/presets/opencode/mcp-ts/rules/agent-team-intake.md +2 -2
  420. package/presets/opencode/mol/adapter-map.json +9 -1
  421. package/presets/opencode/mol/agents/build-verifier.md +1 -1
  422. package/presets/opencode/mol/agents/code-reviewer.md +1 -1
  423. package/presets/opencode/mol/agents/debugger.md +1 -1
  424. package/presets/opencode/mol/agents/feature-developer.md +1 -1
  425. package/presets/opencode/mol/agents/task-analyst.md +1 -1
  426. package/presets/opencode/mol/commands/README.md +4 -0
  427. package/presets/opencode/mol/commands/rr-scheduler-start.md +35 -0
  428. package/presets/opencode/mol/hooks/chain-team-phases.sh +15 -1
  429. package/presets/opencode/mol/rules/agent-team-intake.md +2 -2
  430. package/presets/opencode/next/OPENCODE.md +2 -1
  431. package/presets/opencode/next/REPO_AGENTS.md +16 -0
  432. package/presets/opencode/next/adapter-map.json +9 -1
  433. package/presets/opencode/next/agents/accessibility-reviewer.md +4 -1
  434. package/presets/opencode/next/agents/api-contract-reviewer.md +5 -2
  435. package/presets/opencode/next/agents/build-verifier.md +6 -3
  436. package/presets/opencode/next/agents/ci-investigator.md +1 -1
  437. package/presets/opencode/next/agents/code-reviewer.md +7 -4
  438. package/presets/opencode/next/agents/codebase-analyzer.md +4 -1
  439. package/presets/opencode/next/agents/debugger.md +2 -2
  440. package/presets/opencode/next/agents/feature-developer.md +2 -2
  441. package/presets/opencode/next/agents/migration-specialist.md +4 -1
  442. package/presets/opencode/next/agents/mockup-reviewer.md +4 -1
  443. package/presets/opencode/next/agents/openspec-author.md +4 -1
  444. package/presets/opencode/next/agents/performance-auditor.md +4 -1
  445. package/presets/opencode/next/agents/playwright-test-generator.md +5 -2
  446. package/presets/opencode/next/agents/playwright-test-healer.md +5 -2
  447. package/presets/opencode/next/agents/playwright-test-planner.md +5 -2
  448. package/presets/opencode/next/agents/qa-tester.md +5 -2
  449. package/presets/opencode/next/agents/security-reviewer.md +4 -1
  450. package/presets/opencode/next/agents/solution-architect.md +4 -1
  451. package/presets/opencode/next/agents/task-analyst.md +5 -2
  452. package/presets/opencode/next/agents/task-router.md +4 -1
  453. package/presets/opencode/next/agents/tech-writer.md +4 -1
  454. package/presets/opencode/next/agents/unit-test-generator.md +5 -2
  455. package/presets/opencode/next/agents/unit-test-healer.md +5 -2
  456. package/presets/opencode/next/agents/unit-test-planner.md +5 -2
  457. package/presets/opencode/next/ai-local/conventions.md +6 -1
  458. package/presets/opencode/next/commands/README.md +4 -0
  459. package/presets/opencode/next/commands/rr-scheduler-start.md +35 -0
  460. package/presets/opencode/next/hooks/chain-team-phases.sh +15 -1
  461. package/presets/opencode/next/rules/agent-team-intake.md +2 -2
  462. package/presets/opencode/nuxt/adapter-map.json +9 -1
  463. package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
  464. package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
  465. package/presets/opencode/nuxt/agents/debugger.md +1 -1
  466. package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
  467. package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
  468. package/presets/opencode/nuxt/commands/README.md +4 -0
  469. package/presets/opencode/nuxt/commands/rr-scheduler-start.md +35 -0
  470. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +15 -1
  471. package/presets/opencode/nuxt/rules/agent-team-intake.md +2 -2
  472. package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
  473. package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
  474. package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
  475. package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
  476. package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
  477. package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
  478. package/presets/opencode/php-hexagonal/commands/README.md +4 -0
  479. package/presets/opencode/php-hexagonal/commands/rr-scheduler-start.md +35 -0
  480. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +15 -1
  481. package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +2 -2
  482. package/presets/opencode/php-laravel/adapter-map.json +9 -1
  483. package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
  484. package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
  485. package/presets/opencode/php-laravel/agents/debugger.md +1 -1
  486. package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
  487. package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
  488. package/presets/opencode/php-laravel/commands/README.md +4 -0
  489. package/presets/opencode/php-laravel/commands/rr-scheduler-start.md +35 -0
  490. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +15 -1
  491. package/presets/opencode/php-laravel/rules/agent-team-intake.md +2 -2
  492. package/presets/opencode/plugins/output-guard/README.md +56 -9
  493. package/presets/opencode/plugins/output-guard/actions.ts +201 -0
  494. package/presets/opencode/plugins/output-guard/index.ts +147 -6
  495. package/presets/opencode/plugins/output-guard/rewrite.ts +15 -9
  496. package/presets/opencode/svelte/adapter-map.json +9 -1
  497. package/presets/opencode/svelte/agents/build-verifier.md +1 -1
  498. package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
  499. package/presets/opencode/svelte/agents/debugger.md +1 -1
  500. package/presets/opencode/svelte/agents/feature-developer.md +1 -1
  501. package/presets/opencode/svelte/agents/task-analyst.md +1 -1
  502. package/presets/opencode/svelte/commands/README.md +4 -0
  503. package/presets/opencode/svelte/commands/rr-scheduler-start.md +35 -0
  504. package/presets/opencode/svelte/hooks/chain-team-phases.sh +15 -1
  505. package/presets/opencode/svelte/rules/agent-team-intake.md +2 -2
  506. package/presets/zcode/android-kotlin/adapter-map.json +9 -1
  507. package/presets/zcode/android-kotlin/agents/build-verifier.md +1 -1
  508. package/presets/zcode/android-kotlin/agents/code-reviewer.md +1 -1
  509. package/presets/zcode/android-kotlin/agents/debugger.md +1 -1
  510. package/presets/zcode/android-kotlin/agents/feature-developer.md +1 -1
  511. package/presets/zcode/android-kotlin/agents/task-analyst.md +1 -1
  512. package/presets/zcode/android-kotlin/commands/README.md +4 -0
  513. package/presets/zcode/android-kotlin/commands/rr-scheduler-start.md +35 -0
  514. package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +15 -1
  515. package/presets/zcode/android-kotlin/rules/agent-team-intake.md +2 -2
  516. package/presets/zcode/go/adapter-map.json +9 -1
  517. package/presets/zcode/go/agents/build-verifier.md +1 -1
  518. package/presets/zcode/go/agents/code-reviewer.md +1 -1
  519. package/presets/zcode/go/agents/debugger.md +1 -1
  520. package/presets/zcode/go/agents/feature-developer.md +1 -1
  521. package/presets/zcode/go/agents/task-analyst.md +1 -1
  522. package/presets/zcode/go/commands/README.md +4 -0
  523. package/presets/zcode/go/commands/rr-scheduler-start.md +35 -0
  524. package/presets/zcode/go/hooks/chain-team-phases.sh +15 -1
  525. package/presets/zcode/go/rules/agent-team-intake.md +2 -2
  526. package/presets/zcode/ios-swift/adapter-map.json +9 -1
  527. package/presets/zcode/ios-swift/agents/build-verifier.md +1 -1
  528. package/presets/zcode/ios-swift/agents/code-reviewer.md +1 -1
  529. package/presets/zcode/ios-swift/agents/debugger.md +1 -1
  530. package/presets/zcode/ios-swift/agents/feature-developer.md +1 -1
  531. package/presets/zcode/ios-swift/agents/task-analyst.md +1 -1
  532. package/presets/zcode/ios-swift/commands/README.md +4 -0
  533. package/presets/zcode/ios-swift/commands/rr-scheduler-start.md +35 -0
  534. package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +15 -1
  535. package/presets/zcode/ios-swift/rules/agent-team-intake.md +2 -2
  536. package/presets/zcode/java/adapter-map.json +9 -1
  537. package/presets/zcode/java/agents/build-verifier.md +1 -1
  538. package/presets/zcode/java/agents/code-reviewer.md +1 -1
  539. package/presets/zcode/java/agents/debugger.md +1 -1
  540. package/presets/zcode/java/agents/feature-developer.md +1 -1
  541. package/presets/zcode/java/agents/task-analyst.md +1 -1
  542. package/presets/zcode/java/commands/README.md +4 -0
  543. package/presets/zcode/java/commands/rr-scheduler-start.md +35 -0
  544. package/presets/zcode/java/hooks/chain-team-phases.sh +15 -1
  545. package/presets/zcode/java/rules/agent-team-intake.md +2 -2
  546. package/presets/zcode/mcp-ts/adapter-map.json +9 -1
  547. package/presets/zcode/mcp-ts/agents/build-verifier.md +1 -1
  548. package/presets/zcode/mcp-ts/agents/feature-developer.md +1 -1
  549. package/presets/zcode/mcp-ts/agents/task-analyst.md +1 -1
  550. package/presets/zcode/mcp-ts/commands/README.md +4 -0
  551. package/presets/zcode/mcp-ts/commands/rr-scheduler-start.md +35 -0
  552. package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +15 -1
  553. package/presets/zcode/mcp-ts/rules/agent-team-intake.md +2 -2
  554. package/presets/zcode/mol/adapter-map.json +9 -1
  555. package/presets/zcode/mol/agents/build-verifier.md +1 -1
  556. package/presets/zcode/mol/agents/code-reviewer.md +1 -1
  557. package/presets/zcode/mol/agents/debugger.md +1 -1
  558. package/presets/zcode/mol/agents/feature-developer.md +1 -1
  559. package/presets/zcode/mol/agents/task-analyst.md +1 -1
  560. package/presets/zcode/mol/commands/README.md +4 -0
  561. package/presets/zcode/mol/commands/rr-scheduler-start.md +35 -0
  562. package/presets/zcode/mol/hooks/chain-team-phases.sh +15 -1
  563. package/presets/zcode/mol/rules/agent-team-intake.md +2 -2
  564. package/presets/zcode/next/REPO_AGENTS.md +16 -0
  565. package/presets/zcode/next/adapter-map.json +9 -1
  566. package/presets/zcode/next/agents/accessibility-reviewer.md +4 -1
  567. package/presets/zcode/next/agents/api-contract-reviewer.md +5 -2
  568. package/presets/zcode/next/agents/build-verifier.md +6 -3
  569. package/presets/zcode/next/agents/ci-investigator.md +1 -1
  570. package/presets/zcode/next/agents/code-reviewer.md +7 -4
  571. package/presets/zcode/next/agents/codebase-analyzer.md +4 -1
  572. package/presets/zcode/next/agents/debugger.md +2 -2
  573. package/presets/zcode/next/agents/feature-developer.md +2 -2
  574. package/presets/zcode/next/agents/migration-specialist.md +4 -1
  575. package/presets/zcode/next/agents/mockup-reviewer.md +4 -1
  576. package/presets/zcode/next/agents/openspec-author.md +4 -1
  577. package/presets/zcode/next/agents/performance-auditor.md +4 -1
  578. package/presets/zcode/next/agents/playwright-test-generator.md +5 -2
  579. package/presets/zcode/next/agents/playwright-test-healer.md +5 -2
  580. package/presets/zcode/next/agents/playwright-test-planner.md +5 -2
  581. package/presets/zcode/next/agents/qa-tester.md +5 -2
  582. package/presets/zcode/next/agents/security-reviewer.md +4 -1
  583. package/presets/zcode/next/agents/solution-architect.md +4 -1
  584. package/presets/zcode/next/agents/task-analyst.md +5 -2
  585. package/presets/zcode/next/agents/task-router.md +4 -1
  586. package/presets/zcode/next/agents/tech-writer.md +4 -1
  587. package/presets/zcode/next/agents/unit-test-generator.md +5 -2
  588. package/presets/zcode/next/agents/unit-test-healer.md +5 -2
  589. package/presets/zcode/next/agents/unit-test-planner.md +5 -2
  590. package/presets/zcode/next/ai-local/conventions.md +6 -1
  591. package/presets/zcode/next/commands/README.md +4 -0
  592. package/presets/zcode/next/commands/rr-scheduler-start.md +35 -0
  593. package/presets/zcode/next/hooks/chain-team-phases.sh +15 -1
  594. package/presets/zcode/next/rules/agent-team-intake.md +2 -2
  595. package/presets/zcode/nuxt/adapter-map.json +9 -1
  596. package/presets/zcode/nuxt/agents/build-verifier.md +1 -1
  597. package/presets/zcode/nuxt/agents/code-reviewer.md +1 -1
  598. package/presets/zcode/nuxt/agents/debugger.md +1 -1
  599. package/presets/zcode/nuxt/agents/feature-developer.md +1 -1
  600. package/presets/zcode/nuxt/agents/task-analyst.md +1 -1
  601. package/presets/zcode/nuxt/commands/README.md +4 -0
  602. package/presets/zcode/nuxt/commands/rr-scheduler-start.md +35 -0
  603. package/presets/zcode/nuxt/hooks/chain-team-phases.sh +15 -1
  604. package/presets/zcode/nuxt/rules/agent-team-intake.md +2 -2
  605. package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
  606. package/presets/zcode/php-hexagonal/agents/build-verifier.md +1 -1
  607. package/presets/zcode/php-hexagonal/agents/code-reviewer.md +1 -1
  608. package/presets/zcode/php-hexagonal/agents/debugger.md +1 -1
  609. package/presets/zcode/php-hexagonal/agents/feature-developer.md +1 -1
  610. package/presets/zcode/php-hexagonal/agents/task-analyst.md +1 -1
  611. package/presets/zcode/php-hexagonal/commands/README.md +4 -0
  612. package/presets/zcode/php-hexagonal/commands/rr-scheduler-start.md +35 -0
  613. package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +15 -1
  614. package/presets/zcode/php-hexagonal/rules/agent-team-intake.md +2 -2
  615. package/presets/zcode/php-laravel/adapter-map.json +9 -1
  616. package/presets/zcode/php-laravel/agents/build-verifier.md +1 -1
  617. package/presets/zcode/php-laravel/agents/code-reviewer.md +1 -1
  618. package/presets/zcode/php-laravel/agents/debugger.md +1 -1
  619. package/presets/zcode/php-laravel/agents/feature-developer.md +1 -1
  620. package/presets/zcode/php-laravel/agents/task-analyst.md +1 -1
  621. package/presets/zcode/php-laravel/commands/README.md +4 -0
  622. package/presets/zcode/php-laravel/commands/rr-scheduler-start.md +35 -0
  623. package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +15 -1
  624. package/presets/zcode/php-laravel/rules/agent-team-intake.md +2 -2
  625. package/presets/zcode/svelte/adapter-map.json +9 -1
  626. package/presets/zcode/svelte/agents/build-verifier.md +1 -1
  627. package/presets/zcode/svelte/agents/code-reviewer.md +1 -1
  628. package/presets/zcode/svelte/agents/debugger.md +1 -1
  629. package/presets/zcode/svelte/agents/feature-developer.md +1 -1
  630. package/presets/zcode/svelte/agents/task-analyst.md +1 -1
  631. package/presets/zcode/svelte/commands/README.md +4 -0
  632. package/presets/zcode/svelte/commands/rr-scheduler-start.md +35 -0
  633. package/presets/zcode/svelte/hooks/chain-team-phases.sh +15 -1
  634. package/presets/zcode/svelte/rules/agent-team-intake.md +2 -2
@@ -3473,7 +3473,7 @@
3473
3473
  "tracker"
3474
3474
  ],
3475
3475
  "summary": "List launch-queue entries",
3476
- "description": "`status` matches the derived effective entry status (`active` and `done` are computed from the task row, never stored); `itemId` narrows to one item.",
3476
+ "description": "`status` matches the derived effective entry status (`active` and `done` are computed from the task row, never stored); `itemId` narrows to one item. A task in a holding state (`in_progress`, `awaiting_artifact_receipt`, `blocked`) that has no non-terminal queue entry is included as a derived row: `entryId` is null, `itemId` is null when the task has no tracker link, `status` is `active`. The row is not a queue file and cannot be cancelled.",
3477
3477
  "operationId": "listTrackerQueue",
3478
3478
  "parameters": [
3479
3479
  {
@@ -5030,14 +5030,14 @@
5030
5030
  "security": []
5031
5031
  }
5032
5032
  },
5033
- "/api/v1/efficiency/distribution": {
5033
+ "/api/v1/efficiency/actions": {
5034
5034
  "get": {
5035
5035
  "tags": [
5036
5036
  "efficiency"
5037
5037
  ],
5038
- "summary": "The raw-bytes quantiles and the fixed histogram",
5039
- "description": "`metric` is the constant echo `rawBytes`. The six bins are half-open with the last one unbounded, and their call counts sum to `calls`. On an empty window every quantile is `0`.",
5040
- "operationId": "getEfficiencyDistribution",
5038
+ "summary": "The action rollup and its paged rows",
5039
+ "description": "Counts, ratios and the per-rung attribution coverage of the measured agent actions. `totals.actions` and `totals.turns` are the sample sizes a reader needs: a ratio whose sample is below its own floor is the consumer's decision, so a zero denominator is `null` here and never `0`. `coverage` is the rung split of the returned page only — the attribution chip reads `attribution.byRung`, which is window-wide. `attribution` extends the shipped block with `byRung` and `coverage`; its four original keys keep their meaning inside the same filter, except `unmappedTurns`, which a turn can only filter by window and task.",
5040
+ "operationId": "getEfficiencyActions",
5041
5041
  "parameters": [
5042
5042
  {
5043
5043
  "name": "from",
@@ -5056,15 +5056,88 @@
5056
5056
  "schema": {
5057
5057
  "type": "string"
5058
5058
  }
5059
+ },
5060
+ {
5061
+ "name": "task",
5062
+ "in": "query",
5063
+ "description": "Restrict to rows attributed to this task slug.",
5064
+ "required": false,
5065
+ "schema": {
5066
+ "type": "string",
5067
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
5068
+ }
5069
+ },
5070
+ {
5071
+ "name": "includeAbsent",
5072
+ "in": "query",
5073
+ "description": "Include telemetry whose `task_slug` is NULL (unattributed). A `task` filter always implies attributed rows only.",
5074
+ "required": false,
5075
+ "schema": {
5076
+ "type": "boolean",
5077
+ "default": false
5078
+ }
5079
+ },
5080
+ {
5081
+ "name": "intent",
5082
+ "in": "query",
5083
+ "description": "Comma-separated action intents. Valid values: `explore`, `mutate`, `execute`, `delegate`, `ask`, `meta`, `web`. Any value outside this list is rejected with 422 `E_VALIDATION`.",
5084
+ "required": false,
5085
+ "schema": {
5086
+ "type": "string",
5087
+ "enum": [
5088
+ "explore",
5089
+ "mutate",
5090
+ "execute",
5091
+ "delegate",
5092
+ "ask",
5093
+ "meta",
5094
+ "web"
5095
+ ]
5096
+ }
5097
+ },
5098
+ {
5099
+ "name": "agent",
5100
+ "in": "query",
5101
+ "description": "Restrict to the actions of one agent.",
5102
+ "required": false,
5103
+ "schema": {
5104
+ "type": "string",
5105
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
5106
+ "maxLength": 64
5107
+ }
5108
+ },
5109
+ {
5110
+ "name": "limit",
5111
+ "in": "query",
5112
+ "description": "Page size, 1..200.",
5113
+ "required": false,
5114
+ "schema": {
5115
+ "type": "integer",
5116
+ "minimum": 1,
5117
+ "maximum": 200,
5118
+ "default": 50
5119
+ }
5120
+ },
5121
+ {
5122
+ "name": "offset",
5123
+ "in": "query",
5124
+ "description": "Zero-based row offset, 0..1000000.",
5125
+ "required": false,
5126
+ "schema": {
5127
+ "type": "integer",
5128
+ "minimum": 0,
5129
+ "maximum": 1000000,
5130
+ "default": 0
5131
+ }
5059
5132
  }
5060
5133
  ],
5061
5134
  "responses": {
5062
5135
  "200": {
5063
- "description": "Quantiles and the fixed six-bin histogram",
5136
+ "description": "The rollup, the breakdowns and one page of actions",
5064
5137
  "content": {
5065
5138
  "application/json": {
5066
5139
  "schema": {
5067
- "$ref": "#/components/schemas/EfficiencyDistribution"
5140
+ "$ref": "#/components/schemas/EfficiencyActions"
5068
5141
  }
5069
5142
  }
5070
5143
  }
@@ -5141,14 +5214,57 @@
5141
5214
  "security": []
5142
5215
  }
5143
5216
  },
5144
- "/api/v1/efficiency/ab-runs": {
5217
+ "/api/v1/efficiency/signals": {
5145
5218
  "get": {
5146
5219
  "tags": [
5147
5220
  "efficiency"
5148
5221
  ],
5149
- "summary": "Measured A/B runs, newest first",
5150
- "operationId": "listEfficiencyAbRuns",
5222
+ "summary": "The flagged action signals of one task or the whole window",
5223
+ "description": "One row per fired signal, worst severity first and then by signal name, with the task slug as the final tiebreak, so a window-wide array is ordered like a single task's; the array order is the contract, so a consumer renders it verbatim. `rule` carries the one-line rule that fired, so no consumer re-derives a threshold. `items` is paged by `limit` and `offset`, `total` counts the fired signals before the page, and `nextOffset` is the next `offset` or `null` on the last page. Two clocks meet here: `items[].value` is the task's all-time numerator, because the rollup behind this route is per task and the window selects tasks by their last action rather than filtering a selected task's rows, while `attribution` is window-filtered — the two are not meant to be divided by each other. The route declares `task`, `from`, `to`, `severity`, `limit` and `offset` only: `intent`, `agent` and `includeAbsent` answer `422 E_VALIDATION` naming the parameter, because binding any of them would describe half of the block through one filter and half through another.",
5224
+ "operationId": "getEfficiencySignals",
5151
5225
  "parameters": [
5226
+ {
5227
+ "name": "from",
5228
+ "in": "query",
5229
+ "description": "Window start as an ISO 8601 instant, included by its UTC day. Default: 30 days before `to`.",
5230
+ "required": false,
5231
+ "schema": {
5232
+ "type": "string"
5233
+ }
5234
+ },
5235
+ {
5236
+ "name": "to",
5237
+ "in": "query",
5238
+ "description": "Window end as an ISO 8601 instant, included by its UTC day. Default: now.",
5239
+ "required": false,
5240
+ "schema": {
5241
+ "type": "string"
5242
+ }
5243
+ },
5244
+ {
5245
+ "name": "task",
5246
+ "in": "query",
5247
+ "description": "Restrict to rows attributed to this task slug.",
5248
+ "required": false,
5249
+ "schema": {
5250
+ "type": "string",
5251
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
5252
+ }
5253
+ },
5254
+ {
5255
+ "name": "severity",
5256
+ "in": "query",
5257
+ "description": "Comma-separated signal severities. Valid values: `critical`, `warn`, `info`. Any value outside this list is rejected with 422 `E_VALIDATION`.",
5258
+ "required": false,
5259
+ "schema": {
5260
+ "type": "string",
5261
+ "enum": [
5262
+ "critical",
5263
+ "warn",
5264
+ "info"
5265
+ ]
5266
+ }
5267
+ },
5152
5268
  {
5153
5269
  "name": "limit",
5154
5270
  "in": "query",
@@ -5176,11 +5292,11 @@
5176
5292
  ],
5177
5293
  "responses": {
5178
5294
  "200": {
5179
- "description": "The filtered page",
5295
+ "description": "The fired signals with their severity and their rule",
5180
5296
  "content": {
5181
5297
  "application/json": {
5182
5298
  "schema": {
5183
- "$ref": "#/components/schemas/EfficiencyAbRunList"
5299
+ "$ref": "#/components/schemas/EfficiencySignals"
5184
5300
  }
5185
5301
  }
5186
5302
  }
@@ -5257,38 +5373,47 @@
5257
5373
  "security": []
5258
5374
  }
5259
5375
  },
5260
- "/api/v1/efficiency/ab-runs/{runKey}": {
5376
+ "/api/v1/efficiency/distribution": {
5261
5377
  "get": {
5262
5378
  "tags": [
5263
5379
  "efficiency"
5264
5380
  ],
5265
- "summary": "One A/B run with its per-task cells",
5266
- "operationId": "getEfficiencyAbRun",
5381
+ "summary": "The raw-bytes quantiles and the fixed histogram",
5382
+ "description": "`metric` is the constant echo `rawBytes`. The six bins are half-open with the last one unbounded, and their call counts sum to `calls`. On an empty window every quantile is `0`.",
5383
+ "operationId": "getEfficiencyDistribution",
5267
5384
  "parameters": [
5268
5385
  {
5269
- "name": "runKey",
5270
- "in": "path",
5271
- "required": true,
5272
- "description": "The bench run directory stamp, `YYYYMMDDTHHMMSSZ`.",
5386
+ "name": "from",
5387
+ "in": "query",
5388
+ "description": "Window start as an ISO 8601 instant, included by its UTC day. Default: 30 days before `to`.",
5389
+ "required": false,
5273
5390
  "schema": {
5274
- "type": "string",
5275
- "pattern": "^[0-9]{8}T[0-9]{6}Z$"
5391
+ "type": "string"
5392
+ }
5393
+ },
5394
+ {
5395
+ "name": "to",
5396
+ "in": "query",
5397
+ "description": "Window end as an ISO 8601 instant, included by its UTC day. Default: now.",
5398
+ "required": false,
5399
+ "schema": {
5400
+ "type": "string"
5276
5401
  }
5277
5402
  }
5278
5403
  ],
5279
5404
  "responses": {
5280
5405
  "200": {
5281
- "description": "The run row with its cells",
5406
+ "description": "Quantiles and the fixed six-bin histogram",
5282
5407
  "content": {
5283
5408
  "application/json": {
5284
5409
  "schema": {
5285
- "$ref": "#/components/schemas/EfficiencyAbRun"
5410
+ "$ref": "#/components/schemas/EfficiencyDistribution"
5286
5411
  }
5287
5412
  }
5288
5413
  }
5289
5414
  },
5290
5415
  "400": {
5291
- "description": "Malformed request: the run key is outside its documented shape",
5416
+ "description": "Malformed request: an invalid slug or an invalid document path",
5292
5417
  "content": {
5293
5418
  "application/json": {
5294
5419
  "schema": {
@@ -5308,7 +5433,7 @@
5308
5433
  }
5309
5434
  },
5310
5435
  "404": {
5311
- "description": "No projected run carries this key",
5436
+ "description": "The task, document or route does not exist",
5312
5437
  "content": {
5313
5438
  "application/json": {
5314
5439
  "schema": {
@@ -5336,7 +5461,7 @@
5336
5461
  }
5337
5462
  },
5338
5463
  "422": {
5339
- "description": "The run key is outside its documented shape",
5464
+ "description": "A query parameter is outside its documented bounds",
5340
5465
  "content": {
5341
5466
  "application/json": {
5342
5467
  "schema": {
@@ -5359,22 +5484,46 @@
5359
5484
  "security": []
5360
5485
  }
5361
5486
  },
5362
- "/api/v1/efficiency/context-cost": {
5487
+ "/api/v1/efficiency/ab-runs": {
5363
5488
  "get": {
5364
5489
  "tags": [
5365
5490
  "efficiency"
5366
5491
  ],
5367
- "summary": "The latest always-on context snapshot and the present tasks",
5368
- "description": "`hosts` carries the newest snapshot only and is empty until a snapshot is recorded; `tasks` is derived from `tasks.file_count` and `tasks.document_bytes` and is populated without one. `estimatedTokens` is `bytes / 4` and is labelled as an estimate.",
5369
- "operationId": "getEfficiencyContextCost",
5370
- "parameters": [],
5492
+ "summary": "Measured A/B runs, newest first",
5493
+ "operationId": "listEfficiencyAbRuns",
5494
+ "parameters": [
5495
+ {
5496
+ "name": "limit",
5497
+ "in": "query",
5498
+ "description": "Page size, 1..200.",
5499
+ "required": false,
5500
+ "schema": {
5501
+ "type": "integer",
5502
+ "minimum": 1,
5503
+ "maximum": 200,
5504
+ "default": 50
5505
+ }
5506
+ },
5507
+ {
5508
+ "name": "offset",
5509
+ "in": "query",
5510
+ "description": "Zero-based row offset, 0..1000000.",
5511
+ "required": false,
5512
+ "schema": {
5513
+ "type": "integer",
5514
+ "minimum": 0,
5515
+ "maximum": 1000000,
5516
+ "default": 0
5517
+ }
5518
+ }
5519
+ ],
5371
5520
  "responses": {
5372
5521
  "200": {
5373
- "description": "The newest host snapshot and the present task surfaces",
5522
+ "description": "The filtered page",
5374
5523
  "content": {
5375
5524
  "application/json": {
5376
5525
  "schema": {
5377
- "$ref": "#/components/schemas/EfficiencyContextCost"
5526
+ "$ref": "#/components/schemas/EfficiencyAbRunList"
5378
5527
  }
5379
5528
  }
5380
5529
  }
@@ -5451,52 +5600,38 @@
5451
5600
  "security": []
5452
5601
  }
5453
5602
  },
5454
- "/api/v1/sync-runs": {
5603
+ "/api/v1/efficiency/ab-runs/{runKey}": {
5455
5604
  "get": {
5456
5605
  "tags": [
5457
- "sync"
5606
+ "efficiency"
5458
5607
  ],
5459
- "summary": "Projection runs, newest first",
5460
- "operationId": "listSyncRuns",
5608
+ "summary": "One A/B run with its per-task cells",
5609
+ "operationId": "getEfficiencyAbRun",
5461
5610
  "parameters": [
5462
5611
  {
5463
- "name": "limit",
5464
- "in": "query",
5465
- "description": "Page size, 1..200.",
5466
- "required": false,
5467
- "schema": {
5468
- "type": "integer",
5469
- "minimum": 1,
5470
- "maximum": 200,
5471
- "default": 50
5472
- }
5473
- },
5474
- {
5475
- "name": "offset",
5476
- "in": "query",
5477
- "description": "Zero-based row offset, 0..1000000.",
5478
- "required": false,
5612
+ "name": "runKey",
5613
+ "in": "path",
5614
+ "required": true,
5615
+ "description": "The bench run directory stamp, `YYYYMMDDTHHMMSSZ`.",
5479
5616
  "schema": {
5480
- "type": "integer",
5481
- "minimum": 0,
5482
- "maximum": 1000000,
5483
- "default": 0
5617
+ "type": "string",
5618
+ "pattern": "^[0-9]{8}T[0-9]{6}Z$"
5484
5619
  }
5485
5620
  }
5486
5621
  ],
5487
5622
  "responses": {
5488
5623
  "200": {
5489
- "description": "The filtered page",
5624
+ "description": "The run row with its cells",
5490
5625
  "content": {
5491
5626
  "application/json": {
5492
5627
  "schema": {
5493
- "$ref": "#/components/schemas/SyncRunList"
5628
+ "$ref": "#/components/schemas/EfficiencyAbRun"
5494
5629
  }
5495
5630
  }
5496
5631
  }
5497
5632
  },
5498
5633
  "400": {
5499
- "description": "Malformed request: an invalid slug or an invalid document path",
5634
+ "description": "Malformed request: the run key is outside its documented shape",
5500
5635
  "content": {
5501
5636
  "application/json": {
5502
5637
  "schema": {
@@ -5516,7 +5651,7 @@
5516
5651
  }
5517
5652
  },
5518
5653
  "404": {
5519
- "description": "The task, document or route does not exist",
5654
+ "description": "No projected run carries this key",
5520
5655
  "content": {
5521
5656
  "application/json": {
5522
5657
  "schema": {
@@ -5544,7 +5679,7 @@
5544
5679
  }
5545
5680
  },
5546
5681
  "422": {
5547
- "description": "A query parameter is outside its documented bounds",
5682
+ "description": "The run key is outside its documented shape",
5548
5683
  "content": {
5549
5684
  "application/json": {
5550
5685
  "schema": {
@@ -5567,31 +5702,239 @@
5567
5702
  "security": []
5568
5703
  }
5569
5704
  },
5570
- "/api/v1/sync": {
5571
- "post": {
5705
+ "/api/v1/efficiency/context-cost": {
5706
+ "get": {
5572
5707
  "tags": [
5573
- "sync"
5708
+ "efficiency"
5574
5709
  ],
5575
- "summary": "Rescan task files (idempotent)",
5576
- "description": "The only non-GET operation. It re-reads `.ai.local/team/tasks` into the database and never writes task state. A second call over an unchanged tree reports `unchanged` for every task.",
5577
- "operationId": "triggerSync",
5710
+ "summary": "The latest always-on context snapshot and the present tasks",
5711
+ "description": "`hosts` carries the newest snapshot only and is empty until a snapshot is recorded; `tasks` is derived from `tasks.file_count` and `tasks.document_bytes` and is populated without one. `estimatedTokens` is `bytes / 4` and is labelled as an estimate.",
5712
+ "operationId": "getEfficiencyContextCost",
5578
5713
  "parameters": [],
5579
- "requestBody": {
5580
- "required": false,
5581
- "description": "Absent or an empty JSON object; any other body is rejected.",
5582
- "content": {
5583
- "application/json": {
5584
- "schema": {
5585
- "type": "object",
5586
- "additionalProperties": false,
5587
- "properties": {}
5588
- }
5589
- }
5590
- }
5591
- },
5592
5714
  "responses": {
5593
5715
  "200": {
5594
- "description": "The completed rescan",
5716
+ "description": "The newest host snapshot and the present task surfaces",
5717
+ "content": {
5718
+ "application/json": {
5719
+ "schema": {
5720
+ "$ref": "#/components/schemas/EfficiencyContextCost"
5721
+ }
5722
+ }
5723
+ }
5724
+ },
5725
+ "400": {
5726
+ "description": "Malformed request: an invalid slug or an invalid document path",
5727
+ "content": {
5728
+ "application/json": {
5729
+ "schema": {
5730
+ "$ref": "#/components/schemas/ErrorEnvelope"
5731
+ }
5732
+ }
5733
+ }
5734
+ },
5735
+ "403": {
5736
+ "description": "A non-loopback Host or Origin was rejected before routing",
5737
+ "content": {
5738
+ "application/json": {
5739
+ "schema": {
5740
+ "$ref": "#/components/schemas/ErrorEnvelope"
5741
+ }
5742
+ }
5743
+ }
5744
+ },
5745
+ "404": {
5746
+ "description": "The task, document or route does not exist",
5747
+ "content": {
5748
+ "application/json": {
5749
+ "schema": {
5750
+ "$ref": "#/components/schemas/ErrorEnvelope"
5751
+ }
5752
+ }
5753
+ }
5754
+ },
5755
+ "405": {
5756
+ "description": "The route does not accept this method; the response carries an Allow header",
5757
+ "headers": {
5758
+ "Allow": {
5759
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
5760
+ "schema": {
5761
+ "type": "string"
5762
+ }
5763
+ }
5764
+ },
5765
+ "content": {
5766
+ "application/json": {
5767
+ "schema": {
5768
+ "$ref": "#/components/schemas/ErrorEnvelope"
5769
+ }
5770
+ }
5771
+ }
5772
+ },
5773
+ "422": {
5774
+ "description": "A query parameter is outside its documented bounds",
5775
+ "content": {
5776
+ "application/json": {
5777
+ "schema": {
5778
+ "$ref": "#/components/schemas/ErrorEnvelope"
5779
+ }
5780
+ }
5781
+ }
5782
+ },
5783
+ "503": {
5784
+ "description": "The projection database is missing, unusable, busy, or the projection is disabled",
5785
+ "content": {
5786
+ "application/json": {
5787
+ "schema": {
5788
+ "$ref": "#/components/schemas/ErrorEnvelope"
5789
+ }
5790
+ }
5791
+ }
5792
+ }
5793
+ },
5794
+ "security": []
5795
+ }
5796
+ },
5797
+ "/api/v1/sync-runs": {
5798
+ "get": {
5799
+ "tags": [
5800
+ "sync"
5801
+ ],
5802
+ "summary": "Projection runs, newest first",
5803
+ "operationId": "listSyncRuns",
5804
+ "parameters": [
5805
+ {
5806
+ "name": "limit",
5807
+ "in": "query",
5808
+ "description": "Page size, 1..200.",
5809
+ "required": false,
5810
+ "schema": {
5811
+ "type": "integer",
5812
+ "minimum": 1,
5813
+ "maximum": 200,
5814
+ "default": 50
5815
+ }
5816
+ },
5817
+ {
5818
+ "name": "offset",
5819
+ "in": "query",
5820
+ "description": "Zero-based row offset, 0..1000000.",
5821
+ "required": false,
5822
+ "schema": {
5823
+ "type": "integer",
5824
+ "minimum": 0,
5825
+ "maximum": 1000000,
5826
+ "default": 0
5827
+ }
5828
+ }
5829
+ ],
5830
+ "responses": {
5831
+ "200": {
5832
+ "description": "The filtered page",
5833
+ "content": {
5834
+ "application/json": {
5835
+ "schema": {
5836
+ "$ref": "#/components/schemas/SyncRunList"
5837
+ }
5838
+ }
5839
+ }
5840
+ },
5841
+ "400": {
5842
+ "description": "Malformed request: an invalid slug or an invalid document path",
5843
+ "content": {
5844
+ "application/json": {
5845
+ "schema": {
5846
+ "$ref": "#/components/schemas/ErrorEnvelope"
5847
+ }
5848
+ }
5849
+ }
5850
+ },
5851
+ "403": {
5852
+ "description": "A non-loopback Host or Origin was rejected before routing",
5853
+ "content": {
5854
+ "application/json": {
5855
+ "schema": {
5856
+ "$ref": "#/components/schemas/ErrorEnvelope"
5857
+ }
5858
+ }
5859
+ }
5860
+ },
5861
+ "404": {
5862
+ "description": "The task, document or route does not exist",
5863
+ "content": {
5864
+ "application/json": {
5865
+ "schema": {
5866
+ "$ref": "#/components/schemas/ErrorEnvelope"
5867
+ }
5868
+ }
5869
+ }
5870
+ },
5871
+ "405": {
5872
+ "description": "The route does not accept this method; the response carries an Allow header",
5873
+ "headers": {
5874
+ "Allow": {
5875
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
5876
+ "schema": {
5877
+ "type": "string"
5878
+ }
5879
+ }
5880
+ },
5881
+ "content": {
5882
+ "application/json": {
5883
+ "schema": {
5884
+ "$ref": "#/components/schemas/ErrorEnvelope"
5885
+ }
5886
+ }
5887
+ }
5888
+ },
5889
+ "422": {
5890
+ "description": "A query parameter is outside its documented bounds",
5891
+ "content": {
5892
+ "application/json": {
5893
+ "schema": {
5894
+ "$ref": "#/components/schemas/ErrorEnvelope"
5895
+ }
5896
+ }
5897
+ }
5898
+ },
5899
+ "503": {
5900
+ "description": "The projection database is missing, unusable, busy, or the projection is disabled",
5901
+ "content": {
5902
+ "application/json": {
5903
+ "schema": {
5904
+ "$ref": "#/components/schemas/ErrorEnvelope"
5905
+ }
5906
+ }
5907
+ }
5908
+ }
5909
+ },
5910
+ "security": []
5911
+ }
5912
+ },
5913
+ "/api/v1/sync": {
5914
+ "post": {
5915
+ "tags": [
5916
+ "sync"
5917
+ ],
5918
+ "summary": "Rescan task files (idempotent)",
5919
+ "description": "The only non-GET operation. It re-reads `.ai.local/team/tasks` into the database and never writes task state. A second call over an unchanged tree reports `unchanged` for every task.",
5920
+ "operationId": "triggerSync",
5921
+ "parameters": [],
5922
+ "requestBody": {
5923
+ "required": false,
5924
+ "description": "Absent or an empty JSON object; any other body is rejected.",
5925
+ "content": {
5926
+ "application/json": {
5927
+ "schema": {
5928
+ "type": "object",
5929
+ "additionalProperties": false,
5930
+ "properties": {}
5931
+ }
5932
+ }
5933
+ }
5934
+ },
5935
+ "responses": {
5936
+ "200": {
5937
+ "description": "The completed rescan",
5595
5938
  "content": {
5596
5939
  "application/json": {
5597
5940
  "schema": {
@@ -8146,81 +8489,667 @@
8146
8489
  "denominator"
8147
8490
  ]
8148
8491
  },
8149
- "truncated": {
8150
- "type": "boolean"
8492
+ "truncated": {
8493
+ "type": "boolean"
8494
+ }
8495
+ },
8496
+ "required": [
8497
+ "metric",
8498
+ "bucket",
8499
+ "groupBy",
8500
+ "from",
8501
+ "to",
8502
+ "buckets",
8503
+ "series",
8504
+ "totals",
8505
+ "truncated"
8506
+ ],
8507
+ "examples": [
8508
+ {
8509
+ "metric": "keptOutBytes",
8510
+ "bucket": "day",
8511
+ "groupBy": "none",
8512
+ "from": "2026-11-12T00:00:00.000Z",
8513
+ "to": "2026-11-14T00:00:00.000Z",
8514
+ "buckets": [
8515
+ "2026-11-12",
8516
+ "2026-11-13",
8517
+ "2026-11-14"
8518
+ ],
8519
+ "series": [
8520
+ {
8521
+ "key": "",
8522
+ "label": "",
8523
+ "coverage": null,
8524
+ "points": [
8525
+ {
8526
+ "bucket": "2026-11-12",
8527
+ "value": 1200,
8528
+ "numerator": 1200,
8529
+ "denominator": null,
8530
+ "n": 4
8531
+ },
8532
+ {
8533
+ "bucket": "2026-11-13",
8534
+ "value": null,
8535
+ "numerator": null,
8536
+ "denominator": null,
8537
+ "n": 0
8538
+ },
8539
+ {
8540
+ "bucket": "2026-11-14",
8541
+ "value": 800,
8542
+ "numerator": 800,
8543
+ "denominator": null,
8544
+ "n": 2
8545
+ }
8546
+ ]
8547
+ }
8548
+ ],
8549
+ "totals": {
8550
+ "value": 2000,
8551
+ "numerator": 2000,
8552
+ "denominator": null
8553
+ },
8554
+ "truncated": false
8555
+ }
8556
+ ]
8557
+ },
8558
+ "EfficiencyToolBreakdown": {
8559
+ "type": "object",
8560
+ "additionalProperties": false,
8561
+ "properties": {
8562
+ "from": {
8563
+ "type": "string"
8564
+ },
8565
+ "to": {
8566
+ "type": "string"
8567
+ },
8568
+ "items": {
8569
+ "type": "array",
8570
+ "items": {
8571
+ "type": "object",
8572
+ "additionalProperties": false,
8573
+ "properties": {
8574
+ "tool": {
8575
+ "type": "string"
8576
+ },
8577
+ "category": {
8578
+ "type": "string"
8579
+ },
8580
+ "calls": {
8581
+ "type": "integer",
8582
+ "minimum": 0
8583
+ },
8584
+ "rawBytes": {
8585
+ "type": "integer",
8586
+ "minimum": 0
8587
+ },
8588
+ "returnedBytes": {
8589
+ "type": "integer",
8590
+ "minimum": 0
8591
+ },
8592
+ "keptOutBytes": {
8593
+ "type": "integer",
8594
+ "minimum": 0
8595
+ },
8596
+ "replaced": {
8597
+ "type": "integer",
8598
+ "minimum": 0
8599
+ },
8600
+ "keptOutRatio": {
8601
+ "type": "number",
8602
+ "minimum": 0
8603
+ }
8604
+ },
8605
+ "required": [
8606
+ "tool",
8607
+ "category",
8608
+ "calls",
8609
+ "rawBytes",
8610
+ "returnedBytes",
8611
+ "keptOutBytes",
8612
+ "replaced",
8613
+ "keptOutRatio"
8614
+ ]
8615
+ }
8616
+ },
8617
+ "totals": {
8618
+ "type": "object",
8619
+ "additionalProperties": false,
8620
+ "properties": {
8621
+ "calls": {
8622
+ "type": "integer",
8623
+ "minimum": 0
8624
+ },
8625
+ "rawBytes": {
8626
+ "type": "integer",
8627
+ "minimum": 0
8628
+ },
8629
+ "returnedBytes": {
8630
+ "type": "integer",
8631
+ "minimum": 0
8632
+ },
8633
+ "keptOutBytes": {
8634
+ "type": "integer",
8635
+ "minimum": 0
8636
+ },
8637
+ "replaced": {
8638
+ "type": "integer",
8639
+ "minimum": 0
8640
+ }
8641
+ },
8642
+ "required": [
8643
+ "calls",
8644
+ "rawBytes",
8645
+ "returnedBytes",
8646
+ "keptOutBytes",
8647
+ "replaced"
8648
+ ]
8649
+ },
8650
+ "otherCalls": {
8651
+ "type": "integer",
8652
+ "minimum": 0
8653
+ }
8654
+ },
8655
+ "required": [
8656
+ "from",
8657
+ "to",
8658
+ "items",
8659
+ "totals",
8660
+ "otherCalls"
8661
+ ],
8662
+ "examples": [
8663
+ {
8664
+ "from": "2026-11-01T00:00:00.000Z",
8665
+ "to": "2026-11-14T00:00:00.000Z",
8666
+ "items": [
8667
+ {
8668
+ "tool": "shell",
8669
+ "category": "command",
8670
+ "calls": 120,
8671
+ "rawBytes": 900000,
8672
+ "returnedBytes": 180000,
8673
+ "keptOutBytes": 720000,
8674
+ "replaced": 12,
8675
+ "keptOutRatio": 0.8
8676
+ }
8677
+ ],
8678
+ "totals": {
8679
+ "calls": 120,
8680
+ "rawBytes": 900000,
8681
+ "returnedBytes": 180000,
8682
+ "keptOutBytes": 720000,
8683
+ "replaced": 12
8684
+ },
8685
+ "otherCalls": 0
8686
+ }
8687
+ ]
8688
+ },
8689
+ "EfficiencyActionAttribution": {
8690
+ "type": "object",
8691
+ "additionalProperties": false,
8692
+ "properties": {
8693
+ "sessions": {
8694
+ "type": "integer",
8695
+ "minimum": 0
8696
+ },
8697
+ "mappedSessions": {
8698
+ "type": "integer",
8699
+ "minimum": 0
8700
+ },
8701
+ "unmappedCalls": {
8702
+ "type": "integer",
8703
+ "minimum": 0
8704
+ },
8705
+ "unmappedTurns": {
8706
+ "type": "integer",
8707
+ "minimum": 0,
8708
+ "description": "Unmapped turns in the window. `usage_turns` carries no intent and no agent, so this figure honours the window and the task filter only; it is the one key of this block that `intent` and `agent` cannot narrow. `/signals` accepts no `includeAbsent`, so on that route `unmappedCalls`, `byRung.unmapped` and this figure are structurally `0` and `coverage` is `1` or `null`."
8709
+ },
8710
+ "byRung": {
8711
+ "type": "object",
8712
+ "additionalProperties": false,
8713
+ "properties": {
8714
+ "lease": {
8715
+ "type": "integer",
8716
+ "minimum": 0
8717
+ },
8718
+ "window": {
8719
+ "type": "integer",
8720
+ "minimum": 0
8721
+ },
8722
+ "dir-mtime": {
8723
+ "type": "integer",
8724
+ "minimum": 0
8725
+ },
8726
+ "unmapped": {
8727
+ "type": "integer",
8728
+ "minimum": 0
8729
+ }
8730
+ },
8731
+ "required": [
8732
+ "lease",
8733
+ "window",
8734
+ "dir-mtime",
8735
+ "unmapped"
8736
+ ]
8737
+ },
8738
+ "coverage": {
8739
+ "type": [
8740
+ "number",
8741
+ "null"
8742
+ ],
8743
+ "description": "Mapped share of the rows this block counts. A per-task read is `1` by construction, because an `unmapped` row carries no task slug; only a window-wide read with `includeAbsent=1` can report less. `/signals` accepts no `includeAbsent`, so its `coverage` is `1` or, at a zero denominator, `null`."
8744
+ }
8745
+ },
8746
+ "required": [
8747
+ "sessions",
8748
+ "mappedSessions",
8749
+ "unmappedCalls",
8750
+ "unmappedTurns",
8751
+ "byRung",
8752
+ "coverage"
8753
+ ]
8754
+ },
8755
+ "EfficiencyActions": {
8756
+ "type": "object",
8757
+ "additionalProperties": false,
8758
+ "properties": {
8759
+ "window": {
8760
+ "type": "object",
8761
+ "additionalProperties": false,
8762
+ "properties": {
8763
+ "from": {
8764
+ "type": "string"
8765
+ },
8766
+ "to": {
8767
+ "type": "string"
8768
+ }
8769
+ },
8770
+ "required": [
8771
+ "from",
8772
+ "to"
8773
+ ]
8774
+ },
8775
+ "task": {
8776
+ "type": [
8777
+ "string",
8778
+ "null"
8779
+ ]
8780
+ },
8781
+ "totals": {
8782
+ "type": "object",
8783
+ "additionalProperties": false,
8784
+ "properties": {
8785
+ "actions": {
8786
+ "type": "integer",
8787
+ "minimum": 0
8788
+ },
8789
+ "turns": {
8790
+ "type": "integer",
8791
+ "minimum": 0
8792
+ },
8793
+ "changedFiles": {
8794
+ "type": "integer",
8795
+ "minimum": 0
8796
+ },
8797
+ "errorRate": {
8798
+ "type": [
8799
+ "number",
8800
+ "null"
8801
+ ]
8802
+ },
8803
+ "repeatRatio": {
8804
+ "type": [
8805
+ "number",
8806
+ "null"
8807
+ ]
8808
+ },
8809
+ "guardHits": {
8810
+ "type": "integer",
8811
+ "minimum": 0
8812
+ },
8813
+ "wallMs": {
8814
+ "type": [
8815
+ "integer",
8816
+ "null"
8817
+ ]
8818
+ },
8819
+ "busyMs": {
8820
+ "type": "integer",
8821
+ "minimum": 0
8822
+ }
8823
+ },
8824
+ "required": [
8825
+ "actions",
8826
+ "turns",
8827
+ "changedFiles",
8828
+ "errorRate",
8829
+ "repeatRatio",
8830
+ "guardHits",
8831
+ "wallMs",
8832
+ "busyMs"
8833
+ ]
8834
+ },
8835
+ "byIntent": {
8836
+ "type": "array",
8837
+ "items": {
8838
+ "type": "object",
8839
+ "additionalProperties": false,
8840
+ "properties": {
8841
+ "intent": {
8842
+ "type": "string",
8843
+ "enum": [
8844
+ "explore",
8845
+ "mutate",
8846
+ "execute",
8847
+ "delegate",
8848
+ "ask",
8849
+ "meta",
8850
+ "web"
8851
+ ]
8852
+ },
8853
+ "actions": {
8854
+ "type": "integer",
8855
+ "minimum": 0
8856
+ }
8857
+ },
8858
+ "required": [
8859
+ "intent",
8860
+ "actions"
8861
+ ]
8862
+ }
8863
+ },
8864
+ "byAgent": {
8865
+ "type": "array",
8866
+ "items": {
8867
+ "type": "object",
8868
+ "additionalProperties": false,
8869
+ "properties": {
8870
+ "agent": {
8871
+ "type": [
8872
+ "string",
8873
+ "null"
8874
+ ]
8875
+ },
8876
+ "actions": {
8877
+ "type": "integer",
8878
+ "minimum": 0
8879
+ }
8880
+ },
8881
+ "required": [
8882
+ "agent",
8883
+ "actions"
8884
+ ]
8885
+ }
8886
+ },
8887
+ "coverage": {
8888
+ "type": "array",
8889
+ "items": {
8890
+ "type": "object",
8891
+ "additionalProperties": false,
8892
+ "properties": {
8893
+ "rung": {
8894
+ "type": "string",
8895
+ "enum": [
8896
+ "lease",
8897
+ "window",
8898
+ "dir-mtime",
8899
+ "unmapped"
8900
+ ]
8901
+ },
8902
+ "actions": {
8903
+ "type": "integer",
8904
+ "minimum": 0
8905
+ }
8906
+ },
8907
+ "required": [
8908
+ "rung",
8909
+ "actions"
8910
+ ]
8911
+ }
8912
+ },
8913
+ "items": {
8914
+ "type": "array",
8915
+ "items": {
8916
+ "type": "object",
8917
+ "additionalProperties": false,
8918
+ "properties": {
8919
+ "at": {
8920
+ "type": "string"
8921
+ },
8922
+ "task": {
8923
+ "type": [
8924
+ "string",
8925
+ "null"
8926
+ ]
8927
+ },
8928
+ "tool": {
8929
+ "type": "string"
8930
+ },
8931
+ "intent": {
8932
+ "type": "string",
8933
+ "enum": [
8934
+ "explore",
8935
+ "mutate",
8936
+ "execute",
8937
+ "delegate",
8938
+ "ask",
8939
+ "meta",
8940
+ "web"
8941
+ ]
8942
+ },
8943
+ "agent": {
8944
+ "type": [
8945
+ "string",
8946
+ "null"
8947
+ ]
8948
+ },
8949
+ "errorClass": {
8950
+ "type": [
8951
+ "string",
8952
+ "null"
8953
+ ],
8954
+ "enum": [
8955
+ "validation",
8956
+ "notfound",
8957
+ "permission",
8958
+ "timeout",
8959
+ "upstream",
8960
+ null
8961
+ ]
8962
+ },
8963
+ "durationMs": {
8964
+ "type": [
8965
+ "integer",
8966
+ "null"
8967
+ ]
8968
+ },
8969
+ "gapMs": {
8970
+ "type": [
8971
+ "integer",
8972
+ "null"
8973
+ ]
8974
+ },
8975
+ "exitCode": {
8976
+ "type": [
8977
+ "integer",
8978
+ "null"
8979
+ ]
8980
+ },
8981
+ "repeatIndex": {
8982
+ "type": [
8983
+ "integer",
8984
+ "null"
8985
+ ]
8986
+ }
8987
+ },
8988
+ "required": [
8989
+ "at",
8990
+ "task",
8991
+ "tool",
8992
+ "intent",
8993
+ "agent",
8994
+ "errorClass",
8995
+ "durationMs",
8996
+ "gapMs",
8997
+ "exitCode",
8998
+ "repeatIndex"
8999
+ ]
9000
+ }
9001
+ },
9002
+ "limit": {
9003
+ "type": "integer",
9004
+ "minimum": 1
9005
+ },
9006
+ "offset": {
9007
+ "type": "integer",
9008
+ "minimum": 0
9009
+ },
9010
+ "total": {
9011
+ "type": "integer",
9012
+ "minimum": 0
9013
+ },
9014
+ "nextOffset": {
9015
+ "type": [
9016
+ "integer",
9017
+ "null"
9018
+ ]
9019
+ },
9020
+ "attribution": {
9021
+ "$ref": "#/components/schemas/EfficiencyActionAttribution"
9022
+ },
9023
+ "generatedAt": {
9024
+ "type": "string"
8151
9025
  }
8152
9026
  },
8153
9027
  "required": [
8154
- "metric",
8155
- "bucket",
8156
- "groupBy",
8157
- "from",
8158
- "to",
8159
- "buckets",
8160
- "series",
9028
+ "window",
9029
+ "task",
8161
9030
  "totals",
8162
- "truncated"
9031
+ "byIntent",
9032
+ "byAgent",
9033
+ "coverage",
9034
+ "items",
9035
+ "limit",
9036
+ "offset",
9037
+ "total",
9038
+ "nextOffset",
9039
+ "attribution",
9040
+ "generatedAt"
8163
9041
  ],
8164
9042
  "examples": [
8165
9043
  {
8166
- "metric": "keptOutBytes",
8167
- "bucket": "day",
8168
- "groupBy": "none",
8169
- "from": "2026-11-12T00:00:00.000Z",
8170
- "to": "2026-11-14T00:00:00.000Z",
8171
- "buckets": [
8172
- "2026-11-12",
8173
- "2026-11-13",
8174
- "2026-11-14"
9044
+ "window": {
9045
+ "from": "2026-11-01T00:00:00.000Z",
9046
+ "to": "2026-11-17T00:00:00.000Z"
9047
+ },
9048
+ "task": "agent-action-telemetry",
9049
+ "totals": {
9050
+ "actions": 62,
9051
+ "turns": 40,
9052
+ "changedFiles": 4,
9053
+ "errorRate": 0.1613,
9054
+ "repeatRatio": 0.5,
9055
+ "guardHits": 3,
9056
+ "wallMs": 3600000,
9057
+ "busyMs": 1200000
9058
+ },
9059
+ "byIntent": [
9060
+ {
9061
+ "intent": "explore",
9062
+ "actions": 40
9063
+ },
9064
+ {
9065
+ "intent": "mutate",
9066
+ "actions": 22
9067
+ }
8175
9068
  ],
8176
- "series": [
9069
+ "byAgent": [
8177
9070
  {
8178
- "key": "",
8179
- "label": "",
8180
- "coverage": null,
8181
- "points": [
8182
- {
8183
- "bucket": "2026-11-12",
8184
- "value": 1200,
8185
- "numerator": 1200,
8186
- "denominator": null,
8187
- "n": 4
8188
- },
8189
- {
8190
- "bucket": "2026-11-13",
8191
- "value": null,
8192
- "numerator": null,
8193
- "denominator": null,
8194
- "n": 0
8195
- },
8196
- {
8197
- "bucket": "2026-11-14",
8198
- "value": 800,
8199
- "numerator": 800,
8200
- "denominator": null,
8201
- "n": 2
8202
- }
8203
- ]
9071
+ "agent": "feature-developer",
9072
+ "actions": 62
8204
9073
  }
8205
9074
  ],
8206
- "totals": {
8207
- "value": 2000,
8208
- "numerator": 2000,
8209
- "denominator": null
9075
+ "coverage": [
9076
+ {
9077
+ "rung": "lease",
9078
+ "actions": 62
9079
+ },
9080
+ {
9081
+ "rung": "window",
9082
+ "actions": 0
9083
+ },
9084
+ {
9085
+ "rung": "dir-mtime",
9086
+ "actions": 0
9087
+ },
9088
+ {
9089
+ "rung": "unmapped",
9090
+ "actions": 0
9091
+ }
9092
+ ],
9093
+ "items": [
9094
+ {
9095
+ "at": "2026-11-17T09:12:03.412Z",
9096
+ "task": "agent-action-telemetry",
9097
+ "tool": "edit",
9098
+ "intent": "mutate",
9099
+ "agent": "feature-developer",
9100
+ "errorClass": null,
9101
+ "durationMs": 412,
9102
+ "gapMs": 97,
9103
+ "exitCode": 0,
9104
+ "repeatIndex": null
9105
+ }
9106
+ ],
9107
+ "limit": 50,
9108
+ "offset": 0,
9109
+ "total": 62,
9110
+ "nextOffset": 50,
9111
+ "attribution": {
9112
+ "sessions": 2,
9113
+ "mappedSessions": 2,
9114
+ "unmappedCalls": 0,
9115
+ "unmappedTurns": 0,
9116
+ "byRung": {
9117
+ "lease": 62,
9118
+ "window": 0,
9119
+ "dir-mtime": 0,
9120
+ "unmapped": 0
9121
+ },
9122
+ "coverage": 1
8210
9123
  },
8211
- "truncated": false
9124
+ "generatedAt": "2026-11-17T12:00:00.000Z"
8212
9125
  }
8213
9126
  ]
8214
9127
  },
8215
- "EfficiencyToolBreakdown": {
9128
+ "EfficiencySignals": {
8216
9129
  "type": "object",
8217
9130
  "additionalProperties": false,
8218
9131
  "properties": {
8219
- "from": {
8220
- "type": "string"
9132
+ "window": {
9133
+ "type": "object",
9134
+ "additionalProperties": false,
9135
+ "properties": {
9136
+ "from": {
9137
+ "type": "string"
9138
+ },
9139
+ "to": {
9140
+ "type": "string"
9141
+ }
9142
+ },
9143
+ "required": [
9144
+ "from",
9145
+ "to"
9146
+ ]
8221
9147
  },
8222
- "to": {
8223
- "type": "string"
9148
+ "task": {
9149
+ "type": [
9150
+ "string",
9151
+ "null"
9152
+ ]
8224
9153
  },
8225
9154
  "items": {
8226
9155
  "type": "array",
@@ -8228,118 +9157,123 @@
8228
9157
  "type": "object",
8229
9158
  "additionalProperties": false,
8230
9159
  "properties": {
8231
- "tool": {
8232
- "type": "string"
8233
- },
8234
- "category": {
9160
+ "task": {
8235
9161
  "type": "string"
8236
9162
  },
8237
- "calls": {
8238
- "type": "integer",
8239
- "minimum": 0
8240
- },
8241
- "rawBytes": {
8242
- "type": "integer",
8243
- "minimum": 0
8244
- },
8245
- "returnedBytes": {
8246
- "type": "integer",
8247
- "minimum": 0
9163
+ "signal": {
9164
+ "type": "string",
9165
+ "enum": [
9166
+ "noop_actions",
9167
+ "explore_without_mutate",
9168
+ "error_rate",
9169
+ "repeat_churn",
9170
+ "guard_pressure",
9171
+ "context_thrash",
9172
+ "weak_attribution"
9173
+ ]
8248
9174
  },
8249
- "keptOutBytes": {
8250
- "type": "integer",
8251
- "minimum": 0
9175
+ "severity": {
9176
+ "type": "string",
9177
+ "enum": [
9178
+ "critical",
9179
+ "warn",
9180
+ "info"
9181
+ ]
8252
9182
  },
8253
- "replaced": {
9183
+ "value": {
8254
9184
  "type": "integer",
8255
9185
  "minimum": 0
8256
9186
  },
8257
- "keptOutRatio": {
8258
- "type": "number",
8259
- "minimum": 0
9187
+ "rule": {
9188
+ "type": "string"
8260
9189
  }
8261
9190
  },
8262
9191
  "required": [
8263
- "tool",
8264
- "category",
8265
- "calls",
8266
- "rawBytes",
8267
- "returnedBytes",
8268
- "keptOutBytes",
8269
- "replaced",
8270
- "keptOutRatio"
9192
+ "task",
9193
+ "signal",
9194
+ "severity",
9195
+ "value",
9196
+ "rule"
8271
9197
  ]
8272
9198
  }
8273
9199
  },
8274
- "totals": {
8275
- "type": "object",
8276
- "additionalProperties": false,
8277
- "properties": {
8278
- "calls": {
8279
- "type": "integer",
8280
- "minimum": 0
8281
- },
8282
- "rawBytes": {
8283
- "type": "integer",
8284
- "minimum": 0
8285
- },
8286
- "returnedBytes": {
8287
- "type": "integer",
8288
- "minimum": 0
8289
- },
8290
- "keptOutBytes": {
8291
- "type": "integer",
8292
- "minimum": 0
8293
- },
8294
- "replaced": {
8295
- "type": "integer",
8296
- "minimum": 0
8297
- }
8298
- },
8299
- "required": [
8300
- "calls",
8301
- "rawBytes",
8302
- "returnedBytes",
8303
- "keptOutBytes",
8304
- "replaced"
8305
- ]
9200
+ "limit": {
9201
+ "type": "integer",
9202
+ "minimum": 1
8306
9203
  },
8307
- "otherCalls": {
9204
+ "offset": {
9205
+ "type": "integer",
9206
+ "minimum": 0
9207
+ },
9208
+ "total": {
8308
9209
  "type": "integer",
8309
9210
  "minimum": 0
9211
+ },
9212
+ "nextOffset": {
9213
+ "type": [
9214
+ "integer",
9215
+ "null"
9216
+ ]
9217
+ },
9218
+ "attribution": {
9219
+ "$ref": "#/components/schemas/EfficiencyActionAttribution"
9220
+ },
9221
+ "generatedAt": {
9222
+ "type": "string"
8310
9223
  }
8311
9224
  },
8312
9225
  "required": [
8313
- "from",
8314
- "to",
9226
+ "window",
9227
+ "task",
8315
9228
  "items",
8316
- "totals",
8317
- "otherCalls"
9229
+ "limit",
9230
+ "offset",
9231
+ "total",
9232
+ "nextOffset",
9233
+ "attribution",
9234
+ "generatedAt"
8318
9235
  ],
8319
9236
  "examples": [
8320
9237
  {
8321
- "from": "2026-11-01T00:00:00.000Z",
8322
- "to": "2026-11-14T00:00:00.000Z",
9238
+ "window": {
9239
+ "from": "2026-11-01T00:00:00.000Z",
9240
+ "to": "2026-11-17T00:00:00.000Z"
9241
+ },
9242
+ "task": "agent-action-telemetry",
8323
9243
  "items": [
8324
9244
  {
8325
- "tool": "shell",
8326
- "category": "command",
8327
- "calls": 120,
8328
- "rawBytes": 900000,
8329
- "returnedBytes": 180000,
8330
- "keptOutBytes": 720000,
8331
- "replaced": 12,
8332
- "keptOutRatio": 0.8
9245
+ "task": "agent-action-telemetry",
9246
+ "signal": "error_rate",
9247
+ "severity": "warn",
9248
+ "value": 10,
9249
+ "rule": "a fifth or more of the actions failed"
9250
+ },
9251
+ {
9252
+ "task": "agent-action-telemetry",
9253
+ "signal": "guard_pressure",
9254
+ "severity": "info",
9255
+ "value": 3,
9256
+ "rule": "a quarter or more of the results needed the guard rewrite"
8333
9257
  }
8334
9258
  ],
8335
- "totals": {
8336
- "calls": 120,
8337
- "rawBytes": 900000,
8338
- "returnedBytes": 180000,
8339
- "keptOutBytes": 720000,
8340
- "replaced": 12
9259
+ "limit": 50,
9260
+ "offset": 0,
9261
+ "total": 2,
9262
+ "nextOffset": null,
9263
+ "attribution": {
9264
+ "sessions": 2,
9265
+ "mappedSessions": 2,
9266
+ "unmappedCalls": 0,
9267
+ "unmappedTurns": 0,
9268
+ "byRung": {
9269
+ "lease": 62,
9270
+ "window": 0,
9271
+ "dir-mtime": 0,
9272
+ "unmapped": 0
9273
+ },
9274
+ "coverage": 1
8341
9275
  },
8342
- "otherCalls": 0
9276
+ "generatedAt": "2026-11-17T12:00:00.000Z"
8343
9277
  }
8344
9278
  ]
8345
9279
  },
@@ -12568,11 +13502,17 @@
12568
13502
  "additionalProperties": false,
12569
13503
  "properties": {
12570
13504
  "entryId": {
12571
- "type": "string",
13505
+ "type": [
13506
+ "string",
13507
+ "null"
13508
+ ],
12572
13509
  "pattern": "^[0-9]{8}T[0-9]{6}Z-[0-9a-f]{8}$"
12573
13510
  },
12574
13511
  "itemId": {
12575
- "type": "integer",
13512
+ "type": [
13513
+ "integer",
13514
+ "null"
13515
+ ],
12576
13516
  "minimum": 1
12577
13517
  },
12578
13518
  "taskSlug": {