@bonesofspring/ai-rules 0.2.64 → 0.2.65

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 (293) hide show
  1. package/CHANGELOG.md +46 -11
  2. package/README.md +6 -6
  3. package/bin/lib/engine-scripts.js +14 -5
  4. package/bin/lib/seed-ai-local-team.js +7 -0
  5. package/docs/PRESET-CONTRIBUTION.md +41 -0
  6. package/docs/TEAM-DB.md +193 -52
  7. package/docs/openapi/team-db.v1.json +1238 -377
  8. package/mcp/defectdojo-mcp.mjs +7 -5
  9. package/mcp/lib/defectdojo.mjs +26 -14
  10. package/package.json +26 -20
  11. package/presets/_shared/ai-local/scripts/process-lease.mjs +576 -0
  12. package/presets/_shared/ai-local/scripts/processes.mjs +1618 -0
  13. package/presets/_shared/ai-local/scripts/run.mjs +5 -5
  14. package/presets/_shared/ai-local/scripts/team-db-api.mjs +465 -152
  15. package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +235 -10
  16. package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +416 -176
  17. package/presets/_shared/ai-local/scripts/team-db-project.mjs +171 -62
  18. package/presets/_shared/ai-local/scripts/team-db-scheduler.mjs +4 -0
  19. package/presets/_shared/ai-local/scripts/team-db-schema.mjs +143 -5
  20. package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +567 -0
  21. package/presets/_shared/ai-local/scripts/{team-db-backlog.mjs → team-db-tracker.mjs} +900 -197
  22. package/presets/_shared/ai-local/scripts/team-db-ui.mjs +750 -0
  23. package/presets/_shared/ai-local/scripts/team-db.mjs +104 -23
  24. package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -1
  25. package/presets/_shared/hooks/chain-team-phases.sh.tmpl +105 -17
  26. package/presets/_shared/hooks/guard-shell-command.mjs.tmpl +40 -2
  27. package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +105 -17
  28. package/presets/claude/android-kotlin/hooks/guard-shell-command.mjs +41 -2
  29. package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  30. package/presets/claude/android-kotlin/settings.json +6 -1
  31. package/presets/claude/go/hooks/chain-team-phases.sh +105 -17
  32. package/presets/claude/go/hooks/guard-shell-command.mjs +41 -2
  33. package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  34. package/presets/claude/go/settings.json +6 -1
  35. package/presets/claude/ios-swift/hooks/chain-team-phases.sh +105 -17
  36. package/presets/claude/ios-swift/hooks/guard-shell-command.mjs +41 -2
  37. package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  38. package/presets/claude/ios-swift/settings.json +6 -1
  39. package/presets/claude/java/hooks/chain-team-phases.sh +105 -17
  40. package/presets/claude/java/hooks/guard-shell-command.mjs +41 -2
  41. package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  42. package/presets/claude/java/settings.json +6 -1
  43. package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +105 -17
  44. package/presets/claude/mcp-ts/hooks/guard-shell-command.mjs +41 -2
  45. package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  46. package/presets/claude/mcp-ts/settings.json +6 -1
  47. package/presets/claude/mol/hooks/chain-team-phases.sh +105 -17
  48. package/presets/claude/mol/hooks/guard-shell-command.mjs +41 -2
  49. package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  50. package/presets/claude/mol/settings.json +6 -1
  51. package/presets/claude/next/MCP.md +2 -0
  52. package/presets/claude/next/REPO_AGENTS.md +2 -0
  53. package/presets/claude/next/agents/build-verifier.md +1 -1
  54. package/presets/claude/next/agents/ci-investigator.md +3 -0
  55. package/presets/claude/next/agents/debugger.md +3 -0
  56. package/presets/claude/next/agents/feature-developer.md +3 -0
  57. package/presets/claude/next/agents/mockup-reviewer.md +2 -0
  58. package/presets/claude/next/agents/performance-auditor.md +2 -0
  59. package/presets/claude/next/agents/playwright-test-generator.md +3 -0
  60. package/presets/claude/next/agents/playwright-test-healer.md +3 -0
  61. package/presets/claude/next/agents/playwright-test-planner.md +3 -0
  62. package/presets/claude/next/agents/qa-tester.md +3 -0
  63. package/presets/claude/next/commands/README.md +6 -0
  64. package/presets/claude/next/commands/ui-start.md +78 -0
  65. package/presets/claude/next/commands/ui-stop.md +71 -0
  66. package/presets/claude/next/hooks/chain-team-phases.sh +105 -17
  67. package/presets/claude/next/hooks/guard-shell-command.mjs +41 -2
  68. package/presets/claude/next/rules/README.md +2 -1
  69. package/presets/claude/next/rules/stack/next-app-core.md +1 -0
  70. package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  71. package/presets/claude/next/rules/tooling-and-review/dev-process-lifecycle.md +43 -0
  72. package/presets/claude/next/settings.json +6 -1
  73. package/presets/claude/nuxt/hooks/chain-team-phases.sh +105 -17
  74. package/presets/claude/nuxt/hooks/guard-shell-command.mjs +41 -2
  75. package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  76. package/presets/claude/nuxt/settings.json +6 -1
  77. package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +105 -17
  78. package/presets/claude/php-hexagonal/hooks/guard-shell-command.mjs +41 -2
  79. package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  80. package/presets/claude/php-hexagonal/settings.json +6 -1
  81. package/presets/claude/php-laravel/hooks/chain-team-phases.sh +106 -18
  82. package/presets/claude/php-laravel/hooks/guard-shell-command.mjs +41 -2
  83. package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  84. package/presets/claude/php-laravel/settings.json +6 -1
  85. package/presets/claude/svelte/hooks/chain-team-phases.sh +105 -17
  86. package/presets/claude/svelte/hooks/guard-shell-command.mjs +41 -2
  87. package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
  88. package/presets/claude/svelte/settings.json +6 -1
  89. package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +105 -17
  90. package/presets/cursor/android-kotlin/hooks/guard-shell-command.mjs +41 -2
  91. package/presets/cursor/go/hooks/chain-team-phases.sh +105 -17
  92. package/presets/cursor/go/hooks/guard-shell-command.mjs +41 -2
  93. package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +105 -17
  94. package/presets/cursor/ios-swift/hooks/guard-shell-command.mjs +41 -2
  95. package/presets/cursor/java/hooks/chain-team-phases.sh +105 -17
  96. package/presets/cursor/java/hooks/guard-shell-command.mjs +41 -2
  97. package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +105 -17
  98. package/presets/cursor/mcp-ts/hooks/guard-shell-command.mjs +41 -2
  99. package/presets/cursor/mol/hooks/chain-team-phases.sh +105 -17
  100. package/presets/cursor/mol/hooks/guard-shell-command.mjs +41 -2
  101. package/presets/cursor/next/MCP.md +2 -0
  102. package/presets/cursor/next/REPO_AGENTS.md +2 -0
  103. package/presets/cursor/next/agents/build-verifier.md +1 -1
  104. package/presets/cursor/next/agents/ci-investigator.md +2 -0
  105. package/presets/cursor/next/agents/debugger.md +2 -0
  106. package/presets/cursor/next/agents/feature-developer.md +2 -0
  107. package/presets/cursor/next/agents/mockup-reviewer.md +2 -0
  108. package/presets/cursor/next/agents/performance-auditor.md +2 -0
  109. package/presets/cursor/next/agents/playwright-test-generator.md +2 -0
  110. package/presets/cursor/next/agents/playwright-test-healer.md +2 -0
  111. package/presets/cursor/next/agents/playwright-test-planner.md +2 -0
  112. package/presets/cursor/next/agents/qa-tester.md +2 -0
  113. package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  114. package/presets/cursor/next/commands/README.md +6 -0
  115. package/presets/cursor/next/commands/ui-start.md +78 -0
  116. package/presets/cursor/next/commands/ui-stop.md +71 -0
  117. package/presets/cursor/next/hooks/chain-team-phases.sh +105 -17
  118. package/presets/cursor/next/hooks/guard-shell-command.mjs +41 -2
  119. package/presets/cursor/next/rules/README.md +2 -1
  120. package/presets/cursor/next/rules/dev-process-lifecycle.mdc +43 -0
  121. package/presets/cursor/next/rules/next-app-core.mdc +1 -0
  122. package/presets/cursor/nuxt/hooks/chain-team-phases.sh +105 -17
  123. package/presets/cursor/nuxt/hooks/guard-shell-command.mjs +41 -2
  124. package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +105 -17
  125. package/presets/cursor/php-hexagonal/hooks/guard-shell-command.mjs +41 -2
  126. package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +106 -18
  127. package/presets/cursor/php-laravel/hooks/guard-shell-command.mjs +41 -2
  128. package/presets/cursor/svelte/hooks/chain-team-phases.sh +105 -17
  129. package/presets/cursor/svelte/hooks/guard-shell-command.mjs +41 -2
  130. package/presets/mavis/android-kotlin/adapter-map.json +1 -1
  131. package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +105 -17
  132. package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  133. package/presets/mavis/go/adapter-map.json +1 -1
  134. package/presets/mavis/go/hooks/chain-team-phases.sh +105 -17
  135. package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -1
  136. package/presets/mavis/ios-swift/adapter-map.json +1 -1
  137. package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +105 -17
  138. package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -1
  139. package/presets/mavis/java/adapter-map.json +1 -1
  140. package/presets/mavis/java/hooks/chain-team-phases.sh +105 -17
  141. package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -1
  142. package/presets/mavis/mcp-ts/adapter-map.json +1 -1
  143. package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +105 -17
  144. package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  145. package/presets/mavis/mol/adapter-map.json +1 -1
  146. package/presets/mavis/mol/hooks/chain-team-phases.sh +105 -17
  147. package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -1
  148. package/presets/mavis/next/MCP.md +2 -0
  149. package/presets/mavis/next/REPO_AGENTS.md +2 -0
  150. package/presets/mavis/next/adapter-map.json +25 -1
  151. package/presets/mavis/next/agents/build-verifier.md +1 -1
  152. package/presets/mavis/next/agents/ci-investigator.md +3 -0
  153. package/presets/mavis/next/agents/debugger.md +3 -0
  154. package/presets/mavis/next/agents/feature-developer.md +3 -0
  155. package/presets/mavis/next/agents/mockup-reviewer.md +2 -0
  156. package/presets/mavis/next/agents/performance-auditor.md +2 -0
  157. package/presets/mavis/next/agents/playwright-test-generator.md +3 -0
  158. package/presets/mavis/next/agents/playwright-test-healer.md +3 -0
  159. package/presets/mavis/next/agents/playwright-test-planner.md +3 -0
  160. package/presets/mavis/next/agents/qa-tester.md +3 -0
  161. package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  162. package/presets/mavis/next/commands/README.md +6 -0
  163. package/presets/mavis/next/commands/ui-start.md +73 -0
  164. package/presets/mavis/next/commands/ui-stop.md +66 -0
  165. package/presets/mavis/next/hooks/chain-team-phases.sh +105 -17
  166. package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -1
  167. package/presets/mavis/next/rules/dev-process-lifecycle.md +38 -0
  168. package/presets/mavis/next/rules/next-app-core.md +1 -0
  169. package/presets/mavis/nuxt/adapter-map.json +1 -1
  170. package/presets/mavis/nuxt/hooks/chain-team-phases.sh +105 -17
  171. package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -1
  172. package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
  173. package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +105 -17
  174. package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  175. package/presets/mavis/php-laravel/adapter-map.json +1 -1
  176. package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +106 -18
  177. package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -1
  178. package/presets/mavis/svelte/adapter-map.json +1 -1
  179. package/presets/mavis/svelte/hooks/chain-team-phases.sh +105 -17
  180. package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -1
  181. package/presets/opencode/android-kotlin/adapter-map.json +1 -1
  182. package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +105 -17
  183. package/presets/opencode/android-kotlin/opencode.json +5 -1
  184. package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  185. package/presets/opencode/go/adapter-map.json +1 -1
  186. package/presets/opencode/go/hooks/chain-team-phases.sh +105 -17
  187. package/presets/opencode/go/opencode.json +5 -1
  188. package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -1
  189. package/presets/opencode/ios-swift/adapter-map.json +1 -1
  190. package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +105 -17
  191. package/presets/opencode/ios-swift/opencode.json +5 -1
  192. package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -1
  193. package/presets/opencode/java/adapter-map.json +1 -1
  194. package/presets/opencode/java/hooks/chain-team-phases.sh +105 -17
  195. package/presets/opencode/java/opencode.json +5 -1
  196. package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -1
  197. package/presets/opencode/mcp-ts/adapter-map.json +1 -1
  198. package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +105 -17
  199. package/presets/opencode/mcp-ts/opencode.json +5 -1
  200. package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  201. package/presets/opencode/mol/adapter-map.json +1 -1
  202. package/presets/opencode/mol/hooks/chain-team-phases.sh +105 -17
  203. package/presets/opencode/mol/opencode.json +4 -0
  204. package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -1
  205. package/presets/opencode/next/MCP.md +2 -0
  206. package/presets/opencode/next/REPO_AGENTS.md +2 -0
  207. package/presets/opencode/next/adapter-map.json +25 -1
  208. package/presets/opencode/next/agents/build-verifier.md +1 -1
  209. package/presets/opencode/next/agents/ci-investigator.md +3 -0
  210. package/presets/opencode/next/agents/debugger.md +3 -0
  211. package/presets/opencode/next/agents/feature-developer.md +3 -0
  212. package/presets/opencode/next/agents/mockup-reviewer.md +2 -0
  213. package/presets/opencode/next/agents/performance-auditor.md +2 -0
  214. package/presets/opencode/next/agents/playwright-test-generator.md +3 -0
  215. package/presets/opencode/next/agents/playwright-test-healer.md +3 -0
  216. package/presets/opencode/next/agents/playwright-test-planner.md +3 -0
  217. package/presets/opencode/next/agents/qa-tester.md +3 -0
  218. package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  219. package/presets/opencode/next/commands/README.md +6 -0
  220. package/presets/opencode/next/commands/ui-start.md +81 -0
  221. package/presets/opencode/next/commands/ui-stop.md +74 -0
  222. package/presets/opencode/next/hooks/chain-team-phases.sh +105 -17
  223. package/presets/opencode/next/opencode.json +4 -0
  224. package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -1
  225. package/presets/opencode/next/rules/dev-process-lifecycle.md +38 -0
  226. package/presets/opencode/next/rules/next-app-core.md +1 -0
  227. package/presets/opencode/nuxt/adapter-map.json +1 -1
  228. package/presets/opencode/nuxt/hooks/chain-team-phases.sh +105 -17
  229. package/presets/opencode/nuxt/opencode.json +4 -0
  230. package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -1
  231. package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
  232. package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +105 -17
  233. package/presets/opencode/php-hexagonal/opencode.json +5 -1
  234. package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  235. package/presets/opencode/php-laravel/adapter-map.json +1 -1
  236. package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +106 -18
  237. package/presets/opencode/php-laravel/opencode.json +5 -1
  238. package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -1
  239. package/presets/opencode/svelte/adapter-map.json +1 -1
  240. package/presets/opencode/svelte/hooks/chain-team-phases.sh +105 -17
  241. package/presets/opencode/svelte/opencode.json +4 -0
  242. package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -1
  243. package/presets/zcode/android-kotlin/adapter-map.json +1 -1
  244. package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +105 -17
  245. package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
  246. package/presets/zcode/go/adapter-map.json +1 -1
  247. package/presets/zcode/go/hooks/chain-team-phases.sh +105 -17
  248. package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -1
  249. package/presets/zcode/ios-swift/adapter-map.json +1 -1
  250. package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +105 -17
  251. package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -1
  252. package/presets/zcode/java/adapter-map.json +1 -1
  253. package/presets/zcode/java/hooks/chain-team-phases.sh +105 -17
  254. package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -1
  255. package/presets/zcode/mcp-ts/adapter-map.json +1 -1
  256. package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +105 -17
  257. package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
  258. package/presets/zcode/mol/adapter-map.json +1 -1
  259. package/presets/zcode/mol/hooks/chain-team-phases.sh +105 -17
  260. package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -1
  261. package/presets/zcode/next/MCP.md +2 -0
  262. package/presets/zcode/next/REPO_AGENTS.md +2 -0
  263. package/presets/zcode/next/adapter-map.json +25 -1
  264. package/presets/zcode/next/agents/build-verifier.md +1 -1
  265. package/presets/zcode/next/agents/ci-investigator.md +3 -0
  266. package/presets/zcode/next/agents/debugger.md +3 -0
  267. package/presets/zcode/next/agents/feature-developer.md +3 -0
  268. package/presets/zcode/next/agents/mockup-reviewer.md +2 -0
  269. package/presets/zcode/next/agents/performance-auditor.md +2 -0
  270. package/presets/zcode/next/agents/playwright-test-generator.md +3 -0
  271. package/presets/zcode/next/agents/playwright-test-healer.md +3 -0
  272. package/presets/zcode/next/agents/playwright-test-planner.md +3 -0
  273. package/presets/zcode/next/agents/qa-tester.md +3 -0
  274. package/presets/zcode/next/ai-local/rules-library/storybook-dev-compare-figma.md +1 -1
  275. package/presets/zcode/next/commands/README.md +6 -0
  276. package/presets/zcode/next/commands/ui-start.md +81 -0
  277. package/presets/zcode/next/commands/ui-stop.md +74 -0
  278. package/presets/zcode/next/hooks/chain-team-phases.sh +105 -17
  279. package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -1
  280. package/presets/zcode/next/rules/dev-process-lifecycle.md +38 -0
  281. package/presets/zcode/next/rules/next-app-core.md +1 -0
  282. package/presets/zcode/nuxt/adapter-map.json +1 -1
  283. package/presets/zcode/nuxt/hooks/chain-team-phases.sh +105 -17
  284. package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -1
  285. package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
  286. package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +105 -17
  287. package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
  288. package/presets/zcode/php-laravel/adapter-map.json +1 -1
  289. package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +106 -18
  290. package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -1
  291. package/presets/zcode/svelte/adapter-map.json +1 -1
  292. package/presets/zcode/svelte/hooks/chain-team-phases.sh +105 -17
  293. package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -1
@@ -3,8 +3,8 @@
3
3
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
4
4
  "info": {
5
5
  "title": "Agent team SQLite projection API",
6
- "summary": "Projection of `.ai.local/team`. Task files, job definitions, run manifests and the backlog store are authoritative; the database is a rebuildable copy. Ten mutations exist — the idempotent rescan, the confirmed task delete, the four job writes, and the four backlog writes — and every one runs as a bounded child process.",
7
- "description": "Loopback-only operator API. No authentication by design, no CORS, no outbound request. Errors use one `{error:{code,message,details?}}` envelope. Every non-GET/HEAD request to a read-only path returns 405 `E_METHOD_NOT_ALLOWED` with `Allow: GET, HEAD`; `GET` and `HEAD` on `/api/v1/sync` return 405 with `Allow: POST`; any other method on `/api/v1/tasks/{slug}` returns 405 with `Allow: GET, HEAD, DELETE`. The backlog paths advertise `GET, HEAD, POST` (`/api/v1/backlog`, `/api/v1/backlog/queue`), `GET, HEAD, PUT` (`/api/v1/backlog/{id}`) and `POST` (`/api/v1/backlog/queue/{entryId}/cancel`).",
6
+ "summary": "Projection of `.ai.local/team`. Task files, job definitions, run manifests and the tracker store are authoritative; the database is a rebuildable copy. Fourteen mutations exist — the idempotent rescan, the confirmed task delete, the four job writes, and the eight tracker writes — and every one runs as a bounded child process.",
7
+ "description": "Loopback-only operator API. No authentication by design, no CORS, no outbound request. Errors use one `{error:{code,message,details?}}` envelope. Every non-GET/HEAD request to a read-only path returns 405 `E_METHOD_NOT_ALLOWED` with `Allow: GET, HEAD`; `GET` and `HEAD` on `/api/v1/sync` return 405 with `Allow: POST`; any other method on `/api/v1/tasks/{slug}` returns 405 with `Allow: GET, HEAD, DELETE`. The tracker paths advertise `GET, HEAD, POST` (`/api/v1/tracker`, `/api/v1/tracker/queue`), `GET, HEAD, PUT, DELETE` (`/api/v1/tracker/{id}`), `POST` (`/api/v1/tracker/queue/{entryId}/cancel`, `/api/v1/tracker/{id}/tasks`, `/api/v1/tracker/{id}/tasks/{taskSlug}/stop|continue`).",
8
8
  "version": "1.0.0",
9
9
  "x-api-major": 1
10
10
  },
@@ -73,8 +73,8 @@
73
73
  "description": "Scheduled jobs, their runs and their logs"
74
74
  },
75
75
  {
76
- "name": "backlog",
77
- "description": "The file-authoritative task backlog: items, ordering and the launch queue"
76
+ "name": "tracker",
77
+ "description": "The file-authoritative task tracker: items, ordering and the launch queue"
78
78
  }
79
79
  ],
80
80
  "paths": {
@@ -3402,19 +3402,19 @@
3402
3402
  "security": []
3403
3403
  }
3404
3404
  },
3405
- "/api/v1/backlog": {
3405
+ "/api/v1/tracker": {
3406
3406
  "get": {
3407
3407
  "tags": [
3408
- "backlog"
3408
+ "tracker"
3409
3409
  ],
3410
- "summary": "List backlog items in the canonical total order",
3410
+ "summary": "List tracker items in the canonical total order",
3411
3411
  "description": "The canonical order is `priority ASC → createdAt ASC → id ASC`; there is deliberately no `sort` parameter, so the UI and the drain can never disagree. `status` matches the derived effective status, not the four-value stored decision — which stays visible per item as `status` in the payload. `ready` narrows to launchable items.",
3412
- "operationId": "listBacklogItems",
3412
+ "operationId": "listTrackerItems",
3413
3413
  "parameters": [
3414
3414
  {
3415
3415
  "name": "status",
3416
3416
  "in": "query",
3417
- "description": "Comma-separated effective item statuses (any subset). Valid values: `planned`, `queued`, `launched`, `completed`, `cancelled`, `superseded`. Any value outside this list is rejected with 422 `E_VALIDATION`.",
3417
+ "description": "Comma-separated effective item statuses (any subset). Valid values: `backlog`, `planned`, `queued`, `launched`, `completed`, `cancelled`, `superseded`. Any value outside this list is rejected with 422 `E_VALIDATION`.",
3418
3418
  "required": false,
3419
3419
  "schema": {
3420
3420
  "type": "string"
@@ -3469,7 +3469,7 @@
3469
3469
  "content": {
3470
3470
  "application/json": {
3471
3471
  "schema": {
3472
- "$ref": "#/components/schemas/BacklogItemList"
3472
+ "$ref": "#/components/schemas/TrackerItemList"
3473
3473
  }
3474
3474
  }
3475
3475
  }
@@ -3547,11 +3547,11 @@
3547
3547
  },
3548
3548
  "post": {
3549
3549
  "tags": [
3550
- "backlog"
3550
+ "tracker"
3551
3551
  ],
3552
- "summary": "Create one backlog item",
3553
- "description": "The body is the file-authoritative item (`backlog/items/<id>.json`); the server never writes it directly. Not idempotent: a repeated `POST` for an existing id is 409 `E_CONFLICT`. A refusal carries `details.code` with the CLI code (`E_SCHEMA`/`E_BACKLOG_UNKNOWN_DEP`/`E_BACKLOG_CYCLE`/`E_ID_COLLISION`). Executed as a bounded child (10 s, `SIGKILL`); `AI_RULES_TEAM_DB_DISABLE=1` answers 503 `E_DISABLED` before the child.",
3554
- "operationId": "createBacklogItem",
3552
+ "summary": "Create one tracker item",
3553
+ "description": "The body is the file-authoritative item (`tracker/items/<id>.json`); the server never writes it directly. The store assigns the next positive integer id from `tracker/sequence.json`; the body carries no id. A refusal carries `details.code` with the CLI code (`E_SCHEMA`/`E_TRACKER_UNKNOWN_DEP`/`E_TRACKER_CYCLE`). Executed as a bounded child (10 s, `SIGKILL`) that projects the tracker store before returning; `AI_RULES_TEAM_DB_DISABLE=1` answers 503 `E_DISABLED` before the child.",
3554
+ "operationId": "createTrackerItem",
3555
3555
  "parameters": [],
3556
3556
  "requestBody": {
3557
3557
  "required": true,
@@ -3559,7 +3559,7 @@
3559
3559
  "content": {
3560
3560
  "application/json": {
3561
3561
  "schema": {
3562
- "$ref": "#/components/schemas/BacklogCreateRequest"
3562
+ "$ref": "#/components/schemas/TrackerCreateRequest"
3563
3563
  }
3564
3564
  }
3565
3565
  }
@@ -3570,7 +3570,7 @@
3570
3570
  "content": {
3571
3571
  "application/json": {
3572
3572
  "schema": {
3573
- "$ref": "#/components/schemas/BacklogItemDetail"
3573
+ "$ref": "#/components/schemas/TrackerItemDetail"
3574
3574
  }
3575
3575
  }
3576
3576
  }
@@ -3613,16 +3613,6 @@
3613
3613
  }
3614
3614
  }
3615
3615
  },
3616
- "409": {
3617
- "description": "The id already names an item",
3618
- "content": {
3619
- "application/json": {
3620
- "schema": {
3621
- "$ref": "#/components/schemas/ErrorEnvelope"
3622
- }
3623
- }
3624
- }
3625
- },
3626
3616
  "413": {
3627
3617
  "description": "The body exceeds the 16 KiB JSON bound",
3628
3618
  "content": {
@@ -3657,14 +3647,14 @@
3657
3647
  "security": []
3658
3648
  }
3659
3649
  },
3660
- "/api/v1/backlog/queue": {
3650
+ "/api/v1/tracker/queue": {
3661
3651
  "get": {
3662
3652
  "tags": [
3663
- "backlog"
3653
+ "tracker"
3664
3654
  ],
3665
3655
  "summary": "List launch-queue entries",
3666
3656
  "description": "`status` matches the derived effective entry status (`active` and `done` are computed from the task row, never stored); `itemId` narrows to one item.",
3667
- "operationId": "listBacklogQueue",
3657
+ "operationId": "listTrackerQueue",
3668
3658
  "parameters": [
3669
3659
  {
3670
3660
  "name": "status",
@@ -3680,8 +3670,8 @@
3680
3670
  "in": "query",
3681
3671
  "required": false,
3682
3672
  "schema": {
3683
- "type": "string",
3684
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
3673
+ "type": "integer",
3674
+ "minimum": 1
3685
3675
  }
3686
3676
  },
3687
3677
  {
@@ -3715,7 +3705,7 @@
3715
3705
  "content": {
3716
3706
  "application/json": {
3717
3707
  "schema": {
3718
- "$ref": "#/components/schemas/BacklogQueueList"
3708
+ "$ref": "#/components/schemas/TrackerQueueList"
3719
3709
  }
3720
3710
  }
3721
3711
  }
@@ -3793,11 +3783,11 @@
3793
3783
  },
3794
3784
  "post": {
3795
3785
  "tags": [
3796
- "backlog"
3786
+ "tracker"
3797
3787
  ],
3798
- "summary": "Enqueue one backlog item",
3788
+ "summary": "Enqueue one tracker item",
3799
3789
  "description": "Idempotent per item: a non-terminal entry already exists → 200 with that entry and the new reason appended to its history (R3-5); otherwise a new entry is written → 201. A blocked item is still enqueueable — a blocked launch request is legal. A terminal item is 409 `E_CONFLICT`. Executed as a bounded child (10 s, `SIGKILL`) behind the `E_DISABLED` guard.",
3800
- "operationId": "enqueueBacklogItem",
3790
+ "operationId": "enqueueTrackerItem",
3801
3791
  "parameters": [],
3802
3792
  "requestBody": {
3803
3793
  "required": true,
@@ -3805,7 +3795,7 @@
3805
3795
  "content": {
3806
3796
  "application/json": {
3807
3797
  "schema": {
3808
- "$ref": "#/components/schemas/BacklogEnqueueRequest"
3798
+ "$ref": "#/components/schemas/TrackerEnqueueRequest"
3809
3799
  }
3810
3800
  }
3811
3801
  }
@@ -3816,7 +3806,7 @@
3816
3806
  "content": {
3817
3807
  "application/json": {
3818
3808
  "schema": {
3819
- "$ref": "#/components/schemas/BacklogQueueEntry"
3809
+ "$ref": "#/components/schemas/TrackerQueueEntry"
3820
3810
  }
3821
3811
  }
3822
3812
  }
@@ -3826,7 +3816,7 @@
3826
3816
  "content": {
3827
3817
  "application/json": {
3828
3818
  "schema": {
3829
- "$ref": "#/components/schemas/BacklogQueueEntry"
3819
+ "$ref": "#/components/schemas/TrackerQueueEntry"
3830
3820
  }
3831
3821
  }
3832
3822
  }
@@ -3923,14 +3913,14 @@
3923
3913
  "security": []
3924
3914
  }
3925
3915
  },
3926
- "/api/v1/backlog/queue/{entryId}/cancel": {
3916
+ "/api/v1/tracker/queue/{entryId}/cancel": {
3927
3917
  "post": {
3928
3918
  "tags": [
3929
- "backlog"
3919
+ "tracker"
3930
3920
  ],
3931
3921
  "summary": "Cancel one launch-queue entry",
3932
3922
  "description": "Idempotent for any non-`active` entry: an already cancelled or done entry answers 200 unchanged. The `active` entry belongs to the hook and is refused with 409 `E_CONFLICT`. An absent or empty body is accepted; any other body is 422 `E_VALIDATION`. Executed as a bounded child (10 s, `SIGKILL`) behind the `E_DISABLED` guard.",
3933
- "operationId": "cancelBacklogQueueEntry",
3923
+ "operationId": "cancelTrackerQueueEntry",
3934
3924
  "parameters": [
3935
3925
  {
3936
3926
  "name": "entryId",
@@ -3962,7 +3952,7 @@
3962
3952
  "content": {
3963
3953
  "application/json": {
3964
3954
  "schema": {
3965
- "$ref": "#/components/schemas/BacklogQueueEntry"
3955
+ "$ref": "#/components/schemas/TrackerQueueEntry"
3966
3956
  }
3967
3957
  }
3968
3958
  }
@@ -4059,22 +4049,22 @@
4059
4049
  "security": []
4060
4050
  }
4061
4051
  },
4062
- "/api/v1/backlog/{id}": {
4052
+ "/api/v1/tracker/{id}": {
4063
4053
  "get": {
4064
4054
  "tags": [
4065
- "backlog"
4055
+ "tracker"
4066
4056
  ],
4067
- "summary": "One backlog item with its dependency and queue context",
4068
- "operationId": "getBacklogItem",
4057
+ "summary": "One tracker item with its dependency and queue context",
4058
+ "operationId": "getTrackerItem",
4069
4059
  "parameters": [
4070
4060
  {
4071
4061
  "name": "id",
4072
4062
  "in": "path",
4073
4063
  "required": true,
4074
- "description": "Backlog item id: the item key and the `/task` slug it launches under.",
4064
+ "description": "Tracker item id: the immutable positive integer key; linked team tasks carry their own slugs.",
4075
4065
  "schema": {
4076
- "type": "string",
4077
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
4066
+ "type": "integer",
4067
+ "minimum": 1
4078
4068
  }
4079
4069
  }
4080
4070
  ],
@@ -4084,7 +4074,7 @@
4084
4074
  "content": {
4085
4075
  "application/json": {
4086
4076
  "schema": {
4087
- "$ref": "#/components/schemas/BacklogItemDetail"
4077
+ "$ref": "#/components/schemas/TrackerItemDetail"
4088
4078
  }
4089
4079
  }
4090
4080
  }
@@ -4162,20 +4152,20 @@
4162
4152
  },
4163
4153
  "put": {
4164
4154
  "tags": [
4165
- "backlog"
4155
+ "tracker"
4166
4156
  ],
4167
- "summary": "Update one backlog item (optimistic on `revision`)",
4157
+ "summary": "Update one tracker item (optimistic on `revision`)",
4168
4158
  "description": "Optimistic concurrency: `revision` is required and must equal the stored revision; a missing or stale `revision` is 409 `E_CONFLICT` and the file is untouched. The body `id`, when present, must equal the path id. A terminal transition, a stale revision or a live queue entry is 409; the item is 404 when it does not exist. Executed as a bounded child (10 s, `SIGKILL`) behind the `E_DISABLED` guard.",
4169
- "operationId": "updateBacklogItem",
4159
+ "operationId": "updateTrackerItem",
4170
4160
  "parameters": [
4171
4161
  {
4172
4162
  "name": "id",
4173
4163
  "in": "path",
4174
4164
  "required": true,
4175
- "description": "Backlog item id: the item key and the `/task` slug it launches under.",
4165
+ "description": "Tracker item id: the immutable positive integer key; linked team tasks carry their own slugs.",
4176
4166
  "schema": {
4177
- "type": "string",
4178
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
4167
+ "type": "integer",
4168
+ "minimum": 1
4179
4169
  }
4180
4170
  }
4181
4171
  ],
@@ -4185,7 +4175,7 @@
4185
4175
  "content": {
4186
4176
  "application/json": {
4187
4177
  "schema": {
4188
- "$ref": "#/components/schemas/BacklogUpdateRequest"
4178
+ "$ref": "#/components/schemas/TrackerUpdateRequest"
4189
4179
  }
4190
4180
  }
4191
4181
  }
@@ -4196,7 +4186,7 @@
4196
4186
  "content": {
4197
4187
  "application/json": {
4198
4188
  "schema": {
4199
- "$ref": "#/components/schemas/BacklogItemDetail"
4189
+ "$ref": "#/components/schemas/TrackerItemDetail"
4200
4190
  }
4201
4191
  }
4202
4192
  }
@@ -4291,39 +4281,39 @@
4291
4281
  }
4292
4282
  },
4293
4283
  "security": []
4294
- }
4295
- },
4296
- "/api/v1/stats": {
4297
- "get": {
4284
+ },
4285
+ "delete": {
4298
4286
  "tags": [
4299
- "stats"
4287
+ "tracker"
4300
4288
  ],
4301
- "summary": "Aggregate counts and durations",
4302
- "operationId": "getStats",
4289
+ "summary": "Hard delete one tracker item with its links and prompts",
4290
+ "description": "Removes `tracker/items/<id>.json`, every `tracker/links/<linkId>.json` and its prompt, and terminal queue entries for the item. Team tasks are never removed. Refused with 409 while a linked task is active or a queue entry is non-terminal. Executed as a bounded child (30 s, `SIGKILL`) behind the `E_DISABLED` guard.",
4291
+ "operationId": "deleteTrackerItem",
4303
4292
  "parameters": [
4304
4293
  {
4305
- "name": "includeAbsent",
4306
- "in": "query",
4307
- "required": false,
4294
+ "name": "id",
4295
+ "in": "path",
4296
+ "required": true,
4297
+ "description": "Tracker item id: the immutable positive integer key; linked team tasks carry their own slugs.",
4308
4298
  "schema": {
4309
- "type": "boolean",
4310
- "default": false
4299
+ "type": "integer",
4300
+ "minimum": 1
4311
4301
  }
4312
4302
  }
4313
4303
  ],
4314
4304
  "responses": {
4315
4305
  "200": {
4316
- "description": "The filtered page",
4306
+ "description": "The deleted item id",
4317
4307
  "content": {
4318
4308
  "application/json": {
4319
4309
  "schema": {
4320
- "$ref": "#/components/schemas/Stats"
4310
+ "$ref": "#/components/schemas/TrackerDeleteResult"
4321
4311
  }
4322
4312
  }
4323
4313
  }
4324
4314
  },
4325
4315
  "400": {
4326
- "description": "Malformed request: an invalid slug or an invalid document path",
4316
+ "description": "Malformed request: an invalid item id",
4327
4317
  "content": {
4328
4318
  "application/json": {
4329
4319
  "schema": {
@@ -4343,7 +4333,7 @@
4343
4333
  }
4344
4334
  },
4345
4335
  "404": {
4346
- "description": "The task, document or route does not exist",
4336
+ "description": "The item does not exist",
4347
4337
  "content": {
4348
4338
  "application/json": {
4349
4339
  "schema": {
@@ -4370,8 +4360,18 @@
4370
4360
  }
4371
4361
  }
4372
4362
  },
4373
- "422": {
4374
- "description": "A query parameter is outside its documented bounds",
4363
+ "409": {
4364
+ "description": "A linked task is active or a queue entry is non-terminal; `details.code` names the refusal",
4365
+ "content": {
4366
+ "application/json": {
4367
+ "schema": {
4368
+ "$ref": "#/components/schemas/ErrorEnvelope"
4369
+ }
4370
+ }
4371
+ }
4372
+ },
4373
+ "413": {
4374
+ "description": "The body exceeds the declared bound",
4375
4375
  "content": {
4376
4376
  "application/json": {
4377
4377
  "schema": {
@@ -4381,7 +4381,7 @@
4381
4381
  }
4382
4382
  },
4383
4383
  "503": {
4384
- "description": "The projection database is missing, unusable, busy, or the projection is disabled",
4384
+ "description": "The projection is disabled, the database is missing, unusable, busy, or the child exceeded its time bound",
4385
4385
  "content": {
4386
4386
  "application/json": {
4387
4387
  "schema": {
@@ -4394,52 +4394,50 @@
4394
4394
  "security": []
4395
4395
  }
4396
4396
  },
4397
- "/api/v1/sync-runs": {
4398
- "get": {
4397
+ "/api/v1/tracker/{id}/tasks": {
4398
+ "post": {
4399
4399
  "tags": [
4400
- "sync"
4400
+ "tracker"
4401
4401
  ],
4402
- "summary": "Projection runs, newest first",
4403
- "operationId": "listSyncRuns",
4402
+ "summary": "Start a new team task linked to one tracker item",
4403
+ "description": "Writes one `tracker/links/<itemId>--<taskSlug>.json` plus its prompt and enqueues a launch request. The item id and the task slug are independent: the same item may accumulate several linked tasks. The hook drain bootstraps `tasks/<taskSlug>/`; this route never starts an agent. Executed as two bounded children (10 s each, `SIGKILL`); the link is removed if the enqueue fails.",
4404
+ "operationId": "startTrackerTask",
4404
4405
  "parameters": [
4405
4406
  {
4406
- "name": "limit",
4407
- "in": "query",
4408
- "description": "Page size, 1..200.",
4409
- "required": false,
4410
- "schema": {
4411
- "type": "integer",
4412
- "minimum": 1,
4413
- "maximum": 200,
4414
- "default": 50
4415
- }
4416
- },
4417
- {
4418
- "name": "offset",
4419
- "in": "query",
4420
- "description": "Zero-based row offset, 0..1000000.",
4421
- "required": false,
4407
+ "name": "id",
4408
+ "in": "path",
4409
+ "required": true,
4410
+ "description": "Tracker item id: the immutable positive integer key; linked team tasks carry their own slugs.",
4422
4411
  "schema": {
4423
4412
  "type": "integer",
4424
- "minimum": 0,
4425
- "maximum": 1000000,
4426
- "default": 0
4413
+ "minimum": 1
4427
4414
  }
4428
4415
  }
4429
4416
  ],
4417
+ "requestBody": {
4418
+ "required": true,
4419
+ "description": "One task-start payload as `application/json`, at most 64 KiB (the prompt is the largest field).",
4420
+ "content": {
4421
+ "application/json": {
4422
+ "schema": {
4423
+ "$ref": "#/components/schemas/TrackerTaskStartRequest"
4424
+ }
4425
+ }
4426
+ }
4427
+ },
4430
4428
  "responses": {
4431
- "200": {
4432
- "description": "The filtered page",
4429
+ "201": {
4430
+ "description": "The item with the new link and queue request",
4433
4431
  "content": {
4434
4432
  "application/json": {
4435
4433
  "schema": {
4436
- "$ref": "#/components/schemas/SyncRunList"
4434
+ "$ref": "#/components/schemas/TrackerItemDetail"
4437
4435
  }
4438
4436
  }
4439
4437
  }
4440
4438
  },
4441
4439
  "400": {
4442
- "description": "Malformed request: an invalid slug or an invalid document path",
4440
+ "description": "Malformed request: an invalid item id or task slug",
4443
4441
  "content": {
4444
4442
  "application/json": {
4445
4443
  "schema": {
@@ -4459,7 +4457,7 @@
4459
4457
  }
4460
4458
  },
4461
4459
  "404": {
4462
- "description": "The task, document or route does not exist",
4460
+ "description": "The item does not exist",
4463
4461
  "content": {
4464
4462
  "application/json": {
4465
4463
  "schema": {
@@ -4486,8 +4484,28 @@
4486
4484
  }
4487
4485
  }
4488
4486
  },
4487
+ "409": {
4488
+ "description": "The link already exists or the item is terminal",
4489
+ "content": {
4490
+ "application/json": {
4491
+ "schema": {
4492
+ "$ref": "#/components/schemas/ErrorEnvelope"
4493
+ }
4494
+ }
4495
+ }
4496
+ },
4497
+ "413": {
4498
+ "description": "The body exceeds the 64 KiB JSON bound",
4499
+ "content": {
4500
+ "application/json": {
4501
+ "schema": {
4502
+ "$ref": "#/components/schemas/ErrorEnvelope"
4503
+ }
4504
+ }
4505
+ }
4506
+ },
4489
4507
  "422": {
4490
- "description": "A query parameter is outside its documented bounds",
4508
+ "description": "A field is outside its documented bound or the media type is not JSON",
4491
4509
  "content": {
4492
4510
  "application/json": {
4493
4511
  "schema": {
@@ -4497,7 +4515,7 @@
4497
4515
  }
4498
4516
  },
4499
4517
  "503": {
4500
- "description": "The projection database is missing, unusable, busy, or the projection is disabled",
4518
+ "description": "The projection is disabled, the database is missing, unusable, busy, or a child exceeded its time bound",
4501
4519
  "content": {
4502
4520
  "application/json": {
4503
4521
  "schema": {
@@ -4510,41 +4528,60 @@
4510
4528
  "security": []
4511
4529
  }
4512
4530
  },
4513
- "/api/v1/sync": {
4531
+ "/api/v1/tracker/{id}/tasks/{taskSlug}/stop": {
4514
4532
  "post": {
4515
4533
  "tags": [
4516
- "sync"
4534
+ "tracker"
4535
+ ],
4536
+ "summary": "Stop a linked task and request a pause",
4537
+ "description": "Cancels a queued or claimed entry, writes the per-task `STOP` sentinel so the chain hook pauses at its next stop, and terminates the opt-in runner process group when one is active. Never writes `status.json`. Executed as bounded children (10 s).",
4538
+ "operationId": "stopTrackerTask",
4539
+ "parameters": [
4540
+ {
4541
+ "name": "id",
4542
+ "in": "path",
4543
+ "required": true,
4544
+ "description": "Tracker item id: the immutable positive integer key; linked team tasks carry their own slugs.",
4545
+ "schema": {
4546
+ "type": "integer",
4547
+ "minimum": 1
4548
+ }
4549
+ },
4550
+ {
4551
+ "name": "taskSlug",
4552
+ "in": "path",
4553
+ "required": true,
4554
+ "description": "Team-task slug linked to this tracker item.",
4555
+ "schema": {
4556
+ "type": "string",
4557
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
4558
+ }
4559
+ }
4517
4560
  ],
4518
- "summary": "Rescan task files (idempotent)",
4519
- "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.",
4520
- "operationId": "triggerSync",
4521
- "parameters": [],
4522
4561
  "requestBody": {
4523
4562
  "required": false,
4524
- "description": "Absent or an empty JSON object; any other body is rejected.",
4563
+ "description": "An optional action body as `application/json`, at most 1 KiB.",
4525
4564
  "content": {
4526
4565
  "application/json": {
4527
4566
  "schema": {
4528
- "type": "object",
4529
- "additionalProperties": false,
4530
- "properties": {}
4567
+ "$ref": "#/components/schemas/TrackerTaskActionRequest"
4531
4568
  }
4532
4569
  }
4533
4570
  }
4534
4571
  },
4535
4572
  "responses": {
4536
4573
  "200": {
4537
- "description": "The completed rescan",
4574
+ "description": "The item after the stop request",
4538
4575
  "content": {
4539
4576
  "application/json": {
4540
4577
  "schema": {
4541
- "$ref": "#/components/schemas/SyncResult"
4578
+ "$ref": "#/components/schemas/TrackerItemDetail"
4542
4579
  }
4543
4580
  }
4544
4581
  }
4545
4582
  },
4546
4583
  "400": {
4547
- "description": "Malformed request: an invalid slug or an invalid document path",
4584
+ "description": "Malformed request: an invalid item id or task slug",
4548
4585
  "content": {
4549
4586
  "application/json": {
4550
4587
  "schema": {
@@ -4564,7 +4601,7 @@
4564
4601
  }
4565
4602
  },
4566
4603
  "404": {
4567
- "description": "The task, document or route does not exist",
4604
+ "description": "The item or the link does not exist",
4568
4605
  "content": {
4569
4606
  "application/json": {
4570
4607
  "schema": {
@@ -4591,18 +4628,8 @@
4591
4628
  }
4592
4629
  }
4593
4630
  },
4594
- "413": {
4595
- "description": "The request body exceeds 1 KiB",
4596
- "content": {
4597
- "application/json": {
4598
- "schema": {
4599
- "$ref": "#/components/schemas/ErrorEnvelope"
4600
- }
4601
- }
4602
- }
4603
- },
4604
- "422": {
4605
- "description": "A query parameter is outside its documented bounds",
4631
+ "409": {
4632
+ "description": "The link cannot be stopped in its current state",
4606
4633
  "content": {
4607
4634
  "application/json": {
4608
4635
  "schema": {
@@ -4612,7 +4639,7 @@
4612
4639
  }
4613
4640
  },
4614
4641
  "503": {
4615
- "description": "The projection database is missing, unusable, busy, or the projection is disabled",
4642
+ "description": "The projection is disabled, the database is missing, unusable, busy, or a child exceeded its time bound",
4616
4643
  "content": {
4617
4644
  "application/json": {
4618
4645
  "schema": {
@@ -4624,72 +4651,528 @@
4624
4651
  },
4625
4652
  "security": []
4626
4653
  }
4627
- }
4628
- },
4629
- "components": {
4630
- "schemas": {
4631
- "Error": {
4632
- "type": "object",
4633
- "additionalProperties": false,
4634
- "properties": {
4635
- "code": {
4636
- "type": "string",
4637
- "enum": [
4638
- "E_BAD_REQUEST",
4639
- "E_FORBIDDEN_HOST",
4640
- "E_FORBIDDEN_ORIGIN",
4641
- "E_NOT_FOUND",
4642
- "E_METHOD_NOT_ALLOWED",
4643
- "E_VALIDATION",
4644
- "E_PAYLOAD_TOO_LARGE",
4645
- "E_DOC_NOT_FOUND",
4646
- "E_DOC_BINARY",
4647
- "E_DOC_CONTENT_OMITTED",
4648
- "E_ACTIVE_TASK",
4649
- "E_RANGE",
4650
- "E_DISABLED",
4651
- "E_DB_MISSING",
4652
- "E_DB_CORRUPT",
4653
- "E_SCHEMA_MISMATCH",
4654
- "E_SCHEMA_OUTDATED",
4655
- "E_SCHEMA_NEWER",
4656
- "E_BUSY",
4657
- "E_CONFLICT",
4658
- "E_SCHEDULER_OFFLINE",
4659
- "E_INTERNAL"
4660
- ]
4661
- },
4662
- "message": {
4663
- "type": "string"
4654
+ },
4655
+ "/api/v1/tracker/{id}/tasks/{taskSlug}/continue": {
4656
+ "post": {
4657
+ "tags": [
4658
+ "tracker"
4659
+ ],
4660
+ "summary": "Continue a linked task through the opt-in runner",
4661
+ "description": "Clears the per-task `STOP` sentinel and starts `team/runner.json` with a generated `/task-continue <taskSlug>` prompt. The runner is supervised: argv only, no shell, cwd confined to the repository, env allow-list, timeout and process-group kill. Without `team/runner.json` the route answers 409 `E_RUNNER_OFFLINE` and changes nothing.",
4662
+ "operationId": "continueTrackerTask",
4663
+ "parameters": [
4664
+ {
4665
+ "name": "id",
4666
+ "in": "path",
4667
+ "required": true,
4668
+ "description": "Tracker item id: the immutable positive integer key; linked team tasks carry their own slugs.",
4669
+ "schema": {
4670
+ "type": "integer",
4671
+ "minimum": 1
4672
+ }
4664
4673
  },
4665
- "details": {
4666
- "type": "object",
4667
- "additionalProperties": true
4668
- }
4669
- },
4670
- "required": [
4671
- "code",
4672
- "message"
4673
- ]
4674
- },
4675
- "ErrorEnvelope": {
4676
- "type": "object",
4677
- "additionalProperties": false,
4678
- "properties": {
4679
- "error": {
4680
- "$ref": "#/components/schemas/Error"
4674
+ {
4675
+ "name": "taskSlug",
4676
+ "in": "path",
4677
+ "required": true,
4678
+ "description": "Team-task slug linked to this tracker item.",
4679
+ "schema": {
4680
+ "type": "string",
4681
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
4682
+ }
4681
4683
  }
4682
- },
4683
- "required": [
4684
- "error"
4685
4684
  ],
4686
- "examples": [
4687
- {
4688
- "error": {
4689
- "code": "E_VALIDATION",
4690
- "message": "limit must be an integer between 1 and 200",
4691
- "details": {
4692
- "parameter": "limit"
4685
+ "requestBody": {
4686
+ "required": false,
4687
+ "description": "An optional action body as `application/json`, at most 1 KiB.",
4688
+ "content": {
4689
+ "application/json": {
4690
+ "schema": {
4691
+ "$ref": "#/components/schemas/TrackerTaskActionRequest"
4692
+ }
4693
+ }
4694
+ }
4695
+ },
4696
+ "responses": {
4697
+ "202": {
4698
+ "description": "The item after the runner was started",
4699
+ "content": {
4700
+ "application/json": {
4701
+ "schema": {
4702
+ "$ref": "#/components/schemas/TrackerItemDetail"
4703
+ }
4704
+ }
4705
+ }
4706
+ },
4707
+ "400": {
4708
+ "description": "Malformed request: an invalid item id or task slug",
4709
+ "content": {
4710
+ "application/json": {
4711
+ "schema": {
4712
+ "$ref": "#/components/schemas/ErrorEnvelope"
4713
+ }
4714
+ }
4715
+ }
4716
+ },
4717
+ "403": {
4718
+ "description": "A non-loopback Host or Origin was rejected before routing",
4719
+ "content": {
4720
+ "application/json": {
4721
+ "schema": {
4722
+ "$ref": "#/components/schemas/ErrorEnvelope"
4723
+ }
4724
+ }
4725
+ }
4726
+ },
4727
+ "404": {
4728
+ "description": "The item or the link does not exist",
4729
+ "content": {
4730
+ "application/json": {
4731
+ "schema": {
4732
+ "$ref": "#/components/schemas/ErrorEnvelope"
4733
+ }
4734
+ }
4735
+ }
4736
+ },
4737
+ "405": {
4738
+ "description": "The route does not accept this method; the response carries an Allow header",
4739
+ "headers": {
4740
+ "Allow": {
4741
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
4742
+ "schema": {
4743
+ "type": "string"
4744
+ }
4745
+ }
4746
+ },
4747
+ "content": {
4748
+ "application/json": {
4749
+ "schema": {
4750
+ "$ref": "#/components/schemas/ErrorEnvelope"
4751
+ }
4752
+ }
4753
+ }
4754
+ },
4755
+ "409": {
4756
+ "description": "The task is not bootstrapped, the runner is not configured, or another run is active",
4757
+ "content": {
4758
+ "application/json": {
4759
+ "schema": {
4760
+ "$ref": "#/components/schemas/ErrorEnvelope"
4761
+ }
4762
+ }
4763
+ }
4764
+ },
4765
+ "503": {
4766
+ "description": "The projection is disabled, the database is missing, unusable, busy, or a child exceeded its time bound",
4767
+ "content": {
4768
+ "application/json": {
4769
+ "schema": {
4770
+ "$ref": "#/components/schemas/ErrorEnvelope"
4771
+ }
4772
+ }
4773
+ }
4774
+ }
4775
+ },
4776
+ "security": []
4777
+ }
4778
+ },
4779
+ "/api/v1/stats": {
4780
+ "get": {
4781
+ "tags": [
4782
+ "stats"
4783
+ ],
4784
+ "summary": "Aggregate counts and durations",
4785
+ "operationId": "getStats",
4786
+ "parameters": [
4787
+ {
4788
+ "name": "includeAbsent",
4789
+ "in": "query",
4790
+ "required": false,
4791
+ "schema": {
4792
+ "type": "boolean",
4793
+ "default": false
4794
+ }
4795
+ }
4796
+ ],
4797
+ "responses": {
4798
+ "200": {
4799
+ "description": "The filtered page",
4800
+ "content": {
4801
+ "application/json": {
4802
+ "schema": {
4803
+ "$ref": "#/components/schemas/Stats"
4804
+ }
4805
+ }
4806
+ }
4807
+ },
4808
+ "400": {
4809
+ "description": "Malformed request: an invalid slug or an invalid document path",
4810
+ "content": {
4811
+ "application/json": {
4812
+ "schema": {
4813
+ "$ref": "#/components/schemas/ErrorEnvelope"
4814
+ }
4815
+ }
4816
+ }
4817
+ },
4818
+ "403": {
4819
+ "description": "A non-loopback Host or Origin was rejected before routing",
4820
+ "content": {
4821
+ "application/json": {
4822
+ "schema": {
4823
+ "$ref": "#/components/schemas/ErrorEnvelope"
4824
+ }
4825
+ }
4826
+ }
4827
+ },
4828
+ "404": {
4829
+ "description": "The task, document or route does not exist",
4830
+ "content": {
4831
+ "application/json": {
4832
+ "schema": {
4833
+ "$ref": "#/components/schemas/ErrorEnvelope"
4834
+ }
4835
+ }
4836
+ }
4837
+ },
4838
+ "405": {
4839
+ "description": "The route does not accept this method; the response carries an Allow header",
4840
+ "headers": {
4841
+ "Allow": {
4842
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
4843
+ "schema": {
4844
+ "type": "string"
4845
+ }
4846
+ }
4847
+ },
4848
+ "content": {
4849
+ "application/json": {
4850
+ "schema": {
4851
+ "$ref": "#/components/schemas/ErrorEnvelope"
4852
+ }
4853
+ }
4854
+ }
4855
+ },
4856
+ "422": {
4857
+ "description": "A query parameter is outside its documented bounds",
4858
+ "content": {
4859
+ "application/json": {
4860
+ "schema": {
4861
+ "$ref": "#/components/schemas/ErrorEnvelope"
4862
+ }
4863
+ }
4864
+ }
4865
+ },
4866
+ "503": {
4867
+ "description": "The projection database is missing, unusable, busy, or the projection is disabled",
4868
+ "content": {
4869
+ "application/json": {
4870
+ "schema": {
4871
+ "$ref": "#/components/schemas/ErrorEnvelope"
4872
+ }
4873
+ }
4874
+ }
4875
+ }
4876
+ },
4877
+ "security": []
4878
+ }
4879
+ },
4880
+ "/api/v1/sync-runs": {
4881
+ "get": {
4882
+ "tags": [
4883
+ "sync"
4884
+ ],
4885
+ "summary": "Projection runs, newest first",
4886
+ "operationId": "listSyncRuns",
4887
+ "parameters": [
4888
+ {
4889
+ "name": "limit",
4890
+ "in": "query",
4891
+ "description": "Page size, 1..200.",
4892
+ "required": false,
4893
+ "schema": {
4894
+ "type": "integer",
4895
+ "minimum": 1,
4896
+ "maximum": 200,
4897
+ "default": 50
4898
+ }
4899
+ },
4900
+ {
4901
+ "name": "offset",
4902
+ "in": "query",
4903
+ "description": "Zero-based row offset, 0..1000000.",
4904
+ "required": false,
4905
+ "schema": {
4906
+ "type": "integer",
4907
+ "minimum": 0,
4908
+ "maximum": 1000000,
4909
+ "default": 0
4910
+ }
4911
+ }
4912
+ ],
4913
+ "responses": {
4914
+ "200": {
4915
+ "description": "The filtered page",
4916
+ "content": {
4917
+ "application/json": {
4918
+ "schema": {
4919
+ "$ref": "#/components/schemas/SyncRunList"
4920
+ }
4921
+ }
4922
+ }
4923
+ },
4924
+ "400": {
4925
+ "description": "Malformed request: an invalid slug or an invalid document path",
4926
+ "content": {
4927
+ "application/json": {
4928
+ "schema": {
4929
+ "$ref": "#/components/schemas/ErrorEnvelope"
4930
+ }
4931
+ }
4932
+ }
4933
+ },
4934
+ "403": {
4935
+ "description": "A non-loopback Host or Origin was rejected before routing",
4936
+ "content": {
4937
+ "application/json": {
4938
+ "schema": {
4939
+ "$ref": "#/components/schemas/ErrorEnvelope"
4940
+ }
4941
+ }
4942
+ }
4943
+ },
4944
+ "404": {
4945
+ "description": "The task, document or route does not exist",
4946
+ "content": {
4947
+ "application/json": {
4948
+ "schema": {
4949
+ "$ref": "#/components/schemas/ErrorEnvelope"
4950
+ }
4951
+ }
4952
+ }
4953
+ },
4954
+ "405": {
4955
+ "description": "The route does not accept this method; the response carries an Allow header",
4956
+ "headers": {
4957
+ "Allow": {
4958
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
4959
+ "schema": {
4960
+ "type": "string"
4961
+ }
4962
+ }
4963
+ },
4964
+ "content": {
4965
+ "application/json": {
4966
+ "schema": {
4967
+ "$ref": "#/components/schemas/ErrorEnvelope"
4968
+ }
4969
+ }
4970
+ }
4971
+ },
4972
+ "422": {
4973
+ "description": "A query parameter is outside its documented bounds",
4974
+ "content": {
4975
+ "application/json": {
4976
+ "schema": {
4977
+ "$ref": "#/components/schemas/ErrorEnvelope"
4978
+ }
4979
+ }
4980
+ }
4981
+ },
4982
+ "503": {
4983
+ "description": "The projection database is missing, unusable, busy, or the projection is disabled",
4984
+ "content": {
4985
+ "application/json": {
4986
+ "schema": {
4987
+ "$ref": "#/components/schemas/ErrorEnvelope"
4988
+ }
4989
+ }
4990
+ }
4991
+ }
4992
+ },
4993
+ "security": []
4994
+ }
4995
+ },
4996
+ "/api/v1/sync": {
4997
+ "post": {
4998
+ "tags": [
4999
+ "sync"
5000
+ ],
5001
+ "summary": "Rescan task files (idempotent)",
5002
+ "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.",
5003
+ "operationId": "triggerSync",
5004
+ "parameters": [],
5005
+ "requestBody": {
5006
+ "required": false,
5007
+ "description": "Absent or an empty JSON object; any other body is rejected.",
5008
+ "content": {
5009
+ "application/json": {
5010
+ "schema": {
5011
+ "type": "object",
5012
+ "additionalProperties": false,
5013
+ "properties": {}
5014
+ }
5015
+ }
5016
+ }
5017
+ },
5018
+ "responses": {
5019
+ "200": {
5020
+ "description": "The completed rescan",
5021
+ "content": {
5022
+ "application/json": {
5023
+ "schema": {
5024
+ "$ref": "#/components/schemas/SyncResult"
5025
+ }
5026
+ }
5027
+ }
5028
+ },
5029
+ "400": {
5030
+ "description": "Malformed request: an invalid slug or an invalid document path",
5031
+ "content": {
5032
+ "application/json": {
5033
+ "schema": {
5034
+ "$ref": "#/components/schemas/ErrorEnvelope"
5035
+ }
5036
+ }
5037
+ }
5038
+ },
5039
+ "403": {
5040
+ "description": "A non-loopback Host or Origin was rejected before routing",
5041
+ "content": {
5042
+ "application/json": {
5043
+ "schema": {
5044
+ "$ref": "#/components/schemas/ErrorEnvelope"
5045
+ }
5046
+ }
5047
+ }
5048
+ },
5049
+ "404": {
5050
+ "description": "The task, document or route does not exist",
5051
+ "content": {
5052
+ "application/json": {
5053
+ "schema": {
5054
+ "$ref": "#/components/schemas/ErrorEnvelope"
5055
+ }
5056
+ }
5057
+ }
5058
+ },
5059
+ "405": {
5060
+ "description": "The route does not accept this method; the response carries an Allow header",
5061
+ "headers": {
5062
+ "Allow": {
5063
+ "description": "HTTP methods allowed on this path, for example `GET, HEAD`",
5064
+ "schema": {
5065
+ "type": "string"
5066
+ }
5067
+ }
5068
+ },
5069
+ "content": {
5070
+ "application/json": {
5071
+ "schema": {
5072
+ "$ref": "#/components/schemas/ErrorEnvelope"
5073
+ }
5074
+ }
5075
+ }
5076
+ },
5077
+ "413": {
5078
+ "description": "The request body exceeds 1 KiB",
5079
+ "content": {
5080
+ "application/json": {
5081
+ "schema": {
5082
+ "$ref": "#/components/schemas/ErrorEnvelope"
5083
+ }
5084
+ }
5085
+ }
5086
+ },
5087
+ "422": {
5088
+ "description": "A query parameter is outside its documented bounds",
5089
+ "content": {
5090
+ "application/json": {
5091
+ "schema": {
5092
+ "$ref": "#/components/schemas/ErrorEnvelope"
5093
+ }
5094
+ }
5095
+ }
5096
+ },
5097
+ "503": {
5098
+ "description": "The projection database is missing, unusable, busy, or the projection is disabled",
5099
+ "content": {
5100
+ "application/json": {
5101
+ "schema": {
5102
+ "$ref": "#/components/schemas/ErrorEnvelope"
5103
+ }
5104
+ }
5105
+ }
5106
+ }
5107
+ },
5108
+ "security": []
5109
+ }
5110
+ }
5111
+ },
5112
+ "components": {
5113
+ "schemas": {
5114
+ "Error": {
5115
+ "type": "object",
5116
+ "additionalProperties": false,
5117
+ "properties": {
5118
+ "code": {
5119
+ "type": "string",
5120
+ "enum": [
5121
+ "E_BAD_REQUEST",
5122
+ "E_FORBIDDEN_HOST",
5123
+ "E_FORBIDDEN_ORIGIN",
5124
+ "E_NOT_FOUND",
5125
+ "E_METHOD_NOT_ALLOWED",
5126
+ "E_VALIDATION",
5127
+ "E_PAYLOAD_TOO_LARGE",
5128
+ "E_DOC_NOT_FOUND",
5129
+ "E_DOC_BINARY",
5130
+ "E_DOC_CONTENT_OMITTED",
5131
+ "E_ACTIVE_TASK",
5132
+ "E_RANGE",
5133
+ "E_DISABLED",
5134
+ "E_DB_MISSING",
5135
+ "E_DB_CORRUPT",
5136
+ "E_SCHEMA_MISMATCH",
5137
+ "E_SCHEMA_OUTDATED",
5138
+ "E_SCHEMA_NEWER",
5139
+ "E_BUSY",
5140
+ "E_CONFLICT",
5141
+ "E_SCHEDULER_OFFLINE",
5142
+ "E_INTERNAL"
5143
+ ]
5144
+ },
5145
+ "message": {
5146
+ "type": "string"
5147
+ },
5148
+ "details": {
5149
+ "type": "object",
5150
+ "additionalProperties": true
5151
+ }
5152
+ },
5153
+ "required": [
5154
+ "code",
5155
+ "message"
5156
+ ]
5157
+ },
5158
+ "ErrorEnvelope": {
5159
+ "type": "object",
5160
+ "additionalProperties": false,
5161
+ "properties": {
5162
+ "error": {
5163
+ "$ref": "#/components/schemas/Error"
5164
+ }
5165
+ },
5166
+ "required": [
5167
+ "error"
5168
+ ],
5169
+ "examples": [
5170
+ {
5171
+ "error": {
5172
+ "code": "E_VALIDATION",
5173
+ "message": "limit must be an integer between 1 and 200",
5174
+ "details": {
5175
+ "parameter": "limit"
4693
5176
  }
4694
5177
  }
4695
5178
  }
@@ -6781,6 +7264,11 @@
6781
7264
  "degraded"
6782
7265
  ]
6783
7266
  },
7267
+ "rootId": {
7268
+ "type": "string",
7269
+ "pattern": "^[0-9a-f]{12}$",
7270
+ "description": "Identity of the repository this server projects: the first 12 hex characters of sha256 of the resolved team root. A hash, never a path. Additive and optional — a v1 consumer must not require it, and its absence means \"no identity\", never a mismatch."
7271
+ },
6784
7272
  "db": {
6785
7273
  "type": "object",
6786
7274
  "additionalProperties": false,
@@ -6848,7 +7336,7 @@
6848
7336
  "delete",
6849
7337
  "jobs",
6850
7338
  "schedule",
6851
- "backlog"
7339
+ "tracker"
6852
7340
  ]
6853
7341
  }
6854
7342
  },
@@ -6913,6 +7401,7 @@
6913
7401
  "examples": [
6914
7402
  {
6915
7403
  "status": "ok",
7404
+ "rootId": "a1b2c3d4e5f6",
6916
7405
  "db": {
6917
7406
  "file": "team.db",
6918
7407
  "present": true,
@@ -6930,7 +7419,7 @@
6930
7419
  "delete",
6931
7420
  "jobs",
6932
7421
  "schedule",
6933
- "backlog"
7422
+ "tracker"
6934
7423
  ],
6935
7424
  "scheduler": {
6936
7425
  "state": "running",
@@ -6940,6 +7429,36 @@
6940
7429
  "nextTickAt": "2026-11-06T08:00:05.000Z",
6941
7430
  "jobsDue": 1
6942
7431
  }
7432
+ },
7433
+ {
7434
+ "status": "ok",
7435
+ "db": {
7436
+ "file": "team.db",
7437
+ "present": true,
7438
+ "schemaVersion": 1,
7439
+ "fingerprintOk": true,
7440
+ "search": "fts5"
7441
+ },
7442
+ "tasks": {
7443
+ "total": 0,
7444
+ "absent": 0
7445
+ },
7446
+ "projectedAt": null,
7447
+ "capabilities": [
7448
+ "sync",
7449
+ "delete",
7450
+ "jobs",
7451
+ "schedule",
7452
+ "tracker"
7453
+ ],
7454
+ "scheduler": {
7455
+ "state": "stopped",
7456
+ "pid": null,
7457
+ "startedAt": null,
7458
+ "heartbeatAt": null,
7459
+ "nextTickAt": null,
7460
+ "jobsDue": 0
7461
+ }
6943
7462
  }
6944
7463
  ]
6945
7464
  },
@@ -8468,13 +8987,13 @@
8468
8987
  }
8469
8988
  ]
8470
8989
  },
8471
- "BacklogDependency": {
8990
+ "TrackerDependency": {
8472
8991
  "type": "object",
8473
8992
  "additionalProperties": false,
8474
8993
  "properties": {
8475
8994
  "id": {
8476
- "type": "string",
8477
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
8995
+ "type": "integer",
8996
+ "minimum": 1
8478
8997
  },
8479
8998
  "title": {
8480
8999
  "type": "string"
@@ -8482,6 +9001,7 @@
8482
9001
  "status": {
8483
9002
  "type": "string",
8484
9003
  "enum": [
9004
+ "backlog",
8485
9005
  "planned",
8486
9006
  "queued",
8487
9007
  "launched",
@@ -8502,14 +9022,14 @@
8502
9022
  ],
8503
9023
  "examples": [
8504
9024
  {
8505
- "id": "backlog-engine",
8506
- "title": "The file-authoritative backlog engine",
9025
+ "id": 2,
9026
+ "title": "The file-authoritative tracker engine",
8507
9027
  "status": "completed",
8508
9028
  "satisfied": true
8509
9029
  }
8510
9030
  ]
8511
9031
  },
8512
- "BacklogHistoryEntry": {
9032
+ "TrackerHistoryEntry": {
8513
9033
  "type": "object",
8514
9034
  "additionalProperties": false,
8515
9035
  "properties": {
@@ -8561,7 +9081,7 @@
8561
9081
  }
8562
9082
  ]
8563
9083
  },
8564
- "BacklogItem": {
9084
+ "TrackerItem": {
8565
9085
  "type": "object",
8566
9086
  "additionalProperties": false,
8567
9087
  "properties": {
@@ -8570,8 +9090,8 @@
8570
9090
  "const": 1
8571
9091
  },
8572
9092
  "id": {
8573
- "type": "string",
8574
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9093
+ "type": "integer",
9094
+ "minimum": 1
8575
9095
  },
8576
9096
  "revision": {
8577
9097
  "type": "integer",
@@ -8583,6 +9103,7 @@
8583
9103
  "status": {
8584
9104
  "type": "string",
8585
9105
  "enum": [
9106
+ "backlog",
8586
9107
  "planned",
8587
9108
  "completed",
8588
9109
  "cancelled",
@@ -8620,14 +9141,14 @@
8620
9141
  "history": {
8621
9142
  "type": "array",
8622
9143
  "items": {
8623
- "$ref": "#/components/schemas/BacklogHistoryEntry"
9144
+ "$ref": "#/components/schemas/TrackerHistoryEntry"
8624
9145
  }
8625
9146
  },
8626
9147
  "dependsOn": {
8627
9148
  "type": "array",
8628
9149
  "items": {
8629
- "type": "string",
8630
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9150
+ "type": "integer",
9151
+ "minimum": 1
8631
9152
  }
8632
9153
  },
8633
9154
  "sourceTask": {
@@ -8668,13 +9189,15 @@
8668
9189
  },
8669
9190
  "supersededBy": {
8670
9191
  "type": [
8671
- "string",
9192
+ "integer",
8672
9193
  "null"
8673
- ]
9194
+ ],
9195
+ "minimum": 1
8674
9196
  },
8675
9197
  "effectiveStatus": {
8676
9198
  "type": "string",
8677
9199
  "enum": [
9200
+ "backlog",
8678
9201
  "planned",
8679
9202
  "queued",
8680
9203
  "launched",
@@ -8695,8 +9218,8 @@
8695
9218
  "waitingOn": {
8696
9219
  "type": "array",
8697
9220
  "items": {
8698
- "type": "string",
8699
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9221
+ "type": "integer",
9222
+ "minimum": 1
8700
9223
  }
8701
9224
  },
8702
9225
  "queueEntryId": {
@@ -8742,15 +9265,15 @@
8742
9265
  "examples": [
8743
9266
  {
8744
9267
  "schemaVersion": 1,
8745
- "id": "ship-backlog-ui",
9268
+ "id": 1,
8746
9269
  "revision": 3,
8747
- "title": "Ship the backlog operator UI",
9270
+ "title": "Ship the tracker operator UI",
8748
9271
  "status": "planned",
8749
9272
  "priority": 2,
8750
9273
  "type": "feature",
8751
- "description": "The /backlog list and the /backlog/[id] detail over the existing proxy.",
9274
+ "description": "The /tracker list and the /tracker/[id] detail over the existing proxy.",
8752
9275
  "labels": [
8753
- "backlog",
9276
+ "tracker",
8754
9277
  "ui"
8755
9278
  ],
8756
9279
  "history": [
@@ -8762,9 +9285,9 @@
8762
9285
  }
8763
9286
  ],
8764
9287
  "dependsOn": [
8765
- "backlog-engine"
9288
+ 2
8766
9289
  ],
8767
- "sourceTask": "task-backlog-tracker-impl",
9290
+ "sourceTask": "task-tracker-tracker-impl",
8768
9291
  "sourceRefs": [
8769
9292
  "AC-5",
8770
9293
  "WP7"
@@ -8784,13 +9307,13 @@
8784
9307
  }
8785
9308
  ]
8786
9309
  },
8787
- "BacklogItemSummary": {
9310
+ "TrackerItemSummary": {
8788
9311
  "type": "object",
8789
9312
  "additionalProperties": false,
8790
9313
  "properties": {
8791
9314
  "id": {
8792
- "type": "string",
8793
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9315
+ "type": "integer",
9316
+ "minimum": 1
8794
9317
  },
8795
9318
  "title": {
8796
9319
  "type": "string"
@@ -8798,6 +9321,7 @@
8798
9321
  "status": {
8799
9322
  "type": "string",
8800
9323
  "enum": [
9324
+ "backlog",
8801
9325
  "planned",
8802
9326
  "completed",
8803
9327
  "cancelled",
@@ -8807,6 +9331,7 @@
8807
9331
  "effectiveStatus": {
8808
9332
  "type": "string",
8809
9333
  "enum": [
9334
+ "backlog",
8810
9335
  "planned",
8811
9336
  "queued",
8812
9337
  "launched",
@@ -8815,161 +9340,363 @@
8815
9340
  "superseded"
8816
9341
  ]
8817
9342
  },
8818
- "priority": {
8819
- "type": "integer",
8820
- "minimum": 0,
8821
- "maximum": 9
9343
+ "priority": {
9344
+ "type": "integer",
9345
+ "minimum": 0,
9346
+ "maximum": 9
9347
+ },
9348
+ "type": {
9349
+ "type": "string",
9350
+ "enum": [
9351
+ "feature",
9352
+ "bugfix",
9353
+ "spike",
9354
+ "chore",
9355
+ "docs",
9356
+ "refactor"
9357
+ ]
9358
+ },
9359
+ "description": {
9360
+ "type": [
9361
+ "string",
9362
+ "null"
9363
+ ]
9364
+ },
9365
+ "labels": {
9366
+ "type": "array",
9367
+ "items": {
9368
+ "type": "string"
9369
+ }
9370
+ },
9371
+ "dependsOn": {
9372
+ "type": "array",
9373
+ "items": {
9374
+ "type": "integer",
9375
+ "minimum": 1
9376
+ }
9377
+ },
9378
+ "waitingOn": {
9379
+ "type": "array",
9380
+ "items": {
9381
+ "type": "integer",
9382
+ "minimum": 1
9383
+ }
9384
+ },
9385
+ "ready": {
9386
+ "type": "boolean"
9387
+ },
9388
+ "sourceTask": {
9389
+ "type": [
9390
+ "string",
9391
+ "null"
9392
+ ]
9393
+ },
9394
+ "sourceRefs": {
9395
+ "type": "array",
9396
+ "items": {
9397
+ "type": "string"
9398
+ }
9399
+ },
9400
+ "taskState": {
9401
+ "type": [
9402
+ "string",
9403
+ "null"
9404
+ ]
9405
+ },
9406
+ "createdAt": {
9407
+ "type": "string"
9408
+ },
9409
+ "updatedAt": {
9410
+ "type": "string"
9411
+ },
9412
+ "queueEntryId": {
9413
+ "type": [
9414
+ "string",
9415
+ "null"
9416
+ ]
9417
+ },
9418
+ "linkCount": {
9419
+ "type": "integer",
9420
+ "minimum": 0
9421
+ },
9422
+ "linkedTasks": {
9423
+ "type": "array",
9424
+ "items": {
9425
+ "type": "string"
9426
+ }
9427
+ }
9428
+ },
9429
+ "required": [
9430
+ "id",
9431
+ "title",
9432
+ "status",
9433
+ "effectiveStatus",
9434
+ "priority",
9435
+ "type",
9436
+ "description",
9437
+ "labels",
9438
+ "dependsOn",
9439
+ "waitingOn",
9440
+ "ready",
9441
+ "sourceTask",
9442
+ "sourceRefs",
9443
+ "taskState",
9444
+ "createdAt",
9445
+ "updatedAt",
9446
+ "queueEntryId",
9447
+ "linkCount",
9448
+ "linkedTasks"
9449
+ ],
9450
+ "examples": [
9451
+ {
9452
+ "id": 1,
9453
+ "title": "Ship the tracker operator UI",
9454
+ "status": "planned",
9455
+ "effectiveStatus": "queued",
9456
+ "priority": 2,
9457
+ "type": "feature",
9458
+ "description": "The /tracker list and the /tracker/[id] detail over the existing proxy.",
9459
+ "labels": [
9460
+ "tracker",
9461
+ "ui"
9462
+ ],
9463
+ "dependsOn": [
9464
+ 2
9465
+ ],
9466
+ "waitingOn": [],
9467
+ "ready": true,
9468
+ "sourceTask": "task-tracker-tracker-impl",
9469
+ "sourceRefs": [
9470
+ "AC-5",
9471
+ "WP7"
9472
+ ],
9473
+ "taskState": null,
9474
+ "createdAt": "2026-11-10T09:00:00.000Z",
9475
+ "updatedAt": "2026-11-12T10:00:00.000Z",
9476
+ "queueEntryId": "20261112T100000Z-1a2b3c4d",
9477
+ "linkCount": 1,
9478
+ "linkedTasks": [
9479
+ "ship-tracker-ui"
9480
+ ]
9481
+ }
9482
+ ]
9483
+ },
9484
+ "TrackerTaskRun": {
9485
+ "type": "object",
9486
+ "additionalProperties": false,
9487
+ "properties": {
9488
+ "runId": {
9489
+ "type": "string",
9490
+ "pattern": "^[0-9]{8}T[0-9]{6}Z-[0-9a-f]{8}$"
9491
+ },
9492
+ "state": {
9493
+ "type": "string"
9494
+ },
9495
+ "startedAt": {
9496
+ "type": [
9497
+ "string",
9498
+ "null"
9499
+ ]
9500
+ },
9501
+ "finishedAt": {
9502
+ "type": [
9503
+ "string",
9504
+ "null"
9505
+ ]
9506
+ },
9507
+ "error": {
9508
+ "type": [
9509
+ "string",
9510
+ "null"
9511
+ ]
9512
+ }
9513
+ },
9514
+ "required": [
9515
+ "runId",
9516
+ "state",
9517
+ "startedAt",
9518
+ "finishedAt",
9519
+ "error"
9520
+ ]
9521
+ },
9522
+ "TrackerTaskLink": {
9523
+ "type": "object",
9524
+ "additionalProperties": false,
9525
+ "properties": {
9526
+ "schemaVersion": {
9527
+ "type": "integer",
9528
+ "const": 1
9529
+ },
9530
+ "linkId": {
9531
+ "type": "string",
9532
+ "pattern": "^[1-9][0-9]*--[a-z0-9]+(?:-[a-z0-9]+)*$"
9533
+ },
9534
+ "itemId": {
9535
+ "type": "integer",
9536
+ "minimum": 1
9537
+ },
9538
+ "taskSlug": {
9539
+ "type": "string",
9540
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9541
+ },
9542
+ "entryId": {
9543
+ "type": [
9544
+ "string",
9545
+ "null"
9546
+ ]
9547
+ },
9548
+ "role": {
9549
+ "type": "string",
9550
+ "enum": [
9551
+ "primary",
9552
+ "follow-up"
9553
+ ]
8822
9554
  },
8823
- "type": {
9555
+ "decision": {
8824
9556
  "type": "string",
8825
9557
  "enum": [
8826
- "feature",
8827
- "bugfix",
8828
- "spike",
8829
- "chore",
8830
- "docs",
8831
- "refactor"
9558
+ "requested",
9559
+ "stopped",
9560
+ "unlinked"
8832
9561
  ]
8833
9562
  },
8834
- "description": {
9563
+ "promptPath": {
8835
9564
  "type": [
8836
9565
  "string",
8837
9566
  "null"
8838
9567
  ]
8839
9568
  },
8840
- "labels": {
8841
- "type": "array",
8842
- "items": {
8843
- "type": "string"
8844
- }
9569
+ "language": {
9570
+ "type": [
9571
+ "string",
9572
+ "null"
9573
+ ]
8845
9574
  },
8846
- "dependsOn": {
8847
- "type": "array",
8848
- "items": {
8849
- "type": "string",
8850
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
8851
- }
9575
+ "revision": {
9576
+ "type": "integer",
9577
+ "minimum": 0
8852
9578
  },
8853
- "waitingOn": {
9579
+ "createdAt": {
9580
+ "type": "string"
9581
+ },
9582
+ "updatedAt": {
9583
+ "type": "string"
9584
+ },
9585
+ "history": {
8854
9586
  "type": "array",
8855
9587
  "items": {
8856
- "type": "string",
8857
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9588
+ "$ref": "#/components/schemas/TrackerHistoryEntry"
8858
9589
  }
8859
9590
  },
8860
- "ready": {
8861
- "type": "boolean"
9591
+ "effectiveState": {
9592
+ "type": "string",
9593
+ "enum": [
9594
+ "requested",
9595
+ "claimed",
9596
+ "active",
9597
+ "paused",
9598
+ "stopped",
9599
+ "completed",
9600
+ "failed",
9601
+ "unlinked"
9602
+ ]
8862
9603
  },
8863
- "sourceTask": {
9604
+ "taskState": {
8864
9605
  "type": [
8865
9606
  "string",
8866
9607
  "null"
8867
9608
  ]
8868
9609
  },
8869
- "sourceRefs": {
8870
- "type": "array",
8871
- "items": {
8872
- "type": "string"
8873
- }
8874
- },
8875
- "taskState": {
9610
+ "taskStartAt": {
8876
9611
  "type": [
8877
9612
  "string",
8878
9613
  "null"
8879
9614
  ]
8880
9615
  },
8881
- "createdAt": {
8882
- "type": "string"
8883
- },
8884
- "updatedAt": {
8885
- "type": "string"
9616
+ "taskEndAt": {
9617
+ "type": [
9618
+ "string",
9619
+ "null"
9620
+ ]
8886
9621
  },
8887
- "queueEntryId": {
9622
+ "entryStatus": {
8888
9623
  "type": [
8889
9624
  "string",
8890
9625
  "null"
8891
9626
  ]
9627
+ },
9628
+ "latestRun": {
9629
+ "oneOf": [
9630
+ {
9631
+ "$ref": "#/components/schemas/TrackerTaskRun"
9632
+ },
9633
+ {
9634
+ "type": "null"
9635
+ }
9636
+ ]
9637
+ },
9638
+ "legacy": {
9639
+ "type": "boolean"
8892
9640
  }
8893
9641
  },
8894
9642
  "required": [
8895
- "id",
8896
- "title",
8897
- "status",
8898
- "effectiveStatus",
8899
- "priority",
8900
- "type",
8901
- "description",
8902
- "labels",
8903
- "dependsOn",
8904
- "waitingOn",
8905
- "ready",
8906
- "sourceTask",
8907
- "sourceRefs",
8908
- "taskState",
9643
+ "schemaVersion",
9644
+ "linkId",
9645
+ "itemId",
9646
+ "taskSlug",
9647
+ "entryId",
9648
+ "role",
9649
+ "decision",
9650
+ "promptPath",
9651
+ "language",
9652
+ "revision",
8909
9653
  "createdAt",
8910
9654
  "updatedAt",
8911
- "queueEntryId"
8912
- ],
8913
- "examples": [
8914
- {
8915
- "id": "ship-backlog-ui",
8916
- "title": "Ship the backlog operator UI",
8917
- "status": "planned",
8918
- "effectiveStatus": "queued",
8919
- "priority": 2,
8920
- "type": "feature",
8921
- "description": "The /backlog list and the /backlog/[id] detail over the existing proxy.",
8922
- "labels": [
8923
- "backlog",
8924
- "ui"
8925
- ],
8926
- "dependsOn": [
8927
- "backlog-engine"
8928
- ],
8929
- "waitingOn": [],
8930
- "ready": true,
8931
- "sourceTask": "task-backlog-tracker-impl",
8932
- "sourceRefs": [
8933
- "AC-5",
8934
- "WP7"
8935
- ],
8936
- "taskState": null,
8937
- "createdAt": "2026-11-10T09:00:00.000Z",
8938
- "updatedAt": "2026-11-12T10:00:00.000Z",
8939
- "queueEntryId": "20261112T100000Z-1a2b3c4d"
8940
- }
9655
+ "history",
9656
+ "effectiveState",
9657
+ "taskState",
9658
+ "taskStartAt",
9659
+ "taskEndAt",
9660
+ "entryStatus",
9661
+ "latestRun"
8941
9662
  ]
8942
9663
  },
8943
- "BacklogItemDetail": {
9664
+ "TrackerItemDetail": {
8944
9665
  "type": "object",
8945
9666
  "additionalProperties": false,
8946
9667
  "properties": {
8947
9668
  "item": {
8948
- "$ref": "#/components/schemas/BacklogItem"
9669
+ "$ref": "#/components/schemas/TrackerItem"
8949
9670
  },
8950
9671
  "dependencies": {
8951
9672
  "type": "array",
8952
9673
  "items": {
8953
- "$ref": "#/components/schemas/BacklogDependency"
9674
+ "$ref": "#/components/schemas/TrackerDependency"
8954
9675
  }
8955
9676
  },
8956
9677
  "dependents": {
8957
9678
  "type": "array",
8958
9679
  "items": {
8959
- "$ref": "#/components/schemas/BacklogDependency"
9680
+ "$ref": "#/components/schemas/TrackerDependency"
8960
9681
  }
8961
9682
  },
8962
9683
  "queue": {
8963
9684
  "type": "array",
8964
9685
  "items": {
8965
- "$ref": "#/components/schemas/BacklogQueueEntry"
9686
+ "$ref": "#/components/schemas/TrackerQueueEntry"
9687
+ }
9688
+ },
9689
+ "tasks": {
9690
+ "type": "array",
9691
+ "items": {
9692
+ "$ref": "#/components/schemas/TrackerTaskLink"
8966
9693
  }
8967
9694
  },
8968
9695
  "criticalPath": {
8969
9696
  "type": "array",
8970
9697
  "items": {
8971
- "type": "string",
8972
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9698
+ "type": "integer",
9699
+ "minimum": 1
8973
9700
  }
8974
9701
  }
8975
9702
  },
@@ -8978,21 +9705,22 @@
8978
9705
  "dependencies",
8979
9706
  "dependents",
8980
9707
  "queue",
9708
+ "tasks",
8981
9709
  "criticalPath"
8982
9710
  ],
8983
9711
  "examples": [
8984
9712
  {
8985
9713
  "item": {
8986
9714
  "schemaVersion": 1,
8987
- "id": "ship-backlog-ui",
9715
+ "id": 1,
8988
9716
  "revision": 3,
8989
- "title": "Ship the backlog operator UI",
9717
+ "title": "Ship the tracker operator UI",
8990
9718
  "status": "planned",
8991
9719
  "priority": 2,
8992
9720
  "type": "feature",
8993
- "description": "The /backlog list and the /backlog/[id] detail over the existing proxy.",
9721
+ "description": "The /tracker list and the /tracker/[id] detail over the existing proxy.",
8994
9722
  "labels": [
8995
- "backlog",
9723
+ "tracker",
8996
9724
  "ui"
8997
9725
  ],
8998
9726
  "history": [
@@ -9004,9 +9732,9 @@
9004
9732
  }
9005
9733
  ],
9006
9734
  "dependsOn": [
9007
- "backlog-engine"
9735
+ 2
9008
9736
  ],
9009
- "sourceTask": "task-backlog-tracker-impl",
9737
+ "sourceTask": "task-tracker-tracker-impl",
9010
9738
  "sourceRefs": [
9011
9739
  "AC-5",
9012
9740
  "WP7"
@@ -9026,8 +9754,8 @@
9026
9754
  },
9027
9755
  "dependencies": [
9028
9756
  {
9029
- "id": "backlog-engine",
9030
- "title": "The file-authoritative backlog engine",
9757
+ "id": 2,
9758
+ "title": "The file-authoritative tracker engine",
9031
9759
  "status": "completed",
9032
9760
  "satisfied": true
9033
9761
  }
@@ -9036,11 +9764,13 @@
9036
9764
  "queue": [
9037
9765
  {
9038
9766
  "entryId": "20261112T100000Z-1a2b3c4d",
9039
- "itemId": "ship-backlog-ui",
9767
+ "itemId": 1,
9768
+ "taskSlug": "ship-tracker-ui",
9769
+ "linkId": "1--ship-tracker-ui",
9040
9770
  "status": "queued",
9041
9771
  "reason": "ready to ship",
9042
9772
  "requestedBy": "operator",
9043
- "command": "/task ship-backlog-ui",
9773
+ "command": "/task ship-tracker-ui",
9044
9774
  "revision": 2,
9045
9775
  "requestedAt": "2026-11-12T10:00:00.000Z",
9046
9776
  "claimedAt": null,
@@ -9053,26 +9783,57 @@
9053
9783
  "detail": null
9054
9784
  }
9055
9785
  ],
9056
- "itemTitle": "Ship the backlog operator UI",
9786
+ "itemTitle": "Ship the tracker operator UI",
9057
9787
  "taskState": null,
9058
9788
  "taskStartAt": null,
9059
9789
  "taskEndAt": null
9060
9790
  }
9061
9791
  ],
9792
+ "tasks": [
9793
+ {
9794
+ "schemaVersion": 1,
9795
+ "linkId": "1--ship-tracker-ui",
9796
+ "itemId": 1,
9797
+ "taskSlug": "ship-tracker-ui",
9798
+ "entryId": "20261112T100000Z-1a2b3c4d",
9799
+ "role": "primary",
9800
+ "decision": "requested",
9801
+ "promptPath": "tracker/links/1--ship-tracker-ui.md",
9802
+ "language": "ru",
9803
+ "revision": 1,
9804
+ "createdAt": "2026-11-12T09:59:00.000Z",
9805
+ "updatedAt": "2026-11-12T10:00:00.000Z",
9806
+ "history": [
9807
+ {
9808
+ "at": "2026-11-12T09:59:00.000Z",
9809
+ "type": "created",
9810
+ "actor": "operator",
9811
+ "detail": null
9812
+ }
9813
+ ],
9814
+ "effectiveState": "requested",
9815
+ "taskState": null,
9816
+ "taskStartAt": null,
9817
+ "taskEndAt": null,
9818
+ "entryStatus": "queued",
9819
+ "latestRun": null
9820
+ }
9821
+ ],
9062
9822
  "criticalPath": [
9063
- "ship-backlog-ui"
9823
+ 2,
9824
+ 1
9064
9825
  ]
9065
9826
  }
9066
9827
  ]
9067
9828
  },
9068
- "BacklogItemList": {
9829
+ "TrackerItemList": {
9069
9830
  "type": "object",
9070
9831
  "additionalProperties": false,
9071
9832
  "properties": {
9072
9833
  "items": {
9073
9834
  "type": "array",
9074
9835
  "items": {
9075
- "$ref": "#/components/schemas/BacklogItemSummary"
9836
+ "$ref": "#/components/schemas/TrackerItemSummary"
9076
9837
  }
9077
9838
  },
9078
9839
  "total": {
@@ -9104,8 +9865,8 @@
9104
9865
  "criticalPathIds": {
9105
9866
  "type": "array",
9106
9867
  "items": {
9107
- "type": "string",
9108
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9868
+ "type": "integer",
9869
+ "minimum": 1
9109
9870
  }
9110
9871
  },
9111
9872
  "maxActive": {
@@ -9134,23 +9895,23 @@
9134
9895
  {
9135
9896
  "items": [
9136
9897
  {
9137
- "id": "ship-backlog-ui",
9138
- "title": "Ship the backlog operator UI",
9898
+ "id": 1,
9899
+ "title": "Ship the tracker operator UI",
9139
9900
  "status": "planned",
9140
9901
  "effectiveStatus": "queued",
9141
9902
  "priority": 2,
9142
9903
  "type": "feature",
9143
- "description": "The /backlog list and the /backlog/[id] detail over the existing proxy.",
9904
+ "description": "The /tracker list and the /tracker/[id] detail over the existing proxy.",
9144
9905
  "labels": [
9145
- "backlog",
9906
+ "tracker",
9146
9907
  "ui"
9147
9908
  ],
9148
9909
  "dependsOn": [
9149
- "backlog-engine"
9910
+ 2
9150
9911
  ],
9151
9912
  "waitingOn": [],
9152
9913
  "ready": true,
9153
- "sourceTask": "task-backlog-tracker-impl",
9914
+ "sourceTask": "task-tracker-tracker-impl",
9154
9915
  "sourceRefs": [
9155
9916
  "AC-5",
9156
9917
  "WP7"
@@ -9158,7 +9919,11 @@
9158
9919
  "taskState": null,
9159
9920
  "createdAt": "2026-11-10T09:00:00.000Z",
9160
9921
  "updatedAt": "2026-11-12T10:00:00.000Z",
9161
- "queueEntryId": "20261112T100000Z-1a2b3c4d"
9922
+ "queueEntryId": "20261112T100000Z-1a2b3c4d",
9923
+ "linkCount": 1,
9924
+ "linkedTasks": [
9925
+ "ship-tracker-ui"
9926
+ ]
9162
9927
  }
9163
9928
  ],
9164
9929
  "total": 3,
@@ -9168,29 +9933,36 @@
9168
9933
  "asOf": "2026-11-12T10:00:00.000Z",
9169
9934
  "readyCount": 1,
9170
9935
  "criticalPathIds": [
9171
- "ship-backlog-ui"
9936
+ 2,
9937
+ 1
9172
9938
  ],
9173
9939
  "maxActive": 1,
9174
9940
  "activeCount": 0
9175
9941
  }
9176
9942
  ]
9177
9943
  },
9178
- "BacklogCreateRequest": {
9944
+ "TrackerCreateRequest": {
9179
9945
  "type": "object",
9180
9946
  "additionalProperties": false,
9181
9947
  "properties": {
9182
- "id": {
9183
- "type": "string",
9184
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9185
- },
9186
9948
  "title": {
9187
9949
  "type": "string"
9188
9950
  },
9951
+ "status": {
9952
+ "type": "string",
9953
+ "enum": [
9954
+ "backlog",
9955
+ "planned",
9956
+ "completed",
9957
+ "cancelled",
9958
+ "superseded"
9959
+ ]
9960
+ },
9189
9961
  "dependsOn": {
9190
9962
  "type": "array",
9191
9963
  "items": {
9192
- "type": "string",
9193
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9964
+ "type": "integer",
9965
+ "minimum": 1
9194
9966
  }
9195
9967
  },
9196
9968
  "priority": {
@@ -9233,32 +10005,30 @@
9233
10005
  }
9234
10006
  },
9235
10007
  "required": [
9236
- "id",
9237
10008
  "title"
9238
10009
  ],
9239
10010
  "examples": [
9240
10011
  {
9241
- "id": "ship-backlog-ui",
9242
- "title": "Ship the backlog operator UI",
10012
+ "title": "Ship the tracker operator UI",
9243
10013
  "dependsOn": [
9244
- "backlog-engine"
10014
+ 2
9245
10015
  ],
9246
10016
  "priority": 2,
9247
- "sourceTask": "task-backlog-tracker-impl",
10017
+ "sourceTask": "task-tracker-tracker-impl",
9248
10018
  "sourceRefs": [
9249
10019
  "AC-5",
9250
10020
  "WP7"
9251
10021
  ],
9252
10022
  "type": "feature",
9253
- "description": "The /backlog list and the /backlog/[id] detail over the existing proxy.",
10023
+ "description": "The /tracker list and the /tracker/[id] detail over the existing proxy.",
9254
10024
  "labels": [
9255
- "backlog",
10025
+ "tracker",
9256
10026
  "ui"
9257
10027
  ]
9258
10028
  }
9259
10029
  ]
9260
10030
  },
9261
- "BacklogUpdateRequest": {
10031
+ "TrackerUpdateRequest": {
9262
10032
  "type": "object",
9263
10033
  "additionalProperties": false,
9264
10034
  "properties": {
@@ -9272,6 +10042,7 @@
9272
10042
  "status": {
9273
10043
  "type": "string",
9274
10044
  "enum": [
10045
+ "backlog",
9275
10046
  "planned",
9276
10047
  "completed",
9277
10048
  "cancelled",
@@ -9286,8 +10057,8 @@
9286
10057
  "dependsOn": {
9287
10058
  "type": "array",
9288
10059
  "items": {
9289
- "type": "string",
9290
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
10060
+ "type": "integer",
10061
+ "minimum": 1
9291
10062
  }
9292
10063
  },
9293
10064
  "completedAt": {
@@ -9306,8 +10077,11 @@
9306
10077
  "type": "string"
9307
10078
  },
9308
10079
  "supersededBy": {
9309
- "type": "string",
9310
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
10080
+ "type": [
10081
+ "integer",
10082
+ "null"
10083
+ ],
10084
+ "minimum": 1
9311
10085
  },
9312
10086
  "type": {
9313
10087
  "type": "string",
@@ -9339,18 +10113,18 @@
9339
10113
  "examples": [
9340
10114
  {
9341
10115
  "revision": 3,
9342
- "title": "Ship the backlog operator UI",
10116
+ "title": "Ship the tracker operator UI",
9343
10117
  "priority": 1,
9344
10118
  "type": "feature",
9345
- "description": "The /backlog list and the /backlog/[id] detail over the existing proxy.",
10119
+ "description": "The /tracker list and the /tracker/[id] detail over the existing proxy.",
9346
10120
  "labels": [
9347
- "backlog",
10121
+ "tracker",
9348
10122
  "ui"
9349
10123
  ]
9350
10124
  }
9351
10125
  ]
9352
10126
  },
9353
- "BacklogQueueEntry": {
10127
+ "TrackerQueueEntry": {
9354
10128
  "type": "object",
9355
10129
  "additionalProperties": false,
9356
10130
  "properties": {
@@ -9359,9 +10133,19 @@
9359
10133
  "pattern": "^[0-9]{8}T[0-9]{6}Z-[0-9a-f]{8}$"
9360
10134
  },
9361
10135
  "itemId": {
10136
+ "type": "integer",
10137
+ "minimum": 1
10138
+ },
10139
+ "taskSlug": {
9362
10140
  "type": "string",
9363
10141
  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9364
10142
  },
10143
+ "linkId": {
10144
+ "type": [
10145
+ "string",
10146
+ "null"
10147
+ ]
10148
+ },
9365
10149
  "status": {
9366
10150
  "type": "string",
9367
10151
  "enum": [
@@ -9407,7 +10191,7 @@
9407
10191
  "history": {
9408
10192
  "type": "array",
9409
10193
  "items": {
9410
- "$ref": "#/components/schemas/BacklogHistoryEntry"
10194
+ "$ref": "#/components/schemas/TrackerHistoryEntry"
9411
10195
  }
9412
10196
  },
9413
10197
  "itemTitle": {
@@ -9435,6 +10219,8 @@
9435
10219
  "required": [
9436
10220
  "entryId",
9437
10221
  "itemId",
10222
+ "taskSlug",
10223
+ "linkId",
9438
10224
  "status",
9439
10225
  "reason",
9440
10226
  "requestedBy",
@@ -9452,11 +10238,13 @@
9452
10238
  "examples": [
9453
10239
  {
9454
10240
  "entryId": "20261112T100000Z-1a2b3c4d",
9455
- "itemId": "ship-backlog-ui",
10241
+ "itemId": 1,
10242
+ "taskSlug": "ship-tracker-ui",
10243
+ "linkId": "1--ship-tracker-ui",
9456
10244
  "status": "queued",
9457
10245
  "reason": "ready to ship",
9458
10246
  "requestedBy": "operator",
9459
- "command": "/task ship-backlog-ui",
10247
+ "command": "/task ship-tracker-ui",
9460
10248
  "revision": 2,
9461
10249
  "requestedAt": "2026-11-12T10:00:00.000Z",
9462
10250
  "claimedAt": null,
@@ -9469,21 +10257,21 @@
9469
10257
  "detail": null
9470
10258
  }
9471
10259
  ],
9472
- "itemTitle": "Ship the backlog operator UI",
10260
+ "itemTitle": "Ship the tracker operator UI",
9473
10261
  "taskState": null,
9474
10262
  "taskStartAt": null,
9475
10263
  "taskEndAt": null
9476
10264
  }
9477
10265
  ]
9478
10266
  },
9479
- "BacklogQueueList": {
10267
+ "TrackerQueueList": {
9480
10268
  "type": "object",
9481
10269
  "additionalProperties": false,
9482
10270
  "properties": {
9483
10271
  "items": {
9484
10272
  "type": "array",
9485
10273
  "items": {
9486
- "$ref": "#/components/schemas/BacklogQueueEntry"
10274
+ "$ref": "#/components/schemas/TrackerQueueEntry"
9487
10275
  }
9488
10276
  },
9489
10277
  "total": {
@@ -9529,11 +10317,13 @@
9529
10317
  "items": [
9530
10318
  {
9531
10319
  "entryId": "20261112T100000Z-1a2b3c4d",
9532
- "itemId": "ship-backlog-ui",
10320
+ "itemId": 1,
10321
+ "taskSlug": "ship-tracker-ui",
10322
+ "linkId": "1--ship-tracker-ui",
9533
10323
  "status": "queued",
9534
10324
  "reason": "ready to ship",
9535
10325
  "requestedBy": "operator",
9536
- "command": "/task ship-backlog-ui",
10326
+ "command": "/task ship-tracker-ui",
9537
10327
  "revision": 2,
9538
10328
  "requestedAt": "2026-11-12T10:00:00.000Z",
9539
10329
  "claimedAt": null,
@@ -9546,7 +10336,7 @@
9546
10336
  "detail": null
9547
10337
  }
9548
10338
  ],
9549
- "itemTitle": "Ship the backlog operator UI",
10339
+ "itemTitle": "Ship the tracker operator UI",
9550
10340
  "taskState": null,
9551
10341
  "taskStartAt": null,
9552
10342
  "taskEndAt": null
@@ -9561,14 +10351,22 @@
9561
10351
  }
9562
10352
  ]
9563
10353
  },
9564
- "BacklogEnqueueRequest": {
10354
+ "TrackerEnqueueRequest": {
9565
10355
  "type": "object",
9566
10356
  "additionalProperties": false,
9567
10357
  "properties": {
9568
10358
  "itemId": {
10359
+ "type": "integer",
10360
+ "minimum": 1
10361
+ },
10362
+ "taskSlug": {
9569
10363
  "type": "string",
9570
10364
  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
9571
10365
  },
10366
+ "linkId": {
10367
+ "type": "string",
10368
+ "pattern": "^[1-9][0-9]*--[a-z0-9]+(?:-[a-z0-9]+)*$"
10369
+ },
9572
10370
  "reason": {
9573
10371
  "type": "string"
9574
10372
  },
@@ -9586,11 +10384,74 @@
9586
10384
  ],
9587
10385
  "examples": [
9588
10386
  {
9589
- "itemId": "ship-backlog-ui",
10387
+ "itemId": 1,
9590
10388
  "reason": "ready to ship",
9591
10389
  "requestedBy": "operator",
9592
- "command": "/task ship-backlog-ui"
10390
+ "command": "/task ship-tracker-ui"
10391
+ }
10392
+ ]
10393
+ },
10394
+ "TrackerTaskStartRequest": {
10395
+ "type": "object",
10396
+ "additionalProperties": false,
10397
+ "properties": {
10398
+ "taskSlug": {
10399
+ "type": "string",
10400
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
10401
+ },
10402
+ "prompt": {
10403
+ "type": "string"
10404
+ },
10405
+ "language": {
10406
+ "type": [
10407
+ "string",
10408
+ "null"
10409
+ ]
10410
+ },
10411
+ "role": {
10412
+ "type": "string",
10413
+ "enum": [
10414
+ "primary",
10415
+ "follow-up"
10416
+ ]
10417
+ },
10418
+ "reason": {
10419
+ "type": "string"
10420
+ },
10421
+ "requestedBy": {
10422
+ "type": "string"
10423
+ }
10424
+ },
10425
+ "required": [
10426
+ "taskSlug"
10427
+ ]
10428
+ },
10429
+ "TrackerTaskActionRequest": {
10430
+ "type": "object",
10431
+ "additionalProperties": false,
10432
+ "properties": {
10433
+ "reason": {
10434
+ "type": [
10435
+ "string",
10436
+ "null"
10437
+ ]
10438
+ },
10439
+ "requestedBy": {
10440
+ "type": "string"
10441
+ }
10442
+ }
10443
+ },
10444
+ "TrackerDeleteResult": {
10445
+ "type": "object",
10446
+ "additionalProperties": false,
10447
+ "properties": {
10448
+ "id": {
10449
+ "type": "integer",
10450
+ "minimum": 1
9593
10451
  }
10452
+ },
10453
+ "required": [
10454
+ "id"
9594
10455
  ]
9595
10456
  },
9596
10457
  "OpenApiDocument": {