@defrex/autobuild 1.11.1 → 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 +601 -203
- package/bin/ab-build-runner.ts +8 -0
- package/docs/answering-blocked-builds.md +32 -2
- package/docs/architecture.md +188 -57
- package/docs/assets/headline-wide.png +0 -0
- package/docs/cli.md +1 -1
- package/docs/configuration.md +120 -23
- package/docs/dispatcher.md +19 -8
- package/docs/integration-overview.md +1 -1
- package/docs/integration-tree.md +33 -18
- package/docs/merge-policy.md +7 -2
- package/docs/operating.md +5 -3
- package/docs/operator-api.md +48 -25
- package/docs/operator-surfaces.md +39 -3
- package/docs/optimization-nodes.md +10 -8
- 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/ambient-errors.ts +17 -0
- package/packages/core/src/cli/bounded-io.ts +174 -0
- 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 +93 -29
- package/packages/core/src/cli/dashboard/poll.ts +231 -34
- package/packages/core/src/cli/dashboard/queue.ts +21 -10
- package/packages/core/src/cli/dashboard/render.ts +14 -37
- package/packages/core/src/cli/dashboard/row-text.ts +26 -8
- package/packages/core/src/cli/dashboard/tone-ansi.ts +39 -0
- package/packages/core/src/cli/dashboard/vocabulary.ts +165 -20
- package/packages/core/src/cli/dispatch-frontend.ts +2 -1
- package/packages/core/src/cli/dispatch-handoff.ts +41 -10
- package/packages/core/src/cli/dispatch-launch-contract.ts +5 -0
- package/packages/core/src/cli/dispatch-launcher-cadence.ts +80 -0
- package/packages/core/src/cli/dispatch-launcher.ts +9 -10
- package/packages/core/src/cli/dispatch-preflight.ts +12 -3
- package/packages/core/src/cli/dispatch-release-observer.ts +53 -0
- package/packages/core/src/cli/dispatch-runtime-cache.ts +204 -82
- package/packages/core/src/cli/dispatch-runtime-dependencies.ts +250 -43
- package/packages/core/src/cli/dispatch-tickets.ts +33 -12
- package/packages/core/src/cli/dispatch-upgrade-install.ts +36 -16
- package/packages/core/src/cli/dispatch-upgrade-source.ts +8 -2
- package/packages/core/src/cli/dispatch-yield-observer.ts +82 -0
- package/packages/core/src/cli/dispatch.ts +595 -149
- package/packages/core/src/cli/env.ts +2 -15
- package/packages/core/src/cli/help.ts +43 -28
- package/packages/core/src/cli/main.ts +11 -7
- package/packages/core/src/cli/production-store.ts +102 -0
- 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/repo-state.ts +2 -3
- package/packages/core/src/cli/repository-status.ts +44 -28
- package/packages/core/src/cli/sessionless-store.ts +26 -0
- package/packages/core/src/cli/status.ts +188 -47
- package/packages/core/src/cli/store-opening.ts +26 -57
- package/packages/core/src/cli/store-ref.ts +6 -1
- 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/distribution-packaging.ts +156 -18
- package/packages/core/src/events/catalog-identity.ts +28 -0
- package/packages/core/src/events/catalog.ts +3 -9
- package/packages/core/src/events/compatibility.ts +2 -30
- package/packages/core/src/events/payloads.ts +85 -14
- package/packages/core/src/events/policy.ts +3 -0
- package/packages/core/src/events/repository.ts +15 -4
- package/packages/core/src/events/sessions.ts +1 -1
- package/packages/core/src/events/validation-error.ts +12 -0
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +36 -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/3064e337cc75f8d6.json +310 -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/a1e90a969d32a367.json +307 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/c7c94fbe7f63cf07.json +84 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/da3bc91c49211eab.json +310 -0
- package/packages/core/src/kernel/auto-merge-default.ts +2 -1
- package/packages/core/src/kernel/capacity-build.ts +21 -0
- package/packages/core/src/kernel/clean-restack-policy.ts +40 -0
- package/packages/core/src/kernel/discard-in-flight.ts +13 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +578 -235
- package/packages/core/src/kernel/done-escalations.ts +269 -0
- package/packages/core/src/kernel/engine.ts +30 -17
- 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/measurement.ts +24 -0
- package/packages/core/src/kernel/open-pr-backpressure.ts +3 -3
- package/packages/core/src/kernel/read-facts.ts +8 -370
- package/packages/core/src/kernel/reducer-registry.ts +43 -125
- package/packages/core/src/kernel/reducer-revisions.ts +18 -0
- package/packages/core/src/kernel/reducer-value-entry.ts +98 -0
- package/packages/core/src/kernel/reducer-value-index.ts +75 -0
- package/packages/core/src/kernel/reducer.ts +84 -16
- package/packages/core/src/kernel/reopen-state.ts +10 -0
- package/packages/core/src/kernel/repository-attention.ts +14 -5
- package/packages/core/src/kernel/repository-read-facts.ts +375 -0
- package/packages/core/src/kernel/ticket-starts.ts +15 -4
- package/packages/core/src/kernel/verify-stage-state.ts +145 -3
- 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 +14 -1
- package/packages/core/src/operator/protocol.ts +8 -5
- package/packages/core/src/operator/query.ts +72 -57
- package/packages/core/src/operator/registry.ts +19 -15
- 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/fake.ts +15 -3
- 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 +777 -288
- package/packages/core/src/processes/execution-no-progress.ts +1 -0
- 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/local/capabilities.ts +115 -0
- package/packages/core/src/store/local/store.ts +86 -56
- package/packages/core/src/store/reduced-reads.ts +32 -1
- package/packages/core/src/store/reducer-value-read.ts +235 -0
- package/packages/core/src/store/reducer-value-shapes.json +6722 -6475
- package/packages/core/src/store/reducer-value-validation.ts +181 -33
- package/packages/core/src/store/reducer-values.ts +36 -204
- 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 +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.12.0.json +35806 -0
- package/packages/core/src/store/remote/released-reducer-values/1.13.0.json +35966 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +20 -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/store/rollup-lease.ts +41 -0
- package/packages/core/src/store/rollups.ts +7 -38
- package/packages/core/src/store/snapshots.ts +1 -1
- package/packages/core/src/testing/dispatch-read-budget.ts +409 -14
- package/packages/core/src/testing/import-graph.ts +78 -0
- 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 +602 -40
- package/packages/core/src/testing/released-value-coverage.ts +423 -0
- package/packages/core/src/testing/slot-agreement.ts +52 -0
- package/packages/core/src/web/assets/app.js +5 -5
- package/packages/core/src/web/overview-source.ts +19 -6
- package/skills/guide/SKILL.md +245 -103
- package/skills/guide/references/integration-tree.md +33 -18
- package/skills/guide/references/merge-policy.md +7 -2
- package/skills/guide/references/operator-api.md +48 -25
- package/skills/guide/references/optimization-nodes.md +10 -8
- 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 +114 -65
- 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/docs/configuration.md
CHANGED
|
@@ -356,10 +356,14 @@ non-ancestor source records `verify.config-superseded` and starts a fresh cycle
|
|
|
356
356
|
before constructing any further member. Already launched siblings settle first.
|
|
357
357
|
A leaf awaiting merge with completed verification retains its receipts after a
|
|
358
358
|
clean rewrite when build-owned config is unchanged, even when the rewrite
|
|
359
|
-
replaces the pin commit's ancestry.
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
359
|
+
replaces the pin commit's ancestry. Two clean restacks are different: each
|
|
360
|
+
starts a new verification cycle even when config is unchanged, and the earlier
|
|
361
|
+
results cannot satisfy it. A clean landing restack of a root-targeting leaf
|
|
362
|
+
whose frozen `afterCleanRestack` policy enables any step re-verifies on the
|
|
363
|
+
restacked base and head (see
|
|
364
|
+
[Clean-restack re-verification](restacking.md#clean-restack-re-verification)).
|
|
365
|
+
A clean wait-resume restack after a verify or finalize ticket wait re-verifies
|
|
366
|
+
on the resumed base. Changed config still supersedes while waiting; a
|
|
363
367
|
future verification cycle always captures fresh config before running steps.
|
|
364
368
|
Old pass/skip receipts cannot satisfy that cycle, and supersession creates no
|
|
365
369
|
failure or failure-budget charge. Unchanged config on a descendant head retains
|
|
@@ -585,7 +589,7 @@ any table header.
|
|
|
585
589
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
586
590
|
- **Local override:** Allowed in .autobuild/local.toml.
|
|
587
591
|
|
|
588
|
-
**Description:**
|
|
592
|
+
**Description:** Slots for this repository. A build holds one from admission (a ticket claim, a start request or an admitted slot request) until it waits on a human, another ticket, the forge or its children, or ends. A build whose outside wait ends is admitted again ahead of ticket claims at its level, higher levels first (see [slot admission order](dispatcher.md#slot-admission-order)). Occupancy never exceeds capacity.
|
|
589
593
|
|
|
590
594
|
**Constraints:** safe integer; > 0
|
|
591
595
|
|
|
@@ -1201,6 +1205,7 @@ image = "vercel/sandbox/universal:latest"
|
|
|
1201
1205
|
vcpus = 4
|
|
1202
1206
|
timeoutSeconds = 2700
|
|
1203
1207
|
operationTimeoutMs = 30000
|
|
1208
|
+
recoveryTimeoutMs = 120000
|
|
1204
1209
|
snapshotExpirationSeconds = 86400
|
|
1205
1210
|
region = "iad1"
|
|
1206
1211
|
failoverRegions = ["sfo1"]
|
|
@@ -1291,6 +1296,20 @@ preflight = "test \"$(pi --version)\" = \"0.84.4\" && pi update --models"
|
|
|
1291
1296
|
|
|
1292
1297
|
**Constraints:** safe integer; ≥ 1000; ≤ 300000
|
|
1293
1298
|
|
|
1299
|
+
#### `workspace.config.recoveryTimeoutMs`
|
|
1300
|
+
|
|
1301
|
+
**TOML key:** `workspace.config.recoveryTimeoutMs`
|
|
1302
|
+
|
|
1303
|
+
- **Type:** `number`
|
|
1304
|
+
- **Default:** `120000`
|
|
1305
|
+
- **Required:** Optional
|
|
1306
|
+
- **Reload:** Dispatcher restart required; startup adapters retain their configuration. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
|
|
1307
|
+
- **Local override:** Committed only: set in autobuild.toml.
|
|
1308
|
+
|
|
1309
|
+
**Description:** Budget in milliseconds for one stopped-sandbox recovery: an explicit cold resume plus the guest git work that follows it, including a push. Any invocation deadline bounds it further. Separate from operationTimeoutMs.
|
|
1310
|
+
|
|
1311
|
+
**Constraints:** safe integer; ≥ 1000; ≤ 600000
|
|
1312
|
+
|
|
1294
1313
|
#### `workspace.config.snapshotExpirationSeconds`
|
|
1295
1314
|
|
|
1296
1315
|
**TOML key:** `workspace.config.snapshotExpirationSeconds`
|
|
@@ -1586,7 +1605,27 @@ and verified Git checkpoints remain authoritative. See the
|
|
|
1586
1605
|
Paused and policy-blocked builds release their sandbox after the execution
|
|
1587
1606
|
lease expires. Resume creates a replacement and reruns setup. Graceful shutdown
|
|
1588
1607
|
bounds stop/delete calls by `operationTimeoutMs`; an unknown acknowledgement
|
|
1589
|
-
keeps ownership fenced until lease expiry and is retried visibly.
|
|
1608
|
+
keeps ownership fenced until lease expiry and is retried visibly.
|
|
1609
|
+
|
|
1610
|
+
A persistent sandbox that stopped (for example, on its own timeout) is never
|
|
1611
|
+
treated as running:
|
|
1612
|
+
|
|
1613
|
+
- **Finished work settles.** The guest runner records its exit on the
|
|
1614
|
+
sandbox filesystem. Observing a stopped sandbox resumes it, reads that
|
|
1615
|
+
record, and stops it again, so a finished session's `publication.requested`
|
|
1616
|
+
is published instead of the execution being declared lost.
|
|
1617
|
+
- **Resume has its own budget.** Preservation and publication resume a
|
|
1618
|
+
stopped sandbox explicitly under `recoveryTimeoutMs` (default 120 s), which
|
|
1619
|
+
covers the cold resume plus the guest git work and push.
|
|
1620
|
+
`operationTimeoutMs` still bounds each metadata acknowledgement.
|
|
1621
|
+
- **The invocation deadline wins.** A hosted invocation stops recovery early
|
|
1622
|
+
enough to restore policy and stop the sandbox before it ends. Work that
|
|
1623
|
+
cannot fit is deferred to the next invocation with nothing recorded.
|
|
1624
|
+
- **No redundant stops.** Fence and cleanup skip `stop()` for a sandbox the
|
|
1625
|
+
provider already reports stopped.
|
|
1626
|
+
- **Failures name their step.** `infrastructure.failed` and the exhaustion
|
|
1627
|
+
escalation say which step failed: `resume`, `fence`, `preserve`, or
|
|
1628
|
+
`cleanup`. See [troubleshooting](troubleshooting.md#infrastructure-escalation-names-a-recovery-step). After abrupt
|
|
1590
1629
|
supervisor loss, Vercel's configured `timeoutSeconds` bounds orphan compute, and
|
|
1591
1630
|
the next dispatcher waits for lease expiry before exact-name cleanup. Provider
|
|
1592
1631
|
quota/vCPU/duration messages are retained verbatim in infrastructure events and
|
|
@@ -1832,6 +1871,19 @@ and a reason naming the setting. Dashboards and PR summaries call this
|
|
|
1832
1871
|
checks and branch protections still gate merge. For excluded steps, merged code
|
|
1833
1872
|
is not re-verified, so breakage that only exists in the combination can merge.
|
|
1834
1873
|
|
|
1874
|
+
Clean-restack re-verification defaults to disabled: omitting
|
|
1875
|
+
`[verify].afterCleanRestack` means `false`. An optional boolean
|
|
1876
|
+
`[verify.<step>].afterCleanRestack` overrides it in either direction. When a
|
|
1877
|
+
root-targeting leaf waiting to land restacks cleanly (including a
|
|
1878
|
+
`[[generated]]` regeneration), opted-in steps re-run on the restacked head
|
|
1879
|
+
before it lands; the rest record `skipped` with
|
|
1880
|
+
`skipCause = "clean-restack-policy"` ("skipped by clean-restack policy").
|
|
1881
|
+
A failure routes through the ordinary repair loop. Opt in per step on cheap
|
|
1882
|
+
deterministic checks, for example `afterCleanRestack = true` in
|
|
1883
|
+
`[verify.lint]`: every target move under a waiting leaf re-runs them. Leaves
|
|
1884
|
+
targeting an integration node rely on the node's verification instead. See
|
|
1885
|
+
[Restacking](restacking.md#clean-restack-re-verification).
|
|
1886
|
+
|
|
1835
1887
|
|
|
1836
1888
|
`[verify].steps` defines the configured universe and execution order. It is
|
|
1837
1889
|
optional and defaults to no verify phases. Every listed name needs one matching
|
|
@@ -1889,6 +1941,20 @@ There are two strict step variants:
|
|
|
1889
1941
|
|
|
1890
1942
|
**Constraints:** None beyond the input type.
|
|
1891
1943
|
|
|
1944
|
+
#### `verify.afterCleanRestack`
|
|
1945
|
+
|
|
1946
|
+
**TOML key:** `verify.afterCleanRestack`
|
|
1947
|
+
|
|
1948
|
+
- **Type:** `boolean`
|
|
1949
|
+
- **Default:** `false (omission is preserved)`
|
|
1950
|
+
- **Required:** Optional
|
|
1951
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
|
|
1952
|
+
- **Local override:** Committed only: set in autobuild.toml.
|
|
1953
|
+
|
|
1954
|
+
**Description:** Whether verification re-runs on the restacked head after a clean awaiting-landing restack of a root-targeting leaf, before it lands. A step override takes precedence.
|
|
1955
|
+
|
|
1956
|
+
**Constraints:** None beyond the input type.
|
|
1957
|
+
|
|
1892
1958
|
#### `verify.<step>`
|
|
1893
1959
|
|
|
1894
1960
|
**TOML key:** `verify.<step>`
|
|
@@ -1959,6 +2025,20 @@ There are two strict step variants:
|
|
|
1959
2025
|
|
|
1960
2026
|
**Constraints:** None beyond the input type.
|
|
1961
2027
|
|
|
2028
|
+
#### `verify.<step>.afterCleanRestack` (kind = "check")
|
|
2029
|
+
|
|
2030
|
+
**TOML key:** `verify.<step>.afterCleanRestack`
|
|
2031
|
+
|
|
2032
|
+
- **Type:** `boolean`
|
|
2033
|
+
- **Default:** `omitted`
|
|
2034
|
+
- **Required:** Optional when kind = "check"
|
|
2035
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
|
|
2036
|
+
- **Local override:** Committed only: set in autobuild.toml.
|
|
2037
|
+
|
|
2038
|
+
**Description:** 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.
|
|
2039
|
+
|
|
2040
|
+
**Constraints:** None beyond the input type.
|
|
2041
|
+
|
|
1962
2042
|
#### `verify.<step>.paths` (kind = "check")
|
|
1963
2043
|
|
|
1964
2044
|
**TOML key:** `verify.<step>.paths`
|
|
@@ -2043,6 +2123,20 @@ There are two strict step variants:
|
|
|
2043
2123
|
|
|
2044
2124
|
**Constraints:** None beyond the input type.
|
|
2045
2125
|
|
|
2126
|
+
#### `verify.<step>.afterCleanRestack` (kind = "agent")
|
|
2127
|
+
|
|
2128
|
+
**TOML key:** `verify.<step>.afterCleanRestack`
|
|
2129
|
+
|
|
2130
|
+
- **Type:** `boolean`
|
|
2131
|
+
- **Default:** `omitted`
|
|
2132
|
+
- **Required:** Optional when kind = "agent"
|
|
2133
|
+
- **Reload:** Hot: next dispatcher action captures the accepted value. Build-owned pipeline: captured from the execution checkout each verify cycle; later base-branch edits do not replace it. Workspace provisioning applies at the next build launch. A running invocation keeps its captured values.
|
|
2134
|
+
- **Local override:** Committed only: set in autobuild.toml.
|
|
2135
|
+
|
|
2136
|
+
**Description:** 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.
|
|
2137
|
+
|
|
2138
|
+
**Constraints:** None beyond the input type.
|
|
2139
|
+
|
|
2046
2140
|
#### `verify.<step>.paths` (kind = "agent")
|
|
2047
2141
|
|
|
2048
2142
|
**TOML key:** `verify.<step>.paths`
|
|
@@ -2172,9 +2266,10 @@ approved plan; reconciliation reuses it.
|
|
|
2172
2266
|
If the approved selection later names any step absent from the cycle's pinned
|
|
2173
2267
|
configured universe, the entire selection falls back to all configured optional
|
|
2174
2268
|
steps. The kernel records one observation per cycle and plan revision naming
|
|
2175
|
-
the unknown steps. Mandatory steps, path applicability and post-reconcile
|
|
2176
|
-
still apply. A valid selection continues to skip
|
|
2177
|
-
steps. Strict validation when depositing a new plan
|
|
2269
|
+
the unknown steps. Mandatory steps, path applicability and post-reconcile and
|
|
2270
|
+
clean-restack policies still apply. A valid selection continues to skip
|
|
2271
|
+
genuinely omitted optional steps. Strict validation when depositing a new plan
|
|
2272
|
+
is unchanged.
|
|
2178
2273
|
|
|
2179
2274
|
For each step the kernel evaluates approved-plan selection first, then path
|
|
2180
2275
|
applicability. Exclusion by either mechanism records a queryable `skipped`
|
|
@@ -3061,7 +3156,7 @@ that defaults to `false`.
|
|
|
3061
3156
|
|
|
3062
3157
|
While open unmerged root PRs (leaves and integration nodes; not children of a
|
|
3063
3158
|
node) reach `maxOpenPrs`, the dispatcher makes no new ordinary ready-queue
|
|
3064
|
-
claim of a `normal
|
|
3159
|
+
claim of a `high`, `normal` or `low` ticket until the count drops to `resumeOpenPrs`. Reaching `maxOpenPrs` takes
|
|
3065
3160
|
precedence: when `resumeOpenPrs` equals `maxOpenPrs`, intake stays paused at
|
|
3066
3161
|
that count and resumes once the count falls below it. Urgent claims, in-flight
|
|
3067
3162
|
builds, reconciles and landings continue; capacity is unchanged. Every `ab start`
|
|
@@ -3347,7 +3442,7 @@ status` reports the state as `capacity.backpressure`.
|
|
|
3347
3442
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
3348
3443
|
- **Local override:** Committed only: set in autobuild.toml.
|
|
3349
3444
|
|
|
3350
|
-
**Description:** Open unmerged root build PRs (leaves and integration nodes) at which the dispatcher stops ordinary ready-queue claims of `normal
|
|
3445
|
+
**Description:** Open unmerged root build PRs (leaves and integration nodes) at which the dispatcher stops ordinary ready-queue claims of `high`, `normal` and `low` tickets. In-flight work, reconciles, landings, `urgent` claims and every `ab start` (`tickets.start`) request continue, subject to capacity and repository pause. Unset disables open-PR backpressure.
|
|
3351
3446
|
|
|
3352
3447
|
**Constraints:** safe integer; > 0
|
|
3353
3448
|
|
|
@@ -3361,7 +3456,7 @@ status` reports the state as `capacity.backpressure`.
|
|
|
3361
3456
|
- **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
|
|
3362
3457
|
- **Local override:** Committed only: set in autobuild.toml.
|
|
3363
3458
|
|
|
3364
|
-
**Description:** Open root PR count at or below which paused
|
|
3459
|
+
**Description:** Open root PR count at or below which paused high, normal and low intake resumes; defaults to `maxOpenPrs - 1`. Reaching `maxOpenPrs` takes precedence, so when this equals `maxOpenPrs` intake stays paused at that count and resumes once the count falls below `maxOpenPrs`. Inert without `maxOpenPrs`.
|
|
3365
3460
|
|
|
3366
3461
|
**Constraints:** safe integer; ≥ 0; Must not exceed `maxOpenPrs`.
|
|
3367
3462
|
|
|
@@ -4249,7 +4344,7 @@ build or repository catalog, or `dispatcher.lost`; a glob that matches nothing
|
|
|
4249
4344
|
is rejected. Every error names the hook, at startup and on reload.
|
|
4250
4345
|
|
|
4251
4346
|
**Default filter.** A hook without `events` receives exactly `ab watch`'s default
|
|
4252
|
-
attention set: the build attention events,
|
|
4347
|
+
attention set: the build attention events, the derived
|
|
4253
4348
|
`build.consent-ready` and `build.merge-decision` observations, repository
|
|
4254
4349
|
attention including `hook.failing`, `hook.recovered` and `hook.skipped`, the
|
|
4255
4350
|
derived persistent-failure observations, and `dispatcher.lost`. Supplying
|
|
@@ -4581,7 +4676,7 @@ poll. Editing TOML cannot change them.
|
|
|
4581
4676
|
| Setting | Fresh-repository default | Controls | Scope |
|
|
4582
4677
|
|---|---:|---|---|
|
|
4583
4678
|
| Ticket intake | on | `ab dispatch --intake` / `--no-intake`; `i` on the dashboard's global row, and `p` (pause all) / `r` (resume all) on that row or their sessionless equivalents `ab pause --all` / `ab resume --all`, which turn intake off and on as part of quiescing the repository | When off, skip only ordinary ready-queue listing, claims, and dispatch. A pending `ab start` (`tickets.start`) request still claims its one named ticket while intake is off, subject to repository pause, capacity, and the usual ticket gates. Janitor work, lease recovery, in-flight builds, and harvesting continue. Turning intake off does not hold builds the repository has already accepted — that is the repository pause below. |
|
|
4584
|
-
| Repository pause | off | `p` (pause all) / `r` (resume all) on the dashboard's global row, or `ab pause --all` / `ab resume --all` | While on, the dashboard controls line shows `repository PAUSED`, and each held queued row shows `(held)`
|
|
4679
|
+
| Repository pause | off | `p` (pause all) / `r` (resume all) on the dashboard's global row, or `ab pause --all` / `ab resume --all` | While on, the dashboard controls line shows `repository PAUSED`, and each held queued row shows `(held)` beside its `STARTING` status. No dispatcher tick attaches a runner to such a build — recovery, startup resume, and the lease sweep all skip them. Running builds are parked by the per-build pauses the same command writes; the janitor still settles aborts and discards. |
|
|
4585
4680
|
| Harvest gate | on | `h` on the dashboard's global row | Pauses or resumes repository observation harvesting. The header shows the kernel-acknowledged gate, not merely a pending keypress. |
|
|
4586
4681
|
|
|
4587
4682
|
The opposite flag forms for each dispatch setting are mutually exclusive.
|
|
@@ -4714,7 +4809,7 @@ action. Check the gates in this order:
|
|
|
4714
4809
|
`ab watch`.
|
|
4715
4810
|
2. **Repository pause:** a pause all holds every queued build, so the dashboard
|
|
4716
4811
|
controls line shows `repository PAUSED` and an existing held build shows
|
|
4717
|
-
`(held)` beside its
|
|
4812
|
+
`(held)` beside its `STARTING` status. Intake off alone shows neither
|
|
4718
4813
|
pause indication. `r` on the dashboard's global row or `ab resume --all`
|
|
4719
4814
|
releases the hold and restores intake.
|
|
4720
4815
|
3. **Ready state:** the ticket must be in exactly `tickets.readyState`. Linear
|
|
@@ -4725,12 +4820,12 @@ action. Check the gates in this order:
|
|
|
4725
4820
|
5. **Dependencies:** every `blockedBy` ticket must exist and be complete in the
|
|
4726
4821
|
same source. This includes harvest proposals filed directly into the ready
|
|
4727
4822
|
state. Plain dispatch output reports unresolved ids and cycles.
|
|
4728
|
-
6. **Capacity:**
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4823
|
+
6. **Capacity:** a build holds a slot from admission while Autobuild owes its
|
|
4824
|
+
next move, runner or not. Paused builds, builds blocked on a question once
|
|
4825
|
+
nothing is still working on them, builds waiting for a merge decision or
|
|
4826
|
+
merge gates, and builds waiting on other tickets hold none. An answered or resumed build, one whose ticket wait ended,
|
|
4827
|
+
and one that must re-verify or reconcile reserve a slot ahead of claims at
|
|
4828
|
+
their level until admitted; higher levels go first (see
|
|
4734
4829
|
[slot admission order](dispatcher.md#slot-admission-order)). Inspect `ab repository status`, `ab builds --queued` and
|
|
4735
4830
|
`ab build status <slug>` rather than looking only for a live process.
|
|
4736
4831
|
7. **Duplicate work:** a ready ticket already represented by an active build is
|
|
@@ -4982,8 +5077,10 @@ freezes that eligibility and the initial packaged-content baseline across
|
|
|
4982
5077
|
successors; changing the operator checkout cannot change what a generation runs.
|
|
4983
5078
|
Source targets use the forge-authoritative base commit. Installation exports that
|
|
4984
5079
|
exact commit into private cache staging, requires the committed Bun lock, and runs
|
|
4985
|
-
`bun install --frozen-lockfile --ignore-scripts --no-progress
|
|
4986
|
-
|
|
5080
|
+
`bun install --frozen-lockfile --ignore-scripts --no-progress --production --filter ./`.
|
|
5081
|
+
Only the root package's production dependencies are materialized, and each must
|
|
5082
|
+
resolve inside the export; the frozen lock still covers every workspace. The
|
|
5083
|
+
immutable cached distribution records that commit and follows normal cache pruning.
|
|
4987
5084
|
|
|
4988
5085
|
Source equality compares actual packed contents and production-reachable lock
|
|
4989
5086
|
records, including nested dependencies, rather than version or SHA. An excluded
|
package/docs/dispatcher.md
CHANGED
|
@@ -51,23 +51,34 @@ A ticket is claimed when it passes every gate:
|
|
|
51
51
|
- **Blockers.** Every dependency is done.
|
|
52
52
|
- **Destination.** Its target (`main` or an integration node) accepts new work.
|
|
53
53
|
|
|
54
|
-
Others stay queued.
|
|
54
|
+
Others stay queued. Ready tickets are claimed by level, `urgent`, `high`, `normal`, then `low`, each level in the source's order; priority never preempts a running build. With `[policy].maxOpenPrs` set, open-PR backpressure pauses new claims of every ticket but urgent ones while that many root PRs are open and unmerged, until the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are equal); urgent claims and in-flight work continue. See [`[policy]`](configuration.md#policy). See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
|
|
55
55
|
|
|
56
|
-
To start one ticket without turning intake on for the whole ready queue, run `ab start <ticket-id> [--priority manual|urgent|normal]` (or the `tickets.start` operator tool). The running dispatcher, local or hosted, claims just that ticket on its next tick with a free slot in the request's tier and records the outcome as a `ticket.start-settled` event shown by `ab watch` and `ab repository status`. The default `manual` tier goes ahead of all waiting work;
|
|
56
|
+
To start one ticket without turning intake on for the whole ready queue, run `ab start <ticket-id> [--priority manual|urgent|high|normal|low]` (or the `tickets.start` operator tool). The running dispatcher, local or hosted, claims just that ticket on its next tick with a free slot in the request's tier and records the outcome as a `ticket.start-settled` event shown by `ab watch` and `ab repository status`. The default `manual` tier goes ahead of all waiting work; the four level tiers wait their turn as described below. The ticket must still be in the ready state, meet the spec standard, have no unresolved blockers and a destination that accepts work, and is deduplicated against existing builds; capacity and repository pause still apply. Listing labels and the ready assignee are not applied, because the ticket is named. Every tier bypasses intake off and open-PR backpressure for that ticket only. See `ab help start`.
|
|
57
57
|
|
|
58
|
-
Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity
|
|
58
|
+
Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity is the repository's number of slots. A build takes a slot only by admission (a ticket claim, a start request or an admitted slot request) and holds it while Autobuild owes its next move, runner or not: between phases, while provisioning, across a crashed runner or expired lease, while a requested pause or abort winds down, and while work it started outlasts a question: other steps of a verify stage, or a recorded launch and its execution. The dispatcher records `slot.admitted` before every such launch. It releases the slot as soon as it waits on the outside world: an open question nothing is still working past, an acknowledged pause, a merge decision or merge gates, or other tickets (`ab wait-on`). When that wait ends (an answer, a resume, a moved target, a conflicted PR, an ended ticket wait) the build holds no slot until it is admitted again, ahead of ticket claims at its level. Occupancy never exceeds `capacity`. Builds without a slot keep their workspaces, so retained workspaces can exceed `capacity`. An integration node takes a slot only when admitted to verify, reconcile or propose, and holds it until that work is done; it holds none while collecting children, waiting for a repair child, or blocked. See [the integration tree](integration-overview.md). `ab builds`, `ab build status` and `ab repository status` report each build's slot state; see [Operator surfaces](operator-surfaces.md).
|
|
59
59
|
|
|
60
60
|
## Slot admission order
|
|
61
61
|
|
|
62
62
|
A free slot goes, in order, to:
|
|
63
63
|
|
|
64
64
|
1. `manual` start requests (`ab start`'s default);
|
|
65
|
-
2. urgent
|
|
66
|
-
3.
|
|
67
|
-
4. normal
|
|
68
|
-
5.
|
|
65
|
+
2. urgent waiting work, then urgent ticket claims;
|
|
66
|
+
3. high waiting work, then high ticket claims;
|
|
67
|
+
4. normal waiting work, then normal ticket claims;
|
|
68
|
+
5. low waiting work, then low ticket claims.
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
| Term | Means |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| Waiting work | nodes and finished or waiting builds that must verify, reconcile, resume, reopen or propose |
|
|
73
|
+
| A level's ticket claims | `ab start --priority <level>` requests, oldest first, then that level's ready tickets in the source's order |
|
|
74
|
+
|
|
75
|
+
- **Build level.** A build takes its ticket's level. A build started by a non-`manual` request takes the request's level; `manual` never becomes a build level. A ticket with a pending non-`manual` request is claimed only by that request, at its tier, ahead of that level's ready tickets.
|
|
76
|
+
- **Optimization attempts.** [Attempts](optimization-nodes.md#attempts) claim at the node's current level, any of the four. A later `ab priority` on the node affects attempts claimed afterwards; an already claimed attempt keeps its level.
|
|
77
|
+
- **Changing a build.** `ab priority <slug> urgent|high|normal|low` (or the `builds.control` action `priority`) changes an active build's level, for example to expedite a waiting reconcile that now blocks other work, or to defer one with `low`. It never changes the ticket.
|
|
78
|
+
- **Reservations.** A pending start request reserves its slot ahead of the tiers below it until it settles or is cancelled. Lower-level waiting work waits while gate-passing higher-level tickets are ready, until the dispatcher has offered them the free slots that tick. A ticket blocked on a dependency reserves nothing at any level.
|
|
79
|
+
- **Unread start requests.** A tick reads at most eight `manual` and `urgent` requests and eight `high`, `normal` and `low` requests. While a request at a level is left unread, nothing below that level is admitted that tick, and that level's ready tickets wait too. That level's waiting work still goes first. A later tick reads the request once the requests ahead of it settle.
|
|
80
|
+
- **No preemption.** Priority orders free slots only: it never interrupts a running build.
|
|
81
|
+
- **Status.** `ab repository status`, `ab builds` and both dashboards show each waiter's level, pending start requests by tier, and higher-level ticket claims waiting ahead of lower-level waiting work.
|
|
71
82
|
|
|
72
83
|
|
|
73
84
|
## The log is the source of truth
|
|
@@ -42,7 +42,7 @@ A leaf contributes one canonical net change, however many commits it took.
|
|
|
42
42
|
|
|
43
43
|
- **Identity.** The `Autobuild-Build: <slug>` trailer carries it across SHA rewrites. Root squash merges keep it; node integration keeps each contributing identity, in order, alongside the node's verified hand-pushed tweaks, rather than one node commit.
|
|
44
44
|
- **Restacks.** When a destination moves, a leaf restacks onto it at its usual restack points; a node restacks only on demand, and each descendant node needs its own demand. Clean replay is automatic, and so is a conflict confined to files the repository declares as generated, which their declared command rebuilds. Any other conflict attaches a reconcile runner with the source change's context, then verification as required.
|
|
45
|
-
- **Reverification.** Node verification covers the exact node head and parent; a change to either voids merge eligibility until reverified, even after a clean restack. A cleanly restacked waiting leaf
|
|
45
|
+
- **Reverification.** Node verification covers the exact node head and parent; a change to either voids merge eligibility until reverified, even after a clean restack. A cleanly restacked waiting leaf keeps its prior verification unless `afterCleanRestack` opts steps in for a root-targeting leaf, which re-run before it lands; reports cite their actual head and base.
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
## Blockers are a separate graph
|
package/docs/integration-tree.md
CHANGED
|
@@ -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
|
|
|
@@ -98,22 +100,35 @@ execution lease or dispatch capacity. A PR opens or is adopted when the node
|
|
|
98
100
|
has commits its current parent lacks; parent-only advancement remains empty.
|
|
99
101
|
|
|
100
102
|
|
|
101
|
-
A node
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
103
|
+
A node takes a slot only by admission for runner work: `reconcile` for a
|
|
104
|
+
restack conflict, `verification` for an integration cycle or a measurement, and
|
|
105
|
+
`propose` for an optimization node's open proposal request. The request is
|
|
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.
|
|
112
|
+
|
|
113
|
+
- **Recorded before provisioning.** Admission is a durable `slot.admitted`
|
|
114
|
+
fact naming the work it admitted.
|
|
115
|
+
- **Held through the work.** The node keeps the slot through provisioning,
|
|
116
|
+
launch and relaunch after a crashed runner or expired lease, and across a
|
|
117
|
+
dispatcher restart, until that work is done: the cycle verified or failed,
|
|
118
|
+
the measurement recorded, the proposal deposited or the restack settled.
|
|
119
|
+
- **Released on an outside wait.** A paused node, or one blocked on a question
|
|
120
|
+
(a restack conflict's escalation included), holds none. Once answered or
|
|
121
|
+
resumed, it requests its slot again.
|
|
122
|
+
- **Never held by idling.** An idle collecting node, a node waiting for a
|
|
123
|
+
repair child and a node's retained workspace hold none. Paused descendants,
|
|
124
|
+
and blocked ones with nothing still working on them, hold none either, so they never stand between a node and the
|
|
125
|
+
slot it needs to unblock them.
|
|
126
|
+
|
|
127
|
+
Status and both dashboards report occupancy against configured capacity, and
|
|
128
|
+
each node waiting for a slot ahead of ticket claims at its level, marking
|
|
129
|
+
urgent, high and low ones.
|
|
130
|
+
Status also reports every build's slot state (`slot`, `capacity.slots`):
|
|
131
|
+
an admitted node reports `held`; a node awaiting admission reports its request.
|
|
117
132
|
|
|
118
133
|
Claims freeze the destination build generation and branch. Missing, unopened,
|
|
119
134
|
merged, closed or aborted targets leave work queued with diagnostics. The newest
|
|
@@ -251,7 +266,7 @@ An optimization node follows `branch opening → starting measurement →
|
|
|
251
266
|
(propose → collecting)*`, then completes, verifies and merges like any node.
|
|
252
267
|
Once the starting value is measured, the dispatcher requests a `propose`
|
|
253
268
|
session whenever the node has room within its concurrency and attempts budget.
|
|
254
|
-
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
|
|
255
270
|
verification. The session runs the `ab-propose` skill on the node head, reads
|
|
256
271
|
the attempt ledger and deposits proposals with `ab propose`; it never creates
|
|
257
272
|
tickets. The dispatcher files each proposal as a work ticket targeting the
|
package/docs/merge-policy.md
CHANGED
|
@@ -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
|
package/docs/operating.md
CHANGED
|
@@ -63,7 +63,9 @@ Re-arm with `bun ab watch --operator --json --since <watch-cursor>` using only
|
|
|
63
63
|
the standing watch's own cursor. This preserves one ID and original start time
|
|
64
64
|
across a presence re-arm gap of up to five minutes. This presence TTL is separate
|
|
65
65
|
from hosted event-window eligibility. After termination withdraws presence,
|
|
66
|
-
the same cursor re-registers the same ID and start time.
|
|
66
|
+
the same cursor re-registers the same ID and start time. Settled builds drop out
|
|
67
|
+
of the cursor once their events are delivered, so re-arms stay proportional to
|
|
68
|
+
active builds. Reconcile current and
|
|
67
69
|
newly dispatched builds after arming and on timeout. Keep operating after the initial work ends,
|
|
68
70
|
until you end or hand off the role. `wait` does not heartbeat or carry registration
|
|
69
71
|
identity: a separate unflagged diagnostic wait/watch must never replace the
|
|
@@ -140,14 +142,14 @@ Intake off only stops new ticket claims; a repository pause also holds queued bu
|
|
|
140
142
|
bun ab priority my-build urgent
|
|
141
143
|
```
|
|
142
144
|
|
|
143
|
-
- **`priority`** sets an active build's slot-admission
|
|
145
|
+
- **`priority`** sets an active build's slot-admission level to `urgent`, `high`, `normal` or `low` without touching its ticket. A build waiting to re-verify, reconcile or resume takes the next free slot ahead of its own level's ticket claims and all lower-level work; see [slot admission order](dispatcher.md#slot-admission-order). It never interrupts running work.
|
|
144
146
|
|
|
145
147
|
```
|
|
146
148
|
bun ab start AUT-12
|
|
147
149
|
bun ab start AUT-13 --priority urgent
|
|
148
150
|
```
|
|
149
151
|
|
|
150
|
-
- **`start`** asks the running dispatcher to claim one ticket on its next tick with a free slot, even while intake is off or open-PR backpressure is engaged, and nothing else. By default (`--priority manual`) the request goes ahead of all waiting work
|
|
152
|
+
- **`start`** asks the running dispatcher to claim one ticket on its next tick with a free slot, even while intake is off or open-PR backpressure is engaged, and nothing else. By default (`--priority manual`) the request goes ahead of all waiting work and the build takes its ticket's level. `--priority urgent|high|normal|low` waits for waiting work at that level or above and for higher-level claims, goes ahead of that level's ready tickets, and sets the build's level. Repeating the command with another priority updates the pending request. The ticket must still be ready, meet the spec standard and have no unresolved blockers; a request that cannot start settles once with its reason. `ab watch` reports the outcome and `ab repository status` lists pending requests with their priority. `--cancel` withdraws a pending request.
|
|
151
153
|
|
|
152
154
|
## Authorize merge
|
|
153
155
|
|