@defrex/autobuild 1.0.0 → 1.1.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 (186) hide show
  1. package/README.md +6 -6
  2. package/SPEC.md +360 -229
  3. package/docs/answering-blocked-builds.md +2 -2
  4. package/docs/architecture.md +155 -45
  5. package/docs/assets/headline-wide.png +0 -0
  6. package/docs/builds.md +4 -4
  7. package/docs/cli.md +4 -4
  8. package/docs/configuration-overview.md +4 -4
  9. package/docs/configuration.md +245 -210
  10. package/docs/dispatcher-hosting.md +2 -2
  11. package/docs/dispatcher.md +1 -1
  12. package/docs/forges.md +5 -5
  13. package/docs/getting-started.md +2 -2
  14. package/docs/glossary.md +6 -6
  15. package/docs/hosted-dispatcher.md +6 -3
  16. package/docs/hosted-service.md +16 -5
  17. package/docs/integration-overview.md +15 -15
  18. package/docs/integration-tree.md +45 -38
  19. package/docs/integration.md +6 -6
  20. package/docs/mcp.md +16 -15
  21. package/docs/{landing-policy.md → merge-policy.md} +42 -24
  22. package/docs/migration-1.0.md +17 -13
  23. package/docs/operating.md +41 -18
  24. package/docs/operator-api.md +91 -15
  25. package/docs/operator-surfaces.md +8 -4
  26. package/docs/overview.md +3 -3
  27. package/docs/remote-store-protocol.md +76 -11
  28. package/docs/remote-ticket-protocol.md +1 -1
  29. package/docs/restacking.md +54 -15
  30. package/docs/setup.md +41 -6
  31. package/docs/skills.md +1 -1
  32. package/docs/spec-standard.md +6 -6
  33. package/docs/ticket-dependencies.md +7 -7
  34. package/docs/tickets.md +8 -2
  35. package/docs/troubleshooting.md +2 -2
  36. package/docs/upgrading.md +8 -3
  37. package/docs/verification.md +60 -14
  38. package/package.json +7 -5
  39. package/packages/core/src/cli/binary-direct.ts +13 -1
  40. package/packages/core/src/cli/binary-lifecycle.ts +65 -2
  41. package/packages/core/src/cli/build-control.ts +83 -28
  42. package/packages/core/src/cli/context.ts +81 -38
  43. package/packages/core/src/cli/dashboard/facts.ts +2 -1
  44. package/packages/core/src/cli/dashboard/integration-detail.ts +8 -8
  45. package/packages/core/src/cli/dashboard/integration-row.ts +40 -13
  46. package/packages/core/src/cli/dashboard/landing-display.ts +25 -0
  47. package/packages/core/src/cli/dashboard/model.ts +56 -33
  48. package/packages/core/src/cli/dashboard/poll.ts +9 -3
  49. package/packages/core/src/cli/dashboard/render.ts +59 -37
  50. package/packages/core/src/cli/dashboard/target-distance.ts +14 -0
  51. package/packages/core/src/cli/dashboard/tree.ts +3 -2
  52. package/packages/core/src/cli/dispatch-args.ts +1 -1
  53. package/packages/core/src/cli/dispatch-frontend.ts +6 -3
  54. package/packages/core/src/cli/dispatch.ts +35 -9
  55. package/packages/core/src/cli/env.ts +4 -0
  56. package/packages/core/src/cli/help.ts +30 -23
  57. package/packages/core/src/cli/main.ts +24 -8
  58. package/packages/core/src/cli/node-verification-provenance.ts +1 -97
  59. package/packages/core/src/cli/publication-settlement.ts +43 -20
  60. package/packages/core/src/cli/repository-status.ts +20 -9
  61. package/packages/core/src/cli/status.ts +42 -5
  62. package/packages/core/src/cli/store-opening.ts +6 -1
  63. package/packages/core/src/cli/terminal.ts +22 -1
  64. package/packages/core/src/cli/terminals.ts +14 -10
  65. package/packages/core/src/cli/upgrade-landing.ts +70 -30
  66. package/packages/core/src/cli/upgrade.ts +3 -1
  67. package/packages/core/src/cli/wait.ts +15 -7
  68. package/packages/core/src/cli/watch-lifetime.ts +111 -0
  69. package/packages/core/src/cli/watch.ts +634 -511
  70. package/packages/core/src/config/effective-artifact.fixture.ts +27 -0
  71. package/packages/core/src/config/effective-artifact.ts +13 -0
  72. package/packages/core/src/config/landing.ts +1 -1
  73. package/packages/core/src/config/load.ts +21 -1
  74. package/packages/core/src/config/pipeline-source.ts +28 -0
  75. package/packages/core/src/config/reference-metadata.ts +2 -0
  76. package/packages/core/src/config/reference.ts +22 -7
  77. package/packages/core/src/config/schema.ts +86 -162
  78. package/packages/core/src/context-directory.ts +26 -0
  79. package/packages/core/src/distribution-packaging.ts +26 -5
  80. package/packages/core/src/events/catalog.ts +10 -2
  81. package/packages/core/src/events/globs.ts +1 -1
  82. package/packages/core/src/events/payloads.ts +70 -1
  83. package/packages/core/src/events/policy.ts +7 -0
  84. package/packages/core/src/events/repository.ts +2 -4
  85. package/packages/core/src/events/sessions.ts +6 -6
  86. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +571 -0
  87. package/packages/core/src/kernel/auto-merge.ts +2 -2
  88. package/packages/core/src/kernel/engine.ts +255 -26
  89. package/packages/core/src/kernel/generators/leaf-restack-log.ts +10 -0
  90. package/packages/core/src/kernel/integration-landing.ts +3 -3
  91. package/packages/core/src/kernel/integration-state.ts +27 -4
  92. package/packages/core/src/kernel/leaf-restack-state.ts +28 -3
  93. package/packages/core/src/kernel/log-index.ts +13 -1
  94. package/packages/core/src/kernel/node-landing.ts +8 -8
  95. package/packages/core/src/kernel/node-parent.ts +2 -2
  96. package/packages/core/src/kernel/node-restack-transaction.ts +1 -1
  97. package/packages/core/src/kernel/node-verification-context.ts +216 -0
  98. package/packages/core/src/kernel/phases.ts +1 -1
  99. package/packages/core/src/kernel/plan-verify-selection.ts +16 -0
  100. package/packages/core/src/kernel/publication-retry.ts +168 -0
  101. package/packages/core/src/kernel/reconcile-restack.ts +29 -1
  102. package/packages/core/src/kernel/reducer.ts +82 -5
  103. package/packages/core/src/kernel/target-distance.ts +45 -0
  104. package/packages/core/src/kernel/terminal-guard.ts +10 -1
  105. package/packages/core/src/kernel/verify-stage-state.ts +123 -0
  106. package/packages/core/src/kernel/verify-stages.ts +39 -0
  107. package/packages/core/src/ontology.ts +1 -0
  108. package/packages/core/src/operator/annotations.ts +6 -0
  109. package/packages/core/src/operator/control.ts +1 -1
  110. package/packages/core/src/operator/index.ts +1 -7
  111. package/packages/core/src/operator/landings.ts +5 -1
  112. package/packages/core/src/operator/presentation.ts +6 -1
  113. package/packages/core/src/operator/query.ts +14 -18
  114. package/packages/core/src/operator/registry.ts +17 -6
  115. package/packages/core/src/operator/sandbox-host.ts +64 -40
  116. package/packages/core/src/operator/sandbox.ts +3 -0
  117. package/packages/core/src/operator/ticket-source-backend.ts +3 -12
  118. package/packages/core/src/ports/forge/contract.ts +2 -2
  119. package/packages/core/src/ports/forge/git-rewrite.ts +25 -2
  120. package/packages/core/src/ports/forge/github-readiness.ts +2 -2
  121. package/packages/core/src/ports/forge/github.ts +26 -7
  122. package/packages/core/src/ports/forge/local-git.ts +4 -4
  123. package/packages/core/src/ports/forge/readiness.ts +1 -1
  124. package/packages/core/src/ports/forge-failure.ts +24 -0
  125. package/packages/core/src/ports/workspace/build-execution.ts +3 -1
  126. package/packages/core/src/ports/workspace/phase-scratch.ts +4 -3
  127. package/packages/core/src/ports/workspace/vercel-sandbox.ts +59 -39
  128. package/packages/core/src/processes/build-child.ts +6 -8
  129. package/packages/core/src/processes/build-execution-state.ts +8 -5
  130. package/packages/core/src/processes/build-runner.ts +522 -98
  131. package/packages/core/src/processes/dispatcher.ts +186 -101
  132. package/packages/core/src/processes/execution-no-progress.ts +8 -1
  133. package/packages/core/src/processes/phase-failure-budget.ts +1 -0
  134. package/packages/core/src/processes/publication-loss.ts +8 -2
  135. package/packages/core/src/processes/publication-state.ts +42 -4
  136. package/packages/core/src/processes/repo-view.ts +14 -0
  137. package/packages/core/src/processes/verify-cycle-config.ts +96 -0
  138. package/packages/core/src/{integration → scenarios}/harness.ts +330 -317
  139. package/packages/core/src/store/adapter.ts +1 -0
  140. package/packages/core/src/store/build-scope.ts +9 -0
  141. package/packages/core/src/store/contract.ts +113 -1
  142. package/packages/core/src/store/local/schema.ts +13 -0
  143. package/packages/core/src/store/local/store.ts +42 -0
  144. package/packages/core/src/store/memory.ts +47 -0
  145. package/packages/core/src/store/operator-presence.ts +21 -0
  146. package/packages/core/src/store/phase-session.ts +10 -0
  147. package/packages/core/src/store/reducer-value-shapes.json +5081 -4160
  148. package/packages/core/src/store/remote/client.ts +47 -1
  149. package/packages/core/src/store/remote/compatibility.ts +2 -0
  150. package/packages/core/src/store/remote/protocol.ts +4 -0
  151. package/packages/core/src/store/remote/version.ts +3 -1
  152. package/packages/core/src/store/retention.ts +2 -3
  153. package/packages/core/src/store/session-handle.ts +9 -0
  154. package/packages/core/src/store/streams/session-writer.ts +1 -1
  155. package/packages/core/src/store/types.ts +12 -2
  156. package/packages/core/src/testing/index.ts +11 -1
  157. package/packages/core/src/testing/temp-directories.ts +58 -0
  158. package/skills/code-review/SKILL.md +23 -9
  159. package/skills/finalize/SKILL.md +15 -7
  160. package/skills/guide/SKILL.md +253 -118
  161. package/skills/guide/references/integration-tree.md +45 -38
  162. package/skills/guide/references/{landing-policy.md → merge-policy.md} +42 -24
  163. package/skills/guide/references/migration-1.0.md +17 -13
  164. package/skills/guide/references/operator-api.md +91 -15
  165. package/skills/guide/references/remote-store-protocol.md +76 -11
  166. package/skills/guide/references/remote-ticket-protocol.md +1 -1
  167. package/skills/guide/references/restacking.md +54 -15
  168. package/skills/guide/references/setup.md +41 -6
  169. package/skills/guide/references/spec-standard.md +6 -6
  170. package/skills/guide/references/ticket-dependencies.md +7 -7
  171. package/skills/implement/SKILL.md +43 -17
  172. package/skills/operate/SKILL.md +117 -116
  173. package/skills/plan/SKILL.md +39 -13
  174. package/skills/plan-review/SKILL.md +15 -10
  175. package/skills/reconcile/SKILL.md +22 -3
  176. package/skills/spec/SKILL.md +19 -19
  177. package/skills/tickets/SKILL.md +9 -7
  178. package/templates/autobuild.toml +1 -1
  179. package/templates/hosted-service/package.json +2 -2
  180. package/packages/core/src/orchestrator/approvals.ts +0 -115
  181. package/packages/core/src/orchestrator/conversation.ts +0 -167
  182. package/packages/core/src/orchestrator/model.ts +0 -86
  183. package/packages/core/src/orchestrator/prompt.ts +0 -63
  184. package/packages/core/src/orchestrator/tools.ts +0 -117
  185. package/packages/core/src/orchestrator/turn-runner.ts +0 -457
  186. package/packages/core/src/processes/orchestrator-tick.ts +0 -360
@@ -109,13 +109,13 @@ separate signed-user token described by the [operator API](operator-api.md).
109
109
  | `GITHUB_CLIENT_ID` | GitHub sign-in | OAuth application client id. |
110
110
  | `GITHUB_CLIENT_SECRET` | GitHub sign-in | Server-only OAuth application secret. |
111
111
  | `AB_WEB_AUTH_PROVIDERS` | Web dashboard | Comma-separated provider set; currently exactly `github`. |
112
- | `AB_WEB_ALLOWED_EMAILS` | Web dashboard | Nonempty comma-separated sign-in email allowlist; matching is case-insensitive. |
112
+ | `AB_WEB_SUPER_USER_EMAILS` | Web dashboard | Nonempty comma-separated super-user emails; matching is case-insensitive. Ordinary users require organization membership. |
113
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). |
114
114
 
115
115
  GitHub's callback is `{BETTER_AUTH_URL}/api/auth/callback/github`; the app needs
116
116
  the `user:email` scope (or GitHub App read-only email permission). Sessions are
117
117
  database-backed and represented in the browser only by an HTTP-only cookie.
118
- Allowlist removal takes effect on the next web API request. Never expose these
118
+ Membership or super-user removal takes effect on the next web API request or MCP tool call. Never expose these
119
119
  secrets, `AB_STORE_SECRET`, database/blob credentials, machine tokens, or OAuth
120
120
  account tokens through a `NEXT_PUBLIC_` variable.
121
121
 
@@ -218,11 +218,32 @@ dispatcher itself and are never interpreted by the build runner.
218
218
  Consequently, an accepted base-branch reload re-deposits only the
219
219
  deployment-owned sections to active builds; it does not retarget an in-flight
220
220
  build's verify universe, finalize steps, commands, or provisioning. A build
221
- that publishes a pipeline change to its own branch picks it up at its next
222
- launch, so config changes still flow through the pipeline for the build that
223
- carries them. In-flight environments are never re-provisioned: a fresh build
221
+ that receives a pipeline change in its checkout picks it up at the next
222
+ settled verify boundary. In-flight environments are never re-provisioned: a fresh build
224
223
  from the new base is the path for a changed provisioning definition.
225
224
 
225
+ At every verify-cycle entry, after restack or reconcile settles, the runner
226
+ reads `autobuild.toml` from the execution checkout at resolved `HEAD` (including
227
+ detached integration heads). `verify.config-captured` cites an immutable
228
+ `verify-cycle-config` artifact revision, checkout head, build-owned content
229
+ identity and truthful source metadata. Dirty worktree bytes carry
230
+ `worktree-dirty` without a commit. A settled stage boundary rechecks the
231
+ build-owned sections and the known source commit's ancestry. A change or
232
+ non-ancestor source records `verify.config-superseded` and starts a fresh cycle
233
+ before constructing any further member. Already launched siblings settle first.
234
+ A waiting leaf with completed verification retains its receipts after a clean
235
+ rewrite when build-owned config is unchanged, even when the rewrite replaces
236
+ the pin commit's ancestry. Changed config still supersedes while waiting; a
237
+ future verification cycle always captures fresh config before running steps.
238
+ Old pass/skip receipts cannot satisfy that cycle, and supersession creates no
239
+ failure or failure-budget charge. Unchanged config on a descendant head retains
240
+ its pin; every new cycle still rereads the checkout. Read, parse and Git evidence
241
+ failures block verification as infrastructure failures. Recovery and readiness
242
+ read the capture's exact revision, so a concurrent deployment reload cannot
243
+ replace its build-owned sections. Historical streams capture before further
244
+ verification. Deployment-owned reloads remain live; environments are not
245
+ re-provisioned.
246
+
226
247
  Every accepted revision is deposited verbatim as a `dispatcher-config`
227
248
  repository artifact and referenced by a `dispatcher.config-reloaded` repository
228
249
  event. The dashboard reports the reload and reprojects values such as capacity;
@@ -246,9 +267,9 @@ These fields hot-reload:
246
267
  | `ticketScanIntervalSeconds` | Next tick; evaluates elapsed time against the new interval. |
247
268
  | `capacity` | Next dispatcher tick. |
248
269
  | `[pr]` | Next build creation. |
249
- | `[landing]` (ordered `[[landing]]` rules) | Dispatcher-owned policy; next new readiness decision. Existing decisions retain their sampled rule. |
270
+ | `[merge]` (ordered `[[merge]]` rules) | Dispatcher-owned policy; next new readiness decision. Existing decisions retain their sampled rule. |
250
271
  | `[commands]` | Next setup, verify check, or finalize check selected for a build whose OWN branch carries it. Dispatcher readiness, resume, and recovery use the same pin. A base-branch reload does not retarget an in-flight build. |
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. |
272
+ | `[verify]` and `[finalize]` | Next engine step selection for a build whose OWN branch carries it. Dispatcher readiness, resume, and recovery use the same pin. An approved plan's selection applies unless unknown names require default-all fallback, and a base-branch reload does not retarget an in-flight build. |
252
273
  | `[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. |
253
274
  | `[roles]` | Next agent invocation for that role. Runtime, model, args, alternates, and the session budget are captured together and delivered live. |
254
275
  | `[upgrade]` | Cancels preparation when disabled; automatic target checks every 60 seconds. |
@@ -546,30 +567,34 @@ runtime's optional one-shot capability serves slug naming and lazy upgrade
546
567
  conflict resolution; when absent, each caller retains its existing safe
547
568
  fallback.
548
569
 
549
- ## `[[landing]]`
570
+ ## `[[merge]]`
550
571
 
551
- An ordered list of strict landing rules. Predicates within one rule are ANDed;
572
+ An ordered list of strict merge rules. Predicates within one rule are ANDed;
552
573
  the first matching rule wins. Omitted predicates match everything. With no
553
574
  matching rule, leaves default to `auto` and nodes to `consent`.
554
575
 
555
- <!-- configuration-reference:landing -->
576
+ The deprecated `[[landing]]` spelling accepts identical rules and emits a warning.
577
+ Do not declare both spellings, even as empty arrays. `ab upgrade` migrates the
578
+ old key without changing policy values or order. See [deprecated spellings](merge-policy.md#deprecated-spellings).
579
+
580
+ <!-- configuration-reference:merge -->
556
581
 
557
- #### `landing`
582
+ #### `merge`
558
583
 
559
- **TOML key:** `landing`
584
+ **TOML key:** `merge`
560
585
 
561
586
  - **Type:** `array of strict table`
562
- - **Default:** `[]`
587
+ - **Default:** `omitted`
563
588
  - **Required:** Optional
564
589
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
565
590
 
566
- **Description:** Ordered landing rules; the first matching rule controls consent.
591
+ **Description:** Ordered merge rules; the first matching rule controls consent.
567
592
 
568
593
  **Constraints:** None beyond the input type.
569
594
 
570
- #### `landing[].into`
595
+ #### `merge[].into`
571
596
 
572
- **TOML key:** `landing[].into`
597
+ **TOML key:** `merge[].into`
573
598
 
574
599
  - **Type:** `string`
575
600
  - **Default:** `omitted`
@@ -580,9 +605,9 @@ matching rule, leaves default to `auto` and nodes to `consent`.
580
605
 
581
606
  **Constraints:** into must be root, node, or a nonblank node ticket id
582
607
 
583
- #### `landing[].from`
608
+ #### `merge[].from`
584
609
 
585
- **TOML key:** `landing[].from`
610
+ **TOML key:** `merge[].from`
586
611
 
587
612
  - **Type:** `"leaf" | "node"`
588
613
  - **Default:** `omitted`
@@ -593,9 +618,9 @@ matching rule, leaves default to `auto` and nodes to `consent`.
593
618
 
594
619
  **Constraints:** None beyond the input type.
595
620
 
596
- #### `landing[].label`
621
+ #### `merge[].label`
597
622
 
598
- **TOML key:** `landing[].label`
623
+ **TOML key:** `merge[].label`
599
624
 
600
625
  - **Type:** `string`
601
626
  - **Default:** `omitted`
@@ -606,20 +631,20 @@ matching rule, leaves default to `auto` and nodes to `consent`.
606
631
 
607
632
  **Constraints:** label must be nonblank (labels match exactly, including case)
608
633
 
609
- #### `landing[].mode`
634
+ #### `merge[].mode`
610
635
 
611
- **TOML key:** `landing[].mode`
636
+ **TOML key:** `merge[].mode`
612
637
 
613
638
  - **Type:** `"auto" | "consent"`
614
639
  - **Default:** `omitted`
615
640
  - **Required:** Required
616
641
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
617
642
 
618
- **Description:** Choose automatic landing or require recorded consent.
643
+ **Description:** Choose automatic merge or require recorded consent.
619
644
 
620
645
  **Constraints:** None beyond the input type.
621
646
 
622
- <!-- configuration-reference:/landing -->
647
+ <!-- configuration-reference:/merge -->
623
648
 
624
649
  For example, put a rule with `into = "root"` and `mode = "consent"`
625
650
  before a catch-all rule with `mode = "auto"` to request consent only at the
@@ -628,10 +653,10 @@ match the build's frozen destination, rather than the ticket's current parent.
628
653
 
629
654
  A readiness decision retains the complete matched rule and index (or an explicit
630
655
  default), source kind, destination and sampled labels. Later policy edits do not
631
- rewrite this provenance. Landing policy belongs to the live dispatcher config;
656
+ rewrite this provenance. Merge policy belongs to the live dispatcher config;
632
657
  it is excluded from pinned pipeline settings and integration verification inputs.
633
- See [worked landing configurations and forge requirements](landing-policy.md),
634
- [operating controls](#landing-policy), and
658
+ See [worked merge configurations and forge requirements](merge-policy.md),
659
+ [operating controls](#merge-policy), and
635
660
  [migration from 0.x](migration-1.0.md).
636
661
 
637
662
  ## `[pr]`
@@ -767,7 +792,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
767
792
  - **Type:** `strict table`
768
793
  - **Default:** `{} (input supplied on omission; nested defaults apply)`
769
794
  - **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.
795
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
771
796
 
772
797
  **Description:** Workspace provider selector and provider-specific configuration.
773
798
 
@@ -780,7 +805,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
780
805
  - **Type:** `string`
781
806
  - **Default:** `"git-worktree"`
782
807
  - **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.
808
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
784
809
 
785
810
  **Description:** Select the provider used for provisioning, recovery, PR epilogue working-directory calls, and release.
786
811
 
@@ -793,7 +818,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
793
818
  - **Type:** `table`
794
819
  - **Default:** `{} (input supplied on omission)`
795
820
  - **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.
821
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
797
822
 
798
823
  **Description:** Adapter-specific declarative configuration passed unchanged to the selected plugin factory.
799
824
 
@@ -806,7 +831,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
806
831
  - **Type:** `plugin-owned TOML value`
807
832
  - **Default:** `omitted`
808
833
  - **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.
834
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
810
835
 
811
836
  **Description:** Plugin-owned value passed through unchanged. Builtin providers validate their own declared schema.
812
837
 
@@ -877,7 +902,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
877
902
  - **Type:** `strict table`
878
903
  - **Default:** `omitted`
879
904
  - **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.
905
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
881
906
 
882
907
  **Description:** Strict Vercel workspace provisioning configuration.
883
908
 
@@ -890,7 +915,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
890
915
  - **Type:** `string`
891
916
  - **Default:** `"vercel/sandbox/universal:latest"`
892
917
  - **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.
918
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
894
919
 
895
920
  **Description:** Managed image used to provision the workspace.
896
921
 
@@ -903,7 +928,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
903
928
  - **Type:** `number`
904
929
  - **Default:** `4`
905
930
  - **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.
931
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
907
932
 
908
933
  **Description:** Virtual CPUs allocated to each workspace; provider account limits may further restrict allocation.
909
934
 
@@ -916,7 +941,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
916
941
  - **Type:** `number`
917
942
  - **Default:** `omitted`
918
943
  - **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.
944
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
920
945
 
921
946
  **Description:** VM/session lifetime in seconds and abrupt-orphan bound. Provider plan limits also apply.
922
947
 
@@ -929,7 +954,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
929
954
  - **Type:** `number`
930
955
  - **Default:** `30000`
931
956
  - **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.
957
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
933
958
 
934
959
  **Description:** Deadline in milliseconds for each provider acknowledgement, independent of session lifetime.
935
960
 
@@ -942,7 +967,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
942
967
  - **Type:** `number`
943
968
  - **Default:** `omitted`
944
969
  - **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.
970
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
946
971
 
947
972
  **Description:** Snapshot expiration in seconds. Omission uses the provider expiration policy.
948
973
 
@@ -955,7 +980,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
955
980
  - **Type:** `string`
956
981
  - **Default:** `omitted`
957
982
  - **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.
983
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
959
984
 
960
985
  **Description:** Primary region; omission uses the provider region selection.
961
986
 
@@ -968,7 +993,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
968
993
  - **Type:** `array of string`
969
994
  - **Default:** `[]`
970
995
  - **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.
996
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
972
997
 
973
998
  **Description:** Ordered alternative regions used if the primary region cannot provision a workspace.
974
999
 
@@ -981,7 +1006,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
981
1006
  - **Type:** `array of string`
982
1007
  - **Default:** `[]`
983
1008
  - **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.
1009
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
985
1010
 
986
1011
  **Description:** unique API-credential variable names copied into runtime and agent/check commands
987
1012
 
@@ -994,7 +1019,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
994
1019
  - **Type:** `array of strict table`
995
1020
  - **Default:** `[]`
996
1021
  - **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.
1022
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
998
1023
 
999
1024
  **Description:** ordered strict inline tables `{ name, command }`; names and commands are nonblank and names are unique
1000
1025
 
@@ -1007,7 +1032,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1007
1032
  - **Type:** `string`
1008
1033
  - **Default:** `omitted`
1009
1034
  - **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.
1035
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1011
1036
 
1012
1037
  **Description:** Unique provisioning step name. Must contain a non-whitespace character.
1013
1038
 
@@ -1020,7 +1045,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1020
1045
  - **Type:** `string`
1021
1046
  - **Default:** `omitted`
1022
1047
  - **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.
1048
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1024
1049
 
1025
1050
  **Description:** Shell command executed in declaration order during provisioning. Must contain a non-whitespace character.
1026
1051
 
@@ -1033,7 +1058,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1033
1058
  - **Type:** `table`
1034
1059
  - **Default:** `{} (input supplied on omission)`
1035
1060
  - **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.
1061
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1037
1062
 
1038
1063
  **Description:** open map keyed by every effective role/alternate runtime; each entry requires `install` and `preflight`
1039
1064
 
@@ -1046,7 +1071,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1046
1071
  - **Type:** `strict table`
1047
1072
  - **Default:** `omitted`
1048
1073
  - **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.
1074
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1050
1075
 
1051
1076
  **Description:** Installation and preflight commands for an effective runtime. Every effective role or alternate runtime must have an entry.
1052
1077
 
@@ -1059,7 +1084,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1059
1084
  - **Type:** `string`
1060
1085
  - **Default:** `omitted`
1061
1086
  - **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.
1087
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1063
1088
 
1064
1089
  **Description:** required nonblank shell command; use an immutable package version, digest, or commit
1065
1090
 
@@ -1072,7 +1097,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1072
1097
  - **Type:** `string`
1073
1098
  - **Default:** `omitted`
1074
1099
  - **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.
1100
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1076
1101
 
1077
1102
  **Description:** required nonblank shell command; verify the expected executable and exact version
1078
1103
 
@@ -1085,7 +1110,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1085
1110
  - **Type:** `string`
1086
1111
  - **Default:** `omitted`
1087
1112
  - **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.
1113
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1089
1114
 
1090
1115
  **Description:** optional variable name for the dedicated read-only clone username; requires `gitPasswordEnv`
1091
1116
 
@@ -1098,7 +1123,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
1098
1123
  - **Type:** `string`
1099
1124
  - **Default:** `omitted`
1100
1125
  - **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.
1126
+ - **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1102
1127
 
1103
1128
  **Description:** optional variable name for the dedicated read-only clone password; requires `gitUsernameEnv`
1104
1129
 
@@ -1186,7 +1211,7 @@ local supervisor only after the remote command exits, the VM is stopped, and
1186
1211
  the execution lease is released. The supervisor uses a narrow credential
1187
1212
  transform for a fixed non-force push and verifies the remote head before
1188
1213
  recording completion; PR API work stays local. If that acknowledgement is lost
1189
- after the push lands, the next launch observes the exact remote branch head and
1214
+ after the push succeeds, the next launch observes the exact remote branch head and
1190
1215
  records the missing completion before allowing a replacement phase to run. If
1191
1216
  the commit is absent, release of the old workspace abandons its request and the
1192
1217
  replacement reruns the phase. Before every guest runner launch, the provider
@@ -1234,7 +1259,7 @@ and configured agent-runtime credentials available, run:
1234
1259
  AB_RUN_VERCEL_SANDBOX_LIVE=1 \
1235
1260
  AB_VERCEL_SANDBOX_LIVE_REPO=/absolute/path/to/consumer \
1236
1261
  AB_STORE=https://store.example AB_TOKEN=… \
1237
- bun test packages/core/src/integration/vercel-sandbox.live.test.ts
1262
+ bun test packages/core/src/scenarios/vercel-sandbox.live.test.ts
1238
1263
  ```
1239
1264
 
1240
1265
  The suite first runs `ab init` readiness validation through the production
@@ -1256,7 +1281,7 @@ or attempt an interactive login. The same API-key-only rule applies to Codex,
1256
1281
  Claude Code, and plugin runtimes.
1257
1282
 
1258
1283
  The opt-in live lifecycle suite is
1259
- `packages/core/src/integration/vercel-sandbox.live.test.ts`. Set
1284
+ `packages/core/src/scenarios/vercel-sandbox.live.test.ts`. Set
1260
1285
  `AB_RUN_VERCEL_SANDBOX_LIVE=1`, `AB_VERCEL_SANDBOX_LIVE_REPO` to an independent
1261
1286
  checkout with a ready file ticket and this provider configuration, plus the
1262
1287
  hosted Store, Vercel, runtime, and GitHub credentials above. Its readiness case
@@ -1283,7 +1308,7 @@ schema fields.
1283
1308
  - **Type:** `table`
1284
1309
  - **Default:** `{} (input supplied on omission)`
1285
1310
  - **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.
1311
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1287
1312
 
1288
1313
  **Description:** Named shell commands used by setup and deterministic checks.
1289
1314
 
@@ -1296,7 +1321,7 @@ schema fields.
1296
1321
  - **Type:** `string`
1297
1322
  - **Default:** `omitted`
1298
1323
  - **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.
1324
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1300
1325
 
1301
1326
  **Description:** Named deterministic shell command.
1302
1327
 
@@ -1334,8 +1359,9 @@ For example, set `afterReconcile = false` in `[verify]` and
1334
1359
 
1335
1360
  The kernel freezes the resolved ordered policy in
1336
1361
  `verify.reconcile-policy-captured` at the next engine action after reconcile
1337
- completion. Live configuration changes apply at that boundary; a cycle already
1338
- started keeps its policy through recovery. Historical cycles already started
1362
+ completion. A cycle already started keeps its policy through recovery.
1363
+ Configuration supersession starts a fresh cycle and captures a new policy for
1364
+ its configured universe, retaining the original reconcile identity. Historical cycles already started
1339
1365
  without a captured policy retain the rerun-all behavior. Initial verification
1340
1366
  and verification after subsequent code review always use ordinary applicability.
1341
1367
  Policy exclusion precedes plan selection and paths, including `always = true`.
@@ -1344,7 +1370,7 @@ Enabled steps still follow plan selection and path rules. Excluded steps record
1344
1370
  and a reason naming the setting. Dashboards and PR summaries call this
1345
1371
  "skipped by post-reconcile policy"; it is never a pass. Forge-side required
1346
1372
  checks and branch protections still gate merge. For excluded steps, merged code
1347
- is not re-verified, so breakage that only exists in the combination can land.
1373
+ is not re-verified, so breakage that only exists in the combination can merge.
1348
1374
 
1349
1375
 
1350
1376
  `[verify].steps` defines the configured universe and execution order. It is
@@ -1368,9 +1394,9 @@ There are two strict step variants:
1368
1394
  - **Type:** `table`
1369
1395
  - **Default:** `{} (input supplied on omission)`
1370
1396
  - **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.
1397
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1372
1398
 
1373
- **Description:** Ordered verification steps and applicability rules.
1399
+ **Description:** Ordered verification steps and applicability rules. Step names use ASCII letters, digits, ., _ and -; exactly . and .. are forbidden.
1374
1400
 
1375
1401
  **Constraints:** None beyond the input type.
1376
1402
 
@@ -1378,14 +1404,14 @@ There are two strict step variants:
1378
1404
 
1379
1405
  **TOML key:** `verify.steps`
1380
1406
 
1381
- - **Type:** `array of string`
1407
+ - **Type:** `array of (string | array of string)`
1382
1408
  - **Default:** `[]`
1383
1409
  - **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.
1410
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1385
1411
 
1386
- **Description:** Ordered names of the configured step tables. Every listed step must have a table and every table must be listed.
1412
+ **Description:** Ordered verify stages: a name is a singleton stage; a nonempty array runs its members concurrently. Names must be unique within and across stages. Names contain only ASCII letters, digits, ., _ and -, excluding "." and "..". Every listed step must have a table and every table must be listed.
1387
1413
 
1388
- **Constraints:** Each item: minimum length 1
1414
+ **Constraints:** Each name is nonempty; each grouped stage contains at least one nonempty name. Names must be unique within and across stages.
1389
1415
 
1390
1416
  #### `verify.afterReconcile`
1391
1417
 
@@ -1394,7 +1420,7 @@ There are two strict step variants:
1394
1420
  - **Type:** `boolean`
1395
1421
  - **Default:** `true`
1396
1422
  - **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.
1423
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1398
1424
 
1399
1425
  **Description:** Whether verification runs after reconciliation. A step override takes precedence.
1400
1426
 
@@ -1407,7 +1433,7 @@ There are two strict step variants:
1407
1433
  - **Type:** `strict table | strict table`
1408
1434
  - **Default:** `omitted`
1409
1435
  - **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.
1436
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1411
1437
 
1412
1438
  **Description:** Named step. Select exactly one strict variant using kind; command belongs only to check, skill only to agent.
1413
1439
 
@@ -1420,7 +1446,7 @@ There are two strict step variants:
1420
1446
  - **Type:** `"check"`
1421
1447
  - **Default:** `omitted`
1422
1448
  - **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.
1449
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1424
1450
 
1425
1451
  **Description:** Select the strict step variant. Fields from another variant are rejected.
1426
1452
 
@@ -1433,12 +1459,25 @@ There are two strict step variants:
1433
1459
  - **Type:** `string`
1434
1460
  - **Default:** `omitted`
1435
1461
  - **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.
1462
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1437
1463
 
1438
1464
  **Description:** Name of an existing command in [commands]; required for check steps and forbidden for agent steps.
1439
1465
 
1440
1466
  **Constraints:** minimum length 1
1441
1467
 
1468
+ #### `verify.<step>.failFast` (kind = "check")
1469
+
1470
+ **TOML key:** `verify.<step>.failFast`
1471
+
1472
+ - **Type:** `boolean`
1473
+ - **Default:** `false (omission is preserved)`
1474
+ - **Required:** Optional when kind = "check"
1475
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; 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:** Cancel unfinished members of this stage when this step fails. Defaults to false.
1478
+
1479
+ **Constraints:** None beyond the input type.
1480
+
1442
1481
  #### `verify.<step>.afterReconcile` (kind = "check")
1443
1482
 
1444
1483
  **TOML key:** `verify.<step>.afterReconcile`
@@ -1446,7 +1485,7 @@ There are two strict step variants:
1446
1485
  - **Type:** `boolean`
1447
1486
  - **Default:** `omitted`
1448
1487
  - **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.
1488
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1450
1489
 
1451
1490
  **Description:** Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only.
1452
1491
 
@@ -1459,7 +1498,7 @@ There are two strict step variants:
1459
1498
  - **Type:** `array of string`
1460
1499
  - **Default:** `omitted`
1461
1500
  - **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.
1501
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1463
1502
 
1464
1503
  **Description:** Apply only when at least one changed path matches. Available to both variants.
1465
1504
 
@@ -1472,7 +1511,7 @@ There are two strict step variants:
1472
1511
  - **Type:** `boolean`
1473
1512
  - **Default:** `omitted`
1474
1513
  - **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.
1514
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1476
1515
 
1477
1516
  **Description:** `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants.
1478
1517
 
@@ -1485,7 +1524,7 @@ There are two strict step variants:
1485
1524
  - **Type:** `"agent"`
1486
1525
  - **Default:** `omitted`
1487
1526
  - **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.
1527
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1489
1528
 
1490
1529
  **Description:** Select the strict step variant. Fields from another variant are rejected.
1491
1530
 
@@ -1498,12 +1537,25 @@ There are two strict step variants:
1498
1537
  - **Type:** `string`
1499
1538
  - **Default:** `omitted`
1500
1539
  - **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.
1540
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1502
1541
 
1503
1542
  **Description:** Exact installed skill name; required for agent steps and forbidden for check steps.
1504
1543
 
1505
1544
  **Constraints:** minimum length 1
1506
1545
 
1546
+ #### `verify.<step>.failFast` (kind = "agent")
1547
+
1548
+ **TOML key:** `verify.<step>.failFast`
1549
+
1550
+ - **Type:** `boolean`
1551
+ - **Default:** `false (omission is preserved)`
1552
+ - **Required:** Optional when kind = "agent"
1553
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1554
+
1555
+ **Description:** Cancel unfinished members of this stage when this step fails. Defaults to false.
1556
+
1557
+ **Constraints:** None beyond the input type.
1558
+
1507
1559
  #### `verify.<step>.afterReconcile` (kind = "agent")
1508
1560
 
1509
1561
  **TOML key:** `verify.<step>.afterReconcile`
@@ -1511,7 +1563,7 @@ There are two strict step variants:
1511
1563
  - **Type:** `boolean`
1512
1564
  - **Default:** `omitted`
1513
1565
  - **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.
1566
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1515
1567
 
1516
1568
  **Description:** Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only.
1517
1569
 
@@ -1524,7 +1576,7 @@ There are two strict step variants:
1524
1576
  - **Type:** `array of string`
1525
1577
  - **Default:** `omitted`
1526
1578
  - **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.
1579
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1528
1580
 
1529
1581
  **Description:** Apply only when at least one changed path matches. Available to both variants.
1530
1582
 
@@ -1537,7 +1589,7 @@ There are two strict step variants:
1537
1589
  - **Type:** `boolean`
1538
1590
  - **Default:** `omitted`
1539
1591
  - **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.
1592
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1541
1593
 
1542
1594
  **Description:** `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants.
1543
1595
 
@@ -1580,19 +1632,29 @@ applicability.
1580
1632
 
1581
1633
  In node `verify:*` context, `nodeVerification` in the manifest identifies the frozen
1582
1634
  `range`, `indexPath`, `contributions`, `handPushedCommits` and `unattributedCommits`. Each contribution
1583
- has `build`, its current stored `ticket` identity, `spec: {kind: 'spec', rev}`,
1635
+ has `build`, its stored `ticket` identity at preparation, `spec: {kind: 'spec', rev}`,
1584
1636
  `specPath` and `commits`. The JSON index repeats this metadata and adds the
1585
1637
  exhaustive ordered `commits: [{sha, build?}]` mapping. Paths are workspace-relative
1586
1638
  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`
1639
+ Contribution specs normally live at `$AB_CONTEXT_DIR/contributions/<build>/spec.md`; the index
1640
+ normally lives at `$AB_CONTEXT_DIR/node-verification.json`. These files are marked `derived`
1589
1641
  in `materialized`, with their source build and revision recorded in the metadata.
1590
1642
 
1591
1643
  Membership comes from build identity trailers on every commit reachable in the
1592
1644
  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
1645
+ The dispatcher gathers contributor material with repository authority before
1646
+ launching verification. Specs use the event-authorized revision at preparation,
1647
+ never an unsanctioned latest deposit or mutable ticket body. Unknown identities,
1648
+ ambiguous or invalid trailers, and missing source data prevent preparation.
1649
+ A versioned node-owned `node-verification-context` artifact is deposited atomically
1650
+ with `integration.prepared`, which cites its exact revision. Hydration reads that
1651
+ citation and validates the prepared input's cycle and range without contributor
1652
+ reads or Git provenance discovery; session and build scope permissions remain
1653
+ unchanged. Concurrent verifiers and resumed sessions share the frozen inputs;
1654
+ a new cycle collects fresh contributor identities and specs. Missing, corrupt or
1655
+ mismatched prepared inputs fail hydration without publishing a manifest.
1656
+ Historical agent cycles without a citation require a new prepared cycle;
1657
+ check-only cycles require no contributor input. Commits without a build trailer are
1596
1658
  listed as unattributed, a mechanical absence of a trailer rather than an authorization verdict.
1597
1659
  `handPushedCommits: [{sha, originalSha, message}]` identifies node-owned hand-pushed
1598
1660
  commits in the frozen range. Ownership uses the durable first-parent contribution
@@ -1602,7 +1664,7 @@ These messages express maintainer-authorized intent: judge quality and consisten
1602
1664
  never fail these commits solely for lacking a covering spec.
1603
1665
  Other node changes are authorized when the node spec or the spec of the contribution
1604
1666
  that introduced it covers it; use the commit mapping to find that spec.
1605
- Leaf verification context is unchanged.
1667
+ Leaf verification omits node provenance.
1606
1668
 
1607
1669
  ### Role routing for an agent verify step
1608
1670
 
@@ -1652,6 +1714,13 @@ steps are stored in `[verify].steps` order from the exact plan completion later
1652
1714
  approved by plan review. A spec restart replaces the selection with the newly
1653
1715
  approved plan; reconciliation reuses it.
1654
1716
 
1717
+ If the approved selection later names any step absent from the cycle's pinned
1718
+ configured universe, the entire selection falls back to all configured optional
1719
+ steps. The kernel records one observation per cycle and plan revision naming
1720
+ the unknown steps. Mandatory steps, path applicability and post-reconcile policy
1721
+ still apply. A valid selection continues to skip genuinely omitted optional
1722
+ steps. Strict validation when depositing a new plan is unchanged.
1723
+
1655
1724
  For each step the kernel evaluates approved-plan selection first, then path
1656
1725
  applicability. Exclusion by either mechanism records a queryable `skipped`
1657
1726
  outcome. A selection exclusion or path miss starts no check or agent.
@@ -1678,18 +1747,31 @@ base-resolution failure is an infrastructure failure, never a permissive skip.
1678
1747
 
1679
1748
  ### Pass, fail, and skip
1680
1749
 
1681
- A passing check or agent advances to the next step. An agent failure requires
1682
- `ab verdict fail --report <file>`; the exact report is routed back to implement,
1683
- and the failure consumes the verify retry budget in
1684
- `policy.maxVerifyAttempts`. Check failures similarly retain command output as
1685
- the implementation feedback.
1750
+ A passing check or agent satisfies its member of the current stage. The next
1751
+ stage starts only after every member has passed or been skipped; finalize
1752
+ starts after the last stage is satisfied.
1753
+
1754
+ By default, a failure lets the stage's other members finish before routing the
1755
+ build to implement once with every failed member's report. Later stages do not
1756
+ run. An agent failure requires `ab verdict fail --report <file>`; check failures
1757
+ retain command output as implementation feedback. A failed cycle consumes one
1758
+ unit of the `policy.maxVerifyAttempts` retry budget, regardless of how many
1759
+ members failed.
1760
+
1761
+ If a member configured with `failFast = true` fails, unfinished siblings are
1762
+ cancelled instead. Members that already reached an outcome keep it. Cancelled
1763
+ members are listed as not run, with their cancellation cause, in implement's
1764
+ context; cancellation does not satisfy a verification gate. See
1765
+ [verification outcomes](verification.md#steps-and-outcomes) for cancellation,
1766
+ escalation and recovery details.
1686
1767
 
1687
1768
  An agent may instead use `ab verdict skip --reason <text>` when the configured
1688
1769
  judgment genuinely does not apply. The trimmed reason must be nonblank, and no
1689
1770
  failure report is required. Plan and path exclusions are kernel-authored skips
1690
- with deterministic reasons. Every skip satisfies that one step and advances,
1691
- but remains distinct from a pass, does not mask another step's failure, and
1692
- does not consume the failure retry budget.
1771
+ with deterministic reasons. Every skip satisfies only that member of the stage
1772
+ and remains distinct from a pass. It does not mask another member's failure or
1773
+ consume the failure retry budget; advancement still requires the whole stage
1774
+ to pass or skip.
1693
1775
 
1694
1776
  ## `[finalize]` and `[finalize.<step>]`
1695
1777
 
@@ -1710,9 +1792,9 @@ are errors.
1710
1792
  - **Type:** `table`
1711
1793
  - **Default:** `{} (input supplied on omission)`
1712
1794
  - **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.
1795
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1714
1796
 
1715
- **Description:** Ordered post-PR steps. Failures are recorded without blocking the PR.
1797
+ **Description:** Ordered post-PR steps. Failures are recorded without blocking the PR. Step names use ASCII letters, digits, ., _ and -; exactly . and .. are forbidden.
1716
1798
 
1717
1799
  **Constraints:** None beyond the input type.
1718
1800
 
@@ -1723,9 +1805,9 @@ are errors.
1723
1805
  - **Type:** `array of string`
1724
1806
  - **Default:** `[]`
1725
1807
  - **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.
1808
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1727
1809
 
1728
- **Description:** Ordered names of the configured step tables. Every listed step must have a table and every table must be listed.
1810
+ **Description:** Ordered names of the configured step tables. Names contain only ASCII letters, digits, ., _ and -, excluding "." and "..". Every listed step must have a table and every table must be listed.
1729
1811
 
1730
1812
  **Constraints:** Each item: minimum length 1
1731
1813
 
@@ -1736,7 +1818,7 @@ are errors.
1736
1818
  - **Type:** `strict table | strict table`
1737
1819
  - **Default:** `omitted`
1738
1820
  - **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.
1821
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1740
1822
 
1741
1823
  **Description:** Named step. Select exactly one strict variant using kind; command belongs only to check, skill only to agent.
1742
1824
 
@@ -1749,7 +1831,7 @@ are errors.
1749
1831
  - **Type:** `"check"`
1750
1832
  - **Default:** `omitted`
1751
1833
  - **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.
1834
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1753
1835
 
1754
1836
  **Description:** Select the strict step variant. Fields from another variant are rejected.
1755
1837
 
@@ -1762,7 +1844,7 @@ are errors.
1762
1844
  - **Type:** `string`
1763
1845
  - **Default:** `omitted`
1764
1846
  - **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.
1847
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1766
1848
 
1767
1849
  **Description:** Name of an existing command in [commands]; required for check steps and forbidden for agent steps.
1768
1850
 
@@ -1775,7 +1857,7 @@ are errors.
1775
1857
  - **Type:** `"agent"`
1776
1858
  - **Default:** `omitted`
1777
1859
  - **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.
1860
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1779
1861
 
1780
1862
  **Description:** Select the strict step variant. Fields from another variant are rejected.
1781
1863
 
@@ -1788,7 +1870,7 @@ are errors.
1788
1870
  - **Type:** `string`
1789
1871
  - **Default:** `omitted`
1790
1872
  - **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.
1873
+ - **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
1792
1874
 
1793
1875
  **Description:** Exact installed skill name; required for agent steps and forbidden for check steps.
1794
1876
 
@@ -2442,7 +2524,7 @@ invariants, not additional configuration fields.
2442
2524
  node ticket id. `ab ticket update <id> --target <node-id>` changes it;
2443
2525
  `--no-target` clears it and `--kind work` resets kind. Omitted update fields
2444
2526
  preserve values. Claimed work targets cannot change: abort and re-dispatch.
2445
- Open nodes can reparent under the guarded protocol, revoking land consent.
2527
+ Open nodes can reparent under the guarded protocol, revoking merge consent.
2446
2528
 
2447
2529
  File tickets persist the fields in frontmatter; hosted tickets store them with
2448
2530
  project-scoped transactional validation. Linear maps kind to the exact `node`
@@ -2788,11 +2870,12 @@ Set `COMPANY_TICKET_TOKEN` in the environment, never in this table.
2788
2870
 
2789
2871
  ## `[orchestrator]`
2790
2872
 
2791
- Gates the operator-agent feature (AUT-340, AUT-342): the per-user sandbox
2792
- environments the `sandbox.*` registry tools drive, and — when the embedded
2793
- orchestrator is enabled — the turn runner that answers your sessions and
2794
- wakes on build events. The table is closed to unknown keys and
2795
- restart-classified as a whole.
2873
+ Enables the credential-free per-owner sandbox environments driven by external
2874
+ operators through `sandbox.*`, archive cleanup and dispatcher idle settlement.
2875
+ Autobuild does not host an operator agent. The table is closed to unknown keys
2876
+ and restart-classified as a whole. The removed runner keys `model`,
2877
+ `invocationBudgetSeconds`, `approvals` and `wake` are rejected with a diagnostic;
2878
+ existing effective-config artifacts remain readable without changing stored bytes.
2796
2879
 
2797
2880
  <!-- configuration-reference:orchestrator -->
2798
2881
 
@@ -2818,7 +2901,7 @@ restart-classified as a whole.
2818
2901
  - **Required:** Optional
2819
2902
  - **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
2820
2903
 
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.
2904
+ **Description:** Enables externally driven sandbox tools, archive cleanup and dispatcher idle settlement. Operators run in external agent harnesses.
2822
2905
 
2823
2906
  **Constraints:** None beyond the input type.
2824
2907
 
@@ -2861,58 +2944,6 @@ restart-classified as a whole.
2861
2944
 
2862
2945
  **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
2946
 
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
2947
  <!-- configuration-reference:/orchestrator -->
2917
2948
 
2918
2949
  `[orchestrator.sandbox]` fields:
@@ -2943,10 +2974,6 @@ one environment per user and repository.
2943
2974
  ```toml
2944
2975
  [orchestrator]
2945
2976
  enabled = true
2946
- model = "anthropic/claude-sonnet-4"
2947
- invocationBudgetSeconds = 240
2948
- approvals = ["builds.control:abort", "sandbox.publish", "tickets.move:ready"]
2949
- # wake omitted: new sessions inherit the default attention set
2950
2977
 
2951
2978
  [orchestrator.sandbox]
2952
2979
  idleMinutes = 30
@@ -2956,24 +2983,16 @@ environmentVariables = ["MY_TOOL_CONFIG"]
2956
2983
  Set `MY_TOOL_CONFIG` in the host environment of the `ab mcp` process; a missing
2957
2984
  value fails the tool call that needs it, named as a typed `environment` error.
2958
2985
 
2959
- In the hosted deployment the `sandbox.*` tools are served to orchestrator
2960
- turns from two bindings, both composing the backend from the repository's
2961
- deposited effective config: the store service's message-turn runner (and its
2962
- same-invocation approval resumes), and the origin-mode dispatcher tick's wake
2963
- and resume runner, which reuses the dispatcher's wired workspace provider and
2964
- forge. Both use the builtin workspace provider and the builtin `github` forge
2965
- from that config — a plugin-provider or forgeless config degrades that
2966
- binding's sandbox tools only, with a reported diagnostic. The store-service
2967
- path authenticates the Sandbox SDK with the request's `x-vercel-oidc-token`
2968
- header (or an explicit `VERCEL_OIDC_TOKEN`, which takes precedence, or the
2969
- durable `VERCEL_TOKEN`/`VERCEL_TEAM_ID`/`VERCEL_PROJECT_ID` triple, which
2970
- needs no header); the tick path inherits the dispatcher's already-forwarded
2971
- token. Every serving path derives the same deterministic environment name per
2972
- (repository origin, user), so your environment is one
2973
- environment per repository no matter which binding drove it, and the guest
2974
- still receives no credential. Serving stays gated exactly as locally: the
2975
- effective `[orchestrator].enabled`, the registry's closed-table filtering,
2976
- and the `approvals` suspension list in the turn loop.
2986
+ Hosted sandbox tools compose their backend from the deposited effective config
2987
+ and the authenticated request's credentials. The request's
2988
+ `x-vercel-oidc-token` authenticates the Sandbox SDK; an explicit
2989
+ `VERCEL_OIDC_TOKEN` takes precedence, or the durable
2990
+ `VERCEL_TOKEN`/`VERCEL_TEAM_ID`/`VERCEL_PROJECT_ID` triple needs no header.
2991
+ Archive cleanup uses the same request credential threading. Provider or forge
2992
+ construction failures degrade sandbox tools only, with a diagnostic. Guests
2993
+ receive no credential. The dispatcher retains idle settlement but never
2994
+ constructs a turn runner. Tools stay gated by `[orchestrator].enabled` and the
2995
+ registry's closed-table filtering; external harnesses own approvals.
2977
2996
 
2978
2997
  ## Complete example
2979
2998
 
@@ -3101,7 +3120,8 @@ configures ticket workflow and environment-only credentials, arranges
3101
3120
  an acceptance check through a repository-owned agent verify skill in every
3102
3121
  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
3122
  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.
3123
+ `ab-operate` loaded to create and groom the first ticket, then check operator presence
3124
+ before taking the role. An existing operator picks up ready work.
3105
3125
 
3106
3126
  After installation, init reports `autobuild.toml: written|skipped`, counts all
3107
3127
  skill outcomes, names attention-worthy local edits, and prints runtime probe
@@ -3125,8 +3145,8 @@ configuration. The setup prompt instead asks the agent to review and improve
3125
3145
  the existing config.
3126
3146
 
3127
3147
  Re-running init still maintains the `.autobuild/` ignore rule and skill
3128
- installation. `ab upgrade` migrates an absent landing policy from the target
3129
- repository journal; explicit landing arrays are preserved. See
3148
+ installation. `ab upgrade` migrates an absent merge policy from the target
3149
+ repository journal; explicit merge arrays are preserved. See
3130
3150
  [migration from 0.x](migration-1.0.md). By default it first updates a recognized
3131
3151
  Bun installation — from the npm registry
3132
3152
  for a registry install, or from GitHub Releases for a `github:` install — and
@@ -3198,12 +3218,12 @@ poll. Editing TOML cannot change them.
3198
3218
 
3199
3219
  The opposite flag forms for each dispatch setting are mutually exclusive.
3200
3220
  Omitting both writes nothing and reuses the durable value. Per-build
3201
- pause/resume and landing controls are separate facts and do not alter these
3202
- repository settings; landing authorization follows `[[landing]]`. Pause all and
3221
+ pause/resume and merge controls are separate facts and do not alter these
3222
+ repository settings; merge authorization follows `[[merge]]`. Pause all and
3203
3223
  resume all write two facts each — the
3204
3224
  repository pause first, then intake — so a partial failure still leaves the
3205
3225
  repository at least as quiesced as asked; `ab pause --all` reports on stderr
3206
- which of them landed when a walk stops partway. The current release has no TOML
3226
+ which of them merged when a walk stops partway. The current release has no TOML
3207
3227
  field for either the harvest gate or the repository pause, and no command that
3208
3228
  sets the repository pause on its own without also moving intake; inspect the
3209
3229
  harvest gate with `ab harvest status`.
@@ -3238,16 +3258,16 @@ set or copy them into `.env`; the runner stamps them for each session.
3238
3258
 
3239
3259
  Forge and agent credentials remain adapter-owned. The `local-git` forge uses no
3240
3260
  credentials or network access: it keeps durable PR records under private Git
3241
- refs, leaves each work build at `refs/heads/ab/<slug>`, and lands root leaves by
3242
- squash under the recorded landing authorization. Node landings use guarded
3243
- fast-forwards; see [landing methods](landing-policy.md#landing-methods).
3261
+ refs, leaves each work build at `refs/heads/ab/<slug>`, and merges root leaves by
3262
+ squash under the recorded merge authorization. Node merges use guarded
3263
+ fast-forwards; see [merge methods](merge-policy.md#merge-methods).
3244
3264
  The squash author and committer come from the
3245
3265
  repository's ordinary Git identity, as resolved for a plain `git commit`; the
3246
- landing is always unsigned even when `commit.gpgsign` is enabled. If Git cannot
3266
+ merge is always unsigned even when `commit.gpgsign` is enabled. If Git cannot
3247
3267
  resolve that identity, the PR remains open and `ab build status <slug>` names
3248
3268
  `user.name` / `user.email` setup commands; dispatcher ticks retry automatically
3249
3269
  after you configure them. A dirty checked-out base does not by itself
3250
- block the landing: tracked and untracked work on paths untouched by the squash
3270
+ block the merge: tracked and untracked work on paths untouched by the squash
3251
3271
  survives.
3252
3272
  If the squash would overwrite your work, the PR remains open, `ab build
3253
3273
  status <slug>` shows a path-bearing observation, and later dispatcher ticks retry
@@ -3364,7 +3384,7 @@ progress is not shown. Harvest does not consume build capacity.
3364
3384
  ### Hosted project selection
3365
3385
 
3366
3386
  The durable PostgreSQL project registry controls dashboard, MCP and operator
3367
- API access. Every allowlisted user sees every active entry. Administer it with
3387
+ API access. Super users see every active entry; members see only their organizations’ projects. Administer it with
3368
3388
  `ab-hosted-store projects list|add|remove` using deployment database credentials;
3369
3389
  mutations require `--user IDENTITY` for declared attribution. See
3370
3390
  [connected projects](setup.md#connected-projects) for migration and retention.
@@ -3404,35 +3424,39 @@ credentials travel through the separate transient execution-auth argument, never
3404
3424
  through serialized execution identity. Existing plugins that forwarded
3405
3425
  `storeToken` must migrate to this callback and fail closed if it is unavailable.
3406
3426
 
3407
- ## Landing policy
3427
+ ## Merge policy
3408
3428
 
3409
- The [`[[landing]]` table](#landing) defines ordered authorization rules and
3410
- readiness provenance. See [landing policy](landing-policy.md) for examples,
3429
+ The [`[[merge]]` table](#merge) defines ordered authorization rules and
3430
+ readiness provenance. See [merge policy](merge-policy.md) for examples,
3411
3431
  merge methods and forge capability requirements.
3412
3432
 
3413
- `ab hold <slug>` durably suppresses landing and revokes previous consent, even
3414
- before readiness. `ab land <slug>` requires readiness, clears hold, and consents
3415
- to this build/node landing into its effective destination. Consent survives head
3433
+ `ab hold <slug>` durably suppresses merge and revokes previous consent, even
3434
+ before readiness. `ab merge <slug>` requires readiness, clears hold, and consents
3435
+ to this build/node merge into its effective destination. Consent survives head
3416
3436
  replacement, restacking, verification and re-finalization until another hold or
3417
3437
  completion. Accepted node reparenting revokes consent; holds survive.
3418
- It is consent to the landing, not approval of an immutable diff.
3438
+ It is consent to the merge, not approval of an immutable diff.
3419
3439
  Commands and acknowledgements are sequence-correlated; hold acknowledgement
3420
- requires confirmed native cancellation, while land acknowledgement accepts
3440
+ requires confirmed native cancellation, while merge acknowledgement accepts
3421
3441
  consent without claiming that merge gates passed. The same actions are available
3422
- through the MCP/operator build-control tools. The terminal uses `l` for land and
3423
- `o` for hold on the selected landing. The web has no consent controls.
3442
+ through the MCP/operator build-control tools. The terminal uses `l` for merge and
3443
+ `o` for hold on the selected merge. The hosted web app offers **Merge** and
3444
+ **Hold** on a merge awaiting consent, with the same durable acknowledgements
3445
+ and merge gates. It does not provide a merge-policy editor.
3424
3446
 
3425
3447
  The repository auto-merge default and its fan-out are retired. Historical events
3426
3448
  still replay; explicit old per-build commands map to consent/hold until a new
3427
- landing command supersedes them, while old default seeds confer no consent.
3449
+ merge command supersedes them, while old default seeds confer no consent.
3428
3450
  `ab upgrade` samples the target repository's configured journal and writes leaf
3429
3451
  auto for old ON, leaf consent for old OFF (including no fact), and node consent
3430
- in either case. Explicit landing arrays remain byte-for-byte unchanged. Missing
3452
+ in either case. Explicit merge arrays remain byte-for-byte unchanged; deprecated
3453
+ `landing` arrays are renamed to `merge` without changing policy values or order,
3454
+ and without reading the legacy journal. Declaring both keys is an error. Missing
3431
3455
  configuration or unavailable journals fail with recovery guidance. Fresh init
3432
3456
  uses the no-rules fallback.
3433
3457
 
3434
3458
  Native auto-merge is reconciled on every janitor poll against durable desired
3435
- landing state. It is disabled while held, unauthorized, unready, or replacement
3459
+ merge state. It is disabled while held, unauthorized, unready, or replacement
3436
3460
  publication is pending or just completed; enabling binds to the current head
3437
3461
  through the forge's expected-head guard. Every replacement publication confirms
3438
3462
  cancellation first, and its first following poll re-reads and reconciles native
@@ -3442,12 +3466,12 @@ poll reconciliation. This is an explicitly bounded failure model: native merge
3442
3466
  is used only behind a merge-blocking gate, and checks on a replacement head must
3443
3467
  take far longer than one poll interval, allowing cancellation before they pass.
3444
3468
  There is no durable native-effect reservation protocol. An undesired forge
3445
- landing is classified from the kernel's last durable native application state, without changing provider contracts. A confirmed disabled
3469
+ merge is classified from the kernel's last durable native application state, without changing provider contracts. A confirmed disabled
3446
3470
  state with no enable in flight or indeterminate means a deliberate human forge
3447
- landing, which supplies consent. Record whether it overrode a hold: an unheld
3448
- human landing needs no attention from your agent; overriding a hold is informational.
3471
+ merge, which supplies consent. Record whether it overrode a hold: an unheld
3472
+ human merge needs no attention from your agent; overriding a hold is informational.
3449
3473
  If native auto-merge was armed, or an enable was in flight or indeterminate,
3450
- record a possible stale-enable landing as contrary to policy and notify your agent
3474
+ record a possible stale-enable merge as contrary to policy and notify your agent
3451
3475
  attention. Autobuild never rewrites the target to undo either outcome. Merge
3452
3476
  gates and the serialized node-writer publication rules remain authoritative.
3453
3477
  ### Failure budgets and own-build read deferrals
@@ -3484,7 +3508,7 @@ Default `ab watch` and `ab wait --for attention` include
3484
3508
 
3485
3509
  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
3510
 
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.
3511
+ Default `ab watch` includes 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
3512
 
3489
3513
  ## Immutable dispatcher generations
3490
3514
 
@@ -3641,3 +3665,14 @@ when eligible, and never pushes. Pinned dispatchers follow after that commit
3641
3665
  reaches the base branch; installed-mode dispatchers follow their replaced install.
3642
3666
  Source-mode dispatchers follow changes to packaged inputs merged to the base,
3643
3667
  including shipped canonical skills, without a version bump.
3668
+
3669
+
3670
+ The retired `AB_WEB_ALLOWED_EMAILS` variable is refused at startup, even if empty.
3671
+ Replace it with `AB_WEB_SUPER_USER_EMAILS`; review the list because these identities
3672
+ are deployment maintainers. Bootstrap the first organization through the
3673
+ [browser management contract](operator-api.md#organization-management-browser),
3674
+ then add members by email and assign legacy unassigned projects. Super users alone
3675
+ create orgs, set or clear the single owner, and assign or move projects. Owners
3676
+ manage their org's members. Removing the last membership or super-user designation
3677
+ revokes human access on the next request without re-login; existing project
3678
+ credentials remain valid until revoked.