@defrex/autobuild 1.12.0 → 1.13.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 +435 -160
- package/bin/ab-build-runner.ts +8 -0
- package/docs/answering-blocked-builds.md +25 -3
- package/docs/architecture.md +124 -53
- package/docs/cli.md +1 -1
- package/docs/configuration.md +110 -15
- package/docs/dispatcher.md +19 -8
- package/docs/integration-overview.md +1 -1
- package/docs/integration-tree.md +12 -9
- package/docs/merge-policy.md +7 -2
- package/docs/operating.md +5 -3
- package/docs/operator-api.md +46 -23
- package/docs/operator-surfaces.md +7 -6
- package/docs/optimization-nodes.md +7 -6
- package/docs/plugin-authoring.md +46 -18
- package/docs/remote-store-protocol.md +51 -12
- package/docs/remote-ticket-protocol.md +85 -38
- package/docs/restacking.md +48 -3
- package/docs/setup.md +2 -1
- package/docs/ticket-migration.md +2 -2
- package/docs/ticket-sources.md +23 -8
- package/docs/tickets.md +4 -4
- package/docs/troubleshooting.md +17 -2
- package/docs/verification.md +3 -1
- package/package.json +3 -3
- package/packages/core/src/cli/build-control.ts +72 -6
- package/packages/core/src/cli/dashboard/actions.ts +4 -0
- package/packages/core/src/cli/dashboard/integration-row.ts +43 -19
- package/packages/core/src/cli/dashboard/model.ts +14 -8
- package/packages/core/src/cli/dashboard/poll.ts +218 -10
- package/packages/core/src/cli/dashboard/queue.ts +21 -10
- package/packages/core/src/cli/dashboard/row-text.ts +2 -1
- package/packages/core/src/cli/dashboard/vocabulary.ts +5 -1
- package/packages/core/src/cli/dispatch-frontend.ts +2 -1
- package/packages/core/src/cli/dispatch-tickets.ts +33 -12
- package/packages/core/src/cli/dispatch.ts +527 -144
- package/packages/core/src/cli/help.ts +38 -24
- package/packages/core/src/cli/main.ts +7 -5
- package/packages/core/src/cli/publication-settlement.ts +4 -0
- package/packages/core/src/cli/remote-poll.ts +22 -5
- package/packages/core/src/cli/repository-status.ts +19 -9
- package/packages/core/src/cli/status.ts +23 -11
- package/packages/core/src/cli/store-opening.ts +12 -0
- package/packages/core/src/cli/ticket-start.ts +3 -3
- package/packages/core/src/cli/ticket.ts +12 -11
- package/packages/core/src/cli/wait.ts +8 -28
- package/packages/core/src/cli/watch.ts +113 -50
- package/packages/core/src/config/reference-metadata.ts +7 -1
- package/packages/core/src/config/reference.ts +5 -2
- package/packages/core/src/config/schema.ts +51 -16
- package/packages/core/src/events/payloads.ts +74 -14
- package/packages/core/src/events/repository.ts +14 -3
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +27 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/0a10010ee5cf2e47.json +577 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/227701361be6d1e0.json +490 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/76e5043bae7a80ab.json +86 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/87a917802870bbed.json +87 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/9d85616e5b9e24c1.json +500 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/c7c94fbe7f63cf07.json +84 -0
- package/packages/core/src/kernel/clean-restack-policy.ts +40 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +243 -107
- package/packages/core/src/kernel/done-escalations.ts +269 -0
- package/packages/core/src/kernel/engine.ts +28 -9
- package/packages/core/src/kernel/integration-landing.ts +24 -4
- package/packages/core/src/kernel/integration-stack.ts +39 -0
- package/packages/core/src/kernel/janitor-failure.ts +20 -1
- package/packages/core/src/kernel/log-index-value.ts +3 -0
- package/packages/core/src/kernel/log-index.ts +41 -2
- package/packages/core/src/kernel/open-pr-backpressure.ts +3 -3
- package/packages/core/src/kernel/reducer-registry.ts +3 -0
- package/packages/core/src/kernel/reducer-revisions.ts +15 -0
- package/packages/core/src/kernel/reducer.ts +27 -7
- package/packages/core/src/kernel/repository-attention.ts +14 -5
- package/packages/core/src/kernel/ticket-starts.ts +15 -4
- package/packages/core/src/kernel/verify-stages.ts +46 -7
- package/packages/core/src/operator/attention.ts +28 -3
- package/packages/core/src/operator/done-escalations.ts +38 -0
- package/packages/core/src/operator/presentation.ts +1 -1
- package/packages/core/src/operator/protocol.ts +8 -5
- package/packages/core/src/operator/query.ts +33 -19
- package/packages/core/src/operator/registry.ts +17 -13
- package/packages/core/src/operator/ticket-start.ts +8 -7
- package/packages/core/src/operator/tickets.ts +28 -9
- package/packages/core/src/plugin-sdk/index.ts +10 -0
- package/packages/core/src/plugins/manifest.ts +14 -1
- package/packages/core/src/ports/forge/create.ts +8 -0
- package/packages/core/src/ports/forge/github-transport.ts +5 -1
- package/packages/core/src/ports/forge/github.ts +3 -0
- package/packages/core/src/ports/tickets/contract.ts +147 -76
- package/packages/core/src/ports/tickets/create.ts +47 -7
- package/packages/core/src/ports/tickets/fake.ts +8 -4
- package/packages/core/src/ports/tickets/file-codec.ts +4 -3
- package/packages/core/src/ports/tickets/file.ts +7 -3
- package/packages/core/src/ports/tickets/github.ts +1 -0
- package/packages/core/src/ports/tickets/grants.ts +11 -3
- package/packages/core/src/ports/tickets/hosted-index.ts +5 -0
- package/packages/core/src/ports/tickets/linear.ts +28 -9
- package/packages/core/src/ports/tickets/migration.ts +4 -4
- package/packages/core/src/ports/tickets/operations.ts +4 -2
- package/packages/core/src/ports/tickets/priority-labels.ts +213 -0
- package/packages/core/src/ports/tickets/priority.ts +127 -21
- package/packages/core/src/ports/tickets/remote-protocol.ts +10 -0
- package/packages/core/src/ports/tickets/remote.ts +104 -11
- package/packages/core/src/ports/tickets/revision.ts +5 -3
- package/packages/core/src/ports/tickets/search.ts +9 -0
- package/packages/core/src/ports/tickets/tree.ts +8 -6
- package/packages/core/src/ports/types.ts +30 -15
- package/packages/core/src/ports/workspace/build-execution.ts +4 -0
- package/packages/core/src/ports/workspace/builtin-capabilities.ts +4 -0
- package/packages/core/src/ports/workspace/create.ts +16 -3
- package/packages/core/src/ports/workspace/execution-exit-marker.ts +41 -0
- package/packages/core/src/ports/workspace/recovery-step.ts +101 -0
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +510 -145
- package/packages/core/src/processes/build-execution-state.ts +4 -0
- package/packages/core/src/processes/build-runner.ts +14 -1
- package/packages/core/src/processes/dispatcher.ts +544 -212
- package/packages/core/src/processes/execution-settlement.ts +1 -0
- package/packages/core/src/processes/harvest-runner.ts +12 -7
- package/packages/core/src/processes/infrastructure-failure-budget.ts +7 -2
- package/packages/core/src/processes/invocation-budget.ts +176 -0
- package/packages/core/src/processes/publication-loss.ts +38 -3
- package/packages/core/src/processes/workspace-preservation.ts +86 -15
- package/packages/core/src/store/contract.ts +81 -3
- package/packages/core/src/store/event-reads.ts +30 -1
- package/packages/core/src/store/reduced-reads.ts +23 -0
- package/packages/core/src/store/reducer-value-shapes.json +6628 -6469
- package/packages/core/src/store/reducer-value-validation.ts +181 -33
- package/packages/core/src/store/remote/client.ts +169 -29
- package/packages/core/src/store/remote/compatibility.ts +113 -56
- package/packages/core/src/store/remote/credentials.ts +4 -1
- package/packages/core/src/store/remote/protocol.ts +3 -0
- package/packages/core/src/store/remote/released-clients.json +11 -0
- package/packages/core/src/store/remote/released-reducer-values/1.13.0.json +35966 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +18 -16
- package/packages/core/src/store/remote/released-value-policy.ts +144 -0
- package/packages/core/src/store/remote/retry.ts +406 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +144 -10
- package/packages/core/src/testing/index.ts +2 -0
- package/packages/core/src/testing/invocation-budget.ts +42 -0
- package/packages/core/src/testing/reduced-read-budget.ts +381 -18
- package/packages/core/src/testing/released-value-coverage.ts +423 -0
- package/packages/core/src/web/overview-source.ts +19 -6
- package/skills/guide/SKILL.md +138 -67
- package/skills/guide/references/integration-tree.md +12 -9
- package/skills/guide/references/merge-policy.md +7 -2
- package/skills/guide/references/operator-api.md +46 -23
- package/skills/guide/references/optimization-nodes.md +7 -6
- package/skills/guide/references/plugin-authoring.md +46 -18
- package/skills/guide/references/remote-store-protocol.md +51 -12
- package/skills/guide/references/remote-ticket-protocol.md +85 -38
- package/skills/guide/references/restacking.md +48 -3
- package/skills/guide/references/setup.md +2 -1
- package/skills/guide/references/ticket-migration.md +2 -2
- package/skills/operate/SKILL.md +82 -51
- package/skills/plan/SKILL.md +4 -3
- package/skills/spec/SKILL.md +9 -5
- package/skills/tickets/SKILL.md +25 -17
- package/templates/hosted-service/package.json +2 -2
package/skills/guide/SKILL.md
CHANGED
|
@@ -86,18 +86,20 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
86
86
|
because grooming the node's objective and budget is the dispatch decision for
|
|
87
87
|
them (see [optimization nodes](references/optimization-nodes.md#proposer-phase)). The dispatcher
|
|
88
88
|
claims tickets that pass the `[tickets]` ready
|
|
89
|
-
gate — urgent
|
|
89
|
+
gate — by level, `urgent`, `high`, `normal`, then `low`, each level in the
|
|
90
|
+
source's order —
|
|
90
91
|
chooses a short immutable slug from the final conforming spec, and
|
|
91
92
|
starts builds up to the top-level `capacity` bound, after slots reserved for
|
|
92
93
|
integration nodes awaiting verification, reconcile or propose, for finished builds
|
|
93
94
|
waiting to re-verify or reconcile, and for builds resuming after an answered
|
|
94
95
|
escalation, a resumed pause or an ended ticket wait.
|
|
95
|
-
Free slots go to `manual` start requests, then
|
|
96
|
-
urgent
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
priority
|
|
100
|
-
|
|
96
|
+
Free slots go to `manual` start requests, then, for each level from
|
|
97
|
+
urgent to low, that level's waiting work, then its start requests and
|
|
98
|
+
ready tickets. A build takes its ticket's level, decided at claim (a
|
|
99
|
+
non-`manual` start request sets the request's level instead), and
|
|
100
|
+
`ab priority <slug> urgent|high|normal|low` changes an active build's
|
|
101
|
+
level. An optimization node's attempts claim at the node's current
|
|
102
|
+
level instead, so `ab priority <node> urgent` speeds up its attempts
|
|
101
103
|
claimed afterwards. Priority orders free slots only.
|
|
102
104
|
`capacity` counts slots. A build takes one by admission and holds it while
|
|
103
105
|
Autobuild owes its next move, runner or not. It holds none while it waits on
|
|
@@ -106,10 +108,10 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
106
108
|
question does not release the slot while work Autobuild started goes on:
|
|
107
109
|
other steps of its verify stage, or a recorded launch and its execution.
|
|
108
110
|
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
|
|
111
|
+
a wait ends it waits for a slot again ahead of ticket claims at its level, so
|
|
110
112
|
occupancy never exceeds `capacity`. Priority never preempts a running build.
|
|
111
113
|
With `[policy].maxOpenPrs` set, open-PR backpressure pauses new ordinary
|
|
112
|
-
normal
|
|
114
|
+
claims of `high`, `normal` and `low` tickets (not `ab start` requests) once that many root PRs are open and unmerged, until
|
|
113
115
|
the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are
|
|
114
116
|
equal); urgent claims and in-flight work continue, and capacity is
|
|
115
117
|
unchanged.
|
|
@@ -135,7 +137,7 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
135
137
|
filter, and its answer resumes the declaring phase like a wait answer. An
|
|
136
138
|
operator may still end a wait early by answering its escalation (cause
|
|
137
139
|
`operator`). A build whose runner has stopped then waits as a `resume`
|
|
138
|
-
request and takes a slot ahead of
|
|
140
|
+
request and takes a slot ahead of ticket claims at its level (higher levels first). If its target moved, it first restacks onto the
|
|
139
141
|
target's current head (published work is replayed as one change, and a
|
|
140
142
|
conflict reconciles first unless it is confined to declared `[generated]`
|
|
141
143
|
files, which the kernel regenerates; with nothing published, the branch fast-forwards
|
|
@@ -200,7 +202,9 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
200
202
|
starts no agent; conflicts enter `reconcile`, then verification, except
|
|
201
203
|
that conflicts only in declared [`[generated]`](#generated) files are
|
|
202
204
|
regenerated by their commands with no agent. A clean
|
|
203
|
-
replay after a verify or finalize wait re-verifies on the restacked base
|
|
205
|
+
replay after a verify or finalize wait re-verifies on the restacked base, and
|
|
206
|
+
a clean awaiting-merge restack of a root-targeting leaf re-runs the steps
|
|
207
|
+
opted in by `afterCleanRestack` before it lands. The leaf
|
|
204
208
|
terminates **merged** or **closed**. Transient leaf publication failures park
|
|
205
209
|
on a durable six-retry schedule, independently of agent phase attempts.
|
|
206
210
|
See the [replay reference](references/restacking.md).
|
|
@@ -541,7 +545,11 @@ The distinctions that change an administrator's answer:
|
|
|
541
545
|
before constructing any further member. Already launched siblings settle first.
|
|
542
546
|
A waiting leaf with completed verification retains its receipts after a clean
|
|
543
547
|
rewrite when build-owned config is unchanged, even when the rewrite replaces
|
|
544
|
-
the pin commit's ancestry.
|
|
548
|
+
the pin commit's ancestry. Two clean restacks instead start a new cycle that
|
|
549
|
+
the earlier receipts cannot satisfy: a root-targeting leaf's clean landing
|
|
550
|
+
restack whose frozen `afterCleanRestack` policy enables any step re-verifies
|
|
551
|
+
on the restacked base and head, and a clean wait-resume restack after a
|
|
552
|
+
verify or finalize ticket wait re-verifies on the resumed base. Changed config still supersedes while waiting; a
|
|
545
553
|
future verification cycle always captures fresh config before running steps.
|
|
546
554
|
Old pass/skip receipts cannot satisfy that cycle, and supersession creates no
|
|
547
555
|
failure or failure-budget charge. Unchanged config on a descendant head retains
|
|
@@ -571,7 +579,9 @@ The distinctions that change an administrator's answer:
|
|
|
571
579
|
per build, and the write proceeds; `history.retained` (leaf) and
|
|
572
580
|
`node.history-retained` (node) record the non-forge outcomes. Workspace
|
|
573
581
|
preservation of unpublished commits is strict: archive ref, else store copy
|
|
574
|
-
(`workspace.commits-retained`), else the release is refused.
|
|
582
|
+
(`workspace.commits-retained`), else the release is refused. Abort cleanup
|
|
583
|
+
is the one exception: when preservation fails it records
|
|
584
|
+
`workspace.commits-lost` and releases.
|
|
575
585
|
`github` publishes through GitHub. `local-git` performs no remote/network/`gh`
|
|
576
586
|
operation: durable PR records live under private Git refs, and the review
|
|
577
587
|
locator is `refs/heads/ab/<slug>`. Once merge authorization (auto or consent;
|
|
@@ -881,6 +891,12 @@ must not be repeated. An implement round with no commits over its contribution
|
|
|
881
891
|
base escalates at `implement` instead of requesting publication. After VM stop and lease release, the local kernel
|
|
882
892
|
publishes the exact SHA/branch through a temporary narrow firewall transform,
|
|
883
893
|
verifies it, and performs PR work locally. Ordinary completion deletes the VM.
|
|
894
|
+
The guest runner records its exit on the sandbox filesystem, so a session that
|
|
895
|
+
finished before its VM stopped still settles and publishes: recovery resumes a
|
|
896
|
+
stopped sandbox explicitly under `recoveryTimeoutMs` (default 120000, the cold
|
|
897
|
+
resume plus guest git and push), never past a hosted invocation's deadline, and
|
|
898
|
+
never stops one the provider already reports stopped. `operationTimeoutMs`
|
|
899
|
+
bounds each metadata acknowledgement.
|
|
884
900
|
Branch config, installed skills, relative/package plugins, setup, and phase CLI
|
|
885
901
|
commands resolve from the guest checkout, never dispatcher paths.
|
|
886
902
|
|
|
@@ -974,6 +990,19 @@ and a reason naming the setting. Dashboards and PR summaries call this
|
|
|
974
990
|
checks and branch protections still gate merge. For excluded steps, merged code
|
|
975
991
|
is not re-verified, so breakage that only exists in the combination can merge.
|
|
976
992
|
|
|
993
|
+
Clean-restack re-verification defaults to disabled: omitting
|
|
994
|
+
`[verify].afterCleanRestack` means `false`. An optional boolean
|
|
995
|
+
`[verify.<step>].afterCleanRestack` overrides it in either direction. When a
|
|
996
|
+
root-targeting leaf waiting to land restacks cleanly (including a
|
|
997
|
+
`[[generated]]` regeneration), opted-in steps re-run on the restacked head
|
|
998
|
+
before it lands; the rest record `skipped` with
|
|
999
|
+
`skipCause = "clean-restack-policy"` ("skipped by clean-restack policy").
|
|
1000
|
+
A failure routes through the ordinary repair loop. Opt in per step on cheap
|
|
1001
|
+
deterministic checks, for example `afterCleanRestack = true` in
|
|
1002
|
+
`[verify.lint]`: every target move under a waiting leaf re-runs them. Leaves
|
|
1003
|
+
targeting an integration node rely on the node's verification instead. See
|
|
1004
|
+
[Restacking](references/restacking.md#clean-restack-re-verification).
|
|
1005
|
+
|
|
977
1006
|
|
|
978
1007
|
`steps` orders stages: a name is a singleton, an array groups concurrent
|
|
979
1008
|
members. Every name becomes a `verify:<step>` phase with its own table. Those
|
|
@@ -988,6 +1017,7 @@ subtables are part of this section — their fields are listed here.
|
|
|
988
1017
|
| `skill` | — | **required when `kind = "agent"`**, nonempty string | Installed skill name to run (e.g. a repository-authored `"verify-acceptance"`). |
|
|
989
1018
|
| `paths` | — | optional nonempty array of positive repository-relative globs | Makes either step kind apply when any changed path matches any selector. Omitted means unconditional. |
|
|
990
1019
|
| `afterReconcile` | repository: `true`; step: inherited | boolean | Step override wins over `[verify].afterReconcile`; false skips this step after reconciliation only. |
|
|
1020
|
+
| `afterCleanRestack` | repository: `false`; step: inherited | boolean | Step override wins over `[verify].afterCleanRestack`; true re-runs this step on the restacked head after a clean awaiting-landing restack of a root-targeting leaf, false records it skipped. |
|
|
991
1021
|
| `always` | — | optional boolean | `true` makes the step unconditional and mandatory (a plan cannot deselect it); `false` is equivalent to omission. |
|
|
992
1022
|
|
|
993
1023
|
### Choosing verify stages
|
|
@@ -1107,9 +1137,10 @@ reconcile reuses it.
|
|
|
1107
1137
|
If the approved selection later names any step absent from the cycle's pinned
|
|
1108
1138
|
configured universe, the entire selection falls back to all configured optional
|
|
1109
1139
|
steps. The kernel records one observation per cycle and plan revision naming
|
|
1110
|
-
the unknown steps. Mandatory steps, path applicability and post-reconcile
|
|
1111
|
-
still apply. A valid selection continues to skip
|
|
1112
|
-
steps. Strict validation when depositing a new plan
|
|
1140
|
+
the unknown steps. Mandatory steps, path applicability and post-reconcile and
|
|
1141
|
+
clean-restack policies still apply. A valid selection continues to skip
|
|
1142
|
+
genuinely omitted optional steps. Strict validation when depositing a new plan
|
|
1143
|
+
is unchanged.
|
|
1113
1144
|
|
|
1114
1145
|
Cross-field rules the validator actually enforces — each is an **error**:
|
|
1115
1146
|
|
|
@@ -1220,14 +1251,19 @@ SHAs could not be inspected. An environment that never started executing holds
|
|
|
1220
1251
|
no unpublished work: objects its checkout lacks mean nothing to preserve, so
|
|
1221
1252
|
cleanup records `workspace.commits-preserved` (or `workspace.commits-retained`)
|
|
1222
1253
|
carrying forward earlier preserved heads, then releases and replaces it. Unknown fencing, inspection, transport, or
|
|
1223
|
-
receipt-write outcomes leave the workspace and snapshots intact
|
|
1254
|
+
receipt-write outcomes leave the workspace and snapshots intact, except under
|
|
1255
|
+
abort cleanup, which records `workspace.commits-lost` and tears the workspace
|
|
1256
|
+
down. A workspace
|
|
1224
1257
|
flagged by `workspace.cleanup-required` is never launched into: the dispatcher
|
|
1225
1258
|
releases it and provisions the next generation. Provisioning cut off by a
|
|
1226
1259
|
recorded dispatcher teardown is the exception: the next invocation asks the
|
|
1227
1260
|
provider to verify and finish the same generation, and if it cannot, the
|
|
1228
1261
|
replacement consumes no infrastructure attempt. A preservation or release
|
|
1229
1262
|
failure is recorded against its build, as an infrastructure failure or janitor
|
|
1230
|
-
attention, and never stops the dispatcher from advancing other builds.
|
|
1263
|
+
attention, and never stops the dispatcher from advancing other builds. The
|
|
1264
|
+
recorded error and the infrastructure-limit escalation name the failed recovery
|
|
1265
|
+
step: `resume`, `fence`, `preserve` or `cleanup`. Work cut short by a hosted
|
|
1266
|
+
invocation's deadline records nothing and retries on the next invocation.
|
|
1231
1267
|
Fencing is revalidated after restart; a saved receipt alone never authorizes
|
|
1232
1268
|
cleanup of a newer execution. Current recovery notes are linked by the session
|
|
1233
1269
|
manifest's `workspaceRecovery` field. Recovery notes apply to the next session
|
|
@@ -1575,8 +1611,8 @@ backpressure keys `maxOpenPrs` (no default; unset disables backpressure),
|
|
|
1575
1611
|
| `nodeIdlePollSeconds` | `120` | positive integer | Interval between idle node checks; durable activity wakes the next tick. |
|
|
1576
1612
|
| `janitorBackoffMaxSeconds` | `300` | positive integer | Cap on exponential janitor retry delay, starting at 30 seconds. |
|
|
1577
1613
|
| `harvestMaxDrift` | `3` | nonnegative integer | Other builds merged after the oldest unclaimed observation required to start a run; `0` disables drift. |
|
|
1578
|
-
| `maxOpenPrs` | unset | positive integer | Open unmerged root PRs (leaves and integration nodes, not children of a node) at which the dispatcher stops claiming `normal
|
|
1579
|
-
| `resumeOpenPrs` | `maxOpenPrs - 1` | nonnegative integer, at most `maxOpenPrs` | Once engaged, normal claims stay paused until the open root PR count is at or below this. Reaching `maxOpenPrs` takes precedence, so when this equals `maxOpenPrs` claims resume once the count falls below it. Inert without `maxOpenPrs`. |
|
|
1614
|
+
| `maxOpenPrs` | unset | positive integer | Open unmerged root PRs (leaves and integration nodes, not children of a node) at which the dispatcher stops claiming `high`, `normal` and `low` tickets. Urgent claims, in-flight builds, reconciles and landings continue. Unset disables open-PR backpressure. |
|
|
1615
|
+
| `resumeOpenPrs` | `maxOpenPrs - 1` | nonnegative integer, at most `maxOpenPrs` | Once engaged, high, normal and low claims stay paused until the open root PR count is at or below this. Reaching `maxOpenPrs` takes precedence, so when this equals `maxOpenPrs` claims resume once the count falls below it. Inert without `maxOpenPrs`. |
|
|
1580
1616
|
| `excludeHeldOpenPrs` | `false` | boolean | Leave PRs whose active landing command is `hold` out of the count. Inert without `maxOpenPrs`. |
|
|
1581
1617
|
|
|
1582
1618
|
Dispatch failures share one budget across stages until runner attachment. At
|
|
@@ -2400,12 +2436,12 @@ repository's `[tickets]` table selects. These forms therefore work unchanged
|
|
|
2400
2436
|
with the file tracker, Linear, hosted tickets and GitHub issues, without
|
|
2401
2437
|
provider-specific API/MCP calls:
|
|
2402
2438
|
|
|
2403
|
-
- `ab ticket create <title> --body <file> [--state <state>] [--labels a,b] [--blocked-by id,id] [--issues N[:refs],...] [--priority urgent|normal] [--assignees a,b] [--json]`
|
|
2439
|
+
- `ab ticket create <title> --body <file> [--state <state>] [--labels a,b] [--blocked-by id,id] [--issues N[:refs],...] [--priority urgent|high|normal|low] [--assignees a,b] [--json]`
|
|
2404
2440
|
files a ticket. Without `--state`, the source uses `[tickets].createState` or
|
|
2405
2441
|
its own default. A named state is passed through unchanged and the selected
|
|
2406
2442
|
source validates it before creating anything. Blocker ids belong to the same
|
|
2407
2443
|
source and are also checked before the single create call.
|
|
2408
|
-
- `ab ticket update <id> [--title <title>] [--body <file>] [--labels a,b] [--issues N[:refs],...] [--priority urgent|normal] [--assignees a,b] [--json]`
|
|
2444
|
+
- `ab ticket update <id> [--title <title>] [--body <file>] [--labels a,b] [--issues N[:refs],...] [--priority urgent|high|normal|low] [--assignees a,b] [--json]`
|
|
2409
2445
|
partially replaces editable fields. At least one editable flag is required;
|
|
2410
2446
|
`--json` alone is not an update.
|
|
2411
2447
|
- `ab ticket block <id> <blocker-id[,blocker-id...]> [--json]` adds one or more
|
|
@@ -2484,19 +2520,29 @@ when it claims the ticket and turns them into PR and commit keywords; see
|
|
|
2484
2520
|
[issue links in builds](#issue-links-in-builds). On update `--issues` is a
|
|
2485
2521
|
complete replacement and `--issues ''` clears it. A source that cannot store
|
|
2486
2522
|
issue links refuses any write naming them, names itself, and writes nothing.
|
|
2487
|
-
`--priority
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2523
|
+
`--priority` takes `urgent`, `high`, `normal` (the default) or `low`; any
|
|
2524
|
+
other value is refused before anything is written, and an update without it
|
|
2525
|
+
leaves the level alone. Harvest files proposals at `normal`.
|
|
2526
|
+
|
|
2527
|
+
- **Dispatch.** Ready work is claimed by level, `urgent` first and `low`
|
|
2528
|
+
last, each level in source order, and each level goes ahead of lower-level
|
|
2529
|
+
builds waiting for a slot. Blockers and every other gate still apply, and
|
|
2530
|
+
nothing preempts a running build. Only urgent bypasses open-PR backpressure.
|
|
2531
|
+
- **Builds.** A build takes its ticket's level.
|
|
2532
|
+
`ab priority <slug> urgent|high|normal|low` changes an existing build's
|
|
2533
|
+
level without touching its ticket. An optimization attempt ignores its
|
|
2534
|
+
ticket's priority and claims at its node's current level.
|
|
2535
|
+
- **Storage.** File frontmatter `priority = "<level>"` (no key for normal);
|
|
2536
|
+
hosted stores all four. Linear maps Urgent, High and Low to the matching
|
|
2537
|
+
levels and Medium or No priority to `normal`; writing `normal` sets No
|
|
2538
|
+
priority only on an Urgent, High or Low issue. GitHub and plugin sources
|
|
2539
|
+
without the capability store one label, `priority:urgent`, `priority:high`
|
|
2540
|
+
or `priority:low` (none for normal), matched case-insensitively, highest
|
|
2541
|
+
wins. Priority labels show as `priority`, never in `labels`; `--labels`,
|
|
2542
|
+
label filters and `readyLabels`/`createLabels` entries naming one are
|
|
2543
|
+
refused, and labels replacements keep them.
|
|
2544
|
+
- **Output.** JSON ticket output always names one of the four levels, and
|
|
2545
|
+
list output marks every level other than normal.
|
|
2500
2546
|
`--assignees a,b` names usernames, or `me` for the owner of the source's
|
|
2501
2547
|
credential, on a source that stores assignees (GitHub). On create it replaces
|
|
2502
2548
|
the `[tickets].createAssignee` default and `--assignees ''` files the ticket
|
|
@@ -2706,7 +2752,7 @@ verification progress or failure and the merge mode in parentheses. Before
|
|
|
2706
2752
|
a policy decision, label-dependent modes may read `policy pending`. A current
|
|
2707
2753
|
verified node adds `verified`. Only restack conflicts, current verification
|
|
2708
2754
|
failures (file a repair child targeting the node), a node waiting for a runner
|
|
2709
|
-
slot ahead of
|
|
2755
|
+
slot ahead of ticket claims at its level, and readiness awaiting consent add a list
|
|
2710
2756
|
alert. Consent names `l` and `ab merge <slug>`. Branch,
|
|
2711
2757
|
restack state and conflicting files remain in detail, along with every child's
|
|
2712
2758
|
ticket id, title and live phase (or queued/merged), open-first counts, verification
|
|
@@ -2735,12 +2781,12 @@ parenthesized note beside it (`merge decision`) says which case. The header's
|
|
|
2735
2781
|
| green | held | `STARTING` | no runner works yet: provisioning a newly claimed build, a relaunch, spec publication, an upgrade drain, a suspended session |
|
|
2736
2782
|
| green | held | `PAUSING` | a pause was requested and the runner is still stopping |
|
|
2737
2783
|
| 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 |
|
|
2784
|
+
| teal | requested | `QUEUED` | parked work waiting for admission; the note names the request (`resume`, `reconcile`, `verification`, `reopen`, `propose`) and marks urgent, high and low waiters |
|
|
2739
2785
|
| 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
2786
|
| amber | none | `MERGING` | a finished pipeline with merge consent, waiting for merge gates or the forge |
|
|
2741
2787
|
| amber | none | `PAUSED` | an acknowledged pause |
|
|
2742
2788
|
| 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 |
|
|
2789
|
+
| red | none | `BLOCKED` | an open escalation other than a ticket wait's own, or a failed node verification waiting for a repair child; the note `done` marks a completed build whose open escalation awaits acknowledgement |
|
|
2744
2790
|
| dim | none | `CLEANING` | abort cleanup |
|
|
2745
2791
|
|
|
2746
2792
|
`BLOCKED` outranks `PAUSED`. Only a build holding a slot shows `PAUSING` or
|
|
@@ -2817,7 +2863,10 @@ from the builds by one blank line. The duplicate startup banner is
|
|
|
2817
2863
|
suppressed; `--plain` and non-TTY output remain line-oriented and unchanged. A
|
|
2818
2864
|
satisfied verify skip carries the literal `skipped` qualifier, so it remains
|
|
2819
2865
|
distinct from a pass without color. Every nonterminal build has a row,
|
|
2820
|
-
including `queued` builds that have not attached a runner. A
|
|
2866
|
+
including `queued` builds that have not attached a runner. A done build with an
|
|
2867
|
+
open escalation (a post-landing integration audit, or a question still open
|
|
2868
|
+
when abort cleanup completed) also has a row, red `BLOCKED` with the note
|
|
2869
|
+
`done` and its question, holding no slot, until `ab answer` acknowledges it. A newly claimed
|
|
2821
2870
|
build holds its slot from the claim, so its row shows its ticket, slug, green
|
|
2822
2871
|
`STARTING` status, and either the pending dispatch boundary or the latest
|
|
2823
2872
|
durable `dispatch.failed` stage, attempt, and error.
|
|
@@ -3005,7 +3054,7 @@ to the build's event log and apply the same write-time checks.
|
|
|
3005
3054
|
| Stop an optimization node | `ab objective <node> --stop [--drain\|--abort] [--json] [--store <ref>]` | CLI/tool request (`optimization.stop`). Without a flag the objective's stop mode applies (abort by default). Final, and not merge consent. | `optimization.stopped`; dispatcher `build.abort-requested` per aborted attempt, then `attempt.settled` |
|
|
3006
3055
|
| Settle an unmeasured merge | `ab objective <node> --settle-unmeasured <proposal\|build> --policy release-unmeasured [--note <text>] [--json] [--store <ref>]` | CLI/tool request (`optimization.settle-unmeasured`). Only for an attempt listed as an unmeasured merge; releases its slot once, never as accepted. | `attempt.settled {outcome: merged-unmeasured}` |
|
|
3007
3056
|
| Hold merge | `ab hold <slug> [--reason <text>] [--store <ref>]` | Select a build and press `o`, including before readiness. | `build.hold-requested` (optional `reason`), then `landing.command-acknowledged` after native cancellation |
|
|
3008
|
-
| Set build priority | `ab priority <slug> urgent\|normal [--store <ref>]` | CLI/tool request (`builds.control` action `priority`); changes only the build's slot-admission
|
|
3057
|
+
| Set build priority | `ab priority <slug> urgent\|high\|normal\|low [--store <ref>]` | CLI/tool request (`builds.control` action `priority`); changes only the build's slot-admission level, never its ticket, and never preempts running work. On an optimization node it also sets the level its attempts claim at afterwards. `ab start`'s `manual` tier is admission-only, never a build level. | `build.priority-set` |
|
|
3009
3058
|
| Answer blockers with guidance | `ab answer <slug> <text> [--store <ref>]` | Select a blocked build, press `r`, enter text, then Enter. | One `escalation.answered` with `resolution: guidance` per applicable blocker. |
|
|
3010
3059
|
| Retry blockers without guidance | `ab answer <slug> [--store <ref>]` | Open the same `r` field and press Enter empty or whitespace-only. | One `escalation.answered` with `resolution: retry` per applicable blocker. |
|
|
3011
3060
|
| Dismiss cited finding chains | `ab answer <slug> --dismiss [--store <ref>]` | CLI only; build detail names the command. | One `escalation.answered` with `resolution: dismiss-finding` per blocker that cites a real review finding. |
|
|
@@ -3013,7 +3062,7 @@ to the build's event log and apply the same write-time checks.
|
|
|
3013
3062
|
| Revise spec from a file | `ab answer <slug> --revise-spec <file> [--store <ref>]` | CLI only; build detail names the command. | For leaves, human `escalation.answered` then kernel `spec.revised`; eligible nodes publish `spec.revised` with operator provenance. |
|
|
3014
3063
|
| Re-import revised ticket spec | `ab answer <slug> --revise-spec-from-ticket [--store <ref>]` | CLI only; build detail names the command. | The same leaf answer or direct node `spec.revised` protocol. |
|
|
3015
3064
|
| Reopen a finished leaf | `ab reopen <slug> [--feedback <text>] [--revise-spec <file> \| --revise-spec-from-ticket] [--store <ref>]` | CLI/tool request (`builds.reopen`); only for a leaf waiting for its merge decision. Feedback alone returns to implement; a spec revision restarts from plan; the PR and branch are kept. | `build.reopened`; with a spec, kernel `spec.revised` with operator provenance |
|
|
3016
|
-
| Start one ticket | `ab start <ticket-id> [--priority manual\|urgent\|normal] [--cancel] [--json] [--store <ref>]` | CLI/tool request (`tickets.start`, optional `priority`); works while intake is off or open-PR backpressure is engaged, takes a free slot in its priority's admission tier, and claims no other ticket. | `ticket.start-requested {priority}` (or `ticket.start-cancelled`), then one dispatcher `ticket.start-settled` with its outcome and
|
|
3065
|
+
| Start one ticket | `ab start <ticket-id> [--priority manual\|urgent\|high\|normal\|low] [--cancel] [--json] [--store <ref>]` | CLI/tool request (`tickets.start`, optional `priority`); works while intake is off or open-PR backpressure is engaged, takes a free slot in its priority's admission tier, and claims no other ticket. | `ticket.start-requested {priority, level?}` (or `ticket.start-cancelled`), then one dispatcher `ticket.start-settled` with its outcome and tier |
|
|
3017
3066
|
| Abort | `ab abort <slug> [--to triage\|ready] [--reason <text>] [--store <ref>]` | Select any non-terminal build and press `a`, then Enter to confirm (Escape cancels); the dashboard aborts to triage. | `build.abort-requested`, then repository `ticket.handed-back` after cleanup moves the ticket (an optimization attempt instead settles `aborted` and its ticket moves to the rejected role) |
|
|
3018
3067
|
|
|
3019
3068
|
`ab start <ticket-id>` is for working one ticket while intake stays off — a
|
|
@@ -3037,15 +3086,15 @@ say why it could not start. While pending, the request is listed by
|
|
|
3037
3086
|
withdraws it.
|
|
3038
3087
|
|
|
3039
3088
|
`--priority` picks the request's slot-admission tier. `manual`, the default, goes
|
|
3040
|
-
ahead of every waiting build and ticket claim, urgent ones included.
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3089
|
+
ahead of every waiting build and ticket claim, urgent ones included. A level
|
|
3090
|
+
tier, `urgent`, `high`, `normal` or `low`, waits for waiting work at that level
|
|
3091
|
+
or above (nodes and finished or waiting builds that must run again) and for
|
|
3092
|
+
every higher level's claims, then goes ahead of that level's ready tickets and
|
|
3093
|
+
all lower-level work. A pending request reserves its slot ahead of the tiers it
|
|
3045
3094
|
outranks until it settles or is cancelled. Every tier bypasses intake off and
|
|
3046
3095
|
open-PR backpressure for the named ticket only, and none preempts a running
|
|
3047
|
-
build. The claimed build
|
|
3048
|
-
|
|
3096
|
+
build. The claimed build takes the request's level, or its ticket's level for
|
|
3097
|
+
a `manual` request; `manual` is never a build level.
|
|
3049
3098
|
|
|
3050
3099
|
The two `--all` forms and the global-row keys are one walk behind two surfaces.
|
|
3051
3100
|
The repository pause is written first and intake second, both absolutely —
|
|
@@ -3074,12 +3123,16 @@ cancellation signal and the runner acknowledges the request. Its execution
|
|
|
3074
3123
|
supervisor signals the local runner leader and waits for it to finish persistence
|
|
3075
3124
|
and exit, then reaps remaining descendants with bounded TERM-then-KILL cleanup.
|
|
3076
3125
|
Only then does it release the lease. Graceful dispatcher shutdown likewise waits
|
|
3077
|
-
for runner suspension without a wall-clock force-exit deadline.
|
|
3126
|
+
for runner suspension without a wall-clock force-exit deadline. A queued, paused
|
|
3127
|
+
or blocked build with no live execution is acknowledged by the dispatcher
|
|
3128
|
+
directly, without provisioning a workspace or starting a runner.
|
|
3078
3129
|
The dispatcher defers cleanup while that lease is live, then performs the
|
|
3079
3130
|
checkpointed, retry-safe cleanup: close an open unmerged PR, release the workspace,
|
|
3080
3131
|
delete the exact remote and local build branches, preserve existing ticket labels
|
|
3081
3132
|
while adding `autobuild:aborted`, hand the ticket back, and post an abort notice
|
|
3082
|
-
before completing as `abandoned`.
|
|
3133
|
+
before completing as `abandoned`. Releasing the workspace tries to preserve
|
|
3134
|
+
unpublished commits; when it cannot, it records them as lost
|
|
3135
|
+
(`workspace.commits-lost`) instead of stalling. The ticket moves once, straight to its
|
|
3083
3136
|
destination: configured Triage by default, or `[tickets].readyState` with
|
|
3084
3137
|
`ab abort --to ready` (or the registry's `to: "ready"`), with its `blockedBy`
|
|
3085
3138
|
list unchanged, so a build waiting on other work gives up its slot and
|
|
@@ -3216,8 +3269,11 @@ Merge requires a ready candidate and cannot bypass verification or merge gates;
|
|
|
3216
3269
|
a merge that is not ready is refused with code `merge-not-ready` (or
|
|
3217
3270
|
`node-incomplete` for an incomplete node) and a reason. A refusal records no
|
|
3218
3271
|
merge consent and no landing; a node's live completeness check may still save
|
|
3219
|
-
an `integration.observed` diagnostic before it refuses. `ab answer` requires an open escalation except for eligible node spec revisions.
|
|
3220
|
-
|
|
3272
|
+
an `integration.observed` diagnostic before it refuses. `ab answer` requires an open escalation except for eligible node spec revisions. On a done
|
|
3273
|
+
build with an open escalation, such as a post-landing integration audit, guidance or a bare
|
|
3274
|
+
answer only acknowledges it: status stays done, nothing resumes, and every other answer form is
|
|
3275
|
+
refused. A stale, missing, aborted, or otherwise inapplicable target, or a done build with nothing
|
|
3276
|
+
open, is an error and gets no new event. Attribution uses `USER`, then `USERNAME`, then the
|
|
3221
3277
|
same stable fallback on both surfaces. These commands run sessionless and
|
|
3222
3278
|
accept `--store <ref>` with the usual explicit flag > `AB_STORE` > `[store] url` > repository
|
|
3223
3279
|
local precedence. If nonblank `AB_SESSION` and matching `AB_BUILD` identify the
|
|
@@ -3281,9 +3337,9 @@ runtime; historical starts without metadata display `runtime unrecorded`.
|
|
|
3281
3337
|
With `[policy].maxOpenPrs` configured and a dispatcher holding the
|
|
3282
3338
|
repository, an `open-PR backpressure:` line (`capacity.backpressure` in JSON:
|
|
3283
3339
|
`active`, `openPrs`, `maxOpenPrs`, `resumeOpenPrs`, `excludeHeld`) says whether
|
|
3284
|
-
normal intake is paused. With a readable held configuration, a `slots:` line
|
|
3340
|
+
high, normal and low intake is paused. With a readable held configuration, a `slots:` line
|
|
3285
3341
|
after `capacity:` groups the builds the dispatcher counts as `held`,
|
|
3286
|
-
`requested` (with each request and an `urgent` marker) and `none`
|
|
3342
|
+
`requested` (with each request and an `urgent`, `high` or `low` marker) and `none`
|
|
3287
3343
|
(`capacity.slots` in JSON, by slug); `occupied` counts the held entries. The
|
|
3288
3344
|
dispatcher records
|
|
3289
3345
|
`dispatcher.open-pr-backpressure-engaged` and `-cleared` only on transitions.
|
|
@@ -3305,7 +3361,7 @@ liveness; `PROGRESS` is the age of the latest durable event. A literal
|
|
|
3305
3361
|
heartbeat is at least one hour newer than its latest event. It is a visibility
|
|
3306
3362
|
signal, not a stalled/dead verdict. `SLOT` (`slot` in JSON) is the build's
|
|
3307
3363
|
slot state by the rules the dispatcher admits work by: `held`,
|
|
3308
|
-
`requested <request>` with an `urgent`
|
|
3364
|
+
`requested <request>` with an `urgent`, `high` or `low` suffix, or `none`; `—`
|
|
3309
3365
|
for a done build. `unknown`, or no `slot` in JSON, is an older server's answer;
|
|
3310
3366
|
never read it as `none`. `STATUS` prints the build's status word with its note
|
|
3311
3367
|
(see "Status words"), and JSON adds it as `statusWord` while `status` stays
|
|
@@ -3467,7 +3523,9 @@ The default watch reports actionable conditions only:
|
|
|
3467
3523
|
`dispatcher.config-rejected`, `dispatcher.config-reloaded` with nonempty
|
|
3468
3524
|
`restartRequired`, `dispatcher.upgrade-failed`, `dispatcher.runtime-rolled-back`,
|
|
3469
3525
|
`dispatcher.kernel-git-unavailable`, `forge.credential-limited`, abnormal
|
|
3470
|
-
`dispatcher.run-stopped`, and `dispatcher.lost`. A
|
|
3526
|
+
`dispatcher.run-stopped`, and `dispatcher.lost`. A one-tick run whose tick
|
|
3527
|
+
failed and was reported stops normally, with exit code 1 and the error, so a
|
|
3528
|
+
single blip is not attention. A `forge.credential-limited`
|
|
3471
3529
|
line names the process whose GitHub request was rate-limited outside the
|
|
3472
3530
|
dispatcher's credential (unauthenticated, with why, or on that process's own
|
|
3473
3531
|
credential) and its reset; dispatcher forge work continues.
|
|
@@ -3502,9 +3560,12 @@ The default watch reports actionable conditions only:
|
|
|
3502
3560
|
with the episode still open; crossing reset alone is silent. Without a reset,
|
|
3503
3561
|
the deadline is 15 minutes after onset. Repeated evidence never postpones
|
|
3504
3562
|
the deadline; recovery ends the episode.
|
|
3505
|
-
- `dispatcher.tick-failure-persistent`: continuously failing
|
|
3506
|
-
|
|
3507
|
-
ends the episode
|
|
3563
|
+
- `dispatcher.tick-failure-persistent`: continuously failing ticks for five
|
|
3564
|
+
minutes, across consecutive runs, including one-tick hosted runs. Any
|
|
3565
|
+
completed tick ends the episode, as does a clean, abnormal or forced stop of
|
|
3566
|
+
the run that last failed. A new run does not, nor does a one-tick run's normal
|
|
3567
|
+
stop after its failed tick. The observation keeps the first failure's time and
|
|
3568
|
+
names the latest failing run and error. Source grace and cooldown-driven failures do not start
|
|
3508
3569
|
this clock; after grace, the first qualifying failure starts a new five-minute
|
|
3509
3570
|
interval. Each persistence episode is reported once. Repository read failures
|
|
3510
3571
|
fail the watch tick and retry on the next tick; repeated failures use this
|
|
@@ -3541,7 +3602,11 @@ silently baselines historical direct events and merge decisions, but retains
|
|
|
3541
3602
|
active repository timers. A no-slug watch follows each build announced in the
|
|
3542
3603
|
journal after its position from the build's first event; cursors carry
|
|
3543
3604
|
creations still in preparation, and a cursor from an earlier release, which
|
|
3544
|
-
carries none, baselines a build whose creation was selected before it.
|
|
3605
|
+
carries none, baselines a build whose creation was selected before it. A watch retires a terminal, settled build (no pending cleanup, reclaim, open
|
|
3606
|
+
execution or integration audit) once its events through settlement are
|
|
3607
|
+
delivered: it leaves tracking and every later cursor, so a re-armed cursor
|
|
3608
|
+
stays proportional to active builds. Named builds are never retired. Following
|
|
3609
|
+
a build reads only events after its position, with no per-poll reduced read. Reconcile existing conditions through status after
|
|
3545
3610
|
arming the watch. Named watches still end when every named build is terminal;
|
|
3546
3611
|
learn their outcomes from status reconciliation at exit.
|
|
3547
3612
|
|
|
@@ -3602,7 +3667,10 @@ before any record. A store read that fails after the watch has started is
|
|
|
3602
3667
|
reported on stderr once per failing read source — locally the poll cycle is
|
|
3603
3668
|
one source, while against an `http(s)` store each tracked stream and the
|
|
3604
3669
|
discovery pass carries its own failure streak — and retried without
|
|
3605
|
-
duplicating or skipping any event.
|
|
3670
|
+
duplicating or skipping any event. A reducer incompatibility
|
|
3671
|
+
(`incompatible reducer …`: this CLI cannot represent the service's reduced
|
|
3672
|
+
value) is never retried: the watch exits 1 at once with upgrade advice and
|
|
3673
|
+
never reconstructs the value from history.
|
|
3606
3674
|
Against a local store the default cadence polls every 1 second. Against an
|
|
3607
3675
|
`http(s)` store each tracked stream long-polls instead — one held request per
|
|
3608
3676
|
stream waits up to 25 seconds for the next event, requests run concurrently,
|
|
@@ -3696,7 +3764,9 @@ cursor behavior as 3). The default poll interval and `--interval` match
|
|
|
3696
3764
|
per failing read source — locally the poll cycle is one source, while
|
|
3697
3765
|
against an `http(s)` store each tracked build and the discovery pass carries
|
|
3698
3766
|
its own failure streak — and retried without missing or duplicating a
|
|
3699
|
-
condition.
|
|
3767
|
+
condition. A reducer incompatibility (`incompatible reducer …`) is not
|
|
3768
|
+
retried: the wait exits 1 at once with upgrade advice and never reconstructs
|
|
3769
|
+
the value from history. The command is
|
|
3700
3770
|
read-only — it appends no event, takes no lease, and creates no record — and
|
|
3701
3771
|
deciding what to do about a match stays with the caller's skill.
|
|
3702
3772
|
|
|
@@ -3738,8 +3808,8 @@ sequence positions, inclusive at head minus 1,000. Keep the cursor on normal
|
|
|
3738
3808
|
re-arms and ordinary reducer upgrades. Typed `cursor-too-old` names the oldest
|
|
3739
3809
|
servable cursor: re-arm without `--since`, reconcile repository/build status,
|
|
3740
3810
|
and acknowledge the lost historical gap. Never fall back to cursor zero.
|
|
3741
|
-
Checkpoint integrity errors are terminal; retired
|
|
3742
|
-
upgrade/restart and fresh attachment. Explicit MCP `builds.events` history is
|
|
3811
|
+
Checkpoint integrity errors and reducer incompatibilities are terminal; retired
|
|
3812
|
+
seed generations require an upgrade/restart and fresh attachment. Explicit MCP `builds.events` history is
|
|
3743
3813
|
paged at 256 events with `cursor` and `hasMore`; follow every continuation.
|
|
3744
3814
|
MCP `repository.events` is a connected agent's repository attention watch: it
|
|
3745
3815
|
reads at most 256 journal positions after its cursor, with an optional wait of
|
|
@@ -3747,7 +3817,8 @@ at most 30 seconds, and by default returns exactly the repository records this
|
|
|
3747
3817
|
default watch reports. Its cursor advances past filtered events; omit it once
|
|
3748
3818
|
for a baseline, and treat `cursor-too-old` as above. MCP `repository.attention`
|
|
3749
3819
|
returns the current attention digest, every item naming its resolving tool,
|
|
3750
|
-
with the same cursor rules.
|
|
3820
|
+
with the same cursor rules. Its escalations include done builds whose
|
|
3821
|
+
open escalation awaits acknowledgement.
|
|
3751
3822
|
|
|
3752
3823
|
**`ab harvest status [--events N] [--json] [--store <ref>]`** projects the
|
|
3753
3824
|
**`ab harvest status [--events N] [--json] [--store <ref>]`** projects the
|
|
@@ -3914,8 +3985,8 @@ absolute file path containing the edited text. Read the current ticket and
|
|
|
3914
3985
|
reapply the intended changes before retrying; conflicts are never merged.
|
|
3915
3986
|
|
|
3916
3987
|
File and Linear revisions fingerprint kind, target, title, body, canonical label/blocker sets,
|
|
3917
|
-
state and
|
|
3918
|
-
fingerprint kind, target, title, body, canonical label/blocker sets, state and issue links,
|
|
3988
|
+
state and any priority other than normal; file revisions also cover nonempty issue links. GitHub revisions
|
|
3989
|
+
fingerprint kind, target, title, body, canonical label/blocker sets (priority labels included), state and issue links,
|
|
3919
3990
|
including the ticket's own issue; GitHub tickets carry no comments. Reverting
|
|
3920
3991
|
identical content restores its fingerprint. File checks
|
|
3921
3992
|
re-read immediately before writing, with the existing no-lock race window.
|
|
@@ -13,7 +13,9 @@ See [restacking](restacking.md) for change identity and replay.
|
|
|
13
13
|
Presence is checked only at claim, never to interrupt existing work. The newest
|
|
14
14
|
build generation supplies evidence; ambiguous or unavailable evidence leaves the
|
|
15
15
|
dependent queued. Confirmed merge SHA reachability can prove presence without
|
|
16
|
-
a trailer, and a merged node transports its whole owned contribution.
|
|
16
|
+
a trailer, and a merged node transports its whole owned contribution. A child
|
|
17
|
+
whose commit became empty and was dropped by a forge rebase merge still counts as
|
|
18
|
+
landed through that contribution. Empty
|
|
17
19
|
completed nodes contribute nothing. Sibling work waits for merge into the common
|
|
18
20
|
ancestor and demand the minimal restack path; same-node merges satisfy presence directly.
|
|
19
21
|
|
|
@@ -101,11 +103,12 @@ has commits its current parent lacks; parent-only advancement remains empty.
|
|
|
101
103
|
A node takes a slot only by admission for runner work: `reconcile` for a
|
|
102
104
|
restack conflict, `verification` for an integration cycle or a measurement, and
|
|
103
105
|
`propose` for an optimization node's open proposal request. The request is
|
|
104
|
-
durable and is admitted before
|
|
105
|
-
the node holds its slot, intake reserves one slot for it
|
|
106
|
-
|
|
107
|
-
freed in any tick goes to the node, not
|
|
108
|
-
|
|
106
|
+
durable and is admitted before ticket claims at its level, higher levels first. Until
|
|
107
|
+
the node holds its slot, intake reserves one slot for it ahead of claims at its
|
|
108
|
+
own level and below, and the dispatcher checks its admission every tick
|
|
109
|
+
regardless of idle node polling. A slot freed in any tick goes to the node, not
|
|
110
|
+
to a new claim at its level or below; higher-level demand can take it first.
|
|
111
|
+
Admission counts every build that holds a slot, as every admission does.
|
|
109
112
|
|
|
110
113
|
- **Recorded before provisioning.** Admission is a durable `slot.admitted`
|
|
111
114
|
fact naming the work it admitted.
|
|
@@ -122,8 +125,8 @@ every build that holds a slot, as every admission does.
|
|
|
122
125
|
slot it needs to unblock them.
|
|
123
126
|
|
|
124
127
|
Status and both dashboards report occupancy against configured capacity, and
|
|
125
|
-
each node waiting for a slot ahead of
|
|
126
|
-
ones.
|
|
128
|
+
each node waiting for a slot ahead of ticket claims at its level, marking
|
|
129
|
+
urgent, high and low ones.
|
|
127
130
|
Status also reports every build's slot state (`slot`, `capacity.slots`):
|
|
128
131
|
an admitted node reports `held`; a node awaiting admission reports its request.
|
|
129
132
|
|
|
@@ -263,7 +266,7 @@ An optimization node follows `branch opening → starting measurement →
|
|
|
263
266
|
(propose → collecting)*`, then completes, verifies and merges like any node.
|
|
264
267
|
Once the starting value is measured, the dispatcher requests a `propose`
|
|
265
268
|
session whenever the node has room within its concurrency and attempts budget.
|
|
266
|
-
The request takes a slot ahead of
|
|
269
|
+
The request takes a slot ahead of ticket claims at the node's level, like node reconcile and
|
|
267
270
|
verification. The session runs the `ab-propose` skill on the node head, reads
|
|
268
271
|
the attempt ledger and deposits proposals with `ab propose`; it never creates
|
|
269
272
|
tickets. The dispatcher files each proposal as a work ticket targeting the
|
|
@@ -188,7 +188,10 @@ Node-to-GitHub-root merge uses PR rebase merge guarded on verified head after
|
|
|
188
188
|
a final parent freshness read. Enforced up-to-date protection provides a fenced
|
|
189
189
|
merge; uncertainty is recorded as unfenced and requires immutable merged-tree
|
|
190
190
|
audit. A mismatch raises operator attention without rewriting the shared parent.
|
|
191
|
-
|
|
191
|
+
A verified empty child commit that the rebase merge dropped is accounted for when
|
|
192
|
+
the merged tree matches; a missing non-empty commit or a duplicate identity still
|
|
193
|
+
raises attention. Answer it with `ab answer`, which acknowledges it without
|
|
194
|
+
reopening the build. Pending audits survive completion and retry until settled.
|
|
192
195
|
|
|
193
196
|
Root leaves land by one of three routes. Behind a real merge-blocking gate,
|
|
194
197
|
Autobuild arms GitHub-native auto-merge. An authoritatively ungated root
|
|
@@ -259,7 +262,9 @@ displaced history under immutable exact archive refs
|
|
|
259
262
|
them. Where it refuses, they keep a BuildStore copy (`history-objects-<sha>`),
|
|
260
263
|
or record one `history-unretained` warning and proceed.
|
|
261
264
|
- **Workspace preservation** keeps unpublished workspace commits under archive
|
|
262
|
-
refs, else as BuildStore copies. When neither holds them, release is refused
|
|
265
|
+
refs, else as BuildStore copies. When neither holds them, release is refused,
|
|
266
|
+
except under abort cleanup, which records `workspace.commits-lost` and
|
|
267
|
+
releases.
|
|
263
268
|
- There is never a branch or tag fallback. When an environment refuses non-branch
|
|
264
269
|
Git pushes, as Claude Code on the web's GitHub proxy does, the GitHub adapter
|
|
265
270
|
creates the same archive ref through REST ref creation and confirms it by exact
|