@defrex/autobuild 1.0.0-beta.4 → 1.0.1

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