@defrex/autobuild 1.9.0 → 1.10.0

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 (420) hide show
  1. package/README.md +3 -3
  2. package/SPEC.md +1512 -125
  3. package/bin/ab-dispatch-generation.ts +2 -0
  4. package/docs/agent-runtimes.md +30 -3
  5. package/docs/answering-blocked-builds.md +15 -7
  6. package/docs/architecture.md +282 -39
  7. package/docs/builds.md +5 -0
  8. package/docs/cli.md +7 -1
  9. package/docs/configuration-overview.md +1 -0
  10. package/docs/configuration.md +268 -45
  11. package/docs/dispatcher.md +17 -3
  12. package/docs/forges.md +1 -1
  13. package/docs/getting-started.md +1 -1
  14. package/docs/integration-overview.md +4 -2
  15. package/docs/integration-tree.md +102 -11
  16. package/docs/merge-policy.md +30 -14
  17. package/docs/migration-1.0.md +2 -1
  18. package/docs/operating.md +32 -4
  19. package/docs/operator-api.md +117 -14
  20. package/docs/optimization-nodes.md +1042 -0
  21. package/docs/overview.md +1 -1
  22. package/docs/plugin-authoring.md +46 -12
  23. package/docs/remote-store-protocol.md +46 -7
  24. package/docs/remote-ticket-protocol.md +50 -2
  25. package/docs/restacking.md +99 -11
  26. package/docs/seams.md +2 -2
  27. package/docs/setup.md +13 -2
  28. package/docs/skills.md +4 -2
  29. package/docs/spec-standard.md +2 -1
  30. package/docs/ticket-dependencies.md +5 -0
  31. package/docs/ticket-migration.md +4 -2
  32. package/docs/ticket-sources.md +30 -12
  33. package/docs/tickets.md +15 -6
  34. package/docs/troubleshooting.md +3 -2
  35. package/docs/verification.md +11 -0
  36. package/docs/workspaces.md +3 -1
  37. package/package.json +3 -3
  38. package/packages/core/src/accounts/chatgpt-oauth.ts +7 -5
  39. package/packages/core/src/cli/attempt.ts +103 -0
  40. package/packages/core/src/cli/attention.ts +8 -1
  41. package/packages/core/src/cli/binary-direct.ts +52 -1
  42. package/packages/core/src/cli/binary.ts +5 -3
  43. package/packages/core/src/cli/build-control.ts +328 -66
  44. package/packages/core/src/cli/context.ts +268 -15
  45. package/packages/core/src/cli/dashboard/detail.ts +26 -2
  46. package/packages/core/src/cli/dashboard/facts.ts +40 -3
  47. package/packages/core/src/cli/dashboard/integration-detail.ts +7 -2
  48. package/packages/core/src/cli/dashboard/landing-display.ts +15 -2
  49. package/packages/core/src/cli/dashboard/model.ts +102 -27
  50. package/packages/core/src/cli/dashboard/objective-row.ts +189 -0
  51. package/packages/core/src/cli/dashboard/render.ts +47 -1
  52. package/packages/core/src/cli/dashboard/reopen-display.ts +39 -0
  53. package/packages/core/src/cli/dashboard/tree.ts +12 -1
  54. package/packages/core/src/cli/dispatch-frontend.ts +9 -1
  55. package/packages/core/src/cli/dispatch-launch-stop.ts +55 -0
  56. package/packages/core/src/cli/dispatch-launcher.ts +26 -44
  57. package/packages/core/src/cli/dispatch-repository-feed.ts +1 -1
  58. package/packages/core/src/cli/dispatch.ts +16 -4
  59. package/packages/core/src/cli/env.ts +42 -0
  60. package/packages/core/src/cli/help.ts +208 -11
  61. package/packages/core/src/cli/init-agent.ts +4 -1
  62. package/packages/core/src/cli/init-readiness-remote.ts +3 -2
  63. package/packages/core/src/cli/init-validation.ts +2 -2
  64. package/packages/core/src/cli/init.ts +3 -2
  65. package/packages/core/src/cli/judge-entry.ts +82 -0
  66. package/packages/core/src/cli/judge.ts +233 -0
  67. package/packages/core/src/cli/landings.ts +3 -2
  68. package/packages/core/src/cli/main.ts +412 -143
  69. package/packages/core/src/cli/measurement-text.ts +19 -0
  70. package/packages/core/src/cli/objective.ts +154 -0
  71. package/packages/core/src/cli/publication-settlement.ts +106 -22
  72. package/packages/core/src/cli/repo-lease.ts +1 -0
  73. package/packages/core/src/cli/repository-status.ts +113 -18
  74. package/packages/core/src/cli/status.ts +193 -15
  75. package/packages/core/src/cli/store-opening.ts +4 -0
  76. package/packages/core/src/cli/terminals.ts +205 -8
  77. package/packages/core/src/cli/ticket-start.ts +53 -0
  78. package/packages/core/src/cli/ticket.ts +68 -2
  79. package/packages/core/src/cli/upgrade-agent.ts +12 -8
  80. package/packages/core/src/cli/wait.ts +8 -2
  81. package/packages/core/src/cli/watch.ts +341 -91
  82. package/packages/core/src/config/create-labels.ts +23 -0
  83. package/packages/core/src/config/live.ts +2 -0
  84. package/packages/core/src/config/pipeline-source.ts +1 -3
  85. package/packages/core/src/config/roles.ts +182 -73
  86. package/packages/core/src/config/schema.ts +112 -9
  87. package/packages/core/src/events/catalog.ts +39 -3
  88. package/packages/core/src/events/compatibility.ts +7 -1
  89. package/packages/core/src/events/payloads.ts +588 -1
  90. package/packages/core/src/events/policy.ts +53 -0
  91. package/packages/core/src/events/repository.ts +107 -24
  92. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +1481 -199
  93. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/0ab2a90d0305dc9d.json.gz +0 -0
  94. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/10a4657408d4e121.json.gz +0 -0
  95. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1152a2e97ee81728.json.gz +0 -0
  96. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/13ca84752c5f8b54.json.gz +0 -0
  97. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1411d1cdbdd9911e.json.gz +0 -0
  98. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1444fe1fa7fc802c.json.gz +0 -0
  99. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1491ac0600349391.json.gz +0 -0
  100. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1921f86f752428c9.json.gz +0 -0
  101. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/1972c1d66008ef6b.json.gz +0 -0
  102. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/19e8e43e7f3f1a06.json.gz +0 -0
  103. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/20a85c143c3e8164.json.gz +0 -0
  104. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/21ce2c0bf58318e1.json.gz +0 -0
  105. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/293dcb3a94fb3470.json.gz +0 -0
  106. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/2ab7436356267118.json.gz +0 -0
  107. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/2d084641735caaff.json.gz +0 -0
  108. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3237bcecf68e5db9.json.gz +0 -0
  109. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/33d0cc593610e56f.json.gz +0 -0
  110. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3451ed2136dcc356.json.gz +0 -0
  111. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/358ec8693f2237e6.json.gz +0 -0
  112. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/35cf9ccc4478b2d2.json.gz +0 -0
  113. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3649e7bd1203f154.json.gz +0 -0
  114. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/378da6dece82202a.json.gz +0 -0
  115. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/38c75099d9191471.json.gz +0 -0
  116. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/398952f1f01db1a3.json.gz +0 -0
  117. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3b64d352d56c9121.json.gz +0 -0
  118. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/3dc486226c05372d.json.gz +0 -0
  119. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/431c9bb2ee8838e0.json.gz +0 -0
  120. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4400dffca929e2f0.json.gz +0 -0
  121. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/49064fc079964a5c.json.gz +0 -0
  122. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4edded75f17742f4.json.gz +0 -0
  123. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4f00c0f2c8afd159.json.gz +0 -0
  124. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/516a5a7aadf97587.json.gz +0 -0
  125. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/516dc6ea85d67cd7.json.gz +0 -0
  126. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/584e2ba74608e051.json.gz +0 -0
  127. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/59ffaa6974094c72.json.gz +0 -0
  128. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/5bb43afb121674c6.json.gz +0 -0
  129. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/5f0ca42af862c4ee.json.gz +0 -0
  130. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6118031132db9bfc.json.gz +0 -0
  131. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/63107a8d58776b63.json.gz +0 -0
  132. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/63546b08d4d6fa11.json.gz +0 -0
  133. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/643d70429ce03dad.json.gz +0 -0
  134. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/677ea92572c29082.json.gz +0 -0
  135. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6ae5bf60504d6467.json.gz +0 -0
  136. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6efdc8defc75fccb.json.gz +0 -0
  137. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/71c53d33f09d8204.json.gz +0 -0
  138. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7267ca2757cffba7.json.gz +0 -0
  139. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/76b7d4244082b3f9.json.gz +0 -0
  140. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7749f918c6f10968.json.gz +0 -0
  141. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7833e42d16301424.json.gz +0 -0
  142. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/7d4edad0614adaf1.json.gz +0 -0
  143. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/837365898d04f45a.json.gz +0 -0
  144. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/85f9f0c921b8b5bb.json.gz +0 -0
  145. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8879f57a24733897.json.gz +0 -0
  146. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/88cb9e71bdec972d.json.gz +0 -0
  147. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8a0cd6dd06cc155e.json.gz +0 -0
  148. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8aa9ca8609dc051d.json.gz +0 -0
  149. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8c8640255bd61658.json.gz +0 -0
  150. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8cc15eb1807c0157.json.gz +0 -0
  151. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8ced97c44bc0af3a.json.gz +0 -0
  152. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8d4144004720b9f8.json.gz +0 -0
  153. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8db633ead1807f8b.json.gz +0 -0
  154. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/8e42cdbd0994ab0c.json.gz +0 -0
  155. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9011d0f6ff955ef9.json.gz +0 -0
  156. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/916ebc5433801c41.json.gz +0 -0
  157. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9539b995af5c54a9.json.gz +0 -0
  158. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/95f391bfd7b7dbd7.json.gz +0 -0
  159. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9613e8fa568a9281.json.gz +0 -0
  160. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9a68f8753bd9038d.json.gz +0 -0
  161. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9b25e58227080094.json.gz +0 -0
  162. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/9ee3919fbd4f9458.json.gz +0 -0
  163. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a04a34cc2717147b.json.gz +0 -0
  164. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a0b32c12e4e6edb6.json.gz +0 -0
  165. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a55218252707bdd3.json.gz +0 -0
  166. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a732fd08b31522a6.json.gz +0 -0
  167. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a9d206a01f9039e5.json.gz +0 -0
  168. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/abf7fe3c92c82f2d.json.gz +0 -0
  169. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ac928b04842c00db.json.gz +0 -0
  170. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/af953392d81911da.json.gz +0 -0
  171. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b0d877c44810ecb0.json.gz +0 -0
  172. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b0f7c6ebb2db57fc.json.gz +0 -0
  173. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/b905c22ec17eed31.json.gz +0 -0
  174. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/bce0c54e865f4b79.json.gz +0 -0
  175. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c68b7ee2e2610f30.json.gz +0 -0
  176. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c7f7e0378aeea237.json.gz +0 -0
  177. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/c98cb1659eb142b6.json.gz +0 -0
  178. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ca830adf06ed55a1.json.gz +0 -0
  179. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/cb3a219f33e437ca.json.gz +0 -0
  180. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/cf1e0c0d82567e0c.json.gz +0 -0
  181. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d008d86d9ff77b30.json.gz +0 -0
  182. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d1432a819d8e48c5.json.gz +0 -0
  183. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d185ed6aa9192aff.json.gz +0 -0
  184. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d873fad29d6c7e55.json.gz +0 -0
  185. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/db84b12316e2da4a.json.gz +0 -0
  186. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ddf6dc967d898767.json.gz +0 -0
  187. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/dfc64de6e7bfc0a0.json.gz +0 -0
  188. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e2f18fa32fe1f6d0.json.gz +0 -0
  189. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e37393fed29e84c5.json.gz +0 -0
  190. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e6a8585e2a054ff6.json.gz +0 -0
  191. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e7e9e327baca6903.json.gz +0 -0
  192. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/e86447af0571672c.json.gz +0 -0
  193. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ea819202d22122e5.json.gz +0 -0
  194. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eb4535585f2e84f6.json.gz +0 -0
  195. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eb7ddd5319d09e27.json.gz +0 -0
  196. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/eca4959b2b87ae15.json.gz +0 -0
  197. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ee10d7959ec4843c.json.gz +0 -0
  198. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/ef1b68347966ab26.json.gz +0 -0
  199. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f3e55425cc41f230.json.gz +0 -0
  200. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f40042c1cdb9fd43.json.gz +0 -0
  201. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f48466215c790a3f.json.gz +0 -0
  202. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f5b9ace9b59351e7.json.gz +0 -0
  203. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fa8f1475a55be935.json.gz +0 -0
  204. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fb21116a15d0b1f1.json.gz +0 -0
  205. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/fe95444fbeabe592.json.gz +0 -0
  206. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/09bf0a1611d07363.json +984 -0
  207. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/10eac4988d66e161.json +1067 -0
  208. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/1a436b5fb45aee3e.json +1116 -0
  209. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/249db6f7a41f90e2.json +161 -0
  210. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/25dcb2fb6eaa83f4.json +858 -0
  211. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/2e1bdc763924616f.json +4932 -0
  212. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/30e9dabce3c4263d.json +399 -0
  213. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/4898ef339c68fa36.json +83 -0
  214. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/51816c0ffa62af6e.json +417 -0
  215. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/561bf45320062a44.json +83 -0
  216. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/5672d0233085d050.json +84 -0
  217. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/5e39f42cbdbf35ef.json +163 -0
  218. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/7771a7a2250f9964.json +868 -0
  219. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/881c491321bec99a.json +1074 -0
  220. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/965f25c3af1d2cdc.json +160 -0
  221. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9b76d89da575ca90.json +20 -0
  222. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9eb485320a72a9ff.json +233 -0
  223. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a60448c01016135e.json +18 -0
  224. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6584fb61b6679bd.json +97 -0
  225. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/c88365c25b3186d3.json +543 -0
  226. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/e8f0481b23f90056.json +711 -0
  227. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ee55782ed40ebbac.json +110 -0
  228. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc5082fac8167f3d.json +98 -0
  229. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fd55c329cfe921cc.json +1069 -0
  230. package/packages/core/src/kernel/attempt-creation-key.ts +20 -0
  231. package/packages/core/src/kernel/attempt-settlement.ts +125 -0
  232. package/packages/core/src/kernel/auto-merge-default.ts +1 -3
  233. package/packages/core/src/kernel/auto-merge.ts +1 -3
  234. package/packages/core/src/kernel/dispatch-capacity.ts +312 -38
  235. package/packages/core/src/kernel/dispatch-placement.ts +1 -1
  236. package/packages/core/src/kernel/dispatch-settings.ts +1 -4
  237. package/packages/core/src/kernel/dispatch-status.ts +3 -5
  238. package/packages/core/src/kernel/dispatch-upgrade.ts +1 -1
  239. package/packages/core/src/kernel/engine.ts +109 -13
  240. package/packages/core/src/kernel/forge-checks.ts +140 -0
  241. package/packages/core/src/kernel/forge-health.ts +2 -2
  242. package/packages/core/src/kernel/generated-files.ts +43 -0
  243. package/packages/core/src/kernel/generated-regeneration.ts +254 -0
  244. package/packages/core/src/kernel/generators/build-log.ts +30 -2
  245. package/packages/core/src/kernel/generators/optimization-log.ts +578 -0
  246. package/packages/core/src/kernel/generators/panel-log.ts +133 -0
  247. package/packages/core/src/kernel/guarded-forge.ts +76 -11
  248. package/packages/core/src/kernel/harvest.ts +1 -4
  249. package/packages/core/src/kernel/head-paths.ts +4 -1
  250. package/packages/core/src/kernel/history-retention.ts +337 -0
  251. package/packages/core/src/kernel/incremental-fixtures.ts +6 -0
  252. package/packages/core/src/kernel/incremental.ts +14 -4
  253. package/packages/core/src/kernel/integration-landing.ts +64 -13
  254. package/packages/core/src/kernel/integration-stack.ts +123 -20
  255. package/packages/core/src/kernel/integration-state.ts +39 -2
  256. package/packages/core/src/kernel/janitor-failure.ts +2 -0
  257. package/packages/core/src/kernel/kernel-git.ts +1 -1
  258. package/packages/core/src/kernel/landing-measurement.ts +275 -0
  259. package/packages/core/src/kernel/landing-readiness.ts +2 -0
  260. package/packages/core/src/kernel/landing-state.ts +20 -1
  261. package/packages/core/src/kernel/leaf-restack-state.ts +17 -1
  262. package/packages/core/src/kernel/log-index-value.ts +2 -0
  263. package/packages/core/src/kernel/log-index.ts +81 -3
  264. package/packages/core/src/kernel/measurement.ts +406 -0
  265. package/packages/core/src/kernel/mixed-version.ts +6 -3
  266. package/packages/core/src/kernel/node-landing.ts +92 -18
  267. package/packages/core/src/kernel/node-restack-state.ts +27 -1
  268. package/packages/core/src/kernel/node-restack-transaction.ts +80 -23
  269. package/packages/core/src/kernel/node-verification-context.ts +14 -4
  270. package/packages/core/src/kernel/open-pr-backpressure-state.ts +24 -0
  271. package/packages/core/src/kernel/open-pr-backpressure.ts +133 -0
  272. package/packages/core/src/kernel/optimization-admission.ts +249 -0
  273. package/packages/core/src/kernel/optimization.ts +774 -0
  274. package/packages/core/src/kernel/panel.ts +225 -0
  275. package/packages/core/src/kernel/phases.ts +42 -6
  276. package/packages/core/src/kernel/pr-attachments.ts +4 -16
  277. package/packages/core/src/kernel/pr-summary.ts +2 -2
  278. package/packages/core/src/kernel/read-deferrals.ts +2 -2
  279. package/packages/core/src/kernel/read-facts.ts +69 -31
  280. package/packages/core/src/kernel/reconcile-restack.ts +352 -103
  281. package/packages/core/src/kernel/reducer-identity.ts +659 -0
  282. package/packages/core/src/kernel/reducer-registry.ts +37 -3
  283. package/packages/core/src/kernel/reducer-revisions.ts +50 -0
  284. package/packages/core/src/kernel/reducer.ts +208 -9
  285. package/packages/core/src/kernel/reopen-state.ts +48 -0
  286. package/packages/core/src/kernel/reopen.ts +143 -0
  287. package/packages/core/src/kernel/replay-retention.ts +208 -39
  288. package/packages/core/src/kernel/repository-attention.ts +1 -1
  289. package/packages/core/src/kernel/service-facts.ts +19 -7
  290. package/packages/core/src/kernel/terminal-guard.ts +13 -5
  291. package/packages/core/src/kernel/ticket-handbacks.ts +1 -1
  292. package/packages/core/src/kernel/ticket-migrations.ts +1 -1
  293. package/packages/core/src/kernel/ticket-preparation.ts +1 -1
  294. package/packages/core/src/kernel/ticket-source-health.ts +1 -1
  295. package/packages/core/src/kernel/ticket-starts.ts +118 -0
  296. package/packages/core/src/kernel/ticket-wait.ts +37 -2
  297. package/packages/core/src/kernel/verify-diff-base.ts +62 -0
  298. package/packages/core/src/kernel/verify-stage-state.ts +1 -0
  299. package/packages/core/src/kernel/verify-stages.ts +41 -1
  300. package/packages/core/src/objective.ts +532 -0
  301. package/packages/core/src/ontology.ts +49 -6
  302. package/packages/core/src/operator/annotations.ts +35 -4
  303. package/packages/core/src/operator/control.ts +2 -1
  304. package/packages/core/src/operator/index.ts +12 -0
  305. package/packages/core/src/operator/optimization.ts +307 -0
  306. package/packages/core/src/operator/protocol.ts +30 -1
  307. package/packages/core/src/operator/query.ts +15 -1
  308. package/packages/core/src/operator/registry.ts +219 -13
  309. package/packages/core/src/operator/requests.ts +25 -2
  310. package/packages/core/src/operator/ticket-start.ts +152 -0
  311. package/packages/core/src/operator/tickets.ts +3 -2
  312. package/packages/core/src/plugin-sdk/index.ts +2 -0
  313. package/packages/core/src/plugins/registry.ts +1 -0
  314. package/packages/core/src/ports/forge/contract.ts +9 -0
  315. package/packages/core/src/ports/forge/fake.ts +23 -2
  316. package/packages/core/src/ports/forge/git-rewrite.ts +6 -4
  317. package/packages/core/src/ports/forge/github-readiness.ts +1 -1
  318. package/packages/core/src/ports/forge/github-transport.ts +156 -1
  319. package/packages/core/src/ports/forge/github.ts +306 -100
  320. package/packages/core/src/ports/forge/readiness.ts +15 -3
  321. package/packages/core/src/ports/forge-failure.ts +22 -0
  322. package/packages/core/src/ports/forge-request-context.ts +23 -1
  323. package/packages/core/src/ports/forge-telemetry.ts +16 -0
  324. package/packages/core/src/ports/runner/antigravity.ts +1071 -0
  325. package/packages/core/src/ports/runner/claude.ts +6 -1
  326. package/packages/core/src/ports/runner/codex.ts +11 -2
  327. package/packages/core/src/ports/runner/contract.ts +25 -1
  328. package/packages/core/src/ports/runner/fake.ts +2 -2
  329. package/packages/core/src/ports/runner/native-cli-fixture.ts +40 -5
  330. package/packages/core/src/ports/runner/native-process-fixture.ts +4 -1
  331. package/packages/core/src/ports/runner/pi.ts +23 -7
  332. package/packages/core/src/ports/runner/production.ts +19 -2
  333. package/packages/core/src/ports/runner/session-env.ts +65 -5
  334. package/packages/core/src/ports/runner/start-prompt.ts +6 -4
  335. package/packages/core/src/ports/tickets/contract.ts +4 -2
  336. package/packages/core/src/ports/tickets/github.ts +20 -5
  337. package/packages/core/src/ports/tickets/hosted-index.ts +6 -1
  338. package/packages/core/src/ports/tickets/labels.ts +21 -0
  339. package/packages/core/src/ports/tickets/linear.ts +33 -0
  340. package/packages/core/src/ports/tickets/migration.ts +2 -0
  341. package/packages/core/src/ports/tickets/priority.ts +11 -0
  342. package/packages/core/src/ports/tickets/remote-protocol.ts +71 -6
  343. package/packages/core/src/ports/tickets/remote.ts +138 -16
  344. package/packages/core/src/ports/tickets/tree.ts +17 -4
  345. package/packages/core/src/ports/types.ts +98 -4
  346. package/packages/core/src/ports/workspace/builtin-capabilities.ts +7 -4
  347. package/packages/core/src/ports/workspace/commit-preservation.ts +182 -64
  348. package/packages/core/src/ports/workspace/create.ts +3 -0
  349. package/packages/core/src/ports/workspace/git-worktree.ts +13 -1
  350. package/packages/core/src/ports/workspace/vercel-sandbox.ts +242 -61
  351. package/packages/core/src/processes/build-execution-state.ts +1 -3
  352. package/packages/core/src/processes/build-runner.ts +1435 -132
  353. package/packages/core/src/processes/dispatch-failure-budget.ts +1 -1
  354. package/packages/core/src/processes/dispatcher-selectors.ts +15 -13
  355. package/packages/core/src/processes/dispatcher.ts +2781 -242
  356. package/packages/core/src/processes/execution-no-progress.ts +36 -1
  357. package/packages/core/src/processes/execution-settlement.ts +2 -6
  358. package/packages/core/src/processes/harvest-execution-state.ts +2 -6
  359. package/packages/core/src/processes/harvest-runner.ts +7 -2
  360. package/packages/core/src/processes/infrastructure-failure-budget.ts +1 -3
  361. package/packages/core/src/processes/judge-launcher.ts +38 -0
  362. package/packages/core/src/processes/measurement-runner.ts +235 -0
  363. package/packages/core/src/processes/optimization-merges.ts +101 -0
  364. package/packages/core/src/processes/optimization-stop.ts +179 -0
  365. package/packages/core/src/processes/panel-runner.ts +756 -0
  366. package/packages/core/src/processes/phase-failure-budget.ts +1 -0
  367. package/packages/core/src/processes/publication-state.ts +1 -4
  368. package/packages/core/src/processes/repo-view.ts +77 -5
  369. package/packages/core/src/processes/sandbox-state.ts +1 -4
  370. package/packages/core/src/processes/tick-state.ts +1 -3
  371. package/packages/core/src/processes/workspace-preservation.ts +67 -9
  372. package/packages/core/src/scenarios/harness.ts +19 -8
  373. package/packages/core/src/store/contract.ts +44 -0
  374. package/packages/core/src/store/digest.ts +89 -7
  375. package/packages/core/src/store/judge-authority.ts +161 -0
  376. package/packages/core/src/store/phase-session.ts +226 -4
  377. package/packages/core/src/store/reduced-reads.ts +10 -0
  378. package/packages/core/src/store/reducer-value-shapes.json +17060 -12099
  379. package/packages/core/src/store/remote/client.ts +12 -2
  380. package/packages/core/src/store/remote/credentials.ts +31 -1
  381. package/packages/core/src/store/remote/index.ts +8 -0
  382. package/packages/core/src/store/remote/protocol.ts +38 -0
  383. package/packages/core/src/store/remote/released-clients.json +11 -0
  384. package/packages/core/src/store/remote/released-reducer-values/1.10.0.json +34439 -0
  385. package/packages/core/src/store/remote/released-reducer-values/index.ts +18 -16
  386. package/packages/core/src/store/remote/token.ts +13 -4
  387. package/packages/core/src/store/repo-state-events.ts +6 -8
  388. package/packages/core/src/store/session-reducer.ts +1 -4
  389. package/packages/core/src/store/ticket-assets.ts +1 -3
  390. package/packages/core/src/store/types.ts +9 -0
  391. package/packages/core/src/testing/dispatch-read-budget.ts +70 -0
  392. package/packages/core/src/testing/git-config-isolation.ts +25 -0
  393. package/packages/core/src/testing/index.ts +13 -0
  394. package/packages/core/src/testing/reduced-read-budget.ts +3455 -34
  395. package/skills/code-review/SKILL.md +16 -0
  396. package/skills/finalize/SKILL.md +10 -4
  397. package/skills/guide/SKILL.md +383 -77
  398. package/skills/guide/references/integration-tree.md +102 -11
  399. package/skills/guide/references/merge-policy.md +30 -14
  400. package/skills/guide/references/migration-1.0.md +2 -1
  401. package/skills/guide/references/operator-api.md +117 -14
  402. package/skills/guide/references/optimization-nodes.md +1042 -0
  403. package/skills/guide/references/plugin-authoring.md +46 -12
  404. package/skills/guide/references/remote-store-protocol.md +46 -7
  405. package/skills/guide/references/remote-ticket-protocol.md +50 -2
  406. package/skills/guide/references/restacking.md +99 -11
  407. package/skills/guide/references/setup.md +13 -2
  408. package/skills/guide/references/spec-standard.md +2 -1
  409. package/skills/guide/references/ticket-dependencies.md +5 -0
  410. package/skills/guide/references/ticket-migration.md +4 -2
  411. package/skills/implement/SKILL.md +51 -1
  412. package/skills/judge/SKILL.md +43 -0
  413. package/skills/operate/SKILL.md +243 -28
  414. package/skills/plan/SKILL.md +18 -0
  415. package/skills/plan-review/SKILL.md +15 -1
  416. package/skills/propose/SKILL.md +121 -0
  417. package/skills/reconcile/SKILL.md +21 -2
  418. package/skills/spec/SKILL.md +30 -4
  419. package/skills/tickets/SKILL.md +44 -5
  420. package/templates/hosted-service/package.json +2 -2
@@ -321,7 +321,7 @@ the branch head never carried the file — the deposit records the source
321
321
  `worktree-dirty` with no commit. The build still runs the worktree bytes, but
322
322
  provenance declines to attribute them to any commit. **Deployment-owned** sections — `[accounts]`, `[roles]`
323
323
  (runtime, model, account, args, alternates, per-role `sessionBudgetSeconds`),
324
- `[profiles]` and `[policy]` — keep flowing live. **Dispatcher-owned** sections (`baseBranch`,
324
+ `[profiles]`, `[policy]` and `[[generated]]` — keep flowing live. **Dispatcher-owned** sections (`baseBranch`,
325
325
  `capacity`, `ticketScanIntervalSeconds`, `forge`, `plugins`, `pr`, `tickets`, `orchestrator`, `hooks`) configure the
326
326
  dispatcher itself and are never interpreted by the build runner.
327
327
 
@@ -341,9 +341,12 @@ identity and truthful source metadata. Dirty worktree bytes carry
341
341
  build-owned sections and the known source commit's ancestry. A change or
342
342
  non-ancestor source records `verify.config-superseded` and starts a fresh cycle
343
343
  before constructing any further member. Already launched siblings settle first.
344
- A waiting leaf with completed verification retains its receipts after a clean
345
- rewrite when build-owned config is unchanged, even when the rewrite replaces
346
- the pin commit's ancestry. Changed config still supersedes while waiting; a
344
+ A leaf awaiting merge with completed verification retains its receipts after a
345
+ clean rewrite when build-owned config is unchanged, even when the rewrite
346
+ replaces the pin commit's ancestry. A clean wait-resume restack after a verify
347
+ or finalize ticket wait is different: it starts a new verification cycle on the
348
+ resumed base even when config is unchanged, and the earlier results cannot
349
+ satisfy it. Changed config still supersedes while waiting; a
347
350
  future verification cycle always captures fresh config before running steps.
348
351
  Old pass/skip receipts cannot satisfy that cycle, and supersession creates no
349
352
  failure or failure-budget charge. Unchanged config on a descendant head retains
@@ -378,6 +381,7 @@ These fields hot-reload:
378
381
  | `capacity` | Next dispatcher tick. |
379
382
  | `[pr]` | Next build creation. |
380
383
  | `[merge]` (ordered `[[merge]]` rules) | Dispatcher-owned policy; next new readiness decision. Existing decisions retain their sampled rule. |
384
+ | `[generated]` | Next restack replay that conflicts. The declarations come from the dispatcher's live snapshot, not the build's branch. |
381
385
  | `[commands]` | Next setup, verify check, or finalize check selected for a build whose OWN branch carries it. Dispatcher readiness, resume, and recovery use the same pin. A base-branch reload does not retarget an in-flight build. |
382
386
  | `[verify]` and `[finalize]` | Next engine step selection for a build whose OWN branch carries it. Dispatcher readiness, resume, and recovery use the same pin. An approved plan's selection applies unless unknown names require default-all fallback, and a base-branch reload does not retarget an in-flight build. |
383
387
  | `[workspace]` provider and config (including `provisioning`) | Next launch of a build whose OWN branch carries it. A base-branch reload never re-provisions an in-flight build. |
@@ -389,7 +393,7 @@ These fields hot-reload:
389
393
  | `[policy]` | Next policy, convergence, or agent-session boundary, delivered live. A running session keeps its captured budget. |
390
394
  | `tickets.readyLabels`, `tickets.readyState`, `tickets.readyAssignee` | Next ready-ticket scan. |
391
395
  | `tickets.triageState`, `tickets.proposalState` | Next dispatcher handback or harvest filing boundary. |
392
- | `tickets.createAssignee` | Next ticket create, including the next harvest filing. |
396
+ | `tickets.createAssignee`, `tickets.createLabels` | Next ticket create, including the next harvest filing. |
393
397
  | `tickets.backlogState`, `tickets.rejectedState` | Next role move, ready-ticket scan, or node completeness observation. |
394
398
 
395
399
  Adapter selectors and factory inputs are constructed once and require a
@@ -444,7 +448,7 @@ any table header.
444
448
  - **Required:** Optional
445
449
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
446
450
 
447
- **Description:** Builds running work at once for this repository. A build that finished its pipeline holds no slot while it waits for a merge decision, nor does a build waiting on other tickets; either is admitted ahead of new claims when it must run again. Other unfinished paused and blocked work retains slots. Node reconcile and verification exclude their own blocked/paused descendants at admission; new claims use total occupancy. See [integration capacity](integration-tree.md).
451
+ **Description:** Builds running work at once for this repository. A build that finished its pipeline holds no slot while it waits for a merge decision, nor does a build waiting on other tickets; either is admitted ahead of normal ticket claims when it must run again, urgent work first (see [slot admission order](dispatcher.md#slot-admission-order)). Other unfinished paused and blocked work retains slots. Node reconcile and verification exclude their own blocked/paused descendants at admission; new claims use total occupancy. See [integration capacity](integration-tree.md).
448
452
 
449
453
  **Constraints:** safe integer; > 0
450
454
 
@@ -1423,8 +1427,15 @@ generation does. A named sandbox left without the completion marker, for example
1423
1427
  after a provision timeout, is flagged `cleanup-required` and never launched into.
1424
1428
  The dispatcher releases it automatically, recording an empty
1425
1429
  `workspace.commits-lost` when no checkout exists, or `workspace.commits-preserved`
1426
- when a checkout that never started executing lacks its objects, and provisions
1427
- the next generation.
1430
+ (`workspace.commits-retained` when an earlier head is a store copy) when a
1431
+ checkout that never started executing lacks its objects, and provisions
1432
+ the next generation. A sandbox whose provisioning a dispatcher teardown cut off
1433
+ is different: the next invocation verifies it and finishes it in the same
1434
+ generation. If it cannot be finished, it is released and replaced without
1435
+ consuming `maxInfrastructureAttempts`. A bounded dispatcher invocation does not
1436
+ start provisioning with less than about 150 s of budget left; it records
1437
+ `provisioningDeferred` in the tick report and leaves the build to the next
1438
+ invocation.
1428
1439
 
1429
1440
  The representative actual-provider check is opt-in and must point at an
1430
1441
  independent consuming repository whose `autobuild.toml` selects the universal
@@ -1526,6 +1537,92 @@ referenced by a configured check. A check's `command` value is the key in this
1526
1537
  map, not an inline shell command. The kernel passes the mapped string to a shell
1527
1538
  as written.
1528
1539
 
1540
+ ## `[[generated]]`
1541
+
1542
+ An optional ordered array of generated-file declarations. Each entry names the
1543
+ files a deterministic command rebuilds and that command. Omitting the table
1544
+ declares nothing, and restacks behave exactly as they do without it.
1545
+
1546
+ <!-- configuration-reference:generated -->
1547
+
1548
+ #### `generated`
1549
+
1550
+ **TOML key:** `generated`
1551
+
1552
+ - **Type:** `array of strict table`
1553
+ - **Default:** `omitted`
1554
+ - **Required:** Optional
1555
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1556
+
1557
+ **Description:** Generated files that a declared command rebuilds. Restack replays that conflict only in these files are regenerated instead of reconciled by an agent.
1558
+
1559
+ **Constraints:** A path selector string may be declared by only one entry.
1560
+
1561
+ #### `generated[].paths`
1562
+
1563
+ **TOML key:** `generated[].paths`
1564
+
1565
+ - **Type:** `array of string`
1566
+ - **Default:** `omitted`
1567
+ - **Required:** Required
1568
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1569
+
1570
+ **Description:** Generated files this entry owns. When selectors of several entries match a file, the first entry in declaration order owns it.
1571
+
1572
+ **Constraints:** minimum length 1; Each item: Positive repository-relative globs with literal characters, *, ?, and whole-segment ** only. No NUL, absolute paths, backslashes, negation, empty or traversal segments, character classes, brace expansion or extglobs.
1573
+
1574
+ #### `generated[].command`
1575
+
1576
+ **TOML key:** `generated[].command`
1577
+
1578
+ - **Type:** `string`
1579
+ - **Default:** `omitted`
1580
+ - **Required:** Required
1581
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1582
+
1583
+ **Description:** Shell command, run with `sh -c` from the workspace root after `[commands].setup`, that rebuilds every file this entry owns.
1584
+
1585
+ **Constraints:** command must be a nonblank shell command
1586
+
1587
+ <!-- configuration-reference:/generated -->
1588
+
1589
+ <!-- config-fragment:generated -->
1590
+ ```toml
1591
+ [[generated]]
1592
+ paths = ["src/schema/shapes.json"]
1593
+ command = "bun tools/shapes.ts"
1594
+
1595
+ [[generated]]
1596
+ paths = ["site/snapshots/**"]
1597
+ command = "bun run snapshots"
1598
+ ```
1599
+
1600
+ When a restack replays one change onto a moved target and every conflicted path
1601
+ is owned by a declaration, the kernel resolves the conflict without an agent. It
1602
+ starts each conflicted file from the target's side, runs the owning commands
1603
+ from the workspace root (after `[commands].setup` has run there), stages the
1604
+ result and commits it as that change's replay. This applies to a leaf build's
1605
+ automatic restack and to every item of a node restack. The rules:
1606
+
1607
+ - `paths` uses the same selector grammar as `[verify.<step>].paths`. When the
1608
+ selectors of several entries match a file, the first entry in declaration
1609
+ order owns it. A selector string declared by two entries is rejected.
1610
+ - `command` is a shell string run with `sh -c`. Each owning command runs once
1611
+ per replay, in declaration order. It must write only paths the declarations
1612
+ cover and must leave the Git index unchanged: the kernel stages the declared
1613
+ output itself. Writing anything else, staging changes, exiting non-zero, or
1614
+ leaving conflict markers fails the regeneration, and the replay falls back to
1615
+ an ordinary agent reconcile.
1616
+ - A failed regeneration commits nothing. The workspace returns to the recorded
1617
+ conflict and an ordinary reconcile session resolves it, with the failure
1618
+ reason in its context. A replay that also conflicts in undeclared files goes
1619
+ to the agent as well; its context lists the generated files and their
1620
+ commands, and the agent rebuilds them with the command instead of
1621
+ hand-merging them.
1622
+
1623
+ See [Generated-file conflicts](restacking.md#generated-file-conflicts) for the
1624
+ recorded facts and how status reports them.
1625
+
1529
1626
  ## `[verify]` and `[verify.<step>]`
1530
1627
 
1531
1628
  Post-reconcile verification defaults to enabled: `[verify].afterReconcile = true`.
@@ -1804,6 +1901,13 @@ Cross-field validation rejects:
1804
1901
  - a check whose command is absent from `[commands]`;
1805
1902
  - fields from the other kind, unknown fields, and malformed selectors.
1806
1903
 
1904
+ A `check` command runs with `AB_VERIFY_BASE` set to the verify diff base: the
1905
+ commit [path applicability](#path-applicability) diffs from on a leaf, or the
1906
+ integration cycle parent on a node. It is absent outside a build, under an
1907
+ older runtime, and for a leaf with no provisioned base, so a check that needs
1908
+ it must handle its absence. See
1909
+ [what a check command receives](verification.md#what-a-check-command-receives).
1910
+
1807
1911
  `always = true` does not make malformed `paths` acceptable: all supplied
1808
1912
  selectors are validated even though the mandatory step will not use them for
1809
1913
  applicability.
@@ -2161,7 +2265,7 @@ session starts, with a copyable table and all registered runtime names.
2161
2265
  - **Required:** Optional
2162
2266
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2163
2267
 
2164
- **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
2268
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Antigravity uses unqualified `gemini-*`, `claude-*` or `gpt-*` slugs; Pi ids are provider-qualified.
2165
2269
 
2166
2270
  **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
2167
2271
 
@@ -2252,7 +2356,7 @@ session starts, with a copyable table and all registered runtime names.
2252
2356
  - **Required:** Optional
2253
2357
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2254
2358
 
2255
- **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
2359
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Antigravity uses unqualified `gemini-*`, `claude-*` or `gpt-*` slugs; Pi ids are provider-qualified.
2256
2360
 
2257
2361
  **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
2258
2362
 
@@ -2318,7 +2422,9 @@ model uses the default for its own selected account and runtime. Each configured
2318
2422
  one argv token; Autobuild does not shell-expand it. The narrow rejected set is
2319
2423
  derived from the model and machine-readable protocol options each adapter emits:
2320
2424
  Claude rejects `-p`/`--print`, `--output-format`, and `--model`; Codex rejects
2321
- `--json` and `--model`/`-m`; Pi rejects `--mode` and `--model`. Claude and Codex
2425
+ `--json` and `--model`/`-m`; Pi rejects `--mode` and `--model`; Antigravity
2426
+ rejects `-p`/`--print`/`--prompt`, `--output-format`, `--input-format`, and
2427
+ `--model`. Claude and Codex
2322
2428
  also reject a standalone `--` because Autobuild owns and appends that structural
2323
2429
  separator immediately before their positional prompt. Claude routes with a selected
2324
2430
  account additionally reject `--settings`, `--setting-sources`, and `--bare`
@@ -2329,7 +2435,11 @@ configuration routing. This includes using `-c` to set reasoning effort. Routes
2329
2435
  without an account retain the existing argument behavior. Those option spellings,
2330
2436
  `--option=value` forms, compact documented short aliases, and the exact affected
2331
2437
  prompt separator join the eager aggregated startup error with a
2332
- role/runtime-specific diagnostic. Every other option passes through without
2438
+ role/runtime-specific diagnostic. Antigravity also owns conversation
2439
+ selection: a role argument naming `--conversation`, `--continue`/`-c`, or
2440
+ `--prompt-interactive`/`-i`, including `--option=value` forms, is not an eager
2441
+ startup error but fails each turn as a configuration failure before `agy`
2442
+ launches. Every other option passes through without
2333
2443
  Autobuild validation, including sandbox, approval, session, tool, skill,
2334
2444
  thinking, extension, lifecycle, unknown options, and arguments that merely
2335
2445
  contain two hyphens, even when they supplement another occurrence emitted by the
@@ -2337,8 +2447,8 @@ adapter. Unknown fields,
2337
2447
  runtimes, and incompatible models in any indexed entry join the aggregated
2338
2448
  eager startup error; they never first surface during an outage.
2339
2449
 
2340
- Three runtimes ship: `claude`, `codex`, and `pi`; `ab plugin list` projects all
2341
- three as builtin agent runtimes, and trusted plugins may register additional
2450
+ Four runtimes ship: `claude`, `codex`, `pi`, and `antigravity`; `ab plugin list`
2451
+ projects all four as builtin agent runtimes, and trusted plugins may register additional
2342
2452
  names. The `pi` runtime requires a locally installed Pi CLI version 0.84.3 or
2343
2453
  newer and uses that installation's login and model catalog through headless RPC;
2344
2454
  Autobuild does not install Pi. `ab init` reports a missing or older executable
@@ -2349,7 +2459,9 @@ validation and event attribution. With no configured or inherited model, a Claud
2349
2459
  route selecting a Kimi Code account uses `kimi-for-coding`. Other routes use their
2350
2460
  runtime's declared default when present: Claude and Codex delegate to their local
2351
2461
  CLI's selected default, while Pi declares `kimi-coding/k3`. Codex accepts unqualified `gpt-*`
2352
- ids. Pi ids remain provider-qualified—including the independent
2462
+ ids. Antigravity accepts unqualified `gemini-*`, `claude-*` and `gpt-*` slugs,
2463
+ delegates an omitted model to its local `agy` default, and declares no tool-free
2464
+ one-shot. Pi ids remain provider-qualified—including the independent
2353
2465
  `openai-codex/*` route—and `ab models [query]` looks them up. Pi always passes
2354
2466
  `--no-extensions` to disable ambient package discovery and loads the Autobuild
2355
2467
  bridge explicitly. Repeatable `--extension <path>` tokens in `args` supplement
@@ -2365,11 +2477,12 @@ opt-in:
2365
2477
  `AB_RUN_LIVE_PORT_CONTRACTS=1 AB_CODEX_CONTRACT_MODEL=gpt-… bun test packages/core/src/ports/runner/codex.live.integration.test.ts`.
2366
2478
 
2367
2479
  Core agent phases route by phase name (`plan`, `plan-review`, `implement`,
2368
- `code-review`, `finalize`, and `reconcile`). Agent verify steps and agent
2480
+ `code-review`, `finalize`, `reconcile`, and an optimization node's `propose`). Agent verify steps and agent
2369
2481
  finalize post-steps both route by their logical step name. The verify step's
2370
2482
  configured skill name remains a deprecated alias for existing configurations
2371
2483
  and will be removed in a future release. Repository judgments use `harvest` and
2372
- `harvest-review`; `slug` and `upgrade` configure tool-free one-shot judgments.
2484
+ `harvest-review`; each judge session of an optimization objective's judge panel
2485
+ uses `judge`; `slug` and `upgrade` configure tool-free one-shot judgments.
2373
2486
  Arbitrary additional role keys are accepted, but only a name selected by one of
2374
2487
  these routes affects a session.
2375
2488
 
@@ -2381,7 +2494,11 @@ session or changes which runtime and model run. `kind = "check"` steps start no
2381
2494
  session and so are not a route: naming a role after one does not make it
2382
2495
  consumed. It is reported only when that check step is its sole apparent route —
2383
2496
  a check step named `plan` leaves `[roles.plan]` consumed by the core `plan`
2384
- phase, and nothing is reported.
2497
+ phase, and nothing is reported. `[profiles.<name>.roles.<role>]` entries are
2498
+ reported the same way, named by their profile table, against the profile's own
2499
+ list of valid keys. A profile entry on `slug`, `upgrade`, `harvest` or
2500
+ `harvest-review` counts as unconsumed, because those sessions never use a
2501
+ profile.
2385
2502
 
2386
2503
  Resolver construction validates `default`, every declared role, and every
2387
2504
  alternate eagerly and aggregates all unknown-runtime and incompatible-model
@@ -2404,7 +2521,10 @@ policy, so final quota/usage/billing exhaustion parks immediately while a final
2404
2521
  availability failure consumes one existing bounded attempt. `session.started`
2405
2522
  records each selected runtime/model and substitution cause, and an exhausted
2406
2523
  failure records every tried target and verbatim error for policy escalation.
2407
- The chain applies to core phases, agent verify/finalize steps, and Harvest.
2524
+ The chain applies to core phases, agent verify/finalize steps, Harvest, and
2525
+ the judge sessions of a judge panel. A judge's alternate runs in the same judge
2526
+ root and order; its start is `panel.judge-started` rather than
2527
+ `session.started`, and only the chain's last failure counts toward the judge.
2408
2528
  Tool-free one-shot completions such as slug and upgrade use only the primary.
2409
2529
 
2410
2530
  For build sessions, the kernel starts the captured role budget after the durable
@@ -2459,8 +2579,12 @@ session. If a reload removes the profile, those builds continue on the
2459
2579
  repository roles and `ab build status` reports the profile as no longer
2460
2580
  configured. Duplicate labels, a blank label, and an entry whose effective
2461
2581
  runtime, model, args or account is invalid are refused at load, by
2462
- `ab init --validate`, and on live reload. Sessions outside a build (`slug`,
2463
- `upgrade`, `harvest`, `harvest-review`) never use a profile.
2582
+ `ab init --validate`, and on live reload. Judge sessions are build sessions, so
2583
+ the build's profile applies to them. Sessions outside a build (`slug`,
2584
+ `upgrade`, `harvest`, `harvest-review`) never use a profile. As for
2585
+ `[roles]`, `ab dispatch` warns at startup for a profile entry nothing requests,
2586
+ a deprecated skill-name key, or deprecated `extensions`, naming the
2587
+ `[profiles.<name>.roles.<role>]` table to change.
2464
2588
 
2465
2589
  <!-- configuration-reference:profiles -->
2466
2590
 
@@ -2564,7 +2688,7 @@ runtime, model, args or account is invalid are refused at load, by
2564
2688
  - **Required:** Optional
2565
2689
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2566
2690
 
2567
- **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
2691
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Antigravity uses unqualified `gemini-*`, `claude-*` or `gpt-*` slugs; Pi ids are provider-qualified.
2568
2692
 
2569
2693
  **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
2570
2694
 
@@ -2655,7 +2779,7 @@ runtime, model, args or account is invalid are refused at load, by
2655
2779
  - **Required:** Optional
2656
2780
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2657
2781
 
2658
- **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
2782
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Antigravity uses unqualified `gemini-*`, `claude-*` or `gpt-*` slugs; Pi ids are provider-qualified.
2659
2783
 
2660
2784
  **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
2661
2785
 
@@ -2689,8 +2813,22 @@ runtime, model, args or account is invalid are refused at load, by
2689
2813
 
2690
2814
  ## `[policy]`
2691
2815
 
2692
- Optional. Every field receives its own default. All are positive integers except
2693
- `harvestMaxDrift`, which is nonnegative so zero can disable that trigger.
2816
+ Optional. Every field receives its own default unless noted. All are positive
2817
+ integers except `harvestMaxDrift`, which is nonnegative so zero can disable that
2818
+ trigger, and the open-PR backpressure keys: `maxOpenPrs` has no default (unset
2819
+ disables backpressure), `resumeOpenPrs` is a nonnegative integer that defaults
2820
+ to `maxOpenPrs - 1` and may not exceed it, and `excludeHeldOpenPrs` is a boolean
2821
+ that defaults to `false`.
2822
+
2823
+ While open unmerged root PRs (leaves and integration nodes; not children of a
2824
+ node) reach `maxOpenPrs`, the dispatcher makes no new ordinary ready-queue
2825
+ claim of a `normal`-priority ticket until the count drops to `resumeOpenPrs`. Reaching `maxOpenPrs` takes
2826
+ precedence: when `resumeOpenPrs` equals `maxOpenPrs`, intake stays paused at
2827
+ that count and resumes once the count falls below it. Urgent claims, in-flight
2828
+ builds, reconciles and landings continue; capacity is unchanged. Every `ab start`
2829
+ (`tickets.start`) tier bypasses backpressure for its one ticket, still subject to
2830
+ capacity and repository pause. `ab repository
2831
+ status` reports the state as `capacity.backpressure`.
2694
2832
 
2695
2833
  <!-- configuration-reference:policy -->
2696
2834
 
@@ -2820,7 +2958,7 @@ Optional. Every field receives its own default. All are positive integers except
2820
2958
  - **Required:** Optional
2821
2959
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2822
2960
 
2823
- **Description:** Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a `retry` answer from your operator agent or you re-arms this budget.
2961
+ **Description:** Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a `retry` answer from your operator agent or you re-arms this budget. Provisioning abandoned at a recorded dispatcher teardown never consumes it.
2824
2962
 
2825
2963
  **Constraints:** safe integer; > 0
2826
2964
 
@@ -2941,6 +3079,45 @@ Optional. Every field receives its own default. All are positive integers except
2941
3079
 
2942
3080
  **Constraints:** safe integer; ≥ 0
2943
3081
 
3082
+ #### `policy.maxOpenPrs`
3083
+
3084
+ **TOML key:** `policy.maxOpenPrs`
3085
+
3086
+ - **Type:** `number`
3087
+ - **Default:** `omitted`
3088
+ - **Required:** Optional
3089
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3090
+
3091
+ **Description:** Open unmerged root build PRs (leaves and integration nodes) at which the dispatcher stops ordinary ready-queue claims of `normal`-priority tickets. In-flight work, reconciles, landings, `urgent` claims and every `ab start` (`tickets.start`) request continue, subject to capacity and repository pause. Unset disables open-PR backpressure.
3092
+
3093
+ **Constraints:** safe integer; > 0
3094
+
3095
+ #### `policy.resumeOpenPrs`
3096
+
3097
+ **TOML key:** `policy.resumeOpenPrs`
3098
+
3099
+ - **Type:** `number`
3100
+ - **Default:** `omitted`
3101
+ - **Required:** Optional
3102
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3103
+
3104
+ **Description:** Open root PR count at or below which paused `normal` intake resumes; defaults to `maxOpenPrs - 1`. Reaching `maxOpenPrs` takes precedence, so when this equals `maxOpenPrs` intake stays paused at that count and resumes once the count falls below `maxOpenPrs`. Inert without `maxOpenPrs`.
3105
+
3106
+ **Constraints:** safe integer; ≥ 0; Must not exceed `maxOpenPrs`.
3107
+
3108
+ #### `policy.excludeHeldOpenPrs`
3109
+
3110
+ **TOML key:** `policy.excludeHeldOpenPrs`
3111
+
3112
+ - **Type:** `boolean`
3113
+ - **Default:** `false`
3114
+ - **Required:** Optional
3115
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3116
+
3117
+ **Description:** Leave PRs whose active landing command is `hold` out of the open-PR backpressure count. Inert without `maxOpenPrs`.
3118
+
3119
+ **Constraints:** None beyond the input type.
3120
+
2944
3121
  <!-- configuration-reference:/policy -->
2945
3122
 
2946
3123
  Dispatch failures share a `[policy].maxDispatchAttempts` budget (default 3) across
@@ -3132,6 +3309,19 @@ state. Within a present table, `source` is required; `hosted` and `github` defau
3132
3309
 
3133
3310
  **Constraints:** [tickets].createAssignee must be a nonblank value with no surrounding whitespace; Allowed for github ("me" or a GitHub username) and plugin sources that declare assignees. Refused for file, hosted and linear.
3134
3311
 
3312
+ #### `tickets.createLabels`
3313
+
3314
+ **TOML key:** `tickets.createLabels`
3315
+
3316
+ - **Type:** `array of string`
3317
+ - **Default:** `omitted`
3318
+ - **Required:** Optional
3319
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3320
+
3321
+ **Description:** Add these labels to every ticket Autobuild creates (`ab ticket create`, operator `tickets.create`, harvest proposals, optimization attempts), unioned with any labels the create names.
3322
+
3323
+ **Constraints:** Omission or [] adds none. Refused on github for `autobuild:<state>` and `autobuild-link:` labels and `node`, and on linear for `node`. On hosted, the ticket service must support createLabels in the published ticket policy. Ordinary labels: a name also in readyLabels, or covered by the github/linear default ["autobuild"], makes every Autobuild-filed ticket pass the label gate. `ab ticket import` never applies them.; Each item: [tickets].createLabels entries must be nonblank label names with no surrounding whitespace
3324
+
3135
3325
  #### `tickets.teamKey`
3136
3326
 
3137
3327
  **TOML key:** `tickets.teamKey`
@@ -3193,7 +3383,7 @@ state. Within a present table, `source` is required; `hosted` and `github` defau
3193
3383
  - **Required:** Optional
3194
3384
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3195
3385
 
3196
- **Description:** State used for spec-gate bounces, aborts (unless `ab abort --to ready` with a ticket that meets the spec standard), and closed-unmerged PRs.
3386
+ **Description:** State used for spec-gate bounces, aborts (unless `ab abort --to ready` with a ticket that meets the spec standard), and closed-unmerged PRs. An optimization attempt never returns here: an abort or closed PR settles it `aborted` and moves its ticket to rejectedState.
3197
3387
 
3198
3388
  **Constraints:** minimum length 1; state must be nonblank; Omission resolves to Backlog for Linear, triage for hosted and github, Triage for file/plugin sources.
3199
3389
 
@@ -3232,9 +3422,9 @@ state. Within a present table, `source` is required; `hosted` and `github` defau
3232
3422
  - **Required:** Optional
3233
3423
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3234
3424
 
3235
- **Description:** State that holds considered-and-declined work (the rejected role). A rejected ticket never resolves a blocker and never keeps a node incomplete. Optional and recommended.
3425
+ **Description:** State that holds considered-and-declined work (the rejected role). A rejected ticket never resolves a blocker and never keeps a node incomplete. Optional and recommended; an optimization node requires it and is refused at dispatch without it, and the dispatcher moves each attempt that settles no-improvement, declined, stopped or aborted into it.
3236
3426
 
3237
- **Constraints:** minimum length 1; state must be nonblank; Optional for every source, no default; `ab init` writes it for new configurations. On github it maps to an issue closed as not planned. Must differ from the ready, claimed, done, triage and proposal states and from backlogState (case-insensitive).
3427
+ **Constraints:** minimum length 1; state must be nonblank; Optional for every source, no default, but required to open an optimization node; `ab init` writes it for new configurations. On github it maps to an issue closed as not planned. Must differ from the ready, claimed, done, triage and proposal states and from backlogState (case-insensitive).
3238
3428
 
3239
3429
  #### `tickets.dir`
3240
3430
 
@@ -3305,11 +3495,19 @@ shares its name is an ordinary custom state. `ab ticket move <id> --role
3305
3495
  backlog` (or `rejected`, `triage`, `ready`) moves a ticket by role; a role the
3306
3496
  repository has not configured is refused with the key to set, and a source that
3307
3497
  creates states creates the role state on first use. The dispatcher never claims
3308
- from, moves into, or files proposals into either state. A rejected ticket never
3498
+ from, moves into, or files proposals into either state, with one exception: an
3499
+ optimization attempt that settles `no-improvement`, `declined`, `stopped` or
3500
+ `aborted` (including an operator abort) moves to the rejected role instead of
3501
+ triage. An `accepted` attempt, or a merged attempt an operator released as
3502
+ `merged-unmeasured`, stays done. A rejected ticket never
3309
3503
  resolves a blocker, even where the source natively counts it complete (a Linear
3310
3504
  `Canceled` state mapped to rejected), and a rejected node child no longer keeps
3311
3505
  its node incomplete. Moving the ticket out of the state restores ordinary
3312
- behavior.
3506
+ behavior. An [optimization node](optimization-nodes.md) needs the rejected role for
3507
+ the attempts it rejects, so it requires `rejectedState`, with no inferred
3508
+ default: without it the dispatcher refuses to open the node and returns the
3509
+ ticket to triage. Ordinary nodes and
3510
+ work tickets never require it.
3313
3511
 
3314
3512
  Source-specific validation is strict:
3315
3513
 
@@ -3885,6 +4083,9 @@ maxReconcileAttempts = 3
3885
4083
  maxReviewRounds = 6
3886
4084
  harvestThreshold = 5
3887
4085
  harvestMaxDrift = 3
4086
+ # maxOpenPrs = 12
4087
+ # resumeOpenPrs = 9
4088
+ # excludeHeldOpenPrs = false
3888
4089
 
3889
4090
  [tickets]
3890
4091
  source = "file"
@@ -3910,10 +4111,13 @@ On the first `ab init [target]`, when `autobuild.toml` is absent, Autobuild
3910
4111
  writes a valid stack-neutral skeleton. Deterministic init code does not inspect
3911
4112
  package manifests, infer commands, or ask a fixed adapter survey. It vendors the
3912
4113
  editable skills, records their pristine bases, updates `.gitignore`, and probes
3913
- every registered runtime for executable/authentication usability.
4114
+ every registered runtime for executable/authentication usability. The
4115
+ Antigravity probe makes one minimal headless request per configured model, in
4116
+ an empty temporary directory, because a model listing does not prove
4117
+ authentication; it spends a few tokens.
3914
4118
 
3915
4119
  Init reports every probe result and chooses a setup launcher from the fixed
3916
- product preference `claude`, then `codex`, then `pi`. That choice only starts
4120
+ product preference `claude`, then `codex`, then `pi`, then `antigravity`. That choice only starts
3917
4121
  setup; the temporary `[roles.default].runtime` skeleton value does not constrain
3918
4122
  the role runtimes or models the setup agent ultimately configures. When a
3919
4123
  shipped runtime is usable, no Claude discovery conflict remains, and both stdin
@@ -3996,7 +4200,7 @@ pre-attempt index and reports the original Git failure; merged worktree files
3996
4200
  remain in place and the merge's exit status is unchanged. Upgrade never pushes
3997
4201
  or rewrites history.
3998
4202
 
3999
- Autobuild now installs 12 skills; only `ab-spec`, `ab-tickets`, `ab-guide`,
4203
+ Autobuild now installs 14 skills; only `ab-spec`, `ab-tickets`, `ab-guide`,
4000
4204
  and `ab-operate` are model-invocable. The setup reference is an ordinary support file in the
4001
4205
  editable/pristine `ab-guide` tree and participates in the same three-way
4002
4206
  upgrade merge as every other vendored file.
@@ -4026,7 +4230,7 @@ poll. Editing TOML cannot change them.
4026
4230
 
4027
4231
  | Setting | Fresh-repository default | Controls | Scope |
4028
4232
  |---|---:|---|---|
4029
- | Ticket intake | on | `ab dispatch --intake` / `--no-intake`; `i` on the dashboard's global row, and `p` (pause all) / `r` (resume all) on that row or their sessionless equivalents `ab pause --all` / `ab resume --all`, which turn intake off and on as part of quiescing the repository | When off, skip only new ticket list/claim/dispatch work. Janitor work, lease recovery, in-flight builds, and harvesting continue. Turning intake off does not hold builds the repository has already accepted — that is the repository pause below. |
4233
+ | Ticket intake | on | `ab dispatch --intake` / `--no-intake`; `i` on the dashboard's global row, and `p` (pause all) / `r` (resume all) on that row or their sessionless equivalents `ab pause --all` / `ab resume --all`, which turn intake off and on as part of quiescing the repository | When off, skip only ordinary ready-queue listing, claims, and dispatch. A pending `ab start` (`tickets.start`) request still claims its one named ticket while intake is off, subject to repository pause, capacity, and the usual ticket gates. Janitor work, lease recovery, in-flight builds, and harvesting continue. Turning intake off does not hold builds the repository has already accepted — that is the repository pause below. |
4030
4234
  | Repository pause | off | `p` (pause all) / `r` (resume all) on the dashboard's global row, or `ab pause --all` / `ab resume --all` | While on, the dashboard controls line shows `repository PAUSED`, and each held queued row shows `(held)` while retaining its literal `QUEUED` status. No dispatcher tick attaches a runner to such a build — recovery, startup resume, and the lease sweep all skip them. Running builds are parked by the per-build pauses the same command writes; the janitor still settles aborts and discards. |
4031
4235
  | Harvest gate | on | `h` on the dashboard's global row | Pauses or resumes repository observation harvesting. The header shows the kernel-acknowledged gate, not merely a pending keypress. |
4032
4236
 
@@ -4069,6 +4273,8 @@ real process environment—even an empty string—wins over `.env`.
4069
4273
  Variables such as `AB_BUILD`, `AB_PHASE`, `AB_SESSION`, and the harvest-session
4070
4274
  identity tuple are runner-owned ambient authorization. You should not
4071
4275
  set or copy them into `.env`; the runner stamps them for each session.
4276
+ Likewise the runner sets `AB_VERIFY_BASE` for each `check` verify command, and
4277
+ clears any inherited value when the build has no base.
4072
4278
 
4073
4279
  Forge and agent credentials remain adapter-owned. The `local-git` forge uses no
4074
4280
  credentials or network access: it keeps durable PR records under private Git
@@ -4104,7 +4310,11 @@ the existing text-download projection.
4104
4310
  [ChatGPT subscriptions](accounts.md#chatgpt-subscriptions);
4105
4311
  - Pi sessions use Pi's provider authentication: start `pi` and run `/login`
4106
4312
  inside the interactive session, or, for non-interactive use, supply the
4107
- provider credentials Pi supports (such as provider API keys in the environment).
4313
+ provider credentials Pi supports (such as provider API keys in the environment);
4314
+ - Antigravity sessions invoke the local `agy` CLI with its ambient
4315
+ authentication: sign in by running `agy` interactively, export
4316
+ `GEMINI_API_KEY` with `modelProvider = "gemini"` in Antigravity's settings, or
4317
+ set `AGY_ADC_AUTH=true` after `gcloud auth application-default login`.
4108
4318
 
4109
4319
  No provider API key, GitHub token, or remote-store bearer token belongs in
4110
4320
  `autobuild.toml`.
@@ -4146,9 +4356,12 @@ that runtime serves.
4146
4356
  In plain/non-TTY mode, `tick: idle` means the pass recorded no dispatcher
4147
4357
  action. Check the gates in this order:
4148
4358
 
4149
- 1. **Durable intake:** the dashboard header must show intake on, or explicitly
4150
- run a future dispatcher with `--intake`. Intake off skips the ready scan
4151
- even when tickets exist.
4359
+ 1. **Durable intake:** for ordinary ready-queue work, the dashboard header must
4360
+ show intake on, or explicitly run a future dispatcher with `--intake`.
4361
+ Intake off skips the ready scan even when tickets exist. To run one ticket
4362
+ without opening the whole queue, use `ab start <ticket-id>` instead; its
4363
+ pending request and settled outcome appear in `ab repository status` and
4364
+ `ab watch`.
4152
4365
  2. **Repository pause:** a pause all holds every queued build, so the dashboard
4153
4366
  controls line shows `repository PAUSED` and an existing held build shows
4154
4367
  `(held)` beside its literal `QUEUED` status. Intake off alone shows neither
@@ -4166,8 +4379,9 @@ action. Check the gates in this order:
4166
4379
  builds and builds blocked on a question—uses a slot. A build that has
4167
4380
  finished its pipeline and waits for a merge decision holds none, and neither
4168
4381
  does a build waiting on other tickets. One that must re-verify or reconcile,
4169
- or whose ticket wait ended, is admitted ahead of new claims and reserves a
4170
- slot while it waits. Inspect `ab repository status`, `ab builds --queued` and
4382
+ or whose ticket wait ended, is admitted ahead of normal claims and reserves a
4383
+ slot while it waits; urgent work goes first (see
4384
+ [slot admission order](dispatcher.md#slot-admission-order)). Inspect `ab repository status`, `ab builds --queued` and
4171
4385
  `ab build status <slug>` rather than looking only for a live process.
4172
4386
  7. **Duplicate work:** a ready ticket already represented by an active build is
4173
4387
  deliberately excluded from the queue.
@@ -4242,14 +4456,23 @@ readiness provenance. See [merge policy](merge-policy.md) for examples,
4242
4456
  merge methods and forge capability requirements.
4243
4457
 
4244
4458
  `ab hold <slug>` durably suppresses merge and revokes previous consent, even
4245
- before readiness. `ab merge <slug>` requires readiness, clears hold, and consents
4459
+ before readiness; `--reason <text>` records why (1–2000 characters after
4460
+ trimming), shown wherever the hold is until a later hold or merge replaces it.
4461
+ `ab merge <slug>` requires readiness, clears hold, and consents
4246
4462
  to this build/node merge into its effective destination. Consent survives head
4247
4463
  replacement, clean restacking, verification and re-finalization until another
4248
- hold or completion. Consent given under a rule with `paths` or `within`
4249
- predicates is revoked when a reconcile's own edits (its recorded resolution)
4250
- touch a file those predicates match; `landing.consent-revoked` raises default
4464
+ hold, reopen or completion. Consent given under a rule with `paths` or `within`
4465
+ predicates is revoked when a reconcile's own edits, or a leaf restack's
4466
+ generated-file regeneration, touch a file those predicates match (the recorded
4467
+ resolution, not upstream-only changes); `landing.consent-revoked` raises default
4251
4468
  attention naming the files and both heads, and the build returns to the consent
4252
4469
  queue for its new head. Accepted node reparenting revokes consent; holds survive.
4470
+ Accepted reopening of a settled, unmerged leaf revokes consent immediately; a
4471
+ hold survives. See [Send a finished build back](operating.md#send-a-finished-build-back)
4472
+ for the command and for asynchronous cancellation of an armed native auto-merge.
4473
+ Failing forge CI at a finished leaf's live PR head raises default
4474
+ `pr.checks-failed` attention once per head and failing set; it is reported, not
4475
+ acted on, and unreadable CI is unknown rather than green or red.
4253
4476
  It is consent to the merge, not approval of an immutable diff.
4254
4477
  The optional `ab merge <slug> --head <sha>` (operator `head`) refuses with
4255
4478
  `head-mismatch`, recording nothing, unless `<sha>` (full or at least seven
@@ -44,13 +44,27 @@ run `ab dispatch`, including `--viewer`.
44
44
 
45
45
  A ticket is claimed when it passes every gate:
46
46
 
47
- - **Ready state.** The configured workflow state, required labels and source filters.
47
+ - **Ready state.** The configured workflow state, plus, for ordinary intake, the required labels and source-specific listing filters such as the ready assignee.
48
48
  - **Blockers.** Every dependency is done.
49
49
  - **Destination.** Its target (`main` or an integration node) accepts new work.
50
50
 
51
- Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
51
+ Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. With `[policy].maxOpenPrs` set, open-PR backpressure pauses new normal-priority claims while that many root PRs are open and unmerged, until the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are equal); urgent claims and in-flight work continue. See [`[policy]`](configuration.md#policy). See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
52
52
 
53
- Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity caps the builds running work: a work build holds a slot until it finishes its pipeline (verification and finalize), even while paused or blocked on a question. Once it waits for a merge decision it holds none; if its target moves or its PR conflicts, it waits for a slot ahead of new claims to restack, re-verify or reconcile. A work build waiting on other tickets (`ab wait-on`) also holds none, and when the wait ends it waits for a slot ahead of new claims to resume. Finished and waiting builds keep their workspaces, so retained workspaces can exceed `capacity` while running work cannot. An integration node holds a slot only while it verifies, not while collecting children. See [the integration tree](integration-overview.md).
53
+ To start one ticket without turning intake on for the whole ready queue, run `ab start <ticket-id> [--priority manual|urgent|normal]` (or the `tickets.start` operator tool). The running dispatcher, local or hosted, claims just that ticket on its next tick with a free slot in the request's tier and records the outcome as a `ticket.start-settled` event shown by `ab watch` and `ab repository status`. The default `manual` tier goes ahead of all waiting work; `urgent` and `normal` wait their turn as described below. The ticket must still be in the ready state, meet the spec standard, have no unresolved blockers and a destination that accepts work, and is deduplicated against existing builds; capacity and repository pause still apply. Listing labels and the ready assignee are not applied, because the ticket is named. Every tier bypasses intake off and open-PR backpressure for that ticket only. See `ab help start`.
54
+
55
+ Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity caps the builds running work: a work build holds a slot until it finishes its pipeline (verification and finalize), even while paused or blocked on a question. Once it waits for a merge decision it holds none; if its target moves or its PR conflicts, it waits for a slot ahead of normal ticket claims to restack, re-verify or reconcile. A work build waiting on other tickets (`ab wait-on`) also holds none, and when the wait ends it waits for a slot ahead of normal ticket claims to resume. Finished and waiting builds keep their workspaces, so retained workspaces can exceed `capacity` while running work cannot. An integration node holds a slot only while it verifies, not while collecting children. See [the integration tree](integration-overview.md).
56
+
57
+ ## Slot admission order
58
+
59
+ A free slot goes, in order, to:
60
+
61
+ 1. `manual` start requests (`ab start`'s default);
62
+ 2. urgent parked work: nodes and finished or waiting builds that must verify, reconcile, resume or propose;
63
+ 3. urgent ticket claims: `ab start --priority urgent` requests, then urgent ready tickets;
64
+ 4. normal parked work;
65
+ 5. normal ticket claims: `ab start --priority normal` requests, then normal ready tickets.
66
+
67
+ Each tier keeps its usual order, start requests oldest first. A pending start request reserves its slot ahead of the tiers below it until it settles or is cancelled. A build takes its ticket's priority when it is claimed; a build started by an `urgent` request is urgent, and `manual` never becomes a build priority. `ab priority <slug> urgent|normal` (or the `builds.control` action `priority`) changes an active build's priority, for example to expedite a waiting reconcile that now blocks other work; it never changes the ticket. While urgent tickets are ready, normal parked work waits for a slot until the dispatcher has offered urgent tickets the free slots that tick. An urgent ticket blocked on a dependency reserves nothing. Priority orders free slots only: it never interrupts a running build. `ab repository status`, `ab builds` and both dashboards mark urgent waiters, pending start requests by tier and urgent ticket claims waiting ahead of normal parked work.
54
68
 
55
69
 
56
70
  ## The log is the source of truth
package/docs/forges.md CHANGED
@@ -107,7 +107,7 @@ An adapter must provide:
107
107
  - guarded merge and comments
108
108
  - every capability it advertises
109
109
 
110
- Reconciliation needs the optional `Forge.rewrite` group: immutable exact-SHA archives, branch snapshots and head-guarded replacement. Report lease mismatches separately and preserve unknown work. Without it, reconciliation fails with an actionable refusal, never an ordinary push.
110
+ Reconciliation needs the optional `Forge.rewrite` group: immutable exact-SHA archives, branch snapshots and head-guarded replacement. Archives are best effort: throw a plain error for a refusal (the kernel keeps a BuildStore copy instead) and `ArchiveConflictError` when the immutable ref names a different SHA. Report lease mismatches separately and preserve unknown work. Without it, reconciliation fails with an actionable refusal, never an ordinary push.
111
111
 
112
112
  Classify failures with `ForgeFailure` (API 1.8):
113
113
 
@@ -11,7 +11,7 @@ order: 1
11
11
  Start in the repository you want Autobuild to build. You need:
12
12
 
13
13
  - [Bun](https://bun.sh) and git
14
- - your agent runtime's local prerequisites: Claude Code, Codex CLI, or Pi
14
+ - your agent runtime's local prerequisites: Claude Code, Codex CLI, Pi, or Antigravity CLI
15
15
  - for the GitHub forge, an authenticated [gh CLI](https://cli.github.com) or an exported `GITHUB_TOKEN` or `GH_TOKEN`; the local-git forge needs no account or remote
16
16
 
17
17