@defrex/autobuild 1.11.0 → 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.
Files changed (110) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +186 -57
  3. package/docs/answering-blocked-builds.md +10 -2
  4. package/docs/architecture.md +76 -10
  5. package/docs/assets/headline-wide.png +0 -0
  6. package/docs/cli.md +1 -1
  7. package/docs/configuration.md +13 -11
  8. package/docs/dispatcher.md +5 -4
  9. package/docs/integration-tree.md +28 -16
  10. package/docs/operator-api.md +4 -4
  11. package/docs/operator-surfaces.md +38 -3
  12. package/docs/optimization-nodes.md +3 -2
  13. package/docs/tickets.md +1 -1
  14. package/docs/troubleshooting.md +1 -1
  15. package/package.json +3 -3
  16. package/packages/core/src/cli/ambient-errors.ts +17 -0
  17. package/packages/core/src/cli/bounded-io.ts +174 -0
  18. package/packages/core/src/cli/dashboard/header.ts +10 -0
  19. package/packages/core/src/cli/dashboard/model.ts +81 -23
  20. package/packages/core/src/cli/dashboard/poll.ts +24 -34
  21. package/packages/core/src/cli/dashboard/render.ts +44 -37
  22. package/packages/core/src/cli/dashboard/row-text.ts +24 -7
  23. package/packages/core/src/cli/dashboard/tone-ansi.ts +39 -0
  24. package/packages/core/src/cli/dashboard/vocabulary.ts +161 -20
  25. package/packages/core/src/cli/dispatch-frontend.ts +12 -3
  26. package/packages/core/src/cli/dispatch-handoff.ts +41 -10
  27. package/packages/core/src/cli/dispatch-launch-contract.ts +5 -0
  28. package/packages/core/src/cli/dispatch-launcher-cadence.ts +80 -0
  29. package/packages/core/src/cli/dispatch-launcher.ts +9 -10
  30. package/packages/core/src/cli/dispatch-preflight.ts +12 -3
  31. package/packages/core/src/cli/dispatch-release-observer.ts +53 -0
  32. package/packages/core/src/cli/dispatch-runtime-cache.ts +204 -82
  33. package/packages/core/src/cli/dispatch-runtime-dependencies.ts +250 -43
  34. package/packages/core/src/cli/dispatch-upgrade-install.ts +36 -16
  35. package/packages/core/src/cli/dispatch-upgrade-source.ts +8 -2
  36. package/packages/core/src/cli/dispatch-yield-observer.ts +82 -0
  37. package/packages/core/src/cli/dispatch.ts +70 -9
  38. package/packages/core/src/cli/env.ts +2 -15
  39. package/packages/core/src/cli/help.ts +5 -4
  40. package/packages/core/src/cli/main.ts +4 -2
  41. package/packages/core/src/cli/production-store.ts +102 -0
  42. package/packages/core/src/cli/repo-state.ts +2 -3
  43. package/packages/core/src/cli/repository-status.ts +36 -28
  44. package/packages/core/src/cli/sessionless-store.ts +26 -0
  45. package/packages/core/src/cli/status.ts +169 -40
  46. package/packages/core/src/cli/store-opening.ts +15 -58
  47. package/packages/core/src/cli/store-ref.ts +6 -1
  48. package/packages/core/src/config/schema.ts +1 -1
  49. package/packages/core/src/distribution-packaging.ts +156 -18
  50. package/packages/core/src/events/catalog-identity.ts +28 -0
  51. package/packages/core/src/events/catalog.ts +3 -9
  52. package/packages/core/src/events/compatibility.ts +2 -30
  53. package/packages/core/src/events/payloads.ts +11 -0
  54. package/packages/core/src/events/policy.ts +3 -0
  55. package/packages/core/src/events/repository.ts +1 -1
  56. package/packages/core/src/events/sessions.ts +1 -1
  57. package/packages/core/src/events/validation-error.ts +12 -0
  58. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +74 -30
  59. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/3064e337cc75f8d6.json +310 -0
  60. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/46196d8f0076496a.json +97 -0
  61. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a1e90a969d32a367.json +307 -0
  62. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/da3bc91c49211eab.json +310 -0
  63. package/packages/core/src/kernel/auto-merge-default.ts +2 -1
  64. package/packages/core/src/kernel/capacity-build.ts +21 -0
  65. package/packages/core/src/kernel/discard-in-flight.ts +13 -0
  66. package/packages/core/src/kernel/dispatch-capacity.ts +354 -147
  67. package/packages/core/src/kernel/dispatch-status.ts +139 -0
  68. package/packages/core/src/kernel/engine.ts +2 -8
  69. package/packages/core/src/kernel/measurement.ts +24 -0
  70. package/packages/core/src/kernel/read-facts.ts +9 -369
  71. package/packages/core/src/kernel/reducer-registry.ts +40 -125
  72. package/packages/core/src/kernel/reducer-revisions.ts +5 -0
  73. package/packages/core/src/kernel/reducer-value-entry.ts +98 -0
  74. package/packages/core/src/kernel/reducer-value-index.ts +75 -0
  75. package/packages/core/src/kernel/reducer.ts +57 -9
  76. package/packages/core/src/kernel/reopen-state.ts +10 -0
  77. package/packages/core/src/kernel/repository-read-facts.ts +375 -0
  78. package/packages/core/src/kernel/verify-stage-state.ts +145 -3
  79. package/packages/core/src/operator/presentation.ts +13 -0
  80. package/packages/core/src/operator/query.ts +47 -41
  81. package/packages/core/src/operator/registry.ts +3 -3
  82. package/packages/core/src/ports/workspace/fake.ts +15 -3
  83. package/packages/core/src/processes/dispatcher.ts +232 -75
  84. package/packages/core/src/processes/execution-no-progress.ts +1 -0
  85. package/packages/core/src/store/local/capabilities.ts +115 -0
  86. package/packages/core/src/store/local/store.ts +86 -56
  87. package/packages/core/src/store/reduced-reads.ts +9 -1
  88. package/packages/core/src/store/reducer-value-read.ts +235 -0
  89. package/packages/core/src/store/reducer-value-shapes.json +3796 -3670
  90. package/packages/core/src/store/reducer-values.ts +36 -204
  91. package/packages/core/src/store/remote/released-clients.json +22 -0
  92. package/packages/core/src/store/remote/released-reducer-values/1.11.1.json +35718 -0
  93. package/packages/core/src/store/remote/released-reducer-values/1.12.0.json +35806 -0
  94. package/packages/core/src/store/remote/released-reducer-values/index.ts +20 -16
  95. package/packages/core/src/store/rollup-lease.ts +41 -0
  96. package/packages/core/src/store/rollups.ts +7 -38
  97. package/packages/core/src/store/snapshots.ts +1 -1
  98. package/packages/core/src/testing/dispatch-journals.ts +117 -0
  99. package/packages/core/src/testing/dispatch-read-budget.ts +265 -4
  100. package/packages/core/src/testing/import-graph.ts +78 -0
  101. package/packages/core/src/testing/reduced-read-budget.ts +221 -22
  102. package/packages/core/src/testing/slot-agreement.ts +52 -0
  103. package/packages/core/src/web/assets/app.js +5 -5
  104. package/packages/core/src/web/repository-source.ts +6 -2
  105. package/skills/guide/SKILL.md +126 -47
  106. package/skills/guide/references/integration-tree.md +28 -16
  107. package/skills/guide/references/operator-api.md +4 -4
  108. package/skills/guide/references/optimization-nodes.md +3 -2
  109. package/skills/operate/SKILL.md +38 -20
  110. package/templates/hosted-service/package.json +2 -2
@@ -1,5 +1,9 @@
1
1
  import { NO_DISPATCHER_RUN_LINE } from '../cli/dashboard/configuration'
2
- import { dispatchWarningLines, projectRepositoryHeader } from '../cli/dashboard/header'
2
+ import {
3
+ dispatchWarningLines,
4
+ projectRepositoryHeader,
5
+ repositoryQueueDepth,
6
+ } from '../cli/dashboard/header'
3
7
  import type { RepositoryReadFacts } from '../store/reduced-reads'
4
8
  import type { WebFrame } from './protocol'
5
9
 
@@ -18,7 +22,7 @@ export function projectRepositoryFrame(
18
22
  const { header } = projectRepositoryHeader(
19
23
  {
20
24
  repo,
21
- queued: status?.queued ?? 0,
25
+ queued: repositoryQueueDepth(facts),
22
26
  ...(status?.triage !== undefined ? { triage: status.triage } : {}),
23
27
  ...(status?.availableUpgrade !== undefined
24
28
  ? { availableUpgrade: status.availableUpgrade }
@@ -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 whose ticket wait ended.
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 builds running work: a build that finished its pipeline
102
- holds no slot while it waits for a merge decision, though it keeps its
103
- workspace until it merges or closes. Priority never preempts a running build.
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`). The build then takes a slot
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 `waiting` on them.
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 dependency
430
- install. The immutable runtime records the exact commit. Adoption compares
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 | Maximum builds running work at once for this repository; builds parked for a merge decision or waiting on other tickets hold no slot. |
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
 
@@ -2642,7 +2655,8 @@ Humans may run `ab dispatch --viewer` from a local checkout to watch dispatch
2642
2655
  elsewhere without taking a lease or starting any dispatch work. The optional
2643
2656
  `--dispatched-by <label>` is descriptive input: every frame shows `viewer` or
2644
2657
  `viewer · dispatched by <label>`. Plain/non-TTY output prints the same at startup
2645
- and emits state changes; with `--web` it prints only the web UI's URL. `--once`
2658
+ and emits state changes; with `--web` a TTY viewer shows the web UI's URL beside
2659
+ its `viewer` line, and plain/non-TTY output prints only the URL. `--once`
2646
2660
  reads one snapshot; `--interval <s>` sets the viewer polling cadence. Startup intake flags and explicit `--repository` are
2647
2661
  rejected. With no recorded dispatcher run the viewer says no dispatcher has run
2648
2662
  for this project yet; with a run whose effective configuration is not yet
@@ -2650,7 +2664,11 @@ durable it waits.
2650
2664
 
2651
2665
  Viewer uses the dispatch frontend with canonical repository facts for status,
2652
2666
  settings, harvest and migrations, bypassing the dispatch presentation event feed
2653
- and its checkpoints. Fresh viewers reuse server reductions; idle refreshes read
2667
+ and its checkpoints. That status, like the web dashboard's and the operator
2668
+ queries', describes the run holding repository authority, or that held it last:
2669
+ an overlapping run that starts, yields and stops never replaces it. A run
2670
+ replaces it by recording a tick boundary, or by starting once it has stopped or
2671
+ before it has ticked. Fresh viewers reuse server reductions; idle refreshes read
2654
2672
  zero event rows. Its one ticket-source read is the header's triage count, at
2655
2673
  most once per 60 s. It has no child, lease, execution wiring or upgrade-release timer.
2656
2674
  All existing shared-store controls remain: merge/hold, build/global pause/resume,
@@ -2694,13 +2712,46 @@ restack state and conflicting files remain in detail, along with every child's
2694
2712
  ticket id, title and live phase (or queued/merged), open-first counts, verification
2695
2713
  steps and current outcomes, repair instructions, and the merge rule. Cancelled
2696
2714
  children are omitted; historical missing titles or filenames are explicit.
2697
- A work build that finished its pipeline and must re-verify or reconcile, or
2698
- whose ticket wait ended (`resume`), shows the same slot-wait alert on its row,
2699
- and `ab builds` appends it to the phase. A build whose only open escalation is
2700
- its open ticket wait shows `WAITING` and a yellow (amber on the web)
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)
2701
2722
  `waiting on <ids> — <reason>` line, distinct from a red `BLOCKED` question;
2702
2723
  `r` / RESUME answers the wait and ends it early.
2703
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
+
2704
2755
 
2705
2756
  On a TTY, execution-mode `ab dispatch` renders one fixed interactive frame that fills the
2706
2757
  terminal's height. Its header stays on the top row, the legend or prompt panel
@@ -2726,9 +2777,15 @@ the configured source's bounded state count itself, at most once per 60 s
2726
2777
  while it runs. It keeps its last good value through failed reads and through
2727
2778
  headless ticks that publish no count, and shows `–` until its first read
2728
2779
  succeeds or when the source has no state counts (Linear). `queue` is the
2729
- ready-ticket queue depth, and `active` is occupied capacity (every unfinished
2730
- build except one waiting on tickets, plus finished builds running work again)
2731
- against root `capacity`. Observation pressure is not a header counter: the
2780
+ ready-ticket queue depth measured by the latest completed ticket scan,
2781
+ whichever dispatcher run recorded it (0 before any scan), so an overlapping
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
2732
2789
  Harvest row shows a run's observations, and `ab harvest status` reports
2733
2790
  Harvest state.
2734
2791
  The execution-mode frontend checkpoints only the latest run start and the sampled
@@ -2760,11 +2817,12 @@ from the builds by one blank line. The duplicate startup banner is
2760
2817
  suppressed; `--plain` and non-TTY output remain line-oriented and unchanged. A
2761
2818
  satisfied verify skip carries the literal `skipped` qualifier, so it remains
2762
2819
  distinct from a pass without color. Every nonterminal build has a row,
2763
- including `queued` builds that have not attached a runner. A queued row shows
2764
- its ticket, slug, literal `QUEUED` status, and either the pending dispatch
2765
- boundary or the latest durable `dispatch.failed` stage, attempt, and error.
2766
- While the repository hold is set, only queued rows gain a yellow `(held)`
2767
- modifier beside `QUEUED`; intake being off without that hold shows neither
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
2768
2826
  `repository PAUSED` nor `(held)`.
2769
2827
 
2770
2828
  A build row previews each unresolved blocker and setup error as at most three
@@ -2806,35 +2864,38 @@ eligibility, plus the state-specific `p pause`, `p cancel pause`, or `r resume`
2806
2864
  action; queued builds offer `d discard`. Merge requires readiness; hold may be
2807
2865
  recorded before readiness. There is no repository merge toggle.
2808
2866
 
2809
- A running build reads `PAUSING` after `p` appends its pause request and before
2810
- the live session stops and the kernel records its suspension. Pause interrupts
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
2811
2871
  live agent work immediately; resume continues where it stopped when supported,
2812
2872
  while remote or unsupported sessions rerun fresh with a recorded fallback reason.
2813
2873
  Without a live agent, acknowledgement still waits for a safe boundary. During
2814
2874
  that window `p` appends
2815
- the opposing resume request, cancels the stale pause, and projects the build
2816
- back to `RUNNING`. The cancelling resume holds back nothing, including merge
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
2817
2877
  readiness and janitor retry backoff. An acknowledged paused build offers only `r resume` and reads
2818
- `RESUMING` until the kernel acknowledges that request; there is no gesture to
2878
+ `QUEUED` with a `resume` note until it is admitted to a slot again; there is no gesture to
2819
2879
  cancel a pending resume. Blocked takes visual precedence, including when the
2820
2880
  build is also operator-paused, and `r` opens the existing feedback field. Keys
2821
2881
  that are not offered for the current build state are no-ops and append no
2822
2882
  control event.
2823
2883
 
2824
2884
  Global-row `p` is the repository-wide version — the same walk `ab pause --all`
2825
- runs sessionless: it durably holds every `QUEUED` build, turns intake off, and
2826
- appends `build.pause-requested` to every `RUNNING` build, so the repository
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
2827
2887
  comes to rest before a machine, terminal, or dispatcher restart. The hold is the `dispatcher.pause-set` repository fact, written before
2828
2888
  the intake fact; while it is set no dispatcher tick attaches a runner to a
2829
2889
  queued build, whether through interrupted-dispatch recovery, startup resume, or
2830
- the lease sweep. The per-build walk skips `PAUSING` — the bulk control never
2831
- cancels a pending pause, unlike build-row `p` — and skips `QUEUED`, `PAUSED`,
2832
- `RESUMING`, and `BLOCKED` without error; queued builds are covered by the hold
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
2833
2894
  instead. Global-row `r` reverses all of it: the hold released,
2834
- `build.resume-requested` on every `PAUSED` build (including builds paused by
2895
+ `build.resume-requested` on every paused build (including builds paused by
2835
2896
  hand beforehand), and intake back on. A released queued build becomes
2836
2897
  launchable again on the next ordinary tick, with no further operator action. `r`
2837
- does not touch `BLOCKED` builds, whose blockers still need the per-build `r`
2898
+ does not touch blocked builds, whose blockers still need the per-build `r`
2838
2899
  feedback field. Both report the affected build count, the hold, and the new
2839
2900
  intake value on the notice row. One carve-out remains: the harvest gate is
2840
2901
  independent, so a harvest session can still start after a bulk pause (`h` stops
@@ -2886,7 +2947,10 @@ as builds; its internal run id is not shown. One row selects the oldest
2886
2947
  unresolved ordinary failure, exhaustion, or escalation attention before the
2887
2948
  oldest open run, so later running/completed work cannot hide it. Completed runs,
2888
2949
  an idle paused repository, acknowledged recovery exhaustion, and dismissed
2889
- escalation have no row. A paused open run freezes and reads `PAUSED`. Ordinary
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
2890
2954
  failure reads red `FAILED`, marks the stopped step, shows automatic progress,
2891
2955
  and offers `p resume`. Exhaustion remains red, says `recovery exhausted — human
2892
2956
  attention required`, shows stopped step/pending count, and offers `p
@@ -2931,10 +2995,10 @@ to the build's event log and apply the same write-time checks.
2931
2995
  | Intent | CLI | Dashboard | Durable event(s) |
2932
2996
  |---|---|---|---|
2933
2997
  | Discard interrupted dispatch | — | Select a queued build and press `d`. | `build.discard-requested` |
2934
- | Pause | `ab pause <slug> [--store <ref>]` | Select a `RUNNING` build and press `p`; press `p` again while `PAUSING` to cancel the pending pause. | `build.pause-requested`; cancellation reuses `build.resume-requested` |
2935
- | Resume | `ab resume <slug> [--store <ref>]` | Select a `PAUSED` build and press `r`. | `build.resume-requested` |
2936
- | 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 |
2937
- | 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 |
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 |
2938
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` |
2939
3003
  | Restack node | `ab restack <node> [--store <ref>]` | CLI/tool request; normal safety gates apply. | `node.restack-requested`, then `node.restack-satisfied` |
2940
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` |
@@ -3217,7 +3281,11 @@ runtime; historical starts without metadata display `runtime unrecorded`.
3217
3281
  With `[policy].maxOpenPrs` configured and a dispatcher holding the
3218
3282
  repository, an `open-PR backpressure:` line (`capacity.backpressure` in JSON:
3219
3283
  `active`, `openPrs`, `maxOpenPrs`, `resumeOpenPrs`, `excludeHeld`) says whether
3220
- normal intake is paused; the dispatcher records
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
3221
3289
  `dispatcher.open-pr-backpressure-engaged` and `-cleared` only on transitions.
3222
3290
  It also lists the latest ticket scan's ticket and dependency diagnostics
3223
3291
  (`queue:` lines, `ticketDiagnostics` and `dependencyDiagnostics` in JSON),
@@ -3235,7 +3303,15 @@ are the ones something can still be done about. `HEARTBEAT` is mutable runner
3235
3303
  liveness; `PROGRESS` is the age of the latest durable event. A literal
3236
3304
  `diverged` suffix means a nonterminal build still holds a live lease but its
3237
3305
  heartbeat is at least one hour newer than its latest event. It is a visibility
3238
- 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.
3239
3315
 
3240
3316
  | Flag | Effect |
3241
3317
  |---|---|
@@ -3251,7 +3327,8 @@ or `--all` before concluding a build doesn't exist.
3251
3327
  **`ab build status <slug>`** details one build: unresolved escalations, open
3252
3328
  sessions, chronological durable observations, verify progress for the current
3253
3329
  cycle, PR lifecycle, latest event, durable progress age, heartbeat, and lease.
3254
- Every runner attach appears chronologically with its recorded runtime (version,
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,
3255
3332
  commit, source kind/location), or `runtime unrecorded` for historical attaches;
3256
3333
  JSON exposes nullable runtime in `runnerAttaches`. Phases belong to the preceding
3257
3334
  attach boundary. A build created with a [role profile](#profiles) shows a
@@ -3575,7 +3652,8 @@ terminal set keeps waiting for a build to appear), named slugs target exactly
3575
3652
  those builds, and an unknown slug is an error before waiting begins. Inside a
3576
3653
  phase, only the ambient build may be waited on.
3577
3654
 
3578
- At least one `--for <condition>` or `--event <glob>` is required. The condition
3655
+ At least one `--for <condition>` or `--event <glob>` is required. The conditions
3656
+ are lifecycle statuses, not the dashboards' status words. The condition
3579
3657
  vocabulary is closed: `blocked`, `paused`, `running`, `collecting`, `done`, `aborted`,
3580
3658
  `terminal` (done or aborted), `pr=open`, `pr=merged`, `pr=closed`,
3581
3659
  `pr=conflicted`, `phase=<phase>` (a core phase — `plan`, `plan-review`,
@@ -4110,7 +4188,8 @@ only a dispatcher this session started may be cleanly stopped on request.
4110
4188
 
4111
4189
  `ab web [--json]` always permits a read-only browser surface without a dispatcher
4112
4190
  lease. `ab dispatch --web` serves the same UI with the dispatcher; `--plain`
4113
- keeps the URL on stdout and diagnostics on stderr. Loopback binding is the default;
4191
+ keeps the URL on stdout and diagnostics on stderr, and a TTY dashboard keeps it
4192
+ right-aligned on its top line in every view and across runtime upgrades. Loopback binding is the default;
4114
4193
  non-loopback serving has no access control. The overview and build detail show progress,
4115
4194
  and each build page ends with that build's timeline. The analytics page
4116
4195
  (`/analytics`) shows a Gantt of builds active in a window (24 hours, 7 days,
@@ -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 requesting reconcile, verification or, for an optimization node,
102
- propose is admitted before normal ticket claims; urgent work goes first. The request is durable: a
103
- prepared verification cycle, a restack conflict or an open proposal request,
104
- with no runner yet. Until the node holds its slot, intake reserves one
105
- slot for it, and the dispatcher checks its admission every tick regardless of
106
- idle node polling, so a slot freed in any tick goes to the node, not to a new
107
- normal claim. Its candidate occupancy excludes itself and capacity-bearing blocked or
108
- paused descendants, following accepted source-qualified build target ancestry.
109
- Running descendants and unrelated builds still count; ordinary blocked and
110
- paused work retains its slot for every other admission, except a work build
111
- parked by a ticket wait, which holds none. Provisioning reserves
112
- node occupancy before the runner starts. This exception never raises the budget
113
- for new claims. Status and both dashboards report actual occupancy, configured
114
- capacity, effective display capacity and the nodes using descendant-held slots.
115
- Status, `ab builds` and both dashboards report each node waiting for a slot
116
- ahead of normal ticket claims, marking urgent ones. Idle collecting nodes remain free.
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 takes a runner slot, gets a workspace for the run, and releases it once
299
- the starting value is recorded.
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
@@ -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 include `attention`,
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 effective status.
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
- A build parked on a ticket wait lists as `waiting`, with `waiting on <ids>`
291
- after its phase; in `--json` its `status` stays `blocked` and `wait` carries
292
- `state` and `tickets`.
293
- - `ab build status <slug> [--events N]` — one build's detail, chronological runner
294
- attaches with runtime identity, and recent events. Historical runtime is null
295
- in JSON and unrecorded in human output.
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, and the
298
- latest scan's queue diagnostics and startup warnings, and each configured
299
- hook's last delivery, backlog and failure. Historical runtime is
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). Run
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 free a build's slot while it waits on other work, use
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 holds no slot either, and takes one ahead of normal claims once its
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 `waiting` / `WAITING`,
901
- with an amber `waiting on <ids> — <reason>` line, is a ticket wait. It is not
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.11.0",
8
- "@defrex/autobuild": "1.11.0",
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"