@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/skills/guide/SKILL.md
CHANGED
|
@@ -15,12 +15,12 @@ This skill describes the *system*. It drives no phase and changes no files.
|
|
|
15
15
|
## The integration tree
|
|
16
16
|
|
|
17
17
|
The configured `baseBranch` is the root. Work tickets are leaves; finite node
|
|
18
|
-
builds collect child contributions, verify their exact head and parent, and
|
|
18
|
+
builds collect child contributions, verify their exact head and parent, and merge
|
|
19
19
|
under ordered policy. Targets freeze at claim; blockers are a separate graph.
|
|
20
20
|
Idle nodes consume no runner capacity and empty nodes have no PR.
|
|
21
21
|
|
|
22
22
|
- [Nodes, targets and the operating model](references/integration-tree.md)
|
|
23
|
-
- [
|
|
23
|
+
- [Merge policy, examples and forge requirements](references/merge-policy.md)
|
|
24
24
|
- [Restacking, identity and recovery](references/restacking.md)
|
|
25
25
|
- [Migration from 0.x](references/migration-1.0.md)
|
|
26
26
|
- [Moving ticket sources](references/ticket-migration.md): recorded migrations preserve in-flight build continuity.
|
|
@@ -84,7 +84,7 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
84
84
|
starts builds up to the top-level `capacity` bound.
|
|
85
85
|
- **Ticket assets** — files or folders attached to a ticket (see
|
|
86
86
|
[Ticket assets](#ticket-assets)) are frozen into the build at claim and
|
|
87
|
-
appear under
|
|
87
|
+
appear under `$AB_CONTEXT_DIR/assets/` in every phase, as inputs alongside the spec.
|
|
88
88
|
A `design` asset is part of the contract: `plan`, `plan-review`, `implement`,
|
|
89
89
|
`code-review`, and agent verify steps judge against it, as a contract on
|
|
90
90
|
observable visual and reference outcomes, not on implementation. Other kinds
|
|
@@ -100,22 +100,25 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
100
100
|
- **`implement ⇄ code-review`** — the implementer executes the approved plan,
|
|
101
101
|
committing locally; a fresh reviewer reads the diff against spec and plan.
|
|
102
102
|
Same loop shape.
|
|
103
|
-
- **`verify:*`** —
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
- **`verify:*`** — ordered stages, each containing one or more step phases.
|
|
104
|
+
Members run concurrently and the next stage waits for every pass or skip.
|
|
105
|
+
A failed stage sends every failed report to `implement` after its siblings
|
|
106
|
+
settle; an optional `failFast` failure cancels unfinished siblings.
|
|
106
107
|
- **`finalize`** — the agent writes the PR description; the kernel opens the
|
|
107
108
|
PR. `[finalize].steps` run afterward and are failure-tolerant. A
|
|
108
109
|
content-producing step commits selected files locally and finishes clean;
|
|
109
110
|
the runner pushes the exact descendant SHA and confirms forge readback before recording success.
|
|
110
111
|
- **Restacking and epilogue.** The kernel replays one net leaf change at verify
|
|
111
|
-
entry and when its destination moves while awaiting
|
|
112
|
+
entry and when its destination moves while awaiting merge. Clean replay
|
|
112
113
|
starts no agent; conflicts enter `reconcile`, then verification. The leaf
|
|
113
|
-
terminates **merged** or **closed**.
|
|
114
|
+
terminates **merged** or **closed**. Transient leaf publication failures park
|
|
115
|
+
on a durable six-retry schedule, independently of agent phase attempts.
|
|
116
|
+
See the [replay reference](references/restacking.md).
|
|
114
117
|
|
|
115
|
-
Integration builds use collect → verify →
|
|
118
|
+
Integration builds use collect → verify → merge → close, with demand-driven node restacking,
|
|
116
119
|
repair children and source-aware reconcile as needed. Their exact-head/parent
|
|
117
120
|
verification differs from clean waiting leaf rewrites. See the
|
|
118
|
-
[node lifecycle](references/integration-tree.md#collect-verify-and-
|
|
121
|
+
[node lifecycle](references/integration-tree.md#collect-verify-and-merge).
|
|
119
122
|
|
|
120
123
|
**Review severity is proportion to the spec.** Both review loops rate a
|
|
121
124
|
finding by what the defect costs against the spec's acceptance criteria and
|
|
@@ -133,7 +136,8 @@ criterion, or a stated invariant makes it material.
|
|
|
133
136
|
|
|
134
137
|
**The grammar is fixed.** `verify:*` and `finalize:*` are the *only* extension
|
|
135
138
|
points. There are no custom phases, no DAGs, no reordering — a repo extends
|
|
136
|
-
|
|
139
|
+
Autobuild by configuring verify stages and serial finalize steps. Ordered verify
|
|
140
|
+
groups do not add workflow phases or arbitrary dependency graphs.
|
|
137
141
|
If a request seems to need a new phase, say so rather than improvising one.
|
|
138
142
|
|
|
139
143
|
**Observation harvest is not a build phase.** On each dispatch tick, dispatch
|
|
@@ -148,7 +152,11 @@ repository-scoped workflow: deterministic `scan`, agent `synthesize`
|
|
|
148
152
|
⇄ fresh adversarial `review`, then deterministic `file`. Only approved
|
|
149
153
|
spec-standard proposals are created, in `[tickets].proposalState` — the triage
|
|
150
154
|
state unless this repository has named another one. The scan context exposes
|
|
151
|
-
existence and resolution for each distinct observation-origin ticket.
|
|
155
|
+
existence and resolution for each distinct observation-origin ticket. Ledger
|
|
156
|
+
lifecycle is also scan-time context: filing refreshes existence and resolution
|
|
157
|
+
before allowing a join. Each same-source ledger ticket uses one fresh lookup;
|
|
158
|
+
hosted alias resolution shares that response. Missing, resolved, and foreign-source
|
|
159
|
+
ledger tickets cannot be joined. At filing,
|
|
152
160
|
matching-source origins are refreshed and every still-existing unresolved one
|
|
153
161
|
is unioned with the agent-declared `blockedBy` ids; missing, resolved, foreign,
|
|
154
162
|
and absent origins are dropped. Filing records declared and origin-derived
|
|
@@ -188,7 +196,7 @@ Naming inherits `[roles.default]` and can be overridden by `[roles.slug]`.
|
|
|
188
196
|
## Who does what
|
|
189
197
|
|
|
190
198
|
The **operator** is the role driving Autobuild through `ab` or MCP, normally
|
|
191
|
-
an agent. The **operator agent**
|
|
199
|
+
an agent. The **operator agent** operates the builds the repository's dispatcher dispatches, adopting new builds as they appear; a human may drive the same
|
|
192
200
|
interface directly. The human is **you**, or the **maintainer**. Human actor
|
|
193
201
|
identities and session ownership attribute authority to the authorizing account,
|
|
194
202
|
not to the agent driving the tools.
|
|
@@ -221,8 +229,19 @@ The distinctions that change an administrator's answer:
|
|
|
221
229
|
launcher that snapshots the invoking installation and its installed production
|
|
222
230
|
dependencies offline into `.autobuild/runtime/`. The generation's frontend,
|
|
223
231
|
kernel, later local runners and agent PATH CLI execute from that immutable
|
|
224
|
-
root. The launcher owns no Store/lease and uses
|
|
225
|
-
contract
|
|
232
|
+
root. The launcher owns no Store/lease and uses the versioned v1 process
|
|
233
|
+
contract with an optional independently versioned conditional `--read-upgrade`
|
|
234
|
+
environment extension. Its current successful answer and pre-read repository
|
|
235
|
+
change position are scoped to the exact reader runtime, journal, run, lineage
|
|
236
|
+
and recovery context. An unchanged runtime helper makes one position request,
|
|
237
|
+
with zero metadata/reducer/event reads; it revalidates target cache identity
|
|
238
|
+
and rollback retention locally on every check. Full refresh samples position
|
|
239
|
+
before projection reads, so concurrent appends invalidate the following check.
|
|
240
|
+
Errors discard conditional state; unloadable targets retain the healthy
|
|
241
|
+
predecessor reader fallback with the active query. Old peers still exchange
|
|
242
|
+
full v1 answers. Polling remains 1 second idle / 250 ms pending, and cached
|
|
243
|
+
answers still drive pending actions, child exits and recovery expiry.
|
|
244
|
+
Automatic upgrades default on: the kernel checks immediately and every
|
|
226
245
|
60 seconds, resolving a declared Autobuild dependency and Bun lock from the same
|
|
227
246
|
authoritative base-branch commit. Unpinned repositories reread the original
|
|
228
247
|
installation pathname, retained across handoffs. Launching from a source root
|
|
@@ -245,9 +264,16 @@ The distinctions that change an administrator's answer:
|
|
|
245
264
|
accepted or revived by detection; a newly prepared attempt must pass preflight.
|
|
246
265
|
Compatible generations drain: the predecessor releases terminal
|
|
247
266
|
input/rendering and repository authority, then supervises only captured local
|
|
248
|
-
executions while the successor owns ticks and launches.
|
|
267
|
+
executions while the successor owns ticks and launches. The presenting input
|
|
268
|
+
subscription reasserts raw termios on activation and every 100 ms, repairing
|
|
269
|
+
retired processes' exit-time restores on the next maintenance turn (subject
|
|
270
|
+
to event-loop delays). It cancels maintenance before release, suspension or
|
|
271
|
+
shutdown and restores prior raw/flow state, leaving the shell cooked. Local and remote runners finish
|
|
249
272
|
their current phase, compare their immutable attach runtime with the accepted
|
|
250
273
|
target using existing boundary facts, and durably request relaunch on mismatch.
|
|
274
|
+
Remote recovery confirms whole-sandbox stop before recording an execution end
|
|
275
|
+
or releasing its lease; command exit alone is insufficient. Stop failure defers
|
|
276
|
+
publication and replacement until teardown succeeds.
|
|
251
277
|
Confirmed teardown has the neutral `relaunch` outcome; the current repository
|
|
252
278
|
owner resumes from durable state on its runtime, even after an ownership gap.
|
|
253
279
|
Equal or absent targets preserve normal execution. Unknown/incompatible
|
|
@@ -293,7 +319,7 @@ The distinctions that change an administrator's answer:
|
|
|
293
319
|
Current, distinct previous, held and live-process runtimes survive pruning.
|
|
294
320
|
Cached Bun entries disable auto-install and explicitly pin a neutral compiler
|
|
295
321
|
config. Third-party files remain as installed. `--plain`/non-TTY run directly
|
|
296
|
-
within the generation; `--once`, origin
|
|
322
|
+
within the generation; `--once`, origin-mode and hot development paths bypass
|
|
297
323
|
the launcher. `--once` remains one tick plus drain.
|
|
298
324
|
- **Live configuration** has two explicit contexts. A running dispatcher owns
|
|
299
325
|
the last valid snapshot from the **main checkout**; dispatch, setup, and each
|
|
@@ -303,7 +329,28 @@ The distinctions that change an administrator's answer:
|
|
|
303
329
|
notice, and restoring a valid file resumes reload. Scoped phase CLI processes
|
|
304
330
|
still read the build worktree's branch-owned file. Dispatcher merge readiness,
|
|
305
331
|
resume, and execution recovery use the runner's pinned commands, verify, and
|
|
306
|
-
finalize configuration
|
|
332
|
+
finalize configuration through the cycle capture's exact artifact revision.
|
|
333
|
+
At every verify-cycle entry, after restack or reconcile settles, the runner
|
|
334
|
+
reads `autobuild.toml` from the execution checkout at resolved `HEAD` (including
|
|
335
|
+
detached integration heads). `verify.config-captured` cites an immutable
|
|
336
|
+
`verify-cycle-config` artifact revision, checkout head, build-owned content
|
|
337
|
+
identity and truthful source metadata. Dirty worktree bytes carry
|
|
338
|
+
`worktree-dirty` without a commit. A settled stage boundary rechecks the
|
|
339
|
+
build-owned sections and the known source commit's ancestry. A change or
|
|
340
|
+
non-ancestor source records `verify.config-superseded` and starts a fresh cycle
|
|
341
|
+
before constructing any further member. Already launched siblings settle first.
|
|
342
|
+
A waiting leaf with completed verification retains its receipts after a clean
|
|
343
|
+
rewrite when build-owned config is unchanged, even when the rewrite replaces
|
|
344
|
+
the pin commit's ancestry. Changed config still supersedes while waiting; a
|
|
345
|
+
future verification cycle always captures fresh config before running steps.
|
|
346
|
+
Old pass/skip receipts cannot satisfy that cycle, and supersession creates no
|
|
347
|
+
failure or failure-budget charge. Unchanged config on a descendant head retains
|
|
348
|
+
its pin; every new cycle still rereads the checkout. Read, parse and Git evidence
|
|
349
|
+
failures block verification as infrastructure failures. Recovery and readiness
|
|
350
|
+
read the capture's exact revision, so a concurrent deployment reload cannot
|
|
351
|
+
replace its build-owned sections. Historical streams capture before further
|
|
352
|
+
verification. Deployment-owned reloads remain live; environments are not
|
|
353
|
+
re-provisioned.
|
|
307
354
|
- **Workspaces** are provisioned per build and remain the locally reachable
|
|
308
355
|
execution context for that build.
|
|
309
356
|
- **Ticket providers** (`linear`, `file`) sit behind one port; the dispatcher
|
|
@@ -317,7 +364,7 @@ The distinctions that change an administrator's answer:
|
|
|
317
364
|
successful content-producing finalize post-step. Reconcile alone uses an exact expected-head guarded rewrite after archiving every recorded Git tip under `refs/autobuild/archive/<slug>/<sha>`.
|
|
318
365
|
`github` publishes through GitHub. `local-git` performs no remote/network/`gh`
|
|
319
366
|
operation: durable PR records live under private Git refs, the review locator
|
|
320
|
-
is `refs/heads/ab/<slug>`, and consent
|
|
367
|
+
is `refs/heads/ab/<slug>`, and consent merges a local guarded, unsigned squash
|
|
321
368
|
whose message is the deposited PR description and whose author and committer
|
|
322
369
|
come from the repository's ordinary Git identity. If Git cannot resolve that
|
|
323
370
|
identity, the PR remains open with actionable `user.name` / `user.email`
|
|
@@ -348,7 +395,7 @@ evaluated as config logic.
|
|
|
348
395
|
|
|
349
396
|
**Strictness:** unknown top-level keys/tables and unknown keys inside known
|
|
350
397
|
tables are **errors**, not warnings — a typo must not silently disable a
|
|
351
|
-
verifier. The open maps are `[commands]`, `[roles]`, `[workspace.config]`,
|
|
398
|
+
verifier. The open maps are `[accounts]`, `[commands]`, `[roles]`, `[workspace.config]`,
|
|
352
399
|
`[workspace.config.runtimeProvisioning]`, `[verify.<step>]`, and
|
|
353
400
|
`[finalize.<step>]`. Autobuild strictly validates the
|
|
354
401
|
repository-defined command, role, and step entries. `[workspace.config]` is
|
|
@@ -404,7 +451,7 @@ and `[roles.*].runtime`. BuildStore uses the remote HTTP protocol, not this
|
|
|
404
451
|
manifest, and TelemetrySource has no registration map.
|
|
405
452
|
|
|
406
453
|
For the complete author workflow—from choosing one of the four open ports,
|
|
407
|
-
through the strict versioned manifest and environment
|
|
454
|
+
through the strict versioned manifest and secrets supplied through the environment, to the
|
|
408
455
|
unchanged shared contract suite and optional npm publication—read
|
|
409
456
|
[`references/plugin-authoring.md`](references/plugin-authoring.md).
|
|
410
457
|
|
|
@@ -421,9 +468,9 @@ credential. See [repository setup](references/setup.md#connect-a-project).
|
|
|
421
468
|
Changing the store requires restarting dispatch.
|
|
422
469
|
|
|
423
470
|
|
|
424
|
-
### `[
|
|
471
|
+
### `[merge]`
|
|
425
472
|
|
|
426
|
-
Declare an ordered array of rules with `[[
|
|
473
|
+
Declare an ordered array of rules with `[[merge]]` headers. Each rule ANDs
|
|
427
474
|
its predicates; the first match wins. Omitted predicates are wildcards.
|
|
428
475
|
An unmatched leaf defaults to `auto`; an unmatched node defaults to `consent`.
|
|
429
476
|
Rules are strict and blank predicates are rejected with their array index.
|
|
@@ -437,7 +484,7 @@ Rules are strict and blank predicates are rejected with their array index.
|
|
|
437
484
|
|
|
438
485
|
Help the human choose policy around their release process. A solo team can
|
|
439
486
|
use one catch-all `mode = "auto"` rule. A team requiring a human's review
|
|
440
|
-
for every
|
|
487
|
+
for every merge can use one catch-all `mode = "consent"` rule. For release
|
|
441
488
|
nodes that collect work automatically but require a final click, put an
|
|
442
489
|
`into = "root"`, `mode = "consent"` rule first, followed by a catch-all
|
|
443
490
|
`mode = "auto"` rule. A broad rule placed first shadows narrower rules below
|
|
@@ -507,7 +554,7 @@ available providers. A handle's `path` is absolute in its execution environment,
|
|
|
507
554
|
reachability.
|
|
508
555
|
|
|
509
556
|
`provider = "vercel-sandbox"` runs the complete build in a persistent Vercel VM
|
|
510
|
-
and requires
|
|
557
|
+
and requires a remote store that speaks the remote BuildStore protocol over HTTPS and a scoped token, GitHub HTTPS origin, GitHub
|
|
511
558
|
forge, a dispatcher-side push-capable `GITHUB_TOKEN` or `GH_TOKEN`, and either
|
|
512
559
|
`VERCEL_OIDC_TOKEN` or the `VERCEL_TOKEN`/`VERCEL_TEAM_ID`/
|
|
513
560
|
`VERCEL_PROJECT_ID` tuple. These credentials are validated before claims:
|
|
@@ -531,7 +578,7 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
531
578
|
|
|
532
579
|
`timeoutSeconds` is required (60–86400; Hobby currently caps at 2700), `vcpus`
|
|
533
580
|
is 1–32, and optional `region`/unique `failoverRegions` select placement. Only
|
|
534
|
-
the named runtime variables and scoped `AB_STORE`/`AB_TOKEN` enter guest
|
|
581
|
+
the named runtime variables, declared account placeholders, and scoped `AB_STORE`/`AB_TOKEN` enter guest
|
|
535
582
|
commands. Never list Store, Forge, Vercel, or private-clone credentials there.
|
|
536
583
|
Every effective primary/alternate runtime needs a strict
|
|
537
584
|
`runtimeProvisioning` entry with pinned `install` and exact-version `preflight`
|
|
@@ -539,8 +586,7 @@ commands; runtime names remain open for plugins. Install/preflight runs before
|
|
|
539
586
|
the marker in every fresh/replacement/readiness sandbox, and preflight reruns
|
|
540
587
|
before every child. Failures name the runtime, role/alternate, and field and
|
|
541
588
|
start no agent. Keep runtime installation out of `commands.setup`. Pi over
|
|
542
|
-
`vercel-ai-gateway/...` uses `AI_GATEWAY_API_KEY`; never copy OAuth tokens,
|
|
543
|
-
`~/.pi`, or interactive login state. The clone identity is upload-pack-only and
|
|
589
|
+
`vercel-ai-gateway/...` uses `AI_GATEWAY_API_KEY`; never copy Pi state or Pi OAuth refresh tokens. Claude Code can select named [accounts](references/accounts.md): subscription tokens or region-bound Kimi Code keys stay on the dispatcher, with placeholders in the guest and exact-host/header egress transforms. Use the unmodified runtime, your own subscription and ordinary individual usage. Provision Claude/Kimi credentials manually; Autobuild never invokes `claude setup-token`. Codex can explicitly select a ChatGPT Plus/Pro account authorized with `bun ab accounts login NAME [--local|--project]`; exactly one dispatcher or hosted refreshing secret owns its renewal. The clone identity is upload-pack-only and
|
|
544
590
|
scrubbed from Git config before an agent starts. Agents cannot push. Remote phase terminals deposit a durable
|
|
545
591
|
publication request and park; that successful `ab done` is the one terminal and
|
|
546
592
|
must not be repeated. After VM stop and lease release, the local kernel
|
|
@@ -593,8 +639,9 @@ For example, set `afterReconcile = false` in `[verify]` and
|
|
|
593
639
|
|
|
594
640
|
The kernel freezes the resolved ordered policy in
|
|
595
641
|
`verify.reconcile-policy-captured` at the next engine action after reconcile
|
|
596
|
-
completion.
|
|
597
|
-
|
|
642
|
+
completion. A cycle already started keeps its policy through recovery.
|
|
643
|
+
Configuration supersession starts a fresh cycle and captures a new policy for
|
|
644
|
+
its configured universe, retaining the original reconcile identity. Historical cycles already started
|
|
598
645
|
without a captured policy retain the rerun-all behavior. Initial verification
|
|
599
646
|
and verification after subsequent code review always use ordinary applicability.
|
|
600
647
|
Policy exclusion precedes plan selection and paths, including `always = true`.
|
|
@@ -603,16 +650,17 @@ Enabled steps still follow plan selection and path rules. Excluded steps record
|
|
|
603
650
|
and a reason naming the setting. Dashboards and PR summaries call this
|
|
604
651
|
"skipped by post-reconcile policy"; it is never a pass. Forge-side required
|
|
605
652
|
checks and branch protections still gate merge. For excluded steps, merged code
|
|
606
|
-
is not re-verified, so breakage that only exists in the combination can
|
|
653
|
+
is not re-verified, so breakage that only exists in the combination can merge.
|
|
607
654
|
|
|
608
655
|
|
|
609
|
-
`steps` orders
|
|
610
|
-
`verify:<step>` phase
|
|
656
|
+
`steps` orders stages: a name is a singleton, an array groups concurrent
|
|
657
|
+
members. Every name becomes a `verify:<step>` phase with its own table. Those
|
|
611
658
|
subtables are part of this section — their fields are listed here.
|
|
612
659
|
|
|
613
660
|
| Field | Default | Allowed / constraints | Effect |
|
|
614
661
|
|---|---|---|---|
|
|
615
|
-
| `steps` | `[]` |
|
|
662
|
+
| `steps` | `[]` | strings or nonempty arrays of names; no duplicate names | Ordered stages. Members start together; every pass or skip is required before the next stage. Each name needs a matching table. |
|
|
663
|
+
| `failFast` | `false` | optional boolean on either verify kind | A failure cancels unfinished members of its stage, then tears down and relaunches the whole execution before implement. |
|
|
616
664
|
| `kind` | — | **required**, `"check"` \| `"agent"` | Discriminator. `check` is deterministic (command + pass/fail, never an agent); `agent` runs a skill that returns `pass`, `fail`, or `skip`. |
|
|
617
665
|
| `command` | — | **required when `kind = "check"`**, nonempty string | Ref into `[commands]` — the key, not a shell string. Pass/fail is the command's exit status. |
|
|
618
666
|
| `skill` | — | **required when `kind = "agent"`**, nonempty string | Installed skill name to run (e.g. a repository-authored `"verify-acceptance"`). |
|
|
@@ -620,6 +668,41 @@ subtables are part of this section — their fields are listed here.
|
|
|
620
668
|
| `afterReconcile` | repository: `true`; step: inherited | boolean | Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only. |
|
|
621
669
|
| `always` | — | optional boolean | `true` makes the step unconditional and mandatory (a plan cannot deselect it); `false` is equivalent to omission. |
|
|
622
670
|
|
|
671
|
+
### Choosing verify stages
|
|
672
|
+
|
|
673
|
+
Run cheap gates early, and put deterministic checks before agents. Agent runs
|
|
674
|
+
spend model budget, and an agent examining software that cannot build can produce misleading reports. Group
|
|
675
|
+
independent failures to collect useful reports in one round trip. Keep steps
|
|
676
|
+
that share mutable ports, databases, output directories or caches apart unless
|
|
677
|
+
they are isolated; if they cannot run together in a developer terminal, they
|
|
678
|
+
cannot run together here. CPU demand multiplies by build `capacity`; no cap
|
|
679
|
+
limits stage size, so configuration is the entire concurrency budget.
|
|
680
|
+
|
|
681
|
+
Use `failFast` when a failure invalidates sibling results, or when a failing
|
|
682
|
+
step usually finishes much sooner than its siblings. Waiting costs the chance
|
|
683
|
+
of this failure multiplied by siblings' remaining time; it saves the chance of
|
|
684
|
+
an independent sibling failure multiplied by an implement/review/reverify round
|
|
685
|
+
trip. Decide using actual failure and duration history, including checks that
|
|
686
|
+
implementers already run before `done`. Give every agent its own inputs through
|
|
687
|
+
`$AB_CONTEXT_DIR`, never fixed `.ab/` paths; concurrent verifiers share the
|
|
688
|
+
workspace, not their context directories.
|
|
689
|
+
|
|
690
|
+
Default failure waits for all siblings, including an escalated verifier's
|
|
691
|
+
answer and rerun. Fail-fast cancellation supersedes only that occurrence's
|
|
692
|
+
agent escalation, including late raises/answers; it is no longer answer-required
|
|
693
|
+
and never delivers guidance into another occurrence. A cancelled member is not
|
|
694
|
+
run, never passing evidence. Whole-execution teardown and replacement add a
|
|
695
|
+
relaunch cost but prevent cancelled descendants from writing during implement.
|
|
696
|
+
Restart reruns only members without outcomes, keeping the same attempt and every
|
|
697
|
+
recorded outcome. One failed cycle spends one verify-attempt unit.
|
|
698
|
+
|
|
699
|
+
`verify.stage-failed` is the decisive full-feedback receipt. The legacy
|
|
700
|
+
`feedback.verify` object still names the first failed report; the implement
|
|
701
|
+
manifest also lists all reports and not-run cancellations through its receipt
|
|
702
|
+
reference, including on guidance rounds. Rounds without a referenced receipt
|
|
703
|
+
have no cancellation list. Finalize receives historical reports but no
|
|
704
|
+
`cancelledVerify` list; its evidence is the satisfied current cycle.
|
|
705
|
+
|
|
623
706
|
A plan may begin with strict TOML front matter selecting the complete set of
|
|
624
707
|
optional verification it warrants:
|
|
625
708
|
|
|
@@ -633,14 +716,32 @@ Names must already exist in `[verify].steps` with matching tables; duplicates,
|
|
|
633
716
|
blanks, unknown names, malformed metadata, and omission of an `always = true`
|
|
634
717
|
step make the planner's `ab done` fail before `plan.completed` is appended.
|
|
635
718
|
|
|
719
|
+
Repository-authored verify and finalize skills must run `ab context`, then read
|
|
720
|
+
`"$AB_CONTEXT_DIR/context.json"` and the inputs under `$AB_CONTEXT_DIR`.
|
|
721
|
+
Materialized keys are directory-relative; manifest path fields are workspace-relative.
|
|
722
|
+
Scratch output, downloaded references, probes, and temporary scripts belong under `.ab/`
|
|
723
|
+
(prefer the current `$AB_CONTEXT_DIR` when appropriate), never at the worktree
|
|
724
|
+
root, and must not be committed. Manifest-directed artifact paths remain authoritative.
|
|
725
|
+
|
|
726
|
+
Large scratch belongs under the session's `.ab/` directory (prefer `$AB_CONTEXT_DIR`),
|
|
727
|
+
not `/tmp`: this includes ad-hoc PostgreSQL data/cluster directories, Cargo target
|
|
728
|
+
directories, browser profiles, and database copies. Configure `PGDATA`,
|
|
729
|
+
`CARGO_TARGET_DIR`, and explicit browser profile paths for those resources.
|
|
730
|
+
Keep `TMPDIR` outside the worktree for test suites and commands that discover
|
|
731
|
+
repositories or configuration through parent directories, including focused tests
|
|
732
|
+
and Git probes. Do not relocate required installed tooling or retained evidence;
|
|
733
|
+
manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
734
|
+
|
|
735
|
+
Keep concurrent verifiers in their distinct context directories.
|
|
736
|
+
|
|
636
737
|
An agent verify step is handed the build's pinned ticket assets under
|
|
637
|
-
|
|
738
|
+
`$AB_CONTEXT_DIR/assets/` (listed in `$AB_CONTEXT_DIR/context.json`) as well as the spec. A verify skill
|
|
638
739
|
should treat a `design` asset as part of the contract, a contract on observable
|
|
639
740
|
visual and reference outcomes, not on implementation, and judge the result
|
|
640
741
|
against it.
|
|
641
742
|
|
|
642
743
|
Node `verify:*` context additionally exposes `nodeVerification`: the frozen
|
|
643
|
-
range, a JSON index path, contribution build slugs,
|
|
744
|
+
range, a JSON index path, contribution build slugs, preparation-time stored ticket
|
|
644
745
|
identities, event-authorized spec revisions and spec paths, and their commits.
|
|
645
746
|
The index maps every commit in the range using build identity trailers,
|
|
646
747
|
including earlier-cycle contributions and merge side history. Commits without
|
|
@@ -651,7 +752,14 @@ Their full messages express maintainer-authorized intent: judge quality and
|
|
|
651
752
|
consistency, and never fail them solely for lacking a covering spec. Other node
|
|
652
753
|
changes are authorized when covered by the node spec or the spec
|
|
653
754
|
of the contribution introducing it; use the commit mapping to find that spec.
|
|
654
|
-
|
|
755
|
+
The dispatcher collects these inputs with repository authority before launching
|
|
756
|
+
verification and atomically deposits a node-owned `node-verification-context`
|
|
757
|
+
artifact cited by exact revision in `integration.prepared`. Contributor specs
|
|
758
|
+
freeze at preparation; resumed and concurrent verifiers read the same cycle input.
|
|
759
|
+
Hydration reads only that node-owned artifact and grants no general contributor
|
|
760
|
+
read authority. Missing or ambiguous provenance prevents preparation; missing,
|
|
761
|
+
corrupt or mismatched prepared inputs fail hydration. Historical agent cycles
|
|
762
|
+
without a citation require a new integration cycle. Leaf context is unchanged.
|
|
655
763
|
|
|
656
764
|
An agent verify step selects `[roles.<step>]` by its **logical step name** —
|
|
657
765
|
the name in `[verify].steps`, not the skill it runs. An agent finalize
|
|
@@ -681,6 +789,13 @@ selection from the exact plan completion approved by `plan-review` is
|
|
|
681
789
|
authoritative. A spec restart replaces it with the newly approved plan; a
|
|
682
790
|
reconcile reuses it.
|
|
683
791
|
|
|
792
|
+
If the approved selection later names any step absent from the cycle's pinned
|
|
793
|
+
configured universe, the entire selection falls back to all configured optional
|
|
794
|
+
steps. The kernel records one observation per cycle and plan revision naming
|
|
795
|
+
the unknown steps. Mandatory steps, path applicability and post-reconcile policy
|
|
796
|
+
still apply. A valid selection continues to skip genuinely omitted optional
|
|
797
|
+
steps. Strict validation when depositing a new plan is unchanged.
|
|
798
|
+
|
|
684
799
|
Cross-field rules the validator actually enforces — each is an **error**:
|
|
685
800
|
|
|
686
801
|
- A step listed in `steps` with no `[verify.<step>]` table.
|
|
@@ -742,6 +857,9 @@ Ordinary silence, provider failures and session timeouts retain the runner's
|
|
|
742
857
|
phase failure limit (`BuildRunnerOpts.maxPhaseAttempts`, default 2). This is
|
|
743
858
|
an internal runner option, not an accepted `[policy]` TOML key. Reconcile
|
|
744
859
|
execution and unchanged-base progress budgets retain their existing accounting.
|
|
860
|
+
Classified transient leaf restack/reconcile publication uses its own six-retry
|
|
861
|
+
budget and durable deadlines; answering `publication-retry-limit` resets only
|
|
862
|
+
that publication episode.
|
|
745
863
|
|
|
746
864
|
### `[finalize]`
|
|
747
865
|
|
|
@@ -817,20 +935,41 @@ the agent never pushes. An unchanged `HEAD` creates and pushes no commit. Dirty
|
|
|
817
935
|
output, rewritten history, Git errors, and publication failures record the
|
|
818
936
|
step as failed and file an observation while the green build continues.
|
|
819
937
|
|
|
938
|
+
### `[accounts]`
|
|
939
|
+
|
|
940
|
+
An open map of account name to a strict, nonsecret descriptor. Claude and Kimi
|
|
941
|
+
accounts use Claude Code; ChatGPT subscriptions require explicit Codex selection.
|
|
942
|
+
Provision Claude/Kimi credentials manually; authorize ChatGPT with
|
|
943
|
+
`bun ab accounts login NAME [--local|--project]`. Exactly one local dispatcher
|
|
944
|
+
or hosted refreshing secret owns renewal; guests only hold placeholders. Full
|
|
945
|
+
examples, remedies and regional routing are in [billing accounts](references/accounts.md).
|
|
946
|
+
|
|
947
|
+
| Field | Meaning |
|
|
948
|
+
|---|---|
|
|
949
|
+
| `kind` | `claude-subscription` for a setup token, `kimi-code` for a membership key, or `chatgpt-subscription` for a Plus/Pro plan through OpenAI sign-in. |
|
|
950
|
+
| `credentialEnv` | Portable dispatcher environment variable identifier, excluding reserved `AB_` control names. |
|
|
951
|
+
| `region` | Kimi only: `overseas` (default) or `china`; endpoint and egress host are selected together. |
|
|
952
|
+
|
|
820
953
|
### `[roles]`
|
|
821
954
|
|
|
822
|
-
An **open map** of role name → `{ runtime?, model?, args?, extensions?, sessionBudgetSeconds?, alternates? }`.
|
|
823
|
-
The
|
|
955
|
+
An **open map** of role name → `{ runtime?, model?, account?, args?, extensions?, sessionBudgetSeconds?, alternates? }`.
|
|
956
|
+
The four primary axes, session budget, and ordered alternate list inherit independently. The reserved `default` role must explicitly name a
|
|
824
957
|
runtime, is the raw inheritance base for every other role, and is **never
|
|
825
958
|
dispatched as a phase**. Its absence fails eager resolution before a session,
|
|
826
959
|
with a copyable fix and all registered runtime names. Three runtimes ship:
|
|
960
|
+
Named `[accounts]` are deployment-owned nonsecret descriptors, adopted atomically
|
|
961
|
+
with `[roles]`. The `account` axis inherits independently on primary and alternate
|
|
962
|
+
routes. A Claude route defaults to the sole Claude subscription account, and
|
|
963
|
+
ambiguity or incompatible runtimes fail validation. See [billing accounts](references/accounts.md)
|
|
964
|
+
for provisioning, ChatGPT sign-in destinations, Kimi regions, placeholders, single-owner renewal and metadata-only hosted readiness.
|
|
965
|
+
|
|
827
966
|
**`claude`** (local Claude Code CLI), **`codex`** (local Codex CLI; unqualified
|
|
828
967
|
`gpt-*` ids), and **`pi`** (local Pi CLI 0.84.3 or newer; provider-qualified ids
|
|
829
968
|
such as the independent `openai-codex/gpt-5.6-sol` route). Pi runs headlessly
|
|
830
969
|
through RPC and uses that local installation's login and model catalog;
|
|
831
970
|
Autobuild does not install it. `ab models [query]` lists the local catalog, and
|
|
832
971
|
`ab models --available` filters it to configured credentials. Claude and Codex
|
|
833
|
-
delegate an omitted model to their CLI default; Pi declares `kimi-coding/k3`.
|
|
972
|
+
delegate an omitted model to their CLI default; a Claude route selecting a Kimi Code account defaults to `kimi-for-coding`; Pi declares `kimi-coding/k3`.
|
|
834
973
|
Trusted plugins may register additional runtime names;
|
|
835
974
|
they use the same role inheritance, default-model compatibility validation,
|
|
836
975
|
session event attribution, and optional one-shot capability path as builtins.
|
|
@@ -843,7 +982,7 @@ release. The repository workflow resolves `harvest` and `harvest-review`. Two
|
|
|
843
982
|
non-phase judgments use the same runtime/model/args resolver: `slug` optionally
|
|
844
983
|
proposes pre-build naming, and `upgrade` proposes a resolution only when a
|
|
845
984
|
vendored skill merge conflicts. Both are tool-free one-shots and receive the
|
|
846
|
-
role's effective `args
|
|
985
|
+
role's effective `args` and selected account. Missing slug capability uses the deterministic title fallback;
|
|
847
986
|
unavailable upgrade judgment retains the conflict for manual resolution.
|
|
848
987
|
|
|
849
988
|
A declared key that none of those routes requests is resolved and validated
|
|
@@ -859,24 +998,35 @@ consumed by the core `plan` phase, and nothing is reported.
|
|
|
859
998
|
| Field | Default | Allowed / constraints | Effect |
|
|
860
999
|
|---|---|---|---|
|
|
861
1000
|
| `runtime` | — | required on `default`; otherwise optional, nonempty string | Runtime for this role. A child that omits it inherits `[roles.default].runtime`. Must name a registered runtime. |
|
|
862
|
-
| `
|
|
863
|
-
| `
|
|
1001
|
+
| `account` | Named billing account; inherits independently on primaries and alternates. Omission selects the sole Claude subscription account for a Claude route. |
|
|
1002
|
+
| `model` | — | optional, nonempty string | Model for this role. A role that omits it inherits `[roles.default].model`; when neither names a model, a Claude route selecting a Kimi Code account uses `kimi-for-coding`, and every other route uses its runtime's own default. |
|
|
1003
|
+
| `args` | `[]` | optional, array of nonempty strings | Ordered extra CLI argv tokens for every phase and tool-free one-shot invocation. Omitted ⇒ inherit `[roles.default].args`; a set list, including `[]`, replaces it wholesale. Each string is one token, without shell parsing. Model and parsed protocol/output-mode spellings are rejected eagerly; Claude routes with a selected account additionally reject `--settings`, `--setting-sources`, and `--bare` because Autobuild owns their authentication settings. Codex routes selecting a ChatGPT subscription account additionally reject `-c`, `--config`, `--profile`, `-p`, `--enable`, and `--disable` because Autobuild owns their provider and configuration routing. |
|
|
864
1004
|
| `extensions` | no effect | deprecated optional array of nonempty strings | Compatibility-only field. Dispatch warns for each declaring role and directs migration to `args`. |
|
|
865
1005
|
| `sessionBudgetSeconds` | policy fallback | optional positive integer | Active-time budget for each build phase session on this logical role; suspended intervals are excluded and native continuation retains the original ceiling. Omitted ⇒ inherit `[roles.default].sessionBudgetSeconds`; absent there too ⇒ `[policy].sessionBudgetSeconds`. One value covers the primary and every alternate. |
|
|
866
|
-
| `alternates` | `[]` | optional ordered array of strict `{ runtime?, model?, args?, extensions? }` entries | Failure-triggered targets. Omitted ⇒ inherit `[roles.default].alternates`; a role list, including `[]`, replaces it wholesale. Each entry overlays that role's effective primary axes and is eagerly validated. `extensions` remains only the deprecated no-op. |
|
|
1006
|
+
| `alternates` | `[]` | optional ordered array of strict `{ runtime?, model?, account?, args?, extensions? }` entries | Failure-triggered targets. Omitted ⇒ inherit `[roles.default].alternates`; a role list, including `[]`, replaces it wholesale. Each entry overlays that role's effective primary axes and is eagerly validated. `extensions` remains only the deprecated no-op. |
|
|
867
1007
|
|
|
868
1008
|
Inheritance is mechanical and **independent per field**: merge each configured
|
|
869
1009
|
role over the raw `default` entry, then validate the exact runtime/model pair.
|
|
870
1010
|
The named runtime must serve the named model. A model-only role never searches
|
|
871
1011
|
for another runtime, and an incompatible inherited model is never replaced by
|
|
872
1012
|
the selected runtime's default. The one implicit fill-in is benign: if neither
|
|
873
|
-
the phase role nor `default` names a model,
|
|
874
|
-
|
|
1013
|
+
the phase role nor `default` names a model, a Claude route selecting a Kimi Code
|
|
1014
|
+
account uses `kimi-for-coding`; every other route uses its runtime's own default.
|
|
1015
|
+
Alternates overlay the primary runtime, model, account, and args before model
|
|
1016
|
+
defaults are applied, so an alternate without an explicit or inherited model uses
|
|
1017
|
+
the default for its own selected account and runtime. Compatibility failures name the role, runtime, model, and served
|
|
875
1018
|
model families; all problems in `default` and every declared role are
|
|
876
1019
|
aggregated by one eager resolver construction before judgment runs. Runtime
|
|
877
|
-
adapters reject
|
|
1020
|
+
adapters reject the model and parsed protocol/output-mode options they
|
|
878
1021
|
emit: Claude rejects `-p`/`--print`, `--output-format`, and `--model`; Codex
|
|
879
|
-
rejects `--json` and `--model`/`-m`; Pi rejects `--mode` and `--model`.
|
|
1022
|
+
rejects `--json` and `--model`/`-m`; Pi rejects `--mode` and `--model`. Claude
|
|
1023
|
+
routes with a selected account additionally reject `--settings`,
|
|
1024
|
+
`--setting-sources`, and `--bare` because Autobuild owns their authentication
|
|
1025
|
+
settings. Codex routes selecting a ChatGPT subscription account additionally
|
|
1026
|
+
reject `-c`, `--config`, `--profile`, `-p`, `--enable`, and `--disable`
|
|
1027
|
+
because Autobuild owns their provider and configuration routing. This includes
|
|
1028
|
+
using `-c` to set reasoning effort. Routes without an account retain the existing
|
|
1029
|
+
argument behavior. Exact
|
|
880
1030
|
spellings, `--option=value` forms, and documented compact short aliases join
|
|
881
1031
|
that same role-naming aggregate. Every other option passes through without
|
|
882
1032
|
Autobuild validation, including sandbox, approval, session, tool, skill,
|
|
@@ -977,7 +1127,8 @@ own-build-read deferral and its answer resets no phase failures; reconcile no-pr
|
|
|
977
1127
|
while `round` remains occurrence scope. Answering a runner-failure cause re-arms
|
|
978
1128
|
only its matching phase and round. The phase-level `verify-failure-limit` cause
|
|
979
1129
|
explicitly re-arms all rounds for its verify target, while
|
|
980
|
-
`reconcile-no-progress` and the setup-only cause reset
|
|
1130
|
+
`reconcile-no-progress`, `publication-retry-limit` and the setup-only cause reset
|
|
1131
|
+
no phase-runner failures.
|
|
981
1132
|
The closed cause map forces every future policy condition to choose one of these
|
|
982
1133
|
semantics instead of inheriting behavior from a missing `round`. Runner failures
|
|
983
1134
|
while checking progress or refreshing the base therefore remain counted after a
|
|
@@ -1044,7 +1195,7 @@ An explicit `readyLabels` value always wins for every source.
|
|
|
1044
1195
|
`proposalState` is the one supported way to waive the grooming gate, and it is
|
|
1045
1196
|
deliberately not `triageState`. Do not suggest pointing `triageState` at the
|
|
1046
1197
|
ready state to get auto-dispatched proposals: `triageState` is also where a
|
|
1047
|
-
spec-gate bounce
|
|
1198
|
+
spec-gate bounce merges, so a nonconforming ticket would be claimed, bounced,
|
|
1048
1199
|
and reclaimed on every tick. `proposalState` moves only what harvest files.
|
|
1049
1200
|
|
|
1050
1201
|
Cross-field rules, each an **error**:
|
|
@@ -1090,23 +1241,21 @@ environment variable instead and say why.
|
|
|
1090
1241
|
|
|
1091
1242
|
### `[orchestrator]`
|
|
1092
1243
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
turn runner that answers operator sessions and wakes on build attention
|
|
1098
|
-
events. The whole table is **closed to unknown keys** and restart-classified:
|
|
1099
|
-
changing it requires a dispatcher restart.
|
|
1244
|
+
Enables credential-free sandbox environments per session owner and repository,
|
|
1245
|
+
driven by external agents through `sandbox.*` tools. Operators run in external
|
|
1246
|
+
harnesses; the service never starts or resumes them. The table is strict and
|
|
1247
|
+
restart-classified.
|
|
1100
1248
|
|
|
1101
1249
|
| Field | Default | Allowed / constraints | Effect |
|
|
1102
1250
|
|---|---|---|---|
|
|
1103
|
-
| `enabled` | `false` | boolean |
|
|
1104
|
-
| `model` | — (required when `enabled = true`) | nonblank provider-qualified string, same vocabulary as `[roles]` | The turn runner's model, resolved through the deployment's gateway credential; a leading `vercel-ai-gateway/` prefix is accepted and stripped. |
|
|
1105
|
-
| `invocationBudgetSeconds` | `240` | positive integer, clamped to 300 | Wall-clock budget for one turn invocation. A larger value is clamped — not rejected — to the 300-second hosted function limit the runner executes under. |
|
|
1106
|
-
| `approvals` | `["builds.control:abort", "builds.control:discard", "builds.answer:revise-spec", "sandbox.publish", "tickets.move:ready"]` | array of `tool` or `tool:qualifier` strings | Registry tool calls that suspend a turn until the human answers. Empty (`[]`) means none — autonomous operation. An entry naming an absent or unknown tool is **inert by design**, never an error. A qualified entry applies to one discriminator value only (`tickets.move:ready` approves moving a ticket to `ready`); for a tool without a discriminator, only the bare form matches. |
|
|
1107
|
-
| `wake` | inherits the default | array of event-type globs | The attention events a **new** session wakes for. Absent inherits the legacy hosted wake event set including `integration.verification-failed`, independent of CLI watch defaults; an explicit `[]` means never wake — message-only. Each glob must match at least one build event type. Existing sessions never retroactively inherit; an explicit wake update always wins. |
|
|
1251
|
+
| `enabled` | `false` | boolean | Enables external sandbox tools, archive cleanup and dispatcher idle settlement. |
|
|
1108
1252
|
| `sandbox` | — | strict subtable | The sandbox behavior knobs; absence reads as the defaults below. |
|
|
1109
1253
|
|
|
1254
|
+
The removed runner settings `model`, `invocationBudgetSeconds`, `approvals` and
|
|
1255
|
+
repository-default `wake` are rejected in new config. Historical effective
|
|
1256
|
+
config artifacts remain readable. New sessions have no inherited wake settings;
|
|
1257
|
+
explicit session wake writes are durable facts and do not execute turns.
|
|
1258
|
+
|
|
1110
1259
|
`[orchestrator.sandbox]` fields:
|
|
1111
1260
|
|
|
1112
1261
|
| Field | Default | Allowed / constraints | Effect |
|
|
@@ -1154,7 +1303,7 @@ Exact changed targets can include downgrades. Missing or inconsistent declared-p
|
|
|
1154
1303
|
metadata never falls back to installed mode. Self-hosting source launches follow
|
|
1155
1304
|
the authoritative base commit using packaged-content and production-lock equality,
|
|
1156
1305
|
without modifying operator or build worktrees. Equal-content advances still record
|
|
1157
|
-
the latest resolved target SHA. Compatible generations overlap through the durable draining handoff described above. `--once`, origin
|
|
1306
|
+
the latest resolved target SHA. Compatible generations overlap through the durable draining handoff described above. `--once`, origin-mode and direct hot
|
|
1158
1307
|
presentation modes bypass automatic adoption. Operator stop wins over cutover.
|
|
1159
1308
|
Repository status exposes per-run resolved target, upgrade target, failure and handoff facts, both
|
|
1160
1309
|
generations, takeover, outstanding draining builds and deadline;
|
|
@@ -1164,7 +1313,7 @@ retry an unchanged failed target. No registry credentials belong in these facts.
|
|
|
1164
1313
|
## Setup and upgrades
|
|
1165
1314
|
|
|
1166
1315
|
For 0.x upgrades, first read the [migration reference](references/migration-1.0.md):
|
|
1167
|
-
|
|
1316
|
+
merge-policy conversion and resumed-build behavior are part of adoption.
|
|
1168
1317
|
|
|
1169
1318
|
**`ab init <target> [--force]`** runs *outside* build sessions — it takes a
|
|
1170
1319
|
repo path, needs no `AB_*` environment, and is safe to re-run. It:
|
|
@@ -1189,12 +1338,12 @@ repo path, needs no `AB_*` environment, and is safe to re-run. It:
|
|
|
1189
1338
|
setup prompt for the user to run in a coding agent.
|
|
1190
1339
|
- The setup agent inspects the repository, configures real commands and verify
|
|
1191
1340
|
steps, independently chooses pipeline role runtimes/models, configures the
|
|
1192
|
-
ticket source and environment
|
|
1341
|
+
ticket source and credentials supplied through the environment, arranges
|
|
1193
1342
|
an acceptance check through a repository-owned agent verify skill in every
|
|
1194
1343
|
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
|
|
1195
1344
|
and reviewing warnings. The human then starts `bun ab dispatch` and opens
|
|
1196
|
-
their operator agent with `ab-operate` to create
|
|
1197
|
-
|
|
1345
|
+
their operator agent with `ab-operate` to create and groom the first ticket,
|
|
1346
|
+
checking presence before taking the role; an existing operator picks up ready work.
|
|
1198
1347
|
- It never overwrites config once the file exists, even with `--force`; a rerun
|
|
1199
1348
|
launches or prints a prompt that asks the agent to review and improve it.
|
|
1200
1349
|
- Idempotently adds the exact `.autobuild/` rule to the target's `.gitignore`,
|
|
@@ -1377,11 +1526,16 @@ every agent session as `AB_STORE`.
|
|
|
1377
1526
|
|
|
1378
1527
|
From a checkout with an origin remote, run `ab connect https://YOUR_ORIGIN`.
|
|
1379
1528
|
The CLI prints a verification URL and short code and attempts to open a browser.
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1529
|
+
The code link opens approval directly; if sign-in is needed, it returns there.
|
|
1530
|
+
Check the full repository identity and code, and approve or deny. For an
|
|
1531
|
+
unassigned project, choose an eligible organization; a sole option is visibly
|
|
1532
|
+
selected. Approval requires that destination even for previously registered
|
|
1533
|
+
unassigned projects. Assigned projects show their organization as read-only;
|
|
1534
|
+
moving them uses project management. With no eligible organization, approval is
|
|
1535
|
+
unavailable until a super user creates one. Another device can open the printed
|
|
1536
|
+
URL, or visit `/connect` and enter the code. Approval uses the instance’s browser
|
|
1537
|
+
consent endpoint. Requests expire after ten minutes. Denial requires no
|
|
1538
|
+
organization choice; denial and timeout leave local configuration unchanged.
|
|
1385
1539
|
|
|
1386
1540
|
On approval the service registers the project and issues a project credential.
|
|
1387
1541
|
The CLI keeps it in `$XDG_CONFIG_HOME/autobuild/credentials` (or
|
|
@@ -1392,6 +1546,22 @@ absent; review and commit that change yourself. An existing different URL
|
|
|
1392
1546
|
must be changed explicitly before connecting. Reconnecting replaces the saved
|
|
1393
1547
|
credential only after approval and revokes the previous credential.
|
|
1394
1548
|
|
|
1549
|
+
Connected project members can manage write-only project secrets in the web **Settings** tab (also available to super users), or with
|
|
1550
|
+
`ab secrets list [--json]`, `ab secrets set NAME` and `ab secrets remove NAME`.
|
|
1551
|
+
Set reads hidden terminal input or redirected stdin; values never appear in
|
|
1552
|
+
arguments or responses. These sessionless commands use the saved owner
|
|
1553
|
+
credential and recheck current membership. The current setter owns the value,
|
|
1554
|
+
which serves every hosted build of that project. Hosted ticks resolve a fresh,
|
|
1555
|
+
complete encrypted set and override matching deployment variables for that
|
|
1556
|
+
project only; local dispatchers keep using their own environment. For projects
|
|
1557
|
+
with saved secrets, failed configuration, decryption or refresh prevents dispatch.
|
|
1558
|
+
Projects without secrets continue with an empty set without encryption
|
|
1559
|
+
configuration. Every secret write still requires valid encryption configuration.
|
|
1560
|
+
List exposes only status, owner, timestamps and a keyed fingerprint. See the
|
|
1561
|
+
[write-only protocol](references/remote-store-protocol.md#project-secrets-v1).
|
|
1562
|
+
Sandbox forwarding rules remain separate; saving a secret does not grant
|
|
1563
|
+
credential forwarding into an operator sandbox.
|
|
1564
|
+
|
|
1395
1565
|
All worktrees share the main checkout's configuration and the user's saved
|
|
1396
1566
|
credential. A service manager running as that user uses the same HOME and
|
|
1397
1567
|
XDG_CONFIG_HOME, with no AB_STORE or AB_TOKEN exports. A fresh clone with
|
|
@@ -1504,7 +1674,7 @@ assets are not moved and are not a fallback. Each has a kind and a name.
|
|
|
1504
1674
|
- `ab ticket attach <id> <kind> <path> [--name <name>] [--json]` stores `<path>`
|
|
1505
1675
|
(default name: its basename). Attaching the same kind and name again makes a
|
|
1506
1676
|
new revision; earlier ones stay retrievable. Over the store's size limit
|
|
1507
|
-
(25 MiB by default, lower
|
|
1677
|
+
(25 MiB by default, lower when the instance advertises a request ceiling) it is refused. Attach and
|
|
1508
1678
|
remove leave a note on the ticket naming the asset.
|
|
1509
1679
|
- `ab ticket show <id>` lists the current assets; with `--json` the ticket
|
|
1510
1680
|
gains an `assets` array.
|
|
@@ -1519,8 +1689,8 @@ assets are not moved and are not a fallback. Each has a kind and a name.
|
|
|
1519
1689
|
`--revise-spec-from-ticket` pins again. `ab build asset get <slug> <kind>
|
|
1520
1690
|
<name> <dest> [--rev <n>]` downloads what the build froze, also after it ends.
|
|
1521
1691
|
- **Where phases find them.** `ab context` writes each pinned asset to
|
|
1522
|
-
|
|
1523
|
-
directory) and lists them under `assets` in
|
|
1692
|
+
`$AB_CONTEXT_DIR/assets/<kind>/<name>/` (a file asset is the single file inside that
|
|
1693
|
+
directory) and lists them under `assets` in `$AB_CONTEXT_DIR/context.json` with kind,
|
|
1524
1694
|
name, revision, layout, size, and path. The key is absent when the build has
|
|
1525
1695
|
none.
|
|
1526
1696
|
|
|
@@ -1575,22 +1745,24 @@ accepted completion clears its handoff banner. Takeover, an overdue deadline
|
|
|
1575
1745
|
and an empty outstanding set do not complete a handoff. Multiple unfinished
|
|
1576
1746
|
generations remain visible; cutover does not mark builds draining.
|
|
1577
1747
|
|
|
1578
|
-
|
|
1579
|
-
|
|
1748
|
+
Terminal list headers show `slug → destination +N` with dim distance; work
|
|
1749
|
+
steps follow immediately. Integration progress retains its bar and child counts.
|
|
1750
|
+
Web views keep their layout and share the suffix vocabulary.
|
|
1751
|
+
Integration list rows show children merged out of the
|
|
1580
1752
|
known total, with the remainder split into building and queued. Cancelled
|
|
1581
1753
|
children are excluded. Missing or diagnostic-bearing observations show
|
|
1582
1754
|
`children unknown`; a successful empty enumeration shows `no children yet`.
|
|
1583
|
-
The five list steps are `spec`, `open`, `collect`, `verify`, and `
|
|
1584
|
-
verification progress or failure and the
|
|
1755
|
+
The five list steps are `spec`, `open`, `collect`, `verify`, and `merge`, with
|
|
1756
|
+
verification progress or failure and the merge mode in parentheses. Before
|
|
1585
1757
|
a policy decision, label-dependent modes may read `policy pending`. A current
|
|
1586
1758
|
verified node adds `verified`. Only restack conflicts, current verification
|
|
1587
1759
|
failures (file a repair child targeting the node), and readiness awaiting
|
|
1588
|
-
consent add a list alert. Consent names `l` and `ab
|
|
1760
|
+
consent add a list alert. Consent names `l` and `ab merge <slug>`. Branch,
|
|
1589
1761
|
restack state and conflicting files remain in detail, along with every child's
|
|
1590
|
-
ticket id, title and live phase (or queued/
|
|
1591
|
-
steps and current outcomes, repair instructions, and the
|
|
1762
|
+
ticket id, title and live phase (or queued/merged), open-first counts, verification
|
|
1763
|
+
steps and current outcomes, repair instructions, and the merge rule. Cancelled
|
|
1592
1764
|
children are omitted; historical missing titles or filenames are explicit.
|
|
1593
|
-
|
|
1765
|
+
|
|
1594
1766
|
|
|
1595
1767
|
On a TTY, `ab dispatch` renders one fixed interactive frame anchored at the
|
|
1596
1768
|
terminal's first row. Its header remains on that top row as frame height changes
|
|
@@ -1664,10 +1836,10 @@ through repaint, re-sort, and row appearance/disappearance. The legend is
|
|
|
1664
1836
|
contextual: every row offers navigation and quit; global offers `h harvest`,
|
|
1665
1837
|
`i intake`, `p pause all`, and `r resume all`; `Harvest` offers `p resume`
|
|
1666
1838
|
for ordinary failure or `p acknowledge` for exhaustion/escalation only when
|
|
1667
|
-
available. Selected builds offer `l
|
|
1839
|
+
available. Selected builds offer `l merge` and `o hold`, subject to command
|
|
1668
1840
|
eligibility, plus the state-specific `p pause`, `p cancel pause`, or `r resume`
|
|
1669
|
-
action; queued builds offer `d discard`.
|
|
1670
|
-
recorded before readiness. There is no repository
|
|
1841
|
+
action; queued builds offer `d discard`. Merge requires readiness; hold may be
|
|
1842
|
+
recorded before readiness. There is no repository merge toggle.
|
|
1671
1843
|
|
|
1672
1844
|
A running build reads `PAUSING` after `p` appends its pause request and before
|
|
1673
1845
|
the live session stops and the kernel records its suspension. Pause interrupts
|
|
@@ -1720,14 +1892,14 @@ itself, so an already-paused repository shows `repository PAUSED` and `(held)`
|
|
|
1720
1892
|
on its first paint; clearing the hold removes both on the next poll. The hold
|
|
1721
1893
|
survives a restart and is not defeated by re-running `ab dispatch`.
|
|
1722
1894
|
|
|
1723
|
-
`[[
|
|
1895
|
+
`[[merge]]` rules in `autobuild.toml` determine merge policy. The
|
|
1724
1896
|
dispatcher records an immutable decision when each candidate becomes ready.
|
|
1725
1897
|
No rules means leaf auto / node consent. There is no claim-time default
|
|
1726
|
-
seeding or fan-out over existing builds. `ab
|
|
1727
|
-
that
|
|
1898
|
+
seeding or fan-out over existing builds. `ab merge <slug>` supplies consent to
|
|
1899
|
+
that merge and frozen destination; it survives replacement heads until hold
|
|
1728
1900
|
or completion. `ab hold <slug>` suppresses policy and withdraws consent.
|
|
1729
1901
|
The old `--auto-merge` / `--no-auto-merge` flags and `ab auto-merge` command
|
|
1730
|
-
are retired and return actionable errors; use
|
|
1902
|
+
are retired and return actionable errors; use merge rules and hold/merge.
|
|
1731
1903
|
|
|
1732
1904
|
Global-row `h` re-reads the repository journal and appends the existing human
|
|
1733
1905
|
pause/resume request. The newest pending command determines the next target, so
|
|
@@ -1751,14 +1923,14 @@ settles every exhaustion barrier. Exhaustion and escalation remain terminal.
|
|
|
1751
1923
|
Escalation's row is dismissed only by a post-terminal human resume request
|
|
1752
1924
|
followed by its later kernel acknowledgement, never by the request alone.
|
|
1753
1925
|
|
|
1754
|
-
Every build row renders a `
|
|
1926
|
+
Every build row renders a `merge <state>` token. Cyan requested means
|
|
1755
1927
|
authorized but not yet applied natively; green enabled means the native request
|
|
1756
1928
|
is armed; yellow cancelling means cancellation is in flight; dim off means no
|
|
1757
1929
|
authorization. A recorded consent decision waiting for an operator reads
|
|
1758
|
-
`
|
|
1930
|
+
`merge awaiting consent`; an explicit hold reads `merge held`.
|
|
1759
1931
|
There is no red comparison with a repository default. Row and detail merge
|
|
1760
1932
|
explanations distinguish a pending policy decision, consent, and hold, and name
|
|
1761
|
-
`ab
|
|
1933
|
+
`ab merge <slug>` / `ab hold <slug>` where appropriate.
|
|
1762
1934
|
Merge conflicts recover automatically: the gate defers, the pipeline re-enters
|
|
1763
1935
|
reconcile, and verify re-runs before consent is re-examined — the reconcile
|
|
1764
1936
|
step on the build row is the only indication, and uncomputed mergeability
|
|
@@ -1783,9 +1955,9 @@ to the build's event log and apply the same write-time checks.
|
|
|
1783
1955
|
| Resume | `ab resume <slug> [--store <ref>]` | Select a `PAUSED` build and press `r`. | `build.resume-requested` |
|
|
1784
1956
|
| Pause all | `ab pause --all [--store <ref>] [--json]` | Select the global row and press `p`. | `dispatcher.pause-set` (first), `dispatcher.intake-set`, then one `build.pause-requested` per `RUNNING` build |
|
|
1785
1957
|
| Resume all | `ab resume --all [--store <ref>] [--json]` | Select the global row and press `r`. | `dispatcher.pause-set` (first), `dispatcher.intake-set`, then one `build.resume-requested` per `PAUSED` build |
|
|
1786
|
-
| Consent to
|
|
1958
|
+
| Consent to merge | `ab merge <slug> [--store <ref>]` | Select a ready build and press `l`. | `build.land-requested`, then `landing.command-acknowledged` |
|
|
1787
1959
|
| Restack node | `ab restack <node> [--store <ref>]` | CLI/tool request; normal safety gates apply. | `node.restack-requested`, then `node.restack-satisfied` |
|
|
1788
|
-
| Hold
|
|
1960
|
+
| Hold merge | `ab hold <slug> [--store <ref>]` | Select a build and press `o`, including before readiness. | `build.hold-requested`, then `landing.command-acknowledged` after native cancellation |
|
|
1789
1961
|
| Answer blockers with guidance | `ab answer <slug> <text> [--store <ref>]` | Select a blocked build, press `r`, enter text, then Enter. | One `escalation.answered` with `resolution: guidance` per applicable blocker. |
|
|
1790
1962
|
| Retry blockers without guidance | `ab answer <slug> [--store <ref>]` | Open the same `r` field and press Enter empty or whitespace-only. | One `escalation.answered` with `resolution: retry` per applicable blocker. |
|
|
1791
1963
|
| Dismiss cited finding chains | `ab answer <slug> --dismiss [--store <ref>]` | CLI only; build detail names the command. | One `escalation.answered` with `resolution: dismiss-finding` per blocker that cites a real review finding. |
|
|
@@ -1799,7 +1971,7 @@ setters, not toggles, so the values the command names are the values the
|
|
|
1799
1971
|
repository holds afterwards — and each per-build request is a compare-and-set
|
|
1800
1972
|
against a freshly reduced log, so a rerun adds no second pending pause and
|
|
1801
1973
|
never cancels one already in flight. Pause first is what makes every surviving
|
|
1802
|
-
prefix of a failed walk at least as quiesced as asked: once it
|
|
1974
|
+
prefix of a failed walk at least as quiesced as asked: once it merges, no queued
|
|
1803
1975
|
build is launchable, whatever else fails after it. Output names every build that
|
|
1804
1976
|
received a request, the hold, and the intake value written; `--json` emits that
|
|
1805
1977
|
same summary for a script. A walk that fails partway exits nonzero and reports
|
|
@@ -1849,7 +2021,7 @@ and delivered as authoritative guidance. With no text (or only whitespace), it
|
|
|
1849
2021
|
requests a bare retry and supplies no agent guidance. Verify has two explicit
|
|
1850
2022
|
answer routes: guidance answering an agent verifier's own `ab escalate` returns
|
|
1851
2023
|
to that same `verify:<step>` on `verify.started.feedback` and materializes as
|
|
1852
|
-
|
|
2024
|
+
`$AB_CONTEXT_DIR/guidance.json`; the cited start carries it durably across any pre-launch
|
|
1853
2025
|
recovery, and the matching `session.started` consumes it once after launch.
|
|
1854
2026
|
Guidance answering the policy escalation after exhausted failed verify reports
|
|
1855
2027
|
instead goes to `implement` and outranks the pending report. A bare retry on either path carries
|
|
@@ -1872,18 +2044,20 @@ after the winner is delivered. Destinations remain independent, and a new
|
|
|
1872
2044
|
answer recorded after an earlier delivery is eligible for the next appropriate
|
|
1873
2045
|
run. `finalize` and `reconcile` receive their own answers on their next attempt.
|
|
1874
2046
|
In each of these routed cases, `ab context`
|
|
1875
|
-
writes the answer to
|
|
2047
|
+
writes the answer to `$AB_CONTEXT_DIR/guidance.json` in the build's workspace, and the
|
|
1876
2048
|
receiving skill treats it as authoritative feedback for that round or attempt.
|
|
1877
|
-
A producer round
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
2049
|
+
A producer round has one immediate feedback kind: on a guidance round,
|
|
2050
|
+
`$AB_CONTEXT_DIR/guidance.json` takes precedence over findings or the legacy
|
|
2051
|
+
single-report feedback. A referenced `verifyStageFailure` receipt remains
|
|
2052
|
+
available alongside guidance, with every failed report and cancelled/not-run
|
|
2053
|
+
member; it is not erased by feedback precedence. A bare retry writes no
|
|
2054
|
+
`$AB_CONTEXT_DIR/guidance.json` and displaces nothing: the resumed round still gets whatever
|
|
1881
2055
|
the loop was already routing, such as the last review round's findings.
|
|
1882
2056
|
|
|
1883
2057
|
`--dismiss` is per escalation. It answers only blockers that cite at least one
|
|
1884
2058
|
real plan-review or code-review finding; blockers with no such citation remain
|
|
1885
2059
|
open. A dismissed finding id means a human retired that disagreement. The next
|
|
1886
|
-
reviewer receives
|
|
2060
|
+
reviewer receives `$AB_CONTEXT_DIR/dismissed-findings.json`, must not re-raise the finding,
|
|
1887
2061
|
and must use a fresh id without `persists` if a genuinely different problem
|
|
1888
2062
|
touches the same code. Dismissal settles a chain, not a file or the reviewer's
|
|
1889
2063
|
ability to report new problems.
|
|
@@ -1909,24 +2083,24 @@ Each kernel `spec.revised` records the exact artifact and operator identity
|
|
|
1909
2083
|
Ticket-origin revisions re-pin assets; supplied bodies preserve asset pins.
|
|
1910
2084
|
The node recollects and verifies the new revision, including on the same head
|
|
1911
2085
|
and parent after a failed cycle. Earlier cycles remain historical evidence
|
|
1912
|
-
and cannot block or authorize
|
|
2086
|
+
and cannot block or authorize merge under the replacement. Children keep
|
|
1913
2087
|
their specs, claims and targets; contributions are not restarted.
|
|
1914
2088
|
Active verification/reconcile or writer work, restack/reparent work, pause,
|
|
1915
|
-
pending controls,
|
|
2089
|
+
pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
1916
2090
|
A concurrent state change refuses publication with a retry explanation;
|
|
1917
2091
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
1918
2092
|
restart from `plan`.
|
|
1919
2093
|
|
|
1920
2094
|
Every command requires an applicable target in this repository. Pause and
|
|
1921
2095
|
resume require an active build; abort and hold also accept queued builds.
|
|
1922
|
-
|
|
2096
|
+
Merge requires a ready candidate and cannot bypass verification or merge gates;
|
|
1923
2097
|
`ab answer` requires an open escalation except for eligible node spec revisions. A stale, missing, done,
|
|
1924
2098
|
aborted, or otherwise inapplicable target is an error and gets no new event. Attribution uses `USER`, then `USERNAME`, then the
|
|
1925
2099
|
same stable fallback on both surfaces. These commands run sessionless and
|
|
1926
2100
|
accept `--store <ref>` with the usual explicit flag > `AB_STORE` > `[store] url` > repository
|
|
1927
2101
|
local precedence. If nonblank `AB_SESSION` and matching `AB_BUILD` identify the
|
|
1928
2102
|
caller's own phase build, the command refuses it; a phase cannot pause, resume,
|
|
1929
|
-
hold,
|
|
2103
|
+
hold, merge, answer, or abort itself. `ab pause --all` and `ab resume --all`
|
|
1930
2104
|
accept `--store` on the same precedence and are refused for the same reason
|
|
1931
2105
|
whenever `AB_SESSION` and `AB_BUILD` are both nonblank — the caller's own build
|
|
1932
2106
|
is inside the walk.
|
|
@@ -1940,7 +2114,7 @@ it. Startup still recovers actionable builds and delivers pending operator
|
|
|
1940
2114
|
commands, but it never records an answer or re-arms a budget.
|
|
1941
2115
|
|
|
1942
2116
|
Durable repository intake has launch-flag setters and a global-row toggle.
|
|
1943
|
-
|
|
2117
|
+
Merge policy is configured through ordered rules, with per-merge hold/merge
|
|
1944
2118
|
commands; no writable repository auto-merge default remains.
|
|
1945
2119
|
Abort is available through both its CLI command and the confirmed build-row/detail
|
|
1946
2120
|
`a` key. Global-row `h` owns the durable harvest gate. Global-row `p`/`r` and
|
|
@@ -1968,7 +2142,7 @@ and are safe to run at any time.
|
|
|
1968
2142
|
(`intake`, default `true`) and repository-wide pause (`paused`, default
|
|
1969
2143
|
`false`), alongside dispatcher and infrastructure status. Its historical
|
|
1970
2144
|
`defaultAutoMerge` field remains an inert compatibility value; it is not
|
|
1971
|
-
claim-time policy or a writable setting.
|
|
2145
|
+
claim-time policy or a writable setting. Merge decisions and command state
|
|
1972
2146
|
are queried on the build. A repository with no journal row uses the defaults
|
|
1973
2147
|
without creating a row. Human output is the default. `--json` emits one bare
|
|
1974
2148
|
object including the canonical `repo`, and `--store` follows the usual explicit
|
|
@@ -2011,7 +2185,7 @@ changes — falling back to the local workspace's `autobuild.toml` only when no
|
|
|
2011
2185
|
deposit exists; the decision is reported unavailable only when neither source
|
|
2012
2186
|
can supply a configuration, and that message names the missing artifact kind
|
|
2013
2187
|
rather than a workspace path.
|
|
2014
|
-
Observations are shown without `--events`; for `forge = "local-git"`, this is where a deferred
|
|
2188
|
+
Observations are shown without `--events`; for `forge = "local-git"`, this is where a deferred merge
|
|
2015
2189
|
names uncommitted work that collides with the squash. Autobuild leaves that work
|
|
2016
2190
|
untouched and later dispatcher ticks retry automatically after the operator
|
|
2017
2191
|
resolves it. `--events <n>` appends the newest `n` event envelopes in
|
|
@@ -2019,10 +2193,14 @@ chronological order — the fastest way to see what a build actually just did.
|
|
|
2019
2193
|
|
|
2020
2194
|
Verify progress covers the **current cycle** — the results since the latest
|
|
2021
2195
|
code-review approve or reconcile. Implement and reconcile change the code, so a
|
|
2022
|
-
new cycle re-runs from the first
|
|
2196
|
+
new cycle re-runs from the first stage and earlier results describe code that no
|
|
2023
2197
|
longer exists. An empty step list next to `attempt 1` therefore means the cycle
|
|
2024
2198
|
restarted, not that verify never ran. A skip renders as `SKIP` with its reason;
|
|
2025
2199
|
JSON exposes `outcome: "skipped"` and `reason`, never a synthetic pass.
|
|
2200
|
+
Concurrent stages name every running verifier. Cancelled steps are shown as not
|
|
2201
|
+
run with their fail-fast cause; `ab wait --for phase=verify:<step>` matches any
|
|
2202
|
+
running member. Superseded escalation history remains available without an
|
|
2203
|
+
answer-required or blocked effect.
|
|
2026
2204
|
`--json` and `--store <ref>` work the same here.
|
|
2027
2205
|
|
|
2028
2206
|
Use `ab builds` to find the build; use `ab build status` to understand it.
|
|
@@ -2071,7 +2249,7 @@ closes, its finalized document is a repository-scoped `stream:<id>` artifact,
|
|
|
2071
2249
|
and `ab artifact download stream:<id>` retrieves it; the stream form is an
|
|
2072
2250
|
operator-only read (ambient phase identity fails closed).
|
|
2073
2251
|
|
|
2074
|
-
**`ab watch [<slug>...] [--repository] [--event <glob>]... [--since <cursor>]
|
|
2252
|
+
**`ab watch [<slug>...] [--repository] [--operator] [--event <glob>]... [--since <cursor>]
|
|
2075
2253
|
[--timeout <dur>] [--interval <dur>] [--count <n>] [--json] [--store <ref>]`**
|
|
2076
2254
|
streams matching events as they land instead of answering once. With no slug it
|
|
2077
2255
|
follows every nonterminal build in the repository — a build created while the
|
|
@@ -2092,7 +2270,7 @@ The default watch reports actionable conditions only:
|
|
|
2092
2270
|
- Build `build.merge-decision`: a finalized open PR
|
|
2093
2271
|
with a recorded consent decision awaiting consent, an explicit hold, or a
|
|
2094
2272
|
current actionable merge-gate deferral. Policy decisions not yet recorded and
|
|
2095
|
-
authorized
|
|
2273
|
+
authorized merges awaiting application are silent. One merge decision is reported per build/PR.
|
|
2096
2274
|
- Repository `harvest.escalated`, `harvest.recovery-exhausted`,
|
|
2097
2275
|
`dispatcher.config-rejected`, `dispatcher.config-reloaded` with nonempty
|
|
2098
2276
|
`restartRequired`, `dispatcher.upgrade-failed`, `dispatcher.runtime-rolled-back`, abnormal `dispatcher.run-stopped`, and `dispatcher.lost`.
|
|
@@ -2164,7 +2342,10 @@ invocation hides the holder start or the latest stop. Other state reads retain
|
|
|
2164
2342
|
their bounded semantics.
|
|
2165
2343
|
|
|
2166
2344
|
Repository-following `ab watch` additionally emits a read-only `dispatcher.lost`
|
|
2167
|
-
observation when an observed lease expires without a matching stop
|
|
2345
|
+
observation when an observed lease expires without a matching stop or validated
|
|
2346
|
+
successor takeover. A completed ownership transfer suppresses predecessor loss
|
|
2347
|
+
even while its sessions drain; a handoff without takeover still reports loss on
|
|
2348
|
+
expiry. Successor loss and upgrade-failure/rollback attention remain independent. JSON carries
|
|
2168
2349
|
`observation` instead of `event`, with run, observedAt, leaseExpiresAt and available
|
|
2169
2350
|
identity, plus the usual repo/build/state/cursor fields. It invents no durable
|
|
2170
2351
|
sequence or actor. Retain the cursor to avoid repeat reports across invocations.
|
|
@@ -2187,38 +2368,32 @@ and an appended matching event is delivered within about a second of its
|
|
|
2187
2368
|
append rather than at the next tick — while `--interval` (default 5 seconds)
|
|
2188
2369
|
still bounds the spacing between a stream's request starts, so a quiet stream
|
|
2189
2370
|
costs roughly one request per 25 seconds and a chatty one no more than one
|
|
2190
|
-
request per interval.
|
|
2191
|
-
|
|
2371
|
+
request per interval. Without `--operator`, the command is read-only. Neither form appends an event,
|
|
2372
|
+
takes a lease or starts work. Only flagged watches write advisory liveness, and deciding
|
|
2192
2373
|
what to do about a blocker or a merge stays with the caller, not the command.
|
|
2193
2374
|
Inside a phase, only the ambient build may be watched.
|
|
2194
2375
|
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
* ) echo "$line" ;; # one JSON record per matching event
|
|
2217
|
-
esac
|
|
2218
|
-
done
|
|
2219
|
-
sleep 1
|
|
2220
|
-
done
|
|
2221
|
-
```
|
|
2376
|
+
For a standing operator loop, first check `ab repository status --json` for
|
|
2377
|
+
live `operator.registrations`. Report another live operator rather than registering
|
|
2378
|
+
unless the human directs otherwise. Arm `ab watch --operator --json` with no slugs;
|
|
2379
|
+
re-arm with `ab watch --operator --json --since <watch-cursor>` using only that
|
|
2380
|
+
standing watch's own final or record cursor. Reconcile active and newly dispatched
|
|
2381
|
+
builds after arming and on timeout. Keep watching after initially queued work ends.
|
|
2382
|
+
`ab wait` neither renews presence nor carries registration identity. Separate
|
|
2383
|
+
unflagged diagnostic watches and waits must not replace the monitor or its cursor.
|
|
2384
|
+
|
|
2385
|
+
`--operator` is advisory and permits multiple registrations. It rejects named
|
|
2386
|
+
slugs, even with `--repository`, and any ambient build or scoped session. Heartbeats
|
|
2387
|
+
run every 30 seconds independently of polling; orderly exits renew once more.
|
|
2388
|
+
Presence expires five minutes after the last successful heartbeat. SIGINT,
|
|
2389
|
+
SIGTERM, SIGHUP and stdout EPIPE attempt one withdrawal within about two seconds,
|
|
2390
|
+
after cancelling and draining pending heartbeats. Failures report on stderr and
|
|
2391
|
+
fall back to TTL expiry; an unsupported remote route falls back silently. SIGKILL
|
|
2392
|
+
still relies on TTL expiry. Timeout/count completion keeps presence for re-arming. Reusing its flagged watch cursor preserves the registration
|
|
2393
|
+
ID and original start time across re-arms, re-registering after withdrawal. Unflagged resumes remain read-only.
|
|
2394
|
+
Repository status lists live registrations with ID, host, PID, start, heartbeat
|
|
2395
|
+
and heartbeat age, or an empty list. Human status prints one operator summary.
|
|
2396
|
+
MCP registration and dashboard presence are deferred.
|
|
2222
2397
|
|
|
2223
2398
|
**`ab wait [<slug>...] (--for <condition> | --event <glob>)... [--since <cursor>]
|
|
2224
2399
|
[--timeout <dur>] [--interval <dur>] [--json] [--store <ref>]`** is the blocking
|
|
@@ -2318,7 +2493,7 @@ no run. The dispatch header always shows its acknowledged `harvest ON/OFF` gate
|
|
|
2318
2493
|
and global `h` controls it. The optional, non-color-only `Harvest` row omits the
|
|
2319
2494
|
internal run id and represents one deterministically selected open run or
|
|
2320
2495
|
unresolved attention; its contextual `p` issues the repository-wide resume or
|
|
2321
|
-
acknowledgement; `l` / `o`
|
|
2496
|
+
acknowledgement; `l` / `o` merge controls apply only to builds.
|
|
2322
2497
|
|
|
2323
2498
|
### Status, durable progress, and lease health are separate
|
|
2324
2499
|
|
|
@@ -2409,7 +2584,7 @@ default, when you need to know what this repo's version says).
|
|
|
2409
2584
|
| `ab-code-review` | `code-review` phase | Fresh skeptic: review the implementation diff against spec and plan, same verdict vocabulary. |
|
|
2410
2585
|
| `ab-reconcile` | `reconcile` phase (epilogue) | Resolve a kernel-prepared single-change replay onto a frozen refreshed base; the kernel archives evidence and publishes with an exact expected-head guard. |
|
|
2411
2586
|
| `ab-finalize` | `finalize` phase | Write the PR description for a green build; the kernel opens the PR. |
|
|
2412
|
-
| `ab-operate` | outside the pipeline; model-invocable | The operator agent’s operating manual, for any agent: file and groom tickets,
|
|
2587
|
+
| `ab-operate` | outside the pipeline; model-invocable | The operator agent’s operating manual, for any agent: file and groom tickets, operate the builds the repository's dispatcher dispatches with a registered `ab watch --operator` loop, answer escalations, pause, resume, abort, control merge consent and holds, and adopt new builds until the human ends or hands off the role. MCP presence is deferred. |
|
|
2413
2588
|
|
|
2414
2589
|
Autobuild installs 12 skills. Everything except `ab-spec`, `ab-tickets`,
|
|
2415
2590
|
`ab-guide`, and `ab-operate` carries `disable-model-invocation: true` — do not
|
|
@@ -2463,6 +2638,20 @@ and `tickets.unblock` with the revision from `tickets.get` or `tickets.list`.
|
|
|
2463
2638
|
|
|
2464
2639
|
## Forge failure recovery
|
|
2465
2640
|
|
|
2641
|
+
Leaf restack and reconcile publication retry classified transient forge or transport
|
|
2642
|
+
failures six times after the initial attempt, waiting 30, 60, 120, 240, 300 and
|
|
2643
|
+
300 seconds. `publication.retry-scheduled` records the operation, frozen rewrite
|
|
2644
|
+
identity, episode anchor, failure ordinal, last error and absolute retry time;
|
|
2645
|
+
restart resumes that schedule without rerunning the resolver. These retries do
|
|
2646
|
+
not consume `maxPhaseAttempts`. A seventh transient failure records
|
|
2647
|
+
`publication.retry-exhausted` and raises `publication-retry-limit`, naming the last
|
|
2648
|
+
error and six retries. Answering that escalation opens a fresh publication episode
|
|
2649
|
+
for the same retained intent without resetting agent phase failures. Pending
|
|
2650
|
+
publication keeps its workspace through backoff and unresolved exhaustion.
|
|
2651
|
+
Classified rate limits retain repository cooldown and consume no publication
|
|
2652
|
+
retry allowance. Rejected pushes, lease conflicts, dirty trees and unclassified
|
|
2653
|
+
errors retain their existing behavior.
|
|
2654
|
+
|
|
2466
2655
|
Janitor failures are durable per-build episodes. Eligible failures retry after
|
|
2467
2656
|
30, 60, 120, 240 seconds, then at the configured cap (300 seconds by default).
|
|
2468
2657
|
Skipped polls preserve the episode across restart. After
|
|
@@ -2473,7 +2662,7 @@ clears it. `policy.janitorBackoffMaxSeconds` sets the positive integer cap.
|
|
|
2473
2662
|
A classified forge rate limit records repository degradation with `resetAt`.
|
|
2474
2663
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
2475
2664
|
request, and only success clears degradation. A further limit extends cooldown.
|
|
2476
|
-
Native
|
|
2665
|
+
Native merge application failures keep candidate-specific retry eligibility,
|
|
2477
2666
|
including automatic decisions without a human command. Retries recheck consent,
|
|
2478
2667
|
holds, verification and the exact candidate. Uncertain enables remain pending
|
|
2479
2668
|
until cancellation can be confirmed after cooldown. Publication retries reuse
|
|
@@ -2497,7 +2686,7 @@ using exact-resource ETags; authenticated 304s spare the REST primary quota.
|
|
|
2497
2686
|
Adapter caches are bounded and restart/eviction falls back to fresh reads.
|
|
2498
2687
|
Writes, including Git publication and rewrites, invalidate observations before
|
|
2499
2688
|
attempting the mutation so acknowledgement reads remain fresh. Leaf PR polling
|
|
2500
|
-
keeps its existing cadence. Readiness and
|
|
2689
|
+
keeps its existing cadence. Readiness and merge inspections remain fresh.
|
|
2501
2690
|
|
|
2502
2691
|
For node cadence, durable wakes, restart behavior and CLI evidence, see
|
|
2503
2692
|
[node polling and status](references/integration-tree.md#polling-and-status).
|
|
@@ -2508,11 +2697,47 @@ primary quota, REST 304s and GraphQL calls. Transport failures and historical or
|
|
|
2508
2697
|
legacy observations can remain unclassified; absent fields never imply zero.
|
|
2509
2698
|
Shared requests are attributed to their first requester; cache hits count zero.
|
|
2510
2699
|
|
|
2700
|
+
Work target distance is advisory `target.distance` telemetry, sampled during
|
|
2701
|
+
normal target polls from exact build/target tips, never at render time. It
|
|
2702
|
+
counts destination commits absent from the build head (`BUILD..TARGET`).
|
|
2703
|
+
Detail target/Parent fields use the same suffix. Missing/stale samples display `+?`; zero and merged/closed states
|
|
2704
|
+
omit the suffix. This measurement never changes merge or restack decisions.
|
|
2705
|
+
|
|
2511
2706
|
### Requesting node freshness
|
|
2512
2707
|
|
|
2513
2708
|
`ab restack <node>` and `builds.restack {repo, slug}` record durable demand.
|
|
2514
2709
|
Paused or blocked nodes wait for normal safety gates; leaves, terminal nodes
|
|
2515
2710
|
and unopened nodes are refused. Collecting nodes may intentionally trail their
|
|
2516
|
-
parent; both dashboards show
|
|
2711
|
+
parent; both dashboards show `+N` beside the destination, no suffix when
|
|
2712
|
+
current, or `+?` when unknown. Merged/closed builds omit the suffix.
|
|
2517
2713
|
See [restacking timing and recovery](references/restacking.md) for the five
|
|
2518
2714
|
automatic and explicit demand points, minimal presence paths and upgrade behavior.
|
|
2715
|
+
|
|
2716
|
+
### `[landing]`
|
|
2717
|
+
|
|
2718
|
+
Deprecated config spelling for `[merge]` / `[[merge]]`; see the
|
|
2719
|
+
[compatibility notes](references/merge-policy.md#deprecated-spellings). Never
|
|
2720
|
+
declare both spellings, including empty arrays. `ab upgrade` migrates this key.
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
### Permanent hosted project deletion
|
|
2724
|
+
|
|
2725
|
+
Super users and organization owners can permanently delete an authorized project
|
|
2726
|
+
from the web Projects page after a warning and count preview in the shared confirmation dialog. This removes
|
|
2727
|
+
hosted state, tickets, blobs, secrets and accounts, revokes all credentials and
|
|
2728
|
+
retains only repository, actor, deletion time and an opaque generation id as audit.
|
|
2729
|
+
`ab disconnect` only revokes the saved credential; admin `projects remove` only
|
|
2730
|
+
unregisters access and retains data. Failed deletion leaves access refused and
|
|
2731
|
+
supports retry with the original preview token from the Projects page’s unfinished deletions list, including after a
|
|
2732
|
+
reload or service restart; registration waits for cleanup. Each request shares one
|
|
2733
|
+
full admission per project. Deletion invalidates admitted generations during the
|
|
2734
|
+
initial purge and waits only for active mutation transactions; a later mutation
|
|
2735
|
+
in the same request is refused atomically, while earlier commits remain allowed. Legacy untraceable orphan blobs
|
|
2736
|
+
with no ownership record or retained project reference are excluded from deletion.
|
|
2737
|
+
A fresh connection requires browser approval and starts empty, including hosted
|
|
2738
|
+
ticket numbering from 1. Old credentials remain invalid with 401; independently
|
|
2739
|
+
repository-established requests receive 403 project not registered. See
|
|
2740
|
+
[project deletion](references/operator-api.md#permanent-project-deletion) for
|
|
2741
|
+
generation-bound preview tokens and API semantics.
|
|
2742
|
+
|
|
2743
|
+
Paged operator ticket listings may use the optional API 1.9 `TicketSource.listPage(criteria, page)` capability; without it, the operator reads the full listing and slices it. Native errors propagate. CLI ticket lists and dispatcher ready scans remain exhaustive through `listReady`/`listAll`. PostgreSQL pages natively; file, Linear and remote `HostedTicketSource` retain fallback. The POST list-ready protocol stays exhaustive. See the [custom source contract](references/plugin-authoring.md) for types and contract coverage.
|