@defrex/autobuild 1.4.2 → 1.6.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 +512 -101
- 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 +7 -3
- package/docs/architecture.md +313 -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 +217 -106
- package/docs/dispatcher-hosting.md +19 -3
- package/docs/dispatcher.md +11 -6
- package/docs/glossary.md +1 -1
- package/docs/integration-overview.md +2 -2
- package/docs/integration-tree.md +91 -28
- package/docs/merge-policy.md +28 -9
- package/docs/operating.md +1 -1
- package/docs/operator-api.md +57 -20
- package/docs/operator-surfaces.md +1 -1
- package/docs/plugin-authoring.md +89 -8
- package/docs/remote-store-protocol.md +39 -11
- package/docs/remote-ticket-protocol.md +126 -12
- package/docs/restacking.md +24 -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 +3 -3
- package/docs/verification.md +5 -5
- package/docs/website.md +8 -0
- package/docs/workspaces.md +1 -1
- package/package.json +4 -3
- package/packages/core/src/accounts/hosted-readiness.ts +21 -0
- package/packages/core/src/cli/attention.ts +3 -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 +51 -11
- package/packages/core/src/cli/dashboard/poll.ts +14 -0
- package/packages/core/src/cli/dashboard/queue.ts +21 -0
- package/packages/core/src/cli/dashboard/render.ts +43 -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-preflight.ts +4 -1
- package/packages/core/src/cli/dispatch-repository-feed.ts +40 -11
- package/packages/core/src/cli/dispatch-tickets.ts +47 -0
- package/packages/core/src/cli/dispatch-upgrade-controller.ts +3 -0
- package/packages/core/src/cli/dispatch.ts +522 -145
- package/packages/core/src/cli/help.ts +63 -24
- 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/repo-lease.ts +225 -0
- package/packages/core/src/cli/repository-status.ts +203 -49
- package/packages/core/src/cli/status.ts +42 -4
- 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/wait.ts +4 -1
- package/packages/core/src/cli/watch.ts +19 -4
- 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 +202 -38
- package/packages/core/src/distribution-packaging.ts +1 -1
- package/packages/core/src/events/catalog.ts +7 -0
- package/packages/core/src/events/compatibility.ts +2 -1
- package/packages/core/src/events/payloads.ts +85 -0
- package/packages/core/src/events/policy.ts +10 -0
- package/packages/core/src/events/repository.ts +93 -28
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +237 -230
- 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 +189 -19
- 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 +17 -8
- package/packages/core/src/kernel/finalize-pr-rejection.ts +95 -0
- package/packages/core/src/kernel/generators/build-log.ts +9 -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/incremental-fixtures.ts +1 -0
- 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 +96 -5
- 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/leaf-restack-state.ts +4 -2
- 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-landing.ts +2 -1
- 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 +37 -2
- package/packages/core/src/kernel/reducer.ts +147 -5
- package/packages/core/src/kernel/ticket-preparation.ts +16 -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 +69 -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 +89 -20
- 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 -9
- package/packages/core/src/ports/workspace/commit-preservation.ts +163 -25
- package/packages/core/src/ports/workspace/git-worktree.ts +6 -2
- package/packages/core/src/ports/workspace/harvest-execution.ts +4 -2
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +121 -27
- package/packages/core/src/processes/build-runner.ts +101 -22
- package/packages/core/src/processes/dispatcher.ts +1046 -372
- package/packages/core/src/processes/execution-no-progress.ts +7 -0
- package/packages/core/src/processes/harvest-child.ts +4 -2
- package/packages/core/src/processes/harvest-execution-state.ts +104 -0
- package/packages/core/src/processes/harvest-runner.ts +263 -25
- 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 +36 -1
- package/packages/core/src/runtime-identity.ts +10 -2
- package/packages/core/src/scenarios/harness.ts +149 -35
- 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/reduced-reads.ts +10 -0
- package/packages/core/src/store/reducer-value-shapes.json +4471 -3427
- 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/1.6.0.json +27173 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +4 -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 +1424 -33
- 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 +417 -143
- 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 +57 -20
- package/skills/guide/references/plugin-authoring.md +89 -8
- package/skills/guide/references/remote-store-protocol.md +39 -11
- package/skills/guide/references/remote-ticket-protocol.md +126 -12
- package/skills/guide/references/restacking.md +24 -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 +149 -35
- 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 +116 -37
- package/templates/autobuild.toml +5 -0
- package/templates/hosted-service/package.json +2 -2
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
|
|
@@ -439,7 +441,7 @@ any table header.
|
|
|
439
441
|
- **Required:** Optional
|
|
440
442
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
441
443
|
|
|
442
|
-
**Description:**
|
|
444
|
+
**Description:** Builds running work at once for this repository. A build that finished its pipeline holds no slot while it waits for a merge decision; it is admitted ahead of new claims when it must run again. Unfinished paused and blocked work retains slots. Node reconcile and verification exclude their own blocked/paused descendants at admission; new claims use total occupancy. See [integration capacity](integration-tree.md).
|
|
443
445
|
|
|
444
446
|
**Constraints:** safe integer; > 0
|
|
445
447
|
|
|
@@ -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
|
|
@@ -1375,8 +1388,9 @@ cause. A marked sandbox does not repeat provisioning; every replacement/new
|
|
|
1375
1388
|
generation does. A named sandbox left without the completion marker, for example
|
|
1376
1389
|
after a provision timeout, is flagged `cleanup-required` and never launched into.
|
|
1377
1390
|
The dispatcher releases it automatically, recording an empty
|
|
1378
|
-
`workspace.commits-lost` when no checkout exists,
|
|
1379
|
-
|
|
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.
|
|
1380
1394
|
|
|
1381
1395
|
The representative actual-provider check is opt-in and must point at an
|
|
1382
1396
|
independent consuming repository whose `autobuild.toml` selects the universal
|
|
@@ -1390,7 +1404,7 @@ and configured agent-runtime credentials available, run:
|
|
|
1390
1404
|
AB_RUN_VERCEL_SANDBOX_LIVE=1 \
|
|
1391
1405
|
AB_VERCEL_SANDBOX_LIVE_REPO=/absolute/path/to/consumer \
|
|
1392
1406
|
AB_STORE=https://store.example AB_TOKEN=… \
|
|
1393
|
-
bun test packages/core/src/scenarios/vercel-sandbox.live.test.ts
|
|
1407
|
+
bun test packages/core/src/scenarios/vercel-sandbox.live.integration.test.ts
|
|
1394
1408
|
```
|
|
1395
1409
|
|
|
1396
1410
|
The suite first runs `ab init` readiness validation through the production
|
|
@@ -1411,7 +1425,7 @@ sandbox should use an API-key provider such as `vercel-ai-gateway/...` with
|
|
|
1411
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.
|
|
1412
1426
|
|
|
1413
1427
|
The opt-in live lifecycle suite is
|
|
1414
|
-
`packages/core/src/scenarios/vercel-sandbox.live.test.ts`. Set
|
|
1428
|
+
`packages/core/src/scenarios/vercel-sandbox.live.integration.test.ts`. Set
|
|
1415
1429
|
`AB_RUN_VERCEL_SANDBOX_LIVE=1`, `AB_VERCEL_SANDBOX_LIVE_REPO` to an independent
|
|
1416
1430
|
checkout with a ready file ticket and this provider configuration, plus the
|
|
1417
1431
|
hosted Store, Vercel, runtime, and GitHub credentials above. Its readiness case
|
|
@@ -1471,7 +1485,7 @@ publish = "bun run publish"
|
|
|
1471
1485
|
`setup` is special by convention: the kernel runs it after workspace provision
|
|
1472
1486
|
and after sandbox rehydration. A failure is recorded durably with its command,
|
|
1473
1487
|
exit status, attempt, and output. Retries are bounded by
|
|
1474
|
-
`policy.maxSetupAttempts`; exhaustion blocks on a
|
|
1488
|
+
`policy.maxSetupAttempts`; exhaustion blocks on a setup-targeted policy
|
|
1475
1489
|
escalation without creating a phase or verification result. A later successful
|
|
1476
1490
|
attachment clears the current error projection. Other names run only when
|
|
1477
1491
|
referenced by a configured check. A check's `command` value is the key in this
|
|
@@ -1760,41 +1774,13 @@ Cross-field validation rejects:
|
|
|
1760
1774
|
selectors are validated even though the mandatory step will not use them for
|
|
1761
1775
|
applicability.
|
|
1762
1776
|
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
normally lives at `$AB_CONTEXT_DIR/node-verification.json`. These files are marked `derived`
|
|
1771
|
-
in `materialized`, with their source build and revision recorded in the metadata.
|
|
1772
|
-
|
|
1773
|
-
Membership comes from build identity trailers on every commit reachable in the
|
|
1774
|
-
frozen parent-to-head range, including earlier cycles and merge side history.
|
|
1775
|
-
The dispatcher gathers contributor material with repository authority before
|
|
1776
|
-
launching verification. Specs use the event-authorized revision at preparation,
|
|
1777
|
-
never an unsanctioned latest deposit or mutable ticket body. Unknown identities,
|
|
1778
|
-
ambiguous or invalid trailers, and missing source data prevent preparation.
|
|
1779
|
-
A versioned node-owned `node-verification-context` artifact is deposited atomically
|
|
1780
|
-
with `integration.prepared`, which cites its exact revision. Hydration reads that
|
|
1781
|
-
citation and validates the prepared input's cycle and range without contributor
|
|
1782
|
-
reads or Git provenance discovery; session and build scope permissions remain
|
|
1783
|
-
unchanged. Concurrent verifiers and resumed sessions share the frozen inputs;
|
|
1784
|
-
a new cycle collects fresh contributor identities and specs. Missing, corrupt or
|
|
1785
|
-
mismatched prepared inputs fail hydration without publishing a manifest.
|
|
1786
|
-
Historical agent cycles without a citation require a new prepared cycle;
|
|
1787
|
-
check-only cycles require no contributor input. Commits without a build trailer are
|
|
1788
|
-
listed as unattributed, a mechanical absence of a trailer rather than an authorization verdict.
|
|
1789
|
-
`handPushedCommits: [{sha, originalSha, message}]` identifies node-owned hand-pushed
|
|
1790
|
-
commits in the frozen range. Ownership uses the durable first-parent contribution
|
|
1791
|
-
boundary; inherited and merge-side history are not automatically owned. Confirmed
|
|
1792
|
-
rewrite aliases preserve original identity, and `message` is the full commit message.
|
|
1793
|
-
These messages express maintainer-authorized intent: judge quality and consistency;
|
|
1794
|
-
never fail these commits solely for lacking a covering spec.
|
|
1795
|
-
Other node changes are authorized when the node spec or the spec of the contribution
|
|
1796
|
-
that introduced it covers it; use the commit mapping to find that spec.
|
|
1797
|
-
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.
|
|
1798
1784
|
|
|
1799
1785
|
### Role routing for an agent verify step
|
|
1800
1786
|
|
|
@@ -2340,9 +2326,9 @@ each caller's existing fail-safe behavior. Role `args` apply to those one-shots
|
|
|
2340
2326
|
too. Effective arguments are recorded on session-start facts.
|
|
2341
2327
|
|
|
2342
2328
|
The injected Codex protocol/contract suite is deterministic and credential-free:
|
|
2343
|
-
`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
|
|
2344
2330
|
opt-in:
|
|
2345
|
-
`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`.
|
|
2346
2332
|
|
|
2347
2333
|
Core agent phases route by phase name (`plan`, `plan-review`, `implement`,
|
|
2348
2334
|
`code-review`, `finalize`, and `reconcile`). Agent verify steps and agent
|
|
@@ -2436,6 +2422,32 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2436
2422
|
|
|
2437
2423
|
**Constraints:** safe integer; > 0
|
|
2438
2424
|
|
|
2425
|
+
#### `policy.dispatchLeaseTimeoutSeconds`
|
|
2426
|
+
|
|
2427
|
+
**TOML key:** `policy.dispatchLeaseTimeoutSeconds`
|
|
2428
|
+
|
|
2429
|
+
- **Type:** `number`
|
|
2430
|
+
- **Default:** `60`
|
|
2431
|
+
- **Required:** Optional
|
|
2432
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2433
|
+
|
|
2434
|
+
**Description:** How long the repository dispatch lease survives without renewal. A dispatcher that stalls longer reclaims it on waking unless another run took it; a standby takes over a dead holder within this bound. A change takes effect at the dispatcher's next tick.
|
|
2435
|
+
|
|
2436
|
+
**Constraints:** safe integer; > 0; Must be greater than `dispatchLeaseRenewalSeconds`.
|
|
2437
|
+
|
|
2438
|
+
#### `policy.dispatchLeaseRenewalSeconds`
|
|
2439
|
+
|
|
2440
|
+
**TOML key:** `policy.dispatchLeaseRenewalSeconds`
|
|
2441
|
+
|
|
2442
|
+
- **Type:** `number`
|
|
2443
|
+
- **Default:** `20`
|
|
2444
|
+
- **Required:** Optional
|
|
2445
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2446
|
+
|
|
2447
|
+
**Description:** Interval between repository dispatch lease renewals; adopted together with the timeout.
|
|
2448
|
+
|
|
2449
|
+
**Constraints:** safe integer; > 0; Must be less than `dispatchLeaseTimeoutSeconds`.
|
|
2450
|
+
|
|
2439
2451
|
#### `policy.sessionBudgetSeconds`
|
|
2440
2452
|
|
|
2441
2453
|
**TOML key:** `policy.sessionBudgetSeconds`
|
|
@@ -2484,7 +2496,7 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2484
2496
|
- **Required:** Optional
|
|
2485
2497
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2486
2498
|
|
|
2487
|
-
**Description:** Bound consecutive dispatch failures before
|
|
2499
|
+
**Description:** Bound consecutive dispatch failures before a setup-targeted `dispatch-failure-limit` escalation.
|
|
2488
2500
|
|
|
2489
2501
|
**Constraints:** safe integer; > 0
|
|
2490
2502
|
|
|
@@ -2497,7 +2509,7 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2497
2509
|
- **Required:** Optional
|
|
2498
2510
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2499
2511
|
|
|
2500
|
-
**Description:** Bound consecutive workspace setup failures before
|
|
2512
|
+
**Description:** Bound consecutive workspace setup failures before a setup-targeted policy escalation.
|
|
2501
2513
|
|
|
2502
2514
|
**Constraints:** safe integer; > 0
|
|
2503
2515
|
|
|
@@ -2510,7 +2522,7 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2510
2522
|
- **Required:** Optional
|
|
2511
2523
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2512
2524
|
|
|
2513
|
-
**Description:** Bound consecutive provision/start/wait/cleanup failures before a setup-targeted policy escalation; a
|
|
2525
|
+
**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.
|
|
2514
2526
|
|
|
2515
2527
|
**Constraints:** safe integer; > 0
|
|
2516
2528
|
|
|
@@ -2566,6 +2578,19 @@ Optional. Every field receives its own default. All are positive integers except
|
|
|
2566
2578
|
|
|
2567
2579
|
**Constraints:** safe integer; > 0
|
|
2568
2580
|
|
|
2581
|
+
#### `policy.janitorFailureEscalationSeconds`
|
|
2582
|
+
|
|
2583
|
+
**TOML key:** `policy.janitorFailureEscalationSeconds`
|
|
2584
|
+
|
|
2585
|
+
- **Type:** `number`
|
|
2586
|
+
- **Default:** `3600`
|
|
2587
|
+
- **Required:** Optional
|
|
2588
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2589
|
+
|
|
2590
|
+
**Description:** Consecutive janitor failure duration before the build raises one escalation; the janitor keeps retrying.
|
|
2591
|
+
|
|
2592
|
+
**Constraints:** safe integer; > 0
|
|
2593
|
+
|
|
2569
2594
|
#### `policy.nodeIdleAfterSeconds`
|
|
2570
2595
|
|
|
2571
2596
|
**TOML key:** `policy.nodeIdleAfterSeconds`
|
|
@@ -2671,15 +2696,20 @@ uses the oldest unclaimed observation, counts only later same-repository
|
|
|
2671
2696
|
`pr.merged` facts from other builds, and ignores aborted and closed-unmerged
|
|
2672
2697
|
builds. Whichever trigger fires, Harvest claims the complete current
|
|
2673
2698
|
accumulation and records `count`, `drift`, or `both` on the durable start fact.
|
|
2674
|
-
|
|
2675
|
-
`
|
|
2676
|
-
|
|
2677
|
-
`policy.harvestThreshold
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2699
|
+
Unclaimed observation pressure is not shown in the dashboard header, which
|
|
2700
|
+
reads `triage <count> | queue <depth> | active <current>/<limit>`. A running or
|
|
2701
|
+
paused Harvest row shows its run's observations, and `ab harvest status`
|
|
2702
|
+
reports Harvest state. Neither `policy.harvestThreshold` nor
|
|
2703
|
+
`policy.harvestMaxDrift` is displayed in the header. The fixed per-run recovery budget is an implementation
|
|
2704
|
+
invariant, not an additional configuration field.
|
|
2705
|
+
|
|
2706
|
+
The repository dispatch lease is configured by
|
|
2707
|
+
`policy.dispatchLeaseTimeoutSeconds` (default 60) and
|
|
2708
|
+
`policy.dispatchLeaseRenewalSeconds` (default 20). The renewal interval must be
|
|
2709
|
+
less than the timeout; configuration that breaks this is refused when it loads.
|
|
2710
|
+
A dispatcher adopts a changed pair at its next tick. A dispatcher that stalls
|
|
2711
|
+
longer than the timeout reclaims its lease on waking unless another dispatcher
|
|
2712
|
+
took it, and a standby takes over from a dead holder within the timeout.
|
|
2683
2713
|
|
|
2684
2714
|
## `[tickets]`
|
|
2685
2715
|
|
|
@@ -2698,6 +2728,8 @@ project-scoped transactional validation. Linear maps kind to the exact `node`
|
|
|
2698
2728
|
label and target to a parent carrying that label. Ordinary grouping parents do
|
|
2699
2729
|
not impose targets; explicit clear removes the parent relation. Node demotion
|
|
2700
2730
|
with targeting children and cycles are refused regardless of child state.
|
|
2731
|
+
GitHub also maps kind to the exact `node` label, and target to the sub-issue
|
|
2732
|
+
relation with a node's issue; other parents are grouping and stay untouched.
|
|
2701
2733
|
See [integration trees](integration-tree.md) for admission, lifecycle and commands.
|
|
2702
2734
|
|
|
2703
2735
|
### Source configuration
|
|
@@ -2707,7 +2739,7 @@ To move an existing project between sources, follow the
|
|
|
2707
2739
|
|
|
2708
2740
|
Required in practice: `readyState` deliberately has no default, so omitting the
|
|
2709
2741
|
table fails at `tickets.readyState` rather than allowing tickets from every
|
|
2710
|
-
state. Within a present table, `source` is required; hosted
|
|
2742
|
+
state. Within a present table, `source` is required; `hosted` and `github` default `readyState` to `ready`; `file`, `linear` and plugin sources require it.
|
|
2711
2743
|
|
|
2712
2744
|
<!-- configuration-reference:tickets -->
|
|
2713
2745
|
|
|
@@ -2722,7 +2754,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2722
2754
|
|
|
2723
2755
|
**Description:** Ticket source and lifecycle vocabulary. Omitting the table supplies source=file but still requires readyState.
|
|
2724
2756
|
|
|
2725
|
-
**Constraints:** readyState is required except for hosted, whose omitted value resolves to ready. url is forbidden for file and
|
|
2757
|
+
**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.
|
|
2726
2758
|
|
|
2727
2759
|
#### `tickets.url`
|
|
2728
2760
|
|
|
@@ -2735,7 +2767,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2735
2767
|
|
|
2736
2768
|
**Description:** Ticket service independent of [store] url and AB_STORE. Required with local builds.
|
|
2737
2769
|
|
|
2738
|
-
**Constraints:** Forbidden for file and
|
|
2770
|
+
**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.
|
|
2739
2771
|
|
|
2740
2772
|
#### `tickets.source`
|
|
2741
2773
|
|
|
@@ -2761,7 +2793,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2761
2793
|
|
|
2762
2794
|
**Description:** Require every listed label in addition to the state gate.
|
|
2763
2795
|
|
|
2764
|
-
**Constraints:** Omission uses source readiness defaults (Linear: autobuild label; file: none). Explicit [] disables label gating.; Each item: minimum length 1
|
|
2796
|
+
**Constraints:** Omission uses source readiness defaults (Linear and GitHub: autobuild label; file: none). Explicit [] disables label gating.; Each item: minimum length 1
|
|
2765
2797
|
|
|
2766
2798
|
#### `tickets.readyState`
|
|
2767
2799
|
|
|
@@ -2769,7 +2801,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2769
2801
|
|
|
2770
2802
|
- **Type:** `string`
|
|
2771
2803
|
- **Default:** `omitted`
|
|
2772
|
-
- **Required:** Required unless source = "hosted";
|
|
2804
|
+
- **Required:** Required unless source = "hosted" or "github"; omission there resolves to "ready". GitHub states are `autobuild:<state>` labels.
|
|
2773
2805
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2774
2806
|
|
|
2775
2807
|
**Description:** The one workflow state eligible for dispatch.
|
|
@@ -2785,9 +2817,9 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2785
2817
|
- **Required:** Optional
|
|
2786
2818
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2787
2819
|
|
|
2788
|
-
**Description:** Require the ticket to be assigned to one
|
|
2820
|
+
**Description:** Require the ticket to be assigned to one user, in addition to the state and label gates.
|
|
2789
2821
|
|
|
2790
|
-
**Constraints:** [tickets].readyAssignee must be "me"
|
|
2822
|
+
**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.
|
|
2791
2823
|
|
|
2792
2824
|
#### `tickets.teamKey`
|
|
2793
2825
|
|
|
@@ -2795,7 +2827,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2795
2827
|
|
|
2796
2828
|
- **Type:** `string`
|
|
2797
2829
|
- **Default:** `omitted`
|
|
2798
|
-
- **Required:** Required for linear and hosted; forbidden for file; optional for plugins.
|
|
2830
|
+
- **Required:** Required for linear and hosted; forbidden for file and github; optional for plugins.
|
|
2799
2831
|
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. A running invocation keeps its captured values.
|
|
2800
2832
|
|
|
2801
2833
|
**Description:** Backend team key such as `"ENG"`, or an existing plugin config field.
|
|
@@ -2813,7 +2845,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2813
2845
|
|
|
2814
2846
|
**Description:** Workflow state entered when a ticket is claimed.
|
|
2815
2847
|
|
|
2816
|
-
**Constraints:** minimum length 1; state must be nonblank; Forbidden for file. Resolution uses In Progress for direct Linear, doing for hosted.
|
|
2848
|
+
**Constraints:** minimum length 1; state must be nonblank; Forbidden for file. Resolution uses In Progress for direct Linear, doing for hosted and github.
|
|
2817
2849
|
|
|
2818
2850
|
#### `tickets.doneState`
|
|
2819
2851
|
|
|
@@ -2826,7 +2858,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2826
2858
|
|
|
2827
2859
|
**Description:** Project completion state and merged-ticket transition.
|
|
2828
2860
|
|
|
2829
|
-
**Constraints:** minimum length 1; state must be nonblank; Hosted resolution uses done when omitted.
|
|
2861
|
+
**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.
|
|
2830
2862
|
|
|
2831
2863
|
#### `tickets.createState`
|
|
2832
2864
|
|
|
@@ -2839,7 +2871,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2839
2871
|
|
|
2840
2872
|
**Description:** Default state for newly created tickets when `ab ticket create` omits `--state`.
|
|
2841
2873
|
|
|
2842
|
-
**Constraints:** minimum length 1; state must be nonblank; Omission uses the source creation state (Linear team default; file Triage).
|
|
2874
|
+
**Constraints:** minimum length 1; state must be nonblank; Omission uses the source creation state (Linear team default; file Triage; github triage).
|
|
2843
2875
|
|
|
2844
2876
|
#### `tickets.triageState`
|
|
2845
2877
|
|
|
@@ -2852,7 +2884,7 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2852
2884
|
|
|
2853
2885
|
**Description:** State used for spec-gate bounces, aborts, and closed-unmerged PRs.
|
|
2854
2886
|
|
|
2855
|
-
**Constraints:** minimum length 1; state must be nonblank; Omission resolves to Backlog for Linear, triage for hosted, Triage for file/plugin sources.
|
|
2887
|
+
**Constraints:** minimum length 1; state must be nonblank; Omission resolves to Backlog for Linear, triage for hosted and github, Triage for file/plugin sources.
|
|
2856
2888
|
|
|
2857
2889
|
#### `tickets.proposalState`
|
|
2858
2890
|
|
|
@@ -2867,6 +2899,32 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2867
2899
|
|
|
2868
2900
|
**Constraints:** minimum length 1; state must be nonblank; Omission uses the resolved triageState.
|
|
2869
2901
|
|
|
2902
|
+
#### `tickets.backlogState`
|
|
2903
|
+
|
|
2904
|
+
**TOML key:** `tickets.backlogState`
|
|
2905
|
+
|
|
2906
|
+
- **Type:** `string`
|
|
2907
|
+
- **Default:** `omitted`
|
|
2908
|
+
- **Required:** Optional
|
|
2909
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2910
|
+
|
|
2911
|
+
**Description:** State that holds deliberately deferred work (the backlog role). Optional and recommended; unset means the role does not exist.
|
|
2912
|
+
|
|
2913
|
+
**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).
|
|
2914
|
+
|
|
2915
|
+
#### `tickets.rejectedState`
|
|
2916
|
+
|
|
2917
|
+
**TOML key:** `tickets.rejectedState`
|
|
2918
|
+
|
|
2919
|
+
- **Type:** `string`
|
|
2920
|
+
- **Default:** `omitted`
|
|
2921
|
+
- **Required:** Optional
|
|
2922
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
2923
|
+
|
|
2924
|
+
**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.
|
|
2925
|
+
|
|
2926
|
+
**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).
|
|
2927
|
+
|
|
2870
2928
|
#### `tickets.dir`
|
|
2871
2929
|
|
|
2872
2930
|
**TOML key:** `tickets.dir`
|
|
@@ -2878,30 +2936,46 @@ state. Within a present table, `source` is required; hosted tickets default `rea
|
|
|
2878
2936
|
|
|
2879
2937
|
**Description:** Root containing file-source state directories, or an existing plugin config field. Relative file paths resolve from the repository.
|
|
2880
2938
|
|
|
2881
|
-
**Constraints:** minimum length 1; Forbidden for linear and
|
|
2939
|
+
**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.
|
|
2882
2940
|
|
|
2883
2941
|
<!-- configuration-reference:/tickets -->
|
|
2884
2942
|
|
|
2885
|
-
`readyAssignee
|
|
2886
|
-
|
|
2887
|
-
assigned to them
|
|
2888
|
-
|
|
2889
|
-
assignee is never ready while it is set. It applies to every ready surface
|
|
2890
|
-
(dispatch, the queued count, and `ab ticket list` without filters); blockers
|
|
2891
|
-
still prevent claim. It is empty or blank, or neither `"me"` nor an email,
|
|
2892
|
-
fails validation. `ab init --validate` prints the user the gate resolves to and
|
|
2893
|
-
fails when an email matches no workspace user. The field reloads without a
|
|
2894
|
-
restart.
|
|
2943
|
+
`readyAssignee` narrows readiness to tickets assigned to one user, so one
|
|
2944
|
+
committed `readyAssignee = "me"` makes each person's local dispatcher take only
|
|
2945
|
+
the work assigned to them. It is a ticket-source capability: `linear`, `github`
|
|
2946
|
+
and plugin sources that declare it accept it, each with its own value forms.
|
|
2895
2947
|
|
|
2896
|
-
|
|
2948
|
+
- **Linear:** `"me"` is the user who owns `LINEAR_API_KEY`; an email names a
|
|
2949
|
+
specific user, for a shared or bot key.
|
|
2950
|
+
- **GitHub:** `"me"` is the login that owns the GitHub credential the source
|
|
2951
|
+
authenticates with; a GitHub username, including an Enterprise Managed User
|
|
2952
|
+
login such as `mona_acme`, names a specific user. An issue with several
|
|
2953
|
+
assignees is ready when the user is any one of them.
|
|
2954
|
+
|
|
2955
|
+
The gate is conjunctive with `readyState` and `readyLabels`, and a ticket with
|
|
2956
|
+
no assignee is never ready while it is set. It applies to every ready surface
|
|
2957
|
+
(dispatch, the queued count, and `ab ticket list` without filters); blockers
|
|
2958
|
+
still prevent claim. A blank value, or one outside the source's forms, fails
|
|
2959
|
+
validation. `file`, `hosted` and plugin sources that don't declare the
|
|
2960
|
+
capability refuse it: startup and `ab init --validate` fail with an error that
|
|
2961
|
+
names the source. `ab init --validate` prints the user the gate resolves to
|
|
2962
|
+
and fails when it names nobody: a Linear email that matches no workspace user,
|
|
2963
|
+
a GitHub `"me"` whose credential has no user (a GitHub App installation
|
|
2964
|
+
token), or a GitHub user who can't be assigned issues in the repository. The
|
|
2965
|
+
field reloads without a restart; a reload that names it for a source without
|
|
2966
|
+
the capability, or a GitHub `"me"` the startup credential couldn't resolve, is
|
|
2967
|
+
rejected and the previous configuration stays active.
|
|
2968
|
+
|
|
2969
|
+
When `readyLabels` is absent, direct Linear and GitHub use `["autobuild"]`; hosted, file,
|
|
2897
2970
|
and plugin sources use `[]`, meaning no host-imposed label gate. An explicit value always
|
|
2898
2971
|
wins. A nonempty list is
|
|
2899
|
-
conjunctive: every configured label must be present. `readyState`
|
|
2900
|
-
|
|
2972
|
+
conjunctive: every configured label must be present. `readyState` is
|
|
2973
|
+
independent of labels: it is required except for hosted and GitHub, which
|
|
2974
|
+
default it to `ready`. Linear compares state and label names exactly
|
|
2901
2975
|
and case-sensitively. The file source matches state names case-insensitively against the directories
|
|
2902
2976
|
under the tracker root: the four lifecycle directories (`triage/`, `ready/`,
|
|
2903
2977
|
`doing/`, `done/`, always present) plus any directory the repository adds, such
|
|
2904
|
-
as `
|
|
2978
|
+
as `needs-design/`. A name matching no directory is an error listing those that
|
|
2905
2979
|
exist, so creating a state stays an explicit act: `ab ticket state create <name>
|
|
2906
2980
|
[--about <text>]` makes one, and `ab ticket states` lists every state with its
|
|
2907
2981
|
roles, ticket count, and purpose. A purpose is stored as a one-line `.about` file
|
|
@@ -2910,18 +2984,39 @@ read as a ticket. `createState`, `readyState`,
|
|
|
2910
2984
|
`triageState`, and `proposalState` may each name any existing directory;
|
|
2911
2985
|
`ab ticket list` with no filter still lists only `readyState`.
|
|
2912
2986
|
|
|
2987
|
+
`backlogState` and `rejectedState` map the optional backlog and rejected
|
|
2988
|
+
lifecycle roles: deliberately deferred work, and work that was considered and
|
|
2989
|
+
declined. Both are recommended, and `ab init` writes `backlogState = "backlog"`
|
|
2990
|
+
and `rejectedState = "rejected"` into new file configurations. Neither has a
|
|
2991
|
+
default: an unset key means the role does not exist, and a state that only
|
|
2992
|
+
shares its name is an ordinary custom state. `ab ticket move <id> --role
|
|
2993
|
+
backlog` (or `rejected`, `triage`, `ready`) moves a ticket by role; a role the
|
|
2994
|
+
repository has not configured is refused with the key to set, and a source that
|
|
2995
|
+
creates states creates the role state on first use. The dispatcher never claims
|
|
2996
|
+
from, moves into, or files proposals into either state. A rejected ticket never
|
|
2997
|
+
resolves a blocker, even where the source natively counts it complete (a Linear
|
|
2998
|
+
`Canceled` state mapped to rejected), and a rejected node child no longer keeps
|
|
2999
|
+
its node incomplete. Moving the ticket out of the state restores ordinary
|
|
3000
|
+
behavior.
|
|
3001
|
+
|
|
2913
3002
|
Source-specific validation is strict:
|
|
2914
3003
|
|
|
2915
3004
|
- Linear and hosted require `teamKey` and reject `dir`.
|
|
2916
3005
|
- File rejects `teamKey` and `claimedState`; `dir` is optional.
|
|
2917
3006
|
- `createState`, `triageState`, and `proposalState` are valid for every source,
|
|
2918
3007
|
but the named state must exist in that provider when used.
|
|
3008
|
+
- `backlogState` and `rejectedState` are valid for every source. Neither may
|
|
3009
|
+
name the same state, case-insensitively, as the ready, claimed, done, triage
|
|
3010
|
+
or proposal role, or as each other; startup, reload and `ab init --validate`
|
|
3011
|
+
refuse such a configuration, naming both roles. `ab init --validate` prints a
|
|
3012
|
+
note when either is unset, and warns when a configured one names no state in
|
|
3013
|
+
a source that cannot create it.
|
|
2919
3014
|
- Plugin sources receive the existing fields in this table unchanged and own
|
|
2920
3015
|
any additional semantic validation. No untyped plugin-options table exists.
|
|
2921
3016
|
|
|
2922
3017
|
Hosted states are durable service data scoped to a project. `ab ticket states`
|
|
2923
|
-
lists
|
|
2924
|
-
counts and optional purposes. `ab ticket state create <name> [--about <text>]`
|
|
3018
|
+
lists role-holding states in workflow order (triage, create, proposal, backlog,
|
|
3019
|
+
ready, claimed, done, rejected), then the rest, with counts and optional purposes. `ab ticket state create <name> [--about <text>]`
|
|
2925
3020
|
adds a state using the file source's lowercase name grammar. Hosted duplicates
|
|
2926
3021
|
in any letter case are refused; file creation remains idempotent. Configured
|
|
2927
3022
|
names always exist, preserve their spelling, and remain custom states after
|
|
@@ -3390,7 +3485,7 @@ repository settings; merge authorization follows `[[merge]]`. Pause all and
|
|
|
3390
3485
|
resume all write two facts each — the
|
|
3391
3486
|
repository pause first, then intake — so a partial failure still leaves the
|
|
3392
3487
|
repository at least as quiesced as asked; `ab pause --all` reports on stderr
|
|
3393
|
-
which of them
|
|
3488
|
+
which of them was recorded when a walk stops partway. The current release has no TOML
|
|
3394
3489
|
field for either the harvest gate or the repository pause, and no command that
|
|
3395
3490
|
sets the repository pause on its own without also moving intake; inspect the
|
|
3396
3491
|
harvest gate with `ab harvest status`.
|
|
@@ -3515,19 +3610,21 @@ action. Check the gates in this order:
|
|
|
3515
3610
|
5. **Dependencies:** every `blockedBy` ticket must exist and be complete in the
|
|
3516
3611
|
same source. This includes harvest proposals filed directly into the ready
|
|
3517
3612
|
state. Plain dispatch output reports unresolved ids and cycles.
|
|
3518
|
-
6. **Capacity:** every
|
|
3519
|
-
and blocked builds—uses a slot.
|
|
3613
|
+
6. **Capacity:** every unfinished build for this repository—including paused
|
|
3614
|
+
and blocked builds—uses a slot. A build that has finished its pipeline and
|
|
3615
|
+
waits for a merge decision holds none, but one that must re-verify or
|
|
3616
|
+
reconcile is admitted ahead of new claims and reserves a slot while it
|
|
3617
|
+
waits. Inspect `ab repository status`, `ab builds --queued` and
|
|
3520
3618
|
`ab build status <slug>` rather than looking only for a live process.
|
|
3521
3619
|
7. **Duplicate work:** a ready ticket already represented by an active build is
|
|
3522
3620
|
deliberately excluded from the queue.
|
|
3523
3621
|
|
|
3524
3622
|
If the expected work is observation harvesting instead of a ticket, check the
|
|
3525
|
-
acknowledged harvest gate,
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
progress is not shown. Harvest does not consume build capacity.
|
|
3623
|
+
acknowledged harvest gate, `ab harvest status`, and the configured triggers.
|
|
3624
|
+
Harvest starts when `policy.harvestThreshold` unclaimed observations exist or
|
|
3625
|
+
when `policy.harvestMaxDrift` other builds have merged since the oldest one; a
|
|
3626
|
+
drift limit of zero disables the second condition. The dashboard header shows
|
|
3627
|
+
neither count nor drift pressure. Harvest does not consume build capacity.
|
|
3531
3628
|
|
|
3532
3629
|
### Authentication failures
|
|
3533
3630
|
|
|
@@ -3615,7 +3712,12 @@ configuration or unavailable journals fail with recovery guidance. Fresh init
|
|
|
3615
3712
|
uses the no-rules fallback.
|
|
3616
3713
|
|
|
3617
3714
|
Native auto-merge is reconciled on every janitor poll against durable desired
|
|
3618
|
-
merge state.
|
|
3715
|
+
merge state. While a consented request is armed and the build is eligible, each
|
|
3716
|
+
poll also reads the forge's armed merge method and message (one GraphQL query
|
|
3717
|
+
on GitHub). A request with a different method, headline, body or
|
|
3718
|
+
`Autobuild-Build` trailer, including one a human enabled, is replaced under the
|
|
3719
|
+
consent and gate guards before it counts as applied. A matching request costs
|
|
3720
|
+
no mutation, consent read or event. It is disabled while held, unauthorized, unready, or replacement
|
|
3619
3721
|
publication is pending or just completed; enabling binds to the current head
|
|
3620
3722
|
through the forge's expected-head guard. Every replacement publication confirms
|
|
3621
3723
|
cancellation first, and its first following poll re-reads and reconciles native
|
|
@@ -3646,14 +3748,21 @@ facts retain the mixed-version wait gate and durable compatibility diagnostic.
|
|
|
3646
3748
|
When the scoped `ab context` initial own-build read fails, the CLI best-effort
|
|
3647
3749
|
writes `session.build-read-failed` with exact session, phase, round, operation
|
|
3648
3750
|
`context`, reason `own-build-read`, and diagnostic. A valid terminal from that
|
|
3649
|
-
session wins if the agent recovers
|
|
3751
|
+
session, or from its native continuation, wins if the agent recovers; a
|
|
3752
|
+
continuation inherits its predecessor's pending deferral, so a chain parks at
|
|
3753
|
+
most once. A later successful own-build read in the same session records
|
|
3754
|
+
`session.build-read-recovered`, which a newer classified failure invalidates. A
|
|
3755
|
+
finalize post-step, which has no terminal, settles as recovered only with that
|
|
3756
|
+
evidence and a completed turn, and the kernel then records its
|
|
3757
|
+
`finalize.step-completed`. Otherwise settlement records `phase.deferred`
|
|
3650
3758
|
and `phase.deferral-escalated`, immediately projecting ordinary blocked attention.
|
|
3651
3759
|
The raise cites `own-build-read:<evidenceSeq>`; replay repairs either settlement
|
|
3652
3760
|
crash gap before launching another agent. An `escalation.answered` retry or
|
|
3653
3761
|
guidance authorizes one fresh session without resetting genuine phase failures;
|
|
3654
3762
|
a new classified failure parks again. There are zero automatic paid retries
|
|
3655
3763
|
after this deferral. If evidence cannot be written, ordinary recovery applies;
|
|
3656
|
-
agent output and `no-terminal` alone never classify a read failure
|
|
3764
|
+
agent output and `no-terminal` alone never classify a read failure or settle
|
|
3765
|
+
one as recovered.
|
|
3657
3766
|
|
|
3658
3767
|
Ordinary silence, provider failures and session timeouts retain the runner's
|
|
3659
3768
|
phase failure limit (`BuildRunnerOpts.maxPhaseAttempts`, default 2). This is
|
|
@@ -3803,13 +3912,15 @@ restored runtime at the next boundary; unreadable decisive facts defer a build w
|
|
|
3803
3912
|
attention before any action. Peers without negotiated rollback capability retain
|
|
3804
3913
|
existing failure behavior and report that capable runtimes are required.
|
|
3805
3914
|
|
|
3806
|
-
Repository status
|
|
3915
|
+
Repository status shows the current generation's resolved target and latest
|
|
3916
|
+
outcome, the live handoff, and the latest settled outcome from an earlier
|
|
3917
|
+
generation; a failure that later evidence replaced is marked superseded.
|
|
3807
3918
|
`dispatcher.upgrade-target-resolved` records the first successful resolution and
|
|
3808
3919
|
later changed observations, including equal-content advances. Its source mode,
|
|
3809
3920
|
base and target SHA remain visible separately from the running commit and earlier
|
|
3810
3921
|
handoff/failure facts. Repeated identical polls append no resolution facts.
|
|
3811
3922
|
|
|
3812
|
-
Repository status exposes both generations, mode, takeover, outstanding draining executions and deadline, plus
|
|
3923
|
+
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
|
|
3813
3924
|
failure is repository attention, naming the target and reason. Resolution/install
|
|
3814
3925
|
failure leaves the running generation active and suppresses the same failed input
|
|
3815
3926
|
until target or selected-store compatibility evidence changes or a fresh operator launch. Unrelated base advances do not
|