@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
@@ -73,6 +73,14 @@ Reconcile requires the optional grouped `Forge.rewrite` capability:
73
73
  expansion or a depth limit) restores missing commits and their missing ancestry,
74
74
  writes no shallow boundary, leaves an already-shallow repository's existing
75
75
  boundaries unchanged, and verifies the commits locally before returning.
76
+
77
+ Failure classes from `archive`:
78
+
79
+ | Failure | Throw | Kernel response |
80
+ |---|---|---|
81
+ | Refusal (namespace, permission, policy) | a plain `Error` | Leaf: BuildStore copy or warning, rewrite proceeds. Node: stops. |
82
+ | Immutable ref already names a different SHA | `ArchiveConflictError` (SDK, with `isArchiveConflict`) | Never retried, never a fallback |
83
+ | Transient transport or rate limit | `ForgeFailure` / `ForgeRequestDeferred` | Retried |
76
84
  3. Replace the explicit branch, leased on an explicit expected remote head.
77
85
 
78
86
  - Return `lease-mismatch` separately from transport, auth and policy failures.
@@ -81,6 +89,7 @@ Reconcile requires the optional grouped `Forge.rewrite` capability:
81
89
  - Never overwrite unknown work or fall back to merging, ordinary pushes, archive branches or tags.
82
90
  - Older forge plugins still load; reconcile refuses them actionably.
83
91
  - Remote workspace providers also need trusted `WorkspacePublication.rewrite` after guest teardown; ordinary `publish` can't publish a restack.
92
+ - `WorkspacePublication.rewrite` input may carry `retain({ exec, workspacePath, archive, ref, sha })`. When present, call it once per `archives` entry instead of `archive`, passing your trusted Git transport; it owns the leaf fallback and does not throw for a refusal. A provider that ignores it archives strictly.
84
93
 
85
94
  ### Destination observation and ancestry
86
95
 
@@ -117,7 +126,10 @@ intervening forward gap still requires immutable ancestry proof.
117
126
 
118
127
  Remote providers expose trusted `WorkspacePublication.preserve` and
119
128
  `recoverCandidate`; local providers may supply `WorkspaceProvider.preservation`
120
- without changing the remote-publication discriminator. Missing capabilities fail
129
+ without changing the remote-publication discriminator. `recoverCandidate` may
130
+ receive `replayBase` and `targetBranch`: fetch the published target before
131
+ applying a thin replay pack whose base is missing, and return true for an
132
+ available leaf candidate even when archiving it is refused. Missing capabilities fail
121
133
  safely at destructive boundaries. `WorkspaceRecovery.fence(handle)` reports
122
134
  confirmed, absent, or unknown without deleting an environment or its snapshots.
123
135
  Only dispatcher-authorized reap follows the durable fence and preservation/loss
@@ -137,6 +149,16 @@ provider that ignores these fields stays safe. `preserve` also receives
137
149
  `neverExecuted` when no execution ever started in the environment: a missing
138
150
  base, `HEAD`, branch, or candidate object then means nothing to preserve rather
139
151
  than an error. A provider that ignores it stays strict, and cleanup fails safely.
152
+ `preserve` may also receive `retain({ exec, workspacePath, sha, base })`: when your
153
+ archive transport refuses a head's archive ref, call it with your trusted Git
154
+ transport. It keeps the head as a BuildStore copy and resolves to the copy's
155
+ exclusion base; record the head with that `storeBase` in place of `remoteRef`.
156
+ It throws when the head cannot be kept; rethrow so release is refused. A
157
+ provider that ignores it preserves strictly. A `restoration` head may name
158
+ `storeBase` instead of `remoteRef`. Then `provision` receives
159
+ `restoreStored({ exec, workspacePath, sha })`: when the commit is absent, call
160
+ it with your trusted transport, and fail provisioning when it resolves false.
161
+ The store is read dispatcher-side, so the guest never holds store credentials.
140
162
  Provision/start failures signal `WorkspaceCleanupRequired` rather than deleting
141
163
  or implicitly recreating an existing checkout. A confirmed `snapshot_not_found`
142
164
  lookup establishes filesystem absence, while retaining the stale name for
@@ -175,6 +197,7 @@ Optional `Forge.observeRequests(observer): () => void` returns a disposer and ca
175
197
 
176
198
  - Pass `ForgeRequestContext` with the build slug, or `{}` when unknown; the host fills missing attribution from its current build-scoped operation, else the request is repository/unattributed. Capture context before awaiting transport; notify after the outcome.
177
199
  - Credential discovery and skipped calls are not provider requests.
200
+ - Optionally add `rateLimit: { resource, limit, remaining, resetAt }` from the response's primary rate-limit headers (`resetAt` as an ISO timestamp), including on 304s and limited failures; omit it when the response carries none, and never make an extra request for it. The host carries the latest valid reading per resource in tick telemetry and `ab repository status`.
178
201
 
179
202
  | `outcome` | Request |
180
203
  |---|---|
@@ -205,6 +228,10 @@ Forge optimizations that don't change the required plugin API version:
205
228
 
206
229
  Invalidate observations before writes, including uncertain writes and Git pushes. Acknowledgement and readiness reads stay fresh. Branch and ref endpoints share normalized facts, never HTTP validators.
207
230
 
231
+ ### Forge CI
232
+
233
+ The optional **`inspectHeadChecks(workspacePath, sha)`** reports CI at exactly `sha` as `{kind: 'known', failing, pending}` or `{kind: 'unknown', reason}`. Report a failing set only when the provider proves it, and `unknown` when a listing is incomplete with no visible failure. Throw on transport, authorization, rate-limit or parse failure. The dispatcher treats a throw, or a forge without the capability, as unknown CI: never green, never red. Report the live PR head as `headSha` on an open `getPrState` result when the provider has it, so a moved head clears an older failure. Keep the read cheap; it runs on every janitor poll of a finished leaf.
234
+
208
235
  ### API versions
209
236
 
210
237
  A plugin relying on a capability declares an `apiVersion` range containing its version (for example `^1.5.0`). Legacy plugins without newer fields keep working.
@@ -525,8 +552,8 @@ An adapter opts in with `priority: true` and must persist
525
552
  return `priority: 'urgent'` on every read of an urgent ticket and omit the field
526
553
  otherwise, treat `normal` as clearing urgency, and include urgent priority in
527
554
  revisions. The dispatcher claims urgent ready tickets before normal ones, each in
528
- your listing order. Without the flag, every ticket reads as normal: the
529
- compatibility facade refuses a write naming `urgent` with
555
+ your listing order, and ahead of normal builds waiting for a slot. Without the
556
+ flag, every ticket reads as normal: the compatibility facade refuses a write naming `urgent` with
530
557
  `TicketPriorityUnsupported` before your methods run, drops a `normal` no-op
531
558
  (skipping the call when nothing else remains), and strips priority from reads.
532
559
 
@@ -537,6 +564,10 @@ must then honour `criteria.assignee` in `listReady` (and `listPage`, if
537
564
  implemented): only tickets assigned to that user are ready, and an unassigned
538
565
  ticket is never ready while it is set. `"me"` means the owner of the source's
539
566
  credential; any other value's forms are the source's to define and enforce.
567
+ `create` must also honour `options.readyAssignee`, which the dispatcher passes
568
+ when it files optimization attempts: assign the created ticket, or the ticket a
569
+ creation key adopts, to that user so the same `listReady` includes it, or fail
570
+ without recording the create.
540
571
  Without the flag, dispatcher startup, `ab init --validate` and live reloads
541
572
  refuse a configured `readyAssignee` with an error naming the source and plugin.
542
573
 
@@ -580,6 +611,11 @@ and request-free like `readyAssigneeRefusal`, and
580
611
  what `prepareReadyAssignee` resolved, so a dispatcher never resolves it in a
581
612
  tick.
582
613
 
614
+ Callers likewise union `[tickets].createLabels` into `labels`, so a draft's
615
+ labels are always exact. Every source already stores labels, so there is no
616
+ capability to declare; refuse any names your source reserves at `create`, as
617
+ for any other label.
618
+
583
619
  ## Optional ticket paging capability
584
620
 
585
621
  Native paging is an optional API 1.9 ticket-source capability:
@@ -600,15 +636,13 @@ Only paged operator listings select this capability. Sources without it retain
600
636
  the full-read fallback, which orders the listing before offset and limit: by
601
637
  default a stable urgent-first partition (urgent, then normal, each in source
602
638
  order), or for newest the reversed listing, which is newest filed first for
603
- sources that list in filing order (file, GitHub, Linear). The remote
604
- `HostedTicketSource` is the exception: the hosted list-ready protocol returns
605
- urgent tickets first and carries no filing time, so the client cannot see
606
- filing order, and its newest pages are reversed dispatch order whenever urgent
607
- tickets exist. Native errors propagate. Unpaged operator
608
- listings, CLI ticket lists and dispatcher ready scans remain exhaustive through
609
- `listReady`/`listAll`. The hosted PostgreSQL source counts matches without
610
- bodies and reads only the SQL-bounded window. File, Linear, GitHub and the remote
611
- `HostedTicketSource` retain fallback; the POST list-ready protocol stays exhaustive.
639
+ sources that list in filing order (file, GitHub, Linear). Native errors
640
+ propagate. Unpaged operator listings, CLI ticket lists and dispatcher ready
641
+ scans remain exhaustive through `listReady`/`listAll`. The hosted PostgreSQL
642
+ source counts matches without bodies and reads only the SQL-bounded window.
643
+ File, Linear and GitHub retain fallback; the remote `HostedTicketSource`
644
+ forwards pages to the service's native paging (`list-page`), falling back only
645
+ against a service predating it. The POST list-ready protocol stays exhaustive.
612
646
 
613
647
  Hosted cooldown recording rejects observed reset deadlines beyond the 24-hour
614
648
  admission horizon explicitly; adapters must not shorten or invent a provider
@@ -639,7 +639,13 @@ no client retries it from zero or silently baselines it.
639
639
  `{version, cursor, value}`. The server owns the accumulator. It checks expiry
640
640
  before canonical catch-up, then returns a checkpoint including event N; clients
641
641
  read only events strictly after N. Missing historical positions or corrupt stored
642
- state return typed `checkpoint-integrity` (HTTP 500).
642
+ state return typed `checkpoint-integrity` (HTTP 500). Seed answers use the same
643
+ client identification and released-contract projection as `reducer-values`:
644
+ clients send the projection and catalog-identity headers, a published client
645
+ receives the seed projected onto its frozen release contract and stamped with
646
+ its released reducer version, and a seed that contract cannot represent is
647
+ returned canonical, so the client fails with its typed incompatibility error and
648
+ never replays events.
643
649
 
644
650
  During deployment overlap or rollback, a pre-checkpoint server may advance a
645
651
  valid canonical row without checkpoint coverage. Under the seed lock, the new
@@ -789,6 +795,21 @@ older service that omits `ticketWait` yields no automatic release: open waits
789
795
  then end only when an operator answers them, and the client never rebuilds the
790
796
  field from events.
791
797
 
798
+ `optimization` is present on every node digest and absent on a leaf's. It is
799
+ `false` for a plain node. For an optimization node it is a bounded summary of
800
+ the node's own optimization facts: `stopped?` and `measured?` (each `true` when
801
+ set), `inFlight`, `concurrency`, `attemptRoom?` (absent without an attempts
802
+ budget), `emptyProposals`, `openedAt`, `maxHours?`, `proposal?: {request,
803
+ deposited?: {ids, at}}`, and `wakeSeq?` and `deferredSeq?`, the sequences of
804
+ the latest fact that can clear a proposer deferral and of the latest
805
+ `optimization.proposal-deferred`. A dispatcher selects nodes to request
806
+ proposals for, file proposals from and stop as exhausted from this member
807
+ alone. The member is additive and keeps the protocol version. A node digest
808
+ without it is an older service's answer: the client fails the proposer stage
809
+ and the attempt-creation hold closed with a typed capability error, proposing
810
+ nothing and withholding every ready ticket that carries a creation key for
811
+ that pass, and it never falls back to reading each node's facts.
812
+
792
813
  The digest is derived from the event log on every call — the server persists
793
814
  nothing and there is no refresh step. Protocol version `3` reshaped the
794
815
  digest's `observations` from bare sequence numbers to `{seq, ts}` pairs and
@@ -1243,6 +1264,8 @@ machine authentication. Its strict target is one of:
1243
1264
 
1244
1265
  - `{kind: "build-runner", id}` for an existing build;
1245
1266
  - `{kind: "build-phase", id, session}` after its `session.started` fact;
1267
+ - `{kind: "build-judge", id, session, panel, judge}` from the build's own
1268
+ runner, after the judge's `panel.judge-started` fact;
1246
1269
  - `{kind: "harvest-runner", repo, id, execution, leaseHolder}` after trusted
1247
1270
  preparation has atomically claimed the scan and recorded
1248
1271
  `harvest.execution.authorized` for that run/execution and adopted holder;
@@ -1251,22 +1274,25 @@ machine authentication. Its strict target is one of:
1251
1274
 
1252
1275
  The response is `{token}` only. Project credentials can issue only within their
1253
1276
  registered project. A runner grant may issue only an exact phase grant within
1254
- its own lifecycle binding; phase grants cannot delegate. Unknown targets are
1277
+ its own lifecycle binding, and only a build-runner grant may issue a judge
1278
+ grant; phase and judge grants cannot delegate. Unknown targets are
1255
1279
  refused. Tokens and parent secrets never become artifacts, launch envelopes or
1256
1280
  execution facts. Local-store execution requires no exchange; remote execution
1257
1281
  fails closed when issuance fails.
1258
1282
 
1259
1283
  The signed strict shape is `{version: 2, delegation: {repo, kind, id, anchor,
1260
- session?, execution?, leaseHolder?}}`. `anchor` is the authoritative event
1261
- sequence; harvest grants additionally bind the authorized execution. Session
1262
- claims exist only on phase grants. No fixed `exp` applies to this shape:
1284
+ session?, execution?, leaseHolder?, panel?, judge?}}`. `anchor` is the
1285
+ authoritative event sequence; harvest grants additionally bind the authorized
1286
+ execution. Session claims exist only on phase and judge grants, and `panel` and
1287
+ `judge` only on judge grants. No fixed `exp` applies to this shape:
1263
1288
  signature/schema verification precedes registered-project and lifecycle checks
1264
1289
  on every request, with no authorization cache. Failure to read lifecycle state
1265
1290
  fails closed. Parent credential expiry does not expire an already-issued grant.
1266
1291
  Project removal refuses all its grants immediately.
1267
1292
 
1268
1293
  Build grants live until 60 seconds after durable build termination. Phase grants
1269
- also retire 60 seconds after their own session ends, whichever comes first.
1294
+ also retire 60 seconds after their own session ends, whichever comes first;
1295
+ judge grants retire 60 seconds after their `panel.judge-ended`.
1270
1296
  Harvest grants retire 60 seconds after their run stops or their authorized
1271
1297
  execution ends/releases; harvest phases additionally retire on session end.
1272
1298
  Durable harvest suspension immediately closes the phase grant, without a grace interval.
@@ -1279,7 +1305,20 @@ survive hours-long turns, parent expiry and dispatcher/service reconstruction.
1279
1305
  A durable ending never resurrects: recovered harvest work gets a new
1280
1306
  `harvest.execution.authorized` identity and token.
1281
1307
 
1282
- Delegated same-project reads remain available, including journals, artifacts,
1308
+ A judge grant is write-only. Every read is refused with 403, including reducer
1309
+ values, artifacts, snapshots, sessions, streams and build listings, and so is
1310
+ every ticket, operator and credential-issuance request. Its one permitted
1311
+ request is `POST /builds/<id>/events` carrying a single `panel.preferred`
1312
+ attributed to its own judge session, for its own panel, judge and session,
1313
+ while that session is open and has not already preferred. Every other write is
1314
+ refused. The server checks the session and appends in one conditional step, so
1315
+ concurrent requests from one judge session record at most one preference. A
1316
+ losing request is refused with 403 ("this judge already recorded its
1317
+ preference"), exactly as a sequential retry is. If the build keeps advancing
1318
+ through repeated attempts, the request fails with 409 `conflict` and writes
1319
+ nothing; it may be retried. Requests from other judge sessions are unaffected.
1320
+
1321
+ Other delegated grants keep same-project reads, including journals, artifacts,
1283
1322
  digests, bounded state, pinned assets and collections. Writes by a build grant
1284
1323
  are confined to its build's events/deposits/artifacts, snapshots, leases and
1285
1324
  streams. Phase grants also reject agent actors naming another session, while
@@ -100,7 +100,8 @@ loads the project's durable independent ticket policy. Project authority publish
100
100
  version 1 policy through `POST /tickets/policy`, using the usual context/input
101
101
  envelope. The input contains only `version` and `tickets`: source, teamKey,
102
102
  readyState, triageState, claimedState, doneState, createState, proposalState,
103
- optional readyLabels, and the optional backlogState and rejectedState roles. URL,
103
+ optional readyLabels, the optional backlogState and rejectedState roles, and
104
+ optional createLabels (present only when nonempty). URL,
104
105
  secrets, and pipeline configuration are rejected.
105
106
  Only project or owner authority can publish. This does not append BuildStore
106
107
  history. Registration removal invalidates policy and grants from that registration.
@@ -137,6 +138,16 @@ policy read (`input: null`) includes the roles only with the header. Every
137
138
  `x-autobuild-ticket-policy-roles: 1`; a client publishing a role that receives
138
139
  `400` without it reports that the service predates policy roles.
139
140
 
141
+ `createLabels` is `[tickets].createLabels`: the service's own operator ticket
142
+ create (MCP and `POST …/tickets`) unions it into the labels a create names.
143
+ Clients that understand it send `x-autobuild-ticket-policy-create-labels: 1`,
144
+ independently of the roles header. With it, a publish is complete and omitting
145
+ `createLabels` removes it. Without it, as from every client released before the
146
+ field, a saved `createLabels` is kept, and a policy read omits it. Every
147
+ `/tickets/*` response carries `x-autobuild-ticket-policy-create-labels: 1`; a
148
+ client publishing `createLabels` that receives `400` without it reports that
149
+ the service predates createLabels in ticket policy.
150
+
140
151
  `[tickets] url` selects the ticket service independently of the build store;
141
152
  otherwise the selected remote build store is used. A local build store requires
142
153
  an explicit ticket URL. Credentials are resolved for that selected service.
@@ -172,6 +183,7 @@ The operation names and `input` values are:
172
183
  | `state-counts` | `{names: string[]}` (1–16) | `{name, tickets}[]` for the names that resolve |
173
184
  | `list-ready` | `{labels?: string[], state?: string}` | `TicketListing` |
174
185
  | `list-targeting` | `{nodeId: string}` | `TicketListing` of every state |
186
+ | `list-page` | `{criteria: {labels?, state?}, page: {limit, offset?, order?}}` | `TicketPageListing` (`{tickets, diagnostics, total}`) |
175
187
  | `get` | `{id}` | `Ticket \| null` |
176
188
  | `claim` | `{id}` | `{claimed: boolean}` |
177
189
  | `comment` | `{id, body}` | `{ok: true}` |
@@ -426,7 +438,7 @@ response, including errors, carries `x-autobuild-ticket-priority: 1`.
426
438
 
427
439
  `list-ready` returns urgent tickets first, then normal ones, each class in filing
428
440
  order, for every client. Ordering happens within the existing listing; it adds no
429
- per-ticket reads.
441
+ per-ticket reads. `list-ready` stays exhaustive; paged reads use `list-page`.
430
442
 
431
443
  A service whose backing source cannot store priority refuses a write naming
432
444
  `urgent` with `409 { "kind": "conflict", "code": "priority-unsupported" }` before
@@ -434,3 +446,39 @@ anything is written. A service predating priority refuses the unknown field with
434
446
  `400` validation error and no capability header. Clients report both as
435
447
  `TicketPriorityUnsupported`. Current clients omit `normal` on create, so a plain
436
448
  create still works against such a service.
449
+
450
+ ## Paged listing
451
+
452
+ `list-page` answers one window of the tickets matching `criteria`, from the
453
+ backing source's native paging. `limit` and `offset` are nonnegative integers;
454
+ `offset` defaults to 0. `order` is `oldest` (the default), which is dispatch
455
+ order: urgent first, then normal, each in filing order. `newest` is newest filed
456
+ first, regardless of urgency. Offset and limit apply after ordering, so
457
+ consecutive windows traverse the listing with no omissions or duplicates.
458
+ `total` counts every match before slicing, also for a zero limit or an offset
459
+ past the end. The service returns the page in the order the source answered;
460
+ it does not re-sort it urgent-first. Cost follows the window, not the project's
461
+ ticket count.
462
+
463
+ A backing source without native paging answers `409` with
464
+ `code: "paging-unsupported"`. The service never slices a full listing instead.
465
+ `list-page` is an operator listing: it requires project or owner authority, and
466
+ ticket grants and harvest delegations receive `403`.
467
+
468
+ Every `/tickets/*` response, including errors, carries
469
+ `x-autobuild-ticket-paging: 1`. A current client declares `listPage` only after
470
+ a response from the service has carried that header. It settles the decision on
471
+ the response that already finishes source construction (the policy sync or the
472
+ targeted-listing probe), with no extra probe. An ok response without the header
473
+ means the service predates the operation. Against such a service the client
474
+ never declares `listPage`, and paged operator listings read `list-ready` and
475
+ slice it, as for any source without native paging. A `list-page` request that the
476
+ service later refuses with `404` or `400` and no header, or answers with
477
+ `paging-unsupported`, or answers with a page that contradicts the request (more
478
+ tickets than `limit`, a window beyond `total`, or a malformed body), fails with
479
+ `HostedTicketPagingError`. There is no fallback within that call. After a
480
+ refusal without the header, the client stops declaring `listPage`, so the next
481
+ listing takes the `list-ready` path by that explicit decision.
482
+
483
+ The capability is additive. It does not change the remote BuildStore protocol
484
+ version, and released clients, which never send `list-page`, are unaffected.
@@ -58,7 +58,10 @@ path selection excludes upstream-only paths. A build leaving a ticket wait
58
58
  restacks with trigger `wait-resume` before its declaring phase resumes, when the
59
59
  target moved from the base its work sits on; an unchanged target resumes
60
60
  without a restack. Published work replays through the guarded restack, and a
61
- conflict runs reconcile before the declaring phase resumes. With nothing
61
+ conflict runs reconcile before the declaring phase resumes. A clean replay for
62
+ a wait declared in verify or finalize starts a fresh verification cycle on the
63
+ restacked base: every configured step re-runs at a new attempt before finalize
64
+ or merge. With nothing
62
65
  published, the local branch fast-forwards to the target (`restack.advanced`)
63
66
  only when it has no commits the target lacks and the workspace has no
64
67
  uncommitted tracked changes; unpublished local commits or uncommitted tracked
@@ -68,7 +71,7 @@ replay when the target moved, discarding its undeposited resolution, and
68
71
  replays the published head onto the current target instead. After finalize and post-steps,
69
72
  waiting leaves restack when the target moves. Node-target finalize contributions
70
73
  are canonicalized before guarded merge even when the target SHA is unchanged.
71
- Clean replay starts no agent. A clean waiting leaf rewrite preserves completed
74
+ Clean replay starts no agent. A clean awaiting-merge leaf rewrite preserves completed
72
75
  verification when build-owned config is unchanged, even when replay replaces
73
76
  the pin commit's ancestry. Reports retain their actual cycle base/head.
74
77
  Changed config still starts a fresh verification cycle while waiting. Before
@@ -78,6 +81,9 @@ supersession is separate from replay and reconcile. Conflicted replay runs
78
81
  reconcile and verification, and initial verification cannot be skipped through
79
82
  post-reconcile policy.
80
83
 
84
+ A replay that conflicts only in declared generated files is regenerated rather
85
+ than reconciled; see [Generated-file conflicts](#generated-file-conflicts).
86
+
81
87
  Nodes observe parent movement durably but restack only on demand: before a
82
88
  complete nonempty node verifies; before merge if its parent moved; when queued
83
89
  dependency presence requires an ancestor change; on `ab restack <node>`; or on
@@ -141,20 +147,57 @@ a path-bearing `observation.recorded` followup, deduplicated by operation,
141
147
  transaction, candidate SHA and exact path list on recovery. The phase-terminal
142
148
  D5 clean-worktree rule for `ab done` remains unchanged.
143
149
 
144
- Before replacement the kernel publishes retained tips, displaced heads and the
145
- temporary change under immutable exact archive refs. Remote archives also publish
150
+ Before a leaf replacement (automatic restack, reconcile or remote publication
151
+ settlement) the kernel keeps the tips named by history and rewrite facts, the
152
+ displaced heads and the temporary change, best effort, per commit:
153
+
154
+ | Order | Where | Recorded by |
155
+ |---|---|---|
156
+ | 1 | Immutable archive ref `refs/autobuild/archive/<slug>/<sha>`, exact readback | `archives` on `restack.rewritten` / `reconcile.rewritten` |
157
+ | 2 | Forge refused: BuildStore `history-objects-<sha>`, a thin pack of objects the frozen target base does not reach (chunked like replay copies); an ancestor of that base needs no copy (`target`) | `history.retained` `store` / `target` |
158
+ | 3 | Copy failed too: nothing; the rewrite proceeds with one build-scoped `history-unretained` followup observation | `history.retained` `unretained` |
159
+
160
+ - `history.retained {operation, id, base, store, target, unretained}` is decisive;
161
+ older runtimes defer on it.
162
+ - Retention never uses a branch or tag. An archive ref naming a different commit
163
+ is an `ArchiveConflictError`: never retried, never a fallback. Transient forge
164
+ failures retry.
165
+ - Readers (preparation, regenerated-restack adoption, candidate recovery)
166
+ restore in the same order: local repository, archive ref, store copies
167
+ (`reconcile-change-<sha>`, `replay-objects-<sha>`, `history-objects-<sha>`),
168
+ then the published build and target branches.
169
+ - A commit retained nowhere redoes the work: an unpublished transaction
170
+ re-prepares from the published branch as `<id>-redo`; a requested candidate is
171
+ retired through `publication.candidate-retired`.
172
+ - Node writes (restack, landing, integration landing, node verify head) retain
173
+ the same way, excluding the published head they build on, and record non-forge
174
+ outcomes in decisive `node.history-retained {operation: restack | landing |
175
+ integration-landing | verify, ...}`. Inputs kept nowhere stay reachable from
176
+ published branches, so the write proceeds after the shared warning.
177
+ - Node recovery (restack, landing, closed-node settlement, node-conflict
178
+ reconcile) restores reserved inputs before reading them; an input kept nowhere
179
+ before the guarded update landed abandons the reservation, and the next node
180
+ transaction reserves again from the published branches.
181
+ - Workspace preservation is strict: archive ref, else a `history-objects-<sha>`
182
+ store copy over the preservation base, else release is refused. Store-kept
183
+ heads go on decisive `workspace.commits-retained`, and replacement
184
+ provisioning restores them on any host.
185
+
186
+ Remote archives also publish
146
187
  commits present only on the remote: GitHub uses create-only Git-reference REST creation
147
188
  when the workspace lacks the commit, retaining guarded Git pushes for local objects.
148
189
  When the environment refuses a non-branch Git push of an archive ref, as Claude Code on
149
190
  the web's GitHub proxy does, GitHub creates the identical archive ref through the same
150
191
  REST call; a commit that exists only in the local workspace cannot use this fallback and
151
- fails with an error naming both refusals.
192
+ fails naming both refusals, which leaf retention absorbs into its BuildStore copy. Vercel Sandbox workspaces get the same fallback:
193
+ the guest pushes first, the dispatcher creates the ref with host-held credentials after a
194
+ refusal, and the guest's exact readback confirms it.
152
195
  Exact remote readback confirms publication, then a non-shallow fetch of only that exact
153
196
  archive ref (without tags, configured refmap expansion or a depth limit) restores
154
197
  missing commits and their missing ancestry, writes no shallow boundary, leaves an
155
198
  already-shallow repository's existing boundaries unchanged, and verifies the commits
156
199
  locally before returning. `restack.*` facts record
157
- preparation, replay, intent, archived replacement, contention and completion.
200
+ preparation, replay, intent, retained replacement, contention and completion.
158
201
  Unpublished request/loss records alone cannot preserve objects from a released
159
202
  sandbox. The forge is authoritative for publication: after a push or on recovery,
160
203
  its branch head must equal the intended SHA before completion. Local refs are
@@ -169,7 +212,7 @@ against the current destination. Remote guests park for trusted
169
212
  publication after teardown. Historical merge reconciliations keep their original
170
213
  interpretation and supply a promoted contribution base for later replay.
171
214
 
172
- Replay retention stores thin Git packs in bounded binary chunks, with a fixed-size completion manifest written only after every chunk is acknowledged. Digest-keyed chunks make interrupted writes retryable; incomplete uploads are never restored. Recovery validates all chunk sizes and the pack digest before installation, and requires the base objects (restoring node prefixes in order). Existing single-artifact base64 packs remain readable. Retained replay artifacts are read only when the requested commit is missing locally, never by idle polling.
215
+ Replay retention (`replay-objects-<sha>`) and leaf history retention (`history-objects-<sha>`) store thin Git packs in bounded binary chunks, with a fixed-size completion manifest written only after every chunk is acknowledged. Digest-keyed chunks make interrupted writes retryable; incomplete uploads are never restored. Recovery validates all chunk sizes and the pack digest before installation, and requires the base objects (restoring node prefixes in order). Existing single-artifact base64 packs remain readable. Retained replay and history artifacts are read only when the requested commit is missing locally, never by idle polling.
173
216
 
174
217
  ## Node contributions and recovery
175
218
 
@@ -188,7 +231,10 @@ Inventory retains its sampled source boundary even while the confirmed parent
188
231
  boundary stays unchanged. It exposes source identities, hand-pushed changes (node-owned foreign commits), active operation,
189
232
  conflict item and unsafe merge evidence.
190
233
 
191
- Only a conflicted item attaches a reconcile runner. It receives the original
234
+ Only a conflicted item attaches a runner. An item that conflicts only in
235
+ declared generated files is regenerated by that runner with no session (see
236
+ [Generated-file conflicts](#generated-file-conflicts)); any other conflicted
237
+ item runs a reconcile session. That session receives the original
192
238
  source build's pinned spec, approved plan and implement-notes, with the integration
193
239
  owner identified separately. Missing artifacts or invalid identity escalate.
194
240
  Foreign conflicts receive commit metadata and a diff; unclear intent escalates.
@@ -196,6 +242,45 @@ Completion validates exactly one commit on the item's replay base, preserving
196
242
  identity or foreign status. The agent never publishes the stack; dispatcher
197
243
  publication waits for session and execution settlement.
198
244
 
245
+ ## Generated-file conflicts
246
+
247
+ A repository declares generated files and the commands that rebuild them in
248
+ `autobuild.toml`'s `[[generated]]` table. When every conflicted path of a
249
+ replay is declared, the runner regenerates instead of starting a reconcile
250
+ session. It takes the target's side of each conflicted file, runs each owning
251
+ command once from the workspace root, and commits the result as the change's
252
+ replay with its original message and author. Edits that applied cleanly are
253
+ committed unchanged.
254
+
255
+ - **Leaf restack.** `restack.regenerated` records the files, the commands and
256
+ the outcome. A `resolved` replay's head is retained before the fact is
257
+ written, and then publishes like a clean restack, so verification follows the
258
+ clean-restack rules; the configured verify steps still check the result.
259
+ The regeneration counts as conflict resolution for merge consent: consent
260
+ given under a `paths` or `within` rule is revoked, with
261
+ `landing.consent-revoked`, when the regenerated files match it, even though
262
+ no reconcile session ran.
263
+ After a crash or on a replacement workspace, the runner restores that
264
+ retained head instead of rerunning the commands.
265
+ - **Node item.** The item's runner regenerates in the node's execution sandbox,
266
+ records `node.item-regenerated`, retains the head and writes the item's
267
+ receipt. No reconcile session starts; the next dispatch continues with the
268
+ remaining items. A resolved fact whose receipt is missing is finished from the
269
+ retained head on the next attempt.
270
+ - **Fallback.** `skipped` (some conflicted path is undeclared) and `failed` (a
271
+ non-zero exit, a write outside the declarations, the command changed the Git
272
+ index, or conflict markers left) commit nothing. The command's output is removed, the recorded conflict is
273
+ restored, and an ordinary reconcile session resolves it.
274
+ - **Mixed conflicts.** The reconcile context lists the conflicted generated
275
+ files and their commands as `generated`, and a failure's reason as
276
+ `regeneration.reason`. The agent resolves the other files first, then runs
277
+ the commands and stages their output; it never hand-merges a generated file.
278
+
279
+ `ab build status` adds `(regenerated: <commands>)` to a leaf's `restack:` line,
280
+ and `· N regenerated` or `· regeneration failed` to a node's restack lines.
281
+ `ab watch --event 'restack.*'` or `--event 'node.item-*'` shows each outcome.
282
+ Repositories that declare nothing restack exactly as before.
283
+
199
284
  ## Foreign merges
200
285
 
201
286
  Before any replay or publication, inspect every merge's non-first-parent history,
@@ -220,12 +305,15 @@ retry eligibility and recheck authorization after repository forge cooldown.
220
305
 
221
306
  A historical `publication.lost` does not prove that every copy of its candidate
222
307
  is gone. Recovery checks the exact branch and private archive refs and retained
223
- replay objects first. An available candidate continues guarded publication.
224
- A genuinely missing reconcile or automatic restack candidate records
308
+ store copies first. Replay copies are read in either format (chunked manifest or
309
+ legacy base64 pack); a thin pack whose base is missing fetches the published target
310
+ first and applies with `git index-pack --fix-thin`. An available candidate is
311
+ retained best effort before guarded publication continues; a refused archive does
312
+ not block it. A genuinely missing reconcile or automatic restack candidate records
225
313
  `publication.candidate-retired`, abandons its obsolete request, and replays the
226
314
  producing operation with a fresh transaction identity. Its frozen target,
227
315
  reconcile occurrence or automatic trigger, cycle, and message survive. The
228
- retired candidate is excluded from archive requirements unless independently
316
+ retired candidate is excluded from retention requirements unless independently
229
317
  required by proven history. This reconstruction consumes no infrastructure
230
318
  attempt and no additional conflict occurrence; it needs no operator guidance.
231
319
  A bare retry also clears an existing infrastructure-limit escalation through
@@ -417,8 +417,10 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
417
417
  An applicable behavior that cannot be exercised is a failure with an
418
418
  explanation, never a skip or silent pass. Use `skip` only when the complete step
419
419
  does not apply. If guidance still cannot make a verdict possible, escalate and
420
- explain what remains unresolved. Record out-of-scope work with `ab observe`;
421
- the verifier does not fix it.
420
+ explain what remains unresolved. In a work build, a verifier that cannot judge
421
+ until another ticket merges may instead end with
422
+ `ab wait-on <ticket-id>... --reason "…"`; a node build's verifier cannot.
423
+ Record out-of-scope work with `ab observe`; the verifier does not fix it.
422
424
 
423
425
  ### Project-scoped hosted tickets
424
426
 
@@ -483,6 +485,15 @@ prove archive-domain access: manually verify it with your administrator without
483
485
  creating probe refs or overwriting archives. Autobuild never changes settings or
484
486
  performs test pushes.
485
487
 
488
+ Archive refs are a recommendation (WARN or UNKNOWN, never FAIL):
489
+
490
+ - **Leaf rewrites and node writes** treat them as optional forge-side backup of
491
+ displaced history. Where refused, they keep a BuildStore copy, or warn once per
492
+ build and proceed.
493
+ - **Workspace preservation** keeps unpublished workspace commits as BuildStore
494
+ copies where refused, and refuses to release the workspace only when the store
495
+ copy fails too.
496
+
486
497
  Require **linear history** on protected root and node target branches to prevent
487
498
  merge commits from GitHub's update-branch action. On the configured root, enable
488
499
  **Require branches to be up to date before merging**, with nonempty required
@@ -186,4 +186,5 @@ pending controls, merge intent and ended PRs refuse the no-escalation path.
186
186
  A concurrent state change refuses publication with a retry explanation;
187
187
  uncited artifacts are inert. Leaves still require an open escalation and
188
188
  restart from `plan` after any unfinished reconcile resumes under the revised
189
- spec and its publication is confirmed.
189
+ spec and its publication is confirmed. A settled, unmerged leaf awaiting merge
190
+ revises without an escalation through `ab reopen`.
@@ -58,6 +58,11 @@ the ticket ready.
58
58
  ## Already-claimed work
59
59
 
60
60
  Adding blockers does not stop a build already claimed from an earlier listing.
61
+ This recipe applies to ordinary tickets. Aborting an
62
+ [optimization attempt](optimization-nodes.md#landing-and-settlement) settles it
63
+ `aborted` and its node moves the ticket to rejected, whatever `--to` says, and
64
+ no `ticket.handed-back` event follows; wait for the node's
65
+ `attempt.ticket-rejected` instead.
61
66
  When the human authorizes restarting premature work and the blocker set is
62
67
  already right, request `ab abort <slug> --to ready`: cleanup moves the ticket
63
68
  straight back to ready with its blockers kept, so no second move is needed.
@@ -6,7 +6,8 @@ forge, except that a GitHub source reads and writes the repository's issues.
6
6
  File, hosted and GitHub sources support import. Every built-in source supports
7
7
  export.
8
8
 
9
- 1. Pause intake and quiesce build-related ticket writes and other ticket writers
9
+ 1. Pause intake, cancel any pending `ab start` request (`ab repository status`
10
+ lists them), and quiesce build-related ticket writes and other ticket writers
10
11
  for the cutover. In-flight builds need not be aborted. Import preflight does
11
12
  not reserve numbers against concurrent writers.
12
13
  2. With the old `[tickets]` configuration, run `ab ticket export /path/to/export`.
@@ -134,7 +135,8 @@ Before any write, import reports every problem together: states that cannot be
134
135
  a rejected state when `[tickets].rejectedState` is unset, and ticket labels that
135
136
  would collide with a state label (`autobuild:<state>`) or an issue-link label
136
137
  (`autobuild-link:…`). The `autobuild:proposal` and `autobuild:aborted` marker
137
- labels are ordinary labels and import as-is. Node kinds become the exact `node`
138
+ labels are ordinary labels and import as-is. Import never adds
139
+ `[tickets].createLabels`: exported labels import exactly as they are. Node kinds become the exact `node`
138
140
  label, and targets become sub-issue relationships to the remapped node issues.
139
141
  Issue links are kept. They are rewritten through the mapping only when the export
140
142
  came from GitHub, because only then do they name the exported tickets.