@defrex/autobuild 1.0.0-beta.3 → 1.0.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 (168) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +362 -56
  3. package/bin/ab-dispatch-generation.ts +93 -0
  4. package/docs/agent-runtimes.md +157 -0
  5. package/docs/answering-blocked-builds.md +21 -3
  6. package/docs/architecture.md +166 -7
  7. package/docs/build-store.md +123 -0
  8. package/docs/builds.md +82 -0
  9. package/docs/cli.md +48 -0
  10. package/docs/configuration-overview.md +93 -0
  11. package/docs/configuration.md +1778 -188
  12. package/docs/dispatcher-hosting.md +115 -0
  13. package/docs/dispatcher.md +59 -0
  14. package/docs/forges.md +121 -0
  15. package/docs/getting-started.md +60 -0
  16. package/docs/glossary.md +60 -0
  17. package/docs/hosted-service.md +2 -2
  18. package/docs/intake.md +48 -0
  19. package/docs/integration-overview.md +81 -0
  20. package/docs/integration-tree.md +87 -2
  21. package/docs/integration.md +54 -0
  22. package/docs/operating.md +114 -0
  23. package/docs/operator-api.md +64 -11
  24. package/docs/operator-surfaces.md +90 -0
  25. package/docs/overview.md +49 -0
  26. package/docs/plugin-authoring.md +426 -0
  27. package/docs/remote-store-protocol.md +12 -9
  28. package/docs/restacking.md +4 -1
  29. package/docs/seams.md +66 -0
  30. package/docs/setup.md +28 -6
  31. package/docs/skills.md +119 -0
  32. package/docs/spec-standard.md +23 -5
  33. package/docs/ticket-sources.md +132 -0
  34. package/docs/tickets.md +69 -0
  35. package/docs/troubleshooting.md +111 -0
  36. package/docs/upgrading.md +50 -0
  37. package/docs/verification.md +146 -0
  38. package/docs/website.md +47 -5
  39. package/docs/workspaces.md +152 -0
  40. package/package.json +5 -4
  41. package/packages/core/src/cli/artifact.ts +5 -4
  42. package/packages/core/src/cli/attention.ts +2 -0
  43. package/packages/core/src/cli/binary-direct.ts +190 -0
  44. package/packages/core/src/cli/binary-lifecycle.ts +46 -0
  45. package/packages/core/src/cli/binary.ts +24 -210
  46. package/packages/core/src/cli/build-control.ts +105 -2
  47. package/packages/core/src/cli/context.ts +41 -1
  48. package/packages/core/src/cli/dashboard/hand-pushed.ts +24 -0
  49. package/packages/core/src/cli/dashboard/handoff.ts +64 -0
  50. package/packages/core/src/cli/dashboard/integration-detail.ts +3 -0
  51. package/packages/core/src/cli/dashboard/model.ts +34 -10
  52. package/packages/core/src/cli/dashboard/render.ts +24 -2
  53. package/packages/core/src/cli/dashboard/rollback.ts +30 -0
  54. package/packages/core/src/cli/dispatch-args.ts +53 -0
  55. package/packages/core/src/cli/dispatch-crash-budget.ts +15 -0
  56. package/packages/core/src/cli/dispatch-frontend.ts +52 -5
  57. package/packages/core/src/cli/dispatch-handoff.ts +276 -0
  58. package/packages/core/src/cli/dispatch-launch-contract.ts +170 -0
  59. package/packages/core/src/cli/dispatch-launcher.ts +580 -0
  60. package/packages/core/src/cli/dispatch-parent-watch.ts +44 -0
  61. package/packages/core/src/cli/dispatch-preflight.ts +272 -0
  62. package/packages/core/src/cli/dispatch-presentation-job.ts +46 -0
  63. package/packages/core/src/cli/dispatch-presentation-ownership.ts +9 -0
  64. package/packages/core/src/cli/dispatch-process.ts +22 -90
  65. package/packages/core/src/cli/dispatch-readiness.ts +47 -0
  66. package/packages/core/src/cli/dispatch-repository-feed.ts +5 -1
  67. package/packages/core/src/cli/dispatch-runtime-cache.ts +522 -0
  68. package/packages/core/src/cli/dispatch-runtime-dependencies.ts +291 -0
  69. package/packages/core/src/cli/dispatch-runtime-use.ts +336 -0
  70. package/packages/core/src/cli/dispatch-upgrade-controller.ts +221 -0
  71. package/packages/core/src/cli/dispatch-upgrade-install.ts +258 -0
  72. package/packages/core/src/cli/dispatch-upgrade-source.ts +309 -0
  73. package/packages/core/src/cli/dispatch-upgrade-target.ts +190 -0
  74. package/packages/core/src/cli/dispatch.ts +604 -60
  75. package/packages/core/src/cli/dispatcher-liveness.ts +1 -1
  76. package/packages/core/src/cli/env.ts +1 -1
  77. package/packages/core/src/cli/harvest.ts +28 -11
  78. package/packages/core/src/cli/help.ts +10 -5
  79. package/packages/core/src/cli/installation.ts +5 -3
  80. package/packages/core/src/cli/main-checkout.ts +59 -0
  81. package/packages/core/src/cli/main.ts +15 -45
  82. package/packages/core/src/cli/node-verification-provenance.ts +97 -0
  83. package/packages/core/src/cli/repo-state.ts +3 -58
  84. package/packages/core/src/cli/repository-status.ts +67 -3
  85. package/packages/core/src/cli/runtime-spawn.ts +16 -0
  86. package/packages/core/src/cli/status.ts +57 -3
  87. package/packages/core/src/cli/upgrade-followup.ts +25 -0
  88. package/packages/core/src/cli/wait.ts +3 -0
  89. package/packages/core/src/cli/watch.ts +7 -0
  90. package/packages/core/src/config/landing.ts +8 -0
  91. package/packages/core/src/config/live.ts +1 -0
  92. package/packages/core/src/config/reference-metadata.ts +31 -0
  93. package/packages/core/src/config/reference.ts +342 -0
  94. package/packages/core/src/config/roles.ts +1 -1
  95. package/packages/core/src/config/schema.ts +352 -10
  96. package/packages/core/src/distribution-packaging.ts +116 -0
  97. package/packages/core/src/events/catalog.ts +6 -0
  98. package/packages/core/src/events/payloads.ts +53 -9
  99. package/packages/core/src/events/policy.ts +25 -0
  100. package/packages/core/src/events/repository.ts +184 -4
  101. package/packages/core/src/events/runtime.ts +16 -0
  102. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +2515 -78
  103. package/packages/core/src/kernel/dispatch-drain-recovery.ts +121 -0
  104. package/packages/core/src/kernel/dispatch-status.ts +4 -2
  105. package/packages/core/src/kernel/dispatch-upgrade.ts +171 -0
  106. package/packages/core/src/kernel/dispatcher-liveness.ts +7 -0
  107. package/packages/core/src/kernel/generators/repository-journals.ts +82 -0
  108. package/packages/core/src/kernel/guarded-forge.ts +1 -1
  109. package/packages/core/src/kernel/harvest.ts +98 -4
  110. package/packages/core/src/kernel/integration-attention.ts +20 -0
  111. package/packages/core/src/kernel/integration-state.ts +80 -11
  112. package/packages/core/src/kernel/landing-readiness.ts +6 -1
  113. package/packages/core/src/kernel/mixed-version.ts +34 -0
  114. package/packages/core/src/kernel/node-polling.ts +160 -0
  115. package/packages/core/src/kernel/read-facts.ts +40 -5
  116. package/packages/core/src/kernel/reducer-registry.ts +3 -0
  117. package/packages/core/src/kernel/reducer.ts +75 -14
  118. package/packages/core/src/kernel/service-facts.ts +11 -4
  119. package/packages/core/src/ontology.ts +2 -2
  120. package/packages/core/src/open-map.ts +3 -1
  121. package/packages/core/src/operator/presentation.ts +7 -0
  122. package/packages/core/src/operator/query.ts +6 -2
  123. package/packages/core/src/operator/registry.ts +1 -1
  124. package/packages/core/src/plugins/load.ts +4 -1
  125. package/packages/core/src/plugins/runtime-snapshot.ts +128 -0
  126. package/packages/core/src/ports/forge/contract.ts +29 -0
  127. package/packages/core/src/ports/forge/github.ts +189 -61
  128. package/packages/core/src/ports/forge-failure.ts +1 -0
  129. package/packages/core/src/ports/forge-telemetry.ts +3 -0
  130. package/packages/core/src/ports/runner/session-env.ts +1 -0
  131. package/packages/core/src/ports/types.ts +10 -0
  132. package/packages/core/src/ports/workspace/distribution-archive.ts +22 -149
  133. package/packages/core/src/ports/workspace/distribution-release.ts +56 -0
  134. package/packages/core/src/ports/workspace/git-worktree.ts +2 -1
  135. package/packages/core/src/ports/workspace/local-build-execution.ts +37 -17
  136. package/packages/core/src/processes/build-child-exit.ts +5 -26
  137. package/packages/core/src/processes/build-runner.ts +81 -11
  138. package/packages/core/src/processes/dispatcher.ts +254 -23
  139. package/packages/core/src/processes/execution-no-progress.ts +6 -0
  140. package/packages/core/src/processes/execution-relaunch.ts +30 -0
  141. package/packages/core/src/processes/execution-settlement.ts +16 -7
  142. package/packages/core/src/processes/harvest-runner.ts +328 -292
  143. package/packages/core/src/processes/process-group-reaper.ts +17 -10
  144. package/packages/core/src/runtime-identity.ts +22 -3
  145. package/packages/core/src/store/contract.ts +153 -0
  146. package/packages/core/src/store/local/store.ts +197 -72
  147. package/packages/core/src/store/reduced-reads.ts +8 -0
  148. package/packages/core/src/store/reducer-value-shapes.json +5783 -3305
  149. package/packages/core/src/store/remote/client.ts +43 -0
  150. package/packages/core/src/store/repo-state-events.ts +20 -3
  151. package/packages/core/src/store/types.ts +7 -0
  152. package/skills/finalize/SKILL.md +3 -1
  153. package/skills/guide/SKILL.md +273 -48
  154. package/skills/guide/references/integration-tree.md +87 -2
  155. package/skills/guide/references/operator-api.md +71 -14
  156. package/skills/guide/references/plugin-authoring.md +231 -266
  157. package/skills/guide/references/remote-store-protocol.md +12 -9
  158. package/skills/guide/references/restacking.md +4 -1
  159. package/skills/guide/references/setup.md +28 -6
  160. package/skills/guide/references/spec-standard.md +23 -5
  161. package/skills/harvest/SKILL.md +4 -0
  162. package/skills/harvest-review/SKILL.md +4 -0
  163. package/skills/implement/SKILL.md +4 -2
  164. package/skills/operate/SKILL.md +104 -35
  165. package/skills/plan/SKILL.md +12 -4
  166. package/skills/spec/SKILL.md +20 -2
  167. package/skills/tickets/SKILL.md +20 -1
  168. package/templates/hosted-service/package.json +2 -2
@@ -18,11 +18,39 @@ and sessionless `ab init --validate` readiness check. Examples labelled as
18
18
  fragments are intended to be added to an existing file; the [complete
19
19
  example](#complete-example) is valid on its own.
20
20
 
21
+ An **acceptance check** is a repository-owned agent verify step that runs the built software, exercises each acceptance criterion in the spec, attaches evidence, and returns a typed verdict. Every repository must configure one. It is not a test suite and leaves no test files behind.
22
+
21
23
  ## `[store]`
22
24
 
23
- | Key | Required | Values / purpose |
24
- |---|---|---|
25
- | `url` | When `[store]` exists | Absolute HTTPS service base URL; loopback HTTP is allowed for development. No credentials, query or fragment. Trailing slashes are normalized. |
25
+ <!-- configuration-reference:store -->
26
+
27
+ #### `store`
28
+
29
+ **TOML key:** `store`
30
+
31
+ - **Type:** `strict table`
32
+ - **Default:** `omitted`
33
+ - **Required:** Optional
34
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
35
+
36
+ **Description:** Optional remote BuildStore connection. Credentials live outside TOML.
37
+
38
+ **Constraints:** None beyond the input type.
39
+
40
+ #### `store.url`
41
+
42
+ **TOML key:** `store.url`
43
+
44
+ - **Type:** `string`
45
+ - **Default:** `omitted`
46
+ - **Required:** Required
47
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
48
+
49
+ **Description:** Absolute HTTPS service base URL; loopback HTTP is allowed for development. No credentials, query or fragment. Trailing slashes are normalized.
50
+
51
+ **Constraints:** Absolute HTTPS service URL; loopback HTTP allowed. No credentials, query or fragment. Trailing slashes normalized.
52
+
53
+ <!-- configuration-reference:/store -->
26
54
 
27
55
  Selection is explicit `--store` > nonblank `AB_STORE` > `[store] url` > the main
28
56
  checkout's `.autobuild/`. A configured service without a user credential fails
@@ -66,7 +94,7 @@ schema is incompatible. The database
66
94
  identity needs permission to create tables during migration and to select,
67
95
  insert, and update those tables at runtime. The complete run, deployment, and
68
96
  token procedure is in the [hosted service
69
- guide](../packages/hosted-store-service/README.md); operator clients use the
97
+ guide](../packages/hosted-store-service/README.md); clients use the
70
98
  separate signed-user token described by the [operator API](operator-api.md).
71
99
 
72
100
  | Variable | Required when | Values / purpose |
@@ -81,7 +109,7 @@ separate signed-user token described by the [operator API](operator-api.md).
81
109
  | `GITHUB_CLIENT_ID` | GitHub sign-in | OAuth application client id. |
82
110
  | `GITHUB_CLIENT_SECRET` | GitHub sign-in | Server-only OAuth application secret. |
83
111
  | `AB_WEB_AUTH_PROVIDERS` | Web dashboard | Comma-separated provider set; currently exactly `github`. |
84
- | `AB_WEB_ALLOWED_EMAILS` | Web dashboard | Nonempty comma-separated operator email allowlist; matching is case-insensitive. |
112
+ | `AB_WEB_ALLOWED_EMAILS` | Web dashboard | Nonempty comma-separated sign-in email allowlist; matching is case-insensitive. |
85
113
  | `AB_WEB_REPOSITORIES` | Hosted service | Deprecated once-per-database bootstrap CSV for the durable project registry. Use owner commands thereafter; see [connected projects](setup.md#connected-projects). |
86
114
 
87
115
  GitHub's callback is `{BETTER_AUTH_URL}/api/auth/callback/github`; the app needs
@@ -134,7 +162,7 @@ There are three validation layers:
134
162
  1. TOML syntax and schema/cross-field validation happen while
135
163
  `autobuild.toml` is loaded. Errors start with the file path and either
136
164
  `TOML syntax error` or `invalid config`; schema errors then identify paths
137
- such as `verify.e2e.skill` or `tickets.teamKey`.
165
+ such as `verify.acceptance.skill` or `tickets.teamKey`.
138
166
  2. Configured plugin modules are resolved from the repository, evaluated,
139
167
  manifest-validated, checked for plugin-API compatibility, and registered
140
168
  before production adapters, stores, claims, or runners are started.
@@ -223,6 +251,7 @@ These fields hot-reload:
223
251
  | `[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 stored verify selection remains authoritative, and a base-branch reload does not retarget an in-flight build. |
224
252
  | `[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. |
225
253
  | `[roles]` | Next agent invocation for that role. Runtime, model, args, alternates, and the session budget are captured together and delivered live. |
254
+ | `[upgrade]` | Cancels preparation when disabled; automatic target checks every 60 seconds. |
226
255
  | `[policy]` | Next policy, convergence, or agent-session boundary, delivered live. A running session keeps its captured budget. |
227
256
  | `tickets.readyLabels`, `tickets.readyState`, `tickets.readyAssignee` | Next ready-ticket scan. |
228
257
  | `tickets.triageState`, `tickets.proposalState` | Next dispatcher handback or harvest filing boundary. |
@@ -244,18 +273,85 @@ The dispatch process reads the main checkout because it owns repository intake.
244
273
  Scoped phase commands still read the build worktree's `autobuild.toml`; this is
245
274
  the existing build-context boundary and is not unified by hot reload.
246
275
 
276
+ Regenerate the schema-derived field blocks with `bun run docs:configuration`.
277
+ `bun run check` rejects drift or missing field descriptions. Prose outside the
278
+ generated markers is maintained by hand. Defaults below are parser input defaults;
279
+ resolver inheritance is described separately. Nested required fields are required
280
+ when their containing table or array entry is supplied.
281
+
247
282
  ## Root scalars
248
283
 
249
284
  All root scalars are optional and receive defaults. They must appear before
250
285
  any table header.
251
286
 
252
- | Field | Default | Constraints | Purpose |
253
- |---|---:|---|---|
254
- | `baseBranch` | `"main"` | nonempty string | Branch used to cut builds, target PRs, and merge during reconciliation. |
255
- | `ticketScanIntervalSeconds` | `60` | positive integer seconds | Ticket-source ready scan cadence; tick spacing is the effective minimum. |
256
- | `capacity` | `1` | positive integer | Concurrent occupied slots for this repository. 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). |
257
- | `forge` | `"github"` | nonblank string | Forge adapter name. Shipped values are `github` and `local-git`; configured plugins may register other names. |
258
- | `plugins` | `[]` | array of unique nonblank module specifiers | Trusted Bun plugin modules loaded by dispatch, `ab ticket`, and scoped phase CLI processes. |
287
+ <!-- configuration-reference:root -->
288
+
289
+ #### `baseBranch`
290
+
291
+ **TOML key:** `baseBranch`
292
+
293
+ - **Type:** `string`
294
+ - **Default:** `"main"`
295
+ - **Required:** Optional
296
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
297
+
298
+ **Description:** Branch used to cut builds, target PRs, and merge during reconciliation.
299
+
300
+ **Constraints:** minimum length 1
301
+
302
+ #### `capacity`
303
+
304
+ **TOML key:** `capacity`
305
+
306
+ - **Type:** `number`
307
+ - **Default:** `1`
308
+ - **Required:** Optional
309
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
310
+
311
+ **Description:** Concurrent occupied slots for this repository. 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).
312
+
313
+ **Constraints:** safe integer; > 0
314
+
315
+ #### `ticketScanIntervalSeconds`
316
+
317
+ **TOML key:** `ticketScanIntervalSeconds`
318
+
319
+ - **Type:** `number`
320
+ - **Default:** `60`
321
+ - **Required:** Optional
322
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
323
+
324
+ **Description:** Ticket-source ready scan cadence; tick spacing is the effective minimum.
325
+
326
+ **Constraints:** safe integer; > 0
327
+
328
+ #### `forge`
329
+
330
+ **TOML key:** `forge`
331
+
332
+ - **Type:** `string`
333
+ - **Default:** `"github"`
334
+ - **Required:** Optional
335
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
336
+
337
+ **Description:** Forge adapter name. Shipped values are `github` and `local-git`; configured plugins may register other names.
338
+
339
+ **Constraints:** forge adapter name must be nonblank
340
+
341
+ #### `plugins`
342
+
343
+ **TOML key:** `plugins`
344
+
345
+ - **Type:** `array of string`
346
+ - **Default:** `[]`
347
+ - **Required:** Optional
348
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
349
+
350
+ **Description:** Trusted Bun plugin modules loaded by dispatch, `ab ticket`, and scoped phase CLI processes.
351
+
352
+ **Constraints:** Exact module specifiers must be unique.; Each item: plugin module specifiers must be nonblank
353
+
354
+ <!-- configuration-reference:/root -->
259
355
 
260
356
  Ticket-source ready scans run immediately when no completed measurement exists,
261
357
  then every
@@ -293,7 +389,7 @@ Autobuild does not install them.
293
389
 
294
390
  Every configured specifier string must be unique. An exact repeat fails schema
295
391
  validation before any plugin resolves or evaluates; the diagnostic identifies
296
- the repeated value and both list positions and tells the operator to remove or
392
+ the repeated value and both list positions and asks you to remove or
297
393
  deduplicate the entry. Distinct specifier strings remain separate declarations.
298
394
  Each module must default-export a strict manifest with a plugin name, a semver
299
395
  range in `apiVersion`, and optional `ticketSources`, `agentRuntimes`,
@@ -404,7 +500,7 @@ export default {
404
500
  } satisfies AutobuildPluginManifest
405
501
  ```
406
502
 
407
- Use the sessionless author/operator loop from the repository checkout:
503
+ Use the sessionless authoring loop from the repository checkout:
408
504
 
409
505
  ```sh
410
506
  ab plugin list
@@ -456,12 +552,74 @@ An ordered list of strict landing rules. Predicates within one rule are ANDed;
456
552
  the first matching rule wins. Omitted predicates match everything. With no
457
553
  matching rule, leaves default to `auto` and nodes to `consent`.
458
554
 
459
- | Field | Meaning |
460
- |---|---|
461
- | `into` | Optional destination: `root`, any `node`, or an exact frozen destination node ticket id. |
462
- | `from` | Optional source kind: `leaf` or `node`. |
463
- | `label` | Optional exact, case-sensitive label on the source ticket. Blank labels are invalid. |
464
- | `mode` | Required `auto` or `consent`. |
555
+ <!-- configuration-reference:landing -->
556
+
557
+ #### `landing`
558
+
559
+ **TOML key:** `landing`
560
+
561
+ - **Type:** `array of strict table`
562
+ - **Default:** `[]`
563
+ - **Required:** Optional
564
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
565
+
566
+ **Description:** Ordered landing rules; the first matching rule controls consent.
567
+
568
+ **Constraints:** None beyond the input type.
569
+
570
+ #### `landing[].into`
571
+
572
+ **TOML key:** `landing[].into`
573
+
574
+ - **Type:** `string`
575
+ - **Default:** `omitted`
576
+ - **Required:** Optional
577
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
578
+
579
+ **Description:** Optional destination: `root`, any `node`, or an exact frozen destination node ticket id.
580
+
581
+ **Constraints:** into must be root, node, or a nonblank node ticket id
582
+
583
+ #### `landing[].from`
584
+
585
+ **TOML key:** `landing[].from`
586
+
587
+ - **Type:** `"leaf" | "node"`
588
+ - **Default:** `omitted`
589
+ - **Required:** Optional
590
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
591
+
592
+ **Description:** Restrict this rule to one source build kind; omission matches all kinds.
593
+
594
+ **Constraints:** None beyond the input type.
595
+
596
+ #### `landing[].label`
597
+
598
+ **TOML key:** `landing[].label`
599
+
600
+ - **Type:** `string`
601
+ - **Default:** `omitted`
602
+ - **Required:** Optional
603
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
604
+
605
+ **Description:** Optional exact, case-sensitive label on the source ticket. Blank labels are invalid.
606
+
607
+ **Constraints:** label must be nonblank (labels match exactly, including case)
608
+
609
+ #### `landing[].mode`
610
+
611
+ **TOML key:** `landing[].mode`
612
+
613
+ - **Type:** `"auto" | "consent"`
614
+ - **Default:** `omitted`
615
+ - **Required:** Required
616
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
617
+
618
+ **Description:** Choose automatic landing or require recorded consent.
619
+
620
+ **Constraints:** None beyond the input type.
621
+
622
+ <!-- configuration-reference:/landing -->
465
623
 
466
624
  For example, put a rule with `into = "root"` and `mode = "consent"`
467
625
  before a catch-all rule with `mode = "auto"` to request consent only at the
@@ -481,20 +639,84 @@ See [worked landing configurations and forge requirements](landing-policy.md),
481
639
  Optional. Omitting the table leaves attachment hosting off; attached artifacts
482
640
  still receive exact BuildStore download commands in the PR summary.
483
641
 
484
- | Field | Default | Constraints | Purpose |
485
- |---|---:|---|---|
486
- | `imageHost` | omitted (off) | optional `[pr.imageHost]` table | Copy attached images to a temporary public review location so they can render inline. |
642
+ <!-- configuration-reference:pr -->
643
+
644
+ #### `pr`
645
+
646
+ **TOML key:** `pr`
647
+
648
+ - **Type:** `strict table`
649
+ - **Default:** `omitted`
650
+ - **Required:** Optional
651
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
652
+
653
+ **Description:** Pull request review image hosting configuration.
654
+
655
+ **Constraints:** None beyond the input type.
656
+
657
+ #### `pr.imageHost`
658
+
659
+ **TOML key:** `pr.imageHost`
660
+
661
+ - **Type:** `strict table`
662
+ - **Default:** `omitted`
663
+ - **Required:** Optional
664
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
665
+
666
+ **Description:** Copy attached images to a temporary public review location so they can render inline.
667
+
668
+ **Constraints:** None beyond the input type.
669
+
670
+ <!-- configuration-reference:/pr -->
487
671
 
488
672
  ### `[pr.imageHost]`
489
673
 
674
+ <!-- configuration-reference:pr-imageHost -->
675
+
676
+ #### `pr.imageHost.provider`
677
+
678
+ **TOML key:** `pr.imageHost.provider`
679
+
680
+ - **Type:** `"github-release"`
681
+ - **Default:** `omitted`
682
+ - **Required:** Required
683
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
684
+
685
+ **Description:** Select the GitHub release adapter.
686
+
687
+ **Constraints:** None beyond the input type.
688
+
689
+ #### `pr.imageHost.repository`
690
+
691
+ **TOML key:** `pr.imageHost.repository`
692
+
693
+ - **Type:** `string`
694
+ - **Default:** `omitted`
695
+ - **Required:** Required
696
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
697
+
698
+ **Description:** Public repository containing the existing review release.
699
+
700
+ **Constraints:** matches /^[^/\s]+\/[^/\s]+$/
701
+
702
+ #### `pr.imageHost.releaseId`
703
+
704
+ **TOML key:** `pr.imageHost.releaseId`
705
+
706
+ - **Type:** `number`
707
+ - **Default:** `omitted`
708
+ - **Required:** Required
709
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
710
+
711
+ **Description:** Numeric id of an existing published, mutable release.
712
+
713
+ **Constraints:** safe integer; > 0
714
+
715
+ <!-- configuration-reference:/pr-imageHost -->
716
+
490
717
  This optional nested table selects the one shipped image-host adapter. If the
491
718
  table exists, all three fields are required.
492
719
 
493
- | Field | Default | Constraints | Purpose |
494
- |---|---:|---|---|
495
- | `provider` | — | required literal `"github-release"` | Select the GitHub release adapter. |
496
- | `repository` | — | required exact nonblank `owner/repo` pair | Public repository containing the existing review release. |
497
- | `releaseId` | — | required positive integer | Numeric id of an existing published, mutable release. |
498
720
 
499
721
  <!-- config-fragment:image-host -->
500
722
  ```toml
@@ -536,10 +758,61 @@ never pruned.
536
758
  Optional. Omission preserves the shipped git-worktree behavior. The surrounding
537
759
  table is strict; only the explicit nested `config` table is plugin-owned.
538
760
 
539
- | Field | Default | Constraints | Purpose |
540
- |---|---:|---|---|
541
- | `provider` | `"git-worktree"` | nonblank builtin or plugin-registered name | Select the provider used for provisioning, recovery, PR epilogue working-directory calls, and release. |
542
- | `config` | `{}` | nested open table; must be empty for `git-worktree` | Adapter-specific declarative configuration passed unchanged to the selected plugin factory. |
761
+ <!-- configuration-reference:workspace -->
762
+
763
+ #### `workspace`
764
+
765
+ **TOML key:** `workspace`
766
+
767
+ - **Type:** `strict table`
768
+ - **Default:** `{} (input supplied on omission; nested defaults apply)`
769
+ - **Required:** Optional
770
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
771
+
772
+ **Description:** Workspace provider selector and provider-specific configuration.
773
+
774
+ **Constraints:** None beyond the input type.
775
+
776
+ #### `workspace.provider`
777
+
778
+ **TOML key:** `workspace.provider`
779
+
780
+ - **Type:** `string`
781
+ - **Default:** `"git-worktree"`
782
+ - **Required:** Optional
783
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
784
+
785
+ **Description:** Select the provider used for provisioning, recovery, PR epilogue working-directory calls, and release.
786
+
787
+ **Constraints:** [workspace].provider must be a nonblank provider name
788
+
789
+ #### `workspace.config`
790
+
791
+ **TOML key:** `workspace.config`
792
+
793
+ - **Type:** `table`
794
+ - **Default:** `{} (input supplied on omission)`
795
+ - **Required:** Optional
796
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
797
+
798
+ **Description:** Adapter-specific declarative configuration passed unchanged to the selected plugin factory.
799
+
800
+ **Constraints:** Entry names: any; provider = "git-worktree": [workspace.config] is not supported by the builtin "git-worktree" provider — remove it or select a plugin workspace provider
801
+
802
+ #### `workspace.config.<name>`
803
+
804
+ **TOML key:** `workspace.config.<name>`
805
+
806
+ - **Type:** `plugin-owned TOML value`
807
+ - **Default:** `omitted`
808
+ - **Required:** Required
809
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
810
+
811
+ **Description:** Plugin-owned value passed through unchanged. Builtin providers validate their own declared schema.
812
+
813
+ **Constraints:** None beyond the input type.
814
+
815
+ <!-- configuration-reference:/workspace -->
543
816
 
544
817
  <!-- config-fragment:workspace -->
545
818
  ```toml
@@ -595,20 +868,243 @@ install = "npm install --global --ignore-scripts @earendil-works/pi-coding-agent
595
868
  preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
596
869
  ```
597
870
 
598
- | Vercel field | Default | Constraints |
599
- |---|---:|---|
600
- | `image` | `vercel/sandbox/universal:latest` | `vercel/sandbox/universal`, a tag such as `:latest`, or a `@sha256:<64 hex digits>` digest |
601
- | `vcpus` | `4` | integer 1–32 (account limits may be lower) |
602
- | `timeoutSeconds` | — | required, integer 60–86400; VM/session lifetime and abrupt-orphan bound; Hobby currently permits at most 2700 |
603
- | `operationTimeoutMs` | `30000` | integer 1000–300000; deadline for each provider acknowledgement, not session lifetime |
604
- | `snapshotExpirationSeconds` | — | optional integer 300–2592000; snapshots created for this environment expire after this duration instead of the provider default (30 days); recommended 86400 (24h) |
605
- | `region` | Vercel default | nonempty region |
606
- | `failoverRegions` | `[]` | unique and different from `region` |
607
- | `environmentVariables` | `[]` | unique API-credential variable names copied into runtime and agent/check commands |
608
- | `provisioning` | `[]` | ordered strict inline tables `{ name, command }`; names and commands are nonblank and names are unique |
609
- | `runtimeProvisioning` | `{}` | open map keyed by every effective role/alternate runtime; each entry requires `install` and `preflight` |
610
- | `gitUsernameEnv` | — | optional variable name for the dedicated read-only clone username; requires `gitPasswordEnv` |
611
- | `gitPasswordEnv` | — | optional variable name for the dedicated read-only clone password; requires `gitUsernameEnv` |
871
+ <!-- configuration-reference:workspace-vercel-sandbox -->
872
+
873
+ #### `workspace.config`
874
+
875
+ **TOML key:** `workspace.config`
876
+
877
+ - **Type:** `strict table`
878
+ - **Default:** `omitted`
879
+ - **Required:** Required
880
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
881
+
882
+ **Description:** Strict Vercel workspace provisioning configuration.
883
+
884
+ **Constraints:** Environment variable and failover region lists must be unique. Failovers exclude the primary region. Provisioning names must be unique. Clone credential names must be configured together, excluded from runtime environmentVariables, and separate from Forge and Vercel credentials.
885
+
886
+ #### `workspace.config.image`
887
+
888
+ **TOML key:** `workspace.config.image`
889
+
890
+ - **Type:** `string`
891
+ - **Default:** `"vercel/sandbox/universal:latest"`
892
+ - **Required:** Optional
893
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
894
+
895
+ **Description:** Managed image used to provision the workspace.
896
+
897
+ **Constraints:** Autobuild Bun provisioning is validated only on the vercel/sandbox/universal managed image; use its bare name, a tag, or a sha256 digest containing exactly 64 lowercase hexadecimal characters
898
+
899
+ #### `workspace.config.vcpus`
900
+
901
+ **TOML key:** `workspace.config.vcpus`
902
+
903
+ - **Type:** `number`
904
+ - **Default:** `4`
905
+ - **Required:** Optional
906
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
907
+
908
+ **Description:** Virtual CPUs allocated to each workspace; provider account limits may further restrict allocation.
909
+
910
+ **Constraints:** safe integer; ≥ 1; ≤ 32
911
+
912
+ #### `workspace.config.timeoutSeconds`
913
+
914
+ **TOML key:** `workspace.config.timeoutSeconds`
915
+
916
+ - **Type:** `number`
917
+ - **Default:** `omitted`
918
+ - **Required:** Required
919
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
920
+
921
+ **Description:** VM/session lifetime in seconds and abrupt-orphan bound. Provider plan limits also apply.
922
+
923
+ **Constraints:** safe integer; ≥ 60; ≤ 86400
924
+
925
+ #### `workspace.config.operationTimeoutMs`
926
+
927
+ **TOML key:** `workspace.config.operationTimeoutMs`
928
+
929
+ - **Type:** `number`
930
+ - **Default:** `30000`
931
+ - **Required:** Optional
932
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
933
+
934
+ **Description:** Deadline in milliseconds for each provider acknowledgement, independent of session lifetime.
935
+
936
+ **Constraints:** safe integer; ≥ 1000; ≤ 300000
937
+
938
+ #### `workspace.config.snapshotExpirationSeconds`
939
+
940
+ **TOML key:** `workspace.config.snapshotExpirationSeconds`
941
+
942
+ - **Type:** `number`
943
+ - **Default:** `omitted`
944
+ - **Required:** Optional
945
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
946
+
947
+ **Description:** Snapshot expiration in seconds. Omission uses the provider expiration policy.
948
+
949
+ **Constraints:** safe integer; ≥ 300; ≤ 2592000
950
+
951
+ #### `workspace.config.region`
952
+
953
+ **TOML key:** `workspace.config.region`
954
+
955
+ - **Type:** `string`
956
+ - **Default:** `omitted`
957
+ - **Required:** Optional
958
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
959
+
960
+ **Description:** Primary region; omission uses the provider region selection.
961
+
962
+ **Constraints:** minimum length 1
963
+
964
+ #### `workspace.config.failoverRegions`
965
+
966
+ **TOML key:** `workspace.config.failoverRegions`
967
+
968
+ - **Type:** `array of string`
969
+ - **Default:** `[]`
970
+ - **Required:** Optional
971
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
972
+
973
+ **Description:** Ordered alternative regions used if the primary region cannot provision a workspace.
974
+
975
+ **Constraints:** Each item: minimum length 1
976
+
977
+ #### `workspace.config.environmentVariables`
978
+
979
+ **TOML key:** `workspace.config.environmentVariables`
980
+
981
+ - **Type:** `array of string`
982
+ - **Default:** `[]`
983
+ - **Required:** Optional
984
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
985
+
986
+ **Description:** unique API-credential variable names copied into runtime and agent/check commands
987
+
988
+ **Constraints:** Each item: matches /^[A-Za-z_][A-Za-z0-9_]*$/
989
+
990
+ #### `workspace.config.provisioning`
991
+
992
+ **TOML key:** `workspace.config.provisioning`
993
+
994
+ - **Type:** `array of strict table`
995
+ - **Default:** `[]`
996
+ - **Required:** Optional
997
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
998
+
999
+ **Description:** ordered strict inline tables `{ name, command }`; names and commands are nonblank and names are unique
1000
+
1001
+ **Constraints:** None beyond the input type.
1002
+
1003
+ #### `workspace.config.provisioning[].name`
1004
+
1005
+ **TOML key:** `workspace.config.provisioning[].name`
1006
+
1007
+ - **Type:** `string`
1008
+ - **Default:** `omitted`
1009
+ - **Required:** Required
1010
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1011
+
1012
+ **Description:** Unique provisioning step name. Must contain a non-whitespace character.
1013
+
1014
+ **Constraints:** provisioning step name must be nonblank
1015
+
1016
+ #### `workspace.config.provisioning[].command`
1017
+
1018
+ **TOML key:** `workspace.config.provisioning[].command`
1019
+
1020
+ - **Type:** `string`
1021
+ - **Default:** `omitted`
1022
+ - **Required:** Required
1023
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1024
+
1025
+ **Description:** Shell command executed in declaration order during provisioning. Must contain a non-whitespace character.
1026
+
1027
+ **Constraints:** provisioning step command must be nonblank
1028
+
1029
+ #### `workspace.config.runtimeProvisioning`
1030
+
1031
+ **TOML key:** `workspace.config.runtimeProvisioning`
1032
+
1033
+ - **Type:** `table`
1034
+ - **Default:** `{} (input supplied on omission)`
1035
+ - **Required:** Optional
1036
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1037
+
1038
+ **Description:** open map keyed by every effective role/alternate runtime; each entry requires `install` and `preflight`
1039
+
1040
+ **Constraints:** Entry names: nonblank
1041
+
1042
+ #### `workspace.config.runtimeProvisioning.<name>`
1043
+
1044
+ **TOML key:** `workspace.config.runtimeProvisioning.<name>`
1045
+
1046
+ - **Type:** `strict table`
1047
+ - **Default:** `omitted`
1048
+ - **Required:** Required
1049
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1050
+
1051
+ **Description:** Installation and preflight commands for an effective runtime. Every effective role or alternate runtime must have an entry.
1052
+
1053
+ **Constraints:** None beyond the input type.
1054
+
1055
+ #### `workspace.config.runtimeProvisioning.<name>.install`
1056
+
1057
+ **TOML key:** `workspace.config.runtimeProvisioning.<name>.install`
1058
+
1059
+ - **Type:** `string`
1060
+ - **Default:** `omitted`
1061
+ - **Required:** Required
1062
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1063
+
1064
+ **Description:** required nonblank shell command; use an immutable package version, digest, or commit
1065
+
1066
+ **Constraints:** install must be nonblank
1067
+
1068
+ #### `workspace.config.runtimeProvisioning.<name>.preflight`
1069
+
1070
+ **TOML key:** `workspace.config.runtimeProvisioning.<name>.preflight`
1071
+
1072
+ - **Type:** `string`
1073
+ - **Default:** `omitted`
1074
+ - **Required:** Required
1075
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1076
+
1077
+ **Description:** required nonblank shell command; verify the expected executable and exact version
1078
+
1079
+ **Constraints:** preflight must be nonblank
1080
+
1081
+ #### `workspace.config.gitUsernameEnv`
1082
+
1083
+ **TOML key:** `workspace.config.gitUsernameEnv`
1084
+
1085
+ - **Type:** `string`
1086
+ - **Default:** `omitted`
1087
+ - **Required:** Optional
1088
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1089
+
1090
+ **Description:** optional variable name for the dedicated read-only clone username; requires `gitPasswordEnv`
1091
+
1092
+ **Constraints:** matches /^[A-Za-z_][A-Za-z0-9_]*$/
1093
+
1094
+ #### `workspace.config.gitPasswordEnv`
1095
+
1096
+ **TOML key:** `workspace.config.gitPasswordEnv`
1097
+
1098
+ - **Type:** `string`
1099
+ - **Default:** `omitted`
1100
+ - **Required:** Optional
1101
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1102
+
1103
+ **Description:** optional variable name for the dedicated read-only clone password; requires `gitUsernameEnv`
1104
+
1105
+ **Constraints:** matches /^[A-Za-z_][A-Za-z0-9_]*$/
1106
+
1107
+ <!-- configuration-reference:/workspace-vercel-sandbox -->
612
1108
 
613
1109
  `snapshotExpirationSeconds` is a billing safety net: snapshot cleanup normally
614
1110
  purges on release, but a crash that loses the workspace before cleanup can
@@ -620,10 +1116,6 @@ purpose.
620
1116
 
621
1117
  Each `[workspace.config.runtimeProvisioning.<runtime>]` entry is strict:
622
1118
 
623
- | Runtime provisioning field | Constraints |
624
- |---|---|
625
- | `install` | required nonblank shell command; use an immutable package version, digest, or commit |
626
- | `preflight` | required nonblank shell command; verify the expected executable and exact version |
627
1119
 
628
1120
  Runtime names are not a built-in enum. Plugin registrations work with the same
629
1121
  map, for example `[workspace.config.runtimeProvisioning.opencode]` with a pinned
@@ -672,18 +1164,20 @@ checkout-only hooks such as Husky are not provisioning dependencies. A Bun
672
1164
  install or verification failure identifies the configured image and expected
673
1165
  universal-image capabilities, deletes the partial environment, and leaves no
674
1166
  readiness marker. A retry also deletes any named sandbox without that marker
675
- instead of adopting partial setup. The installed distribution's identity — package version and remote-store
676
- protocol version — is recorded in the guest's
1167
+ instead of adopting partial setup. The installed distribution's identity — package version, remote-store
1168
+ protocol version and SHA256 of the exact installed archive — is recorded in the guest's
677
1169
  `/opt/autobuild/.distribution-version` marker; a reused sandbox whose marker
678
1170
  no longer matches the identity the current system would deliver is refreshed
679
1171
  by reinstalling the archive before reuse, so an upgraded dispatcher retrofits
680
- its persistent guests (see "Guest distribution version selection and delivery"
1172
+ its persistent guests. Cached registry generations deliver their own manifest
1173
+ version’s validated GitHub release asset, resolved on first guest use and cached
1174
+ separately from the normalized host archive. Local launches need no asset fetch; source generations deliver exact packed source bytes (see "Guest distribution version selection and delivery"
681
1175
  in docs/setup.md for the release-and-upgrade delivery path and the hosted
682
1176
  store's supported client window). Immediately
683
1177
  before every build-child launch, the adapter verifies the
684
1178
  provisioned absolute Bun executable and every referenced runtime again. A
685
1179
  failure names the runtime, selecting role/alternate, stage, and provisioning
686
- field, launches no child, and instructs the operator to fix/reprovision. This
1180
+ field, launches no child, and asks you to fix/reprovision. This
687
1181
  fails closed for stale marked snapshots. Runtime installation is deliberately
688
1182
  separate from `[commands].setup`, which starts inside the runner and cannot make
689
1183
  the runtime available before the first agent session. Branch publication is
@@ -780,9 +1274,35 @@ An optional open map of repository-defined names to shell strings. Its default
780
1274
  is `{}`. `setup`, `lint`, `type-check`, and `test` are conventions, not fixed
781
1275
  schema fields.
782
1276
 
783
- | Field | Default | Constraints | Purpose |
784
- |---|---:|---|---|
785
- | `<name>` | — | nonempty key and nonempty shell string | Name a deterministic verb for setup or a check step. |
1277
+ <!-- configuration-reference:commands -->
1278
+
1279
+ #### `commands`
1280
+
1281
+ **TOML key:** `commands`
1282
+
1283
+ - **Type:** `table`
1284
+ - **Default:** `{} (input supplied on omission)`
1285
+ - **Required:** Optional
1286
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1287
+
1288
+ **Description:** Named shell commands used by setup and deterministic checks.
1289
+
1290
+ **Constraints:** Entry names: nonempty
1291
+
1292
+ #### `commands.<name>`
1293
+
1294
+ **TOML key:** `commands.<name>`
1295
+
1296
+ - **Type:** `string`
1297
+ - **Default:** `omitted`
1298
+ - **Required:** Required
1299
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1300
+
1301
+ **Description:** Named deterministic shell command.
1302
+
1303
+ **Constraints:** minimum length 1
1304
+
1305
+ <!-- configuration-reference:/commands -->
786
1306
 
787
1307
  <!-- config-fragment:commands -->
788
1308
  ```toml
@@ -839,15 +1359,191 @@ There are two strict step variants:
839
1359
  - `kind = "agent"` runs the exact configured skill, which terminates with an
840
1360
  `ab verdict` of `pass`, `fail`, or `skip`.
841
1361
 
842
- | Field | Default | Constraints | Purpose |
843
- |---|---:|---|---|
844
- | `steps` | `[]` | array of nonempty step names | Canonical execution order. |
845
- | `kind` | — | required `"check"` or `"agent"` | Select the strict step variant. |
846
- | `command` | — | required for check; nonempty key in `[commands]` | Deterministic shell verb to run. Forbidden for agent steps. |
847
- | `skill` | — | required for agent; nonempty string | Exact installed verifier skill. Forbidden for check steps. |
848
- | `paths` | omitted (unconditional) | optional nonempty array of positive repository-relative globs | Apply only when at least one changed path matches. Available to both variants. |
849
- | `afterReconcile` | repository: `true`; step: inherited | boolean | Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only. |
850
- | `always` | omitted (`false`) | optional boolean | `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants. |
1362
+ <!-- configuration-reference:verify -->
1363
+
1364
+ #### `verify`
1365
+
1366
+ **TOML key:** `verify`
1367
+
1368
+ - **Type:** `table`
1369
+ - **Default:** `{} (input supplied on omission)`
1370
+ - **Required:** Optional
1371
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1372
+
1373
+ **Description:** Ordered verification steps and applicability rules.
1374
+
1375
+ **Constraints:** None beyond the input type.
1376
+
1377
+ #### `verify.steps`
1378
+
1379
+ **TOML key:** `verify.steps`
1380
+
1381
+ - **Type:** `array of string`
1382
+ - **Default:** `[]`
1383
+ - **Required:** Optional
1384
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1385
+
1386
+ **Description:** Ordered names of the configured step tables. Every listed step must have a table and every table must be listed.
1387
+
1388
+ **Constraints:** Each item: minimum length 1
1389
+
1390
+ #### `verify.afterReconcile`
1391
+
1392
+ **TOML key:** `verify.afterReconcile`
1393
+
1394
+ - **Type:** `boolean`
1395
+ - **Default:** `true`
1396
+ - **Required:** Optional
1397
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1398
+
1399
+ **Description:** Whether verification runs after reconciliation. A step override takes precedence.
1400
+
1401
+ **Constraints:** None beyond the input type.
1402
+
1403
+ #### `verify.<step>`
1404
+
1405
+ **TOML key:** `verify.<step>`
1406
+
1407
+ - **Type:** `strict table | strict table`
1408
+ - **Default:** `omitted`
1409
+ - **Required:** Required
1410
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1411
+
1412
+ **Description:** Named step. Select exactly one strict variant using kind; command belongs only to check, skill only to agent.
1413
+
1414
+ **Constraints:** None beyond the input type.
1415
+
1416
+ #### `verify.<step>.kind` (kind = "check")
1417
+
1418
+ **TOML key:** `verify.<step>.kind`
1419
+
1420
+ - **Type:** `"check"`
1421
+ - **Default:** `omitted`
1422
+ - **Required:** Required when kind = "check"
1423
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1424
+
1425
+ **Description:** Select the strict step variant. Fields from another variant are rejected.
1426
+
1427
+ **Constraints:** None beyond the input type.
1428
+
1429
+ #### `verify.<step>.command` (kind = "check")
1430
+
1431
+ **TOML key:** `verify.<step>.command`
1432
+
1433
+ - **Type:** `string`
1434
+ - **Default:** `omitted`
1435
+ - **Required:** Required when kind = "check"
1436
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1437
+
1438
+ **Description:** Name of an existing command in [commands]; required for check steps and forbidden for agent steps.
1439
+
1440
+ **Constraints:** minimum length 1
1441
+
1442
+ #### `verify.<step>.afterReconcile` (kind = "check")
1443
+
1444
+ **TOML key:** `verify.<step>.afterReconcile`
1445
+
1446
+ - **Type:** `boolean`
1447
+ - **Default:** `omitted`
1448
+ - **Required:** Optional when kind = "check"
1449
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1450
+
1451
+ **Description:** Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only.
1452
+
1453
+ **Constraints:** None beyond the input type.
1454
+
1455
+ #### `verify.<step>.paths` (kind = "check")
1456
+
1457
+ **TOML key:** `verify.<step>.paths`
1458
+
1459
+ - **Type:** `array of string`
1460
+ - **Default:** `omitted`
1461
+ - **Required:** Optional when kind = "check"
1462
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1463
+
1464
+ **Description:** Apply only when at least one changed path matches. Available to both variants.
1465
+
1466
+ **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.
1467
+
1468
+ #### `verify.<step>.always` (kind = "check")
1469
+
1470
+ **TOML key:** `verify.<step>.always`
1471
+
1472
+ - **Type:** `boolean`
1473
+ - **Default:** `omitted`
1474
+ - **Required:** Optional when kind = "check"
1475
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1476
+
1477
+ **Description:** `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants.
1478
+
1479
+ **Constraints:** None beyond the input type.
1480
+
1481
+ #### `verify.<step>.kind` (kind = "agent")
1482
+
1483
+ **TOML key:** `verify.<step>.kind`
1484
+
1485
+ - **Type:** `"agent"`
1486
+ - **Default:** `omitted`
1487
+ - **Required:** Required when kind = "agent"
1488
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1489
+
1490
+ **Description:** Select the strict step variant. Fields from another variant are rejected.
1491
+
1492
+ **Constraints:** None beyond the input type.
1493
+
1494
+ #### `verify.<step>.skill` (kind = "agent")
1495
+
1496
+ **TOML key:** `verify.<step>.skill`
1497
+
1498
+ - **Type:** `string`
1499
+ - **Default:** `omitted`
1500
+ - **Required:** Required when kind = "agent"
1501
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1502
+
1503
+ **Description:** Exact installed skill name; required for agent steps and forbidden for check steps.
1504
+
1505
+ **Constraints:** minimum length 1
1506
+
1507
+ #### `verify.<step>.afterReconcile` (kind = "agent")
1508
+
1509
+ **TOML key:** `verify.<step>.afterReconcile`
1510
+
1511
+ - **Type:** `boolean`
1512
+ - **Default:** `omitted`
1513
+ - **Required:** Optional when kind = "agent"
1514
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1515
+
1516
+ **Description:** Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only.
1517
+
1518
+ **Constraints:** None beyond the input type.
1519
+
1520
+ #### `verify.<step>.paths` (kind = "agent")
1521
+
1522
+ **TOML key:** `verify.<step>.paths`
1523
+
1524
+ - **Type:** `array of string`
1525
+ - **Default:** `omitted`
1526
+ - **Required:** Optional when kind = "agent"
1527
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1528
+
1529
+ **Description:** Apply only when at least one changed path matches. Available to both variants.
1530
+
1531
+ **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.
1532
+
1533
+ #### `verify.<step>.always` (kind = "agent")
1534
+
1535
+ **TOML key:** `verify.<step>.always`
1536
+
1537
+ - **Type:** `boolean`
1538
+ - **Default:** `omitted`
1539
+ - **Required:** Optional when kind = "agent"
1540
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1541
+
1542
+ **Description:** `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants.
1543
+
1544
+ **Constraints:** None beyond the input type.
1545
+
1546
+ <!-- configuration-reference:/verify -->
851
1547
 
852
1548
  <!-- config-fragment:verify -->
853
1549
  ```toml
@@ -855,20 +1551,20 @@ There are two strict step variants:
855
1551
  typecheck = "bun tsc --noEmit"
856
1552
 
857
1553
  [verify]
858
- steps = ["types", "e2e"]
1554
+ steps = ["types", "acceptance"]
859
1555
 
860
1556
  [verify.types]
861
1557
  kind = "check"
862
1558
  command = "typecheck"
863
1559
  always = true
864
1560
 
865
- [verify.e2e]
1561
+ [verify.acceptance]
866
1562
  kind = "agent"
867
- skill = "verify-app-e2e" # repository-authored skill
1563
+ skill = "verify-acceptance" # repository-authored skill
868
1564
  paths = ["web/**", "src/routes/**"]
869
1565
  ```
870
1566
 
871
- Autobuild does not ship a generic agent verifier. `verify-app-e2e` above is a
1567
+ Autobuild does not ship a generic agent verifier. `verify-acceptance` above is a
872
1568
  skill authored by the repository for its own running application.
873
1569
 
874
1570
  Cross-field validation rejects:
@@ -882,6 +1578,32 @@ Cross-field validation rejects:
882
1578
  selectors are validated even though the mandatory step will not use them for
883
1579
  applicability.
884
1580
 
1581
+ In node `verify:*` context, `nodeVerification` in the manifest identifies the frozen
1582
+ `range`, `indexPath`, `contributions`, `handPushedCommits` and `unattributedCommits`. Each contribution
1583
+ has `build`, its current stored `ticket` identity, `spec: {kind: 'spec', rev}`,
1584
+ `specPath` and `commits`. The JSON index repeats this metadata and adds the
1585
+ exhaustive ordered `commits: [{sha, build?}]` mapping. Paths are workspace-relative
1586
+ and reflect scratch allocation, including legacy tracked-file collisions.
1587
+ Contribution specs normally live at `.ab/contributions/<build>/spec.md`; the index
1588
+ normally lives at `.ab/node-verification.json`. These files are marked `derived`
1589
+ in `materialized`, with their source build and revision recorded in the metadata.
1590
+
1591
+ Membership comes from build identity trailers on every commit reachable in the
1592
+ frozen parent-to-head range, including earlier cycles and merge side history.
1593
+ Specs use the current event-authorized revision, never an unsanctioned latest
1594
+ deposit or mutable ticket body. Unknown identities, ambiguous or invalid trailers,
1595
+ and missing source data fail hydration. Commits without a build trailer are
1596
+ listed as unattributed, a mechanical absence of a trailer rather than an authorization verdict.
1597
+ `handPushedCommits: [{sha, originalSha, message}]` identifies node-owned hand-pushed
1598
+ commits in the frozen range. Ownership uses the durable first-parent contribution
1599
+ boundary; inherited and merge-side history are not automatically owned. Confirmed
1600
+ rewrite aliases preserve original identity, and `message` is the full commit message.
1601
+ These messages express maintainer-authorized intent: judge quality and consistency;
1602
+ never fail these commits solely for lacking a covering spec.
1603
+ Other node changes are authorized when the node spec or the spec of the contribution
1604
+ that introduced it covers it; use the commit mapping to find that spec.
1605
+ Leaf verification context is unchanged.
1606
+
885
1607
  ### Role routing for an agent verify step
886
1608
 
887
1609
  An agent verify step selects `[roles.<step>]` by its **logical step name** —
@@ -891,13 +1613,13 @@ agent finalize post-step follows.
891
1613
  <!-- config-fragment:verify-role -->
892
1614
  ```toml
893
1615
  [verify]
894
- steps = ["e2e"]
1616
+ steps = ["acceptance"]
895
1617
 
896
- [verify.e2e]
1618
+ [verify.acceptance]
897
1619
  kind = "agent"
898
- skill = "verify-app-e2e" # repository-authored skill
1620
+ skill = "verify-acceptance" # repository-authored skill
899
1621
 
900
- [roles.e2e] # the STEP name — not "verify-app-e2e"
1622
+ [roles.acceptance] # the STEP name — not "verify-acceptance"
901
1623
  runtime = "pi"
902
1624
  model = "openai-codex/gpt-5.6-sol"
903
1625
  ```
@@ -915,7 +1637,7 @@ optional verification warranted by that plan:
915
1637
  <!-- plan-front-matter -->
916
1638
  ```toml
917
1639
  +++
918
- verifySteps = ["types", "e2e"]
1640
+ verifySteps = ["types", "acceptance"]
919
1641
  +++
920
1642
  ```
921
1643
 
@@ -979,12 +1701,100 @@ and every table must be listed.
979
1701
  Finalize has a smaller strict union. Verify-only `paths` and `always` fields
980
1702
  are errors.
981
1703
 
982
- | Field | Default | Constraints | Purpose |
983
- |---|---:|---|---|
984
- | `steps` | `[]` | array of nonempty step names | Ordered post-PR actions. |
985
- | `kind` | — | required `"check"` or `"agent"` | Select deterministic command or agent action. |
986
- | `command` | — | required for check; nonempty key in `[commands]` | Run the mapped command with no agent session. |
987
- | `skill` | — | required for agent; nonempty string | Exact installed skill; no prefix is inferred. |
1704
+ <!-- configuration-reference:finalize -->
1705
+
1706
+ #### `finalize`
1707
+
1708
+ **TOML key:** `finalize`
1709
+
1710
+ - **Type:** `table`
1711
+ - **Default:** `{} (input supplied on omission)`
1712
+ - **Required:** Optional
1713
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1714
+
1715
+ **Description:** Ordered post-PR steps. Failures are recorded without blocking the PR.
1716
+
1717
+ **Constraints:** None beyond the input type.
1718
+
1719
+ #### `finalize.steps`
1720
+
1721
+ **TOML key:** `finalize.steps`
1722
+
1723
+ - **Type:** `array of string`
1724
+ - **Default:** `[]`
1725
+ - **Required:** Optional
1726
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1727
+
1728
+ **Description:** Ordered names of the configured step tables. Every listed step must have a table and every table must be listed.
1729
+
1730
+ **Constraints:** Each item: minimum length 1
1731
+
1732
+ #### `finalize.<step>`
1733
+
1734
+ **TOML key:** `finalize.<step>`
1735
+
1736
+ - **Type:** `strict table | strict table`
1737
+ - **Default:** `omitted`
1738
+ - **Required:** Required
1739
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1740
+
1741
+ **Description:** Named step. Select exactly one strict variant using kind; command belongs only to check, skill only to agent.
1742
+
1743
+ **Constraints:** None beyond the input type.
1744
+
1745
+ #### `finalize.<step>.kind` (kind = "check")
1746
+
1747
+ **TOML key:** `finalize.<step>.kind`
1748
+
1749
+ - **Type:** `"check"`
1750
+ - **Default:** `omitted`
1751
+ - **Required:** Required when kind = "check"
1752
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1753
+
1754
+ **Description:** Select the strict step variant. Fields from another variant are rejected.
1755
+
1756
+ **Constraints:** None beyond the input type.
1757
+
1758
+ #### `finalize.<step>.command` (kind = "check")
1759
+
1760
+ **TOML key:** `finalize.<step>.command`
1761
+
1762
+ - **Type:** `string`
1763
+ - **Default:** `omitted`
1764
+ - **Required:** Required when kind = "check"
1765
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1766
+
1767
+ **Description:** Name of an existing command in [commands]; required for check steps and forbidden for agent steps.
1768
+
1769
+ **Constraints:** minimum length 1
1770
+
1771
+ #### `finalize.<step>.kind` (kind = "agent")
1772
+
1773
+ **TOML key:** `finalize.<step>.kind`
1774
+
1775
+ - **Type:** `"agent"`
1776
+ - **Default:** `omitted`
1777
+ - **Required:** Required when kind = "agent"
1778
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1779
+
1780
+ **Description:** Select the strict step variant. Fields from another variant are rejected.
1781
+
1782
+ **Constraints:** None beyond the input type.
1783
+
1784
+ #### `finalize.<step>.skill` (kind = "agent")
1785
+
1786
+ **TOML key:** `finalize.<step>.skill`
1787
+
1788
+ - **Type:** `string`
1789
+ - **Default:** `omitted`
1790
+ - **Required:** Required when kind = "agent"
1791
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the build branch; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1792
+
1793
+ **Description:** Exact installed skill name; required for agent steps and forbidden for check steps.
1794
+
1795
+ **Constraints:** minimum length 1
1796
+
1797
+ <!-- configuration-reference:/finalize -->
988
1798
 
989
1799
  <!-- config-fragment:finalize -->
990
1800
  ```toml
@@ -1009,60 +1819,211 @@ same rule an agent verify step follows, so one convention covers both:
1009
1819
  <!-- config-fragment:finalize-role -->
1010
1820
  ```toml
1011
1821
  [verify]
1012
- steps = ["e2e"]
1822
+ steps = ["acceptance"]
1823
+
1824
+ [verify.acceptance]
1825
+ kind = "agent"
1826
+ skill = "verify-acceptance" # repository-authored skill
1827
+
1828
+ [finalize]
1829
+ steps = ["release-notes"]
1830
+
1831
+ [finalize.release-notes]
1832
+ kind = "agent"
1833
+ skill = "ab-release-notes"
1834
+
1835
+ [roles.acceptance] # verify STEP name — not "verify-acceptance"
1836
+ runtime = "pi"
1837
+
1838
+ [roles.release-notes] # finalize step name
1839
+ runtime = "pi"
1840
+ ```
1841
+
1842
+ For an agent *verify* step, the step's configured skill name remains a
1843
+ deprecated alias for existing configurations and will be removed in a future
1844
+ release. Finalize has never had such an alias.
1845
+
1846
+ Both
1847
+ kinds are failure-tolerant: nonzero commands, launch/execution errors, and
1848
+ structured agent failures record `ok = false` plus a follow-up observation,
1849
+ then the sequence continues. A post-step cannot turn an otherwise green build
1850
+ red.
1851
+
1852
+ A content-producing step selects and commits only its intended files locally
1853
+ and must leave a clean worktree. The runner proves the last published head is
1854
+ an ancestor, then performs a regular non-force push through the Forge port to
1855
+ extend the open PR branch. Agents never push. An unchanged `HEAD` creates and
1856
+ pushes no commit. Dirty output, rewritten history, Git errors, and publication
1857
+ failures become failure-tolerant follow-up observations.
1858
+
1859
+ ## `[roles]`
1860
+
1861
+ An open map from a nonempty role name to three primary agent axes, one
1862
+ wall-clock session budget, and an ordered alternate list. All five live fields
1863
+ inherit independently. The reserved
1864
+ `default` entry is required to name a runtime, is the raw base for every other
1865
+ role, and is never dispatched itself. Missing it fails eagerly before any
1866
+ session starts, with a copyable table and all registered runtime names.
1867
+
1868
+ <!-- configuration-reference:roles -->
1869
+
1870
+ #### `roles`
1871
+
1872
+ **TOML key:** `roles`
1873
+
1874
+ - **Type:** `table`
1875
+ - **Default:** `{} (input supplied on omission)`
1876
+ - **Required:** Optional
1877
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1878
+
1879
+ **Description:** Named agent roles. The reserved default role provides inherited runtime axes.
1880
+
1881
+ **Constraints:** Entry names: nonempty
1882
+
1883
+ #### `roles.<name>`
1884
+
1885
+ **TOML key:** `roles.<name>`
1886
+
1887
+ - **Type:** `strict table`
1888
+ - **Default:** `omitted`
1889
+ - **Required:** Required
1890
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1891
+
1892
+ **Description:** Named role inheriting each omitted axis from roles.default. The default role must name a registered runtime.
1893
+
1894
+ **Constraints:** None beyond the input type.
1895
+
1896
+ #### `roles.<name>.runtime`
1897
+
1898
+ **TOML key:** `roles.<name>.runtime`
1899
+
1900
+ - **Type:** `string`
1901
+ - **Default:** `omitted`
1902
+ - **Required:** Optional
1903
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1904
+
1905
+ **Description:** Select an agent adapter.
1906
+
1907
+ **Constraints:** minimum length 1; Required on roles.default by runtime resolution; other roles inherit it. Must name a registered runtime.
1908
+
1909
+ #### `roles.<name>.model`
1910
+
1911
+ **TOML key:** `roles.<name>.model`
1912
+
1913
+ - **Type:** `string`
1914
+ - **Default:** `omitted`
1915
+ - **Required:** Optional
1916
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1917
+
1918
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
1919
+
1920
+ **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
1921
+
1922
+ #### `roles.<name>.args`
1923
+
1924
+ **TOML key:** `roles.<name>.args`
1925
+
1926
+ - **Type:** `array of string`
1927
+ - **Default:** `omitted`
1928
+ - **Required:** Optional
1929
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1930
+
1931
+ **Description:** Ordered extra CLI argv tokens applied to every phase and tool-free one-shot invocation. A supplied list replaces, rather than unions with, the inherited list.
1932
+
1933
+ **Constraints:** Omission inherits the base list, otherwise resolves to an empty list; an explicit list replaces it.; Each item: minimum length 1
1934
+
1935
+ #### `roles.<name>.extensions`
1936
+
1937
+ **TOML key:** `roles.<name>.extensions`
1938
+
1939
+ - **Type:** `array of string`
1940
+ - **Default:** `omitted`
1941
+ - **Required:** Optional
1942
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1943
+
1944
+ **Description:** Compatibility-only field. Dispatch warns for each declaring role; migrate explicit runtime options to `args`.
1945
+
1946
+ **Constraints:** Each item: minimum length 1
1947
+
1948
+ #### `roles.<name>.sessionBudgetSeconds`
1949
+
1950
+ **TOML key:** `roles.<name>.sessionBudgetSeconds`
1951
+
1952
+ - **Type:** `number`
1953
+ - **Default:** `omitted`
1954
+ - **Required:** Optional
1955
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1956
+
1957
+ **Description:** Active-time budget for each build phase session routed through this logical role. Suspended intervals are excluded; native continuation retains the original ceiling and accumulated active time. One budget covers the primary and every alternate target.
1958
+
1959
+ **Constraints:** safe integer; > 0; Omission inherits roles.default.sessionBudgetSeconds, otherwise policy.sessionBudgetSeconds.
1960
+
1961
+ #### `roles.<name>.alternates`
1962
+
1963
+ **TOML key:** `roles.<name>.alternates`
1964
+
1965
+ - **Type:** `array of strict table`
1966
+ - **Default:** `omitted`
1967
+ - **Required:** Optional
1968
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1969
+
1970
+ **Description:** Failure-triggered execution targets (provider failures and a runtime whose CLI is not installed). A role's list replaces the inherited list wholesale; each entry overlays that role's effective primary axes. `extensions` is accepted there only as the same deprecated no-op.
1971
+
1972
+ **Constraints:** Omission inherits the base alternate list, otherwise resolves to an empty list; each alternate overlays the resolved primary axes.
1973
+
1974
+ #### `roles.<name>.alternates[].runtime`
1975
+
1976
+ **TOML key:** `roles.<name>.alternates[].runtime`
1977
+
1978
+ - **Type:** `string`
1979
+ - **Default:** `omitted`
1980
+ - **Required:** Optional
1981
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1982
+
1983
+ **Description:** Select an agent adapter.
1984
+
1985
+ **Constraints:** minimum length 1; Required on roles.default by runtime resolution; other roles inherit it. Must name a registered runtime.
1986
+
1987
+ #### `roles.<name>.alternates[].model`
1988
+
1989
+ **TOML key:** `roles.<name>.alternates[].model`
1990
+
1991
+ - **Type:** `string`
1992
+ - **Default:** `omitted`
1993
+ - **Required:** Optional
1994
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1013
1995
 
1014
- [verify.e2e]
1015
- kind = "agent"
1016
- skill = "verify-app-e2e" # repository-authored skill
1996
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
1017
1997
 
1018
- [finalize]
1019
- steps = ["release-notes"]
1998
+ **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
1020
1999
 
1021
- [finalize.release-notes]
1022
- kind = "agent"
1023
- skill = "ab-release-notes"
2000
+ #### `roles.<name>.alternates[].args`
1024
2001
 
1025
- [roles.e2e] # verify STEP name — not "verify-app-e2e"
1026
- runtime = "pi"
2002
+ **TOML key:** `roles.<name>.alternates[].args`
1027
2003
 
1028
- [roles.release-notes] # finalize step name
1029
- runtime = "pi"
1030
- ```
2004
+ - **Type:** `array of string`
2005
+ - **Default:** `omitted`
2006
+ - **Required:** Optional
2007
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1031
2008
 
1032
- For an agent *verify* step, the step's configured skill name remains a
1033
- deprecated alias for existing configurations and will be removed in a future
1034
- release. Finalize has never had such an alias.
2009
+ **Description:** Ordered extra CLI argv tokens applied to every phase and tool-free one-shot invocation. A supplied list replaces, rather than unions with, the inherited list.
1035
2010
 
1036
- Both
1037
- kinds are failure-tolerant: nonzero commands, launch/execution errors, and
1038
- structured agent failures record `ok = false` plus a follow-up observation,
1039
- then the sequence continues. A post-step cannot turn an otherwise green build
1040
- red.
2011
+ **Constraints:** Each item: minimum length 1
1041
2012
 
1042
- A content-producing step selects and commits only its intended files locally
1043
- and must leave a clean worktree. The runner proves the last published head is
1044
- an ancestor, then performs a regular non-force push through the Forge port to
1045
- extend the open PR branch. Agents never push. An unchanged `HEAD` creates and
1046
- pushes no commit. Dirty output, rewritten history, Git errors, and publication
1047
- failures become failure-tolerant follow-up observations.
2013
+ #### `roles.<name>.alternates[].extensions`
1048
2014
 
1049
- ## `[roles]`
2015
+ **TOML key:** `roles.<name>.alternates[].extensions`
1050
2016
 
1051
- An open map from a nonempty role name to three primary agent axes, one
1052
- wall-clock session budget, and an ordered alternate list. All five live fields
1053
- inherit independently. The reserved
1054
- `default` entry is required to name a runtime, is the raw base for every other
1055
- role, and is never dispatched itself. Missing it fails eagerly before any
1056
- session starts, with a copyable table and all registered runtime names.
2017
+ - **Type:** `array of string`
2018
+ - **Default:** `omitted`
2019
+ - **Required:** Optional
2020
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
1057
2021
 
1058
- | Field | Default | Constraints | Purpose |
1059
- |---|---:|---|---|
1060
- | `runtime` | inherited from required `[roles.default].runtime` | required on `default`; optional nonempty registered runtime name on children | Select an agent adapter. |
1061
- | `model` | inherited; otherwise selected runtime's own default | optional nonempty model id compatible with the resolved runtime | Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified. |
1062
- | `args` | inherited; otherwise `[]` | optional array of nonempty strings; `[]` allowed | Ordered extra CLI argv tokens applied to every phase and tool-free one-shot invocation. A supplied list replaces, rather than unions with, the inherited list. |
1063
- | `extensions` | no effect | deprecated optional array of nonempty strings | Compatibility-only field. Dispatch warns for each declaring role; migrate explicit runtime options to `args`. |
1064
- | `sessionBudgetSeconds` | inherited; otherwise `[policy].sessionBudgetSeconds` | optional positive integer | Active-time budget for each build phase session routed through this logical role. Suspended intervals are excluded; native continuation retains the original ceiling and accumulated active time. One budget covers the primary and every alternate target. |
1065
- | `alternates` | inherited; otherwise `[]` | optional ordered array of strict `{ runtime?, model?, args?, extensions? }` entries; `[]` allowed | Failure-triggered execution targets (provider failures and a runtime whose CLI is not installed). A role's list replaces the inherited list wholesale; each entry overlays that role's effective primary axes. `extensions` is accepted there only as the same deprecated no-op. |
2022
+ **Description:** Compatibility-only field. Dispatch warns for each declaring role; migrate explicit runtime options to `args`.
2023
+
2024
+ **Constraints:** Each item: minimum length 1
2025
+
2026
+ <!-- configuration-reference:/roles -->
1066
2027
 
1067
2028
  <!-- config-fragment:roles -->
1068
2029
  ```toml
@@ -1124,7 +2085,7 @@ ids. Pi ids remain provider-qualified—including the independent
1124
2085
  `--no-extensions` to disable ambient package discovery and loads the Autobuild
1125
2086
  bridge explicitly. Repeatable `--extension <path>` tokens in `args` supplement
1126
2087
  that setup and expose every tool registered by that explicitly loaded extension;
1127
- without them, no operator-installed extension loads. A plugin may declare
2088
+ without them, no user-installed extension loads. A plugin may declare
1128
2089
  optional tool-free one-shot completion for `slug` and `upgrade`; absence keeps
1129
2090
  each caller's existing fail-safe behavior. Role `args` apply to those one-shots
1130
2091
  too. Effective arguments are recorded on session-start facts.
@@ -1185,7 +2146,7 @@ alternate because it is kernel policy, not a provider failure. The ordinary
1185
2146
  phase-attempt guard retries from the primary and raises an answerable policy
1186
2147
  escalation when exhausted. Operator cancellation does not disable the captured
1187
2148
  deadline: a cooperative adapter still returns promptly, while an adapter that
1188
- ignores cancellation is released when the deadline arrives. If operator abort
2149
+ ignores cancellation is released when the deadline arrives. If your agent aborts
1189
2150
  arrived first, that release stays an abort control outcome, starts no alternate,
1190
2151
  and records no `phase.failed`. A typed terminal deposited before either boundary
1191
2152
  remains authoritative. Agent finalize post-step expiry instead records that
@@ -1198,20 +2159,217 @@ this setting.
1198
2159
  Optional. Every field receives its own default. All are positive integers except
1199
2160
  `harvestMaxDrift`, which is nonnegative so zero can disable that trigger.
1200
2161
 
1201
- | Field | Default | Constraints | Purpose |
1202
- |---|---:|---|---|
1203
- | `sessionBudgetSeconds` | `3600` | positive integer | Active-time bound for each build agent session unless its logical role overrides it. Native continuation retains the original ceiling; suspension does not consume it. |
1204
- | `stallRounds` | `3` | positive integer | Escalate when the same review finding survives this many rounds. |
1205
- | `maxVerifyAttempts` | `3` | positive integer | Bound failure-driven verify → implement retry cycles. |
1206
- | `maxDispatchAttempts` | `3` | positive integer | Bound consecutive dispatch failures before human escalation. |
1207
- | `maxSetupAttempts` | `3` | positive integer | Bound consecutive workspace setup failures before human escalation. |
1208
- | `maxInfrastructureAttempts` | `3` | positive integer | Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a human `retry` answer re-arms this budget. |
1209
- | `maxReconcileAttempts` | `3` | positive integer | Bound completed reconciles that leave the PR conflicted against an unchanged authoritative base. Moving-base races do not consume the bound. |
1210
- | `maxReviewRounds` | `6` | positive integer | Default bound for each plan/review and implement/review convergence loop. An operator may replace it for one parked build loop and current spec revision with `ab answer --review-round-ceiling`; other builds are unaffected. |
1211
- | `harvestThreshold` | `5` | positive integer | New unclaimed observation occurrences needed to start one harvest run. |
1212
- | `janitorFailureAttentionSeconds` | `600` | positive integer | Consecutive janitor failure duration before build attention. |
1213
- | `janitorBackoffMaxSeconds` | `300` | positive integer | Cap on exponential janitor retry delay, starting at 30 seconds. |
1214
- | `harvestMaxDrift` | `3` | nonnegative integer | Other builds merged after the oldest unclaimed observation needed to start a run; `0` disables drift. |
2162
+ <!-- configuration-reference:policy -->
2163
+
2164
+ #### `policy`
2165
+
2166
+ **TOML key:** `policy`
2167
+
2168
+ - **Type:** `strict table`
2169
+ - **Default:** `{} (input supplied on omission; nested defaults apply)`
2170
+ - **Required:** Optional
2171
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2172
+
2173
+ **Description:** Lifecycle budgets, retries, convergence and harvest limits.
2174
+
2175
+ **Constraints:** None beyond the input type.
2176
+
2177
+ #### `policy.upgradeDrainSeconds`
2178
+
2179
+ **TOML key:** `policy.upgradeDrainSeconds`
2180
+
2181
+ - **Type:** `number`
2182
+ - **Default:** `900`
2183
+ - **Required:** Optional
2184
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2185
+
2186
+ **Description:** Deadline for a retiring generation, relative to handoff start; hot-reloaded during drain.
2187
+
2188
+ **Constraints:** safe integer; > 0
2189
+
2190
+ #### `policy.sessionBudgetSeconds`
2191
+
2192
+ **TOML key:** `policy.sessionBudgetSeconds`
2193
+
2194
+ - **Type:** `number`
2195
+ - **Default:** `3600`
2196
+ - **Required:** Optional
2197
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2198
+
2199
+ **Description:** Active-time bound for each build agent session unless its logical role overrides it. Native continuation retains the original ceiling; suspension does not consume it.
2200
+
2201
+ **Constraints:** safe integer; > 0
2202
+
2203
+ #### `policy.stallRounds`
2204
+
2205
+ **TOML key:** `policy.stallRounds`
2206
+
2207
+ - **Type:** `number`
2208
+ - **Default:** `3`
2209
+ - **Required:** Optional
2210
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2211
+
2212
+ **Description:** Escalate when the same review finding survives this many rounds.
2213
+
2214
+ **Constraints:** safe integer; > 0
2215
+
2216
+ #### `policy.maxVerifyAttempts`
2217
+
2218
+ **TOML key:** `policy.maxVerifyAttempts`
2219
+
2220
+ - **Type:** `number`
2221
+ - **Default:** `3`
2222
+ - **Required:** Optional
2223
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2224
+
2225
+ **Description:** Bound failure-driven verify → implement retry cycles.
2226
+
2227
+ **Constraints:** safe integer; > 0
2228
+
2229
+ #### `policy.maxDispatchAttempts`
2230
+
2231
+ **TOML key:** `policy.maxDispatchAttempts`
2232
+
2233
+ - **Type:** `number`
2234
+ - **Default:** `3`
2235
+ - **Required:** Optional
2236
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2237
+
2238
+ **Description:** Bound consecutive dispatch failures before human escalation.
2239
+
2240
+ **Constraints:** safe integer; > 0
2241
+
2242
+ #### `policy.maxSetupAttempts`
2243
+
2244
+ **TOML key:** `policy.maxSetupAttempts`
2245
+
2246
+ - **Type:** `number`
2247
+ - **Default:** `3`
2248
+ - **Required:** Optional
2249
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2250
+
2251
+ **Description:** Bound consecutive workspace setup failures before human escalation.
2252
+
2253
+ **Constraints:** safe integer; > 0
2254
+
2255
+ #### `policy.maxInfrastructureAttempts`
2256
+
2257
+ **TOML key:** `policy.maxInfrastructureAttempts`
2258
+
2259
+ - **Type:** `number`
2260
+ - **Default:** `3`
2261
+ - **Required:** Optional
2262
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2263
+
2264
+ **Description:** Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a human `retry` answer re-arms this budget.
2265
+
2266
+ **Constraints:** safe integer; > 0
2267
+
2268
+ #### `policy.maxReconcileAttempts`
2269
+
2270
+ **TOML key:** `policy.maxReconcileAttempts`
2271
+
2272
+ - **Type:** `number`
2273
+ - **Default:** `3`
2274
+ - **Required:** Optional
2275
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2276
+
2277
+ **Description:** Bound completed reconciles that leave the PR conflicted against an unchanged authoritative base. Moving-base races do not consume the bound.
2278
+
2279
+ **Constraints:** safe integer; > 0
2280
+
2281
+ #### `policy.maxReviewRounds`
2282
+
2283
+ **TOML key:** `policy.maxReviewRounds`
2284
+
2285
+ - **Type:** `number`
2286
+ - **Default:** `6`
2287
+ - **Required:** Optional
2288
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2289
+
2290
+ **Description:** Default bound for each plan/review and implement/review convergence loop. Your agent may replace it for one parked build loop and current spec revision with `ab answer --review-round-ceiling`; other builds are unaffected.
2291
+
2292
+ **Constraints:** safe integer; > 0
2293
+
2294
+ #### `policy.harvestThreshold`
2295
+
2296
+ **TOML key:** `policy.harvestThreshold`
2297
+
2298
+ - **Type:** `number`
2299
+ - **Default:** `5`
2300
+ - **Required:** Optional
2301
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2302
+
2303
+ **Description:** New unclaimed observation occurrences needed to start one harvest run.
2304
+
2305
+ **Constraints:** safe integer; > 0
2306
+
2307
+ #### `policy.janitorFailureAttentionSeconds`
2308
+
2309
+ **TOML key:** `policy.janitorFailureAttentionSeconds`
2310
+
2311
+ - **Type:** `number`
2312
+ - **Default:** `600`
2313
+ - **Required:** Optional
2314
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2315
+
2316
+ **Description:** Consecutive janitor failure duration before build attention.
2317
+
2318
+ **Constraints:** safe integer; > 0
2319
+
2320
+ #### `policy.nodeIdleAfterSeconds`
2321
+
2322
+ **TOML key:** `policy.nodeIdleAfterSeconds`
2323
+
2324
+ - **Type:** `number`
2325
+ - **Default:** `600`
2326
+ - **Required:** Optional
2327
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2328
+
2329
+ **Description:** Quiet period before opened integration nodes enter idle polling.
2330
+
2331
+ **Constraints:** safe integer; > 0
2332
+
2333
+ #### `policy.nodeIdlePollSeconds`
2334
+
2335
+ **TOML key:** `policy.nodeIdlePollSeconds`
2336
+
2337
+ - **Type:** `number`
2338
+ - **Default:** `120`
2339
+ - **Required:** Optional
2340
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2341
+
2342
+ **Description:** Interval between idle node checks; durable activity wakes the next tick.
2343
+
2344
+ **Constraints:** safe integer; > 0
2345
+
2346
+ #### `policy.janitorBackoffMaxSeconds`
2347
+
2348
+ **TOML key:** `policy.janitorBackoffMaxSeconds`
2349
+
2350
+ - **Type:** `number`
2351
+ - **Default:** `300`
2352
+ - **Required:** Optional
2353
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2354
+
2355
+ **Description:** Cap on exponential janitor retry delay, starting at 30 seconds.
2356
+
2357
+ **Constraints:** safe integer; > 0
2358
+
2359
+ #### `policy.harvestMaxDrift`
2360
+
2361
+ **TOML key:** `policy.harvestMaxDrift`
2362
+
2363
+ - **Type:** `number`
2364
+ - **Default:** `3`
2365
+ - **Required:** Optional
2366
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2367
+
2368
+ **Description:** Other builds merged after the oldest unclaimed observation needed to start a run; `0` disables drift.
2369
+
2370
+ **Constraints:** safe integer; ≥ 0
2371
+
2372
+ <!-- configuration-reference:/policy -->
1215
2373
 
1216
2374
  Dispatch failures share a `[policy].maxDispatchAttempts` budget (default 3) across
1217
2375
  create, workspace, spec, comment, and launch stages. Exhaustion raises one
@@ -1302,20 +2460,178 @@ Required in practice: `readyState` deliberately has no default, so omitting the
1302
2460
  table fails at `tickets.readyState` rather than allowing tickets from every
1303
2461
  state. Within a present table, `source` is required; hosted tickets default `readyState` to `ready`. Other sources require it.
1304
2462
 
1305
- | Field | Default | Constraints | Purpose |
1306
- |---|---:|---|---|
1307
- | `source` | — | required nonblank builtin or plugin registration name | Select the ticket adapter after configured plugins load. |
1308
- | `readyLabels` | source-aware | optional array of nonempty strings; `[]` allowed | Require every listed label in addition to the state gate. |
1309
- | `url` | selected build service | HTTPS service URL; HTTP allowed on loopback; no credentials, query or fragment; hosted only | Ticket service independent of [store] url and AB_STORE. Required with local builds. |
1310
- | `readyState` | hosted: `"ready"` | nonblank string; required for other sources | The one workflow state eligible for dispatch. |
1311
- | `readyAssignee` | — | optional; `"me"` or an email address; Linear only (rejected for file, hosted, and plugin sources) | Require the ticket to be assigned to one Linear user, in addition to the state and label gates. |
1312
- | `teamKey` | — | required for Linear and hosted; forbidden for file; optional for plugins | Backend team key such as `"ENG"`, or an existing plugin config field. |
1313
- | `claimedState` | `"In Progress"` for direct Linear; `"doing"` for hosted | optional nonempty string; forbidden for file; allowed for plugins | Workflow state entered when a ticket is claimed. |
1314
- | `doneState` | hosted: `"done"` | optional nonblank string; hosted | Project completion state and merged-ticket transition. |
1315
- | `createState` | provider default | optional nonempty string | Default state for newly created tickets when `ab ticket create` omits `--state`. |
1316
- | `triageState` | Linear: `"Backlog"`; hosted: `"triage"`; file/plugin: `"Triage"` | optional nonempty string | State used for spec-gate bounces, aborts, and closed-unmerged PRs. |
1317
- | `proposalState` | the resolved `triageState` | optional nonempty string | State harvest files its synthesized proposals into. Setting it to `readyState` waives the human grooming gate, not dependency eligibility. |
1318
- | `dir` | file: selected local state root's `tickets/`; plugin: omitted | optional nonempty path; forbidden for Linear; allowed for plugins | Root containing file-source state directories, or an existing plugin config field. Relative file paths resolve from the repository. |
2463
+ <!-- configuration-reference:tickets -->
2464
+
2465
+ #### `tickets`
2466
+
2467
+ **TOML key:** `tickets`
2468
+
2469
+ - **Type:** `strict table`
2470
+ - **Default:** `{"source":"file"} (input supplied on omission; nested defaults apply)`
2471
+ - **Required:** Optional
2472
+ - **Reload:** Mixed: see individual fields for dispatcher reload behavior. A running invocation keeps its captured values.
2473
+
2474
+ **Description:** Ticket source and lifecycle vocabulary. Omitting the table supplies source=file but still requires readyState.
2475
+
2476
+ **Constraints:** readyState is required except for hosted, whose omitted value resolves to ready. url is forbidden for file and linear; hosted URLs must be absolute HTTPS (loopback HTTP allowed), without credentials, query or fragment, and are normalized.
2477
+
2478
+ #### `tickets.url`
2479
+
2480
+ **TOML key:** `tickets.url`
2481
+
2482
+ - **Type:** `string`
2483
+ - **Default:** `omitted`
2484
+ - **Required:** Optional
2485
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2486
+
2487
+ **Description:** Ticket service independent of [store] url and AB_STORE. Required with local builds.
2488
+
2489
+ **Constraints:** Forbidden for file and linear. Hosted omission uses the selected remote BuildStore URL; with a local BuildStore an explicit hosted URL is required.
2490
+
2491
+ #### `tickets.source`
2492
+
2493
+ **TOML key:** `tickets.source`
2494
+
2495
+ - **Type:** `string`
2496
+ - **Default:** `omitted`
2497
+ - **Required:** Required
2498
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2499
+
2500
+ **Description:** Select the ticket adapter after configured plugins load.
2501
+
2502
+ **Constraints:** [tickets].source must be a nonblank builtin or plugin ticket source name
2503
+
2504
+ #### `tickets.readyLabels`
2505
+
2506
+ **TOML key:** `tickets.readyLabels`
2507
+
2508
+ - **Type:** `array of string`
2509
+ - **Default:** `omitted`
2510
+ - **Required:** Optional
2511
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2512
+
2513
+ **Description:** Require every listed label in addition to the state gate.
2514
+
2515
+ **Constraints:** Omission uses source readiness defaults (Linear: autobuild label; file: none). Explicit [] disables label gating.; Each item: minimum length 1
2516
+
2517
+ #### `tickets.readyState`
2518
+
2519
+ **TOML key:** `tickets.readyState`
2520
+
2521
+ - **Type:** `string`
2522
+ - **Default:** `omitted`
2523
+ - **Required:** Required unless source = "hosted"; hosted omission resolves to "ready".
2524
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2525
+
2526
+ **Description:** The one workflow state eligible for dispatch.
2527
+
2528
+ **Constraints:** [tickets].readyState must not be blank — name the one workflow state a ticket must sit in to be dispatched (e.g. "ready").
2529
+
2530
+ #### `tickets.readyAssignee`
2531
+
2532
+ **TOML key:** `tickets.readyAssignee`
2533
+
2534
+ - **Type:** `string`
2535
+ - **Default:** `omitted`
2536
+ - **Required:** Optional
2537
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2538
+
2539
+ **Description:** Require the ticket to be assigned to one Linear user, in addition to the state and label gates.
2540
+
2541
+ **Constraints:** [tickets].readyAssignee must be "me" (the owner of the API key) or a user email address (e.g. "person@example.com"); Allowed only for linear.
2542
+
2543
+ #### `tickets.teamKey`
2544
+
2545
+ **TOML key:** `tickets.teamKey`
2546
+
2547
+ - **Type:** `string`
2548
+ - **Default:** `omitted`
2549
+ - **Required:** Required for linear and hosted; forbidden for file; optional for plugins.
2550
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2551
+
2552
+ **Description:** Backend team key such as `"ENG"`, or an existing plugin config field.
2553
+
2554
+ **Constraints:** minimum length 1
2555
+
2556
+ #### `tickets.claimedState`
2557
+
2558
+ **TOML key:** `tickets.claimedState`
2559
+
2560
+ - **Type:** `string`
2561
+ - **Default:** `omitted`
2562
+ - **Required:** Optional
2563
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2564
+
2565
+ **Description:** Workflow state entered when a ticket is claimed.
2566
+
2567
+ **Constraints:** minimum length 1; state must be nonblank; Forbidden for file. Resolution uses In Progress for direct Linear, doing for hosted.
2568
+
2569
+ #### `tickets.doneState`
2570
+
2571
+ **TOML key:** `tickets.doneState`
2572
+
2573
+ - **Type:** `string`
2574
+ - **Default:** `omitted`
2575
+ - **Required:** Optional
2576
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2577
+
2578
+ **Description:** Project completion state and merged-ticket transition.
2579
+
2580
+ **Constraints:** minimum length 1; state must be nonblank; Hosted resolution uses done when omitted.
2581
+
2582
+ #### `tickets.createState`
2583
+
2584
+ **TOML key:** `tickets.createState`
2585
+
2586
+ - **Type:** `string`
2587
+ - **Default:** `omitted`
2588
+ - **Required:** Optional
2589
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2590
+
2591
+ **Description:** Default state for newly created tickets when `ab ticket create` omits `--state`.
2592
+
2593
+ **Constraints:** minimum length 1; state must be nonblank; Omission uses the source creation state (Linear team default; file Triage).
2594
+
2595
+ #### `tickets.triageState`
2596
+
2597
+ **TOML key:** `tickets.triageState`
2598
+
2599
+ - **Type:** `string`
2600
+ - **Default:** `omitted`
2601
+ - **Required:** Optional
2602
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2603
+
2604
+ **Description:** State used for spec-gate bounces, aborts, and closed-unmerged PRs.
2605
+
2606
+ **Constraints:** minimum length 1; state must be nonblank; Omission resolves to Backlog for Linear, triage for hosted, Triage for file/plugin sources.
2607
+
2608
+ #### `tickets.proposalState`
2609
+
2610
+ **TOML key:** `tickets.proposalState`
2611
+
2612
+ - **Type:** `string`
2613
+ - **Default:** `omitted`
2614
+ - **Required:** Optional
2615
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2616
+
2617
+ **Description:** State harvest files its synthesized proposals into. Setting it to `readyState` waives the human grooming gate, not dependency eligibility.
2618
+
2619
+ **Constraints:** minimum length 1; state must be nonblank; Omission uses the resolved triageState.
2620
+
2621
+ #### `tickets.dir`
2622
+
2623
+ **TOML key:** `tickets.dir`
2624
+
2625
+ - **Type:** `string`
2626
+ - **Default:** `omitted`
2627
+ - **Required:** Optional
2628
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2629
+
2630
+ **Description:** Root containing file-source state directories, or an existing plugin config field. Relative file paths resolve from the repository.
2631
+
2632
+ **Constraints:** minimum length 1; Forbidden for linear and hosted. File omission resolves to the selected local state root tickets directory; plugin omission remains omitted.
2633
+
2634
+ <!-- configuration-reference:/tickets -->
1319
2635
 
1320
2636
  `readyAssignee = "me"` resolves to the Linear user who owns `LINEAR_API_KEY`,
1321
2637
  so one committed value makes each person's local dispatcher take only the work
@@ -1472,27 +2788,135 @@ Set `COMPANY_TICKET_TOKEN` in the environment, never in this table.
1472
2788
 
1473
2789
  ## `[orchestrator]`
1474
2790
 
1475
- Gates the operator-agent feature (AUT-340, AUT-342): the per-operator sandbox
2791
+ Gates the operator-agent feature (AUT-340, AUT-342): the per-user sandbox
1476
2792
  environments the `sandbox.*` registry tools drive, and — when the embedded
1477
- orchestrator is enabled — the turn runner that answers operator sessions and
2793
+ orchestrator is enabled — the turn runner that answers your sessions and
1478
2794
  wakes on build events. The table is closed to unknown keys and
1479
2795
  restart-classified as a whole.
1480
2796
 
1481
- | Field | Default | Constraints | Purpose |
1482
- |---|---:|---|---|
1483
- | `enabled` | `false` | boolean | Master gate. With the table absent or `enabled = false`, the sandbox tools are absent from every binding, no environment is ever provisioned, and no dispatcher tick or message post ever runs orchestrator code — a local dispatcher is inert even when enabled, because the turn runner exists only in the hosted deployment. |
1484
- | `model` | — | nonblank string, required when `enabled = true` | Provider-qualified model string for the turn runner, in the same vocabulary as `[roles]` model strings (a leading `vercel-ai-gateway/` prefix is accepted and stripped). Resolved through the deployment's gateway credential. |
1485
- | `invocationBudgetSeconds` | `240` | positive integer, clamped to 300 | Wall-clock budget for one turn invocation. A larger value is clamped — not rejected — to the 300-second hosted function limit the runner executes under (`ORCHESTRATOR_ROUTE_LIMIT_SECONDS`, the same number the operator route pins as `maxDuration`). |
1486
- | `approvals` | see below | array of `tool` or `tool:qualifier` strings | Registry tool names whose calls suspend a turn until the operator answers. Default: `["builds.control:abort", "builds.control:discard", "builds.answer:revise-spec", "sandbox.publish", "tickets.move:ready"]`. Empty (`[]`) means none — autonomous operation. An entry naming an absent or unknown tool is **inert by design**, never a config error: the list stays stable while the registry grows, and a tool's removal cannot break parsing. A `tool:qualifier` entry applies to the named discriminator value only (for example `tickets.move:ready` approves moving a ticket to `ready`); for a tool without a discriminator, only the bare form matches. |
1487
- | `wake` | inherits the default | array of event-type globs | The attention events a **new** session wakes for. Kept schema-optional so absent (inherit the default attention set — the build events `ab watch` filters on by default plus the repository-journal events `ab watch` follows) and `[]` (never wake; message-only) stay distinct. Each glob must match at least one build or repository-journal event type, validated with the same compiler `ab watch` uses. Existing sessions never retroactively inherit; an explicit `PUT .../wake` always wins. |
1488
- | `sandbox` | — | strict subtable; absence reads as the defaults | Sandbox behavior knobs. |
2797
+ <!-- configuration-reference:orchestrator -->
2798
+
2799
+ #### `orchestrator`
2800
+
2801
+ **TOML key:** `orchestrator`
2802
+
2803
+ - **Type:** `strict table`
2804
+ - **Default:** `{} (input supplied on omission; nested defaults apply)`
2805
+ - **Required:** Optional
2806
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2807
+
2808
+ **Description:** Operator-agent sandbox settings. This table does not start or host an operator agent.
2809
+
2810
+ **Constraints:** None beyond the input type.
2811
+
2812
+ #### `orchestrator.enabled`
2813
+
2814
+ **TOML key:** `orchestrator.enabled`
2815
+
2816
+ - **Type:** `boolean`
2817
+ - **Default:** `false`
2818
+ - **Required:** Optional
2819
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2820
+
2821
+ **Description:** Master gate. With the table absent or `enabled = false`, the sandbox tools are absent from every binding, no environment is ever provisioned, and no dispatcher tick or message post ever runs orchestrator code — a local dispatcher is inert even when enabled, because the turn runner exists only in the hosted deployment.
2822
+
2823
+ **Constraints:** None beyond the input type.
2824
+
2825
+ #### `orchestrator.sandbox`
2826
+
2827
+ **TOML key:** `orchestrator.sandbox`
2828
+
2829
+ - **Type:** `strict table`
2830
+ - **Default:** `{} (input supplied on omission; nested defaults apply)`
2831
+ - **Required:** Optional
2832
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2833
+
2834
+ **Description:** Sandbox behavior knobs.
2835
+
2836
+ **Constraints:** None beyond the input type.
2837
+
2838
+ #### `orchestrator.sandbox.idleMinutes`
2839
+
2840
+ **TOML key:** `orchestrator.sandbox.idleMinutes`
2841
+
2842
+ - **Type:** `number`
2843
+ - **Default:** `30`
2844
+ - **Required:** Optional
2845
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2846
+
2847
+ **Description:** Minutes without a sandbox tool call after which the dispatcher tick's janitor stops the environment, keeping its snapshot; the next tool call resumes it.
2848
+
2849
+ **Constraints:** safe integer; > 0
2850
+
2851
+ #### `orchestrator.sandbox.environmentVariables`
2852
+
2853
+ **TOML key:** `orchestrator.sandbox.environmentVariables`
2854
+
2855
+ - **Type:** `array of string`
2856
+ - **Default:** `[]`
2857
+ - **Required:** Optional
2858
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2859
+
2860
+ **Description:** Names of non-secret host variables forwarded into the sandbox — the only non-toolchain environment it ever sees, during provisioning/setup and tool exec/start alike. Unset means none.
2861
+
2862
+ **Constraints:** When enabled, forwarding store, forge, ticket-provider, model or Vercel credentials, or builtin-provider forbidden names, is rejected.; Each item: minimum length 1
2863
+
2864
+ #### `orchestrator.model`
2865
+
2866
+ **TOML key:** `orchestrator.model`
2867
+
2868
+ - **Type:** `string`
2869
+ - **Default:** `omitted`
2870
+ - **Required:** Required when orchestrator.enabled = true.
2871
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2872
+
2873
+ **Description:** Provider-qualified model string for the turn runner, in the same vocabulary as `[roles]` model strings (a leading `vercel-ai-gateway/` prefix is accepted and stripped). Resolved through the deployment's gateway credential.
2874
+
2875
+ **Constraints:** minimum length 1
2876
+
2877
+ #### `orchestrator.invocationBudgetSeconds`
2878
+
2879
+ **TOML key:** `orchestrator.invocationBudgetSeconds`
2880
+
2881
+ - **Type:** `number`
2882
+ - **Default:** `240`
2883
+ - **Required:** Optional
2884
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2885
+
2886
+ **Description:** Wall-clock budget in seconds for one turn invocation. Values above the route limit are clamped after parsing.
2887
+
2888
+ **Constraints:** safe integer; > 0; Values above 300 are clamped to that limit after parsing.
2889
+
2890
+ #### `orchestrator.approvals`
2891
+
2892
+ **TOML key:** `orchestrator.approvals`
2893
+
2894
+ - **Type:** `array of string`
2895
+ - **Default:** `["builds.control:abort","builds.control:discard","builds.answer:revise-spec","sandbox.publish","tickets.move:ready"]`
2896
+ - **Required:** Optional
2897
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2898
+
2899
+ **Description:** Registry tool names whose calls suspend a turn until you answer. Empty (`[]`) means none — autonomous operation. An entry naming an absent or unknown tool is **inert by design**, never a config error: the list stays stable while the registry grows, and a tool's removal cannot break parsing. A `tool:qualifier` entry applies to the named discriminator value only (for example `tickets.move:ready` approves moving a ticket to `ready`); for a tool without a discriminator, only the bare form matches.
2900
+
2901
+ **Constraints:** Each item: matches /^[a-z][a-z0-9_.]*(:[a-z0-9_-]+)?$/
2902
+
2903
+ #### `orchestrator.wake`
2904
+
2905
+ **TOML key:** `orchestrator.wake`
2906
+
2907
+ - **Type:** `array of string`
2908
+ - **Default:** `omitted`
2909
+ - **Required:** Optional
2910
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2911
+
2912
+ **Description:** The attention events a **new** session wakes for. Kept schema-optional so absent (inherit the legacy hosted wake set including `integration.verification-failed`, independently of CLI watch defaults) and `[]` (never wake; message-only) stay distinct. Each glob must match at least one build or repository-journal event type, validated with the same compiler `ab watch` uses. Existing sessions never retroactively inherit; an explicit `PUT .../wake` always wins.
2913
+
2914
+ **Constraints:** Every glob must match a known build or repository-journal event. Omission inherits the legacy hosted wake set independently of CLI watch defaults; [] disables waking.; Each item: minimum length 1
2915
+
2916
+ <!-- configuration-reference:/orchestrator -->
1489
2917
 
1490
2918
  `[orchestrator.sandbox]` fields:
1491
2919
 
1492
- | Field | Default | Constraints | Purpose |
1493
- |---|---:|---|---|
1494
- | `idleMinutes` | `30` | positive integer | Minutes without a sandbox tool call after which the dispatcher tick's janitor stops the environment, keeping its snapshot; the next tool call resumes it. |
1495
- | `environmentVariables` | `[]` | array of nonblank names | Names of non-secret host variables forwarded into the sandbox — the only non-toolchain environment it ever sees, during provisioning/setup and tool exec/start alike. Unset means none. |
1496
2920
 
1497
2921
  The credential-free rule is structural: the environment receives no store,
1498
2922
  forge, ticket-provider, or model credential, and naming any of `AB_STORE`,
@@ -1511,9 +2935,9 @@ re-checks both sets after plugins load, before any infrastructure is
1511
2935
  provisioned. Tool bounds:
1512
2936
  `sandbox.exec` waits at most 300 seconds; stdout and stderr are each truncated
1513
2937
  at 65,536 bytes with a `[truncated by autobuild: output exceeded 65536 bytes]`
1514
- marker; `sandbox.reset` and archiving an operator's last session are
2938
+ marker; `sandbox.reset` and archiving your last session are
1515
2939
  destructive (reset re-provisions from the current base head); there is at most
1516
- one environment per operator and repository.
2940
+ one environment per user and repository.
1517
2941
 
1518
2942
  <!-- config-fragment:orchestrator -->
1519
2943
  ```toml
@@ -1545,7 +2969,7 @@ header (or an explicit `VERCEL_OIDC_TOKEN`, which takes precedence, or the
1545
2969
  durable `VERCEL_TOKEN`/`VERCEL_TEAM_ID`/`VERCEL_PROJECT_ID` triple, which
1546
2970
  needs no header); the tick path inherits the dispatcher's already-forwarded
1547
2971
  token. Every serving path derives the same deterministic environment name per
1548
- (repository origin, operator), so an operator's environment is one
2972
+ (repository origin, user), so your environment is one
1549
2973
  environment per repository no matter which binding drove it, and the guest
1550
2974
  still receives no credential. Serving stays gated exactly as locally: the
1551
2975
  effective `[orchestrator].enabled`, the registry's closed-table filtering,
@@ -1582,7 +3006,7 @@ test = "bun test"
1582
3006
  publish = "bun run publish"
1583
3007
 
1584
3008
  [verify]
1585
- steps = ["types", "unit", "e2e"]
3009
+ steps = ["types", "unit", "acceptance"]
1586
3010
 
1587
3011
  [verify.types]
1588
3012
  kind = "check"
@@ -1593,9 +3017,9 @@ always = true
1593
3017
  kind = "check"
1594
3018
  command = "test"
1595
3019
 
1596
- [verify.e2e]
3020
+ [verify.acceptance]
1597
3021
  kind = "agent"
1598
- skill = "verify-app-e2e" # repository-authored skill
3022
+ skill = "verify-acceptance" # repository-authored skill
1599
3023
  paths = ["web/**", "src/routes/**"]
1600
3024
 
1601
3025
  [finalize]
@@ -1673,9 +3097,11 @@ installation and exits successfully. It prints the same setup pointer prompt ver
1673
3097
  with instructions to run it in a coding agent; unusable runtime reports include
1674
3098
  their reasons. The setup agent reads the installed guide reference, derives
1675
3099
  commands and verification from the actual repository, chooses pipeline roles,
1676
- configures ticket workflow and environment-only credentials, arranges suitable
1677
- end-to-end verification (authoring a repository-owned agent verifier when
1678
- needed), and leaves one groomed dispatchable ticket.
3100
+ configures ticket workflow and environment-only credentials, arranges
3101
+ an acceptance check through a repository-owned agent verify skill in every
3102
+ repository. Wire an existing maintained end-to-end or browser test suite into an ordinary `check` step. If none exists, do not create one during setup. The acceptance check neither substitutes for nor seeds a suite. It completes `bun ab init --validate`, fixing failures and reviewing
3103
+ warnings. You then start `bun ab dispatch` and open your operator agent with
3104
+ `ab-operate` loaded to create, groom, and shepherd the first ticket.
1679
3105
 
1680
3106
  After installation, init reports `autobuild.toml: written|skipped`, counts all
1681
3107
  skill outcomes, names attention-worthy local edits, and prints runtime probe
@@ -1725,7 +3151,7 @@ the default path likewise carries its pre-update Git baseline through that
1725
3151
  handoff. If a replacement child receives the handoff marker without that
1726
3152
  baseline — possible when an older parent launches a newer child — it suppresses
1727
3153
  the entire automatic commit, names the cross-version compatibility reason, and
1728
- leaves all upgrade-owned changes uncommitted for the operator. Skill-upgrade
3154
+ leaves all upgrade-owned changes uncommitted for you. Skill-upgrade
1729
3155
  results and the merge-derived exit status remain unchanged. Upgrade likewise
1730
3156
  suppresses the whole commit and names why when any skill or Claude discovery
1731
3157
  path conflicts, an owned path was already dirty, the target is not a Git
@@ -1759,7 +3185,7 @@ either retirement.
1759
3185
 
1760
3186
  ## Durable settings outside TOML
1761
3187
 
1762
- Three repository-wide operator choices intentionally live as facts in the
3188
+ Three repository-wide choices intentionally live as facts in the
1763
3189
  BuildStore repository journal, not in `autobuild.toml`. They are latest-write
1764
3190
  wins, survive process restarts, and are sampled by every dispatcher on its
1765
3191
  poll. Editing TOML cannot change them.
@@ -1807,7 +3233,7 @@ lines. A missing or unreadable file is a no-op. Any key already present in the
1807
3233
  real process environment—even an empty string—wins over `.env`.
1808
3234
 
1809
3235
  Variables such as `AB_BUILD`, `AB_PHASE`, `AB_SESSION`, and the harvest-session
1810
- identity tuple are runner-owned ambient authorization. Operators should not
3236
+ identity tuple are runner-owned ambient authorization. You should not
1811
3237
  set or copy them into `.env`; the runner stamps them for each session.
1812
3238
 
1813
3239
  Forge and agent credentials remain adapter-owned. The `local-git` forge uses no
@@ -1820,12 +3246,12 @@ repository's ordinary Git identity, as resolved for a plain `git commit`; the
1820
3246
  landing is always unsigned even when `commit.gpgsign` is enabled. If Git cannot
1821
3247
  resolve that identity, the PR remains open and `ab build status <slug>` names
1822
3248
  `user.name` / `user.email` setup commands; dispatcher ticks retry automatically
1823
- after the operator configures them. A dirty checked-out base does not by itself
3249
+ after you configure them. A dirty checked-out base does not by itself
1824
3250
  block the landing: tracked and untracked work on paths untouched by the squash
1825
3251
  survives.
1826
- If the squash would overwrite operator work, the PR remains open, `ab build
3252
+ If the squash would overwrite your work, the PR remains open, `ab build
1827
3253
  status <slug>` shows a path-bearing observation, and later dispatcher ticks retry
1828
- automatically after the operator commits, stashes, or discards the collision;
3254
+ automatically after you commit, stash, or discard the collision;
1829
3255
  Autobuild never mutates that work. Inspect an open local change with `git diff
1830
3256
  main...ab/<slug>`. It has no review web UI and no image-hosting capability; attached artifacts use
1831
3257
  the existing text-download projection.
@@ -1849,6 +3275,8 @@ No provider API key, GitHub token, or remote-store bearer token belongs in
1849
3275
 
1850
3276
  ## Troubleshooting
1851
3277
 
3278
+ See [Troubleshooting](troubleshooting.md) for symptom-led diagnosis and recovery.
3279
+
1852
3280
  ### Reading an invalid-config error
1853
3281
 
1854
3282
  Start with `ab dispatch --once` when a real single tick is safe. A syntax error
@@ -1862,7 +3290,7 @@ Fix TOML structure first. A schema failure starts with:
1862
3290
 
1863
3291
  ```text
1864
3292
  /path/to/autobuild.toml: invalid config
1865
- verify.e2e.skill: ...
3293
+ verify.acceptance.skill: ...
1866
3294
  tickets.teamKey: ...
1867
3295
  ```
1868
3296
 
@@ -2017,14 +3445,14 @@ There is no durable native-effect reservation protocol. An undesired forge
2017
3445
  landing is classified from the kernel's last durable native application state, without changing provider contracts. A confirmed disabled
2018
3446
  state with no enable in flight or indeterminate means a deliberate human forge
2019
3447
  landing, which supplies consent. Record whether it overrode a hold: an unheld
2020
- human landing needs no operator attention; overriding a hold is informational.
3448
+ human landing needs no attention from your agent; overriding a hold is informational.
2021
3449
  If native auto-merge was armed, or an enable was in flight or indeterminate,
2022
- record a possible stale-enable landing as contrary to policy and raise operator
3450
+ record a possible stale-enable landing as contrary to policy and notify your agent
2023
3451
  attention. Autobuild never rewrites the target to undo either outcome. Merge
2024
3452
  gates and the serialized node-writer publication rules remain authoritative.
2025
3453
  ### Failure budgets and own-build read deferrals
2026
3454
 
2027
- `policy.maxVerifyAttempts` counts distinct failed logical verify cycles after
3455
+ For leaves, `policy.maxVerifyAttempts` counts distinct failed logical verify cycles after
2028
3456
  the latest spec revision. Passing and skipped cycles, including target movement
2029
3457
  through restack or reconcile, consume zero. Cycle identifiers remain monotonic;
2030
3458
  pass, pass, pass, fail at cycle 4 spends one failure. Duplicate completion
@@ -2051,3 +3479,165 @@ execution and unchanged-base progress budgets retain their existing accounting.
2051
3479
 
2052
3480
  Default `ab watch` and `ab wait --for attention` include
2053
3481
  `phase.deferral-escalated`; explicit event filters replace the default set.
3482
+
3483
+ ## Integration verification attention
3484
+
3485
+ A failed node verification cycle records `integration.verification-failed` with its prepared cycle id, failed steps, exact head and parent, and guidance to file a repair child targeting the node. The kernel reports durable failed receipts; dispatcher housekeeping recovers missing reports for the current cycle using a per-cycle CAS guard. Superseded cycles are never backfilled with repair instructions: recovery requires the latest prepared cycle to match the node’s observed head and parent. This fact is decisive evidence and bookkeeping, and does not change verification or leaf routing.
3486
+
3487
+ Default watch and new hosted wake settings include this event. Watch cursors deliver each failed cycle once and baseline failures when first armed; reconcile build status after arming. `ab wait --for attention` also detects a current failed node cycle before the report is written. Historical facts remain queryable after repair without retaining current attention. Explicit event globs and existing stored wake choices are preserved.
3488
+
3489
+ ## Immutable dispatcher generations
3490
+
3491
+ Resident checkout dispatch runs from an immutable generation snapshot under the
3492
+ main checkout's `.autobuild/runtime/` cache. Configuration and plugin selection
3493
+ still use the checkout. A launcher freezes the currently installed distribution
3494
+ and production dependencies offline; all later local runners and agent CLIs use
3495
+ that same snapshot. Automatic adoption is enabled by default through `[upgrade]`
3496
+ below; a manual restart is required when automatic upgrades are disabled or the
3497
+ launcher contract changes. `--once`, origin mode and hosted cron retain their
3498
+ direct execution paths.
3499
+
3500
+ ## `[upgrade]`
3501
+
3502
+ `[upgrade]` is a strict, hot-reloaded table:
3503
+
3504
+ <!-- configuration-reference:upgrade -->
3505
+
3506
+ #### `upgrade`
3507
+
3508
+ **TOML key:** `upgrade`
3509
+
3510
+ - **Type:** `strict table`
3511
+ - **Default:** `{} (input supplied on omission; nested defaults apply)`
3512
+ - **Required:** Optional
3513
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3514
+
3515
+ **Description:** Automatic dispatcher runtime target checks and adoption.
3516
+
3517
+ **Constraints:** None beyond the input type.
3518
+
3519
+ #### `upgrade.automatic`
3520
+
3521
+ **TOML key:** `upgrade.automatic`
3522
+
3523
+ - **Type:** `boolean`
3524
+ - **Default:** `true`
3525
+ - **Required:** Optional
3526
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3527
+
3528
+ **Description:** Check and adopt changed runtime targets automatically.
3529
+
3530
+ **Constraints:** None beyond the input type.
3531
+
3532
+ <!-- configuration-reference:/upgrade -->
3533
+
3534
+
3535
+ <!-- config-fragment -->
3536
+ ```toml
3537
+ [upgrade]
3538
+ automatic = true
3539
+ ```
3540
+
3541
+ `automatic` defaults to true, including for older saved configuration. Resident
3542
+ checkout dispatchers check immediately and every **60 seconds**, independently
3543
+ of ticket scans. A dependency or devDependency declaration of
3544
+ `@defrex/autobuild` on the authoritative forge base branch selects **pinned**
3545
+ mode. Manifest and `bun.lock` must agree at the same commit. Working-tree pins,
3546
+ feature branches and stale tracking refs never select a runtime. Unsupported or
3547
+ missing declared-dependency metadata raises attention rather than switching modes.
3548
+ Without a declaration, **installed** mode rereads the original installation
3549
+ pathname across handoffs. A launch from a source root sharing the dispatched
3550
+ repository's Git common directory selects **source** mode first. The launcher
3551
+ freezes that eligibility and the initial packaged-content baseline across
3552
+ successors; changing the operator checkout cannot change what a generation runs.
3553
+ Source targets use the forge-authoritative base commit. Installation exports that
3554
+ exact commit into private cache staging, requires the committed Bun lock, and runs
3555
+ `bun install --frozen-lockfile --ignore-scripts --no-progress`. The immutable
3556
+ cached distribution records that commit and follows normal cache pruning.
3557
+
3558
+ Source equality compares actual packed contents and production-reachable lock
3559
+ records, including nested dependencies, rather than version or SHA. An excluded
3560
+ RFC, website or test change does not hand off; documentation included by the
3561
+ package's files rules does. Unrelated workspace lock records do not trigger an
3562
+ upgrade. Unsupported reachable dependency metadata raises attention.
3563
+
3564
+ A successor first validates configuration and the actual selected store without
3565
+ starting repository work or terminal input/output. Provider compatibility evidence
3566
+ chooses drain when sharing is safe and cutover otherwise. SQLite compares its
3567
+ untouched catalog with target requirements; HTTP uses the live service's client
3568
+ and protocol admission. Missing evidence chooses cutover. A target outside the hosted client overlap
3569
+ window also requires cutover; target admission and successful protocol writes
3570
+ are still mandatory. Cutover never makes a rejected target runnable. Successful durable
3571
+ protocol writes are also required: a service that admits the client but rejects
3572
+ a new yield fact fails preflight, leaving the predecessor active with target and
3573
+ reason in repository attention. Failed targets are not retried every tick; a change in selected-store compatibility
3574
+ evidence allows the normal target-check cadence to retry.
3575
+
3576
+ Local harvest suspends durably before repository lease release on handoff or
3577
+ clean stop. The next generation resumes eligible native sessions with fresh
3578
+ logical credentials, or records a reasoned `harvest.session.resume-fallback`
3579
+ and starts fresh. Orderly suspension spends no recovery attempt; real crashes
3580
+ retain recovery accounting.
3581
+
3582
+ The predecessor serializes acceptance with ticks and launch admission, joins
3583
+ repository-owned harvest and provisioning work, and records the exact local
3584
+ executions, start time and deadline. Its terminal frontend removes and joins
3585
+ input/render work before acknowledging terminal release. Only after that durable
3586
+ acknowledgement and a successful repository lease claim may the successor draw
3587
+ or consume input. Only the successor ticks, claims, runs janitor/harvest and
3588
+ launches runners. Execution leases remain with existing local runners; remote
3589
+ executions detach immediately. Their exact instances and recorded guest runtimes
3590
+ are captured separately on `dispatcher.handoff-started.remoteBuilds`. This
3591
+ authorization work survives local retirement completion and late attachment;
3592
+ it never adds to local drain counts or delays predecessor exit. Guests retain
3593
+ their leases and heartbeats and request neutral relaunch after their current
3594
+ phase completes. The successor re-attaches with refreshed guest bytes.
3595
+
3596
+ A draining predecessor supervises its captured local executions until they settle
3597
+ or `policy.upgradeDrainSeconds` (900 seconds by default) elapses. The deadline
3598
+ tracks accepted live policy changes relative to the original start. Remaining
3599
+ local sessions suspend through the normal durable native-resume path before
3600
+ process-group cleanup. Cutover uses this suspension path immediately and waits
3601
+ for predecessor stop before takeover. Retirement completion records drained and
3602
+ suspended counts separately from takeover. A successor reconstructs unfinished
3603
+ retirement from execution leases and durable build facts after predecessor death.
3604
+ An unrelated dispatcher taking the lease still causes ordinary supersession and
3605
+ teardown.
3606
+
3607
+ With rollback-capable launcher and generation peers, three failed successor exits
3608
+ within ten minutes of the original durable takeover restore the immediately previous
3609
+ cached runtime. The first two failures restart the same runtime without repeating
3610
+ preflight. Preflight failures never count; outside that window ordinary failure
3611
+ exit behavior applies. Rollback goes back one runtime only. The launcher opens no
3612
+ store: it passes a validated, versioned recovery context to the restored generation,
3613
+ which records `dispatcher.runtime-rolled-back` under repository authority and holds
3614
+ the failed target for that launcher lineage. Store compatibility changes, resolution
3615
+ errors and disabling/re-enabling upgrades do not clear this hold. A successfully
3616
+ resolved different target records `dispatcher.rollback-hold-cleared`; a fresh operator
3617
+ launch starts a new lineage. Both previous and held runtimes remain protected from
3618
+ cache pruning. Existing phase executions keep their leases and continue on the
3619
+ restored runtime at the next boundary; unreadable decisive facts defer a build with
3620
+ attention before any action. Peers without negotiated rollback capability retain
3621
+ existing failure behavior and report that capable runtimes are required.
3622
+
3623
+ Repository status exposes per-run resolved target, handoff and failure details.
3624
+ `dispatcher.upgrade-target-resolved` records the first successful resolution and
3625
+ later changed observations, including equal-content advances. Its source mode,
3626
+ base and target SHA remain visible separately from the running commit and earlier
3627
+ handoff/failure facts. Repeated identical polls append no resolution facts.
3628
+
3629
+ Repository status exposes both generations, mode, takeover, outstanding draining executions and deadline, plus per-run target and failure details. Upgrade
3630
+ failure is repository attention, naming the target and reason. Resolution/install
3631
+ failure leaves the running generation active and suppresses the same failed input
3632
+ until target or selected-store compatibility evidence changes or a fresh operator launch. Unrelated base advances do not
3633
+ retry failed installs. Operator stop always wins over replacement startup.
3634
+
3635
+ Set `automatic = false` to cancel pending preparation and retain manual restart
3636
+ behavior. A launcher contract change also requires a manual restart. A legacy v1 launcher
3637
+ without overlap supervision requires restart before another automatic adoption. `--once`,
3638
+ origin/hosted dispatch and direct development presentation modes do not auto-upgrade.
3639
+ `ab upgrade` still updates the pin/installation and merges skills locally, commits
3640
+ when eligible, and never pushes. Pinned dispatchers follow after that commit
3641
+ reaches the base branch; installed-mode dispatchers follow their replaced install.
3642
+ Source-mode dispatchers follow changes to packaged inputs merged to the base,
3643
+ including shipped canonical skills, without a version bump.