@defrex/autobuild 1.4.1 → 1.5.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 +1 -1
- package/SPEC.md +440 -95
- package/bin/ab-dispatch-kernel.ts +1 -0
- package/docs/accounts.md +9 -0
- package/docs/agent-runtimes.md +1 -0
- package/docs/answering-blocked-builds.md +2 -1
- package/docs/architecture.md +290 -130
- package/docs/assets/headline-wide.png +0 -0
- package/docs/build-store.md +33 -3
- package/docs/cli.md +2 -1
- package/docs/configuration-overview.md +9 -0
- package/docs/configuration.md +166 -101
- package/docs/dispatcher-hosting.md +19 -3
- package/docs/dispatcher.md +9 -4
- package/docs/integration-overview.md +2 -2
- package/docs/integration-tree.md +91 -28
- package/docs/merge-policy.md +28 -9
- package/docs/operator-api.md +43 -18
- package/docs/operator-surfaces.md +1 -1
- package/docs/plugin-authoring.md +85 -8
- package/docs/remote-store-protocol.md +25 -7
- package/docs/remote-ticket-protocol.md +126 -12
- package/docs/restacking.md +20 -6
- package/docs/seams.md +2 -2
- package/docs/setup.md +19 -13
- package/docs/spec-standard.md +2 -1
- package/docs/ticket-dependencies.md +26 -8
- package/docs/ticket-migration.md +70 -7
- package/docs/ticket-sources.md +82 -5
- package/docs/tickets.md +34 -2
- package/docs/troubleshooting.md +2 -2
- package/docs/verification.md +5 -5
- package/docs/website.md +8 -0
- package/docs/workspaces.md +1 -1
- package/package.json +5 -4
- package/packages/core/src/accounts/hosted-readiness.ts +21 -0
- package/packages/core/src/cli/attention.ts +1 -0
- package/packages/core/src/cli/build-control.ts +36 -12
- package/packages/core/src/cli/connect.ts +9 -18
- package/packages/core/src/cli/context.ts +44 -0
- package/packages/core/src/cli/dashboard/configuration.ts +11 -0
- package/packages/core/src/cli/dashboard/model.ts +40 -10
- package/packages/core/src/cli/dashboard/queue.ts +21 -0
- package/packages/core/src/cli/dashboard/render.ts +40 -22
- package/packages/core/src/cli/dispatch-frontend.ts +63 -30
- package/packages/core/src/cli/dispatch-mode.ts +35 -16
- package/packages/core/src/cli/dispatch-repository-feed.ts +40 -11
- package/packages/core/src/cli/dispatch.ts +154 -47
- package/packages/core/src/cli/help.ts +59 -22
- package/packages/core/src/cli/init-hosted-accounts.ts +54 -0
- package/packages/core/src/cli/init-readiness-remote.ts +16 -3
- package/packages/core/src/cli/init-validation.ts +144 -42
- package/packages/core/src/cli/issue-links.ts +67 -0
- package/packages/core/src/cli/main.ts +32 -15
- package/packages/core/src/cli/pr-summary-publication.ts +38 -7
- package/packages/core/src/cli/publication-settlement.ts +36 -24
- package/packages/core/src/cli/repository-status.ts +201 -49
- package/packages/core/src/cli/status.ts +41 -3
- package/packages/core/src/cli/terminals.ts +37 -2
- package/packages/core/src/cli/ticket-editor.ts +20 -6
- package/packages/core/src/cli/ticket.ts +264 -46
- package/packages/core/src/cli/triage-count-sampler.ts +59 -0
- package/packages/core/src/cli/watch.ts +4 -0
- package/packages/core/src/config/live.ts +45 -4
- package/packages/core/src/config/load.ts +9 -0
- package/packages/core/src/config/pipeline-source.ts +6 -2
- package/packages/core/src/config/ready-assignee.ts +86 -0
- package/packages/core/src/config/schema.ts +164 -36
- package/packages/core/src/distribution-packaging.ts +1 -1
- package/packages/core/src/events/catalog.ts +5 -0
- package/packages/core/src/events/compatibility.ts +2 -1
- package/packages/core/src/events/payloads.ts +70 -0
- package/packages/core/src/events/policy.ts +8 -0
- package/packages/core/src/events/repository.ts +91 -28
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +41 -0
- package/packages/core/src/kernel/build-identity.ts +12 -0
- package/packages/core/src/kernel/change-presence.ts +139 -6
- package/packages/core/src/kernel/dispatch-capacity.ts +80 -14
- package/packages/core/src/kernel/dispatch-status.ts +10 -1
- package/packages/core/src/kernel/dispatch-upgrade.ts +104 -5
- package/packages/core/src/kernel/engine.ts +4 -2
- package/packages/core/src/kernel/finalize-pr-rejection.ts +95 -0
- package/packages/core/src/kernel/generators/repository-journals.ts +15 -1
- package/packages/core/src/kernel/harvest.ts +4 -1
- package/packages/core/src/kernel/integration-completeness.ts +104 -17
- package/packages/core/src/kernel/integration-landing.ts +17 -0
- package/packages/core/src/kernel/integration-state.ts +17 -0
- package/packages/core/src/kernel/issue-keywords.ts +202 -0
- package/packages/core/src/kernel/janitor-failure.ts +11 -0
- package/packages/core/src/kernel/kernel-git.ts +87 -0
- package/packages/core/src/kernel/landing-readiness.ts +25 -17
- package/packages/core/src/kernel/log-index.ts +1 -1
- package/packages/core/src/kernel/node-issue-links.ts +142 -0
- package/packages/core/src/kernel/node-parent.ts +6 -0
- package/packages/core/src/kernel/node-restack-transaction.ts +2 -0
- package/packages/core/src/kernel/pr-summary.ts +24 -0
- package/packages/core/src/kernel/read-deferrals.ts +75 -12
- package/packages/core/src/kernel/read-facts.ts +32 -1
- package/packages/core/src/kernel/reconcile-restack.ts +1 -1
- package/packages/core/src/kernel/reducer-registry.ts +31 -1
- package/packages/core/src/kernel/reducer.ts +90 -2
- package/packages/core/src/kernel/ticket-preparation.ts +12 -0
- package/packages/core/src/kernel/verify-budget.ts +43 -0
- package/packages/core/src/operator/index.ts +3 -1
- package/packages/core/src/operator/presentation.ts +3 -0
- package/packages/core/src/operator/protocol.ts +38 -2
- package/packages/core/src/operator/query.ts +66 -29
- package/packages/core/src/operator/registry.ts +47 -26
- package/packages/core/src/operator/tickets.ts +77 -10
- package/packages/core/src/plugin-sdk/index.ts +13 -0
- package/packages/core/src/plugins/manifest.ts +1 -1
- package/packages/core/src/plugins/registry.ts +1 -0
- package/packages/core/src/ports/forge/contract.ts +69 -0
- package/packages/core/src/ports/forge/create.ts +5 -0
- package/packages/core/src/ports/forge/fake.ts +184 -3
- package/packages/core/src/ports/forge/git-rewrite.ts +4 -2
- package/packages/core/src/ports/forge/github.ts +175 -38
- package/packages/core/src/ports/forge/local-git.ts +14 -0
- package/packages/core/src/ports/forge/readiness.ts +10 -0
- package/packages/core/src/ports/forge-failure.ts +43 -0
- package/packages/core/src/ports/runner/claude.ts +7 -1
- package/packages/core/src/ports/runner/codex.ts +7 -2
- package/packages/core/src/ports/runner/native-cli-fixture.ts +2 -1
- package/packages/core/src/ports/runner/pi.ts +7 -1
- package/packages/core/src/ports/runner/runtime.ts +3 -0
- package/packages/core/src/ports/runner/start-prompt.ts +37 -0
- package/packages/core/src/ports/tickets/contract.ts +320 -7
- package/packages/core/src/ports/tickets/create.ts +72 -17
- package/packages/core/src/ports/tickets/fake.ts +18 -0
- package/packages/core/src/ports/tickets/file-codec.ts +20 -0
- package/packages/core/src/ports/tickets/file.ts +43 -1
- package/packages/core/src/ports/tickets/github-fake.ts +1123 -0
- package/packages/core/src/ports/tickets/github-issues.ts +431 -0
- package/packages/core/src/ports/tickets/github-validators.ts +194 -0
- package/packages/core/src/ports/tickets/github.ts +2029 -0
- package/packages/core/src/ports/tickets/hosted-index.ts +34 -3
- package/packages/core/src/ports/tickets/issue-links.ts +86 -0
- package/packages/core/src/ports/tickets/lifecycle.ts +60 -4
- package/packages/core/src/ports/tickets/linear.ts +66 -6
- package/packages/core/src/ports/tickets/migration.ts +290 -68
- package/packages/core/src/ports/tickets/operations.ts +98 -12
- package/packages/core/src/ports/tickets/priority.ts +55 -0
- package/packages/core/src/ports/tickets/remote-protocol.ts +195 -29
- package/packages/core/src/ports/tickets/remote.ts +188 -13
- package/packages/core/src/ports/tickets/revision.ts +22 -1
- package/packages/core/src/ports/tickets/states.ts +43 -0
- package/packages/core/src/ports/tickets/tree.ts +58 -12
- package/packages/core/src/ports/tickets/update.ts +12 -2
- package/packages/core/src/ports/types.ts +194 -11
- package/packages/core/src/ports/workspace/commit-preservation.ts +135 -13
- package/packages/core/src/ports/workspace/git-worktree.ts +3 -1
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +132 -27
- package/packages/core/src/processes/build-runner.ts +99 -21
- package/packages/core/src/processes/dispatcher.ts +1080 -533
- package/packages/core/src/processes/execution-no-progress.ts +5 -0
- package/packages/core/src/processes/harvest-runner.ts +17 -8
- package/packages/core/src/processes/harvest.ts +5 -8
- package/packages/core/src/processes/tick-publication.ts +12 -2
- package/packages/core/src/processes/ticket-scan-schedule.ts +78 -0
- package/packages/core/src/processes/workspace-preservation.ts +37 -2
- package/packages/core/src/runtime-identity.ts +10 -2
- package/packages/core/src/scenarios/harness.ts +4 -0
- package/packages/core/src/store/adapter.ts +7 -1
- package/packages/core/src/store/contract.ts +83 -2
- package/packages/core/src/store/digest.ts +32 -1
- package/packages/core/src/store/reducer-value-shapes.json +4187 -3391
- package/packages/core/src/store/remote/protocol.ts +2 -0
- package/packages/core/src/store/remote/released-clients.json +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.5.0.json +26924 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +2 -0
- package/packages/core/src/store/repo-state-events.ts +2 -0
- package/packages/core/src/store/types.ts +5 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +729 -123
- package/packages/core/src/testing/index.ts +18 -1
- package/packages/core/src/testing/presence-history.ts +79 -0
- package/packages/core/src/testing/reduced-read-budget.ts +1197 -31
- package/packages/core/src/testing/upgrade-generations.ts +77 -0
- package/skills/code-review/SKILL.md +4 -3
- package/skills/finalize/SKILL.md +18 -2
- package/skills/guide/SKILL.md +382 -139
- package/skills/guide/references/accounts.md +9 -0
- package/skills/guide/references/integration-tree.md +91 -28
- package/skills/guide/references/merge-policy.md +28 -9
- package/skills/guide/references/operator-api.md +43 -18
- package/skills/guide/references/plugin-authoring.md +85 -8
- package/skills/guide/references/remote-store-protocol.md +25 -7
- package/skills/guide/references/remote-ticket-protocol.md +126 -12
- package/skills/guide/references/restacking.md +20 -6
- package/skills/guide/references/setup.md +19 -13
- package/skills/guide/references/spec-standard.md +2 -1
- package/skills/guide/references/ticket-dependencies.md +26 -8
- package/skills/guide/references/ticket-migration.md +70 -7
- package/skills/harvest-review/SKILL.md +4 -3
- package/skills/implement/SKILL.md +20 -1
- package/skills/operate/SKILL.md +103 -28
- package/skills/plan/SKILL.md +1 -1
- package/skills/reconcile/SKILL.md +5 -4
- package/skills/spec/SKILL.md +15 -2
- package/skills/tickets/SKILL.md +114 -37
- package/templates/autobuild.toml +5 -0
- package/templates/hosted-service/package.json +2 -2
|
Binary file
|
package/docs/build-store.md
CHANGED
|
@@ -87,9 +87,11 @@ To serve it to the shipped CLI, implement the normative remote store protocol, n
|
|
|
87
87
|
## Hosted dispatch and local viewing
|
|
88
88
|
|
|
89
89
|
A plain `ab dispatch` reads dispatch placement once before starting local execution.
|
|
90
|
-
For a hosted project it opens the
|
|
90
|
+
For a hosted project it opens the viewer automatically, displaying
|
|
91
91
|
`viewer · dispatched by <host>` from the placement origin (including a nondefault
|
|
92
92
|
port). `--once`, `--plain`, and `--interval` retain their viewer meanings.
|
|
93
|
+
The viewer reads its dashboard from the Store; its one ticket-source read is
|
|
94
|
+
the header's triage count, through the source's optional `countStates`.
|
|
93
95
|
`--takeover` explicitly dispatches locally, with a warning that it can displace
|
|
94
96
|
the hosted dispatcher; it cannot be combined with `--viewer`. Startup intake
|
|
95
97
|
flags require `--takeover` when placement selects viewer.
|
|
@@ -98,6 +100,34 @@ An unreadable placement fails closed with a typed error naming the cause:
|
|
|
98
100
|
use `--viewer` to watch or `--takeover` to dispatch locally. Both explicit modes
|
|
99
101
|
skip placement discovery. Older services without the capability and projects
|
|
100
102
|
with unknown or nonhosted placement retain local dispatch behavior. Local stores
|
|
101
|
-
need no placement request.
|
|
102
|
-
|
|
103
|
+
need no placement request. Failing to resolve the checkout's store selection
|
|
104
|
+
(for example, a malformed `autobuild.toml`) is not a placement failure: default
|
|
105
|
+
startup reports it as a repository resolution error naming its cause, and
|
|
106
|
+
neither explicit mode bypasses it. Origin mode (`--repository` or
|
|
107
|
+
`AB_REPOSITORY`) and hosted cron dispatch bypass this check. Placement is a startup snapshot, not a
|
|
103
108
|
liveness probe or a polling input.
|
|
109
|
+
|
|
110
|
+
## Several dispatchers on one repository
|
|
111
|
+
|
|
112
|
+
One repository driven by several dispatchers, for example each engineer running
|
|
113
|
+
`ab dispatch` locally, should share one store: connect every dispatcher to the
|
|
114
|
+
same service with `ab connect`. Assignee gating (`tickets.readyAssignee`)
|
|
115
|
+
divides tickets between dispatchers, but not the state a store owns. Separate
|
|
116
|
+
local stores each see only their own builds:
|
|
117
|
+
|
|
118
|
+
- **Nodes are owned by one store.** A child ticket can target only a node built
|
|
119
|
+
in its own store. Elsewhere it stays queued with `target node … is being built
|
|
120
|
+
by another store`, shown in `ab repository status` and the dispatch
|
|
121
|
+
diagnostics.
|
|
122
|
+
- **Harvest observations are split.** Each store harvests only its own builds'
|
|
123
|
+
observations.
|
|
124
|
+
- **No shared build history.** `ab builds`, status, dashboards and the operator
|
|
125
|
+
API show only the local store's builds.
|
|
126
|
+
- **Branch collisions are only partly guarded.** A dispatcher skips any slug
|
|
127
|
+
whose `ab/` or `ab-node/` branch already exists on the remote (when its forge
|
|
128
|
+
supports `remoteBranchExists`), but two stores that claim the same name before
|
|
129
|
+
either pushes can still collide. The check is a safety step, not a best
|
|
130
|
+
effort: if the branch lookup fails, or the base slug and its `-2` … `-100`
|
|
131
|
+
suffixes are all taken, the claim fails at the naming stage. No build is
|
|
132
|
+
created, the ticket is handed back to its ready state, and a later tick
|
|
133
|
+
retries it.
|
package/docs/cli.md
CHANGED
|
@@ -43,9 +43,10 @@ Run `bun ab <command>`; `bun ab help <command>` lists flags and subcommands. See
|
|
|
43
43
|
- `context` — Materialize the current phase's inputs.
|
|
44
44
|
- `artifact` — Deposit, fetch, or download versioned artifacts.
|
|
45
45
|
- `observe` — Record an observation outside the build's scope.
|
|
46
|
+
- `issue` — Downgrade a linked issue from closes to refs, with a reason.
|
|
46
47
|
- `done` — Complete a producer phase.
|
|
47
48
|
- `verdict` — Complete a review or verification phase.
|
|
48
|
-
- `escalate` — Park the build with a question for
|
|
49
|
+
- `escalate` — Park the build with a question for external judgment.
|
|
49
50
|
- `harvest` — Inspect or drive observation harvesting.
|
|
50
51
|
|
|
51
52
|
Phase commands (`context`, `done`, `verdict`) use runner-scoped session authority: the runner starts phase agents, never your operator agent. See [Skills](skills.md).
|
|
@@ -124,6 +124,15 @@ and makes one minimal request using each account's actual runtime, including
|
|
|
124
124
|
unused accounts, in the disposable sandbox. Hosted ChatGPT credentials use the
|
|
125
125
|
metadata readiness boundary described below.
|
|
126
126
|
|
|
127
|
+
Hosted Claude and Kimi accounts use the same boundary. When a connected project
|
|
128
|
+
is validated in Vercel Sandbox and the account's variable is absent locally,
|
|
129
|
+
validation reports the project secret set by `bun ab secrets set VARIABLE` from
|
|
130
|
+
its write-only metadata: owner, set time and status. It never downloads, prints
|
|
131
|
+
or forwards the value and makes no model request for that account. **The first
|
|
132
|
+
hosted build is the live check.** A missing or non-ready secret fails before
|
|
133
|
+
the sandbox is created and names both remedies: set the project secret, or
|
|
134
|
+
provide the local variable. A local variable keeps the minimal model request.
|
|
135
|
+
|
|
127
136
|
|
|
128
137
|
## ChatGPT subscriptions
|
|
129
138
|
|
package/docs/configuration.md
CHANGED
|
@@ -89,9 +89,10 @@ below.
|
|
|
89
89
|
|
|
90
90
|
Validation reports credential readiness and makes one minimal model request per
|
|
91
91
|
declared account, including unused accounts, through its runtime (Claude Code
|
|
92
|
-
for Claude/Kimi, Codex for ChatGPT) in the disposable sandbox. Hosted ChatGPT
|
|
93
|
-
project secrets report readiness from write-only status metadata
|
|
94
|
-
first hosted build is the live check. See
|
|
92
|
+
for Claude/Kimi, Codex for ChatGPT) in the disposable sandbox. Hosted ChatGPT,
|
|
93
|
+
Claude and Kimi project secrets report readiness from write-only status metadata
|
|
94
|
+
instead; the first hosted build is the live check. See
|
|
95
|
+
[Accounts](accounts.md) and
|
|
95
96
|
[ChatGPT subscriptions](accounts.md#chatgpt-subscriptions).
|
|
96
97
|
|
|
97
98
|
<!-- configuration-reference:accounts -->
|
|
@@ -386,6 +387,7 @@ These fields hot-reload:
|
|
|
386
387
|
| `[policy]` | Next policy, convergence, or agent-session boundary, delivered live. A running session keeps its captured budget. |
|
|
387
388
|
| `tickets.readyLabels`, `tickets.readyState`, `tickets.readyAssignee` | Next ready-ticket scan. |
|
|
388
389
|
| `tickets.triageState`, `tickets.proposalState` | Next dispatcher handback or harvest filing boundary. |
|
|
390
|
+
| `tickets.backlogState`, `tickets.rejectedState` | Next role move, ready-ticket scan, or node completeness observation. |
|
|
389
391
|
|
|
390
392
|
Adapter selectors and factory inputs are constructed once and require a
|
|
391
393
|
restart. A valid save may still apply its hot fields, but these changed paths
|
|
@@ -506,6 +508,14 @@ by sequence. It contains scheduling metadata only, never counts or lifecycle
|
|
|
506
508
|
state, and is distinct from reducer checkpoints. Missing or stale metadata
|
|
507
509
|
falls back to the recorded fact and can cause one safe extra scan without
|
|
508
510
|
reconstructing history. Successful unchanged scans advance this cache only.
|
|
511
|
+
While less than one interval has elapsed since the recorded fact's
|
|
512
|
+
measurement, with unchanged readiness and criteria fingerprints and no
|
|
513
|
+
admission following an observation measurement, a tick defers without reading
|
|
514
|
+
the cache, because the cache only acknowledges that measurement or a later one.
|
|
515
|
+
If the wall clock moved backwards, a cache entry dated later than the current
|
|
516
|
+
clock is therefore consulted only once that window ends, at most one scan
|
|
517
|
+
interval after the recorded measurement; the dispatcher then treats it as a
|
|
518
|
+
clock rollback, rescans, and resets the cache to the current clock.
|
|
509
519
|
|
|
510
520
|
|
|
511
521
|
### Plugin modules
|
|
@@ -694,7 +704,7 @@ An ordered list of strict merge rules. Predicates within one rule are ANDed;
|
|
|
694
704
|
the first matching rule wins. Omitted predicates match everything. With no
|
|
695
705
|
matching rule, leaves default to `auto` and nodes to `consent`.
|
|
696
706
|
|
|
697
|
-
The deprecated `[[landing]]` spelling accepts identical rules and emits a warning.
|
|
707
|
+
The deprecated `[[landing]]` spelling accepts identical rules and emits a migration warning.
|
|
698
708
|
Do not declare both spellings, even as empty arrays. `ab upgrade` migrates the
|
|
699
709
|
old key without changing policy values or order. See [deprecated spellings](merge-policy.md#deprecated-spellings).
|
|
700
710
|
|
|
@@ -1274,10 +1284,13 @@ configuration load because their package tools, libc/CPU, and filesystem
|
|
|
1274
1284
|
contract have not been validated. The universal image must retain working
|
|
1275
1285
|
Node/npm, `sh`, and the ordinary writable filesystem layout. Autobuild does not
|
|
1276
1286
|
rely on image-preinstalled Bun: on each fresh sandbox it uses npm to install the
|
|
1277
|
-
pinned `bun@1.4.
|
|
1278
|
-
executable
|
|
1279
|
-
dependency installation.
|
|
1280
|
-
|
|
1287
|
+
pinned `bun@1.4.4` package under `/opt/autobuild-runtime`, verifies that the
|
|
1288
|
+
executable's `--version` reports exactly that version, and uses it for Autobuild
|
|
1289
|
+
and Bun-lockfile dependency installation. A reused sandbox whose Bun reports
|
|
1290
|
+
another version, or none, is reinstalled at the pin before any distribution
|
|
1291
|
+
refresh, runtime preflight, or runner launch; a sandbox that cannot reach the pin
|
|
1292
|
+
is released through the cleanup path and never launched. Package-registry
|
|
1293
|
+
network access is therefore required during provisioning. The child launch prepends the adapter-owned Bun directory
|
|
1281
1294
|
to `PATH`, so setup, checks, agents, and their descendants resolve the same Bun.
|
|
1282
1295
|
|
|
1283
1296
|
`provisioning` is repository-owned declarative data; Autobuild never evaluates
|
|
@@ -1372,7 +1385,12 @@ status` and both dashboards, consumes `maxInfrastructureAttempts`, and raises
|
|
|
1372
1385
|
one setup-targeted escalation when exhausted. If cleanup also fails, both the
|
|
1373
1386
|
step output and cleanup uncertainty remain durable instead of hiding the root
|
|
1374
1387
|
cause. A marked sandbox does not repeat provisioning; every replacement/new
|
|
1375
|
-
generation does.
|
|
1388
|
+
generation does. A named sandbox left without the completion marker, for example
|
|
1389
|
+
after a provision timeout, is flagged `cleanup-required` and never launched into.
|
|
1390
|
+
The dispatcher releases it automatically, recording an empty
|
|
1391
|
+
`workspace.commits-lost` when no checkout exists, or `workspace.commits-preserved`
|
|
1392
|
+
when a checkout that never started executing lacks its objects, and provisions
|
|
1393
|
+
the next generation.
|
|
1376
1394
|
|
|
1377
1395
|
The representative actual-provider check is opt-in and must point at an
|
|
1378
1396
|
independent consuming repository whose `autobuild.toml` selects the universal
|
|
@@ -1386,7 +1404,7 @@ and configured agent-runtime credentials available, run:
|
|
|
1386
1404
|
AB_RUN_VERCEL_SANDBOX_LIVE=1 \
|
|
1387
1405
|
AB_VERCEL_SANDBOX_LIVE_REPO=/absolute/path/to/consumer \
|
|
1388
1406
|
AB_STORE=https://store.example AB_TOKEN=… \
|
|
1389
|
-
bun test packages/core/src/scenarios/vercel-sandbox.live.test.ts
|
|
1407
|
+
bun test packages/core/src/scenarios/vercel-sandbox.live.integration.test.ts
|
|
1390
1408
|
```
|
|
1391
1409
|
|
|
1392
1410
|
The suite first runs `ab init` readiness validation through the production
|
|
@@ -1407,7 +1425,7 @@ sandbox should use an API-key provider such as `vercel-ai-gateway/...` with
|
|
|
1407
1425
|
or attempt an interactive login. Plugin runtimes retain their existing API authentication. Claude Code can select a subscription or Kimi billing account. Codex can explicitly select a ChatGPT subscription authorized with `bun ab accounts login NAME`; one local dispatcher or hosted refreshing secret owns renewal, and the real tokens stay on the host.
|
|
1408
1426
|
|
|
1409
1427
|
The opt-in live lifecycle suite is
|
|
1410
|
-
`packages/core/src/scenarios/vercel-sandbox.live.test.ts`. Set
|
|
1428
|
+
`packages/core/src/scenarios/vercel-sandbox.live.integration.test.ts`. Set
|
|
1411
1429
|
`AB_RUN_VERCEL_SANDBOX_LIVE=1`, `AB_VERCEL_SANDBOX_LIVE_REPO` to an independent
|
|
1412
1430
|
checkout with a ready file ticket and this provider configuration, plus the
|
|
1413
1431
|
hosted Store, Vercel, runtime, and GitHub credentials above. Its readiness case
|
|
@@ -1467,7 +1485,7 @@ publish = "bun run publish"
|
|
|
1467
1485
|
`setup` is special by convention: the kernel runs it after workspace provision
|
|
1468
1486
|
and after sandbox rehydration. A failure is recorded durably with its command,
|
|
1469
1487
|
exit status, attempt, and output. Retries are bounded by
|
|
1470
|
-
`policy.maxSetupAttempts`; exhaustion blocks on a
|
|
1488
|
+
`policy.maxSetupAttempts`; exhaustion blocks on a setup-targeted policy
|
|
1471
1489
|
escalation without creating a phase or verification result. A later successful
|
|
1472
1490
|
attachment clears the current error projection. Other names run only when
|
|
1473
1491
|
referenced by a configured check. A check's `command` value is the key in this
|
|
@@ -1756,41 +1774,13 @@ Cross-field validation rejects:
|
|
|
1756
1774
|
selectors are validated even though the mandatory step will not use them for
|
|
1757
1775
|
applicability.
|
|
1758
1776
|
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
normally lives at `$AB_CONTEXT_DIR/node-verification.json`. These files are marked `derived`
|
|
1767
|
-
in `materialized`, with their source build and revision recorded in the metadata.
|
|
1768
|
-
|
|
1769
|
-
Membership comes from build identity trailers on every commit reachable in the
|
|
1770
|
-
frozen parent-to-head range, including earlier cycles and merge side history.
|
|
1771
|
-
The dispatcher gathers contributor material with repository authority before
|
|
1772
|
-
launching verification. Specs use the event-authorized revision at preparation,
|
|
1773
|
-
never an unsanctioned latest deposit or mutable ticket body. Unknown identities,
|
|
1774
|
-
ambiguous or invalid trailers, and missing source data prevent preparation.
|
|
1775
|
-
A versioned node-owned `node-verification-context` artifact is deposited atomically
|
|
1776
|
-
with `integration.prepared`, which cites its exact revision. Hydration reads that
|
|
1777
|
-
citation and validates the prepared input's cycle and range without contributor
|
|
1778
|
-
reads or Git provenance discovery; session and build scope permissions remain
|
|
1779
|
-
unchanged. Concurrent verifiers and resumed sessions share the frozen inputs;
|
|
1780
|
-
a new cycle collects fresh contributor identities and specs. Missing, corrupt or
|
|
1781
|
-
mismatched prepared inputs fail hydration without publishing a manifest.
|
|
1782
|
-
Historical agent cycles without a citation require a new prepared cycle;
|
|
1783
|
-
check-only cycles require no contributor input. Commits without a build trailer are
|
|
1784
|
-
listed as unattributed, a mechanical absence of a trailer rather than an authorization verdict.
|
|
1785
|
-
`handPushedCommits: [{sha, originalSha, message}]` identifies node-owned hand-pushed
|
|
1786
|
-
commits in the frozen range. Ownership uses the durable first-parent contribution
|
|
1787
|
-
boundary; inherited and merge-side history are not automatically owned. Confirmed
|
|
1788
|
-
rewrite aliases preserve original identity, and `message` is the full commit message.
|
|
1789
|
-
These messages express maintainer-authorized intent: judge quality and consistency;
|
|
1790
|
-
never fail these commits solely for lacking a covering spec.
|
|
1791
|
-
Other node changes are authorized when the node spec or the spec of the contribution
|
|
1792
|
-
that introduced it covers it; use the commit mapping to find that spec.
|
|
1793
|
-
Leaf verification omits node provenance.
|
|
1777
|
+
Agent verify steps on a node receive `nodeVerification` in their context
|
|
1778
|
+
manifest: the frozen range, contribution specs at their event-authorized
|
|
1779
|
+
revisions, an exhaustive commit provenance index, and owned hand-pushed commits.
|
|
1780
|
+
The dispatcher prepares these inputs once per integration cycle; leaf
|
|
1781
|
+
verification omits them. See
|
|
1782
|
+
[node verification context](integration-tree.md#node-verification-context)
|
|
1783
|
+
for the complete field list, authorization rule, and failure behavior.
|
|
1794
1784
|
|
|
1795
1785
|
### Role routing for an agent verify step
|
|
1796
1786
|
|
|
@@ -2336,9 +2326,9 @@ each caller's existing fail-safe behavior. Role `args` apply to those one-shots
|
|
|
2336
2326
|
too. Effective arguments are recorded on session-start facts.
|
|
2337
2327
|
|
|
2338
2328
|
The injected Codex protocol/contract suite is deterministic and credential-free:
|
|
2339
|
-
`bun test packages/core/src/ports/runner/codex.test.ts`. An authenticated local smoke run is
|
|
2329
|
+
`bun test packages/core/src/ports/runner/codex.integration.test.ts`. An authenticated local smoke run is
|
|
2340
2330
|
opt-in:
|
|
2341
|
-
`AB_RUN_LIVE_PORT_CONTRACTS=1 AB_CODEX_CONTRACT_MODEL=gpt-… bun test packages/core/src/ports/runner/codex.live.test.ts`.
|
|
2331
|
+
`AB_RUN_LIVE_PORT_CONTRACTS=1 AB_CODEX_CONTRACT_MODEL=gpt-… bun test packages/core/src/ports/runner/codex.live.integration.test.ts`.
|
|
2342
2332
|
|
|
2343
2333
|
Core agent phases route by phase name (`plan`, `plan-review`, `implement`,
|
|
2344
2334
|
`code-review`, `finalize`, and `reconcile`). Agent verify steps and agent
|
|
@@ -2480,7 +2470,7 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2480
2470
|
- **Required:** Optional
|
|
2481
2471
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2482
2472
|
|
|
2483
|
-
**Description:** Bound consecutive dispatch failures before
|
|
2473
|
+
**Description:** Bound consecutive dispatch failures before a setup-targeted `dispatch-failure-limit` escalation.
|
|
2484
2474
|
|
|
2485
2475
|
**Constraints:** safe integer; > 0
|
|
2486
2476
|
|
|
@@ -2493,7 +2483,7 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2493
2483
|
- **Required:** Optional
|
|
2494
2484
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2495
2485
|
|
|
2496
|
-
**Description:** Bound consecutive workspace setup failures before
|
|
2486
|
+
**Description:** Bound consecutive workspace setup failures before a setup-targeted policy escalation.
|
|
2497
2487
|
|
|
2498
2488
|
**Constraints:** safe integer; > 0
|
|
2499
2489
|
|
|
@@ -2506,7 +2496,7 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2506
2496
|
- **Required:** Optional
|
|
2507
2497
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2508
2498
|
|
|
2509
|
-
**Description:** Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a
|
|
2499
|
+
**Description:** Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a `retry` answer from your operator agent or you re-arms this budget.
|
|
2510
2500
|
|
|
2511
2501
|
**Constraints:** safe integer; > 0
|
|
2512
2502
|
|
|
@@ -2667,14 +2657,11 @@ uses the oldest unclaimed observation, counts only later same-repository
|
|
|
2667
2657
|
`pr.merged` facts from other builds, and ignores aborted and closed-unmerged
|
|
2668
2658
|
builds. Whichever trigger fires, Harvest claims the complete current
|
|
2669
2659
|
accumulation and records `count`, `drift`, or `both` on the durable start fact.
|
|
2670
|
-
|
|
2671
|
-
`
|
|
2672
|
-
|
|
2673
|
-
`policy.harvestThreshold
|
|
2674
|
-
|
|
2675
|
-
diagnostic after a failed refresh, and appends no transport event. The separate
|
|
2676
|
-
`policy.harvestMaxDrift` trigger is configured here but is not shown in the
|
|
2677
|
-
header. The repository lease and fixed per-run recovery budget are implementation
|
|
2660
|
+
Unclaimed observation pressure is not shown in the dashboard header, which
|
|
2661
|
+
reads `triage <count> | queue <depth> | active <current>/<limit>`. A running or
|
|
2662
|
+
paused Harvest row shows its run's observations, and `ab harvest status`
|
|
2663
|
+
reports Harvest state. Neither `policy.harvestThreshold` nor
|
|
2664
|
+
`policy.harvestMaxDrift` is displayed in the header. The repository lease and fixed per-run recovery budget are implementation
|
|
2678
2665
|
invariants, not additional configuration fields.
|
|
2679
2666
|
|
|
2680
2667
|
## `[tickets]`
|
|
@@ -2694,6 +2681,8 @@ project-scoped transactional validation. Linear maps kind to the exact `node`
|
|
|
2694
2681
|
label and target to a parent carrying that label. Ordinary grouping parents do
|
|
2695
2682
|
not impose targets; explicit clear removes the parent relation. Node demotion
|
|
2696
2683
|
with targeting children and cycles are refused regardless of child state.
|
|
2684
|
+
GitHub also maps kind to the exact `node` label, and target to the sub-issue
|
|
2685
|
+
relation with a node's issue; other parents are grouping and stay untouched.
|
|
2697
2686
|
See [integration trees](integration-tree.md) for admission, lifecycle and commands.
|
|
2698
2687
|
|
|
2699
2688
|
### Source configuration
|
|
@@ -2703,7 +2692,7 @@ To move an existing project between sources, follow the
|
|
|
2703
2692
|
|
|
2704
2693
|
Required in practice: `readyState` deliberately has no default, so omitting the
|
|
2705
2694
|
table fails at `tickets.readyState` rather than allowing tickets from every
|
|
2706
|
-
state. Within a present table, `source` is required; hosted
|
|
2695
|
+
state. Within a present table, `source` is required; `hosted` and `github` default `readyState` to `ready`; `file`, `linear` and plugin sources require it.
|
|
2707
2696
|
|
|
2708
2697
|
<!-- configuration-reference:tickets -->
|
|
2709
2698
|
|
|
@@ -2718,7 +2707,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2718
2707
|
|
|
2719
2708
|
**Description:** Ticket source and lifecycle vocabulary. Omitting the table supplies source=file but still requires readyState.
|
|
2720
2709
|
|
|
2721
|
-
**Constraints:** readyState is required except for hosted, whose omitted value resolves to ready. url is forbidden for file and
|
|
2710
|
+
**Constraints:** readyState is required except for hosted and github, whose omitted value resolves to ready. url is forbidden for file, linear and github; hosted URLs must be absolute HTTPS (loopback HTTP allowed), without credentials, query or fragment, and are normalized.
|
|
2722
2711
|
|
|
2723
2712
|
#### `tickets.url`
|
|
2724
2713
|
|
|
@@ -2731,7 +2720,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2731
2720
|
|
|
2732
2721
|
**Description:** Ticket service independent of [store] url and AB_STORE. Required with local builds.
|
|
2733
2722
|
|
|
2734
|
-
**Constraints:** Forbidden for file and
|
|
2723
|
+
**Constraints:** Forbidden for file, linear and github. Hosted omission uses the selected remote BuildStore URL; with a local BuildStore an explicit hosted URL is required.
|
|
2735
2724
|
|
|
2736
2725
|
#### `tickets.source`
|
|
2737
2726
|
|
|
@@ -2757,7 +2746,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2757
2746
|
|
|
2758
2747
|
**Description:** Require every listed label in addition to the state gate.
|
|
2759
2748
|
|
|
2760
|
-
**Constraints:** Omission uses source readiness defaults (Linear: autobuild label; file: none). Explicit [] disables label gating.; Each item: minimum length 1
|
|
2749
|
+
**Constraints:** Omission uses source readiness defaults (Linear and GitHub: autobuild label; file: none). Explicit [] disables label gating.; Each item: minimum length 1
|
|
2761
2750
|
|
|
2762
2751
|
#### `tickets.readyState`
|
|
2763
2752
|
|
|
@@ -2765,7 +2754,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2765
2754
|
|
|
2766
2755
|
- **Type:** `string`
|
|
2767
2756
|
- **Default:** `omitted`
|
|
2768
|
-
- **Required:** Required unless source = "hosted";
|
|
2757
|
+
- **Required:** Required unless source = "hosted" or "github"; omission there resolves to "ready". GitHub states are `autobuild:<state>` labels.
|
|
2769
2758
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2770
2759
|
|
|
2771
2760
|
**Description:** The one workflow state eligible for dispatch.
|
|
@@ -2781,9 +2770,9 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2781
2770
|
- **Required:** Optional
|
|
2782
2771
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2783
2772
|
|
|
2784
|
-
**Description:** Require the ticket to be assigned to one
|
|
2773
|
+
**Description:** Require the ticket to be assigned to one user, in addition to the state and label gates.
|
|
2785
2774
|
|
|
2786
|
-
**Constraints:** [tickets].readyAssignee must be "me"
|
|
2775
|
+
**Constraints:** [tickets].readyAssignee must be a nonblank value with no surrounding whitespace; Allowed for sources that can filter by assignee: linear ("me" or an email), github ("me" or a GitHub username, including managed-user logins such as mona_acme), and plugin sources that declare readyAssignee. Refused for file and hosted.
|
|
2787
2776
|
|
|
2788
2777
|
#### `tickets.teamKey`
|
|
2789
2778
|
|
|
@@ -2791,7 +2780,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2791
2780
|
|
|
2792
2781
|
- **Type:** `string`
|
|
2793
2782
|
- **Default:** `omitted`
|
|
2794
|
-
- **Required:** Required for linear and hosted; forbidden for file; optional for plugins.
|
|
2783
|
+
- **Required:** Required for linear and hosted; forbidden for file and github; optional for plugins.
|
|
2795
2784
|
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
|
|
2796
2785
|
|
|
2797
2786
|
**Description:** Backend team key such as `"ENG"`, or an existing plugin config field.
|
|
@@ -2809,7 +2798,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2809
2798
|
|
|
2810
2799
|
**Description:** Workflow state entered when a ticket is claimed.
|
|
2811
2800
|
|
|
2812
|
-
**Constraints:** minimum length 1; state must be nonblank; Forbidden for file. Resolution uses In Progress for direct Linear, doing for hosted.
|
|
2801
|
+
**Constraints:** minimum length 1; state must be nonblank; Forbidden for file. Resolution uses In Progress for direct Linear, doing for hosted and github.
|
|
2813
2802
|
|
|
2814
2803
|
#### `tickets.doneState`
|
|
2815
2804
|
|
|
@@ -2822,7 +2811,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2822
2811
|
|
|
2823
2812
|
**Description:** Project completion state and merged-ticket transition.
|
|
2824
2813
|
|
|
2825
|
-
**Constraints:** minimum length 1; state must be nonblank; Hosted resolution uses done when omitted.
|
|
2814
|
+
**Constraints:** minimum length 1; state must be nonblank; Hosted and github resolution uses done when omitted. A github ticket is done when its issue is closed as completed.
|
|
2826
2815
|
|
|
2827
2816
|
#### `tickets.createState`
|
|
2828
2817
|
|
|
@@ -2835,7 +2824,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2835
2824
|
|
|
2836
2825
|
**Description:** Default state for newly created tickets when `ab ticket create` omits `--state`.
|
|
2837
2826
|
|
|
2838
|
-
**Constraints:** minimum length 1; state must be nonblank; Omission uses the source creation state (Linear team default; file Triage).
|
|
2827
|
+
**Constraints:** minimum length 1; state must be nonblank; Omission uses the source creation state (Linear team default; file Triage; github triage).
|
|
2839
2828
|
|
|
2840
2829
|
#### `tickets.triageState`
|
|
2841
2830
|
|
|
@@ -2848,7 +2837,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2848
2837
|
|
|
2849
2838
|
**Description:** State used for spec-gate bounces, aborts, and closed-unmerged PRs.
|
|
2850
2839
|
|
|
2851
|
-
**Constraints:** minimum length 1; state must be nonblank; Omission resolves to Backlog for Linear, triage for hosted, Triage for file/plugin sources.
|
|
2840
|
+
**Constraints:** minimum length 1; state must be nonblank; Omission resolves to Backlog for Linear, triage for hosted and github, Triage for file/plugin sources.
|
|
2852
2841
|
|
|
2853
2842
|
#### `tickets.proposalState`
|
|
2854
2843
|
|
|
@@ -2863,6 +2852,32 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2863
2852
|
|
|
2864
2853
|
**Constraints:** minimum length 1; state must be nonblank; Omission uses the resolved triageState.
|
|
2865
2854
|
|
|
2855
|
+
#### `tickets.backlogState`
|
|
2856
|
+
|
|
2857
|
+
**TOML key:** `tickets.backlogState`
|
|
2858
|
+
|
|
2859
|
+
- **Type:** `string`
|
|
2860
|
+
- **Default:** `omitted`
|
|
2861
|
+
- **Required:** Optional
|
|
2862
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2863
|
+
|
|
2864
|
+
**Description:** State that holds deliberately deferred work (the backlog role). Optional and recommended; unset means the role does not exist.
|
|
2865
|
+
|
|
2866
|
+
**Constraints:** minimum length 1; state must be nonblank; Optional for every source, no default; `ab init` writes it for new configurations. Must differ from the ready, claimed, done, triage and proposal states and from rejectedState (case-insensitive).
|
|
2867
|
+
|
|
2868
|
+
#### `tickets.rejectedState`
|
|
2869
|
+
|
|
2870
|
+
**TOML key:** `tickets.rejectedState`
|
|
2871
|
+
|
|
2872
|
+
- **Type:** `string`
|
|
2873
|
+
- **Default:** `omitted`
|
|
2874
|
+
- **Required:** Optional
|
|
2875
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2876
|
+
|
|
2877
|
+
**Description:** State that holds considered-and-declined work (the rejected role). A rejected ticket never resolves a blocker and never keeps a node incomplete. Optional and recommended.
|
|
2878
|
+
|
|
2879
|
+
**Constraints:** minimum length 1; state must be nonblank; Optional for every source, no default; `ab init` writes it for new configurations. On github it maps to an issue closed as not planned. Must differ from the ready, claimed, done, triage and proposal states and from backlogState (case-insensitive).
|
|
2880
|
+
|
|
2866
2881
|
#### `tickets.dir`
|
|
2867
2882
|
|
|
2868
2883
|
**TOML key:** `tickets.dir`
|
|
@@ -2874,30 +2889,46 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2874
2889
|
|
|
2875
2890
|
**Description:** Root containing file-source state directories, or an existing plugin config field. Relative file paths resolve from the repository.
|
|
2876
2891
|
|
|
2877
|
-
**Constraints:** minimum length 1; Forbidden for linear and
|
|
2892
|
+
**Constraints:** minimum length 1; Forbidden for linear, hosted and github. File omission resolves to the selected local state root tickets directory; plugin omission remains omitted.
|
|
2878
2893
|
|
|
2879
2894
|
<!-- configuration-reference:/tickets -->
|
|
2880
2895
|
|
|
2881
|
-
`readyAssignee
|
|
2882
|
-
|
|
2883
|
-
assigned to them
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2896
|
+
`readyAssignee` narrows readiness to tickets assigned to one user, so one
|
|
2897
|
+
committed `readyAssignee = "me"` makes each person's local dispatcher take only
|
|
2898
|
+
the work assigned to them. It is a ticket-source capability: `linear`, `github`
|
|
2899
|
+
and plugin sources that declare it accept it, each with its own value forms.
|
|
2900
|
+
|
|
2901
|
+
- **Linear:** `"me"` is the user who owns `LINEAR_API_KEY`; an email names a
|
|
2902
|
+
specific user, for a shared or bot key.
|
|
2903
|
+
- **GitHub:** `"me"` is the login that owns the GitHub credential the source
|
|
2904
|
+
authenticates with; a GitHub username, including an Enterprise Managed User
|
|
2905
|
+
login such as `mona_acme`, names a specific user. An issue with several
|
|
2906
|
+
assignees is ready when the user is any one of them.
|
|
2891
2907
|
|
|
2892
|
-
|
|
2908
|
+
The gate is conjunctive with `readyState` and `readyLabels`, and a ticket with
|
|
2909
|
+
no assignee is never ready while it is set. It applies to every ready surface
|
|
2910
|
+
(dispatch, the queued count, and `ab ticket list` without filters); blockers
|
|
2911
|
+
still prevent claim. A blank value, or one outside the source's forms, fails
|
|
2912
|
+
validation. `file`, `hosted` and plugin sources that don't declare the
|
|
2913
|
+
capability refuse it: startup and `ab init --validate` fail with an error that
|
|
2914
|
+
names the source. `ab init --validate` prints the user the gate resolves to
|
|
2915
|
+
and fails when it names nobody: a Linear email that matches no workspace user,
|
|
2916
|
+
a GitHub `"me"` whose credential has no user (a GitHub App installation
|
|
2917
|
+
token), or a GitHub user who can't be assigned issues in the repository. The
|
|
2918
|
+
field reloads without a restart; a reload that names it for a source without
|
|
2919
|
+
the capability, or a GitHub `"me"` the startup credential couldn't resolve, is
|
|
2920
|
+
rejected and the previous configuration stays active.
|
|
2921
|
+
|
|
2922
|
+
When `readyLabels` is absent, direct Linear and GitHub use `["autobuild"]`; hosted, file,
|
|
2893
2923
|
and plugin sources use `[]`, meaning no host-imposed label gate. An explicit value always
|
|
2894
2924
|
wins. A nonempty list is
|
|
2895
|
-
conjunctive: every configured label must be present. `readyState`
|
|
2896
|
-
|
|
2925
|
+
conjunctive: every configured label must be present. `readyState` is
|
|
2926
|
+
independent of labels: it is required except for hosted and GitHub, which
|
|
2927
|
+
default it to `ready`. Linear compares state and label names exactly
|
|
2897
2928
|
and case-sensitively. The file source matches state names case-insensitively against the directories
|
|
2898
2929
|
under the tracker root: the four lifecycle directories (`triage/`, `ready/`,
|
|
2899
2930
|
`doing/`, `done/`, always present) plus any directory the repository adds, such
|
|
2900
|
-
as `
|
|
2931
|
+
as `needs-design/`. A name matching no directory is an error listing those that
|
|
2901
2932
|
exist, so creating a state stays an explicit act: `ab ticket state create <name>
|
|
2902
2933
|
[--about <text>]` makes one, and `ab ticket states` lists every state with its
|
|
2903
2934
|
roles, ticket count, and purpose. A purpose is stored as a one-line `.about` file
|
|
@@ -2906,18 +2937,39 @@ read as a ticket. `createState`, `readyState`,
|
|
|
2906
2937
|
`triageState`, and `proposalState` may each name any existing directory;
|
|
2907
2938
|
`ab ticket list` with no filter still lists only `readyState`.
|
|
2908
2939
|
|
|
2940
|
+
`backlogState` and `rejectedState` map the optional backlog and rejected
|
|
2941
|
+
lifecycle roles: deliberately deferred work, and work that was considered and
|
|
2942
|
+
declined. Both are recommended, and `ab init` writes `backlogState = "backlog"`
|
|
2943
|
+
and `rejectedState = "rejected"` into new file configurations. Neither has a
|
|
2944
|
+
default: an unset key means the role does not exist, and a state that only
|
|
2945
|
+
shares its name is an ordinary custom state. `ab ticket move <id> --role
|
|
2946
|
+
backlog` (or `rejected`, `triage`, `ready`) moves a ticket by role; a role the
|
|
2947
|
+
repository has not configured is refused with the key to set, and a source that
|
|
2948
|
+
creates states creates the role state on first use. The dispatcher never claims
|
|
2949
|
+
from, moves into, or files proposals into either state. A rejected ticket never
|
|
2950
|
+
resolves a blocker, even where the source natively counts it complete (a Linear
|
|
2951
|
+
`Canceled` state mapped to rejected), and a rejected node child no longer keeps
|
|
2952
|
+
its node incomplete. Moving the ticket out of the state restores ordinary
|
|
2953
|
+
behavior.
|
|
2954
|
+
|
|
2909
2955
|
Source-specific validation is strict:
|
|
2910
2956
|
|
|
2911
2957
|
- Linear and hosted require `teamKey` and reject `dir`.
|
|
2912
2958
|
- File rejects `teamKey` and `claimedState`; `dir` is optional.
|
|
2913
2959
|
- `createState`, `triageState`, and `proposalState` are valid for every source,
|
|
2914
2960
|
but the named state must exist in that provider when used.
|
|
2961
|
+
- `backlogState` and `rejectedState` are valid for every source. Neither may
|
|
2962
|
+
name the same state, case-insensitively, as the ready, claimed, done, triage
|
|
2963
|
+
or proposal role, or as each other; startup, reload and `ab init --validate`
|
|
2964
|
+
refuse such a configuration, naming both roles. `ab init --validate` prints a
|
|
2965
|
+
note when either is unset, and warns when a configured one names no state in
|
|
2966
|
+
a source that cannot create it.
|
|
2915
2967
|
- Plugin sources receive the existing fields in this table unchanged and own
|
|
2916
2968
|
any additional semantic validation. No untyped plugin-options table exists.
|
|
2917
2969
|
|
|
2918
2970
|
Hosted states are durable service data scoped to a project. `ab ticket states`
|
|
2919
|
-
lists
|
|
2920
|
-
counts and optional purposes. `ab ticket state create <name> [--about <text>]`
|
|
2971
|
+
lists role-holding states in workflow order (triage, create, proposal, backlog,
|
|
2972
|
+
ready, claimed, done, rejected), then the rest, with counts and optional purposes. `ab ticket state create <name> [--about <text>]`
|
|
2921
2973
|
adds a state using the file source's lowercase name grammar. Hosted duplicates
|
|
2922
2974
|
in any letter case are refused; file creation remains idempotent. Configured
|
|
2923
2975
|
names always exist, preserve their spelling, and remain custom states after
|
|
@@ -3386,7 +3438,7 @@ repository settings; merge authorization follows `[[merge]]`. Pause all and
|
|
|
3386
3438
|
resume all write two facts each — the
|
|
3387
3439
|
repository pause first, then intake — so a partial failure still leaves the
|
|
3388
3440
|
repository at least as quiesced as asked; `ab pause --all` reports on stderr
|
|
3389
|
-
which of them
|
|
3441
|
+
which of them was recorded when a walk stops partway. The current release has no TOML
|
|
3390
3442
|
field for either the harvest gate or the repository pause, and no command that
|
|
3391
3443
|
sets the repository pause on its own without also moving intake; inspect the
|
|
3392
3444
|
harvest gate with `ab harvest status`.
|
|
@@ -3518,12 +3570,11 @@ action. Check the gates in this order:
|
|
|
3518
3570
|
deliberately excluded from the queue.
|
|
3519
3571
|
|
|
3520
3572
|
If the expected work is observation harvesting instead of a ticket, check the
|
|
3521
|
-
acknowledged harvest gate,
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
progress is not shown. Harvest does not consume build capacity.
|
|
3573
|
+
acknowledged harvest gate, `ab harvest status`, and the configured triggers.
|
|
3574
|
+
Harvest starts when `policy.harvestThreshold` unclaimed observations exist or
|
|
3575
|
+
when `policy.harvestMaxDrift` other builds have merged since the oldest one; a
|
|
3576
|
+
drift limit of zero disables the second condition. The dashboard header shows
|
|
3577
|
+
neither count nor drift pressure. Harvest does not consume build capacity.
|
|
3527
3578
|
|
|
3528
3579
|
### Authentication failures
|
|
3529
3580
|
|
|
@@ -3611,7 +3662,12 @@ configuration or unavailable journals fail with recovery guidance. Fresh init
|
|
|
3611
3662
|
uses the no-rules fallback.
|
|
3612
3663
|
|
|
3613
3664
|
Native auto-merge is reconciled on every janitor poll against durable desired
|
|
3614
|
-
merge state.
|
|
3665
|
+
merge state. While a consented request is armed and the build is eligible, each
|
|
3666
|
+
poll also reads the forge's armed merge method and message (one GraphQL query
|
|
3667
|
+
on GitHub). A request with a different method, headline, body or
|
|
3668
|
+
`Autobuild-Build` trailer, including one a human enabled, is replaced under the
|
|
3669
|
+
consent and gate guards before it counts as applied. A matching request costs
|
|
3670
|
+
no mutation, consent read or event. It is disabled while held, unauthorized, unready, or replacement
|
|
3615
3671
|
publication is pending or just completed; enabling binds to the current head
|
|
3616
3672
|
through the forge's expected-head guard. Every replacement publication confirms
|
|
3617
3673
|
cancellation first, and its first following poll re-reads and reconciles native
|
|
@@ -3642,14 +3698,21 @@ facts retain the mixed-version wait gate and durable compatibility diagnostic.
|
|
|
3642
3698
|
When the scoped `ab context` initial own-build read fails, the CLI best-effort
|
|
3643
3699
|
writes `session.build-read-failed` with exact session, phase, round, operation
|
|
3644
3700
|
`context`, reason `own-build-read`, and diagnostic. A valid terminal from that
|
|
3645
|
-
session wins if the agent recovers
|
|
3701
|
+
session, or from its native continuation, wins if the agent recovers; a
|
|
3702
|
+
continuation inherits its predecessor's pending deferral, so a chain parks at
|
|
3703
|
+
most once. A later successful own-build read in the same session records
|
|
3704
|
+
`session.build-read-recovered`, which a newer classified failure invalidates. A
|
|
3705
|
+
finalize post-step, which has no terminal, settles as recovered only with that
|
|
3706
|
+
evidence and a completed turn, and the kernel then records its
|
|
3707
|
+
`finalize.step-completed`. Otherwise settlement records `phase.deferred`
|
|
3646
3708
|
and `phase.deferral-escalated`, immediately projecting ordinary blocked attention.
|
|
3647
3709
|
The raise cites `own-build-read:<evidenceSeq>`; replay repairs either settlement
|
|
3648
3710
|
crash gap before launching another agent. An `escalation.answered` retry or
|
|
3649
3711
|
guidance authorizes one fresh session without resetting genuine phase failures;
|
|
3650
3712
|
a new classified failure parks again. There are zero automatic paid retries
|
|
3651
3713
|
after this deferral. If evidence cannot be written, ordinary recovery applies;
|
|
3652
|
-
agent output and `no-terminal` alone never classify a read failure
|
|
3714
|
+
agent output and `no-terminal` alone never classify a read failure or settle
|
|
3715
|
+
one as recovered.
|
|
3653
3716
|
|
|
3654
3717
|
Ordinary silence, provider failures and session timeouts retain the runner's
|
|
3655
3718
|
phase failure limit (`BuildRunnerOpts.maxPhaseAttempts`, default 2). This is
|
|
@@ -3799,13 +3862,15 @@ restored runtime at the next boundary; unreadable decisive facts defer a build w
|
|
|
3799
3862
|
attention before any action. Peers without negotiated rollback capability retain
|
|
3800
3863
|
existing failure behavior and report that capable runtimes are required.
|
|
3801
3864
|
|
|
3802
|
-
Repository status
|
|
3865
|
+
Repository status shows the current generation's resolved target and latest
|
|
3866
|
+
outcome, the live handoff, and the latest settled outcome from an earlier
|
|
3867
|
+
generation; a failure that later evidence replaced is marked superseded.
|
|
3803
3868
|
`dispatcher.upgrade-target-resolved` records the first successful resolution and
|
|
3804
3869
|
later changed observations, including equal-content advances. Its source mode,
|
|
3805
3870
|
base and target SHA remain visible separately from the running commit and earlier
|
|
3806
3871
|
handoff/failure facts. Repeated identical polls append no resolution facts.
|
|
3807
3872
|
|
|
3808
|
-
Repository status exposes both generations, mode, takeover, outstanding draining executions and deadline, plus
|
|
3873
|
+
Repository status exposes both generations, mode, takeover, outstanding draining executions and deadline, plus the current target and the latest failure, marked superseded once a later different target or generation replaces it. Upgrade
|
|
3809
3874
|
failure is repository attention, naming the target and reason. Resolution/install
|
|
3810
3875
|
failure leaves the running generation active and suppresses the same failed input
|
|
3811
3876
|
until target or selected-store compatibility evidence changes or a fresh operator launch. Unrelated base advances do not
|