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