@defrex/autobuild 1.0.1 → 1.2.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 +10 -18
- package/SPEC.md +499 -238
- package/bin/ab-dispatch-generation.ts +11 -2
- package/docs/accounts.md +119 -0
- package/docs/agent-runtimes.md +4 -4
- package/docs/answering-blocked-builds.md +2 -2
- package/docs/architecture.md +262 -53
- package/docs/assets/headline-wide.png +0 -0
- package/docs/build-store.md +3 -41
- package/docs/builds.md +4 -4
- package/docs/cli.md +18 -4
- package/docs/configuration-overview.md +115 -4
- package/docs/configuration.md +488 -334
- package/docs/dispatcher-hosting.md +19 -34
- 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/intake.md +2 -0
- package/docs/integration-overview.md +15 -15
- package/docs/integration-tree.md +45 -38
- package/docs/integration.md +6 -6
- package/{skills/guide/references/landing-policy.md → docs/merge-policy.md} +40 -24
- package/docs/migration-1.0.md +17 -13
- package/docs/operating.md +41 -19
- package/docs/operator-api.md +180 -51
- package/docs/operator-surfaces.md +5 -18
- package/docs/overview.md +3 -3
- package/docs/plugin-authoring.md +21 -0
- package/docs/remote-store-protocol.md +242 -68
- package/docs/remote-ticket-protocol.md +30 -50
- package/docs/restacking.md +54 -15
- package/docs/seams.md +8 -8
- package/docs/setup.md +59 -119
- package/docs/skills.md +1 -1
- package/docs/spec-standard.md +6 -6
- package/docs/ticket-dependencies.md +7 -7
- package/docs/ticket-sources.md +18 -0
- package/docs/tickets.md +8 -2
- package/docs/troubleshooting.md +8 -12
- package/docs/upgrading.md +9 -4
- package/docs/verification.md +60 -14
- package/docs/workspaces.md +4 -4
- package/package.json +17 -6
- package/packages/core/src/accounts/chatgpt-oauth.ts +216 -0
- package/packages/core/src/accounts/chatgpt-state.ts +41 -0
- package/packages/core/src/accounts/local-credentials.ts +194 -0
- package/packages/core/src/accounts/local-inference.ts +106 -0
- package/packages/core/src/accounts/local-owner.ts +123 -0
- package/packages/core/src/accounts/sensitive.ts +2 -0
- package/packages/core/src/cli/accounts.ts +147 -0
- 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/binary.ts +3 -1
- package/packages/core/src/cli/build-control.ts +83 -28
- package/packages/core/src/cli/connect.ts +3 -3
- 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-handoff.ts +125 -44
- package/packages/core/src/cli/dispatch-launch-contract.ts +187 -0
- package/packages/core/src/cli/dispatch-launcher.ts +54 -21
- package/packages/core/src/cli/dispatch-preflight.ts +6 -1
- package/packages/core/src/cli/dispatch.ts +106 -11
- package/packages/core/src/cli/env.ts +4 -0
- package/packages/core/src/cli/help.ts +46 -23
- package/packages/core/src/cli/init-readiness-remote.ts +22 -1
- package/packages/core/src/cli/init-readiness-shared.ts +5 -1
- package/packages/core/src/cli/init-validation.ts +160 -18
- package/packages/core/src/cli/main.ts +68 -8
- package/packages/core/src/cli/node-verification-provenance.ts +1 -97
- package/packages/core/src/cli/publication-settlement.ts +47 -21
- package/packages/core/src/cli/repository-status.ts +20 -9
- package/packages/core/src/cli/secrets.ts +173 -0
- package/packages/core/src/cli/status.ts +42 -5
- package/packages/core/src/cli/store-opening.ts +17 -2
- package/packages/core/src/cli/terminal.ts +22 -1
- package/packages/core/src/cli/terminals.ts +14 -10
- package/packages/core/src/cli/upgrade-agent.ts +9 -1
- 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 +635 -510
- package/packages/core/src/config/accounts.ts +101 -0
- 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/live.ts +14 -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/roles.ts +54 -3
- package/packages/core/src/config/schema.ts +146 -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/compatibility.ts +2 -1
- package/packages/core/src/events/globs.ts +1 -1
- package/packages/core/src/events/payloads.ts +73 -1
- package/packages/core/src/events/policy.ts +7 -0
- package/packages/core/src/events/repository.ts +4 -4
- package/packages/core/src/events/sessions.ts +6 -6
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +574 -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 +85 -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 +3 -7
- package/packages/core/src/operator/landings.ts +5 -1
- package/packages/core/src/operator/presentation.ts +6 -1
- package/packages/core/src/operator/protocol.ts +6 -0
- package/packages/core/src/operator/query.ts +14 -18
- package/packages/core/src/operator/registry.ts +39 -7
- 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/operator/tickets.ts +25 -4
- package/packages/core/src/plugins/manifest.ts +2 -1
- 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/runner/account-env.ts +88 -0
- package/packages/core/src/ports/runner/chatgpt-provider.ts +85 -0
- package/packages/core/src/ports/runner/claude.ts +26 -2
- package/packages/core/src/ports/runner/codex.ts +63 -31
- package/packages/core/src/ports/runner/one-shot.ts +2 -0
- package/packages/core/src/ports/runner/provider-error.ts +5 -0
- package/packages/core/src/ports/runner/routing.ts +35 -4
- package/packages/core/src/ports/tickets/contract.ts +58 -0
- package/packages/core/src/ports/tickets/tree.ts +1 -1
- package/packages/core/src/ports/types.ts +28 -7
- package/packages/core/src/ports/workspace/account-policy.ts +72 -0
- package/packages/core/src/ports/workspace/build-execution.ts +9 -2
- package/packages/core/src/ports/workspace/builtin-capabilities.ts +1 -0
- package/packages/core/src/ports/workspace/create.ts +2 -0
- package/packages/core/src/ports/workspace/git-worktree.ts +6 -1
- package/packages/core/src/ports/workspace/phase-scratch.ts +4 -3
- package/packages/core/src/ports/workspace/provider-capabilities.ts +1 -0
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +182 -72
- 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 +554 -99
- package/packages/core/src/processes/dispatcher.ts +209 -101
- package/packages/core/src/processes/execution-no-progress.ts +8 -1
- package/packages/core/src/processes/execution-settlement.ts +21 -3
- package/packages/core/src/processes/harvest-runner.ts +68 -8
- 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/project-secrets.ts +105 -0
- package/packages/core/src/{integration → scenarios}/harness.ts +330 -317
- package/packages/core/src/secret-name.ts +41 -0
- package/packages/core/src/store/account-redaction.ts +156 -0
- 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 +116 -2
- 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 +5185 -4156
- package/packages/core/src/store/remote/client.ts +89 -48
- package/packages/core/src/store/remote/compatibility.ts +20 -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/dispatch-read-budget.ts +122 -0
- package/packages/core/src/testing/index.ts +12 -1
- package/packages/core/src/testing/reduced-read-budget.ts +47 -0
- 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 +373 -148
- package/skills/guide/references/accounts.md +119 -0
- package/skills/guide/references/integration-tree.md +45 -38
- package/{docs/landing-policy.md → skills/guide/references/merge-policy.md} +40 -24
- package/skills/guide/references/migration-1.0.md +17 -13
- package/skills/guide/references/operator-api.md +180 -51
- package/skills/guide/references/plugin-authoring.md +21 -0
- package/skills/guide/references/remote-store-protocol.md +242 -68
- package/skills/guide/references/remote-ticket-protocol.md +30 -50
- package/skills/guide/references/restacking.md +54 -15
- package/skills/guide/references/setup.md +59 -119
- package/skills/guide/references/spec-standard.md +6 -6
- package/skills/guide/references/ticket-dependencies.md +7 -7
- package/skills/harvest/SKILL.md +3 -1
- package/skills/harvest-review/SKILL.md +3 -1
- package/skills/implement/SKILL.md +43 -17
- package/skills/operate/SKILL.md +118 -118
- 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 +20 -20
- package/skills/tickets/SKILL.md +12 -9
- package/templates/autobuild.toml +1 -1
- package/templates/hosted-service/package.json +2 -2
- package/docs/hosted-dispatcher-cutover-validation.md +0 -178
- package/docs/hosted-dispatcher.md +0 -275
- package/docs/hosted-service.md +0 -293
- package/docs/mcp.md +0 -149
- 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
|
@@ -20,6 +20,195 @@ example](#complete-example) is valid on its own.
|
|
|
20
20
|
|
|
21
21
|
An **acceptance check** is a repository-owned agent verify step that runs the built software, exercises each acceptance criterion in the spec, attaches evidence, and returns a typed verdict. Every repository must configure one. It is not a test suite and leaves no test files behind.
|
|
22
22
|
|
|
23
|
+
## `[accounts]`
|
|
24
|
+
|
|
25
|
+
Named accounts select billing for Claude Code or Codex using the user's own
|
|
26
|
+
subscription or membership. Provision Claude and Kimi credentials manually on
|
|
27
|
+
the dispatcher host; Autobuild never runs `claude setup-token` or collects its
|
|
28
|
+
output. ChatGPT subscription accounts use OpenAI's browser authorization through
|
|
29
|
+
`ab accounts login NAME`; see [ChatGPT subscriptions](accounts.md#chatgpt-subscriptions)
|
|
30
|
+
for destinations, protected storage and the single-refresher rule.
|
|
31
|
+
|
|
32
|
+
<!-- config-fragment:accounts -->
|
|
33
|
+
```toml
|
|
34
|
+
[accounts.personal]
|
|
35
|
+
kind = "claude-subscription"
|
|
36
|
+
credentialEnv = "CLAUDE_CODE_OAUTH_TOKEN"
|
|
37
|
+
|
|
38
|
+
[accounts.kimi]
|
|
39
|
+
kind = "kimi-code"
|
|
40
|
+
credentialEnv = "KIMI_CODE_KEY"
|
|
41
|
+
region = "overseas"
|
|
42
|
+
|
|
43
|
+
[accounts.kimi-china]
|
|
44
|
+
kind = "kimi-code"
|
|
45
|
+
credentialEnv = "KIMI_CHINA_KEY"
|
|
46
|
+
region = "china"
|
|
47
|
+
|
|
48
|
+
[roles.implement]
|
|
49
|
+
runtime = "claude"
|
|
50
|
+
account = "kimi"
|
|
51
|
+
model = "kimi-for-coding"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`account` inherits independently on roles and alternates. Without an explicit
|
|
55
|
+
selection, a Claude route chooses the sole Claude subscription account; multiple
|
|
56
|
+
Claude subscription accounts require an explicit selection. ChatGPT accounts
|
|
57
|
+
require explicit selection on Codex; Claude and Kimi accounts require Claude Code.
|
|
58
|
+
Incompatible runtime selections are rejected. Repositories with no accounts
|
|
59
|
+
retain legacy authentication.
|
|
60
|
+
Locally a Claude subscription can use its named token or the host login; Kimi
|
|
61
|
+
requires its membership key. Invalid Claude/Kimi credentials need renewal
|
|
62
|
+
(`claude setup-token` for Claude, replacement membership key for Kimi). Invalid
|
|
63
|
+
ChatGPT credentials require `ab accounts login NAME` for the owning destination;
|
|
64
|
+
quota and overload failures retain alternate fallback.
|
|
65
|
+
|
|
66
|
+
Choose the region of your Kimi membership. The default `overseas` selects
|
|
67
|
+
`https://api.kimi.ai/coding/`; `china` selects `https://api.kimi.com/coding/`.
|
|
68
|
+
The base URL and egress hostname are fixed together and cannot be overridden
|
|
69
|
+
independently. There is no cross-region retry or assertion that keys work across
|
|
70
|
+
regions. Claude Code keeps its native User-Agent.
|
|
71
|
+
|
|
72
|
+
In Vercel Sandbox the guest holds stable nonsecret placeholders, including when
|
|
73
|
+
credential variables are explicitly allowlisted. The host egress policy replaces
|
|
74
|
+
an exact account placeholder header only on its provider's exact hostname.
|
|
75
|
+
The next dispatcher observation tick refreshes credentials for subsequent
|
|
76
|
+
requests without reprovisioning. Changing a local dispatcher's `.env` still needs
|
|
77
|
+
a restart. Accounts are deployment-owned descriptors; configuration artifacts
|
|
78
|
+
contain variable names, never values. ChatGPT accounts must use credential slots
|
|
79
|
+
distinct from every other account. Existing ChatGPT descriptors cannot be
|
|
80
|
+
replaced or removed during live configuration reload: stop dispatch first, or
|
|
81
|
+
introduce a new account name. This restriction qualifies the hot-reload entries
|
|
82
|
+
below.
|
|
83
|
+
|
|
84
|
+
Validation reports credential readiness and makes one minimal model request per
|
|
85
|
+
declared account, including unused accounts, through its runtime (Claude Code
|
|
86
|
+
for Claude/Kimi, Codex for ChatGPT) in the disposable sandbox. Hosted ChatGPT
|
|
87
|
+
project secrets report readiness from write-only status metadata instead; the
|
|
88
|
+
first hosted build is the live check. See
|
|
89
|
+
[ChatGPT subscriptions](accounts.md#chatgpt-subscriptions).
|
|
90
|
+
|
|
91
|
+
<!-- configuration-reference:accounts -->
|
|
92
|
+
|
|
93
|
+
#### `accounts`
|
|
94
|
+
|
|
95
|
+
**TOML key:** `accounts`
|
|
96
|
+
|
|
97
|
+
- **Type:** `table`
|
|
98
|
+
- **Default:** `{}`
|
|
99
|
+
- **Required:** Optional
|
|
100
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
101
|
+
|
|
102
|
+
**Description:** Named Claude subscription, Kimi Code, or ChatGPT subscription billing accounts. Descriptors contain credential variable names only.
|
|
103
|
+
|
|
104
|
+
**Constraints:** Entry names: nonempty
|
|
105
|
+
|
|
106
|
+
#### `accounts.<name>`
|
|
107
|
+
|
|
108
|
+
**TOML key:** `accounts.<name>`
|
|
109
|
+
|
|
110
|
+
- **Type:** `strict table | strict table | strict table`
|
|
111
|
+
- **Default:** `omitted`
|
|
112
|
+
- **Required:** Required
|
|
113
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
114
|
+
|
|
115
|
+
**Description:** Named nonsecret billing account descriptor.
|
|
116
|
+
|
|
117
|
+
**Constraints:** None beyond the input type.
|
|
118
|
+
|
|
119
|
+
#### `accounts.<name>.kind` (kind = "chatgpt-subscription")
|
|
120
|
+
|
|
121
|
+
**TOML key:** `accounts.<name>.kind`
|
|
122
|
+
|
|
123
|
+
- **Type:** `"chatgpt-subscription"`
|
|
124
|
+
- **Default:** `omitted`
|
|
125
|
+
- **Required:** Required when kind = "chatgpt-subscription"
|
|
126
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
127
|
+
|
|
128
|
+
**Description:** Claude subscription, Kimi Code membership, or ChatGPT subscription (Codex only).
|
|
129
|
+
|
|
130
|
+
**Constraints:** None beyond the input type.
|
|
131
|
+
|
|
132
|
+
#### `accounts.<name>.credentialEnv` (kind = "chatgpt-subscription")
|
|
133
|
+
|
|
134
|
+
**TOML key:** `accounts.<name>.credentialEnv`
|
|
135
|
+
|
|
136
|
+
- **Type:** `string`
|
|
137
|
+
- **Default:** `omitted`
|
|
138
|
+
- **Required:** Required when kind = "chatgpt-subscription"
|
|
139
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
140
|
+
|
|
141
|
+
**Description:** Host credential variable name; ChatGPT names a host-resolved access-token slot, never a credential value.
|
|
142
|
+
|
|
143
|
+
**Constraints:** matches /^[A-Za-z_][A-Za-z0-9_]*$/; Autobuild control variables cannot hold account credentials; Portable environment variable identifier; AB_ control variables are reserved.
|
|
144
|
+
|
|
145
|
+
#### `accounts.<name>.kind` (kind = "claude-subscription")
|
|
146
|
+
|
|
147
|
+
**TOML key:** `accounts.<name>.kind`
|
|
148
|
+
|
|
149
|
+
- **Type:** `"claude-subscription"`
|
|
150
|
+
- **Default:** `omitted`
|
|
151
|
+
- **Required:** Required when kind = "claude-subscription"
|
|
152
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
153
|
+
|
|
154
|
+
**Description:** Claude subscription, Kimi Code membership, or ChatGPT subscription (Codex only).
|
|
155
|
+
|
|
156
|
+
**Constraints:** None beyond the input type.
|
|
157
|
+
|
|
158
|
+
#### `accounts.<name>.credentialEnv` (kind = "claude-subscription")
|
|
159
|
+
|
|
160
|
+
**TOML key:** `accounts.<name>.credentialEnv`
|
|
161
|
+
|
|
162
|
+
- **Type:** `string`
|
|
163
|
+
- **Default:** `omitted`
|
|
164
|
+
- **Required:** Required when kind = "claude-subscription"
|
|
165
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
166
|
+
|
|
167
|
+
**Description:** Host credential variable name; ChatGPT names a host-resolved access-token slot, never a credential value.
|
|
168
|
+
|
|
169
|
+
**Constraints:** matches /^[A-Za-z_][A-Za-z0-9_]*$/; Autobuild control variables cannot hold account credentials; Portable environment variable identifier; AB_ control variables are reserved.
|
|
170
|
+
|
|
171
|
+
#### `accounts.<name>.kind` (kind = "kimi-code")
|
|
172
|
+
|
|
173
|
+
**TOML key:** `accounts.<name>.kind`
|
|
174
|
+
|
|
175
|
+
- **Type:** `"kimi-code"`
|
|
176
|
+
- **Default:** `omitted`
|
|
177
|
+
- **Required:** Required when kind = "kimi-code"
|
|
178
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
179
|
+
|
|
180
|
+
**Description:** Claude subscription, Kimi Code membership, or ChatGPT subscription (Codex only).
|
|
181
|
+
|
|
182
|
+
**Constraints:** None beyond the input type.
|
|
183
|
+
|
|
184
|
+
#### `accounts.<name>.credentialEnv` (kind = "kimi-code")
|
|
185
|
+
|
|
186
|
+
**TOML key:** `accounts.<name>.credentialEnv`
|
|
187
|
+
|
|
188
|
+
- **Type:** `string`
|
|
189
|
+
- **Default:** `omitted`
|
|
190
|
+
- **Required:** Required when kind = "kimi-code"
|
|
191
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
192
|
+
|
|
193
|
+
**Description:** Host credential variable name; ChatGPT names a host-resolved access-token slot, never a credential value.
|
|
194
|
+
|
|
195
|
+
**Constraints:** matches /^[A-Za-z_][A-Za-z0-9_]*$/; Autobuild control variables cannot hold account credentials; Portable environment variable identifier; AB_ control variables are reserved.
|
|
196
|
+
|
|
197
|
+
#### `accounts.<name>.region` (kind = "kimi-code")
|
|
198
|
+
|
|
199
|
+
**TOML key:** `accounts.<name>.region`
|
|
200
|
+
|
|
201
|
+
- **Type:** `"overseas" | "china"`
|
|
202
|
+
- **Default:** `"overseas"`
|
|
203
|
+
- **Required:** Optional when kind = "kimi-code"
|
|
204
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
205
|
+
|
|
206
|
+
**Description:** Membership region: overseas (default) or china. Selects the base URL and exact egress host together.
|
|
207
|
+
|
|
208
|
+
**Constraints:** None beyond the input type.
|
|
209
|
+
|
|
210
|
+
<!-- configuration-reference:/accounts -->
|
|
211
|
+
|
|
23
212
|
## `[store]`
|
|
24
213
|
|
|
25
214
|
<!-- configuration-reference:store -->
|
|
@@ -55,100 +244,14 @@ An **acceptance check** is a repository-owned agent verify step that runs the bu
|
|
|
55
244
|
Selection is explicit `--store` > nonblank `AB_STORE` > `[store] url` > the main
|
|
56
245
|
checkout's `.autobuild/`. A configured service without a user credential fails
|
|
57
246
|
with `ab connect` guidance. `AB_TOKEN` overrides the saved service/project
|
|
58
|
-
credential. See [connecting a project](
|
|
247
|
+
credential. See [connecting a project](setup.md#connect-a-project).
|
|
59
248
|
Changing the store requires restarting dispatch.
|
|
60
249
|
|
|
61
|
-
## Hosted service and PostgreSQL BuildStore environment
|
|
62
|
-
|
|
63
|
-
The optional `@defrex/autobuild-hosted-store-service` and its
|
|
64
|
-
`@defrex/autobuild-postgres-store` adapter are configured entirely through the
|
|
65
|
-
environment. They are published to npm as separate packages alongside the
|
|
66
|
-
`@defrex/autobuild` CLI, so a CLI install never acquires the service,
|
|
67
|
-
PostgreSQL, or blob-provider dependencies; a project that embeds the adapter
|
|
68
|
-
or the service adds the package it needs (`bun add
|
|
69
|
-
@defrex/autobuild-postgres-store` or `bun add
|
|
70
|
-
@defrex/autobuild-hosted-store-service`). The cron-driven hosted dispatcher is
|
|
71
|
-
separately published as `@defrex/autobuild-hosted-dispatcher`; a deployment
|
|
72
|
-
opts into building by installing that package, and its `AB_DISPATCHER_*`
|
|
73
|
-
variables are documented in the [hosted-dispatcher runbook](hosted-dispatcher.md),
|
|
74
|
-
not here. The deployable web application still
|
|
75
|
-
runs from a release checkout: choose the compatible tag shown in
|
|
76
|
-
[GitHub Releases](https://github.com/defrex/autobuild/releases), clone that exact
|
|
77
|
-
revision into a dedicated checkout, and run the idempotent migration there:
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
git clone --depth 1 --branch v0.6.0 --single-branch https://github.com/defrex/autobuild.git autobuild-v0.6.0
|
|
81
|
-
cd autobuild-v0.6.0
|
|
82
|
-
bun install --frozen-lockfile
|
|
83
|
-
DATABASE_URL=postgres://… bun run postgres:migrate
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Replace `v0.6.0` with the selected release tag. Schema diagnostics' root
|
|
87
|
-
`postgres:migrate` script is relative to that pinned checkout. A hosted build
|
|
88
|
-
can run the same step itself: `bun run deploy:build` — run from the hosted
|
|
89
|
-
store service package directory (`packages/hosted-store-service`), the Next.js
|
|
90
|
-
project directory — migrates against the
|
|
91
|
-
deployment's database URL, logs the host it prepared, and then builds the web
|
|
92
|
-
application, failing the build when no database URL is configured or the
|
|
93
|
-
schema is incompatible. The database
|
|
94
|
-
identity needs permission to create tables during migration and to select,
|
|
95
|
-
insert, and update those tables at runtime. The complete run, deployment, and
|
|
96
|
-
token procedure is in the [hosted service
|
|
97
|
-
guide](../packages/hosted-store-service/README.md); clients use the
|
|
98
|
-
separate signed-user token described by the [operator API](operator-api.md).
|
|
99
|
-
|
|
100
|
-
| Variable | Required when | Values / purpose |
|
|
101
|
-
|---|---|---|
|
|
102
|
-
| `AB_STORE_SECRET` | Hosted service | Nonblank HMAC signing secret. Service-side only; never give it to clients. |
|
|
103
|
-
| `AB_HOST` | Optional, ordinary Bun host | Bind hostname; defaults to `0.0.0.0`. Vercel supplies its own listener. |
|
|
104
|
-
| `PORT` | Optional, ordinary Bun host | Integer 1–65535; defaults to `3000`. Vercel supplies its own listener. |
|
|
105
|
-
| `AB_STORE` | Remote client | Hosted service base URL used by the kernel, phase commands, and dashboard. |
|
|
106
|
-
| `AB_TOKEN` | Authenticated remote client | Explicit project bearer credential override for CI; otherwise use ab connect. This is not the signing secret. |
|
|
107
|
-
| `BETTER_AUTH_SECRET` | Web dashboard | Independent server-only session secret with at least 32 high-entropy characters. |
|
|
108
|
-
| `BETTER_AUTH_URL` | Web dashboard | Exact HTTP(S) origin, without credentials or a path; HTTPS is mandatory in production. |
|
|
109
|
-
| `GITHUB_CLIENT_ID` | GitHub sign-in | OAuth application client id. |
|
|
110
|
-
| `GITHUB_CLIENT_SECRET` | GitHub sign-in | Server-only OAuth application secret. |
|
|
111
|
-
| `AB_WEB_AUTH_PROVIDERS` | Web dashboard | Comma-separated provider set; currently exactly `github`. |
|
|
112
|
-
| `AB_WEB_ALLOWED_EMAILS` | Web dashboard | Nonempty comma-separated sign-in email allowlist; matching is case-insensitive. |
|
|
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
|
-
|
|
115
|
-
GitHub's callback is `{BETTER_AUTH_URL}/api/auth/callback/github`; the app needs
|
|
116
|
-
the `user:email` scope (or GitHub App read-only email permission). Sessions are
|
|
117
|
-
database-backed and represented in the browser only by an HTTP-only cookie.
|
|
118
|
-
Allowlist removal takes effect on the next web API request. Never expose these
|
|
119
|
-
secrets, `AB_STORE_SECRET`, database/blob credentials, machine tokens, or OAuth
|
|
120
|
-
account tokens through a `NEXT_PUBLIC_` variable.
|
|
121
|
-
|
|
122
|
-
The following variables configure the service-side durable adapter (or a direct
|
|
123
|
-
use of `@defrex/autobuild-postgres-store`).
|
|
124
|
-
|
|
125
|
-
| Variable | Required when | Values / purpose |
|
|
126
|
-
|---|---|---|
|
|
127
|
-
| `DATABASE_URL` | Always, unless `AB_POSTGRES_URL` is set | Nonblank PostgreSQL connection URL under its conventional name, as Vercel's Neon and Postgres storage integrations inject it. |
|
|
128
|
-
| `AB_POSTGRES_URL` | Optional override | Explicit Autobuild-specific connection URL; a nonblank value wins over `DATABASE_URL`. No other ambient variable is consulted. |
|
|
129
|
-
| `AB_BLOB_BACKEND` | Always | `s3` or `vercel`. |
|
|
130
|
-
| `AB_BLOB_PREFIX` | Optional | Object pathname prefix; redundant `/` characters are normalized. |
|
|
131
|
-
| `AB_S3_BUCKET` | S3 | Bucket name. |
|
|
132
|
-
| `AB_S3_REGION` | S3 | S3 signing region. |
|
|
133
|
-
| `AB_S3_ENDPOINT` | Optional, S3 | Endpoint URL for an S3-compatible service. |
|
|
134
|
-
| `AB_S3_ACCESS_KEY_ID` | S3 | Explicit access key; ambient AWS credential lookup is not used. |
|
|
135
|
-
| `AB_S3_SECRET_ACCESS_KEY` | S3 | Explicit secret key. |
|
|
136
|
-
| `AB_S3_SESSION_TOKEN` | Optional, S3 | Explicit temporary-credential session token. |
|
|
137
|
-
| `AB_S3_FORCE_PATH_STYLE` | Optional, S3 | Exact boolean `true` or `false`. |
|
|
138
|
-
| `AB_VERCEL_BLOB_ACCESS` | Vercel | `public` or `private`. |
|
|
139
|
-
| `BLOB_READ_WRITE_TOKEN` | Vercel auth option | Blob read-write token. |
|
|
140
|
-
| `VERCEL_OIDC_TOKEN` | Vercel OIDC option | Must be paired with `BLOB_STORE_ID` when no read-write token is supplied. |
|
|
141
|
-
| `BLOB_STORE_ID` | Vercel OIDC option | Must be paired with `VERCEL_OIDC_TOKEN`. |
|
|
142
|
-
|
|
143
|
-
S3 identities need `GetObject` and `PutObject` on the bucket/prefix. The adapter
|
|
144
|
-
maps only a provider 404 to absence and propagates authorization/service errors.
|
|
145
|
-
Vercel object names are deterministic and overwritten idempotently.
|
|
146
|
-
|
|
147
250
|
## Strict parsing and validation
|
|
148
251
|
|
|
149
252
|
Parsing is strict. Unknown top-level keys or tables, unknown fields in a known
|
|
150
253
|
table, fields from the wrong step variant, malformed values, and dangling
|
|
151
|
-
command references are errors. The open maps are `[commands]`, `[roles]`,
|
|
254
|
+
command references are errors. The open maps are `[accounts]`, `[commands]`, `[roles]`,
|
|
152
255
|
`[workspace.config]`, `[workspace.config.runtimeProvisioning]`,
|
|
153
256
|
`[verify.<step>]`, and `[finalize.<step>]`. Autobuild
|
|
154
257
|
validates repository-defined command, role, and step entries.
|
|
@@ -188,7 +291,7 @@ instead: a push to the base branch is honored by a later tick without
|
|
|
188
291
|
restarting anything. Hot fields apply immediately; restart-classified fields
|
|
189
292
|
keep the startup-built adapters and file the existing restart-required notice
|
|
190
293
|
(a long-lived origin-mode watch picks them up on its next process restart;
|
|
191
|
-
|
|
294
|
+
origin-mode dispatch reads configuration from the forge).
|
|
192
295
|
Each dispatch, build, check, or agent action captures the accepted configuration
|
|
193
296
|
snapshot at its start boundary: work already running is not interrupted, while
|
|
194
297
|
the next setup or pipeline step of the same in-flight build uses the new
|
|
@@ -209,8 +312,8 @@ the worktree file has uncommitted edits, because the clean/dirty comparison
|
|
|
209
312
|
could not be performed (non-git workspace or a transient git error), or because
|
|
210
313
|
the branch head never carried the file — the deposit records the source
|
|
211
314
|
`worktree-dirty` with no commit. The build still runs the worktree bytes, but
|
|
212
|
-
provenance declines to attribute them to any commit. **Deployment-owned** sections — `[roles]`
|
|
213
|
-
(runtime, model, args, alternates, per-role `sessionBudgetSeconds`) and
|
|
315
|
+
provenance declines to attribute them to any commit. **Deployment-owned** sections — `[accounts]` and `[roles]`
|
|
316
|
+
(runtime, model, account, args, alternates, per-role `sessionBudgetSeconds`) and
|
|
214
317
|
`[policy]` — keep flowing live. **Dispatcher-owned** sections (`baseBranch`,
|
|
215
318
|
`capacity`, `ticketScanIntervalSeconds`, `forge`, `plugins`, `pr`, `tickets`, `orchestrator`) configure the
|
|
216
319
|
dispatcher itself and are never interpreted by the build runner.
|
|
@@ -218,11 +321,32 @@ dispatcher itself and are never interpreted by the build runner.
|
|
|
218
321
|
Consequently, an accepted base-branch reload re-deposits only the
|
|
219
322
|
deployment-owned sections to active builds; it does not retarget an in-flight
|
|
220
323
|
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
|
|
324
|
+
that receives a pipeline change in its checkout picks it up at the next
|
|
325
|
+
settled verify boundary. In-flight environments are never re-provisioned: a fresh build
|
|
224
326
|
from the new base is the path for a changed provisioning definition.
|
|
225
327
|
|
|
328
|
+
At every verify-cycle entry, after restack or reconcile settles, the runner
|
|
329
|
+
reads `autobuild.toml` from the execution checkout at resolved `HEAD` (including
|
|
330
|
+
detached integration heads). `verify.config-captured` cites an immutable
|
|
331
|
+
`verify-cycle-config` artifact revision, checkout head, build-owned content
|
|
332
|
+
identity and truthful source metadata. Dirty worktree bytes carry
|
|
333
|
+
`worktree-dirty` without a commit. A settled stage boundary rechecks the
|
|
334
|
+
build-owned sections and the known source commit's ancestry. A change or
|
|
335
|
+
non-ancestor source records `verify.config-superseded` and starts a fresh cycle
|
|
336
|
+
before constructing any further member. Already launched siblings settle first.
|
|
337
|
+
A waiting leaf with completed verification retains its receipts after a clean
|
|
338
|
+
rewrite when build-owned config is unchanged, even when the rewrite replaces
|
|
339
|
+
the pin commit's ancestry. Changed config still supersedes while waiting; a
|
|
340
|
+
future verification cycle always captures fresh config before running steps.
|
|
341
|
+
Old pass/skip receipts cannot satisfy that cycle, and supersession creates no
|
|
342
|
+
failure or failure-budget charge. Unchanged config on a descendant head retains
|
|
343
|
+
its pin; every new cycle still rereads the checkout. Read, parse and Git evidence
|
|
344
|
+
failures block verification as infrastructure failures. Recovery and readiness
|
|
345
|
+
read the capture's exact revision, so a concurrent deployment reload cannot
|
|
346
|
+
replace its build-owned sections. Historical streams capture before further
|
|
347
|
+
verification. Deployment-owned reloads remain live; environments are not
|
|
348
|
+
re-provisioned.
|
|
349
|
+
|
|
226
350
|
Every accepted revision is deposited verbatim as a `dispatcher-config`
|
|
227
351
|
repository artifact and referenced by a `dispatcher.config-reloaded` repository
|
|
228
352
|
event. The dashboard reports the reload and reprojects values such as capacity;
|
|
@@ -246,10 +370,11 @@ These fields hot-reload:
|
|
|
246
370
|
| `ticketScanIntervalSeconds` | Next tick; evaluates elapsed time against the new interval. |
|
|
247
371
|
| `capacity` | Next dispatcher tick. |
|
|
248
372
|
| `[pr]` | Next build creation. |
|
|
249
|
-
| `[
|
|
373
|
+
| `[merge]` (ordered `[[merge]]` rules) | Dispatcher-owned policy; next new readiness decision. Existing decisions retain their sampled rule. |
|
|
250
374
|
| `[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
|
|
375
|
+
| `[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
376
|
| `[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. |
|
|
377
|
+
| `[accounts]` | Descriptors are adopted atomically with roles at the next session boundary, except existing ChatGPT descriptors require stopped dispatch before replacement or removal (see [accounts](#accounts)); credentials refresh on observation ticks. |
|
|
253
378
|
| `[roles]` | Next agent invocation for that role. Runtime, model, args, alternates, and the session budget are captured together and delivered live. |
|
|
254
379
|
| `[upgrade]` | Cancels preparation when disabled; automatic target checks every 60 seconds. |
|
|
255
380
|
| `[policy]` | Next policy, convergence, or agent-session boundary, delivered live. A running session keeps its captured budget. |
|
|
@@ -546,30 +671,34 @@ runtime's optional one-shot capability serves slug naming and lazy upgrade
|
|
|
546
671
|
conflict resolution; when absent, each caller retains its existing safe
|
|
547
672
|
fallback.
|
|
548
673
|
|
|
549
|
-
## `[[
|
|
674
|
+
## `[[merge]]`
|
|
550
675
|
|
|
551
|
-
An ordered list of strict
|
|
676
|
+
An ordered list of strict merge rules. Predicates within one rule are ANDed;
|
|
552
677
|
the first matching rule wins. Omitted predicates match everything. With no
|
|
553
678
|
matching rule, leaves default to `auto` and nodes to `consent`.
|
|
554
679
|
|
|
555
|
-
|
|
680
|
+
The deprecated `[[landing]]` spelling accepts identical rules and emits a warning.
|
|
681
|
+
Do not declare both spellings, even as empty arrays. `ab upgrade` migrates the
|
|
682
|
+
old key without changing policy values or order. See [deprecated spellings](merge-policy.md#deprecated-spellings).
|
|
556
683
|
|
|
557
|
-
|
|
684
|
+
<!-- configuration-reference:merge -->
|
|
558
685
|
|
|
559
|
-
|
|
686
|
+
#### `merge`
|
|
687
|
+
|
|
688
|
+
**TOML key:** `merge`
|
|
560
689
|
|
|
561
690
|
- **Type:** `array of strict table`
|
|
562
|
-
- **Default:** `
|
|
691
|
+
- **Default:** `omitted`
|
|
563
692
|
- **Required:** Optional
|
|
564
693
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
565
694
|
|
|
566
|
-
**Description:** Ordered
|
|
695
|
+
**Description:** Ordered merge rules; the first matching rule controls consent.
|
|
567
696
|
|
|
568
697
|
**Constraints:** None beyond the input type.
|
|
569
698
|
|
|
570
|
-
#### `
|
|
699
|
+
#### `merge[].into`
|
|
571
700
|
|
|
572
|
-
**TOML key:** `
|
|
701
|
+
**TOML key:** `merge[].into`
|
|
573
702
|
|
|
574
703
|
- **Type:** `string`
|
|
575
704
|
- **Default:** `omitted`
|
|
@@ -580,9 +709,9 @@ matching rule, leaves default to `auto` and nodes to `consent`.
|
|
|
580
709
|
|
|
581
710
|
**Constraints:** into must be root, node, or a nonblank node ticket id
|
|
582
711
|
|
|
583
|
-
#### `
|
|
712
|
+
#### `merge[].from`
|
|
584
713
|
|
|
585
|
-
**TOML key:** `
|
|
714
|
+
**TOML key:** `merge[].from`
|
|
586
715
|
|
|
587
716
|
- **Type:** `"leaf" | "node"`
|
|
588
717
|
- **Default:** `omitted`
|
|
@@ -593,9 +722,9 @@ matching rule, leaves default to `auto` and nodes to `consent`.
|
|
|
593
722
|
|
|
594
723
|
**Constraints:** None beyond the input type.
|
|
595
724
|
|
|
596
|
-
#### `
|
|
725
|
+
#### `merge[].label`
|
|
597
726
|
|
|
598
|
-
**TOML key:** `
|
|
727
|
+
**TOML key:** `merge[].label`
|
|
599
728
|
|
|
600
729
|
- **Type:** `string`
|
|
601
730
|
- **Default:** `omitted`
|
|
@@ -606,20 +735,20 @@ matching rule, leaves default to `auto` and nodes to `consent`.
|
|
|
606
735
|
|
|
607
736
|
**Constraints:** label must be nonblank (labels match exactly, including case)
|
|
608
737
|
|
|
609
|
-
#### `
|
|
738
|
+
#### `merge[].mode`
|
|
610
739
|
|
|
611
|
-
**TOML key:** `
|
|
740
|
+
**TOML key:** `merge[].mode`
|
|
612
741
|
|
|
613
742
|
- **Type:** `"auto" | "consent"`
|
|
614
743
|
- **Default:** `omitted`
|
|
615
744
|
- **Required:** Required
|
|
616
745
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
617
746
|
|
|
618
|
-
**Description:** Choose automatic
|
|
747
|
+
**Description:** Choose automatic merge or require recorded consent.
|
|
619
748
|
|
|
620
749
|
**Constraints:** None beyond the input type.
|
|
621
750
|
|
|
622
|
-
<!-- configuration-reference:/
|
|
751
|
+
<!-- configuration-reference:/merge -->
|
|
623
752
|
|
|
624
753
|
For example, put a rule with `into = "root"` and `mode = "consent"`
|
|
625
754
|
before a catch-all rule with `mode = "auto"` to request consent only at the
|
|
@@ -628,10 +757,10 @@ match the build's frozen destination, rather than the ticket's current parent.
|
|
|
628
757
|
|
|
629
758
|
A readiness decision retains the complete matched rule and index (or an explicit
|
|
630
759
|
default), source kind, destination and sampled labels. Later policy edits do not
|
|
631
|
-
rewrite this provenance.
|
|
760
|
+
rewrite this provenance. Merge policy belongs to the live dispatcher config;
|
|
632
761
|
it is excluded from pinned pipeline settings and integration verification inputs.
|
|
633
|
-
See [worked
|
|
634
|
-
[operating controls](#
|
|
762
|
+
See [worked merge configurations and forge requirements](merge-policy.md),
|
|
763
|
+
[operating controls](#merge-policy), and
|
|
635
764
|
[migration from 0.x](migration-1.0.md).
|
|
636
765
|
|
|
637
766
|
## `[pr]`
|
|
@@ -767,7 +896,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
|
|
|
767
896
|
- **Type:** `strict table`
|
|
768
897
|
- **Default:** `{} (input supplied on omission; nested defaults apply)`
|
|
769
898
|
- **Required:** Optional
|
|
770
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
899
|
+
- **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
900
|
|
|
772
901
|
**Description:** Workspace provider selector and provider-specific configuration.
|
|
773
902
|
|
|
@@ -780,7 +909,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
|
|
|
780
909
|
- **Type:** `string`
|
|
781
910
|
- **Default:** `"git-worktree"`
|
|
782
911
|
- **Required:** Optional
|
|
783
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
912
|
+
- **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
913
|
|
|
785
914
|
**Description:** Select the provider used for provisioning, recovery, PR epilogue working-directory calls, and release.
|
|
786
915
|
|
|
@@ -793,7 +922,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
|
|
|
793
922
|
- **Type:** `table`
|
|
794
923
|
- **Default:** `{} (input supplied on omission)`
|
|
795
924
|
- **Required:** Optional
|
|
796
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
925
|
+
- **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
926
|
|
|
798
927
|
**Description:** Adapter-specific declarative configuration passed unchanged to the selected plugin factory.
|
|
799
928
|
|
|
@@ -806,7 +935,7 @@ table is strict; only the explicit nested `config` table is plugin-owned.
|
|
|
806
935
|
- **Type:** `plugin-owned TOML value`
|
|
807
936
|
- **Default:** `omitted`
|
|
808
937
|
- **Required:** Required
|
|
809
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
938
|
+
- **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
939
|
|
|
811
940
|
**Description:** Plugin-owned value passed through unchanged. Builtin providers validate their own declared schema.
|
|
812
941
|
|
|
@@ -832,7 +961,7 @@ before claims and list every available builtin and plugin provider.
|
|
|
832
961
|
|
|
833
962
|
### Vercel Sandbox
|
|
834
963
|
|
|
835
|
-
Remote execution is explicit and requires the
|
|
964
|
+
Remote execution is explicit and requires an HTTPS remote store that speaks the remote BuildStore protocol plus its
|
|
836
965
|
scoped token, an HTTPS `github.com/owner/repository` origin, `forge = "github"`,
|
|
837
966
|
and Vercel authentication. Use either `VERCEL_OIDC_TOKEN`, or all of
|
|
838
967
|
`VERCEL_TOKEN`, `VERCEL_TEAM_ID`, and `VERCEL_PROJECT_ID`. The dispatcher also
|
|
@@ -877,7 +1006,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
877
1006
|
- **Type:** `strict table`
|
|
878
1007
|
- **Default:** `omitted`
|
|
879
1008
|
- **Required:** Required
|
|
880
|
-
- **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.
|
|
881
1010
|
|
|
882
1011
|
**Description:** Strict Vercel workspace provisioning configuration.
|
|
883
1012
|
|
|
@@ -890,7 +1019,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
890
1019
|
- **Type:** `string`
|
|
891
1020
|
- **Default:** `"vercel/sandbox/universal:latest"`
|
|
892
1021
|
- **Required:** Optional
|
|
893
|
-
- **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.
|
|
894
1023
|
|
|
895
1024
|
**Description:** Managed image used to provision the workspace.
|
|
896
1025
|
|
|
@@ -903,7 +1032,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
903
1032
|
- **Type:** `number`
|
|
904
1033
|
- **Default:** `4`
|
|
905
1034
|
- **Required:** Optional
|
|
906
|
-
- **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.
|
|
907
1036
|
|
|
908
1037
|
**Description:** Virtual CPUs allocated to each workspace; provider account limits may further restrict allocation.
|
|
909
1038
|
|
|
@@ -916,7 +1045,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
916
1045
|
- **Type:** `number`
|
|
917
1046
|
- **Default:** `omitted`
|
|
918
1047
|
- **Required:** Required
|
|
919
|
-
- **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.
|
|
920
1049
|
|
|
921
1050
|
**Description:** VM/session lifetime in seconds and abrupt-orphan bound. Provider plan limits also apply.
|
|
922
1051
|
|
|
@@ -929,7 +1058,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
929
1058
|
- **Type:** `number`
|
|
930
1059
|
- **Default:** `30000`
|
|
931
1060
|
- **Required:** Optional
|
|
932
|
-
- **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.
|
|
933
1062
|
|
|
934
1063
|
**Description:** Deadline in milliseconds for each provider acknowledgement, independent of session lifetime.
|
|
935
1064
|
|
|
@@ -942,7 +1071,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
942
1071
|
- **Type:** `number`
|
|
943
1072
|
- **Default:** `omitted`
|
|
944
1073
|
- **Required:** Optional
|
|
945
|
-
- **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.
|
|
946
1075
|
|
|
947
1076
|
**Description:** Snapshot expiration in seconds. Omission uses the provider expiration policy.
|
|
948
1077
|
|
|
@@ -955,7 +1084,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
955
1084
|
- **Type:** `string`
|
|
956
1085
|
- **Default:** `omitted`
|
|
957
1086
|
- **Required:** Optional
|
|
958
|
-
- **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.
|
|
959
1088
|
|
|
960
1089
|
**Description:** Primary region; omission uses the provider region selection.
|
|
961
1090
|
|
|
@@ -968,7 +1097,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
968
1097
|
- **Type:** `array of string`
|
|
969
1098
|
- **Default:** `[]`
|
|
970
1099
|
- **Required:** Optional
|
|
971
|
-
- **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.
|
|
972
1101
|
|
|
973
1102
|
**Description:** Ordered alternative regions used if the primary region cannot provision a workspace.
|
|
974
1103
|
|
|
@@ -981,7 +1110,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
981
1110
|
- **Type:** `array of string`
|
|
982
1111
|
- **Default:** `[]`
|
|
983
1112
|
- **Required:** Optional
|
|
984
|
-
- **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.
|
|
985
1114
|
|
|
986
1115
|
**Description:** unique API-credential variable names copied into runtime and agent/check commands
|
|
987
1116
|
|
|
@@ -994,7 +1123,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
994
1123
|
- **Type:** `array of strict table`
|
|
995
1124
|
- **Default:** `[]`
|
|
996
1125
|
- **Required:** Optional
|
|
997
|
-
- **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.
|
|
998
1127
|
|
|
999
1128
|
**Description:** ordered strict inline tables `{ name, command }`; names and commands are nonblank and names are unique
|
|
1000
1129
|
|
|
@@ -1007,7 +1136,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1007
1136
|
- **Type:** `string`
|
|
1008
1137
|
- **Default:** `omitted`
|
|
1009
1138
|
- **Required:** Required
|
|
1010
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1139
|
+
- **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
1140
|
|
|
1012
1141
|
**Description:** Unique provisioning step name. Must contain a non-whitespace character.
|
|
1013
1142
|
|
|
@@ -1020,7 +1149,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1020
1149
|
- **Type:** `string`
|
|
1021
1150
|
- **Default:** `omitted`
|
|
1022
1151
|
- **Required:** Required
|
|
1023
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1152
|
+
- **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
1153
|
|
|
1025
1154
|
**Description:** Shell command executed in declaration order during provisioning. Must contain a non-whitespace character.
|
|
1026
1155
|
|
|
@@ -1033,7 +1162,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1033
1162
|
- **Type:** `table`
|
|
1034
1163
|
- **Default:** `{} (input supplied on omission)`
|
|
1035
1164
|
- **Required:** Optional
|
|
1036
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1165
|
+
- **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
1166
|
|
|
1038
1167
|
**Description:** open map keyed by every effective role/alternate runtime; each entry requires `install` and `preflight`
|
|
1039
1168
|
|
|
@@ -1046,7 +1175,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1046
1175
|
- **Type:** `strict table`
|
|
1047
1176
|
- **Default:** `omitted`
|
|
1048
1177
|
- **Required:** Required
|
|
1049
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1178
|
+
- **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
1179
|
|
|
1051
1180
|
**Description:** Installation and preflight commands for an effective runtime. Every effective role or alternate runtime must have an entry.
|
|
1052
1181
|
|
|
@@ -1059,7 +1188,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1059
1188
|
- **Type:** `string`
|
|
1060
1189
|
- **Default:** `omitted`
|
|
1061
1190
|
- **Required:** Required
|
|
1062
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1191
|
+
- **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
1192
|
|
|
1064
1193
|
**Description:** required nonblank shell command; use an immutable package version, digest, or commit
|
|
1065
1194
|
|
|
@@ -1072,7 +1201,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1072
1201
|
- **Type:** `string`
|
|
1073
1202
|
- **Default:** `omitted`
|
|
1074
1203
|
- **Required:** Required
|
|
1075
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1204
|
+
- **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
1205
|
|
|
1077
1206
|
**Description:** required nonblank shell command; verify the expected executable and exact version
|
|
1078
1207
|
|
|
@@ -1085,7 +1214,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1085
1214
|
- **Type:** `string`
|
|
1086
1215
|
- **Default:** `omitted`
|
|
1087
1216
|
- **Required:** Optional
|
|
1088
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1217
|
+
- **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
1218
|
|
|
1090
1219
|
**Description:** optional variable name for the dedicated read-only clone username; requires `gitPasswordEnv`
|
|
1091
1220
|
|
|
@@ -1098,7 +1227,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1098
1227
|
- **Type:** `string`
|
|
1099
1228
|
- **Default:** `omitted`
|
|
1100
1229
|
- **Required:** Optional
|
|
1101
|
-
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the
|
|
1230
|
+
- **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
1231
|
|
|
1103
1232
|
**Description:** optional variable name for the dedicated read-only clone password; requires `gitUsernameEnv`
|
|
1104
1233
|
|
|
@@ -1172,7 +1301,7 @@ by reinstalling the archive before reuse, so an upgraded dispatcher retrofits
|
|
|
1172
1301
|
its persistent guests. Cached registry generations deliver their own manifest
|
|
1173
1302
|
version’s validated GitHub release asset, resolved on first guest use and cached
|
|
1174
1303
|
separately from the normalized host archive. Local launches need no asset fetch; source generations deliver exact packed source bytes (see "Guest distribution version selection and delivery"
|
|
1175
|
-
in docs/setup.md for the release-and-upgrade delivery path and the
|
|
1304
|
+
in docs/setup.md for the release-and-upgrade delivery path and the instance
|
|
1176
1305
|
store's supported client window). Immediately
|
|
1177
1306
|
before every build-child launch, the adapter verifies the
|
|
1178
1307
|
provisioned absolute Bun executable and every referenced runtime again. A
|
|
@@ -1186,7 +1315,7 @@ local supervisor only after the remote command exits, the VM is stopped, and
|
|
|
1186
1315
|
the execution lease is released. The supervisor uses a narrow credential
|
|
1187
1316
|
transform for a fixed non-force push and verifies the remote head before
|
|
1188
1317
|
recording completion; PR API work stays local. If that acknowledgement is lost
|
|
1189
|
-
after the push
|
|
1318
|
+
after the push succeeds, the next launch observes the exact remote branch head and
|
|
1190
1319
|
records the missing completion before allowing a replacement phase to run. If
|
|
1191
1320
|
the commit is absent, release of the old workspace abandons its request and the
|
|
1192
1321
|
replacement reruns the phase. Before every guest runner launch, the provider
|
|
@@ -1234,7 +1363,7 @@ and configured agent-runtime credentials available, run:
|
|
|
1234
1363
|
AB_RUN_VERCEL_SANDBOX_LIVE=1 \
|
|
1235
1364
|
AB_VERCEL_SANDBOX_LIVE_REPO=/absolute/path/to/consumer \
|
|
1236
1365
|
AB_STORE=https://store.example AB_TOKEN=… \
|
|
1237
|
-
bun test packages/core/src/
|
|
1366
|
+
bun test packages/core/src/scenarios/vercel-sandbox.live.test.ts
|
|
1238
1367
|
```
|
|
1239
1368
|
|
|
1240
1369
|
The suite first runs `ab init` readiness validation through the production
|
|
@@ -1248,15 +1377,14 @@ Vercel images or package managers.
|
|
|
1248
1377
|
Vercel workspaces return an absolute guest `path` plus an opaque sandbox-name
|
|
1249
1378
|
`ref`; they omit dispatcher-local path evidence. Branch config, relative/package
|
|
1250
1379
|
plugins, installed skills, setup, runtimes, checks, and phase CLI commands all
|
|
1251
|
-
resolve in the guest checkout. Only names in `environmentVariables
|
|
1380
|
+
resolve in the guest checkout. Only names in `environmentVariables`, declared account placeholders, and scoped `AB_STORE`/`AB_TOKEN` enter
|
|
1252
1381
|
commands—dispatcher environment variables are never copied wholesale. Pi in a
|
|
1253
1382
|
sandbox should use an API-key provider such as `vercel-ai-gateway/...` with
|
|
1254
|
-
`AI_GATEWAY_API_KEY`; never copy dispatcher `~/.pi` state, OAuth refresh tokens,
|
|
1255
|
-
or attempt an interactive login.
|
|
1256
|
-
Claude Code, and plugin runtimes.
|
|
1383
|
+
`AI_GATEWAY_API_KEY`; never copy dispatcher `~/.pi` state, Pi OAuth refresh tokens,
|
|
1384
|
+
or attempt an interactive login. Plugin runtimes retain their existing API authentication. Claude Code can select a subscription or Kimi billing account. Codex can explicitly select a ChatGPT subscription authorized with `bun ab accounts login NAME`; one local dispatcher or hosted refreshing secret owns renewal, and the real tokens stay on the host.
|
|
1257
1385
|
|
|
1258
1386
|
The opt-in live lifecycle suite is
|
|
1259
|
-
`packages/core/src/
|
|
1387
|
+
`packages/core/src/scenarios/vercel-sandbox.live.test.ts`. Set
|
|
1260
1388
|
`AB_RUN_VERCEL_SANDBOX_LIVE=1`, `AB_VERCEL_SANDBOX_LIVE_REPO` to an independent
|
|
1261
1389
|
checkout with a ready file ticket and this provider configuration, plus the
|
|
1262
1390
|
hosted Store, Vercel, runtime, and GitHub credentials above. Its readiness case
|
|
@@ -1283,7 +1411,7 @@ schema fields.
|
|
|
1283
1411
|
- **Type:** `table`
|
|
1284
1412
|
- **Default:** `{} (input supplied on omission)`
|
|
1285
1413
|
- **Required:** Optional
|
|
1286
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1414
|
+
- **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
1415
|
|
|
1288
1416
|
**Description:** Named shell commands used by setup and deterministic checks.
|
|
1289
1417
|
|
|
@@ -1296,7 +1424,7 @@ schema fields.
|
|
|
1296
1424
|
- **Type:** `string`
|
|
1297
1425
|
- **Default:** `omitted`
|
|
1298
1426
|
- **Required:** Required
|
|
1299
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1427
|
+
- **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
1428
|
|
|
1301
1429
|
**Description:** Named deterministic shell command.
|
|
1302
1430
|
|
|
@@ -1334,8 +1462,9 @@ For example, set `afterReconcile = false` in `[verify]` and
|
|
|
1334
1462
|
|
|
1335
1463
|
The kernel freezes the resolved ordered policy in
|
|
1336
1464
|
`verify.reconcile-policy-captured` at the next engine action after reconcile
|
|
1337
|
-
completion.
|
|
1338
|
-
|
|
1465
|
+
completion. A cycle already started keeps its policy through recovery.
|
|
1466
|
+
Configuration supersession starts a fresh cycle and captures a new policy for
|
|
1467
|
+
its configured universe, retaining the original reconcile identity. Historical cycles already started
|
|
1339
1468
|
without a captured policy retain the rerun-all behavior. Initial verification
|
|
1340
1469
|
and verification after subsequent code review always use ordinary applicability.
|
|
1341
1470
|
Policy exclusion precedes plan selection and paths, including `always = true`.
|
|
@@ -1344,7 +1473,7 @@ Enabled steps still follow plan selection and path rules. Excluded steps record
|
|
|
1344
1473
|
and a reason naming the setting. Dashboards and PR summaries call this
|
|
1345
1474
|
"skipped by post-reconcile policy"; it is never a pass. Forge-side required
|
|
1346
1475
|
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
|
|
1476
|
+
is not re-verified, so breakage that only exists in the combination can merge.
|
|
1348
1477
|
|
|
1349
1478
|
|
|
1350
1479
|
`[verify].steps` defines the configured universe and execution order. It is
|
|
@@ -1368,9 +1497,9 @@ There are two strict step variants:
|
|
|
1368
1497
|
- **Type:** `table`
|
|
1369
1498
|
- **Default:** `{} (input supplied on omission)`
|
|
1370
1499
|
- **Required:** Optional
|
|
1371
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1500
|
+
- **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
1501
|
|
|
1373
|
-
**Description:** Ordered verification steps and applicability rules.
|
|
1502
|
+
**Description:** Ordered verification steps and applicability rules. Step names use ASCII letters, digits, ., _ and -; exactly . and .. are forbidden.
|
|
1374
1503
|
|
|
1375
1504
|
**Constraints:** None beyond the input type.
|
|
1376
1505
|
|
|
@@ -1378,14 +1507,14 @@ There are two strict step variants:
|
|
|
1378
1507
|
|
|
1379
1508
|
**TOML key:** `verify.steps`
|
|
1380
1509
|
|
|
1381
|
-
- **Type:** `array of string`
|
|
1510
|
+
- **Type:** `array of (string | array of string)`
|
|
1382
1511
|
- **Default:** `[]`
|
|
1383
1512
|
- **Required:** Optional
|
|
1384
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1513
|
+
- **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
1514
|
|
|
1386
|
-
**Description:** Ordered
|
|
1515
|
+
**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
1516
|
|
|
1388
|
-
**Constraints:** Each
|
|
1517
|
+
**Constraints:** Each name is nonempty; each grouped stage contains at least one nonempty name. Names must be unique within and across stages.
|
|
1389
1518
|
|
|
1390
1519
|
#### `verify.afterReconcile`
|
|
1391
1520
|
|
|
@@ -1394,7 +1523,7 @@ There are two strict step variants:
|
|
|
1394
1523
|
- **Type:** `boolean`
|
|
1395
1524
|
- **Default:** `true`
|
|
1396
1525
|
- **Required:** Optional
|
|
1397
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1526
|
+
- **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
1527
|
|
|
1399
1528
|
**Description:** Whether verification runs after reconciliation. A step override takes precedence.
|
|
1400
1529
|
|
|
@@ -1407,7 +1536,7 @@ There are two strict step variants:
|
|
|
1407
1536
|
- **Type:** `strict table | strict table`
|
|
1408
1537
|
- **Default:** `omitted`
|
|
1409
1538
|
- **Required:** Required
|
|
1410
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1539
|
+
- **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
1540
|
|
|
1412
1541
|
**Description:** Named step. Select exactly one strict variant using kind; command belongs only to check, skill only to agent.
|
|
1413
1542
|
|
|
@@ -1420,7 +1549,7 @@ There are two strict step variants:
|
|
|
1420
1549
|
- **Type:** `"check"`
|
|
1421
1550
|
- **Default:** `omitted`
|
|
1422
1551
|
- **Required:** Required when kind = "check"
|
|
1423
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1552
|
+
- **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
1553
|
|
|
1425
1554
|
**Description:** Select the strict step variant. Fields from another variant are rejected.
|
|
1426
1555
|
|
|
@@ -1433,12 +1562,25 @@ There are two strict step variants:
|
|
|
1433
1562
|
- **Type:** `string`
|
|
1434
1563
|
- **Default:** `omitted`
|
|
1435
1564
|
- **Required:** Required when kind = "check"
|
|
1436
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1565
|
+
- **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
1566
|
|
|
1438
1567
|
**Description:** Name of an existing command in [commands]; required for check steps and forbidden for agent steps.
|
|
1439
1568
|
|
|
1440
1569
|
**Constraints:** minimum length 1
|
|
1441
1570
|
|
|
1571
|
+
#### `verify.<step>.failFast` (kind = "check")
|
|
1572
|
+
|
|
1573
|
+
**TOML key:** `verify.<step>.failFast`
|
|
1574
|
+
|
|
1575
|
+
- **Type:** `boolean`
|
|
1576
|
+
- **Default:** `false (omission is preserved)`
|
|
1577
|
+
- **Required:** Optional when kind = "check"
|
|
1578
|
+
- **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.
|
|
1579
|
+
|
|
1580
|
+
**Description:** Cancel unfinished members of this stage when this step fails. Defaults to false.
|
|
1581
|
+
|
|
1582
|
+
**Constraints:** None beyond the input type.
|
|
1583
|
+
|
|
1442
1584
|
#### `verify.<step>.afterReconcile` (kind = "check")
|
|
1443
1585
|
|
|
1444
1586
|
**TOML key:** `verify.<step>.afterReconcile`
|
|
@@ -1446,7 +1588,7 @@ There are two strict step variants:
|
|
|
1446
1588
|
- **Type:** `boolean`
|
|
1447
1589
|
- **Default:** `omitted`
|
|
1448
1590
|
- **Required:** Optional when kind = "check"
|
|
1449
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1591
|
+
- **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
1592
|
|
|
1451
1593
|
**Description:** Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only.
|
|
1452
1594
|
|
|
@@ -1459,7 +1601,7 @@ There are two strict step variants:
|
|
|
1459
1601
|
- **Type:** `array of string`
|
|
1460
1602
|
- **Default:** `omitted`
|
|
1461
1603
|
- **Required:** Optional when kind = "check"
|
|
1462
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1604
|
+
- **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
1605
|
|
|
1464
1606
|
**Description:** Apply only when at least one changed path matches. Available to both variants.
|
|
1465
1607
|
|
|
@@ -1472,7 +1614,7 @@ There are two strict step variants:
|
|
|
1472
1614
|
- **Type:** `boolean`
|
|
1473
1615
|
- **Default:** `omitted`
|
|
1474
1616
|
- **Required:** Optional when kind = "check"
|
|
1475
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1617
|
+
- **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
1618
|
|
|
1477
1619
|
**Description:** `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants.
|
|
1478
1620
|
|
|
@@ -1485,7 +1627,7 @@ There are two strict step variants:
|
|
|
1485
1627
|
- **Type:** `"agent"`
|
|
1486
1628
|
- **Default:** `omitted`
|
|
1487
1629
|
- **Required:** Required when kind = "agent"
|
|
1488
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1630
|
+
- **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
1631
|
|
|
1490
1632
|
**Description:** Select the strict step variant. Fields from another variant are rejected.
|
|
1491
1633
|
|
|
@@ -1498,12 +1640,25 @@ There are two strict step variants:
|
|
|
1498
1640
|
- **Type:** `string`
|
|
1499
1641
|
- **Default:** `omitted`
|
|
1500
1642
|
- **Required:** Required when kind = "agent"
|
|
1501
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1643
|
+
- **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
1644
|
|
|
1503
1645
|
**Description:** Exact installed skill name; required for agent steps and forbidden for check steps.
|
|
1504
1646
|
|
|
1505
1647
|
**Constraints:** minimum length 1
|
|
1506
1648
|
|
|
1649
|
+
#### `verify.<step>.failFast` (kind = "agent")
|
|
1650
|
+
|
|
1651
|
+
**TOML key:** `verify.<step>.failFast`
|
|
1652
|
+
|
|
1653
|
+
- **Type:** `boolean`
|
|
1654
|
+
- **Default:** `false (omission is preserved)`
|
|
1655
|
+
- **Required:** Optional when kind = "agent"
|
|
1656
|
+
- **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.
|
|
1657
|
+
|
|
1658
|
+
**Description:** Cancel unfinished members of this stage when this step fails. Defaults to false.
|
|
1659
|
+
|
|
1660
|
+
**Constraints:** None beyond the input type.
|
|
1661
|
+
|
|
1507
1662
|
#### `verify.<step>.afterReconcile` (kind = "agent")
|
|
1508
1663
|
|
|
1509
1664
|
**TOML key:** `verify.<step>.afterReconcile`
|
|
@@ -1511,7 +1666,7 @@ There are two strict step variants:
|
|
|
1511
1666
|
- **Type:** `boolean`
|
|
1512
1667
|
- **Default:** `omitted`
|
|
1513
1668
|
- **Required:** Optional when kind = "agent"
|
|
1514
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1669
|
+
- **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
1670
|
|
|
1516
1671
|
**Description:** Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only.
|
|
1517
1672
|
|
|
@@ -1524,7 +1679,7 @@ There are two strict step variants:
|
|
|
1524
1679
|
- **Type:** `array of string`
|
|
1525
1680
|
- **Default:** `omitted`
|
|
1526
1681
|
- **Required:** Optional when kind = "agent"
|
|
1527
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1682
|
+
- **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
1683
|
|
|
1529
1684
|
**Description:** Apply only when at least one changed path matches. Available to both variants.
|
|
1530
1685
|
|
|
@@ -1537,7 +1692,7 @@ There are two strict step variants:
|
|
|
1537
1692
|
- **Type:** `boolean`
|
|
1538
1693
|
- **Default:** `omitted`
|
|
1539
1694
|
- **Required:** Optional when kind = "agent"
|
|
1540
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1695
|
+
- **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
1696
|
|
|
1542
1697
|
**Description:** `true` makes the step mandatory in plan selection and bypasses path gating. Available to both variants.
|
|
1543
1698
|
|
|
@@ -1580,19 +1735,29 @@ applicability.
|
|
|
1580
1735
|
|
|
1581
1736
|
In node `verify:*` context, `nodeVerification` in the manifest identifies the frozen
|
|
1582
1737
|
`range`, `indexPath`, `contributions`, `handPushedCommits` and `unattributedCommits`. Each contribution
|
|
1583
|
-
has `build`, its
|
|
1738
|
+
has `build`, its stored `ticket` identity at preparation, `spec: {kind: 'spec', rev}`,
|
|
1584
1739
|
`specPath` and `commits`. The JSON index repeats this metadata and adds the
|
|
1585
1740
|
exhaustive ordered `commits: [{sha, build?}]` mapping. Paths are workspace-relative
|
|
1586
1741
|
and reflect scratch allocation, including legacy tracked-file collisions.
|
|
1587
|
-
Contribution specs normally live at
|
|
1588
|
-
normally lives at
|
|
1742
|
+
Contribution specs normally live at `$AB_CONTEXT_DIR/contributions/<build>/spec.md`; the index
|
|
1743
|
+
normally lives at `$AB_CONTEXT_DIR/node-verification.json`. These files are marked `derived`
|
|
1589
1744
|
in `materialized`, with their source build and revision recorded in the metadata.
|
|
1590
1745
|
|
|
1591
1746
|
Membership comes from build identity trailers on every commit reachable in the
|
|
1592
1747
|
frozen parent-to-head range, including earlier cycles and merge side history.
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1748
|
+
The dispatcher gathers contributor material with repository authority before
|
|
1749
|
+
launching verification. Specs use the event-authorized revision at preparation,
|
|
1750
|
+
never an unsanctioned latest deposit or mutable ticket body. Unknown identities,
|
|
1751
|
+
ambiguous or invalid trailers, and missing source data prevent preparation.
|
|
1752
|
+
A versioned node-owned `node-verification-context` artifact is deposited atomically
|
|
1753
|
+
with `integration.prepared`, which cites its exact revision. Hydration reads that
|
|
1754
|
+
citation and validates the prepared input's cycle and range without contributor
|
|
1755
|
+
reads or Git provenance discovery; session and build scope permissions remain
|
|
1756
|
+
unchanged. Concurrent verifiers and resumed sessions share the frozen inputs;
|
|
1757
|
+
a new cycle collects fresh contributor identities and specs. Missing, corrupt or
|
|
1758
|
+
mismatched prepared inputs fail hydration without publishing a manifest.
|
|
1759
|
+
Historical agent cycles without a citation require a new prepared cycle;
|
|
1760
|
+
check-only cycles require no contributor input. Commits without a build trailer are
|
|
1596
1761
|
listed as unattributed, a mechanical absence of a trailer rather than an authorization verdict.
|
|
1597
1762
|
`handPushedCommits: [{sha, originalSha, message}]` identifies node-owned hand-pushed
|
|
1598
1763
|
commits in the frozen range. Ownership uses the durable first-parent contribution
|
|
@@ -1602,7 +1767,7 @@ These messages express maintainer-authorized intent: judge quality and consisten
|
|
|
1602
1767
|
never fail these commits solely for lacking a covering spec.
|
|
1603
1768
|
Other node changes are authorized when the node spec or the spec of the contribution
|
|
1604
1769
|
that introduced it covers it; use the commit mapping to find that spec.
|
|
1605
|
-
Leaf verification
|
|
1770
|
+
Leaf verification omits node provenance.
|
|
1606
1771
|
|
|
1607
1772
|
### Role routing for an agent verify step
|
|
1608
1773
|
|
|
@@ -1652,6 +1817,13 @@ steps are stored in `[verify].steps` order from the exact plan completion later
|
|
|
1652
1817
|
approved by plan review. A spec restart replaces the selection with the newly
|
|
1653
1818
|
approved plan; reconciliation reuses it.
|
|
1654
1819
|
|
|
1820
|
+
If the approved selection later names any step absent from the cycle's pinned
|
|
1821
|
+
configured universe, the entire selection falls back to all configured optional
|
|
1822
|
+
steps. The kernel records one observation per cycle and plan revision naming
|
|
1823
|
+
the unknown steps. Mandatory steps, path applicability and post-reconcile policy
|
|
1824
|
+
still apply. A valid selection continues to skip genuinely omitted optional
|
|
1825
|
+
steps. Strict validation when depositing a new plan is unchanged.
|
|
1826
|
+
|
|
1655
1827
|
For each step the kernel evaluates approved-plan selection first, then path
|
|
1656
1828
|
applicability. Exclusion by either mechanism records a queryable `skipped`
|
|
1657
1829
|
outcome. A selection exclusion or path miss starts no check or agent.
|
|
@@ -1678,18 +1850,31 @@ base-resolution failure is an infrastructure failure, never a permissive skip.
|
|
|
1678
1850
|
|
|
1679
1851
|
### Pass, fail, and skip
|
|
1680
1852
|
|
|
1681
|
-
A passing check or agent
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
the
|
|
1853
|
+
A passing check or agent satisfies its member of the current stage. The next
|
|
1854
|
+
stage starts only after every member has passed or been skipped; finalize
|
|
1855
|
+
starts after the last stage is satisfied.
|
|
1856
|
+
|
|
1857
|
+
By default, a failure lets the stage's other members finish before routing the
|
|
1858
|
+
build to implement once with every failed member's report. Later stages do not
|
|
1859
|
+
run. An agent failure requires `ab verdict fail --report <file>`; check failures
|
|
1860
|
+
retain command output as implementation feedback. A failed cycle consumes one
|
|
1861
|
+
unit of the `policy.maxVerifyAttempts` retry budget, regardless of how many
|
|
1862
|
+
members failed.
|
|
1863
|
+
|
|
1864
|
+
If a member configured with `failFast = true` fails, unfinished siblings are
|
|
1865
|
+
cancelled instead. Members that already reached an outcome keep it. Cancelled
|
|
1866
|
+
members are listed as not run, with their cancellation cause, in implement's
|
|
1867
|
+
context; cancellation does not satisfy a verification gate. See
|
|
1868
|
+
[verification outcomes](verification.md#steps-and-outcomes) for cancellation,
|
|
1869
|
+
escalation and recovery details.
|
|
1686
1870
|
|
|
1687
1871
|
An agent may instead use `ab verdict skip --reason <text>` when the configured
|
|
1688
1872
|
judgment genuinely does not apply. The trimmed reason must be nonblank, and no
|
|
1689
1873
|
failure report is required. Plan and path exclusions are kernel-authored skips
|
|
1690
|
-
with deterministic reasons. Every skip satisfies that
|
|
1691
|
-
|
|
1692
|
-
|
|
1874
|
+
with deterministic reasons. Every skip satisfies only that member of the stage
|
|
1875
|
+
and remains distinct from a pass. It does not mask another member's failure or
|
|
1876
|
+
consume the failure retry budget; advancement still requires the whole stage
|
|
1877
|
+
to pass or skip.
|
|
1693
1878
|
|
|
1694
1879
|
## `[finalize]` and `[finalize.<step>]`
|
|
1695
1880
|
|
|
@@ -1710,9 +1895,9 @@ are errors.
|
|
|
1710
1895
|
- **Type:** `table`
|
|
1711
1896
|
- **Default:** `{} (input supplied on omission)`
|
|
1712
1897
|
- **Required:** Optional
|
|
1713
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1898
|
+
- **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
1899
|
|
|
1715
|
-
**Description:** Ordered post-PR steps. Failures are recorded without blocking the PR.
|
|
1900
|
+
**Description:** Ordered post-PR steps. Failures are recorded without blocking the PR. Step names use ASCII letters, digits, ., _ and -; exactly . and .. are forbidden.
|
|
1716
1901
|
|
|
1717
1902
|
**Constraints:** None beyond the input type.
|
|
1718
1903
|
|
|
@@ -1723,9 +1908,9 @@ are errors.
|
|
|
1723
1908
|
- **Type:** `array of string`
|
|
1724
1909
|
- **Default:** `[]`
|
|
1725
1910
|
- **Required:** Optional
|
|
1726
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1911
|
+
- **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
1912
|
|
|
1728
|
-
**Description:** Ordered names of the configured step tables. Every listed step must have a table and every table must be listed.
|
|
1913
|
+
**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
1914
|
|
|
1730
1915
|
**Constraints:** Each item: minimum length 1
|
|
1731
1916
|
|
|
@@ -1736,7 +1921,7 @@ are errors.
|
|
|
1736
1921
|
- **Type:** `strict table | strict table`
|
|
1737
1922
|
- **Default:** `omitted`
|
|
1738
1923
|
- **Required:** Required
|
|
1739
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1924
|
+
- **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
1925
|
|
|
1741
1926
|
**Description:** Named step. Select exactly one strict variant using kind; command belongs only to check, skill only to agent.
|
|
1742
1927
|
|
|
@@ -1749,7 +1934,7 @@ are errors.
|
|
|
1749
1934
|
- **Type:** `"check"`
|
|
1750
1935
|
- **Default:** `omitted`
|
|
1751
1936
|
- **Required:** Required when kind = "check"
|
|
1752
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1937
|
+
- **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
1938
|
|
|
1754
1939
|
**Description:** Select the strict step variant. Fields from another variant are rejected.
|
|
1755
1940
|
|
|
@@ -1762,7 +1947,7 @@ are errors.
|
|
|
1762
1947
|
- **Type:** `string`
|
|
1763
1948
|
- **Default:** `omitted`
|
|
1764
1949
|
- **Required:** Required when kind = "check"
|
|
1765
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1950
|
+
- **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
1951
|
|
|
1767
1952
|
**Description:** Name of an existing command in [commands]; required for check steps and forbidden for agent steps.
|
|
1768
1953
|
|
|
@@ -1775,7 +1960,7 @@ are errors.
|
|
|
1775
1960
|
- **Type:** `"agent"`
|
|
1776
1961
|
- **Default:** `omitted`
|
|
1777
1962
|
- **Required:** Required when kind = "agent"
|
|
1778
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1963
|
+
- **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
1964
|
|
|
1780
1965
|
**Description:** Select the strict step variant. Fields from another variant are rejected.
|
|
1781
1966
|
|
|
@@ -1788,7 +1973,7 @@ are errors.
|
|
|
1788
1973
|
- **Type:** `string`
|
|
1789
1974
|
- **Default:** `omitted`
|
|
1790
1975
|
- **Required:** Required when kind = "agent"
|
|
1791
|
-
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the
|
|
1976
|
+
- **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
1977
|
|
|
1793
1978
|
**Description:** Exact installed skill name; required for agent steps and forbidden for check steps.
|
|
1794
1979
|
|
|
@@ -1858,8 +2043,9 @@ failures become failure-tolerant follow-up observations.
|
|
|
1858
2043
|
|
|
1859
2044
|
## `[roles]`
|
|
1860
2045
|
|
|
1861
|
-
An open map from a nonempty role name to
|
|
1862
|
-
wall-clock session budget, and an ordered
|
|
2046
|
+
An open map from a nonempty role name to four primary agent axes (runtime,
|
|
2047
|
+
model, account, and args), one wall-clock session budget, and an ordered
|
|
2048
|
+
alternate list. All six live fields
|
|
1863
2049
|
inherit independently. The reserved
|
|
1864
2050
|
`default` entry is required to name a runtime, is the raw base for every other
|
|
1865
2051
|
role, and is never dispatched itself. Missing it fails eagerly before any
|
|
@@ -1893,6 +2079,19 @@ session starts, with a copyable table and all registered runtime names.
|
|
|
1893
2079
|
|
|
1894
2080
|
**Constraints:** None beyond the input type.
|
|
1895
2081
|
|
|
2082
|
+
#### `roles.<name>.account`
|
|
2083
|
+
|
|
2084
|
+
**TOML key:** `roles.<name>.account`
|
|
2085
|
+
|
|
2086
|
+
- **Type:** `string`
|
|
2087
|
+
- **Default:** `omitted`
|
|
2088
|
+
- **Required:** Optional
|
|
2089
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2090
|
+
|
|
2091
|
+
**Description:** Named billing account; inherits independently. Claude selects the sole subscription account when omitted.
|
|
2092
|
+
|
|
2093
|
+
**Constraints:** minimum length 1; matches /\S/
|
|
2094
|
+
|
|
1896
2095
|
#### `roles.<name>.runtime`
|
|
1897
2096
|
|
|
1898
2097
|
**TOML key:** `roles.<name>.runtime`
|
|
@@ -1971,6 +2170,19 @@ session starts, with a copyable table and all registered runtime names.
|
|
|
1971
2170
|
|
|
1972
2171
|
**Constraints:** Omission inherits the base alternate list, otherwise resolves to an empty list; each alternate overlays the resolved primary axes.
|
|
1973
2172
|
|
|
2173
|
+
#### `roles.<name>.alternates[].account`
|
|
2174
|
+
|
|
2175
|
+
**TOML key:** `roles.<name>.alternates[].account`
|
|
2176
|
+
|
|
2177
|
+
- **Type:** `string`
|
|
2178
|
+
- **Default:** `omitted`
|
|
2179
|
+
- **Required:** Optional
|
|
2180
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2181
|
+
|
|
2182
|
+
**Description:** Named billing account; inherits independently. Claude selects the sole subscription account when omitted.
|
|
2183
|
+
|
|
2184
|
+
**Constraints:** minimum length 1; matches /\S/
|
|
2185
|
+
|
|
1974
2186
|
#### `roles.<name>.alternates[].runtime`
|
|
1975
2187
|
|
|
1976
2188
|
**TOML key:** `roles.<name>.alternates[].runtime`
|
|
@@ -2050,15 +2262,24 @@ runtime does not discard a model inherited from `default`; the resulting exact
|
|
|
2050
2262
|
pair must be compatible. Autobuild never searches for a runtime that happens
|
|
2051
2263
|
to serve a configured model and never substitutes a different model to repair
|
|
2052
2264
|
an invalid pair. The only implicit fill is when neither the role nor `default`
|
|
2053
|
-
names a model
|
|
2054
|
-
|
|
2055
|
-
|
|
2265
|
+
names a model: a `claude` route selecting a Kimi Code account defaults to
|
|
2266
|
+
`kimi-for-coding`, while every other route uses its runtime's own default. Every
|
|
2267
|
+
alternate overlays that concrete role's effective primary runtime, model, account,
|
|
2268
|
+
and args, then undergoes the same exact-pair validation. Model defaults are applied
|
|
2269
|
+
after these axes are merged, so an alternate without an explicit or inherited
|
|
2270
|
+
model uses the default for its own selected account and runtime. Each configured string is
|
|
2056
2271
|
one argv token; Autobuild does not shell-expand it. The narrow rejected set is
|
|
2057
2272
|
derived from the model and machine-readable protocol options each adapter emits:
|
|
2058
2273
|
Claude rejects `-p`/`--print`, `--output-format`, and `--model`; Codex rejects
|
|
2059
2274
|
`--json` and `--model`/`-m`; Pi rejects `--mode` and `--model`. Claude and Codex
|
|
2060
2275
|
also reject a standalone `--` because Autobuild owns and appends that structural
|
|
2061
|
-
separator immediately before their positional prompt.
|
|
2276
|
+
separator immediately before their positional prompt. Claude routes with a selected
|
|
2277
|
+
account additionally reject `--settings`, `--setting-sources`, and `--bare`
|
|
2278
|
+
because Autobuild owns their authentication settings. Codex routes selecting a
|
|
2279
|
+
ChatGPT subscription account additionally reject `-c`, `--config`, `--profile`,
|
|
2280
|
+
`-p`, `--enable`, and `--disable` because Autobuild owns their provider and
|
|
2281
|
+
configuration routing. This includes using `-c` to set reasoning effort. Routes
|
|
2282
|
+
without an account retain the existing argument behavior. Those option spellings,
|
|
2062
2283
|
`--option=value` forms, compact documented short aliases, and the exact affected
|
|
2063
2284
|
prompt separator join the eager aggregated startup error with a
|
|
2064
2285
|
role/runtime-specific diagnostic. Every other option passes through without
|
|
@@ -2077,9 +2298,10 @@ Autobuild does not install Pi. `ab init` reports a missing or older executable
|
|
|
2077
2298
|
as unusable, and `pi` must be logged in for every configured model. `ab models`
|
|
2078
2299
|
lists this local catalog, while `ab models --available` limits it to models with
|
|
2079
2300
|
configured credentials. Builtin and plugin runtimes use the same exact-pair
|
|
2080
|
-
validation and event attribution. With no configured model,
|
|
2081
|
-
|
|
2082
|
-
default
|
|
2301
|
+
validation and event attribution. With no configured or inherited model, a Claude
|
|
2302
|
+
route selecting a Kimi Code account uses `kimi-for-coding`. Other routes use their
|
|
2303
|
+
runtime's declared default when present: Claude and Codex delegate to their local
|
|
2304
|
+
CLI's selected default, while Pi declares `kimi-coding/k3`. Codex accepts unqualified `gpt-*`
|
|
2083
2305
|
ids. Pi ids remain provider-qualified—including the independent
|
|
2084
2306
|
`openai-codex/*` route—and `ab models [query]` looks them up. Pi always passes
|
|
2085
2307
|
`--no-extensions` to disable ambient package discovery and loads the Autobuild
|
|
@@ -2442,7 +2664,7 @@ invariants, not additional configuration fields.
|
|
|
2442
2664
|
node ticket id. `ab ticket update <id> --target <node-id>` changes it;
|
|
2443
2665
|
`--no-target` clears it and `--kind work` resets kind. Omitted update fields
|
|
2444
2666
|
preserve values. Claimed work targets cannot change: abort and re-dispatch.
|
|
2445
|
-
Open nodes can reparent under the guarded protocol, revoking
|
|
2667
|
+
Open nodes can reparent under the guarded protocol, revoking merge consent.
|
|
2446
2668
|
|
|
2447
2669
|
File tickets persist the fields in frontmatter; hosted tickets store them with
|
|
2448
2670
|
project-scoped transactional validation. Linear maps kind to the exact `node`
|
|
@@ -2788,11 +3010,12 @@ Set `COMPANY_TICKET_TOKEN` in the environment, never in this table.
|
|
|
2788
3010
|
|
|
2789
3011
|
## `[orchestrator]`
|
|
2790
3012
|
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
3013
|
+
Enables the credential-free per-owner sandbox environments driven by external
|
|
3014
|
+
operators through `sandbox.*`, archive cleanup and dispatcher idle settlement.
|
|
3015
|
+
Autobuild does not host an operator agent. The table is closed to unknown keys
|
|
3016
|
+
and restart-classified as a whole. The removed runner keys `model`,
|
|
3017
|
+
`invocationBudgetSeconds`, `approvals` and `wake` are rejected with a diagnostic;
|
|
3018
|
+
existing effective-config artifacts remain readable without changing stored bytes.
|
|
2796
3019
|
|
|
2797
3020
|
<!-- configuration-reference:orchestrator -->
|
|
2798
3021
|
|
|
@@ -2818,7 +3041,7 @@ restart-classified as a whole.
|
|
|
2818
3041
|
- **Required:** Optional
|
|
2819
3042
|
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
|
|
2820
3043
|
|
|
2821
|
-
**Description:**
|
|
3044
|
+
**Description:** Enables externally driven sandbox tools, archive cleanup and dispatcher idle settlement. Operators run in external agent harnesses.
|
|
2822
3045
|
|
|
2823
3046
|
**Constraints:** None beyond the input type.
|
|
2824
3047
|
|
|
@@ -2861,58 +3084,6 @@ restart-classified as a whole.
|
|
|
2861
3084
|
|
|
2862
3085
|
**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
3086
|
|
|
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
3087
|
<!-- configuration-reference:/orchestrator -->
|
|
2917
3088
|
|
|
2918
3089
|
`[orchestrator.sandbox]` fields:
|
|
@@ -2943,10 +3114,6 @@ one environment per user and repository.
|
|
|
2943
3114
|
```toml
|
|
2944
3115
|
[orchestrator]
|
|
2945
3116
|
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
3117
|
|
|
2951
3118
|
[orchestrator.sandbox]
|
|
2952
3119
|
idleMinutes = 30
|
|
@@ -2956,24 +3123,16 @@ environmentVariables = ["MY_TOOL_CONFIG"]
|
|
|
2956
3123
|
Set `MY_TOOL_CONFIG` in the host environment of the `ab mcp` process; a missing
|
|
2957
3124
|
value fails the tool call that needs it, named as a typed `environment` error.
|
|
2958
3125
|
|
|
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.
|
|
3126
|
+
Hosted sandbox tools compose their backend from the deposited effective config
|
|
3127
|
+
and the authenticated request's credentials. The request's
|
|
3128
|
+
`x-vercel-oidc-token` authenticates the Sandbox SDK; an explicit
|
|
3129
|
+
`VERCEL_OIDC_TOKEN` takes precedence, or the durable
|
|
3130
|
+
`VERCEL_TOKEN`/`VERCEL_TEAM_ID`/`VERCEL_PROJECT_ID` triple needs no header.
|
|
3131
|
+
Archive cleanup uses the same request credential threading. Provider or forge
|
|
3132
|
+
construction failures degrade sandbox tools only, with a diagnostic. Guests
|
|
3133
|
+
receive no credential. The dispatcher retains idle settlement but never
|
|
3134
|
+
constructs a turn runner. Tools stay gated by `[orchestrator].enabled` and the
|
|
3135
|
+
registry's closed-table filtering; external harnesses own approvals.
|
|
2977
3136
|
|
|
2978
3137
|
## Complete example
|
|
2979
3138
|
|
|
@@ -3101,7 +3260,8 @@ configures ticket workflow and environment-only credentials, arranges
|
|
|
3101
3260
|
an acceptance check through a repository-owned agent verify skill in every
|
|
3102
3261
|
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
3262
|
warnings. You then start `bun ab dispatch` and open your operator agent with
|
|
3104
|
-
`ab-operate` loaded to create
|
|
3263
|
+
`ab-operate` loaded to create and groom the first ticket, then check operator presence
|
|
3264
|
+
before taking the role. An existing operator picks up ready work.
|
|
3105
3265
|
|
|
3106
3266
|
After installation, init reports `autobuild.toml: written|skipped`, counts all
|
|
3107
3267
|
skill outcomes, names attention-worthy local edits, and prints runtime probe
|
|
@@ -3125,8 +3285,8 @@ configuration. The setup prompt instead asks the agent to review and improve
|
|
|
3125
3285
|
the existing config.
|
|
3126
3286
|
|
|
3127
3287
|
Re-running init still maintains the `.autobuild/` ignore rule and skill
|
|
3128
|
-
installation. `ab upgrade` migrates an absent
|
|
3129
|
-
repository journal; explicit
|
|
3288
|
+
installation. `ab upgrade` migrates an absent merge policy from the target
|
|
3289
|
+
repository journal; explicit merge arrays are preserved. See
|
|
3130
3290
|
[migration from 0.x](migration-1.0.md). By default it first updates a recognized
|
|
3131
3291
|
Bun installation — from the npm registry
|
|
3132
3292
|
for a registry install, or from GitHub Releases for a `github:` install — and
|
|
@@ -3198,12 +3358,12 @@ poll. Editing TOML cannot change them.
|
|
|
3198
3358
|
|
|
3199
3359
|
The opposite flag forms for each dispatch setting are mutually exclusive.
|
|
3200
3360
|
Omitting both writes nothing and reuses the durable value. Per-build
|
|
3201
|
-
pause/resume and
|
|
3202
|
-
repository settings;
|
|
3361
|
+
pause/resume and merge controls are separate facts and do not alter these
|
|
3362
|
+
repository settings; merge authorization follows `[[merge]]`. Pause all and
|
|
3203
3363
|
resume all write two facts each — the
|
|
3204
3364
|
repository pause first, then intake — so a partial failure still leaves the
|
|
3205
3365
|
repository at least as quiesced as asked; `ab pause --all` reports on stderr
|
|
3206
|
-
which of them
|
|
3366
|
+
which of them merged when a walk stops partway. The current release has no TOML
|
|
3207
3367
|
field for either the harvest gate or the repository pause, and no command that
|
|
3208
3368
|
sets the repository pause on its own without also moving intake; inspect the
|
|
3209
3369
|
harvest gate with `ab harvest status`.
|
|
@@ -3238,16 +3398,16 @@ set or copy them into `.env`; the runner stamps them for each session.
|
|
|
3238
3398
|
|
|
3239
3399
|
Forge and agent credentials remain adapter-owned. The `local-git` forge uses no
|
|
3240
3400
|
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 [
|
|
3401
|
+
refs, leaves each work build at `refs/heads/ab/<slug>`, and merges root leaves by
|
|
3402
|
+
squash under the recorded merge authorization. Node merges use guarded
|
|
3403
|
+
fast-forwards; see [merge methods](merge-policy.md#merge-methods).
|
|
3244
3404
|
The squash author and committer come from the
|
|
3245
3405
|
repository's ordinary Git identity, as resolved for a plain `git commit`; the
|
|
3246
|
-
|
|
3406
|
+
merge is always unsigned even when `commit.gpgsign` is enabled. If Git cannot
|
|
3247
3407
|
resolve that identity, the PR remains open and `ab build status <slug>` names
|
|
3248
3408
|
`user.name` / `user.email` setup commands; dispatcher ticks retry automatically
|
|
3249
3409
|
after you configure them. A dirty checked-out base does not by itself
|
|
3250
|
-
block the
|
|
3410
|
+
block the merge: tracked and untracked work on paths untouched by the squash
|
|
3251
3411
|
survives.
|
|
3252
3412
|
If the squash would overwrite your work, the PR remains open, `ab build
|
|
3253
3413
|
status <slug>` shows a path-bearing observation, and later dispatcher ticks retry
|
|
@@ -3259,13 +3419,15 @@ the existing text-download projection.
|
|
|
3259
3419
|
- for `forge = "github"`, either export a `GITHUB_TOKEN` or `GH_TOKEN` or run `gh auth login`:
|
|
3260
3420
|
the kernel speaks the GitHub REST API directly, taking `GITHUB_TOKEN`, then `GH_TOKEN`, then the
|
|
3261
3421
|
gh CLI's stored login (`gh auth token`) — so a local dispatcher needs only the gh login, while a
|
|
3262
|
-
host without gh (
|
|
3422
|
+
host without gh (including sandboxed dispatchers) must export a token. Separately make sure the
|
|
3263
3423
|
Git remote can fetch/push with the process's Git credentials;
|
|
3264
3424
|
- Claude sessions invoke the local `claude` CLI and use its configured login;
|
|
3265
3425
|
install Claude Code, launch `claude`, and complete login before dispatching;
|
|
3266
|
-
- Codex sessions invoke the local `codex` CLI
|
|
3267
|
-
|
|
3268
|
-
|
|
3426
|
+
- Codex sessions invoke the local `codex` CLI. Without a named ChatGPT account,
|
|
3427
|
+
run `codex login` before dispatching. Named ChatGPT accounts use
|
|
3428
|
+
`ab accounts login NAME --local` for a local dispatcher or `--project` for a
|
|
3429
|
+
connected project; they preserve the user's ambient Codex login. See
|
|
3430
|
+
[ChatGPT subscriptions](accounts.md#chatgpt-subscriptions);
|
|
3269
3431
|
- Pi sessions use Pi's provider authentication: start `pi` and run `/login`
|
|
3270
3432
|
inside the interactive session, or, for non-interactive use, supply the
|
|
3271
3433
|
provider credentials Pi supports (such as provider API keys in the environment).
|
|
@@ -3353,7 +3515,10 @@ progress is not shown. Harvest does not consume build capacity.
|
|
|
3353
3515
|
and Contents write permission.
|
|
3354
3516
|
- **Agent runtime/provider:** authenticate the runtime selected by the merged
|
|
3355
3517
|
role. A missing Codex adapter diagnostic names both `codex runtime` and the
|
|
3356
|
-
`codex` executable; install it
|
|
3518
|
+
`codex` executable; install it. For legacy Codex authentication, run
|
|
3519
|
+
`codex login`. For a named ChatGPT account, sign in again with
|
|
3520
|
+
`ab accounts login NAME --local` or `--project` for the owning destination; see
|
|
3521
|
+
[ChatGPT subscriptions](accounts.md#chatgpt-subscriptions). A 401/402/403,
|
|
3357
3522
|
permission, quota, or billing rejection is treated as a permanent provider
|
|
3358
3523
|
failure rather than retried indefinitely. For Pi, confirm the
|
|
3359
3524
|
provider-qualified model and provider login.
|
|
@@ -3361,26 +3526,13 @@ progress is not shown. Harvest does not consume build capacity.
|
|
|
3361
3526
|
A protected store reports 401 for a missing, invalid, or expired token and
|
|
3362
3527
|
403 when the token is valid but scoped to another build/session.
|
|
3363
3528
|
|
|
3364
|
-
### Hosted project selection
|
|
3365
|
-
|
|
3366
|
-
The durable PostgreSQL project registry controls dashboard, MCP and operator
|
|
3367
|
-
API access. Every allowlisted user sees every active entry. Administer it with
|
|
3368
|
-
`ab-hosted-store projects list|add|remove` using deployment database credentials;
|
|
3369
|
-
mutations require `--user IDENTITY` for declared attribution. See
|
|
3370
|
-
[connected projects](setup.md#connected-projects) for migration and retention.
|
|
3371
|
-
`AB_DISPATCHER_REPOSITORIES` optionally selects an ordered subset of current
|
|
3372
|
-
registrations. When unset, each authorized tick queries all active entries.
|
|
3373
|
-
Removed credential override keys are inert in dynamic mode; explicit-list
|
|
3374
|
-
configuration still rejects unknown override keys.
|
|
3375
|
-
|
|
3376
3529
|
## Hosted service client compatibility
|
|
3377
3530
|
|
|
3378
3531
|
A service accepts stable and prerelease clients from its own `major.minor`
|
|
3379
3532
|
release line and the two preceding minor lines in the same major. A major starts a new family:
|
|
3380
3533
|
X.0 accepts only X.0, X.1 accepts X.0/X.1, and X.2 onward accepts three lines.
|
|
3381
3534
|
Patch versions are interchangeable in both directions and must never change
|
|
3382
|
-
the protocol.
|
|
3383
|
-
its window. Supported release lines retain their wire handlers and known
|
|
3535
|
+
the protocol. Keep project clients within the instance’s published window. Supported release lines retain their wire handlers and known
|
|
3384
3536
|
protocol identities; an unknown protocol is refused independently of version.
|
|
3385
3537
|
Stable and prerelease service and client identities share their numeric major/minor
|
|
3386
3538
|
line. Malformed or missing identities, build metadata (`+…`), prefixes and
|
|
@@ -3404,35 +3556,37 @@ credentials travel through the separate transient execution-auth argument, never
|
|
|
3404
3556
|
through serialized execution identity. Existing plugins that forwarded
|
|
3405
3557
|
`storeToken` must migrate to this callback and fail closed if it is unavailable.
|
|
3406
3558
|
|
|
3407
|
-
##
|
|
3559
|
+
## Merge policy
|
|
3408
3560
|
|
|
3409
|
-
The [`[[
|
|
3410
|
-
readiness provenance. See [
|
|
3561
|
+
The [`[[merge]]` table](#merge) defines ordered authorization rules and
|
|
3562
|
+
readiness provenance. See [merge policy](merge-policy.md) for examples,
|
|
3411
3563
|
merge methods and forge capability requirements.
|
|
3412
3564
|
|
|
3413
|
-
`ab hold <slug>` durably suppresses
|
|
3414
|
-
before readiness. `ab
|
|
3415
|
-
to this build/node
|
|
3565
|
+
`ab hold <slug>` durably suppresses merge and revokes previous consent, even
|
|
3566
|
+
before readiness. `ab merge <slug>` requires readiness, clears hold, and consents
|
|
3567
|
+
to this build/node merge into its effective destination. Consent survives head
|
|
3416
3568
|
replacement, restacking, verification and re-finalization until another hold or
|
|
3417
3569
|
completion. Accepted node reparenting revokes consent; holds survive.
|
|
3418
|
-
It is consent to the
|
|
3570
|
+
It is consent to the merge, not approval of an immutable diff.
|
|
3419
3571
|
Commands and acknowledgements are sequence-correlated; hold acknowledgement
|
|
3420
|
-
requires confirmed native cancellation, while
|
|
3572
|
+
requires confirmed native cancellation, while merge acknowledgement accepts
|
|
3421
3573
|
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
|
|
3574
|
+
through the MCP/operator build-control tools. The terminal uses `l` for merge and
|
|
3575
|
+
`o` for hold on the selected merge.
|
|
3424
3576
|
|
|
3425
3577
|
The repository auto-merge default and its fan-out are retired. Historical events
|
|
3426
3578
|
still replay; explicit old per-build commands map to consent/hold until a new
|
|
3427
|
-
|
|
3579
|
+
merge command supersedes them, while old default seeds confer no consent.
|
|
3428
3580
|
`ab upgrade` samples the target repository's configured journal and writes leaf
|
|
3429
3581
|
auto for old ON, leaf consent for old OFF (including no fact), and node consent
|
|
3430
|
-
in either case. Explicit
|
|
3582
|
+
in either case. Explicit merge arrays remain byte-for-byte unchanged; deprecated
|
|
3583
|
+
`landing` arrays are renamed to `merge` without changing policy values or order,
|
|
3584
|
+
and without reading the legacy journal. Declaring both keys is an error. Missing
|
|
3431
3585
|
configuration or unavailable journals fail with recovery guidance. Fresh init
|
|
3432
3586
|
uses the no-rules fallback.
|
|
3433
3587
|
|
|
3434
3588
|
Native auto-merge is reconciled on every janitor poll against durable desired
|
|
3435
|
-
|
|
3589
|
+
merge state. It is disabled while held, unauthorized, unready, or replacement
|
|
3436
3590
|
publication is pending or just completed; enabling binds to the current head
|
|
3437
3591
|
through the forge's expected-head guard. Every replacement publication confirms
|
|
3438
3592
|
cancellation first, and its first following poll re-reads and reconciles native
|
|
@@ -3442,12 +3596,12 @@ poll reconciliation. This is an explicitly bounded failure model: native merge
|
|
|
3442
3596
|
is used only behind a merge-blocking gate, and checks on a replacement head must
|
|
3443
3597
|
take far longer than one poll interval, allowing cancellation before they pass.
|
|
3444
3598
|
There is no durable native-effect reservation protocol. An undesired forge
|
|
3445
|
-
|
|
3599
|
+
merge is classified from the kernel's last durable native application state, without changing provider contracts. A confirmed disabled
|
|
3446
3600
|
state with no enable in flight or indeterminate means a deliberate human forge
|
|
3447
|
-
|
|
3448
|
-
human
|
|
3601
|
+
merge, which supplies consent. Record whether it overrode a hold: an unheld
|
|
3602
|
+
human merge needs no attention from your agent; overriding a hold is informational.
|
|
3449
3603
|
If native auto-merge was armed, or an enable was in flight or indeterminate,
|
|
3450
|
-
record a possible stale-enable
|
|
3604
|
+
record a possible stale-enable merge as contrary to policy and notify your agent
|
|
3451
3605
|
attention. Autobuild never rewrites the target to undo either outcome. Merge
|
|
3452
3606
|
gates and the serialized node-writer publication rules remain authoritative.
|
|
3453
3607
|
### Failure budgets and own-build read deferrals
|
|
@@ -3484,7 +3638,7 @@ Default `ab watch` and `ab wait --for attention` include
|
|
|
3484
3638
|
|
|
3485
3639
|
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
3640
|
|
|
3487
|
-
Default watch
|
|
3641
|
+
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
3642
|
|
|
3489
3643
|
## Immutable dispatcher generations
|
|
3490
3644
|
|
|
@@ -3494,7 +3648,7 @@ still use the checkout. A launcher freezes the currently installed distribution
|
|
|
3494
3648
|
and production dependencies offline; all later local runners and agent CLIs use
|
|
3495
3649
|
that same snapshot. Automatic adoption is enabled by default through `[upgrade]`
|
|
3496
3650
|
below; a manual restart is required when automatic upgrades are disabled or the
|
|
3497
|
-
launcher contract changes. `--once
|
|
3651
|
+
launcher contract changes. `--once` and origin mode retain their
|
|
3498
3652
|
direct execution paths.
|
|
3499
3653
|
|
|
3500
3654
|
## `[upgrade]`
|
|
@@ -3635,7 +3789,7 @@ retry failed installs. Operator stop always wins over replacement startup.
|
|
|
3635
3789
|
Set `automatic = false` to cancel pending preparation and retain manual restart
|
|
3636
3790
|
behavior. A launcher contract change also requires a manual restart. A legacy v1 launcher
|
|
3637
3791
|
without overlap supervision requires restart before another automatic adoption. `--once`,
|
|
3638
|
-
origin
|
|
3792
|
+
origin-mode dispatch and direct development presentation modes do not auto-upgrade.
|
|
3639
3793
|
`ab upgrade` still updates the pin/installation and merges skills locally, commits
|
|
3640
3794
|
when eligible, and never pushes. Pinned dispatchers follow after that commit
|
|
3641
3795
|
reaches the base branch; installed-mode dispatchers follow their replaced install.
|