@defrex/autobuild 1.11.1 → 1.12.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 +177 -54
- package/docs/answering-blocked-builds.md +10 -2
- package/docs/architecture.md +66 -6
- package/docs/assets/headline-wide.png +0 -0
- package/docs/configuration.md +13 -11
- package/docs/dispatcher.md +1 -1
- package/docs/integration-tree.md +28 -16
- package/docs/operator-api.md +4 -4
- package/docs/operator-surfaces.md +35 -0
- package/docs/optimization-nodes.md +3 -2
- package/docs/tickets.md +1 -1
- package/docs/troubleshooting.md +1 -1
- package/package.json +3 -3
- package/packages/core/src/cli/ambient-errors.ts +17 -0
- package/packages/core/src/cli/bounded-io.ts +174 -0
- package/packages/core/src/cli/dashboard/model.ts +81 -23
- package/packages/core/src/cli/dashboard/poll.ts +20 -31
- package/packages/core/src/cli/dashboard/render.ts +14 -37
- package/packages/core/src/cli/dashboard/row-text.ts +24 -7
- package/packages/core/src/cli/dashboard/tone-ansi.ts +39 -0
- package/packages/core/src/cli/dashboard/vocabulary.ts +161 -20
- package/packages/core/src/cli/dispatch-handoff.ts +41 -10
- package/packages/core/src/cli/dispatch-launch-contract.ts +5 -0
- package/packages/core/src/cli/dispatch-launcher-cadence.ts +80 -0
- package/packages/core/src/cli/dispatch-launcher.ts +9 -10
- package/packages/core/src/cli/dispatch-preflight.ts +12 -3
- package/packages/core/src/cli/dispatch-release-observer.ts +53 -0
- package/packages/core/src/cli/dispatch-runtime-cache.ts +204 -82
- package/packages/core/src/cli/dispatch-runtime-dependencies.ts +250 -43
- package/packages/core/src/cli/dispatch-upgrade-install.ts +36 -16
- package/packages/core/src/cli/dispatch-upgrade-source.ts +8 -2
- package/packages/core/src/cli/dispatch-yield-observer.ts +82 -0
- package/packages/core/src/cli/dispatch.ts +68 -5
- package/packages/core/src/cli/env.ts +2 -15
- package/packages/core/src/cli/help.ts +5 -4
- package/packages/core/src/cli/main.ts +4 -2
- package/packages/core/src/cli/production-store.ts +102 -0
- package/packages/core/src/cli/repo-state.ts +2 -3
- package/packages/core/src/cli/repository-status.ts +28 -22
- package/packages/core/src/cli/sessionless-store.ts +26 -0
- package/packages/core/src/cli/status.ts +169 -40
- package/packages/core/src/cli/store-opening.ts +15 -58
- package/packages/core/src/cli/store-ref.ts +6 -1
- package/packages/core/src/config/schema.ts +1 -1
- package/packages/core/src/distribution-packaging.ts +156 -18
- package/packages/core/src/events/catalog-identity.ts +28 -0
- package/packages/core/src/events/catalog.ts +3 -9
- package/packages/core/src/events/compatibility.ts +2 -30
- package/packages/core/src/events/payloads.ts +11 -0
- package/packages/core/src/events/policy.ts +3 -0
- package/packages/core/src/events/repository.ts +1 -1
- package/packages/core/src/events/sessions.ts +1 -1
- package/packages/core/src/events/validation-error.ts +12 -0
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +9 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/3064e337cc75f8d6.json +310 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a1e90a969d32a367.json +307 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/da3bc91c49211eab.json +310 -0
- package/packages/core/src/kernel/auto-merge-default.ts +2 -1
- package/packages/core/src/kernel/capacity-build.ts +21 -0
- package/packages/core/src/kernel/discard-in-flight.ts +13 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +354 -147
- package/packages/core/src/kernel/engine.ts +2 -8
- package/packages/core/src/kernel/measurement.ts +24 -0
- package/packages/core/src/kernel/read-facts.ts +8 -370
- package/packages/core/src/kernel/reducer-registry.ts +40 -125
- package/packages/core/src/kernel/reducer-revisions.ts +3 -0
- package/packages/core/src/kernel/reducer-value-entry.ts +98 -0
- package/packages/core/src/kernel/reducer-value-index.ts +75 -0
- package/packages/core/src/kernel/reducer.ts +57 -9
- package/packages/core/src/kernel/reopen-state.ts +10 -0
- package/packages/core/src/kernel/repository-read-facts.ts +375 -0
- package/packages/core/src/kernel/verify-stage-state.ts +145 -3
- package/packages/core/src/operator/presentation.ts +13 -0
- package/packages/core/src/operator/query.ts +40 -39
- package/packages/core/src/operator/registry.ts +3 -3
- package/packages/core/src/ports/workspace/fake.ts +15 -3
- package/packages/core/src/processes/dispatcher.ts +232 -75
- package/packages/core/src/processes/execution-no-progress.ts +1 -0
- package/packages/core/src/store/local/capabilities.ts +115 -0
- package/packages/core/src/store/local/store.ts +86 -56
- package/packages/core/src/store/reduced-reads.ts +9 -1
- package/packages/core/src/store/reducer-value-read.ts +235 -0
- package/packages/core/src/store/reducer-value-shapes.json +1437 -1349
- package/packages/core/src/store/reducer-values.ts +36 -204
- package/packages/core/src/store/remote/released-clients.json +11 -0
- package/packages/core/src/store/remote/released-reducer-values/1.12.0.json +35806 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +18 -16
- package/packages/core/src/store/rollup-lease.ts +41 -0
- package/packages/core/src/store/rollups.ts +7 -38
- package/packages/core/src/store/snapshots.ts +1 -1
- package/packages/core/src/testing/dispatch-read-budget.ts +265 -4
- package/packages/core/src/testing/import-graph.ts +78 -0
- package/packages/core/src/testing/reduced-read-budget.ts +221 -22
- package/packages/core/src/testing/slot-agreement.ts +52 -0
- package/packages/core/src/web/assets/app.js +5 -5
- package/skills/guide/SKILL.md +115 -44
- package/skills/guide/references/integration-tree.md +28 -16
- package/skills/guide/references/operator-api.md +4 -4
- package/skills/guide/references/optimization-nodes.md +3 -2
- package/skills/operate/SKILL.md +38 -20
- package/templates/hosted-service/package.json +2 -2
package/skills/guide/SKILL.md
CHANGED
|
@@ -90,7 +90,8 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
90
90
|
chooses a short immutable slug from the final conforming spec, and
|
|
91
91
|
starts builds up to the top-level `capacity` bound, after slots reserved for
|
|
92
92
|
integration nodes awaiting verification, reconcile or propose, for finished builds
|
|
93
|
-
waiting to re-verify or reconcile, and for builds
|
|
93
|
+
waiting to re-verify or reconcile, and for builds resuming after an answered
|
|
94
|
+
escalation, a resumed pause or an ended ticket wait.
|
|
94
95
|
Free slots go to `manual` start requests, then urgent waiting work, then
|
|
95
96
|
urgent start requests and urgent tickets, then normal waiting work, then
|
|
96
97
|
normal start requests and normal tickets; a build takes its ticket's priority at
|
|
@@ -98,9 +99,15 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
98
99
|
priority. An optimization node's attempts claim at the node's current
|
|
99
100
|
priority instead, so `ab priority <node> urgent` speeds up its attempts
|
|
100
101
|
claimed afterwards. Priority orders free slots only.
|
|
101
|
-
`capacity` counts
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
`capacity` counts slots. A build takes one by admission and holds it while
|
|
103
|
+
Autobuild owes its next move, runner or not. It holds none while it waits on
|
|
104
|
+
the outside world (paused, blocked on a question, waiting for a merge
|
|
105
|
+
decision, merge gates or other tickets), though it keeps its workspace. A
|
|
106
|
+
question does not release the slot while work Autobuild started goes on:
|
|
107
|
+
other steps of its verify stage, or a recorded launch and its execution.
|
|
108
|
+
Such a build keeps its slot through the answer and requests nothing. When
|
|
109
|
+
a wait ends it waits for a slot again ahead of normal ticket claims, so
|
|
110
|
+
occupancy never exceeds `capacity`. Priority never preempts a running build.
|
|
104
111
|
With `[policy].maxOpenPrs` set, open-PR backpressure pauses new ordinary
|
|
105
112
|
normal-priority claims (not `ab start` requests) once that many root PRs are open and unmerged, until
|
|
106
113
|
the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are
|
|
@@ -127,8 +134,8 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
127
134
|
It ends the wait (cause `unresolvable`), shows in the default attention
|
|
128
135
|
filter, and its answer resumes the declaring phase like a wait answer. An
|
|
129
136
|
operator may still end a wait early by answering its escalation (cause
|
|
130
|
-
`operator`).
|
|
131
|
-
ahead of normal ticket claims (urgent work first). If its target moved, it first restacks onto the
|
|
137
|
+
`operator`). A build whose runner has stopped then waits as a `resume`
|
|
138
|
+
request and takes a slot ahead of normal ticket claims (urgent work first). If its target moved, it first restacks onto the
|
|
132
139
|
target's current head (published work is replayed as one change, and a
|
|
133
140
|
conflict reconciles first unless it is confined to declared `[generated]`
|
|
134
141
|
files, which the kernel regenerates; with nothing published, the branch fast-forwards
|
|
@@ -139,7 +146,7 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
139
146
|
except that a verify or finalize wait whose restack replayed cleanly
|
|
140
147
|
re-verifies every step from the first, at a new attempt, before finalize or
|
|
141
148
|
merge. `ab build status` shows a `waiting on:` line naming the tickets,
|
|
142
|
-
and `ab builds` and both dashboards show the build as `
|
|
149
|
+
and `ab builds` and both dashboards show the build as `WAITING` on them.
|
|
143
150
|
Node builds cannot declare waits.
|
|
144
151
|
- **Failed preparation.** Durable preparation facts protect the claim-to-build
|
|
145
152
|
interval. Caught failures return tickets to Ready (invalid specs to Triage),
|
|
@@ -418,7 +425,12 @@ The distinctions that change an administrator's answer:
|
|
|
418
425
|
Errors discard conditional state; unloadable targets retain the healthy
|
|
419
426
|
predecessor reader fallback with the active query. Old peers still exchange
|
|
420
427
|
full v1 answers. Polling remains 1 second idle / 250 ms pending, and cached
|
|
421
|
-
answers still drive pending actions, child exits and recovery expiry.
|
|
428
|
+
answers still drive pending actions, child exits and recovery expiry. While
|
|
429
|
+
the active run's durably detected upgrade has no prepared target, failure,
|
|
430
|
+
request or handoff yet, the reader reports it as advisory `preparing` and the
|
|
431
|
+
launcher checks every 50 ms, at most 600 times per detection, then returns to
|
|
432
|
+
the idle cadence. Older readers omit the field and keep the ordinary cadence;
|
|
433
|
+
operator shutdown ends any pause.
|
|
422
434
|
Automatic upgrades default on: the kernel checks immediately and every
|
|
423
435
|
60 seconds, resolving a declared Autobuild dependency and Bun lock from the same
|
|
424
436
|
authoritative base-branch commit. Unpinned repositories reread the original
|
|
@@ -426,8 +438,9 @@ The distinctions that change an administrator's answer:
|
|
|
426
438
|
sharing the dispatched repository's Git common directory selects source mode
|
|
427
439
|
first; that eligibility and the initial packaged baseline stay frozen across
|
|
428
440
|
successors. Source mode follows the forge-authoritative base commit, exported
|
|
429
|
-
into private cache staging with a frozen-lockfile, script-free
|
|
430
|
-
|
|
441
|
+
into private cache staging with a frozen-lockfile, script-free install of the
|
|
442
|
+
root package's production dependencies only; each must resolve inside the
|
|
443
|
+
export. The immutable runtime records the exact commit. Adoption compares
|
|
431
444
|
actual packaged contents and production-reachable lock records, so same-version
|
|
432
445
|
changes adopt while excluded-file and unrelated workspace-lock advances do not.
|
|
433
446
|
Shipped documentation counts as packaged content. The advisory successful
|
|
@@ -693,7 +706,7 @@ under the preceding table.
|
|
|
693
706
|
|---|---|---|---|
|
|
694
707
|
| `baseBranch` | `"main"` | nonempty string | The branch builds branch from and target with their PR; what `reconcile` replays the build change onto. |
|
|
695
708
|
| `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. |
|
|
696
|
-
| `capacity` | `1` | positive integer |
|
|
709
|
+
| `capacity` | `1` | positive integer | Slots for this repository. A build holds one from admission until it waits on a human, another ticket, the forge or its children, or ends; occupancy never exceeds it. |
|
|
697
710
|
| `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. |
|
|
698
711
|
| `plugins` | `[]` | array of unique nonblank module specifiers | Trusted Bun plugin modules loaded before dispatch, `ab ticket`, and scoped phase wiring. |
|
|
699
712
|
|
|
@@ -2699,13 +2712,46 @@ restack state and conflicting files remain in detail, along with every child's
|
|
|
2699
2712
|
ticket id, title and live phase (or queued/merged), open-first counts, verification
|
|
2700
2713
|
steps and current outcomes, repair instructions, and the merge rule. Cancelled
|
|
2701
2714
|
children are omitted; historical missing titles or filenames are explicit.
|
|
2702
|
-
A work build that finished its pipeline and must
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2715
|
+
A work build waiting for a slot, one that finished its pipeline and must
|
|
2716
|
+
re-verify or reconcile or one resuming after an answered escalation, a resumed
|
|
2717
|
+
pause or an ended ticket wait (`resume`), reads teal `QUEUED` with its request
|
|
2718
|
+
as the note (`resume`, `urgent reconcile`), shows the same
|
|
2719
|
+
slot-wait alert on its row, and `ab builds` appends it to the phase. A build
|
|
2720
|
+
whose only open escalation is its open ticket wait shows amber `WAITING` with
|
|
2721
|
+
an `on <ids>` note and a yellow (amber on the web)
|
|
2706
2722
|
`waiting on <ids> — <reason>` line, distinct from a red `BLOCKED` question;
|
|
2707
2723
|
`r` / RESUME answers the wait and ends it early.
|
|
2708
2724
|
|
|
2725
|
+
**Status words.** Every nonterminal build row on both dashboards, `ab builds`
|
|
2726
|
+
and `ab build status` shows one word from one closed vocabulary. Its color says
|
|
2727
|
+
whether the build holds a slot: every green word holds one, teal `QUEUED` has
|
|
2728
|
+
requested one, and every other word holds none. The word says why, and a short
|
|
2729
|
+
parenthesized note beside it (`merge decision`) says which case. The header's
|
|
2730
|
+
`active <occupied>/<limit>` counts the green rows.
|
|
2731
|
+
|
|
2732
|
+
| Color | Slot | Word | Shown when |
|
|
2733
|
+
|---|---|---|---|
|
|
2734
|
+
| green | held | `RUNNING` | a runner is working |
|
|
2735
|
+
| green | held | `STARTING` | no runner works yet: provisioning a newly claimed build, a relaunch, spec publication, an upgrade drain, a suspended session |
|
|
2736
|
+
| green | held | `PAUSING` | a pause was requested and the runner is still stopping |
|
|
2737
|
+
| green | held | `ABORTING` | an abort was requested and the runner is still stopping |
|
|
2738
|
+
| teal | requested | `QUEUED` | parked work waiting for admission; the note names the request (`resume`, `reconcile`, `verification`, `reopen`, `propose`) and marks urgent waiters |
|
|
2739
|
+
| amber | none | `WAITING` | a finished pipeline waiting for a merge decision (`merge decision`) or on hold (`on hold`), an entered ticket wait (`on <ids>`), or a `revise-spec` answer waiting for its revision (`spec revision`) |
|
|
2740
|
+
| amber | none | `MERGING` | a finished pipeline with merge consent, waiting for merge gates or the forge |
|
|
2741
|
+
| amber | none | `PAUSED` | an acknowledged pause |
|
|
2742
|
+
| amber | none | `COLLECTING` | an integration build collecting child work |
|
|
2743
|
+
| red | none | `BLOCKED` | an open escalation other than a ticket wait's own, or a failed node verification waiting for a repair child |
|
|
2744
|
+
| dim | none | `CLEANING` | abort cleanup |
|
|
2745
|
+
|
|
2746
|
+
`BLOCKED` outranks `PAUSED`. Only a build holding a slot shows `PAUSING` or
|
|
2747
|
+
`ABORTING`; a build without one keeps its word until the pause or abort is
|
|
2748
|
+
acknowledged. A resumed pause reads `QUEUED` with a `resume` note until it is
|
|
2749
|
+
admitted again. The reducer's lifecycle statuses (`queued`, `running`, `collecting`, …)
|
|
2750
|
+
are not display words: a newly claimed `queued` build reads `STARTING`, and a
|
|
2751
|
+
settled `running` build reads `WAITING` or `MERGING`. The Harvest row is never
|
|
2752
|
+
green: `HARVESTING` (teal) while it works, `PAUSED` or `SUSPENDED` (amber)
|
|
2753
|
+
while stopped, `ESCALATED` or `FAILED` (red) when it needs a human.
|
|
2754
|
+
|
|
2709
2755
|
|
|
2710
2756
|
On a TTY, execution-mode `ab dispatch` renders one fixed interactive frame that fills the
|
|
2711
2757
|
terminal's height. Its header stays on the top row, the legend or prompt panel
|
|
@@ -2733,9 +2779,13 @@ headless ticks that publish no count, and shows `–` until its first read
|
|
|
2733
2779
|
succeeds or when the source has no state counts (Linear). `queue` is the
|
|
2734
2780
|
ready-ticket queue depth measured by the latest completed ticket scan,
|
|
2735
2781
|
whichever dispatcher run recorded it (0 before any scan), so an overlapping
|
|
2736
|
-
run that starts and yields cannot displace it. `active` is occupied capacity (
|
|
2737
|
-
|
|
2738
|
-
against root `capacity`.
|
|
2782
|
+
run that starts and yields cannot displace it. `active` is occupied capacity (builds holding a
|
|
2783
|
+
slot; paused and waiting builds, and blocked ones with nothing still working
|
|
2784
|
+
on them, hold none) against root `capacity`.
|
|
2785
|
+
Each build's `slot` in `ab builds`, `ab build status` and the dashboard rows,
|
|
2786
|
+
and `capacity.slots` in `ab repository status`, report the per-build state
|
|
2787
|
+
behind that count: held, requested (with its request) or none; a missing value
|
|
2788
|
+
is unknown, never none. Observation pressure is not a header counter: the
|
|
2739
2789
|
Harvest row shows a run's observations, and `ab harvest status` reports
|
|
2740
2790
|
Harvest state.
|
|
2741
2791
|
The execution-mode frontend checkpoints only the latest run start and the sampled
|
|
@@ -2767,11 +2817,12 @@ from the builds by one blank line. The duplicate startup banner is
|
|
|
2767
2817
|
suppressed; `--plain` and non-TTY output remain line-oriented and unchanged. A
|
|
2768
2818
|
satisfied verify skip carries the literal `skipped` qualifier, so it remains
|
|
2769
2819
|
distinct from a pass without color. Every nonterminal build has a row,
|
|
2770
|
-
including `queued` builds that have not attached a runner. A
|
|
2771
|
-
its
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2820
|
+
including `queued` builds that have not attached a runner. A newly claimed
|
|
2821
|
+
build holds its slot from the claim, so its row shows its ticket, slug, green
|
|
2822
|
+
`STARTING` status, and either the pending dispatch boundary or the latest
|
|
2823
|
+
durable `dispatch.failed` stage, attempt, and error.
|
|
2824
|
+
While the repository hold is set, only these queued rows gain a yellow `(held)`
|
|
2825
|
+
modifier beside `STARTING`; intake being off without that hold shows neither
|
|
2775
2826
|
`repository PAUSED` nor `(held)`.
|
|
2776
2827
|
|
|
2777
2828
|
A build row previews each unresolved blocker and setup error as at most three
|
|
@@ -2813,35 +2864,38 @@ eligibility, plus the state-specific `p pause`, `p cancel pause`, or `r resume`
|
|
|
2813
2864
|
action; queued builds offer `d discard`. Merge requires readiness; hold may be
|
|
2814
2865
|
recorded before readiness. There is no repository merge toggle.
|
|
2815
2866
|
|
|
2816
|
-
A running build reads `PAUSING` after `p` appends its pause
|
|
2817
|
-
the live session stops and the kernel records its
|
|
2867
|
+
A running build that holds its slot reads `PAUSING` after `p` appends its pause
|
|
2868
|
+
request and before the live session stops and the kernel records its
|
|
2869
|
+
suspension; a build without a slot, such as one waiting for its merge
|
|
2870
|
+
decision, keeps its word until the acknowledgement. Pause interrupts
|
|
2818
2871
|
live agent work immediately; resume continues where it stopped when supported,
|
|
2819
2872
|
while remote or unsupported sessions rerun fresh with a recorded fallback reason.
|
|
2820
2873
|
Without a live agent, acknowledgement still waits for a safe boundary. During
|
|
2821
2874
|
that window `p` appends
|
|
2822
|
-
the opposing resume request, cancels the stale pause, and
|
|
2823
|
-
|
|
2875
|
+
the opposing resume request, cancels the stale pause, and the build
|
|
2876
|
+
reads its previous word again. The cancelling resume holds back nothing, including merge
|
|
2824
2877
|
readiness and janitor retry backoff. An acknowledged paused build offers only `r resume` and reads
|
|
2825
|
-
`
|
|
2878
|
+
`QUEUED` with a `resume` note until it is admitted to a slot again; there is no gesture to
|
|
2826
2879
|
cancel a pending resume. Blocked takes visual precedence, including when the
|
|
2827
2880
|
build is also operator-paused, and `r` opens the existing feedback field. Keys
|
|
2828
2881
|
that are not offered for the current build state are no-ops and append no
|
|
2829
2882
|
control event.
|
|
2830
2883
|
|
|
2831
2884
|
Global-row `p` is the repository-wide version — the same walk `ab pause --all`
|
|
2832
|
-
runs sessionless: it durably holds every
|
|
2833
|
-
appends `build.pause-requested` to every
|
|
2885
|
+
runs sessionless: it durably holds every queued build, turns intake off, and
|
|
2886
|
+
appends `build.pause-requested` to every running build, so the repository
|
|
2834
2887
|
comes to rest before a machine, terminal, or dispatcher restart. The hold is the `dispatcher.pause-set` repository fact, written before
|
|
2835
2888
|
the intake fact; while it is set no dispatcher tick attaches a runner to a
|
|
2836
2889
|
queued build, whether through interrupted-dispatch recovery, startup resume, or
|
|
2837
|
-
the lease sweep. The per-build walk skips
|
|
2838
|
-
cancels a pending pause, unlike build-row
|
|
2839
|
-
`
|
|
2890
|
+
the lease sweep. The per-build walk skips a build whose pause is already
|
|
2891
|
+
pending — the bulk control never cancels a pending pause, unlike build-row
|
|
2892
|
+
`p` — and skips queued, paused, resume-pending, and blocked builds without
|
|
2893
|
+
error; queued builds are covered by the hold
|
|
2840
2894
|
instead. Global-row `r` reverses all of it: the hold released,
|
|
2841
|
-
`build.resume-requested` on every
|
|
2895
|
+
`build.resume-requested` on every paused build (including builds paused by
|
|
2842
2896
|
hand beforehand), and intake back on. A released queued build becomes
|
|
2843
2897
|
launchable again on the next ordinary tick, with no further operator action. `r`
|
|
2844
|
-
does not touch
|
|
2898
|
+
does not touch blocked builds, whose blockers still need the per-build `r`
|
|
2845
2899
|
feedback field. Both report the affected build count, the hold, and the new
|
|
2846
2900
|
intake value on the notice row. One carve-out remains: the harvest gate is
|
|
2847
2901
|
independent, so a harvest session can still start after a bulk pause (`h` stops
|
|
@@ -2893,7 +2947,10 @@ as builds; its internal run id is not shown. One row selects the oldest
|
|
|
2893
2947
|
unresolved ordinary failure, exhaustion, or escalation attention before the
|
|
2894
2948
|
oldest open run, so later running/completed work cannot hide it. Completed runs,
|
|
2895
2949
|
an idle paused repository, acknowledged recovery exhaustion, and dismissed
|
|
2896
|
-
escalation have no row. A
|
|
2950
|
+
escalation have no row. A working run reads teal `HARVESTING`; a harvest run
|
|
2951
|
+
never holds a slot, so it is never green. A paused open run freezes and reads
|
|
2952
|
+
amber `PAUSED`, and a suspended one `SUSPENDED`. Escalation reads red
|
|
2953
|
+
`ESCALATED`. Ordinary
|
|
2897
2954
|
failure reads red `FAILED`, marks the stopped step, shows automatic progress,
|
|
2898
2955
|
and offers `p resume`. Exhaustion remains red, says `recovery exhausted — human
|
|
2899
2956
|
attention required`, shows stopped step/pending count, and offers `p
|
|
@@ -2938,10 +2995,10 @@ to the build's event log and apply the same write-time checks.
|
|
|
2938
2995
|
| Intent | CLI | Dashboard | Durable event(s) |
|
|
2939
2996
|
|---|---|---|---|
|
|
2940
2997
|
| Discard interrupted dispatch | — | Select a queued build and press `d`. | `build.discard-requested` |
|
|
2941
|
-
| Pause | `ab pause <slug> [--store <ref>]` | Select a
|
|
2942
|
-
| Resume | `ab resume <slug> [--store <ref>]` | Select a
|
|
2943
|
-
| 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
|
|
2944
|
-
| 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
|
|
2998
|
+
| Pause | `ab pause <slug> [--store <ref>]` | Select a running build and press `p`; press `p` again while its pause is pending to cancel it. | `build.pause-requested`; cancellation reuses `build.resume-requested` |
|
|
2999
|
+
| Resume | `ab resume <slug> [--store <ref>]` | Select a paused build and press `r`. | `build.resume-requested` |
|
|
3000
|
+
| 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 |
|
|
3001
|
+
| 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 |
|
|
2945
3002
|
| Consent to merge | `ab merge <slug> [--head <sha>] [--store <ref>]` | Select a ready build and press `l`. | `build.land-requested`, then `landing.command-acknowledged` |
|
|
2946
3003
|
| Restack node | `ab restack <node> [--store <ref>]` | CLI/tool request; normal safety gates apply. | `node.restack-requested`, then `node.restack-satisfied` |
|
|
2947
3004
|
| Show or revise an objective | `ab objective <node> [--threshold n] [--epsilon n\|n%] [--max-attempts n] [--max-hours n] [--plateau n] [--stop-mode abort\|drain] [--concurrency n] [--json] [--store <ref>]` | CLI/tool request (`optimization.revise`); without flags it only shows the effective objective and progress. Running attempts are unaffected; revised stop rules apply on the next tick. | `optimization.objective-revised` |
|
|
@@ -3224,7 +3281,11 @@ runtime; historical starts without metadata display `runtime unrecorded`.
|
|
|
3224
3281
|
With `[policy].maxOpenPrs` configured and a dispatcher holding the
|
|
3225
3282
|
repository, an `open-PR backpressure:` line (`capacity.backpressure` in JSON:
|
|
3226
3283
|
`active`, `openPrs`, `maxOpenPrs`, `resumeOpenPrs`, `excludeHeld`) says whether
|
|
3227
|
-
normal intake is paused
|
|
3284
|
+
normal intake is paused. With a readable held configuration, a `slots:` line
|
|
3285
|
+
after `capacity:` groups the builds the dispatcher counts as `held`,
|
|
3286
|
+
`requested` (with each request and an `urgent` marker) and `none`
|
|
3287
|
+
(`capacity.slots` in JSON, by slug); `occupied` counts the held entries. The
|
|
3288
|
+
dispatcher records
|
|
3228
3289
|
`dispatcher.open-pr-backpressure-engaged` and `-cleared` only on transitions.
|
|
3229
3290
|
It also lists the latest ticket scan's ticket and dependency diagnostics
|
|
3230
3291
|
(`queue:` lines, `ticketDiagnostics` and `dependencyDiagnostics` in JSON),
|
|
@@ -3242,7 +3303,15 @@ are the ones something can still be done about. `HEARTBEAT` is mutable runner
|
|
|
3242
3303
|
liveness; `PROGRESS` is the age of the latest durable event. A literal
|
|
3243
3304
|
`diverged` suffix means a nonterminal build still holds a live lease but its
|
|
3244
3305
|
heartbeat is at least one hour newer than its latest event. It is a visibility
|
|
3245
|
-
signal, not a stalled/dead verdict.
|
|
3306
|
+
signal, not a stalled/dead verdict. `SLOT` (`slot` in JSON) is the build's
|
|
3307
|
+
slot state by the rules the dispatcher admits work by: `held`,
|
|
3308
|
+
`requested <request>` with an `urgent` suffix for urgent work, or `none`; `—`
|
|
3309
|
+
for a done build. `unknown`, or no `slot` in JSON, is an older server's answer;
|
|
3310
|
+
never read it as `none`. `STATUS` prints the build's status word with its note
|
|
3311
|
+
(see "Status words"), and JSON adds it as `statusWord` while `status` stays
|
|
3312
|
+
the reducer's lifecycle status, which the filters below select on. On an
|
|
3313
|
+
interactive terminal `ab builds` and `ab build status` color the word with its
|
|
3314
|
+
tone; piped, redirected or under `--json` they print it plain.
|
|
3246
3315
|
|
|
3247
3316
|
| Flag | Effect |
|
|
3248
3317
|
|---|---|
|
|
@@ -3258,7 +3327,8 @@ or `--all` before concluding a build doesn't exist.
|
|
|
3258
3327
|
**`ab build status <slug>`** details one build: unresolved escalations, open
|
|
3259
3328
|
sessions, chronological durable observations, verify progress for the current
|
|
3260
3329
|
cycle, PR lifecycle, latest event, durable progress age, heartbeat, and lease.
|
|
3261
|
-
|
|
3330
|
+
A nonterminal build's `slot:` line (`slot` in JSON) reports its slot state as
|
|
3331
|
+
`ab builds` does. Every runner attach appears chronologically with its recorded runtime (version,
|
|
3262
3332
|
commit, source kind/location), or `runtime unrecorded` for historical attaches;
|
|
3263
3333
|
JSON exposes nullable runtime in `runnerAttaches`. Phases belong to the preceding
|
|
3264
3334
|
attach boundary. A build created with a [role profile](#profiles) shows a
|
|
@@ -3582,7 +3652,8 @@ terminal set keeps waiting for a build to appear), named slugs target exactly
|
|
|
3582
3652
|
those builds, and an unknown slug is an error before waiting begins. Inside a
|
|
3583
3653
|
phase, only the ambient build may be waited on.
|
|
3584
3654
|
|
|
3585
|
-
At least one `--for <condition>` or `--event <glob>` is required. The
|
|
3655
|
+
At least one `--for <condition>` or `--event <glob>` is required. The conditions
|
|
3656
|
+
are lifecycle statuses, not the dashboards' status words. The condition
|
|
3586
3657
|
vocabulary is closed: `blocked`, `paused`, `running`, `collecting`, `done`, `aborted`,
|
|
3587
3658
|
`terminal` (done or aborted), `pr=open`, `pr=merged`, `pr=closed`,
|
|
3588
3659
|
`pr=conflicted`, `phase=<phase>` (a core phase — `plan`, `plan-review`,
|
|
@@ -98,22 +98,34 @@ execution lease or dispatch capacity. A PR opens or is adopted when the node
|
|
|
98
98
|
has commits its current parent lacks; parent-only advancement remains empty.
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
A node
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
slot for it, and the dispatcher
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
101
|
+
A node takes a slot only by admission for runner work: `reconcile` for a
|
|
102
|
+
restack conflict, `verification` for an integration cycle or a measurement, and
|
|
103
|
+
`propose` for an optimization node's open proposal request. The request is
|
|
104
|
+
durable and is admitted before normal ticket claims, urgent work first. Until
|
|
105
|
+
the node holds its slot, intake reserves one slot for it, and the dispatcher
|
|
106
|
+
checks its admission every tick regardless of idle node polling, so a slot
|
|
107
|
+
freed in any tick goes to the node, not to a new normal claim. Admission counts
|
|
108
|
+
every build that holds a slot, as every admission does.
|
|
109
|
+
|
|
110
|
+
- **Recorded before provisioning.** Admission is a durable `slot.admitted`
|
|
111
|
+
fact naming the work it admitted.
|
|
112
|
+
- **Held through the work.** The node keeps the slot through provisioning,
|
|
113
|
+
launch and relaunch after a crashed runner or expired lease, and across a
|
|
114
|
+
dispatcher restart, until that work is done: the cycle verified or failed,
|
|
115
|
+
the measurement recorded, the proposal deposited or the restack settled.
|
|
116
|
+
- **Released on an outside wait.** A paused node, or one blocked on a question
|
|
117
|
+
(a restack conflict's escalation included), holds none. Once answered or
|
|
118
|
+
resumed, it requests its slot again.
|
|
119
|
+
- **Never held by idling.** An idle collecting node, a node waiting for a
|
|
120
|
+
repair child and a node's retained workspace hold none. Paused descendants,
|
|
121
|
+
and blocked ones with nothing still working on them, hold none either, so they never stand between a node and the
|
|
122
|
+
slot it needs to unblock them.
|
|
123
|
+
|
|
124
|
+
Status and both dashboards report occupancy against configured capacity, and
|
|
125
|
+
each node waiting for a slot ahead of normal ticket claims, marking urgent
|
|
126
|
+
ones.
|
|
127
|
+
Status also reports every build's slot state (`slot`, `capacity.slots`):
|
|
128
|
+
an admitted node reports `held`; a node awaiting admission reports its request.
|
|
117
129
|
|
|
118
130
|
Claims freeze the destination build generation and branch. Missing, unopened,
|
|
119
131
|
merged, closed or aborted targets leave work queued with diagnostics. The newest
|
|
@@ -82,10 +82,10 @@ raw session-event append. External operator harnesses own agent execution.
|
|
|
82
82
|
|
|
83
83
|
| Method and path | Result |
|
|
84
84
|
|---|---|
|
|
85
|
-
| `GET …/builds?scope=active\|queued\|all` | Build summaries, newest update first. `queued` means active plus queued, matching `ab builds --queued`. |
|
|
86
|
-
| `GET …/builds/{slug}` | `{detail, dashboardRow}`; `detail.runnerAttaches` records chronological attach boundaries and their runtime identity (version, commit, source kind/location), with null runtime for unrecorded historical attaches; `dashboardRow` remains a `CLEANING` row after `build.aborted` and becomes `null` only when the dashboard stops listing it (after cleanup's `build.completed`). |
|
|
87
|
-
| `GET …/dashboard` | `{generatedAt, model, settingsHeader}`. `model` is the dashboard's rows, steps, elapsed timing inputs, harvest row, triage (when the dispatcher published one)/queue/capacity and settings projection. `model.configuration` is `"no-dispatcher-run"` when the repository records no dispatcher run, and absent otherwise. Optional `rollback` contains `correlation`, `lineage`, full `failed` and `restored` runtime identities and rollback event `ts` for the authoritative dispatcher lineage’s unresolved hold. Both dashboards name failed, restored and held runtime plus timestamp. Matching durable different-target hold clearance removes it; a fresh operator lineage hides it only after a committed operational tick or accepted takeover. Run-started and yielded ticks alone cannot replace authority; same-lineage generations retain the notice. Historical rollback records are not fallback notices. Optional `handoffs` lists all accepted unfinished handoffs with predecessor `run`, optional `successor`, `correlation`, full `from`/`to` runtimes, `mode` and optional `deadline`. Outstanding drain-mode builds carry `draining: true`, also on build-detail `dashboardRow`; matching settlement removes it. Accepted completion removes the handoff; neither takeover nor the clock does. Missing historical mode means cutover and missing deadline displays unknown. |
|
|
88
|
-
| `GET …/status` | Repository intake, pause, and default-auto-merge projection, plus `ticketStarts` (`{pending, recent}`, each entry with its `priority`) when single-ticket start requests are pending or recently settled. Its `operator` is `{presence: "unavailable", reason}`: this route does not load presence registrations, so it is not evidence that no operator is present. |
|
|
85
|
+
| `GET …/builds?scope=active\|queued\|all` | Build summaries, newest update first. `queued` means active plus queued, matching `ab builds --queued`. Each nonterminal summary's `slot` is `{state: "held"}`, `{state: "requested", request, priority?: "urgent"}` or `{state: "none"}`; absent means unknown (an older server), never `none`. Its `statusWord` is `{word, tone, note?}`, the status word every surface shows; `status` stays the reducer's lifecycle status. |
|
|
86
|
+
| `GET …/builds/{slug}` | `{detail, dashboardRow}`; `detail.slot` and `dashboardRow.slot` carry the build's slot state, shaped as in `GET …/builds`; `detail.runnerAttaches` records chronological attach boundaries and their runtime identity (version, commit, source kind/location), with null runtime for unrecorded historical attaches; `dashboardRow` remains a `CLEANING` row after `build.aborted` and becomes `null` only when the dashboard stops listing it (after cleanup's `build.completed`). |
|
|
87
|
+
| `GET …/dashboard` | `{generatedAt, model, settingsHeader}`. `model` is the dashboard's rows, steps, elapsed timing inputs, harvest row, triage (when the dispatcher published one)/queue/capacity and settings projection. `model.capacity.slots` maps each build to its slot state, and each `model.builds[].slot` repeats it; absent means unknown. `model.configuration` is `"no-dispatcher-run"` when the repository records no dispatcher run, and absent otherwise. Optional `rollback` contains `correlation`, `lineage`, full `failed` and `restored` runtime identities and rollback event `ts` for the authoritative dispatcher lineage’s unresolved hold. Both dashboards name failed, restored and held runtime plus timestamp. Matching durable different-target hold clearance removes it; a fresh operator lineage hides it only after a committed operational tick or accepted takeover. Run-started and yielded ticks alone cannot replace authority; same-lineage generations retain the notice. Historical rollback records are not fallback notices. Optional `handoffs` lists all accepted unfinished handoffs with predecessor `run`, optional `successor`, `correlation`, full `from`/`to` runtimes, `mode` and optional `deadline`. Outstanding drain-mode builds carry `draining: true`, also on build-detail `dashboardRow`; matching settlement removes it. Accepted completion removes the handoff; neither takeover nor the clock does. Missing historical mode means cutover and missing deadline displays unknown. |
|
|
88
|
+
| `GET …/status` | Repository intake, pause, and default-auto-merge projection, plus `ticketStarts` (`{pending, recent}`, each entry with its `priority`) when single-ticket start requests are pending or recently settled. `capacity.slots`, when the held configuration is readable, maps each nonterminal build to its slot state; `capacity.occupied` counts its `held` entries. Its `operator` is `{presence: "unavailable", reason}`: this route does not load presence registrations, so it is not evidence that no operator is present. |
|
|
89
89
|
| `GET …/harvest/status` | Harvest gate, runs, steps, recovery, and attention projection. |
|
|
90
90
|
| `GET …/builds/{slug}/artifacts/{kind}?rev=N` | Raw bytes (`application/octet-stream`) plus content-disposition and `X-Autobuild-Artifact-*` metadata headers. Omit `rev` for latest. |
|
|
91
91
|
| `GET …/tickets?state=S&label=L&limit=N&offset=K&order=O` | `{states,tickets,diagnostics,criteria,triageState,readyState,doneState,total}`. The three lifecycle names come from effective repository configuration (including provider fallback). With no `state`, `criteria.state` is `triageState`; repeated `label` parameters narrow that state with AND filters. An explicit `state` selects that exact backend workflow state. `limit` (0–200) returns one page, after skipping `offset`, in `order` `oldest` (the default: dispatch order, urgent tickets first, then the source order) or `newest` (newest filed first, regardless of urgency; see paging below); `total` counts every match before paging. |
|
|
@@ -295,8 +295,9 @@ spread. A command node uses the objective's pairing and sample count (see
|
|
|
295
295
|
[judge panel](#judge-panels) of its harness pin against itself: its starting
|
|
296
296
|
value is 0.5, and its spread is the distance of that self-comparison win rate
|
|
297
297
|
from 0.5. The dispatcher admits that run as it admits a node verification: the
|
|
298
|
-
node
|
|
299
|
-
the
|
|
298
|
+
node holds a runner slot from admission until the starting value is recorded,
|
|
299
|
+
through any relaunch of its runner. The workspace for the run is provisioned
|
|
300
|
+
after admission and released separately; it never holds the slot.
|
|
300
301
|
|
|
301
302
|
**Noise check.** When ε, in metric units, is smaller than the measured spread,
|
|
302
303
|
the gate would accept noise. A panel's ε is a win-rate margin, compared with
|
package/skills/operate/SKILL.md
CHANGED
|
@@ -164,7 +164,8 @@ An extra monitor supplements the default standing watch.
|
|
|
164
164
|
`ab wait [<slug>...] (--for <condition> | --event <glob>) [--since <cursor>] [--json]`
|
|
165
165
|
uses the same hosted resume window and expiry recovery as watch, and blocks until a condition holds and prints one record. `--for` state conditions
|
|
166
166
|
are also satisfied immediately by a build already in that state; `--event` is
|
|
167
|
-
satisfied only by new events. Conditions
|
|
167
|
+
satisfied only by new events. Conditions are lifecycle statuses, not the
|
|
168
|
+
dashboards' status words, and include `attention`,
|
|
168
169
|
`blocked`, `paused`, `running`, `done`, `aborted`, `terminal`, `pr=merged`,
|
|
169
170
|
`pr=closed`, `pr=conflicted`, and `phase=<phase>`. Exit codes: 0 satisfied,
|
|
170
171
|
1 usage or store error, 2 every named build is terminal without satisfying a
|
|
@@ -283,20 +284,30 @@ is not exposed there, and its
|
|
|
283
284
|
|
|
284
285
|
### Inspect
|
|
285
286
|
|
|
286
|
-
- `ab builds [--queued] [--all] [--json]` — builds and their
|
|
287
|
+
- `ab builds [--queued] [--all] [--json]` — builds and their status words.
|
|
287
288
|
Active builds by default; `--queued` adds queued builds; `--all` is an
|
|
288
289
|
explicit historical listing of every build, for when you were asked for
|
|
289
|
-
history, not for routine reconciliation.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
`
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
290
|
+
history, not for routine reconciliation. `STATUS` is the shared status word
|
|
291
|
+
with its note (`WAITING (merge decision)`, `QUEUED (resume)`); a green word
|
|
292
|
+
means the build holds a slot. In `--json`, `statusWord` carries the word,
|
|
293
|
+
tone and note while `status` stays the reducer's lifecycle status.
|
|
294
|
+
A build parked on a ticket wait lists as `WAITING (on <ids>)`, with
|
|
295
|
+
`waiting on <ids>` after its phase; in `--json` its `status` stays `blocked`
|
|
296
|
+
and `wait` carries `state` and `tickets`.
|
|
297
|
+
The `SLOT` column (`slot` in `--json`) says whether the build holds a slot,
|
|
298
|
+
has requested one (`resume`, `reconcile`, `verification`, `reopen` or
|
|
299
|
+
`propose`, maybe urgent) or holds none, by the rules the dispatcher admits
|
|
300
|
+
work by. `unknown`, or no `slot`, means an older server; never read it as none.
|
|
301
|
+
- `ab build status <slug> [--events N]` — one build's detail, its `slot:` line
|
|
302
|
+
(`slot` in JSON), chronological runner attaches with runtime identity, and
|
|
303
|
+
recent events. Historical runtime is null in JSON and unrecorded in human
|
|
304
|
+
output.
|
|
296
305
|
- `ab repository status` — the repository's derived status, including the lease
|
|
297
|
-
holder’s recorded runtime version, commit, and source kind/location,
|
|
298
|
-
latest scan's queue diagnostics and startup warnings,
|
|
299
|
-
hook's last delivery, backlog and failure
|
|
306
|
+
holder’s recorded runtime version, commit, and source kind/location, the
|
|
307
|
+
latest scan's queue diagnostics and startup warnings, each configured
|
|
308
|
+
hook's last delivery, backlog and failure, and a `slots:` line after
|
|
309
|
+
`capacity:` grouping builds as held, requested or none (`capacity.slots` in
|
|
310
|
+
JSON; `occupied` counts its held entries). Historical runtime is
|
|
300
311
|
null in JSON and unrecorded in human output.
|
|
301
312
|
- `ab artifact` — fetch one artifact's bytes.
|
|
302
313
|
|
|
@@ -319,17 +330,23 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
319
330
|
resumes under the revised spec and its publication is confirmed; a finished
|
|
320
331
|
leaf waiting for its merge decision revises with `ab reopen`. Answering a
|
|
321
332
|
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
322
|
-
tickets complete (see ticket wait attention).
|
|
333
|
+
tickets complete (see ticket wait attention). A blocked build holds no slot
|
|
334
|
+
once nothing is still working on it, and an answer does not give it one: it
|
|
335
|
+
waits as a `resume` request ahead of normal ticket claims (urgent work
|
|
336
|
+
first) until a slot frees. A build whose other verify steps, launch or
|
|
337
|
+
execution still run keeps its slot through the answer and requests nothing. Run
|
|
323
338
|
`ab help answer` for the full menu.
|
|
324
339
|
- `ab pause <slug>` / `ab resume <slug>`; `ab pause --all` / `ab resume --all`
|
|
325
340
|
hold and release the whole repository. Pause immediately interrupts live agent
|
|
326
341
|
sessions and acknowledges after they stop. Resume continues the same native
|
|
327
342
|
session where supported; remote or unsupported sessions rerun fresh, with a
|
|
328
343
|
reason recorded in session.resume-fallback. Without a live agent (including
|
|
329
|
-
check-only verify), pause still takes effect at the next boundary.
|
|
344
|
+
check-only verify), pause still takes effect at the next boundary. A paused
|
|
345
|
+
build holds no slot once the pause is acknowledged; resumed, it waits for a
|
|
346
|
+
slot ahead of normal ticket claims like an answered build.
|
|
330
347
|
- `ab abort <slug> [--to triage|ready] [--reason <text>]` — destructive:
|
|
331
348
|
closes the PR, removes branches, and hands the ticket back to triage by
|
|
332
|
-
default. To
|
|
349
|
+
default. To send back a build that waits on other work, use
|
|
333
350
|
`--to ready`: the ticket goes straight to ready with its blockers kept and
|
|
334
351
|
redispatches once they merge, so it needs no second move. A ticket that no
|
|
335
352
|
longer conforms to the spec standard falls back to triage, and the comment
|
|
@@ -852,8 +869,8 @@ unfinished or automatically authorized candidates do not ask for attention.
|
|
|
852
869
|
Queued and held candidates hold no capacity slot; one that must re-verify or
|
|
853
870
|
reconcile waits for a slot ahead of normal ticket claims (urgent work first), so
|
|
854
871
|
a full repository delays it without failing it. A build waiting on other
|
|
855
|
-
tickets
|
|
856
|
-
wait ends.
|
|
872
|
+
tickets, paused, or blocked on a question with nothing still working on it
|
|
873
|
+
holds no slot either, and takes one ahead of normal claims once its wait ends.
|
|
857
874
|
|
|
858
875
|
Select a queue build in the terminal and use `l merge` or `o hold`, or run
|
|
859
876
|
`ab merge <slug>` / `ab hold <slug>`. MCP uses `builds.control` with action `merge`
|
|
@@ -897,8 +914,9 @@ raise with its own event type.
|
|
|
897
914
|
|
|
898
915
|
### Ticket wait attention
|
|
899
916
|
|
|
900
|
-
A build that `ab builds` and both dashboards show as `
|
|
901
|
-
|
|
917
|
+
A build that `ab builds` and both dashboards show as `WAITING` with an
|
|
918
|
+
`on <ids>` note, and an amber `waiting on <ids> — <reason>` line, is a ticket
|
|
919
|
+
wait. It is not
|
|
902
920
|
a red blocker; its escalation question begins `Waiting on`. Its agent declared with `ab wait-on` that it cannot proceed until
|
|
903
921
|
the named tickets complete, and the dispatcher recorded them in the build
|
|
904
922
|
ticket's `blockedBy`. It holds no capacity slot and keeps its branch and
|
|
@@ -907,7 +925,7 @@ Drive the named tickets to completion: the dispatcher ends the wait on its
|
|
|
907
925
|
first tick after every named ticket completes, with no answer needed, and a
|
|
908
926
|
wait with some tickets still open stays in place. Answer sooner only when the
|
|
909
927
|
needed work landed another way or the wait is mistaken; any answer ends the
|
|
910
|
-
wait early. Either way the build then takes a
|
|
928
|
+
wait early. Either way the build then waits as a `resume` request and takes a
|
|
911
929
|
slot ahead of normal ticket claims (urgent work first). If its target moved, it first restacks onto the
|
|
912
930
|
target's current head, so the resumed phase sees the merged blockers;
|
|
913
931
|
`ab build status` shows a `restack:` line with trigger `wait-resume`, and a
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"build": "ab-hosted-service-build"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@defrex/autobuild-hosted-store-service": "1.
|
|
8
|
-
"@defrex/autobuild": "1.
|
|
7
|
+
"@defrex/autobuild-hosted-store-service": "1.12.0",
|
|
8
|
+
"@defrex/autobuild": "1.12.0",
|
|
9
9
|
"next": "16.1.6",
|
|
10
10
|
"react": "19.2.4",
|
|
11
11
|
"react-dom": "19.2.4"
|