@defrex/autobuild 1.6.0 → 1.8.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 +423 -57
- package/docs/agent-runtimes.md +1 -1
- package/docs/answering-blocked-builds.md +44 -3
- package/docs/architecture.md +124 -29
- package/docs/cli.md +1 -0
- package/docs/configuration-overview.md +11 -1
- package/docs/configuration.md +334 -14
- package/docs/dispatcher.md +1 -1
- package/docs/forges.md +1 -0
- package/docs/integration-overview.md +2 -2
- package/docs/integration-tree.md +7 -4
- package/docs/merge-policy.md +78 -6
- package/docs/migration-1.0.md +4 -2
- package/docs/operating.md +3 -2
- package/docs/operator-api.md +45 -13
- package/docs/operator-surfaces.md +16 -3
- package/docs/plugin-authoring.md +45 -7
- package/docs/remote-store-protocol.md +28 -7
- package/docs/restacking.md +35 -11
- package/docs/ticket-dependencies.md +9 -4
- package/docs/ticket-sources.md +34 -6
- package/docs/tickets.md +7 -1
- package/docs/troubleshooting.md +1 -1
- package/docs/workspaces.md +1 -1
- package/package.json +3 -3
- package/packages/core/src/cli/attention.ts +2 -0
- package/packages/core/src/cli/binary-direct.ts +1 -0
- package/packages/core/src/cli/build-control.ts +65 -7
- package/packages/core/src/cli/context.ts +55 -14
- package/packages/core/src/cli/dashboard/actions.ts +13 -4
- package/packages/core/src/cli/dashboard/landing-display.ts +32 -8
- package/packages/core/src/cli/dashboard/model.ts +61 -8
- package/packages/core/src/cli/dashboard/render.ts +28 -3
- package/packages/core/src/cli/dashboard/tree.ts +9 -1
- package/packages/core/src/cli/dispatch-frontend.ts +10 -14
- package/packages/core/src/cli/dispatch-preflight.ts +1 -0
- package/packages/core/src/cli/dispatch-repository-feed.ts +145 -109
- package/packages/core/src/cli/dispatch.ts +9 -3
- package/packages/core/src/cli/help.ts +80 -11
- package/packages/core/src/cli/init-validation.ts +14 -1
- package/packages/core/src/cli/landings.ts +1 -1
- package/packages/core/src/cli/main.ts +60 -9
- package/packages/core/src/cli/publication-settlement.ts +10 -0
- package/packages/core/src/cli/repository-status.ts +37 -2
- package/packages/core/src/cli/status.ts +186 -12
- package/packages/core/src/cli/terminals.ts +197 -4
- package/packages/core/src/cli/ticket.ts +22 -4
- package/packages/core/src/cli/wait.ts +1 -0
- package/packages/core/src/cli/watch.ts +73 -0
- package/packages/core/src/config/landing.ts +12 -0
- package/packages/core/src/config/live.ts +4 -0
- package/packages/core/src/config/path-selectors.ts +68 -0
- package/packages/core/src/config/profiles.ts +96 -0
- package/packages/core/src/config/ready-assignee.ts +43 -11
- package/packages/core/src/config/roles.ts +33 -10
- package/packages/core/src/config/schema.ts +205 -81
- package/packages/core/src/events/catalog.ts +17 -3
- package/packages/core/src/events/compatibility.ts +4 -1
- package/packages/core/src/events/forge-degradation-policy.ts +16 -2
- package/packages/core/src/events/head-paths-limits.ts +25 -0
- package/packages/core/src/events/payloads.ts +323 -20
- package/packages/core/src/events/policy.ts +22 -0
- package/packages/core/src/events/repository.ts +47 -1
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +320 -130
- package/packages/core/src/kernel/build-creation.ts +29 -0
- package/packages/core/src/kernel/consent-revocation.ts +72 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +19 -8
- package/packages/core/src/kernel/engine.ts +48 -8
- package/packages/core/src/kernel/forge-health.ts +47 -0
- package/packages/core/src/kernel/guarded-forge.ts +76 -18
- package/packages/core/src/kernel/head-paths-state.ts +63 -0
- package/packages/core/src/kernel/head-paths.ts +401 -0
- package/packages/core/src/kernel/landing-policy-identity.ts +20 -0
- package/packages/core/src/kernel/landing-policy.ts +55 -2
- package/packages/core/src/kernel/landing-readiness.ts +104 -9
- package/packages/core/src/kernel/landing-state.ts +44 -4
- package/packages/core/src/kernel/leaf-restack-state.ts +50 -2
- package/packages/core/src/kernel/log-index.ts +27 -1
- package/packages/core/src/kernel/node-parent.ts +2 -0
- package/packages/core/src/kernel/node-polling.ts +13 -3
- package/packages/core/src/kernel/node-restack-state.ts +8 -1
- package/packages/core/src/kernel/node-restack-transaction.ts +45 -0
- package/packages/core/src/kernel/read-deferrals.ts +3 -1
- package/packages/core/src/kernel/read-facts.ts +37 -2
- package/packages/core/src/kernel/reducer-registry.ts +22 -1
- package/packages/core/src/kernel/reducer.ts +332 -16
- package/packages/core/src/kernel/target-observation.ts +2 -5
- package/packages/core/src/kernel/terminal-guard.ts +52 -3
- package/packages/core/src/kernel/ticket-handbacks.ts +40 -0
- package/packages/core/src/kernel/ticket-preparation.ts +15 -1
- package/packages/core/src/kernel/ticket-wait.ts +345 -0
- package/packages/core/src/kernel/verify-applicability.ts +9 -19
- package/packages/core/src/ontology.ts +1 -0
- package/packages/core/src/operator/annotations.ts +6 -0
- package/packages/core/src/operator/index.ts +3 -0
- package/packages/core/src/operator/protocol.ts +25 -2
- package/packages/core/src/operator/query.ts +1 -1
- package/packages/core/src/operator/registry.ts +122 -10
- package/packages/core/src/operator/repository-events.ts +67 -0
- package/packages/core/src/operator/sandbox-host.ts +3 -0
- package/packages/core/src/operator/tickets.ts +15 -3
- package/packages/core/src/plugin-sdk/index.ts +4 -0
- package/packages/core/src/ports/forge/create.ts +6 -0
- package/packages/core/src/ports/forge/github-transport.ts +40 -3
- package/packages/core/src/ports/forge/github.ts +12 -1
- package/packages/core/src/ports/forge/workspace-ancestry.ts +60 -0
- package/packages/core/src/ports/forge-failure.ts +31 -2
- package/packages/core/src/ports/runner/routing.ts +66 -5
- package/packages/core/src/ports/tickets/assignees.ts +54 -0
- package/packages/core/src/ports/tickets/contract.ts +164 -4
- package/packages/core/src/ports/tickets/create.ts +17 -3
- package/packages/core/src/ports/tickets/fake.ts +5 -0
- package/packages/core/src/ports/tickets/github-fake.ts +18 -2
- package/packages/core/src/ports/tickets/github.ts +247 -29
- package/packages/core/src/ports/tickets/hosted-index.ts +1 -0
- package/packages/core/src/ports/tickets/operations.ts +6 -1
- package/packages/core/src/ports/tickets/tree.ts +12 -2
- package/packages/core/src/ports/tickets/update.ts +6 -2
- package/packages/core/src/ports/types.ts +36 -5
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +9 -0
- package/packages/core/src/processes/build-child.ts +28 -7
- package/packages/core/src/processes/build-execution-state.ts +34 -2
- package/packages/core/src/processes/build-runner.ts +165 -19
- package/packages/core/src/processes/dispatcher.ts +837 -115
- package/packages/core/src/processes/execution-no-progress.ts +22 -2
- package/packages/core/src/processes/harvest-child.ts +4 -0
- package/packages/core/src/processes/harvest-runner.ts +5 -0
- package/packages/core/src/processes/phase-failure-budget.ts +1 -0
- package/packages/core/src/processes/publication-state.ts +6 -1
- package/packages/core/src/processes/repo-view.ts +2 -0
- package/packages/core/src/scenarios/harness.ts +15 -1
- package/packages/core/src/store/digest.ts +41 -2
- package/packages/core/src/store/reduced-reads.ts +4 -1
- package/packages/core/src/store/reducer-value-shapes.json +10310 -8441
- package/packages/core/src/store/remote/client.ts +49 -10
- package/packages/core/src/store/remote/index.ts +4 -0
- package/packages/core/src/store/remote/protocol.ts +18 -1
- package/packages/core/src/store/remote/released-clients.json +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.7.0.json +27366 -0
- package/packages/core/src/store/remote/released-reducer-values/1.8.0.json +29043 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +4 -0
- package/packages/core/src/store/repo-state-events.ts +3 -0
- package/packages/core/src/store/types.ts +27 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +84 -58
- package/packages/core/src/testing/index.ts +2 -0
- package/packages/core/src/testing/reduced-read-budget.ts +419 -9
- package/skills/code-review/SKILL.md +8 -0
- package/skills/finalize/SKILL.md +4 -0
- package/skills/guide/SKILL.md +241 -47
- package/skills/guide/references/integration-tree.md +7 -4
- package/skills/guide/references/merge-policy.md +78 -6
- package/skills/guide/references/migration-1.0.md +4 -2
- package/skills/guide/references/operator-api.md +45 -13
- package/skills/guide/references/plugin-authoring.md +45 -7
- package/skills/guide/references/remote-store-protocol.md +28 -7
- package/skills/guide/references/restacking.md +35 -11
- package/skills/guide/references/ticket-dependencies.md +9 -4
- package/skills/implement/SKILL.md +15 -1
- package/skills/operate/SKILL.md +133 -16
- package/skills/plan/SKILL.md +17 -2
- package/skills/plan-review/SKILL.md +8 -0
- package/skills/reconcile/SKILL.md +21 -5
- package/skills/tickets/SKILL.md +23 -6
- package/templates/hosted-service/package.json +2 -2
package/skills/guide/SKILL.md
CHANGED
|
@@ -83,20 +83,51 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
83
83
|
gate — urgent tickets first, then normal ones, each in the source's order —
|
|
84
84
|
chooses a short immutable slug from the final conforming spec, and
|
|
85
85
|
starts builds up to the top-level `capacity` bound, after slots reserved for
|
|
86
|
-
integration nodes awaiting verification or reconcile
|
|
87
|
-
waiting to re-verify or reconcile
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
never preempts a running build.
|
|
86
|
+
integration nodes awaiting verification or reconcile, for finished builds
|
|
87
|
+
waiting to re-verify or reconcile, and for builds whose ticket wait ended.
|
|
88
|
+
`capacity` counts builds running work: a build that finished its pipeline
|
|
89
|
+
holds no slot while it waits for a merge decision, though it keeps its
|
|
90
|
+
workspace until it merges or closes. Priority never preempts a running build.
|
|
91
|
+
- **Ticket waits.** A work build that cannot proceed until other tickets
|
|
92
|
+
complete parks without a slot. A phase agent ends its session with
|
|
93
|
+
`ab wait-on <ticket-id>... --reason <text>`, a terminal that needs no
|
|
94
|
+
ticket credential. In `implement` it requires a clean worktree and first
|
|
95
|
+
publishes the build's commits; a failed local push writes nothing, and a
|
|
96
|
+
lost remote publication refuses the wait. The dispatcher checks the ids on its next tick, while the
|
|
97
|
+
build keeps its slot: an unknown id, the build's own ticket or an already
|
|
98
|
+
completed ticket is refused, nothing is written to the ticket, and the
|
|
99
|
+
declaring phase re-runs with the refusal as its guidance. Accepted, the ids
|
|
100
|
+
join the build ticket's `blockedBy`, the build is blocked on an escalation
|
|
101
|
+
whose question begins `Waiting on`, and it holds no slot while keeping its
|
|
102
|
+
branch, workspace and completed phase work. The dispatcher ends the wait
|
|
103
|
+
(cause `automatic`) on its first tick after every named ticket completes;
|
|
104
|
+
while any is still open the wait stays in place. A named ticket that is
|
|
105
|
+
rejected or deleted can never complete: the dispatcher instead raises an
|
|
106
|
+
ordinary policy escalation, `wait-unresolvable`, naming the ticket and why.
|
|
107
|
+
It ends the wait (cause `unresolvable`), shows in the default attention
|
|
108
|
+
filter, and its answer resumes the declaring phase like a wait answer. An
|
|
109
|
+
operator may still end a wait early by answering its escalation (cause
|
|
110
|
+
`operator`). The build then takes a slot
|
|
111
|
+
ahead of new ticket claims. If its target moved, it first restacks onto the
|
|
112
|
+
target's current head (published work is replayed as one change, and a
|
|
113
|
+
conflict reconciles first; with nothing published, the branch fast-forwards
|
|
114
|
+
only when it has no commits the target lacks and no uncommitted tracked
|
|
115
|
+
changes, and otherwise the restack fails without discarding them), so the
|
|
116
|
+
resumed phase sees the merged blockers; an unchanged target resumes without
|
|
117
|
+
a restack. The declaring phase then re-runs at the same round or attempt. `ab build status` shows a `waiting on:` line naming the tickets,
|
|
118
|
+
and `ab builds` and both dashboards show the build as `waiting` on them.
|
|
119
|
+
Node builds cannot declare waits.
|
|
91
120
|
- **Failed preparation.** Durable preparation facts protect the claim-to-build
|
|
92
121
|
interval. Caught failures return tickets to Ready (invalid specs to Triage),
|
|
93
|
-
after
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
122
|
+
after build-ownership readback at the selected slug and, for a keyed attempt,
|
|
123
|
+
the canonical slug its creation key derives. Unresolved attempts stay withheld
|
|
124
|
+
and retry before intake, even at full capacity or with intake disabled. Unsafe
|
|
125
|
+
ownership, an unprovable creation outcome, or externally changed/missing
|
|
126
|
+
tickets end automatic recovery with a diagnostic `abandoned` resolution,
|
|
127
|
+
reported once in that tick's dispatcher diagnostics and once as default
|
|
128
|
+
`ab watch` repository attention, leaving the ticket unchanged. The resolution
|
|
129
|
+
records whether the claim was confirmed; an unconfirmed claim's provider
|
|
130
|
+
outcome is unknown. See
|
|
100
131
|
[Ticket preparation recovery](references/restacking.md#ticket-preparation-before-build-creation).
|
|
101
132
|
- **Ticket assets** — files or folders attached to a ticket (see
|
|
102
133
|
[Ticket assets](#ticket-assets)) are frozen into the build at claim and
|
|
@@ -133,7 +164,8 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
133
164
|
content-producing step commits selected files locally and finishes clean;
|
|
134
165
|
the runner pushes the exact descendant SHA and confirms forge readback before recording success.
|
|
135
166
|
- **Restacking and epilogue.** The kernel replays one net leaf change at verify
|
|
136
|
-
entry and
|
|
167
|
+
entry, when a ticket wait ends and its destination moved, and when its
|
|
168
|
+
destination moves while awaiting merge. Clean replay
|
|
137
169
|
starts no agent; conflicts enter `reconcile`, then verification. The leaf
|
|
138
170
|
terminates **merged** or **closed**. Transient leaf publication failures park
|
|
139
171
|
on a durable six-retry schedule, independently of agent phase attempts.
|
|
@@ -399,7 +431,7 @@ The distinctions that change an administrator's answer:
|
|
|
399
431
|
pending request and leave the same session retryable. A push
|
|
400
432
|
happens at the implement terminal boundary or after the runner validates a
|
|
401
433
|
successful content-producing finalize post-step. History rewrites (reconcile,
|
|
402
|
-
leaf verify-entry and waiting restacks, and node restacks on demand; see
|
|
434
|
+
leaf verify-entry, wait-resume and waiting restacks, and node restacks on demand; see
|
|
403
435
|
[restacking](references/restacking.md)) replace a branch only with an exact
|
|
404
436
|
expected-head guard after archiving every recorded Git tip under
|
|
405
437
|
`refs/autobuild/archive/<slug>/<sha>`.
|
|
@@ -441,7 +473,8 @@ evaluated as config logic.
|
|
|
441
473
|
|
|
442
474
|
**Strictness:** unknown top-level keys/tables and unknown keys inside known
|
|
443
475
|
tables are **errors**, not warnings — a typo must not silently disable a
|
|
444
|
-
verifier. The open maps are `[accounts]`, `[commands]`, `[roles]`, `[
|
|
476
|
+
verifier. The open maps are `[accounts]`, `[commands]`, `[roles]`, `[profiles]`,
|
|
477
|
+
`[profiles.<name>.roles]`, `[workspace.config]`,
|
|
445
478
|
`[workspace.config.runtimeProvisioning]`, `[verify.<step>]`, and
|
|
446
479
|
`[finalize.<step>]`. Autobuild strictly validates the
|
|
447
480
|
repository-defined command, role, and step entries. `[workspace.config]` is
|
|
@@ -493,7 +526,7 @@ under the preceding table.
|
|
|
493
526
|
|---|---|---|---|
|
|
494
527
|
| `baseBranch` | `"main"` | nonempty string | The branch builds branch from and target with their PR; what `reconcile` replays the build change onto. |
|
|
495
528
|
| `ticketScanIntervalSeconds` | `60` | positive integer seconds | Hot-reloaded ready scan cadence; tick spacing is the floor, and same-repository merge/completion/abort forces an early scan. |
|
|
496
|
-
| `capacity` | `1` | positive integer | Maximum builds running work at once for this repository; builds parked for a merge decision hold no slot. |
|
|
529
|
+
| `capacity` | `1` | positive integer | Maximum builds running work at once for this repository; builds parked for a merge decision or waiting on other tickets hold no slot. |
|
|
497
530
|
| `forge` | `"github"` | nonblank string | Selects shipped `github` or `local-git`, or a plugin-registered Forge adapter. `github` authenticates with `GITHUB_TOKEN`, then `GH_TOKEN`, then the gh CLI's stored login. |
|
|
498
531
|
| `plugins` | `[]` | array of unique nonblank module specifiers | Trusted Bun plugin modules loaded before dispatch, `ab ticket`, and scoped phase wiring. |
|
|
499
532
|
|
|
@@ -545,8 +578,18 @@ Rules are strict and blank predicates are rejected with their array index.
|
|
|
545
578
|
| `into` | No | `root`, any `node`, or an exact frozen destination node ticket id. |
|
|
546
579
|
| `from` | No | `leaf` or `node`. |
|
|
547
580
|
| `label` | No | Exact, case-sensitive source ticket label sampled at readiness. |
|
|
581
|
+
| `paths` | No | Globs; matches when at least one path the candidate head changes matches. |
|
|
582
|
+
| `within` | No | Globs; matches when every changed path matches and at least one changed. |
|
|
548
583
|
| `mode` | Yes | `auto` or `consent`. |
|
|
549
584
|
|
|
585
|
+
`paths` and `within` use the `[verify.<step>].paths` selector grammar, and
|
|
586
|
+
each candidate head is decided on its own recorded changed paths. When
|
|
587
|
+
evaluation reaches a path rule and the head's paths are not recorded, the
|
|
588
|
+
decision is deferred and `ab build status` says why; it is never treated as an
|
|
589
|
+
empty change. Put protective path rules first: a `paths` rule holding
|
|
590
|
+
sensitive files belongs ahead of a `within` rule releasing documentation. See
|
|
591
|
+
[merge policy](references/merge-policy.md#changed-paths).
|
|
592
|
+
|
|
550
593
|
Help the human choose policy around their release process. A solo team can
|
|
551
594
|
use one catch-all `mode = "auto"` rule. A team requiring a human's review
|
|
552
595
|
for every merge can use one catch-all `mode = "consent"` rule. For release
|
|
@@ -839,6 +882,8 @@ The step's configured skill name remains a deprecated alias for existing
|
|
|
839
882
|
configurations and will be removed in a future release. It applies only when
|
|
840
883
|
`[roles.<step>]` is undeclared, so the step name always wins when both are
|
|
841
884
|
present, and `ab dispatch` reports the alias with the step name to rename it to.
|
|
885
|
+
A [role profile](#profiles) the build selected can override the step's role
|
|
886
|
+
for that build.
|
|
842
887
|
Written order never reorders execution: the event records the canonical config
|
|
843
888
|
order. No front matter means all configured steps, preserving old plans and
|
|
844
889
|
logs; an explicit empty list is valid only when all steps are optional. The
|
|
@@ -1088,6 +1133,8 @@ examples, remedies and regional routing are in [billing accounts](references/acc
|
|
|
1088
1133
|
### `[roles]`
|
|
1089
1134
|
|
|
1090
1135
|
An **open map** of role name → `{ runtime?, model?, account?, args?, extensions?, sessionBudgetSeconds?, alternates? }`.
|
|
1136
|
+
These are the repository's roles for every build; a ticket label can select a
|
|
1137
|
+
[`[profiles]`](#profiles) entry that overrides some of them for that build.
|
|
1091
1138
|
The four primary axes, session budget, and ordered alternate list inherit independently. The reserved `default` role must explicitly name a
|
|
1092
1139
|
runtime, is the raw inheritance base for every other role, and is **never
|
|
1093
1140
|
dispatched as a phase**. Its absence fails eager resolution before a session,
|
|
@@ -1209,6 +1256,50 @@ or `phase.failed`. A typed terminal racing either boundary remains authoritative
|
|
|
1209
1256
|
Agent finalize post-step expiry is failure-tolerant; Harvest and direct check
|
|
1210
1257
|
commands are outside this budget.
|
|
1211
1258
|
|
|
1259
|
+
### `[profiles]`
|
|
1260
|
+
|
|
1261
|
+
An **open map** of profile name → `{ label, roles }`, for tickets that justify
|
|
1262
|
+
different role settings without changing the roles every other build reads.
|
|
1263
|
+
|
|
1264
|
+
```toml
|
|
1265
|
+
[profiles.deep]
|
|
1266
|
+
label = "deep"
|
|
1267
|
+
|
|
1268
|
+
[profiles.deep.roles.plan-review]
|
|
1269
|
+
model = "claude-opus-5-5"
|
|
1270
|
+
|
|
1271
|
+
[profiles.deep.roles.implement]
|
|
1272
|
+
args = ["--effort", "high"]
|
|
1273
|
+
```
|
|
1274
|
+
|
|
1275
|
+
- **Overlay.** A `[profiles.<name>.roles.<role>]` entry accepts the
|
|
1276
|
+
`[roles.<role>]` fields and may name any role, including agent verify and
|
|
1277
|
+
finalize step names and roles `[roles]` does not declare. Each declared
|
|
1278
|
+
field overrides; each omitted field comes from `[roles.<role>]`, then
|
|
1279
|
+
`[roles.default]`. A declared `alternates` list, including `[]`, replaces the
|
|
1280
|
+
inherited list. Key selection walks the step name, then its deprecated
|
|
1281
|
+
skill-name alias, against profile entries and `[roles]` together. An entry
|
|
1282
|
+
named `default` is refused.
|
|
1283
|
+
- **Selection is fixed at claim.** `label` matches ticket labels
|
|
1284
|
+
case-insensitively after trimming. The dispatcher records the selected
|
|
1285
|
+
profile on `build.created`; relabelling later has no effect. A node and each
|
|
1286
|
+
child select from their own ticket. A ready ticket carrying two profiles'
|
|
1287
|
+
labels is not claimed and appears as a `queue:` line in
|
|
1288
|
+
`ab repository status` until it carries at most one. A ticket can only
|
|
1289
|
+
select a profile; it never supplies a model, runtime or argument itself.
|
|
1290
|
+
- **Contents are live.** Every agent session of the build (plan, plan
|
|
1291
|
+
review, implement, code review, agent verify and finalize steps, reconcile)
|
|
1292
|
+
resolves through the profile read from the current configuration, so an
|
|
1293
|
+
edit reaches only the builds that selected it, at their next session.
|
|
1294
|
+
`session.started.profile` records `{ name, configured }`. If a reload removes
|
|
1295
|
+
the profile, those builds continue on the repository roles and
|
|
1296
|
+
`ab build status` says the profile is no longer configured.
|
|
1297
|
+
- **Validation.** Duplicate labels, a missing or blank label, and an entry
|
|
1298
|
+
whose effective runtime, model, args or account would be refused for a
|
|
1299
|
+
`[roles]` entry fail config load, `ab init --validate` and a live reload.
|
|
1300
|
+
- **Scope.** Sessions outside a build (`slug`, `upgrade`, `harvest`,
|
|
1301
|
+
`harvest-review`) never use a profile.
|
|
1302
|
+
|
|
1212
1303
|
Mixing models across roles is **intentional**, not an inconsistency to clean
|
|
1213
1304
|
up: a reviewer that differs from the implementer catches more. The removed
|
|
1214
1305
|
legacy `[agent]` table is not an alias: config loading rejects it and directs
|
|
@@ -1271,8 +1362,8 @@ own-build-read deferral and its answer resets no phase failures; reconcile no-pr
|
|
|
1271
1362
|
while `round` remains occurrence scope. Answering a runner-failure cause re-arms
|
|
1272
1363
|
only its matching phase and round. The phase-level `verify-failure-limit` cause
|
|
1273
1364
|
explicitly re-arms all rounds for its verify target, while
|
|
1274
|
-
`reconcile-no-progress`, `publication-retry-limit` and the
|
|
1275
|
-
no phase-runner failures.
|
|
1365
|
+
`reconcile-no-progress`, `publication-retry-limit`, `wait-unresolvable` and the
|
|
1366
|
+
setup-only cause reset no phase-runner failures.
|
|
1276
1367
|
The closed cause map forces every future policy condition to choose one of these
|
|
1277
1368
|
semantics instead of inheriting behavior from a missing `round`. Runner failures
|
|
1278
1369
|
while checking progress or refreshing the base therefore remain counted after a
|
|
@@ -1316,12 +1407,13 @@ state eligible.
|
|
|
1316
1407
|
| `readyLabels` | — (source-aware) | optional; array of nonempty strings | A ticket must carry **every** listed label to be dispatchable. `[]` = **no label gate**. Absent uses the source default below. |
|
|
1317
1408
|
| `url` | selected build service | HTTPS URL (loopback HTTP allowed), no userinfo/query/fragment; hosted only | Ticket service independent of builds; required for local builds. |
|
|
1318
1409
|
| `readyState` | hosted, github: `ready` | non-blank string; required for other sources | The one workflow state a ticket must sit in to be dispatchable. Linear matches exactly and case-sensitively; file matches it case-insensitively to a state directory (`ready` → `ready/`); github matches the `autobuild:<state>` label ignoring case. There is no any-state mode. |
|
|
1319
|
-
| `readyAssignee` | — | optional; sources that declare the capability: `linear` (`"me"` or an email), `github` (`"me"` or a username, managed-user `name_shortcode` logins included), declaring plugins; refused for `file`/`hosted` | Also require the ticket to be assigned to that user; unassigned tickets are never ready. `me` is the credential owner: of `LINEAR_API_KEY` for `linear`, of the GitHub token for `github`. A `github` issue with several assignees matches any one of them. |
|
|
1410
|
+
| `readyAssignee` | — | optional; sources that declare the capability: `linear` (`"me"` or an email), `github` (`"me"` or a username, managed-user `name_shortcode` logins included), declaring plugins; refused for `file`/`hosted` | Also require the ticket to be assigned to that user; unassigned tickets are never ready. With `github`, each ready scan reports ready issues that have no assignee in the ticket diagnostics; assign one to make it claimable. `me` is the credential owner: of `LINEAR_API_KEY` for `linear`, of the GitHub token for `github`. A `github` issue with several assignees matches any one of them. |
|
|
1411
|
+
| `createAssignee` | — | optional; sources that declare the `assignees` capability: `github` (`"me"` or a username), declaring plugins; refused for `file`/`hosted`/`linear` | Assign every ticket Autobuild creates (`ab ticket create`, operator `tickets.create`, harvest proposals) to that user unless the create names its own assignees. `me` is the creating credential's owner, so a harvest proposal belongs to the filing dispatcher's owner. Pairs with `readyAssignee = "me"`. |
|
|
1320
1412
|
| `teamKey` | — | required by `linear` and `hosted`, forbidden by `file` and `github`, allowed for plugins | The Linear team key (e.g. `"ENG"`), the captured prefix for new hosted ticket ids (`ENG-1`), or a plugin configuration field. Hosted numbers are project-local and continue across prefix changes; legacy ids remain aliases and readable inputs are case-insensitive. |
|
|
1321
1413
|
| `claimedState` | hosted, github: `doing` | optional nonempty string; forbidden by `file`, allowed for plugins | Workflow state `claim()` moves a ticket to when a build starts. |
|
|
1322
1414
|
| `doneState` | hosted, github: `"done"` | optional nonblank string | Project completion state and merged-ticket transition; hosted and github tickets only. A github ticket is done when its issue is closed as completed. |
|
|
1323
1415
|
| `createState` | — | optional, nonempty string | Default state for new tickets when a create does not name one. Absent = the provider's default (Linear: the team's default, e.g. Backlog; file: Triage; github: triage). |
|
|
1324
|
-
| `triageState` | — | optional, nonempty string | State the dispatcher hands tickets back to for human triage — spec-gate bounces, aborted builds, closed-unmerged PRs. Absent = Linear: Backlog; hosted, github: triage; file/plugin: Triage. Must name a state the tracker actually has — a Linear team only has "Triage" when its triage feature is enabled. |
|
|
1416
|
+
| `triageState` | — | optional, nonempty string | State the dispatcher hands tickets back to for human triage — spec-gate bounces, aborted builds (unless `ab abort --to ready`), closed-unmerged PRs. Absent = Linear: Backlog; hosted, github: triage; file/plugin: Triage. Must name a state the tracker actually has — a Linear team only has "Triage" when its triage feature is enabled. |
|
|
1325
1417
|
| `proposalState` | — | optional, nonempty string | State observation harvest files approved proposals into. Absent = the resolved `triageState`, which keeps the human grooming gate. Setting it to `readyState` waives that gate: harvested proposals dispatch without being read. Keep it distinct from `triageState` — see below. |
|
|
1326
1418
|
| `backlogState` | — | optional nonblank string; every source | State that holds deliberately deferred work: the backlog role. Recommended (`ab init` writes `"backlog"` for file, hosted and github); unset means the role does not exist. Must differ, case-insensitively, from the ready, claimed, done, triage and proposal states and from `rejectedState`. |
|
|
1327
1419
|
| `rejectedState` | — | optional nonblank string; every source | State that holds considered-and-declined work: the rejected role. Recommended (`ab init` writes `"rejected"` for file, hosted and github). On github it is an issue closed as not planned or duplicate. A ticket in it never resolves a blocker, even if the source counts it complete, and never keeps a node incomplete. Same distinctness rule. |
|
|
@@ -1354,6 +1446,10 @@ Cross-field rules, each an **error**:
|
|
|
1354
1446
|
`hosted`, or a plugin source without it). The error names the source; for a
|
|
1355
1447
|
plugin it comes at startup and `ab init --validate`, after plugins load, and
|
|
1356
1448
|
a live reload that adds it is rejected.
|
|
1449
|
+
- `createAssignee` on a source that can't store assignees (`file`, `hosted`,
|
|
1450
|
+
`linear`, or a plugin source without the `assignees` capability), the same
|
|
1451
|
+
way. `ab init --validate` also reports a `"me"` whose credential has no user
|
|
1452
|
+
and a user who can't be assigned issues in the repository.
|
|
1357
1453
|
- `source = "file"` with `teamKey` or `claimedState` set. `dir` is **optional**
|
|
1358
1454
|
here — absent means the default above, which is why the schema leaves it
|
|
1359
1455
|
optional rather than giving it a `.default()`: that is what keeps the
|
|
@@ -1737,8 +1833,9 @@ every agent session as `AB_STORE`.
|
|
|
1737
1833
|
One repository driven by several dispatchers — for example each engineer
|
|
1738
1834
|
running `ab dispatch` locally — should share one store: connect every
|
|
1739
1835
|
dispatcher to the same service with `ab connect`. Assignee gating
|
|
1740
|
-
(`[tickets].readyAssignee`
|
|
1741
|
-
|
|
1836
|
+
(`[tickets].readyAssignee`, with `createAssignee = "me"` so each person's
|
|
1837
|
+
tickets and harvest proposals are assigned to them) divides tickets between
|
|
1838
|
+
dispatchers but not store-owned state. Separate local stores each see only their own builds:
|
|
1742
1839
|
|
|
1743
1840
|
- **Nodes are owned by one store.** A child ticket can target only a node built
|
|
1744
1841
|
in its own store; elsewhere it stays queued with `target node … is being
|
|
@@ -1836,12 +1933,12 @@ repository's `[tickets]` table selects. These forms therefore work unchanged
|
|
|
1836
1933
|
with the file tracker, Linear, hosted tickets and GitHub issues, without
|
|
1837
1934
|
provider-specific API/MCP calls:
|
|
1838
1935
|
|
|
1839
|
-
- `ab ticket create <title> --body <file> [--state <state>] [--labels a,b] [--blocked-by id,id] [--issues N[:refs],...] [--priority urgent|normal] [--json]`
|
|
1936
|
+
- `ab ticket create <title> --body <file> [--state <state>] [--labels a,b] [--blocked-by id,id] [--issues N[:refs],...] [--priority urgent|normal] [--assignees a,b] [--json]`
|
|
1840
1937
|
files a ticket. Without `--state`, the source uses `[tickets].createState` or
|
|
1841
1938
|
its own default. A named state is passed through unchanged and the selected
|
|
1842
1939
|
source validates it before creating anything. Blocker ids belong to the same
|
|
1843
1940
|
source and are also checked before the single create call.
|
|
1844
|
-
- `ab ticket update <id> [--title <title>] [--body <file>] [--labels a,b] [--issues N[:refs],...] [--priority urgent|normal] [--json]`
|
|
1941
|
+
- `ab ticket update <id> [--title <title>] [--body <file>] [--labels a,b] [--issues N[:refs],...] [--priority urgent|normal] [--assignees a,b] [--json]`
|
|
1845
1942
|
partially replaces editable fields. At least one editable flag is required;
|
|
1846
1943
|
`--json` alone is not an update.
|
|
1847
1944
|
- `ab ticket block <id> <blocker-id[,blocker-id...]> [--json]` adds one or more
|
|
@@ -1914,6 +2011,15 @@ alone); plugin sources without the capability read every ticket as normal,
|
|
|
1914
2011
|
refuse `urgent` naming themselves and writing nothing, and accept `normal`
|
|
1915
2012
|
as a no-op. JSON
|
|
1916
2013
|
ticket output always includes `priority`, and list output marks urgent tickets.
|
|
2014
|
+
`--assignees a,b` names usernames, or `me` for the owner of the source's
|
|
2015
|
+
credential, on a source that stores assignees (GitHub). On create it replaces
|
|
2016
|
+
the `[tickets].createAssignee` default and `--assignees ''` files the ticket
|
|
2017
|
+
unassigned; on update it replaces the whole set, `''` clears it, and omitting
|
|
2018
|
+
it leaves them alone. A user who can't be assigned, or a write the provider
|
|
2019
|
+
accepts without the assignees, fails naming the cause. `ab ticket show` prints
|
|
2020
|
+
assignees and JSON reads carry an `assignees` array; sources that can't store
|
|
2021
|
+
them (file, hosted, Linear) carry no field and refuse the option, naming
|
|
2022
|
+
themselves and writing nothing.
|
|
1917
2023
|
Supplied title/body values must be
|
|
1918
2024
|
nonblank. State is intentionally not an update field — `transition()` remains its sole owner —
|
|
1919
2025
|
and every validation or unknown-ticket error occurs before
|
|
@@ -2111,8 +2217,12 @@ restack state and conflicting files remain in detail, along with every child's
|
|
|
2111
2217
|
ticket id, title and live phase (or queued/merged), open-first counts, verification
|
|
2112
2218
|
steps and current outcomes, repair instructions, and the merge rule. Cancelled
|
|
2113
2219
|
children are omitted; historical missing titles or filenames are explicit.
|
|
2114
|
-
A work build that finished its pipeline and must re-verify or reconcile
|
|
2115
|
-
the same slot-wait alert on its row,
|
|
2220
|
+
A work build that finished its pipeline and must re-verify or reconcile, or
|
|
2221
|
+
whose ticket wait ended (`resume`), shows the same slot-wait alert on its row,
|
|
2222
|
+
and `ab builds` appends it to the phase. A build whose only open escalation is
|
|
2223
|
+
its open ticket wait shows `WAITING` and a yellow (amber on the web)
|
|
2224
|
+
`waiting on <ids> — <reason>` line, distinct from a red `BLOCKED` question;
|
|
2225
|
+
`r` / RESUME answers the wait and ends it early.
|
|
2116
2226
|
|
|
2117
2227
|
|
|
2118
2228
|
On a TTY, execution-mode `ab dispatch` renders one fixed interactive frame that fills the
|
|
@@ -2140,11 +2250,13 @@ while it runs. It keeps its last good value through failed reads and through
|
|
|
2140
2250
|
headless ticks that publish no count, and shows `–` until its first read
|
|
2141
2251
|
succeeds or when the source has no state counts (Linear). `queue` is the
|
|
2142
2252
|
ready-ticket queue depth, and `active` is occupied capacity (every unfinished
|
|
2143
|
-
build, plus finished builds running work again)
|
|
2253
|
+
build except one waiting on tickets, plus finished builds running work again)
|
|
2254
|
+
against root `capacity`. Observation pressure is not a header counter: the
|
|
2144
2255
|
Harvest row shows a run's observations, and `ab harvest status` reports
|
|
2145
2256
|
Harvest state.
|
|
2146
|
-
The execution-mode frontend checkpoints
|
|
2147
|
-
lease holder's start;
|
|
2257
|
+
The execution-mode frontend checkpoints only the latest run start and the sampled
|
|
2258
|
+
lease holder's start; dashboard facts render from the canonical reduced
|
|
2259
|
+
repository value. Identity history stays partial and missing holders use a
|
|
2148
2260
|
bounded per-run lookup. Without a usable checkpoint, startup and recovery seed
|
|
2149
2261
|
from the canonical reduced repository value, never the journal. Unchanged written/refused checkpoints are not uploaded
|
|
2150
2262
|
again. Dirty saves run at most once per 30 seconds; transient failures retry
|
|
@@ -2224,7 +2336,8 @@ while remote or unsupported sessions rerun fresh with a recorded fallback reason
|
|
|
2224
2336
|
Without a live agent, acknowledgement still waits for a safe boundary. During
|
|
2225
2337
|
that window `p` appends
|
|
2226
2338
|
the opposing resume request, cancels the stale pause, and projects the build
|
|
2227
|
-
back to `RUNNING`.
|
|
2339
|
+
back to `RUNNING`. The cancelling resume holds back nothing, including merge
|
|
2340
|
+
readiness. An acknowledged paused build offers only `r resume` and reads
|
|
2228
2341
|
`RESUMING` until the kernel acknowledges that request; there is no gesture to
|
|
2229
2342
|
cancel a pending resume. Blocked takes visual precedence, including when the
|
|
2230
2343
|
build is also operator-paused, and `r` opens the existing feedback field. Keys
|
|
@@ -2273,7 +2386,10 @@ dispatcher records an immutable decision when each candidate becomes ready.
|
|
|
2273
2386
|
No rules means leaf auto / node consent. There is no claim-time default
|
|
2274
2387
|
seeding or fan-out over existing builds. `ab merge <slug>` supplies consent to
|
|
2275
2388
|
that merge and frozen destination; it survives replacement heads until hold
|
|
2276
|
-
or completion
|
|
2389
|
+
or completion, except that consent given under a rule with `paths` or `within`
|
|
2390
|
+
predicates is revoked (`landing.consent-revoked`) when a reconcile's own edits
|
|
2391
|
+
touch a file those predicates match. `--head <sha>` refuses with `head-mismatch`, recording nothing,
|
|
2392
|
+
unless `<sha>` is the current candidate head. `ab hold <slug>` suppresses policy and withdraws consent.
|
|
2277
2393
|
The old `--auto-merge` / `--no-auto-merge` flags and `ab auto-merge` command
|
|
2278
2394
|
are retired and return actionable errors; use merge rules and hold/merge.
|
|
2279
2395
|
|
|
@@ -2331,7 +2447,7 @@ to the build's event log and apply the same write-time checks.
|
|
|
2331
2447
|
| Resume | `ab resume <slug> [--store <ref>]` | Select a `PAUSED` build and press `r`. | `build.resume-requested` |
|
|
2332
2448
|
| Pause all | `ab pause --all [--store <ref>] [--json]` | Select the global row and press `p`. | `dispatcher.pause-set` (first), `dispatcher.intake-set`, then one `build.pause-requested` per `RUNNING` build |
|
|
2333
2449
|
| Resume all | `ab resume --all [--store <ref>] [--json]` | Select the global row and press `r`. | `dispatcher.pause-set` (first), `dispatcher.intake-set`, then one `build.resume-requested` per `PAUSED` build |
|
|
2334
|
-
| Consent to merge | `ab merge <slug> [--store <ref>]` | Select a ready build and press `l`. | `build.land-requested`, then `landing.command-acknowledged` |
|
|
2450
|
+
| Consent to merge | `ab merge <slug> [--head <sha>] [--store <ref>]` | Select a ready build and press `l`. | `build.land-requested`, then `landing.command-acknowledged` |
|
|
2335
2451
|
| Restack node | `ab restack <node> [--store <ref>]` | CLI/tool request; normal safety gates apply. | `node.restack-requested`, then `node.restack-satisfied` |
|
|
2336
2452
|
| Hold merge | `ab hold <slug> [--store <ref>]` | Select a build and press `o`, including before readiness. | `build.hold-requested`, then `landing.command-acknowledged` after native cancellation |
|
|
2337
2453
|
| Answer blockers with guidance | `ab answer <slug> <text> [--store <ref>]` | Select a blocked build, press `r`, enter text, then Enter. | One `escalation.answered` with `resolution: guidance` per applicable blocker. |
|
|
@@ -2339,7 +2455,7 @@ to the build's event log and apply the same write-time checks.
|
|
|
2339
2455
|
| Dismiss cited finding chains | `ab answer <slug> --dismiss [--store <ref>]` | CLI only; build detail names the command. | One `escalation.answered` with `resolution: dismiss-finding` per blocker that cites a real review finding. |
|
|
2340
2456
|
| Revise spec from a file | `ab answer <slug> --revise-spec <file> [--store <ref>]` | CLI only; build detail names the command. | For leaves, human `escalation.answered` then kernel `spec.revised`; eligible nodes publish `spec.revised` with operator provenance. |
|
|
2341
2457
|
| Re-import revised ticket spec | `ab answer <slug> --revise-spec-from-ticket [--store <ref>]` | CLI only; build detail names the command. | The same leaf answer or direct node `spec.revised` protocol. |
|
|
2342
|
-
| Abort | `ab abort <slug> [--store <ref>]` | Select any non-terminal build and press `a`, then Enter to confirm (Escape cancels). | `build.abort-requested` |
|
|
2458
|
+
| Abort | `ab abort <slug> [--to triage\|ready] [--reason <text>] [--store <ref>]` | Select any non-terminal build and press `a`, then Enter to confirm (Escape cancels); the dashboard aborts to triage. | `build.abort-requested`, then repository `ticket.handed-back` after cleanup moves the ticket |
|
|
2343
2459
|
|
|
2344
2460
|
The two `--all` forms and the global-row keys are one walk behind two surfaces.
|
|
2345
2461
|
The repository pause is written first and intake second, both absolutely —
|
|
@@ -2358,9 +2474,10 @@ to park.
|
|
|
2358
2474
|
|
|
2359
2475
|
Discard is dashboard-only and queued-only. After any launching execution has
|
|
2360
2476
|
released its process-tree lease, the dispatcher releases a partial workspace,
|
|
2361
|
-
returns the ticket to `[tickets].readyState`,
|
|
2362
|
-
`
|
|
2363
|
-
abort: abort
|
|
2477
|
+
returns the ticket to `[tickets].readyState`, reports one `ticket.handed-back`
|
|
2478
|
+
(cause `discard`), and completes the old build as `discarded`; a later tick may
|
|
2479
|
+
claim the ticket into a fresh build. This is not abort: abort hands the ticket
|
|
2480
|
+
back to Triage unless it asks for ready.
|
|
2364
2481
|
|
|
2365
2482
|
Abort accepts queued, running, paused, or blocked builds. A live turn receives a
|
|
2366
2483
|
cancellation signal and the runner acknowledges the request. Its execution
|
|
@@ -2371,9 +2488,25 @@ for runner suspension without a wall-clock force-exit deadline.
|
|
|
2371
2488
|
The dispatcher defers cleanup while that lease is live, then performs the
|
|
2372
2489
|
checkpointed, retry-safe cleanup: close an open unmerged PR, release the workspace,
|
|
2373
2490
|
delete the exact remote and local build branches, preserve existing ticket labels
|
|
2374
|
-
while adding `autobuild:aborted`,
|
|
2375
|
-
|
|
2376
|
-
|
|
2491
|
+
while adding `autobuild:aborted`, hand the ticket back, and post an abort notice
|
|
2492
|
+
before completing as `abandoned`. The ticket moves once, straight to its
|
|
2493
|
+
destination: configured Triage by default, or `[tickets].readyState` with
|
|
2494
|
+
`ab abort --to ready` (or the registry's `to: "ready"`), with its `blockedBy`
|
|
2495
|
+
list unchanged, so a build waiting on other work gives up its slot and
|
|
2496
|
+
redispatches once its blockers merge. A ticket that no longer conforms to the
|
|
2497
|
+
spec standard falls back to Triage; the notice says so and lists what is
|
|
2498
|
+
missing. `--reason` is recorded on the request and quoted in the notice. A
|
|
2499
|
+
repeated identical abort is a no-op; a different destination or reason is
|
|
2500
|
+
refused. After the move is checkpointed the dispatcher appends one repository
|
|
2501
|
+
`ticket.handed-back` event carrying the ticket, build, `cause: abort`,
|
|
2502
|
+
destination `state` and `role`, `requested` when it fell back, `missing`, and
|
|
2503
|
+
`reason`; no later dispatcher write for that hand-back touches the ticket, so
|
|
2504
|
+
an operator may move it as soon as the event arrives. Act on that event, not on
|
|
2505
|
+
`build.aborted` or the build leaving `ab builds`: cleanup is asynchronous. Every
|
|
2506
|
+
other non-completion hand-back reports the same event once after its move —
|
|
2507
|
+
spec-gate bounces (`spec-bounce`, with `missing`), preparation recovery
|
|
2508
|
+
returning a confirmed claim to Ready (`preparation-failed`), closed-unmerged
|
|
2509
|
+
PRs (`pr-closed`) and discards (`discard`). Missing
|
|
2377
2510
|
Forge cleanup capabilities or provider outages leave cleanup pending with an
|
|
2378
2511
|
actionable diagnostic for the next tick.
|
|
2379
2512
|
|
|
@@ -2419,6 +2552,16 @@ newest is eligible: it durably supersedes older answers, which do not resurface
|
|
|
2419
2552
|
after the winner is delivered. Destinations remain independent, and a new
|
|
2420
2553
|
answer recorded after an earlier delivery is eligible for the next appropriate
|
|
2421
2554
|
run. `finalize` and `reconcile` receive their own answers on their next attempt.
|
|
2555
|
+
An answer to a ticket wait's escalation, with any resolution, ends the wait
|
|
2556
|
+
early; the dispatcher ends it on its own once every waited ticket completes,
|
|
2557
|
+
or raises a `wait-unresolvable` escalation, whose answer routes the same way,
|
|
2558
|
+
when one is rejected or deleted. Either way the phase that declared it resumes at the same round or attempt once it
|
|
2559
|
+
holds a slot, on a checkout restacked onto the target's current head when the
|
|
2560
|
+
target moved; a reviewer's wait resumes that review round and never feeds the
|
|
2561
|
+
next producer. Its `$AB_CONTEXT_DIR/guidance.json` carries a `wait` block
|
|
2562
|
+
(`id`, `tickets`, `reason`, `outcome` `ended` or `refused`, `cause`,
|
|
2563
|
+
`message`), even after a bare retry or a `wait.ended`, which leave a one-line
|
|
2564
|
+
summary as the answer. A refused wait writes the same file with the refusal.
|
|
2422
2565
|
In each of these routed cases, `ab context`
|
|
2423
2566
|
writes the answer to `$AB_CONTEXT_DIR/guidance.json` in the build's workspace, and the
|
|
2424
2567
|
receiving skill treats it as authoritative feedback for that round or attempt.
|
|
@@ -2426,8 +2569,8 @@ A producer round has one immediate feedback kind: on a guidance round,
|
|
|
2426
2569
|
`$AB_CONTEXT_DIR/guidance.json` takes precedence over findings or the legacy
|
|
2427
2570
|
single-report feedback. A referenced `verifyStageFailure` receipt remains
|
|
2428
2571
|
available alongside guidance, with every failed report and cancelled/not-run
|
|
2429
|
-
member; it is not erased by feedback precedence.
|
|
2430
|
-
`$AB_CONTEXT_DIR/guidance.json` and displaces nothing: the resumed round still gets whatever
|
|
2572
|
+
member; it is not erased by feedback precedence. Except for a ticket wait, a
|
|
2573
|
+
bare retry writes no `$AB_CONTEXT_DIR/guidance.json` and displaces nothing: the resumed round still gets whatever
|
|
2431
2574
|
the loop was already routing, such as the last review round's findings.
|
|
2432
2575
|
|
|
2433
2576
|
`--dismiss` is per escalation. It answers only blockers that cite at least one
|
|
@@ -2535,8 +2678,10 @@ repository-local precedence. The command uses the same reducer as the
|
|
|
2535
2678
|
dispatcher and dashboard, writes no state, claims no ticket, attaches no runner,
|
|
2536
2679
|
and starts no dispatcher work. Dispatcher identity includes the held run’s recorded
|
|
2537
2680
|
runtime; historical starts without metadata display `runtime unrecorded`.
|
|
2538
|
-
It also lists the latest ticket scan's dependency diagnostics
|
|
2539
|
-
`dependencyDiagnostics` in JSON),
|
|
2681
|
+
It also lists the latest ticket scan's ticket and dependency diagnostics
|
|
2682
|
+
(`queue:` lines, `ticketDiagnostics` and `dependencyDiagnostics` in JSON),
|
|
2683
|
+
including ready tickets whose labels select more than one role profile and
|
|
2684
|
+
tickets held because their target
|
|
2540
2685
|
node is being built by another store, and dispatcher startup warnings
|
|
2541
2686
|
(`warningLines`).
|
|
2542
2687
|
|
|
@@ -2565,7 +2710,9 @@ cycle, PR lifecycle, latest event, durable progress age, heartbeat, and lease.
|
|
|
2565
2710
|
Every runner attach appears chronologically with its recorded runtime (version,
|
|
2566
2711
|
commit, source kind/location), or `runtime unrecorded` for historical attaches;
|
|
2567
2712
|
JSON exposes nullable runtime in `runnerAttaches`. Phases belong to the preceding
|
|
2568
|
-
attach boundary.
|
|
2713
|
+
attach boundary. A build created with a [role profile](#profiles) shows a
|
|
2714
|
+
`profile:` line (`profile` in JSON), marked no longer configured when a reload
|
|
2715
|
+
removed it; a build without one shows neither.
|
|
2569
2716
|
For an open PR, the current work-owner decision reads the build-owned
|
|
2570
2717
|
configuration from the store's deposited `build-runner-effective-config`
|
|
2571
2718
|
artifact — deposited at every runner launch and refreshed on effective-config
|
|
@@ -2573,6 +2720,13 @@ changes — falling back to the local workspace's `autobuild.toml` only when no
|
|
|
2573
2720
|
deposit exists; the decision is reported unavailable only when neither source
|
|
2574
2721
|
can supply a configuration, and that message names the missing artifact kind
|
|
2575
2722
|
rather than a workspace path.
|
|
2723
|
+
An open-PR leaf parked on the PR with no landing decision for its current
|
|
2724
|
+
candidate shows a `landing: undecided` line (`landingUndecided` in JSON) naming
|
|
2725
|
+
why the dispatcher has not decided: an open session, a pause, an open
|
|
2726
|
+
escalation, a pending pause or abort request, a compatibility deferral, a failed
|
|
2727
|
+
dispatcher janitor attempt with its message and next attempt time, or a build
|
|
2728
|
+
pipeline configuration the dispatcher cannot read. Otherwise it says no refusal
|
|
2729
|
+
is recorded and the decision is due at the next poll.
|
|
2576
2730
|
Observations are shown without `--events`; for `forge = "local-git"`, this is where a deferred merge
|
|
2577
2731
|
names uncommitted work that collides with the squash. Autobuild leaves that work
|
|
2578
2732
|
untouched and later dispatcher ticks retry automatically after the operator
|
|
@@ -2664,6 +2818,10 @@ The default watch reports actionable conditions only:
|
|
|
2664
2818
|
is required. A read deferral asks for CLI/store repair before retry or guidance.
|
|
2665
2819
|
A `build.janitor-escalated` escalation needs no answer to recover; a bare
|
|
2666
2820
|
retry answer only brings the next attempt forward.
|
|
2821
|
+
- Build `landing.consent-revoked`: a reconcile's own edits touched files
|
|
2822
|
+
protected by the `paths` or `within` rule the merge consent was given under.
|
|
2823
|
+
It names the matched files and the previous and new heads; the build returns
|
|
2824
|
+
to the consent queue and needs fresh consent for its new head.
|
|
2667
2825
|
- Build `build.merge-decision`: a finalized open PR
|
|
2668
2826
|
with a recorded consent decision awaiting consent, an explicit hold, or a
|
|
2669
2827
|
current actionable merge-gate deferral. Policy decisions not yet recorded and
|
|
@@ -2671,7 +2829,11 @@ The default watch reports actionable conditions only:
|
|
|
2671
2829
|
- Repository `harvest.escalated`, `harvest.recovery-exhausted`,
|
|
2672
2830
|
`dispatcher.config-rejected`, `dispatcher.config-reloaded` with nonempty
|
|
2673
2831
|
`restartRequired`, `dispatcher.upgrade-failed`, `dispatcher.runtime-rolled-back`,
|
|
2674
|
-
`dispatcher.kernel-git-unavailable`,
|
|
2832
|
+
`dispatcher.kernel-git-unavailable`, `forge.credential-limited`, abnormal
|
|
2833
|
+
`dispatcher.run-stopped`, and `dispatcher.lost`. A `forge.credential-limited`
|
|
2834
|
+
line names the process whose GitHub request was rate-limited outside the
|
|
2835
|
+
dispatcher's credential (unauthenticated, with why, or on that process's own
|
|
2836
|
+
credential) and its reset; dispatcher forge work continues.
|
|
2675
2837
|
- Repository `ticket-preparation.resolved` with outcome `abandoned`: automatic
|
|
2676
2838
|
preparation recovery stopped and left the ticket unchanged. The line names the
|
|
2677
2839
|
ticket, attempt and recorded reason; the payload's `claimed` says whether the
|
|
@@ -2679,6 +2841,13 @@ The default watch reports actionable conditions only:
|
|
|
2679
2841
|
events written before `claimed` existed report the certainty as not recorded.
|
|
2680
2842
|
Each abandonment reports once as it lands; a fresh watch does not replay
|
|
2681
2843
|
historical ones, and nothing clears or acknowledges it.
|
|
2844
|
+
- Repository `ticket.handed-back`: the dispatcher returned a claimed or ready
|
|
2845
|
+
ticket other than as completion, and the move is committed. `cause` is
|
|
2846
|
+
`abort`, `spec-bounce`, `preparation-failed`, `pr-closed` or `discard`; the
|
|
2847
|
+
payload carries the ticket, the build slug (or the preparation attempt), the
|
|
2848
|
+
destination `state` and `role`, `requested` when an abort to ready fell back,
|
|
2849
|
+
the spec-standard parts `missing`, and the operator's `reason`. Each hand-back
|
|
2850
|
+
emits it once; moving the ticket on receipt is never overridden.
|
|
2682
2851
|
- `dispatcher.ticket-source-persistent`: degradation past its advertised
|
|
2683
2852
|
reset time, once a tick started at or after reset has completed or failed
|
|
2684
2853
|
with the episode still open; crossing reset alone is silent. Without a reset,
|
|
@@ -2913,6 +3082,11 @@ and acknowledge the lost historical gap. Never fall back to cursor zero.
|
|
|
2913
3082
|
Checkpoint integrity errors are terminal; retired seed generations require an
|
|
2914
3083
|
upgrade/restart and fresh attachment. Explicit MCP `builds.events` history is
|
|
2915
3084
|
paged at 256 events with `cursor` and `hasMore`; follow every continuation.
|
|
3085
|
+
MCP `repository.events` is a connected agent's repository attention watch: it
|
|
3086
|
+
reads at most 256 journal positions after its cursor, with an optional wait of
|
|
3087
|
+
at most 30 seconds, and by default returns exactly the repository records this
|
|
3088
|
+
default watch reports. Its cursor advances past filtered events; omit it once
|
|
3089
|
+
for a baseline, and treat `cursor-too-old` as above.
|
|
2916
3090
|
|
|
2917
3091
|
**`ab harvest status [--events N] [--json] [--store <ref>]`** projects the
|
|
2918
3092
|
**`ab harvest status [--events N] [--json] [--store <ref>]`** projects the
|
|
@@ -3111,7 +3285,7 @@ not consume `maxPhaseAttempts`. A seventh transient failure records
|
|
|
3111
3285
|
error and six retries. Answering that escalation opens a fresh publication episode
|
|
3112
3286
|
for the same retained intent without resetting agent phase failures. Pending
|
|
3113
3287
|
publication keeps its workspace through backoff and unresolved exhaustion.
|
|
3114
|
-
|
|
3288
|
+
Dispatcher-classified rate limits retain repository cooldown and consume no publication
|
|
3115
3289
|
retry allowance. Rejected pushes, lease conflicts, dirty trees and unclassified
|
|
3116
3290
|
errors retain their existing behavior.
|
|
3117
3291
|
|
|
@@ -3140,7 +3314,8 @@ one durable `dispatcher.kernel-git-unavailable` repository condition, node work
|
|
|
3140
3314
|
waits, and `dispatcher.kernel-git-recovered` closes the condition once a clone
|
|
3141
3315
|
succeeds.
|
|
3142
3316
|
|
|
3143
|
-
A
|
|
3317
|
+
A rate limit the dispatcher classifies on its own authenticated request
|
|
3318
|
+
records repository degradation with `resetAt`.
|
|
3144
3319
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
3145
3320
|
request; a successful probe records automatic recovery. An authorized operator
|
|
3146
3321
|
may explicitly override erroneous recorded state with
|
|
@@ -3151,6 +3326,25 @@ success. A subsequent actual limit records a fresh cooldown. Hosted admission
|
|
|
3151
3326
|
requires a schema-valid finite ISO `resetAt` no later than server time plus
|
|
3152
3327
|
24 hours, inclusive; past deadlines remain valid. Rejection never clamps or
|
|
3153
3328
|
invents a provider reset, and historical events remain readable.
|
|
3329
|
+
|
|
3330
|
+
Only the dispatcher's own forge pauses the repository. A limit on a request
|
|
3331
|
+
that carried no credential, or one seen by a build runner or phase session,
|
|
3332
|
+
says nothing about the dispatcher's credential: that process waits out its own
|
|
3333
|
+
reset locally (a dispatcher defers that work instead), and records one advisory
|
|
3334
|
+
`forge.credential-limited` fact per episode naming the process, whether the
|
|
3335
|
+
request was `unauthenticated` (with why) or used the process's own credential,
|
|
3336
|
+
and the reset. It is `ab watch` attention and appears as
|
|
3337
|
+
`forgeCredentialLimits` in `ab repository status` until its reset;
|
|
3338
|
+
`forge-clear` does not apply. Remote guests receive no forge credential: their
|
|
3339
|
+
GitHub API requests fail with a typed error naming `GITHUB_TOKEN or GH_TOKEN`
|
|
3340
|
+
instead of going out anonymously, and they prove ancestry through their
|
|
3341
|
+
workspace's Git. An unauthenticated limit therefore points at a process missing
|
|
3342
|
+
`GITHUB_TOKEN`/`GH_TOKEN` or a `gh` login, or at guest-side forge use that must
|
|
3343
|
+
run kernel-side. Runners and sessions still wait out a dispatcher-recorded
|
|
3344
|
+
cooldown, but a limit they hit on a shared token no longer pauses the
|
|
3345
|
+
dispatcher in advance; the dispatcher records it on its own next limited
|
|
3346
|
+
request.
|
|
3347
|
+
|
|
3154
3348
|
Native merge application failures keep candidate-specific retry eligibility,
|
|
3155
3349
|
including automatic decisions without a human command. Retries recheck consent,
|
|
3156
3350
|
holds, verification and the exact candidate. Uncertain enables remain pending
|
|
@@ -38,8 +38,9 @@ still need the presence evidence described above and in
|
|
|
38
38
|
|
|
39
39
|
Read the consuming repository's `autobuild.toml` and evaluate its effective
|
|
40
40
|
[merge policy](merge-policy.md) for the actual ticket kinds, destinations and
|
|
41
|
-
labels. Ordered `[[merge]]` rules use the first match; `from`, `into
|
|
42
|
-
predicates are ANDed, with omitted predicates acting as
|
|
41
|
+
labels. Ordered `[[merge]]` rules use the first match; `from`, `into`, `label`,
|
|
42
|
+
`paths` and `within` predicates are ANDed, with omitted predicates acting as
|
|
43
|
+
wildcards. `paths` and `within` match the paths the candidate head changes. Without a
|
|
43
44
|
match, leaves default to auto and nodes to consent. Explain the resulting merge
|
|
44
45
|
and consent flow to the human in plain terms. Ask when grooming does not make the
|
|
45
46
|
destination choice clear. This decision is separate from workflow-state placement
|
|
@@ -105,7 +106,8 @@ idle node polling, so a slot freed in any tick goes to the node, not to a new
|
|
|
105
106
|
claim. Its candidate occupancy excludes itself and capacity-bearing blocked or
|
|
106
107
|
paused descendants, following accepted source-qualified build target ancestry.
|
|
107
108
|
Running descendants and unrelated builds still count; ordinary blocked and
|
|
108
|
-
paused work retains its slot for every other admission
|
|
109
|
+
paused work retains its slot for every other admission, except a work build
|
|
110
|
+
parked by a ticket wait, which holds none. Provisioning reserves
|
|
109
111
|
node occupancy before the runner starts. This exception never raises the budget
|
|
110
112
|
for new claims. Status and both dashboards report actual occupancy, configured
|
|
111
113
|
capacity, effective display capacity and the nodes using descendant-held slots.
|
|
@@ -178,7 +180,8 @@ own issue; landed child commits keep their own messages.
|
|
|
178
180
|
Human forge merges are an explicit escape hatch, including while incomplete,
|
|
179
181
|
paused or unverified. The janitor records human provenance and whether the actual
|
|
180
182
|
merged head was verified, then completes the ticket. Closing without merge or
|
|
181
|
-
aborting closes admission and returns the ticket to triage
|
|
183
|
+
aborting closes admission and returns the ticket to triage (or ready with
|
|
184
|
+
`ab abort --to ready`); already claimed
|
|
182
185
|
children retain their frozen destination.
|
|
183
186
|
|
|
184
187
|
### Node verification context
|