@defrex/autobuild 1.2.0 → 1.4.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 +416 -36
- package/docs/accounts.md +50 -1
- package/docs/answering-blocked-builds.md +4 -1
- package/docs/architecture.md +298 -17
- package/docs/build-store.md +18 -0
- package/docs/builds.md +7 -1
- package/docs/cli.md +1 -1
- package/docs/configuration-overview.md +6 -0
- package/docs/configuration.md +44 -19
- package/docs/dispatcher-hosting.md +42 -0
- package/docs/dispatcher.md +41 -0
- package/docs/forges.md +5 -0
- package/docs/integration-tree.md +24 -5
- package/docs/operating.md +11 -3
- package/docs/operator-api.md +81 -10
- package/docs/operator-surfaces.md +29 -0
- package/docs/plugin-authoring.md +51 -2
- package/docs/remote-store-protocol.md +321 -46
- package/docs/remote-ticket-protocol.md +12 -10
- package/docs/restacking.md +105 -3
- package/docs/setup.md +37 -8
- package/docs/skills.md +1 -1
- package/docs/spec-standard.md +41 -5
- package/docs/ticket-dependencies.md +8 -0
- package/docs/troubleshooting.md +9 -0
- package/docs/workspaces.md +1 -1
- package/package.json +4 -3
- package/packages/core/src/accounts/availability.ts +96 -0
- package/packages/core/src/accounts/local-owner.ts +49 -2
- package/packages/core/src/cli/attention.ts +2 -0
- package/packages/core/src/cli/binary.ts +17 -1
- package/packages/core/src/cli/context.ts +62 -0
- package/packages/core/src/cli/dashboard/model.ts +12 -3
- package/packages/core/src/cli/dashboard/poll.ts +65 -8
- package/packages/core/src/cli/dashboard/refresh.ts +2 -0
- package/packages/core/src/cli/dashboard/render.ts +46 -5
- package/packages/core/src/cli/dispatch-args.ts +27 -3
- package/packages/core/src/cli/dispatch-frontend.ts +179 -52
- package/packages/core/src/cli/dispatch-mode.ts +94 -0
- package/packages/core/src/cli/dispatch-preflight.ts +43 -0
- package/packages/core/src/cli/dispatch-repository-feed.ts +150 -33
- package/packages/core/src/cli/dispatch.ts +209 -36
- package/packages/core/src/cli/dispatcher-liveness.ts +6 -1
- package/packages/core/src/cli/forge-clear.ts +30 -0
- package/packages/core/src/cli/harvest.ts +2 -1
- package/packages/core/src/cli/help.ts +17 -3
- package/packages/core/src/cli/historical-build-state.ts +6 -0
- package/packages/core/src/cli/main.ts +43 -2
- package/packages/core/src/cli/publication-settlement.ts +17 -0
- package/packages/core/src/cli/remote-poll.ts +11 -1
- package/packages/core/src/cli/repository-status.ts +11 -0
- package/packages/core/src/cli/status.ts +7 -1
- package/packages/core/src/cli/wait.ts +9 -2
- package/packages/core/src/cli/watch.ts +47 -16
- package/packages/core/src/config/roles.ts +16 -1
- package/packages/core/src/events/catalog.ts +8 -0
- package/packages/core/src/events/forge-degradation-policy.ts +11 -0
- package/packages/core/src/events/payloads.ts +95 -2
- package/packages/core/src/events/policy.ts +19 -0
- package/packages/core/src/events/repository.ts +108 -2
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +464 -0
- package/packages/core/src/kernel/change-presence.ts +74 -8
- package/packages/core/src/kernel/dispatch-placement.ts +30 -0
- package/packages/core/src/kernel/engine.ts +27 -12
- package/packages/core/src/kernel/generators/leaf-restack-log.ts +17 -1
- package/packages/core/src/kernel/generators/node-restack-log.ts +14 -0
- package/packages/core/src/kernel/leaf-restack-state.ts +24 -2
- package/packages/core/src/kernel/log-index.ts +1 -1
- package/packages/core/src/kernel/node-landing.ts +27 -10
- package/packages/core/src/kernel/node-polling.ts +40 -7
- package/packages/core/src/kernel/node-restack-demand.ts +75 -0
- package/packages/core/src/kernel/node-restack-state.ts +20 -1
- package/packages/core/src/kernel/node-restack-transaction.ts +47 -1
- package/packages/core/src/kernel/read-facts.ts +120 -9
- package/packages/core/src/kernel/reconcile-head.ts +34 -11
- package/packages/core/src/kernel/reconcile-restack.ts +106 -72
- package/packages/core/src/kernel/reducer-registry.ts +6 -0
- package/packages/core/src/kernel/reducer.ts +20 -2
- package/packages/core/src/kernel/replay-retention.ts +176 -0
- package/packages/core/src/kernel/target-lineage.ts +65 -0
- package/packages/core/src/kernel/target-observation.ts +117 -0
- package/packages/core/src/kernel/ticket-preparation.ts +66 -0
- package/packages/core/src/operator/annotations.ts +6 -0
- package/packages/core/src/operator/control.ts +20 -0
- package/packages/core/src/operator/index.ts +2 -0
- package/packages/core/src/operator/registry.ts +25 -13
- package/packages/core/src/operator/tickets.ts +8 -2
- package/packages/core/src/plugin-sdk/index.ts +1 -0
- package/packages/core/src/ports/forge/fake.ts +22 -0
- package/packages/core/src/ports/forge/git-rewrite.ts +49 -12
- package/packages/core/src/ports/forge/github.ts +42 -10
- package/packages/core/src/ports/forge/local-git.ts +16 -1
- package/packages/core/src/ports/runner/account-env.ts +60 -9
- package/packages/core/src/ports/runner/claude.ts +49 -45
- package/packages/core/src/ports/types.ts +58 -4
- package/packages/core/src/ports/workspace/account-policy.ts +2 -1
- package/packages/core/src/ports/workspace/commit-preservation.ts +175 -0
- package/packages/core/src/ports/workspace/create.ts +2 -0
- package/packages/core/src/ports/workspace/fake.ts +4 -0
- package/packages/core/src/ports/workspace/git-worktree.ts +22 -1
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +304 -56
- package/packages/core/src/processes/build-runner.ts +240 -111
- package/packages/core/src/processes/dispatcher-selectors.ts +3 -2
- package/packages/core/src/processes/dispatcher.ts +732 -201
- package/packages/core/src/processes/execution-no-progress.ts +8 -0
- package/packages/core/src/processes/harvest-runner.ts +6 -7
- package/packages/core/src/processes/harvest.ts +11 -16
- package/packages/core/src/processes/publication-state.ts +2 -1
- package/packages/core/src/processes/repo-view.ts +25 -0
- package/packages/core/src/processes/workspace-preservation.ts +164 -0
- package/packages/core/src/scenarios/harness.ts +7 -0
- package/packages/core/src/store/adapter.ts +9 -0
- package/packages/core/src/store/artifact-meta.ts +7 -0
- package/packages/core/src/store/build-scope.ts +28 -0
- package/packages/core/src/store/contract.ts +182 -0
- package/packages/core/src/store/event-reads.ts +156 -0
- package/packages/core/src/store/local/schema.ts +11 -0
- package/packages/core/src/store/local/store.ts +117 -2
- package/packages/core/src/store/memory.ts +241 -0
- package/packages/core/src/store/phase-session.ts +47 -0
- package/packages/core/src/store/reduced-reads.ts +8 -0
- package/packages/core/src/store/reducer-value-shapes.json +10546 -8877
- package/packages/core/src/store/reducer-value-validation.ts +109 -6
- package/packages/core/src/store/reducer-values.ts +62 -2
- package/packages/core/src/store/remote/client.ts +208 -23
- package/packages/core/src/store/remote/compatibility.ts +195 -25
- package/packages/core/src/store/remote/errors.ts +16 -0
- package/packages/core/src/store/remote/index.ts +17 -0
- package/packages/core/src/store/remote/protocol.ts +30 -1
- package/packages/core/src/store/remote/released-clients.json +37 -0
- package/packages/core/src/store/remote/released-clients.ts +88 -0
- package/packages/core/src/store/remote/released-reducer-values/1.2.0.json +8129 -0
- package/packages/core/src/store/remote/released-reducer-values/1.3.0.json +25093 -0
- package/packages/core/src/store/remote/released-reducer-values/1.4.0.json +26128 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +13 -0
- package/packages/core/src/store/remote/version.ts +8 -1
- package/packages/core/src/store/repo-state-events.ts +6 -3
- package/packages/core/src/store/scan-cadence.ts +15 -0
- package/packages/core/src/store/session-handle.ts +18 -0
- package/packages/core/src/store/snapshots.ts +16 -3
- package/packages/core/src/store/types.ts +29 -6
- package/packages/core/src/testing/dispatch-read-budget.ts +457 -7
- package/packages/core/src/testing/index.ts +6 -1
- package/packages/core/src/testing/reduced-read-budget.ts +1240 -9
- package/skills/guide/SKILL.md +220 -22
- package/skills/guide/references/accounts.md +50 -1
- package/skills/guide/references/integration-tree.md +24 -5
- package/skills/guide/references/operator-api.md +81 -10
- package/skills/guide/references/plugin-authoring.md +51 -2
- package/skills/guide/references/remote-store-protocol.md +321 -46
- package/skills/guide/references/remote-ticket-protocol.md +12 -10
- package/skills/guide/references/restacking.md +105 -3
- package/skills/guide/references/setup.md +37 -8
- package/skills/guide/references/spec-standard.md +41 -5
- package/skills/guide/references/ticket-dependencies.md +8 -0
- package/skills/implement/SKILL.md +12 -3
- package/skills/operate/SKILL.md +85 -12
- package/skills/plan/SKILL.md +27 -4
- package/skills/plan-review/SKILL.md +22 -2
- package/skills/reconcile/SKILL.md +16 -1
- package/skills/spec/SKILL.md +7 -4
- package/skills/tickets/SKILL.md +7 -3
- package/templates/hosted-service/package.json +2 -2
package/skills/guide/SKILL.md
CHANGED
|
@@ -82,6 +82,13 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
82
82
|
claims tickets that pass the `[tickets]` ready
|
|
83
83
|
gate, chooses a short immutable slug from the final conforming spec, and
|
|
84
84
|
starts builds up to the top-level `capacity` bound.
|
|
85
|
+
- **Failed preparation.** Durable preparation facts protect the claim-to-build
|
|
86
|
+
interval. Caught failures return tickets to Ready (invalid specs to Triage),
|
|
87
|
+
after exact build-ownership readback. Unresolved attempts stay withheld and
|
|
88
|
+
retry before intake, even at full capacity or with intake disabled. Unsafe
|
|
89
|
+
ownership or externally changed/missing tickets end automatic recovery with
|
|
90
|
+
a diagnostic `abandoned` resolution, leaving the ticket unchanged. See
|
|
91
|
+
[Ticket preparation recovery](references/restacking.md#ticket-preparation-before-build-creation).
|
|
85
92
|
- **Ticket assets** — files or folders attached to a ticket (see
|
|
86
93
|
[Ticket assets](#ticket-assets)) are frozen into the build at claim and
|
|
87
94
|
appear under `$AB_CONTEXT_DIR/assets/` in every phase, as inputs alongside the spec.
|
|
@@ -96,12 +103,16 @@ spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → fin
|
|
|
96
103
|
select configured optional verify steps in its opening front matter; a fresh
|
|
97
104
|
reviewer (no memory of prior rounds, by design) reviews both together and
|
|
98
105
|
approves, asks for a revision, or escalates. The loop repeats until approval
|
|
99
|
-
or a policy limit.
|
|
106
|
+
or a policy limit. Both phases check [implement-session fit](references/spec-standard.md#fit-one-implement-session)
|
|
107
|
+
and escalate clearly oversized required work with a proposed split; see
|
|
108
|
+
`ab-plan` and `ab-plan-review` for the evidence and split requirements.
|
|
100
109
|
- **`implement ⇄ code-review`** — the implementer executes the approved plan,
|
|
101
110
|
committing locally; a fresh reviewer reads the diff against spec and plan.
|
|
102
111
|
Same loop shape.
|
|
103
112
|
- **`verify:*`** — ordered stages, each containing one or more step phases.
|
|
104
113
|
Members run concurrently and the next stage waits for every pass or skip.
|
|
114
|
+
Normal transitions drain agent session settlement before stage-local shutdown;
|
|
115
|
+
parent shutdown and session budgets remain active.
|
|
105
116
|
A failed stage sends every failed report to `implement` after its siblings
|
|
106
117
|
settle; an optional `failFast` failure cancels unfinished siblings.
|
|
107
118
|
- **`finalize`** — the agent writes the PR description; the kernel opens the
|
|
@@ -225,7 +236,7 @@ The distinctions that change an administrator's answer:
|
|
|
225
236
|
graceful until an open claim tick reaches a recoverable boundary; non-SIGINT
|
|
226
237
|
termination is replayed only after that drain. Durable normal/forced/abnormal
|
|
227
238
|
evidence retains available process detail, and parent-death detection prevents
|
|
228
|
-
a detached kernel. Resident checkout dispatch
|
|
239
|
+
a detached kernel. Resident checkout dispatch selects viewer or local execution before running a filesystem-only
|
|
229
240
|
launcher that snapshots the invoking installation and its installed production
|
|
230
241
|
dependencies offline into `.autobuild/runtime/`. The generation's frontend,
|
|
231
242
|
kernel, later local runners and agent PATH CLI execute from that immutable
|
|
@@ -330,6 +341,12 @@ The distinctions that change an administrator's answer:
|
|
|
330
341
|
still read the build worktree's branch-owned file. Dispatcher merge readiness,
|
|
331
342
|
resume, and execution recovery use the runner's pinned commands, verify, and
|
|
332
343
|
finalize configuration through the cycle capture's exact artifact revision.
|
|
344
|
+
Lease sweeps reuse at most 128 parsed effective-config pins in a disposable
|
|
345
|
+
LRU, probing the latest metadata revision on every lookup. Artifact-only
|
|
346
|
+
deposits invalidate reuse. Current facts, live settings and cycle captures
|
|
347
|
+
are recomputed; launch, resume and merge boundaries keep fresh artifact reads.
|
|
348
|
+
Restart or eviction costs a full reread. Legacy stores without metadata support
|
|
349
|
+
retain full artifact reads; invalid pins still withhold decisions and retry repair.
|
|
333
350
|
At every verify-cycle entry, after restack or reconcile settles, the runner
|
|
334
351
|
reads `autobuild.toml` from the execution checkout at resolved `HEAD` (including
|
|
335
352
|
detached integration heads). `verify.config-captured` cites an immutable
|
|
@@ -419,6 +436,17 @@ one scan interval plus one tick when capacity permits. Observation while intake
|
|
|
419
436
|
is off shares the cadence; an observation measurement cannot suppress a fresh
|
|
420
437
|
admission scan when intake is enabled.
|
|
421
438
|
|
|
439
|
+
Only changed scan outcomes append `dispatcher.ticket-scan-completed`; comparison
|
|
440
|
+
includes counts, ordered diagnostics, readiness and criteria fingerprints, and
|
|
441
|
+
mode. Its `startedAt` is the measurement time of the last recorded outcome,
|
|
442
|
+
not a last-scanned heartbeat. A single replaceable, repository-keyed cadence
|
|
443
|
+
cache survives fresh dispatcher processes and acknowledges that canonical fact
|
|
444
|
+
by sequence. It contains scheduling metadata only, never counts or lifecycle
|
|
445
|
+
state, and is distinct from reducer checkpoints. Missing or stale metadata
|
|
446
|
+
falls back to the recorded fact and can cause one safe extra scan without
|
|
447
|
+
reconstructing history. Successful unchanged scans advance this cache only.
|
|
448
|
+
|
|
449
|
+
|
|
422
450
|
### Root scalars
|
|
423
451
|
|
|
424
452
|
Root scalars must appear before the first TOML table; TOML otherwise nests them
|
|
@@ -695,6 +723,9 @@ run, never passing evidence. Whole-execution teardown and replacement add a
|
|
|
695
723
|
relaunch cost but prevent cancelled descendants from writing during implement.
|
|
696
724
|
Restart reruns only members without outcomes, keeping the same attempt and every
|
|
697
725
|
recorded outcome. One failed cycle spends one verify-attempt unit.
|
|
726
|
+
On normal transitions, terminal-reached agent turns finish their trailing artifacts,
|
|
727
|
+
transcript and session settlement before stage-local interruption. Fail-fast and
|
|
728
|
+
actual execution shutdown still interrupt promptly; session budgets remain enforced.
|
|
698
729
|
|
|
699
730
|
`verify.stage-failed` is the decisive full-feedback receipt. The legacy
|
|
700
731
|
`feedback.verify` object still names the first failed report; the implement
|
|
@@ -853,6 +884,39 @@ a new classified failure parks again. There are zero automatic paid retries
|
|
|
853
884
|
after this deferral. If evidence cannot be written, ordinary recovery applies;
|
|
854
885
|
agent output and `no-terminal` alone never classify a read failure.
|
|
855
886
|
|
|
887
|
+
A kernel store write rejected with HTTP 413 raises `StoreWriteTooLargeError`
|
|
888
|
+
and records `phase.failed {willRetry:false}` on its first attempt, including
|
|
889
|
+
for automatic restack and session preparation. Its diagnostic names an oversized
|
|
890
|
+
store write, the HTTP method and route, exact UTF-8 request bytes, and the
|
|
891
|
+
server message (including any reported ceiling). It parks with
|
|
892
|
+
`non-retryable-phase-failure`; an operator answer authorizes a fresh attempt,
|
|
893
|
+
which parks immediately again if still rejected. Store failures never select an
|
|
894
|
+
alternate provider. After a successful durable terminal, an oversized transcript
|
|
895
|
+
deposition during optional cleanup preserves that terminal without recording a
|
|
896
|
+
phase failure or retrying the completed phase. Without a terminal, the oversized
|
|
897
|
+
write follows the parking policy above. Other store statuses retain their
|
|
898
|
+
existing retry policy.
|
|
899
|
+
|
|
900
|
+
Before releasing or replacing a build workspace, the dispatcher confirms a
|
|
901
|
+
non-destructive execution fence for the exact workspace and execution generation.
|
|
902
|
+
It preserves unpublished branch commits and distinct detached producer candidates
|
|
903
|
+
under immutable `refs/autobuild/archive/<build>/<sha>` refs, verifies their exact
|
|
904
|
+
readback, and records `workspace.commits-preserved` before cleanup. Replacement
|
|
905
|
+
provisioning restores those exact refs before starting an agent. Preservation
|
|
906
|
+
never advances the public build branch. A confirmed absent environment records
|
|
907
|
+
`workspace.commits-lost`, naming known candidates and explicitly noting that any
|
|
908
|
+
additional unpublished SHAs could not be inspected. Unknown fencing, inspection,
|
|
909
|
+
transport, or receipt-write outcomes leave the workspace and snapshots intact.
|
|
910
|
+
Fencing is revalidated after restart; a saved receipt alone never authorizes
|
|
911
|
+
cleanup of a newer execution. Current recovery notes are linked by the session
|
|
912
|
+
manifest's `workspaceRecovery` field. Recovery notes apply to the next session
|
|
913
|
+
and repeat hydration within it; empty checkpoints produce no note. Checkpoints survive
|
|
914
|
+
repeated replacement until a published reconcile or restack rewrite retires them,
|
|
915
|
+
so an old preserved branch cannot overwrite that rewrite. Before the first
|
|
916
|
+
branch publication, preservation compares against the recorded workspace base.
|
|
917
|
+
A confirmed `snapshot_not_found` response means the sandbox filesystem is gone;
|
|
918
|
+
cleanup records loss and deletes its stale name before replacement.
|
|
919
|
+
|
|
856
920
|
Ordinary silence, provider failures and session timeouts retain the runner's
|
|
857
921
|
phase failure limit (`BuildRunnerOpts.maxPhaseAttempts`, default 2). This is
|
|
858
922
|
an internal runner option, not an accepted `[policy]` TOML key. Reconcile
|
|
@@ -937,6 +1001,26 @@ step as failed and file an observation while the green build continues.
|
|
|
937
1001
|
|
|
938
1002
|
### `[accounts]`
|
|
939
1003
|
|
|
1004
|
+
Local dispatch refuses missing selected primary/alternate credentials before
|
|
1005
|
+
claiming the repository lease. Selected internal and agent-step routes count;
|
|
1006
|
+
unused descriptors are readiness-only. Sources are nonempty environment slots
|
|
1007
|
+
or safely owned local refreshing logins. Local worktree Claude routes can use
|
|
1008
|
+
the host login without a token; sandbox and hosted routes require the slot.
|
|
1009
|
+
Startup inspects local records without claiming them before the repository lease. Successor preflight inspects transferable
|
|
1010
|
+
sources without taking ownership; a missing source keeps the predecessor active
|
|
1011
|
+
and raises upgrade attention. Config reloads hold account-dependent launches.
|
|
1012
|
+
Hosted account slots use project secrets exclusively, including empty snapshots:
|
|
1013
|
+
no deployment environment fallback. One durable repository condition per missing
|
|
1014
|
+
account names its source and `ab secrets set VARIABLE` remedy (ChatGPT renewal:
|
|
1015
|
+
`ab accounts login NAME --project`). The next tick recovers without per-build
|
|
1016
|
+
retry or infrastructure-attempt consumption. Existing execution observation,
|
|
1017
|
+
policy repair, controls and cleanup continue. Presence checks make no inference
|
|
1018
|
+
request; present rejected credentials keep account-specific attention. Local
|
|
1019
|
+
remedies are `claude setup-token` plus setting the configured variable, replacing
|
|
1020
|
+
the Kimi membership key, or `ab accounts login NAME --local` for ChatGPT.
|
|
1021
|
+
See [account admission](references/accounts.md#dispatcher-admission).
|
|
1022
|
+
|
|
1023
|
+
|
|
940
1024
|
An open map of account name to a strict, nonsecret descriptor. Claude and Kimi
|
|
941
1025
|
accounts use Claude Code; ChatGPT subscriptions require explicit Codex selection.
|
|
942
1026
|
Provision Claude/Kimi credentials manually; authorize ChatGPT with
|
|
@@ -1553,8 +1637,12 @@ arguments or responses. These sessionless commands use the saved owner
|
|
|
1553
1637
|
credential and recheck current membership. The current setter owns the value,
|
|
1554
1638
|
which serves every hosted build of that project. Hosted ticks resolve a fresh,
|
|
1555
1639
|
complete encrypted set and override matching deployment variables for that
|
|
1556
|
-
project only;
|
|
1557
|
-
|
|
1640
|
+
project only; selected account slots never fall back to deployment variables,
|
|
1641
|
+
even for an empty snapshot. Local dispatchers keep using their own environment. For projects
|
|
1642
|
+
with saved secrets, failed configuration, decryption or refresh holds new work;
|
|
1643
|
+
a ready subset may still repair running policies. A missing selected account
|
|
1644
|
+
raises a durable repository condition and recovers automatically on the next
|
|
1645
|
+
tick after its secret is set.
|
|
1558
1646
|
Projects without secrets continue with an empty set without encryption
|
|
1559
1647
|
configuration. Every secret write still requires valid encryption configuration.
|
|
1560
1648
|
List exposes only status, owner, timestamps and a keyed fingerprint. See the
|
|
@@ -1729,6 +1817,41 @@ in-session `put|get` still require ambient phase auth.
|
|
|
1729
1817
|
|
|
1730
1818
|
## Dispatch dashboard
|
|
1731
1819
|
|
|
1820
|
+
A plain `ab dispatch` reads dispatch placement once before starting local execution.
|
|
1821
|
+
For a hosted project it opens the Store-only viewer automatically, displaying
|
|
1822
|
+
`viewer · dispatched by <host>` from the placement origin (including a nondefault
|
|
1823
|
+
port). `--once`, `--plain`, and `--interval` retain their viewer meanings.
|
|
1824
|
+
`--takeover` explicitly dispatches locally, with a warning that it can displace
|
|
1825
|
+
the hosted dispatcher; it cannot be combined with `--viewer`. Startup intake
|
|
1826
|
+
flags require `--takeover` when placement selects viewer.
|
|
1827
|
+
|
|
1828
|
+
An unreadable placement fails closed with a typed error naming the cause:
|
|
1829
|
+
use `--viewer` to watch or `--takeover` to dispatch locally. Both explicit modes
|
|
1830
|
+
skip placement discovery. Older services without the capability and projects
|
|
1831
|
+
with unknown or nonhosted placement retain local dispatch behavior. Local stores
|
|
1832
|
+
need no placement request. Origin mode (`--repository` or `AB_REPOSITORY`) and
|
|
1833
|
+
hosted cron dispatch bypass this check. Placement is a startup snapshot, not a
|
|
1834
|
+
liveness probe or a polling input.
|
|
1835
|
+
|
|
1836
|
+
Humans may run `ab dispatch --viewer` from a local checkout to watch dispatch
|
|
1837
|
+
elsewhere without taking a lease or starting any dispatch work. The optional
|
|
1838
|
+
`--dispatched-by <label>` is descriptive input: every frame shows `viewer` or
|
|
1839
|
+
`viewer · dispatched by <label>`. Plain/non-TTY output prints the same at startup
|
|
1840
|
+
and emits state changes. `--once` reads one snapshot; `--interval <s>` sets the
|
|
1841
|
+
viewer polling cadence. Startup intake flags and explicit `--repository` are
|
|
1842
|
+
rejected. Without a durable effective configuration the viewer waits.
|
|
1843
|
+
|
|
1844
|
+
Viewer uses the Store-only frontend with canonical repository facts for status,
|
|
1845
|
+
settings, harvest and migrations, bypassing the dispatch presentation event feed
|
|
1846
|
+
and its checkpoints. Fresh viewers reuse server reductions; idle refreshes read
|
|
1847
|
+
zero event rows. It has no child, lease, execution wiring or upgrade-release timer.
|
|
1848
|
+
All existing shared-store controls remain: merge/hold, build/global pause/resume,
|
|
1849
|
+
blocked feedback/retry, intake/harvest gates, harvest resume/acknowledgement,
|
|
1850
|
+
queued discard and confirmed abort. Navigation/session inspection also remain.
|
|
1851
|
+
No current key requires a local dispatcher. Ctrl-C closes only the viewer.
|
|
1852
|
+
The operator-agent no-dispatch boundary includes `--viewer` and `--takeover`.
|
|
1853
|
+
|
|
1854
|
+
|
|
1732
1855
|
Both dashboards also show the current authoritative dispatcher's unresolved
|
|
1733
1856
|
rollback: failed and restored runtime (version and commit), held failed runtime,
|
|
1734
1857
|
and rollback event timestamp. A matching durable different-target hold clearance
|
|
@@ -1764,7 +1887,7 @@ steps and current outcomes, repair instructions, and the merge rule. Cancelled
|
|
|
1764
1887
|
children are omitted; historical missing titles or filenames are explicit.
|
|
1765
1888
|
|
|
1766
1889
|
|
|
1767
|
-
On a TTY, `ab dispatch` renders one fixed interactive frame anchored at the
|
|
1890
|
+
On a TTY, execution-mode `ab dispatch` renders one fixed interactive frame anchored at the
|
|
1768
1891
|
terminal's first row. Its header remains on that top row as frame height changes
|
|
1769
1892
|
and after a resize; unused rows remain below. On exit, the final frame is copied
|
|
1770
1893
|
to the normal screen and remains in scrollback. Its always-present two-line
|
|
@@ -1777,7 +1900,14 @@ of recorded observation occurrences not yet claimed by a Harvest snapshot
|
|
|
1777
1900
|
against `policy.harvestThreshold`. The Store-only interactive frontend refreshes
|
|
1778
1901
|
that display value directly from the BuildStore; a failed refresh retains the
|
|
1779
1902
|
last successful count, shows a diagnostic, and appends no transport event.
|
|
1780
|
-
|
|
1903
|
+
The execution-mode frontend checkpoints dashboard facts, the latest run start and the sampled
|
|
1904
|
+
lease holder's start; identity history stays partial and missing holders use a
|
|
1905
|
+
bounded per-run lookup. Unchanged written/refused checkpoints are not uploaded
|
|
1906
|
+
again. Dirty saves run at most once per 30 seconds; transient failures retry
|
|
1907
|
+
without new events after 30, 60, 120, 240, then 300 seconds (capped). Teardown
|
|
1908
|
+
forces only dirty state. An equal-cursor refusal leaves correlation recoverable
|
|
1909
|
+
by bounded lookup on restart; a later advancing checkpoint persists it.
|
|
1910
|
+
Non-interactive execution-mode dispatch performs no frontend-only sampling, and the separate
|
|
1781
1911
|
drift trigger is not displayed. An indented controls line follows for
|
|
1782
1912
|
`intake ON`/`intake OFF` and `harvest ON`/`harvest OFF`, plus a conditional yellow `repository PAUSED` segment while
|
|
1783
1913
|
the durable repository-wide hold is set. The controls start in the title
|
|
@@ -2073,6 +2203,8 @@ revision and keeps any open PR. A build's spec can therefore change under it:
|
|
|
2073
2203
|
phase runs after the revision read the new revision, while historical runs
|
|
2074
2204
|
remain readable at the revision they actually saw.
|
|
2075
2205
|
|
|
2206
|
+
If a leaf spec revision arrives during an unfinished reconcile, the same reconcile attempt resumes under the revised spec on its retained frozen target. Its replay and committed contribution remain owned by reconcile. Confirmed publication must settle before the fresh plan loop opens; prior approvals and verification remain invalidated.
|
|
2207
|
+
|
|
2076
2208
|
Operators may explicitly revise an opened idle collecting node or a node blocked on failed
|
|
2077
2209
|
integration verification without an escalation. Use
|
|
2078
2210
|
`ab answer <node> --revise-spec replacement.md` or, after amending its ticket,
|
|
@@ -2089,7 +2221,8 @@ Active verification/reconcile or writer work, restack/reparent work, pause,
|
|
|
2089
2221
|
pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
2090
2222
|
A concurrent state change refuses publication with a retry explanation;
|
|
2091
2223
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
2092
|
-
restart from `plan
|
|
2224
|
+
restart from `plan` after any unfinished reconcile resumes under the revised
|
|
2225
|
+
spec and its publication is confirmed.
|
|
2093
2226
|
|
|
2094
2227
|
Every command requires an applicable target in this repository. Pause and
|
|
2095
2228
|
resume require an active build; abort and hold also accept queued builds.
|
|
@@ -2218,7 +2351,13 @@ Recovery retries an unaccepted attempt using its inherited handle. Suspended
|
|
|
2218
2351
|
sessions reject old credentials permanently. `session.resume-fallback` records
|
|
2219
2352
|
why native continuation could not be used (including remote workspaces), then
|
|
2220
2353
|
ordinary fresh-session recovery applies. Unrelated open sessions are reclaimed
|
|
2221
|
-
without inventing transcripts.
|
|
2354
|
+
without inventing transcripts. A running, unblocked, unpaused build with no live
|
|
2355
|
+
execution or lease and an eligible open bracket is actionable cleanup even when
|
|
2356
|
+
the engine waits on a PR. The next admitted sweep attaches through ordinary
|
|
2357
|
+
reclamation; live provider executions, intentionally suspended sessions and idle
|
|
2358
|
+
collecting nodes are excluded. Ended healthy workspaces are reused; lost ones
|
|
2359
|
+
follow fenced recovery. Detection reads reduced facts, never historical events.
|
|
2360
|
+
Dashboard history shows suspended and resumed
|
|
2222
2361
|
segments separately, with their individual transcript refs and usage.
|
|
2223
2362
|
|
|
2224
2363
|
The build phase budget counts active time across interruptions using the original
|
|
@@ -2285,7 +2424,12 @@ The default watch reports actionable conditions only:
|
|
|
2285
2424
|
this clock; after grace, the first qualifying failure starts a new five-minute
|
|
2286
2425
|
interval. Each persistence episode is reported once. Repository read failures
|
|
2287
2426
|
fail the watch tick and retry on the next tick; repeated failures use this
|
|
2288
|
-
existing attention.
|
|
2427
|
+
existing attention. If failure publication is also unavailable, watch warns
|
|
2428
|
+
with both errors and retries at least one second apart (or the configured
|
|
2429
|
+
interval, if longer). It retains one bounded unreported window and appends
|
|
2430
|
+
it on recovery, without blocking handoff acceptance. Local warnings do not
|
|
2431
|
+
start the durable attention clock retroactively; explicit stops remain stops.
|
|
2432
|
+
Validation errors include reducer, scope, cursor, field
|
|
2289
2433
|
path, and running version/commit in the stored tick error.
|
|
2290
2434
|
|
|
2291
2435
|
Repository conditions are included with no slugs or with `--repository`.
|
|
@@ -2337,13 +2481,14 @@ outcome. Last-tick age refreshes independently of the event cursor and never use
|
|
|
2337
2481
|
heartbeat as completion evidence. Open telemetry protects unsafe work during
|
|
2338
2482
|
shutdown; historical journals retain their boundary fallback. Missing historical
|
|
2339
2483
|
evidence is null. The liveness query uses
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2484
|
+
persisted repository and exact per-run reduced values, including when newer
|
|
2485
|
+
invocations hide an older holder or stop. Missing facts never trigger a full-log
|
|
2486
|
+
fallback.
|
|
2343
2487
|
|
|
2344
2488
|
Repository-following `ab watch` additionally emits a read-only `dispatcher.lost`
|
|
2345
2489
|
observation when an observed lease expires without a matching stop or validated
|
|
2346
|
-
successor takeover.
|
|
2490
|
+
successor takeover. Any recorded stop, normal or abnormal, suppresses loss;
|
|
2491
|
+
abnormal stops retain their own default attention event. A completed ownership transfer suppresses predecessor loss
|
|
2347
2492
|
even while its sessions drain; a handoff without takeover still reports loss on
|
|
2348
2493
|
expiry. Successor loss and upgrade-failure/rollback attention remain independent. JSON carries
|
|
2349
2494
|
`observation` instead of `event`, with run, observedAt, leaseExpiresAt and available
|
|
@@ -2377,7 +2522,9 @@ For a standing operator loop, first check `ab repository status --json` for
|
|
|
2377
2522
|
live `operator.registrations`. Report another live operator rather than registering
|
|
2378
2523
|
unless the human directs otherwise. Arm `ab watch --operator --json` with no slugs;
|
|
2379
2524
|
re-arm with `ab watch --operator --json --since <watch-cursor>` using only that
|
|
2380
|
-
standing watch's own final or record cursor.
|
|
2525
|
+
standing watch's own final or record cursor. On `cursor-too-old`, re-arm without
|
|
2526
|
+
`--since`, reconcile status and acknowledge the unavailable historical gap.
|
|
2527
|
+
Reconcile active and newly dispatched
|
|
2381
2528
|
builds after arming and on timeout. Keep watching after initially queued work ends.
|
|
2382
2529
|
`ab wait` neither renews presence nor carries registration identity. Separate
|
|
2383
2530
|
unflagged diagnostic watches and waits must not replace the monitor or its cursor.
|
|
@@ -2478,6 +2625,15 @@ cursor=$(printf '%s' "$record" | grep -o '"cursor":"[^"]*"' | cut -d'"' -f4)
|
|
|
2478
2625
|
# exit 2: the build ended without the condition; exit 3: deadline, re-arm.
|
|
2479
2626
|
```
|
|
2480
2627
|
|
|
2628
|
+
Hosted watch/wait `--since` resumes read only the gap within the latest 1,000
|
|
2629
|
+
sequence positions, inclusive at head minus 1,000. Keep the cursor on normal
|
|
2630
|
+
re-arms and ordinary reducer upgrades. Typed `cursor-too-old` names the oldest
|
|
2631
|
+
servable cursor: re-arm without `--since`, reconcile repository/build status,
|
|
2632
|
+
and acknowledge the lost historical gap. Never fall back to cursor zero.
|
|
2633
|
+
Checkpoint integrity errors are terminal; retired seed generations require an
|
|
2634
|
+
upgrade/restart and fresh attachment. Explicit MCP `builds.events` history is
|
|
2635
|
+
paged at 256 events with `cursor` and `hasMore`; follow every continuation.
|
|
2636
|
+
|
|
2481
2637
|
**`ab harvest status [--events N] [--json] [--store <ref>]`** projects the
|
|
2482
2638
|
**`ab harvest status [--events N] [--json] [--store <ref>]`** projects the
|
|
2483
2639
|
durable repository gate and an ordered collection of every unresolved failed
|
|
@@ -2516,8 +2672,8 @@ status, lease health, routing, or recovery.
|
|
|
2516
2672
|
| Lease | Meaning |
|
|
2517
2673
|
|---|---|
|
|
2518
2674
|
| `held` | A runner holds an unexpired lease. The runner is live; inspect `PROGRESS` to see when it last wrote a durable fact. |
|
|
2519
|
-
| `expired` | The lease ran out
|
|
2520
|
-
| `no-lease` | **Not necessarily dead.** A build that has not yet claimed its first lease reads this way, and the lease sweep deliberately grants an absent lease a first-claim grace window before acting. A freshly launched build is the common case — read it together with progress, not alone. |
|
|
2675
|
+
| `expired` | The lease ran out; ownership is stale. A provider-proved live execution is left alone. `running` + `expired` is the **stale** case: the status is not lying, it simply has no "runner died" fact to record. Re-attachment depends on the current engine decision: the lease sweep re-attaches actionable runner work, including eligible orphaned open-session cleanup on an engine wait, while a merged or closed PR awaits repository-level completion with no runner re-attachment pending. |
|
|
2676
|
+
| `no-lease` | **Not necessarily dead.** A build that has not yet claimed its first lease reads this way, and the lease sweep deliberately grants an absent lease a first-claim grace window before acting. Proved-ended executions with pending engine work or eligible orphaned bracket cleanup bypass that grace; live leases still win. A freshly launched build is the common case — read it together with progress, not alone. |
|
|
2521
2677
|
|
|
2522
2678
|
So `running` + `held` confirms liveness, while its progress age says whether
|
|
2523
2679
|
the durable log is moving. For `running` + `expired`, inspect the build detail
|
|
@@ -2578,8 +2734,8 @@ default, when you need to know what this repo's version says).
|
|
|
2578
2734
|
| `ab-guide` | Outside the pipeline | This skill: reference for the lifecycle, config surface, setup/upgrade behavior, and the installed skills. Its editable `references/setup.md` guides the init handoff. **Model-invocable.** |
|
|
2579
2735
|
| `ab-harvest` | harvest `synthesize` step | Continue the producer across review rounds: cluster the claimed structured observations and author typed spec-standard create/join/suppress proposals. Runner-only. |
|
|
2580
2736
|
| `ab-harvest-review` | harvest `review` step | Fresh adversarial reviewer for proposal coverage, semantic dedup, spec quality, and evidence; returns `approve`/`revise`/`escalate`. Runner-only. |
|
|
2581
|
-
| `ab-plan` | `plan` phase | Turn the spec into a plan another agent can implement without re-deriving the reasoning. Writes no product code. |
|
|
2582
|
-
| `ab-plan-review` | `plan-review` phase | Fresh skeptic: review the plan against the spec
|
|
2737
|
+
| `ab-plan` | `plan` phase | Turn the spec into a plan another agent can implement without re-deriving the reasoning. Checks implement-session fit and escalates clearly oversized work with a proposed split. Writes no product code. |
|
|
2738
|
+
| `ab-plan-review` | `plan-review` phase | Fresh skeptic: review the plan against the spec and check implement-session fit; escalate clearly oversized required work with a proposed split. Verdict `approve`/`revise`/`escalate`. |
|
|
2583
2739
|
| `ab-implement` | `implement` phase | Execute the approved plan as local commits plus deposited notes. Never pushes. |
|
|
2584
2740
|
| `ab-code-review` | `code-review` phase | Fresh skeptic: review the implementation diff against spec and plan, same verdict vocabulary. |
|
|
2585
2741
|
| `ab-reconcile` | `reconcile` phase (epilogue) | Resolve a kernel-prepared single-change replay onto a frozen refreshed base; the kernel archives evidence and publishes with an exact expected-head guard. |
|
|
@@ -2638,11 +2794,33 @@ and `tickets.unblock` with the revision from `tickets.get` or `tickets.list`.
|
|
|
2638
2794
|
|
|
2639
2795
|
## Forge failure recovery
|
|
2640
2796
|
|
|
2797
|
+
Destination observation uses authoritative remote tips and fails closed on read
|
|
2798
|
+
or ancestry errors. External rewrites retain the accepted target and raise
|
|
2799
|
+
`target.rewritten` attention. Kernel node restacks instead require durable
|
|
2800
|
+
guarded publication receipts: the dispatcher proves at most 64 indexed hops per
|
|
2801
|
+
baseline and records them in `target.moved.lineage` for scoped runners. Missing
|
|
2802
|
+
proof or a longer gap still raises attention. See
|
|
2803
|
+
[destination observation and replay](references/restacking.md) for admission,
|
|
2804
|
+
recovery and read-cost bounds.
|
|
2805
|
+
|
|
2806
|
+
A historical `publication.lost` does not prove that every copy of its candidate
|
|
2807
|
+
is gone. Recovery checks the exact branch and private archive refs and retained
|
|
2808
|
+
replay objects first. An available candidate continues guarded publication.
|
|
2809
|
+
A genuinely missing reconcile or automatic restack candidate records
|
|
2810
|
+
`publication.candidate-retired`, abandons its obsolete request, and replays the
|
|
2811
|
+
producing operation with a fresh transaction identity. Its frozen target,
|
|
2812
|
+
reconcile occurrence or automatic trigger, cycle, and message survive. The
|
|
2813
|
+
retired candidate is excluded from archive requirements unless independently
|
|
2814
|
+
required by proven history. This reconstruction consumes no infrastructure
|
|
2815
|
+
attempt and no additional conflict occurrence; it needs no operator guidance.
|
|
2816
|
+
A bare retry also clears an existing infrastructure-limit escalation through
|
|
2817
|
+
ordinary retry semantics. Unavailable inspection defers rather than proving loss.
|
|
2818
|
+
|
|
2641
2819
|
Leaf restack and reconcile publication retry classified transient forge or transport
|
|
2642
2820
|
failures six times after the initial attempt, waiting 30, 60, 120, 240, 300 and
|
|
2643
2821
|
300 seconds. `publication.retry-scheduled` records the operation, frozen rewrite
|
|
2644
2822
|
identity, episode anchor, failure ordinal, last error and absolute retry time;
|
|
2645
|
-
restart resumes that schedule without rerunning
|
|
2823
|
+
restart resumes that schedule without rerunning a resolver whose candidate remains available. These retries do
|
|
2646
2824
|
not consume `maxPhaseAttempts`. A seventh transient failure records
|
|
2647
2825
|
`publication.retry-exhausted` and raises `publication-retry-limit`, naming the last
|
|
2648
2826
|
error and six retries. Answering that escalation opens a fresh publication episode
|
|
@@ -2661,7 +2839,15 @@ clears it. `policy.janitorBackoffMaxSeconds` sets the positive integer cap.
|
|
|
2661
2839
|
|
|
2662
2840
|
A classified forge rate limit records repository degradation with `resetAt`.
|
|
2663
2841
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
2664
|
-
request
|
|
2842
|
+
request; a successful probe records automatic recovery. An authorized operator
|
|
2843
|
+
may explicitly override erroneous recorded state with
|
|
2844
|
+
`ab repository forge-clear --forge <name> --reason <text>` or
|
|
2845
|
+
`repository.forge_clear {repo, forge, reason}`. This appends a human-attributed
|
|
2846
|
+
`dispatcher.forge-recovered` fact with the reason; it does not prove provider
|
|
2847
|
+
success. A subsequent actual limit records a fresh cooldown. Hosted admission
|
|
2848
|
+
requires a schema-valid finite ISO `resetAt` no later than server time plus
|
|
2849
|
+
24 hours, inclusive; past deadlines remain valid. Rejection never clamps or
|
|
2850
|
+
invents a provider reset, and historical events remain readable.
|
|
2665
2851
|
Native merge application failures keep candidate-specific retry eligibility,
|
|
2666
2852
|
including automatic decisions without a human command. Retries recheck consent,
|
|
2667
2853
|
holds, verification and the exact candidate. Uncertain enables remain pending
|
|
@@ -2722,13 +2908,25 @@ declare both spellings, including empty arrays. `ab upgrade` migrates this key.
|
|
|
2722
2908
|
|
|
2723
2909
|
### Permanent hosted project deletion
|
|
2724
2910
|
|
|
2911
|
+
The browser requires the exact full repository identity in a transient dialog field;
|
|
2912
|
+
confirm stays disabled for empty or mismatched input and focus starts in the field.
|
|
2913
|
+
The handler independently binds that identity to the selected repository and its
|
|
2914
|
+
fresh validated preview. Only JSON `{deleted:true}` acknowledges completion.
|
|
2915
|
+
After any failed or unrecognized deletion response, the browser shows
|
|
2916
|
+
“Deletion outcome unknown; reload to check” and holds the row in its original slot
|
|
2917
|
+
without actions, even after dismissal. Only a complete successful discovery begun
|
|
2918
|
+
by Reload after the attempt settles it: absence removes the row, presence restores
|
|
2919
|
+
its authorized actions, and pending cleanup restores Finish deletion with a fresh
|
|
2920
|
+
preview and exact typing. An earlier or unsuccessful read cannot settle the outcome.
|
|
2921
|
+
The server's `{repo}` body and generation-bound If-Match contract are unchanged.
|
|
2922
|
+
|
|
2725
2923
|
Super users and organization owners can permanently delete an authorized project
|
|
2726
2924
|
from the web Projects page after a warning and count preview in the shared confirmation dialog. This removes
|
|
2727
2925
|
hosted state, tickets, blobs, secrets and accounts, revokes all credentials and
|
|
2728
2926
|
retains only repository, actor, deletion time and an opaque generation id as audit.
|
|
2729
2927
|
`ab disconnect` only revokes the saved credential; admin `projects remove` only
|
|
2730
|
-
unregisters access and retains data.
|
|
2731
|
-
supports
|
|
2928
|
+
unregisters access and retains data. Server cleanup failure leaves access refused and
|
|
2929
|
+
supports recovery from the Projects page’s discovered unfinished deletions list, including after a
|
|
2732
2930
|
reload or service restart; registration waits for cleanup. Each request shares one
|
|
2733
2931
|
full admission per project. Deletion invalidates admitted generations during the
|
|
2734
2932
|
initial purge and waits only for active mutation transactions; a later mutation
|
|
@@ -5,6 +5,44 @@ subscription within ordinary individual usage. Claude and Kimi credentials are
|
|
|
5
5
|
provisioned manually; Autobuild never runs `claude setup-token`. ChatGPT
|
|
6
6
|
accounts use OpenAI's browser authorization through the CLI.
|
|
7
7
|
|
|
8
|
+
## Dispatcher admission
|
|
9
|
+
|
|
10
|
+
Before taking the repository lease, a local dispatcher checks every account
|
|
11
|
+
selected by an effective primary or alternate route, including internal roles
|
|
12
|
+
and agent verify/finalize steps. Unused declared accounts do not block dispatch;
|
|
13
|
+
`ab init --validate` still checks them for readiness. Availability means a
|
|
14
|
+
nonempty configured environment variable or a matching, safely owned local
|
|
15
|
+
refreshing login (`bun ab accounts login NAME --local`). A failed, unsafe,
|
|
16
|
+
mismatched local record fails closed. Startup inspects a ready login owned by a
|
|
17
|
+
live peer without claiming it, so a second dispatcher can yield to the repository
|
|
18
|
+
lease holder; execution claims the login only after acquiring the lease. An external access
|
|
19
|
+
token remains usable when no local login record exists. Startup checks presence,
|
|
20
|
+
without inference or provider validation. Local worktree Claude execution can
|
|
21
|
+
also use the host login without a configured token; sandbox and hosted execution
|
|
22
|
+
require the configured credential slot. Missing sources produce one error with
|
|
23
|
+
all account names, variable names and remedies, before any work is claimed.
|
|
24
|
+
|
|
25
|
+
Successor preflight checks the same sources without claiming or refreshing the
|
|
26
|
+
predecessor's login. A missing source refuses handoff and raises upgrade
|
|
27
|
+
attention while the predecessor stays active. Accepted config changes that
|
|
28
|
+
require unavailable accounts hold new account-dependent work.
|
|
29
|
+
|
|
30
|
+
Hosted ticks resolve selected accounts only from project secrets, never from
|
|
31
|
+
deployment credentials or local logins. An absent secret raises one durable
|
|
32
|
+
repository condition per account; repeated ticks do not repeat the condition or
|
|
33
|
+
spend build infrastructure attempts. Set it with `bun ab secrets set VARIABLE`,
|
|
34
|
+
or renew ChatGPT with `bun ab accounts login NAME --project`. The next tick
|
|
35
|
+
recovers automatically, without a per-build retry. Running executions continue
|
|
36
|
+
to be observed and their policies repaired; controls and cleanup continue.
|
|
37
|
+
A provisioning race uses the same repository condition and remains retryable.
|
|
38
|
+
Presence and rejection are separate: present but rejected credentials retain
|
|
39
|
+
account-specific rejection attention.
|
|
40
|
+
|
|
41
|
+
For local Claude subscriptions, renew with `claude setup-token` and set the
|
|
42
|
+
dispatcher credential variable. For Kimi, replace the membership key in that
|
|
43
|
+
variable. For local ChatGPT, sign in again with `bun ab accounts login NAME
|
|
44
|
+
--local`. Diagnostics contain source names and remedies, never secret values.
|
|
45
|
+
|
|
8
46
|
```toml
|
|
9
47
|
[accounts.personal]
|
|
10
48
|
kind = "claude-subscription"
|
|
@@ -35,6 +73,12 @@ requires its membership key. Invalid credentials need renewal (`claude setup-tok
|
|
|
35
73
|
for Claude, replacement membership key for Kimi); quota and overload failures
|
|
36
74
|
retain alternate fallback.
|
|
37
75
|
|
|
76
|
+
Selected Claude/Kimi credentials stay out of process arguments: each invocation
|
|
77
|
+
uses a private 0700 directory and a regular 0600 settings file, removed after
|
|
78
|
+
normal exit, launch failure or cancellation. The settings preserve selected-account
|
|
79
|
+
authentication precedence over saved user/project settings. Remote settings and
|
|
80
|
+
environments continue to contain placeholders only.
|
|
81
|
+
|
|
38
82
|
Choose the region of your Kimi membership. The default `overseas` selects
|
|
39
83
|
`https://api.kimi.ai/coding/`; `china` selects `https://api.kimi.com/coding/`.
|
|
40
84
|
The base URL and egress hostname are fixed together and cannot be overridden
|
|
@@ -90,7 +134,12 @@ client identifier belongs to the authorized ChatGPT registration. Reauthorizatio
|
|
|
90
134
|
keeps identity and registration associated. Never copy the ambient Codex login.
|
|
91
135
|
|
|
92
136
|
Exactly one owner refreshes each connection: the local dispatcher or the
|
|
93
|
-
hosted refreshing secret.
|
|
137
|
+
hosted refreshing secret. Both owners refresh only at or after the maximum of
|
|
138
|
+
any provider earliest-refresh floor and their pre-expiry threshold. Local renewal
|
|
139
|
+
uses a one-minute margin; hosted renewal uses ten minutes to tolerate a delayed
|
|
140
|
+
five-minute tick. Before refresh is due, still-valid access is supplied unchanged.
|
|
141
|
+
Expired access behind a future provider floor is never delivered.
|
|
142
|
+
Credentials rotate atomically before delivery. Expired access tokens remain
|
|
94
143
|
refreshable after dispatcher downtime; a live validator or dispatcher claim
|
|
95
144
|
cannot be displaced. Only a proven dead process or a released claim permits
|
|
96
145
|
a successor to own renewal.
|
|
@@ -249,7 +249,11 @@ metadata never changes completeness or merge eligibility.
|
|
|
249
249
|
Collecting nodes may intentionally trail their parent. They refresh before
|
|
250
250
|
verification and merge, for queued dependency presence, on operator request,
|
|
251
251
|
and after accepted re-parenting. Descendants need independent demand; presence
|
|
252
|
-
requests follow only the minimal proven ancestor path.
|
|
252
|
+
requests follow only the minimal proven ancestor path. Unavailable immediate-parent
|
|
253
|
+
identities remain pending; durable availability facts bound idle preparation across
|
|
254
|
+
restart. Head, request, ancestry, alias and confirmed landing changes trigger a fresh
|
|
255
|
+
assessment. Re-parenting to another branch explicitly disposes of old destination
|
|
256
|
+
requests without claiming coverage. See
|
|
253
257
|
[restacking](restacking.md#timing-and-evidence) for timing, requests and distance.
|
|
254
258
|
|
|
255
259
|
## Polling and status
|
|
@@ -263,9 +267,15 @@ GitHub-only changes are discovered on the next due check, within the idle
|
|
|
263
267
|
interval plus normal tick scheduling while the dispatcher is running; failure,
|
|
264
268
|
cooldown and transport-budget gates still apply. Pending operations retain
|
|
265
269
|
active polling and action-time readiness checks remain fresh. Successful
|
|
266
|
-
`node.poll-checked` facts preserve quiet history across restarts
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
`node.poll-checked` advisory facts preserve quiet history across restarts.
|
|
271
|
+
Each successfully observed activity or policy epoch records one quiet-period
|
|
272
|
+
anchor; unchanged active checks add no checkpoints. At the quiet threshold a
|
|
273
|
+
check may be immediately due, then each successful due idle check records its
|
|
274
|
+
completion. Growth is bounded by one anchor per observed epoch plus due idle
|
|
275
|
+
checks. Missing or unusable evidence forces a fresh check; interrupted or
|
|
276
|
+
contended writes leave the durable deadline unchanged and retry conservatively. `ab build status` reports active or idle cadence and the
|
|
277
|
+
last durably recorded successful check (or unrecorded evidence); this timestamp
|
|
278
|
+
can trail successful active checks.
|
|
269
279
|
|
|
270
280
|
## Operator node spec revisions
|
|
271
281
|
|
|
@@ -285,4 +295,13 @@ Active verification/reconcile or writer work, restack/reparent work, pause,
|
|
|
285
295
|
pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
286
296
|
A concurrent state change refuses publication with a retry explanation;
|
|
287
297
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
288
|
-
restart from `plan
|
|
298
|
+
restart from `plan` after any unfinished reconcile resumes under the revised
|
|
299
|
+
spec and its publication is confirmed.
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
Parent node restacks are kernel rewrites. Child admission uses the dispatcher's
|
|
304
|
+
bounded indexed publication-receipt proof, retained in `target.moved.lineage`,
|
|
305
|
+
including after a child was paused across multiple restacks. External rewrites
|
|
306
|
+
without proof raise attention; node ownership alone never authorizes replay.
|
|
307
|
+
See [restacking](restacking.md).
|