@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
|
@@ -15,7 +15,39 @@ node fast-forwards preserve ordered contributing identities.
|
|
|
15
15
|
|
|
16
16
|
## Timing and evidence
|
|
17
17
|
|
|
18
|
-
Destination
|
|
18
|
+
Destination heads come only from the authoritative forge branch; dispatcher-host
|
|
19
|
+
refs are never a fallback. Failed remote reads retain the accepted observation;
|
|
20
|
+
classified rate limits use repository forge degradation and cooldown. Changed
|
|
21
|
+
heads require immutable commit ancestry proof against the accepted target and
|
|
22
|
+
the destination base already used by replay. Missing capability or failed proof
|
|
23
|
+
defers new replay. A non-descendant without kernel lineage records
|
|
24
|
+
`target.rewritten` with branch,
|
|
25
|
+
previous SHA and observed SHA, retains the accepted target, and raises watch/wait
|
|
26
|
+
attention. Repeated rewrite pairs are deduplicated. Returning to a safe target
|
|
27
|
+
clears attention (`target.rewrite-cleared` when the accepted tip is unchanged).
|
|
28
|
+
Upstream force-pushes are never adopted automatically. Accepted node reparenting
|
|
29
|
+
starts a new branch scope; frozen transactions recover their retained inputs.
|
|
30
|
+
|
|
31
|
+
Kernel restacks of a node are admitted through durable guarded publication
|
|
32
|
+
receipts, not treated as external force-pushes. The dispatcher walks an index
|
|
33
|
+
keyed by node and previous head, at most 64 receipt lookups from each child
|
|
34
|
+
baseline; cost is capped independently of journal length or total receipts.
|
|
35
|
+
Exact links use point lookups. When forward child landings separate restacks,
|
|
36
|
+
the dispatcher walks backwards from the latest publication with an indexed
|
|
37
|
+
previous-receipt cursor. Every gap requires immutable ancestry from the earlier
|
|
38
|
+
published head to the later receipt's previous head, as do the baseline and tip
|
|
39
|
+
ends of the proof. Missing links never imply rewrite authority.
|
|
40
|
+
The proven receipts travel in `target.moved.lineage`; build-scoped runners use
|
|
41
|
+
that recorded proof without reading another build. Clearing attention for an
|
|
42
|
+
unchanged accepted SHA retains newly proven lineage in `target.rewrite-cleared`.
|
|
43
|
+
Missing receipts or a gap
|
|
44
|
+
over 64 still record `target.rewritten` and raise attention. Each hop makes at
|
|
45
|
+
most two immutable ancestry comparisons. The exact walk and gap recovery share
|
|
46
|
+
the same 64-read cap, including unsuccessful lookups. Unchanged accepted
|
|
47
|
+
polls read no receipts or event rows.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Accepted destination observations are durable `target.moved` facts, including while an
|
|
19
51
|
agent runs. Verify-entry restack freezes a current base before verification;
|
|
20
52
|
path selection excludes upstream-only paths. After finalize and post-steps,
|
|
21
53
|
waiting leaves restack when the target moves. Node-target finalize contributions
|
|
@@ -47,6 +79,19 @@ actual destination, processing ancestors first. Unrelated siblings stay idle;
|
|
|
47
79
|
changes absent from all ancestors cannot trigger a speculative replay. Tickets
|
|
48
80
|
remain queued until presence is observed in their destination.
|
|
49
81
|
|
|
82
|
+
A presence request whose identities are absent from its immediate parent remains
|
|
83
|
+
pending while ancestors restack or reconcile. A durable availability observation
|
|
84
|
+
allows unchanged idle ticks, including after restart, to skip repository preparation
|
|
85
|
+
and native auto-merge cancellation. Exact node/parent heads, contribution base,
|
|
86
|
+
request contents, accepted ancestry, foreign aliases and confirmed landing evidence
|
|
87
|
+
invalidate that observation when they change; polling timestamps do not. Failed
|
|
88
|
+
assessments never establish unavailability. Availability is not proof of destination
|
|
89
|
+
coverage. Moving to another destination branch explicitly settles obsolete requests
|
|
90
|
+
with `destination-changed`; losing identities on the same branch leaves them waiting.
|
|
91
|
+
Native auto-merge is suspended with confirmed, reusable receipts only when replay
|
|
92
|
+
is actionable, and is revalidated during recovery before rewrite effects.
|
|
93
|
+
|
|
94
|
+
|
|
50
95
|
`ab restack <node>` (operator tool `builds.restack`, input `{repo, slug}`) records
|
|
51
96
|
a durable request, coalescing pending demand. It refuses leaves, terminal nodes,
|
|
52
97
|
and unopened nodes. Paused or blocked nodes wait for their normal safety gates.
|
|
@@ -78,7 +123,12 @@ transaction, candidate SHA and exact path list on recovery. The phase-terminal
|
|
|
78
123
|
D5 clean-worktree rule for `ab done` remains unchanged.
|
|
79
124
|
|
|
80
125
|
Before replacement the kernel publishes retained tips, displaced heads and the
|
|
81
|
-
temporary change under immutable exact archive refs.
|
|
126
|
+
temporary change under immutable exact archive refs. Remote archives also publish
|
|
127
|
+
commits present only on the remote: GitHub uses create-only Git-reference REST creation
|
|
128
|
+
when the workspace lacks the commit, retaining guarded Git pushes for local objects.
|
|
129
|
+
Exact remote readback confirms publication, then a depth-one fetch by the archive ref
|
|
130
|
+
(without tags or configured refmap expansion) restores missing commits and verifies them
|
|
131
|
+
locally before returning. `restack.*` facts record
|
|
82
132
|
preparation, replay, intent, archived replacement, contention and completion.
|
|
83
133
|
Unpublished request/loss records alone cannot preserve objects from a released
|
|
84
134
|
sandbox. The forge is authoritative for publication: after a push or on recovery,
|
|
@@ -94,6 +144,8 @@ against the current destination. Remote guests park for trusted
|
|
|
94
144
|
publication after teardown. Historical merge reconciliations keep their original
|
|
95
145
|
interpretation and supply a promoted contribution base for later replay.
|
|
96
146
|
|
|
147
|
+
Replay retention stores thin Git packs in bounded binary chunks, with a fixed-size completion manifest written only after every chunk is acknowledged. Digest-keyed chunks make interrupted writes retryable; incomplete uploads are never restored. Recovery validates all chunk sizes and the pack digest before installation, and requires the base objects (restoring node prefixes in order). Existing single-artifact base64 packs remain readable. Retained replay artifacts are read only when the requested commit is missing locally, never by idle polling.
|
|
148
|
+
|
|
97
149
|
## Node contributions and recovery
|
|
98
150
|
|
|
99
151
|
Node replay enumerates oldest-first first-parent contributions above the last
|
|
@@ -141,11 +193,24 @@ retry eligibility and recheck authorization after repository forge cooldown.
|
|
|
141
193
|
|
|
142
194
|
## Leaf publication retry recovery
|
|
143
195
|
|
|
196
|
+
A historical `publication.lost` does not prove that every copy of its candidate
|
|
197
|
+
is gone. Recovery checks the exact branch and private archive refs and retained
|
|
198
|
+
replay objects first. An available candidate continues guarded publication.
|
|
199
|
+
A genuinely missing reconcile or automatic restack candidate records
|
|
200
|
+
`publication.candidate-retired`, abandons its obsolete request, and replays the
|
|
201
|
+
producing operation with a fresh transaction identity. Its frozen target,
|
|
202
|
+
reconcile occurrence or automatic trigger, cycle, and message survive. The
|
|
203
|
+
retired candidate is excluded from archive requirements unless independently
|
|
204
|
+
required by proven history. This reconstruction consumes no infrastructure
|
|
205
|
+
attempt and no additional conflict occurrence; it needs no operator guidance.
|
|
206
|
+
A bare retry also clears an existing infrastructure-limit escalation through
|
|
207
|
+
ordinary retry semantics. Unavailable inspection defers rather than proving loss.
|
|
208
|
+
|
|
144
209
|
Leaf restack and reconcile publication retry classified transient forge or transport
|
|
145
210
|
failures six times after the initial attempt, waiting 30, 60, 120, 240, 300 and
|
|
146
211
|
300 seconds. `publication.retry-scheduled` records the operation, frozen rewrite
|
|
147
212
|
identity, episode anchor, failure ordinal, last error and absolute retry time;
|
|
148
|
-
restart resumes that schedule without rerunning
|
|
213
|
+
restart resumes that schedule without rerunning a resolver whose candidate remains available. These retries do
|
|
149
214
|
not consume `maxPhaseAttempts`. A seventh transient failure records
|
|
150
215
|
`publication.retry-exhausted` and raises `publication-retry-limit`, naming the last
|
|
151
216
|
error and six retries. Answering that escalation opens a fresh publication episode
|
|
@@ -154,3 +219,40 @@ publication keeps its workspace through backoff and unresolved exhaustion.
|
|
|
154
219
|
Classified rate limits retain repository cooldown and consume no publication
|
|
155
220
|
retry allowance. Rejected pushes, lease conflicts, dirty trees and unclassified
|
|
156
221
|
errors retain their existing behavior.
|
|
222
|
+
|
|
223
|
+
Preserved restoration checkpoints survive repeated replacement; a published
|
|
224
|
+
reconcile or restack rewrite retires the old checkpoint.
|
|
225
|
+
Recovery context applies to the following session and its repeated hydration; later
|
|
226
|
+
sessions do not inherit obsolete reconstruction instructions.
|
|
227
|
+
|
|
228
|
+
## Ticket preparation before build creation
|
|
229
|
+
|
|
230
|
+
Before claiming, the dispatcher journals a repository-scoped preparation intent;
|
|
231
|
+
a won claim and the exact selected creation slug are durable boundaries. Caught
|
|
232
|
+
asset-copy, spec-authoring, naming, and build-creation failures return the ticket
|
|
233
|
+
to configured Ready; a nonconforming spec goes to configured Triage. Recovery
|
|
234
|
+
checks the exact selected build first: a matching record and atomic
|
|
235
|
+
`build.created` retain ownership even if creation threw after committing.
|
|
236
|
+
Unavailable or conflicting readback never authorizes release or a replacement
|
|
237
|
+
build. Pending attempts retain the original failure, latest recovery error and
|
|
238
|
+
retry deadline in the canonical repository reduced value; resolved attempts
|
|
239
|
+
leave that value. Under repository ownership, each tick admits at most eight
|
|
240
|
+
due recovery attempts, before intake and independently of capacity or intake
|
|
241
|
+
settings, with a 30-second durable retry delay after recovery failure. Unresolved
|
|
242
|
+
ticket identities remain withheld. An uncertain claim outcome or unrelated
|
|
243
|
+
external ticket state, missing ticket/state, or conflicting slug ownership terminates
|
|
244
|
+
automatic recovery with an `abandoned` resolution and diagnostic reason. The
|
|
245
|
+
ticket is left unchanged; an operator can leave it finished or cancelled, or
|
|
246
|
+
inspect ownership and explicitly return it to Ready for another attempt. These
|
|
247
|
+
cases stop provider polling and diagnostic appends. Recovery failures are
|
|
248
|
+
reported without preventing janitor, lease sweep, or other dispatch recovery.
|
|
249
|
+
This is not general process
|
|
250
|
+
crash recovery. Confirmed Ready/Triage transitions settle idempotently, so a
|
|
251
|
+
failed bounce comment does not return an invalid ticket to Ready.
|
|
252
|
+
|
|
253
|
+
Once a build is established, ordinary interrupted-dispatch recovery completes
|
|
254
|
+
its missing boundaries; preparation cleanup cannot release its claim.
|
|
255
|
+
|
|
256
|
+
## Spec revision during leaf reconcile
|
|
257
|
+
|
|
258
|
+
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. The retained transaction and restack identity are reused; no abort or destructive reset is needed.
|
|
@@ -9,6 +9,15 @@ build or phase. Work directly in the repository and involve the maintainer in
|
|
|
9
9
|
choices that cannot be derived from source. Secrets belong in the environment
|
|
10
10
|
or an ignored `.env`, never in `autobuild.toml`, commits, or validation reports.
|
|
11
11
|
|
|
12
|
+
Local dispatch checks selected primary and alternate account credentials before
|
|
13
|
+
taking the repository lease. Supply the configured environment slot or a local
|
|
14
|
+
ChatGPT login (`bun ab accounts login NAME --local`). Hosted account absence
|
|
15
|
+
appears once in repository attention: set `bun ab secrets set VARIABLE`, or
|
|
16
|
+
renew with `bun ab accounts login NAME --project`. The next tick resumes without
|
|
17
|
+
per-build retries or infrastructure-attempt consumption. Unused accounts do not
|
|
18
|
+
block startup; present rejected credentials keep their rejection attention.
|
|
19
|
+
See [account admission and remedies](accounts.md#dispatcher-admission).
|
|
20
|
+
|
|
12
21
|
## Choose the execution environment
|
|
13
22
|
|
|
14
23
|
Keep the default `git-worktree` provider unless the maintainer explicitly opts
|
|
@@ -250,12 +259,13 @@ sources agree with the running system by construction:
|
|
|
250
259
|
**running dispatcher's version** (read from the installed distribution's
|
|
251
260
|
`package.json`), so the guest runs the dispatcher's own release.
|
|
252
261
|
|
|
253
|
-
A service
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
262
|
+
A published release line stays supported by a service until both at least two newer minor lines have been published and 90 days have passed since the first release of the line that superseded it. The rule spans majors: a new major keeps supporting earlier lines on the same terms. The policy floor is 1.2: lines before 1.2 are refused regardless of publication dates because their clients rebuild server state from the journal. Lines newer than the service stay unsupported (service first). Supported means the published clients of that line can use the service’s retained protocol handlers and read its reduced answers in the shapes their released clients accept.
|
|
263
|
+
|
|
264
|
+
Stable patches never reset a line’s first-publication date. Only actually published
|
|
265
|
+
lines at or below the service line count; prereleases do not start retirement clocks.
|
|
266
|
+
Publication facts survive removal of retired identities, contracts, and handlers.
|
|
267
|
+
Patch releases must retain their line’s protocol identity. Unknown historical
|
|
268
|
+
protocol identities are refused independently of the numeric window.
|
|
259
269
|
Stable and prerelease service and client identities share their numeric major/minor
|
|
260
270
|
line. Malformed or missing identities, build metadata (`+…`), prefixes and
|
|
261
271
|
whitespace are refused with HTTP 409.
|
|
@@ -266,8 +276,9 @@ and supported range.
|
|
|
266
276
|
Unauthenticated `GET /health` publishes `ok`, `autobuildVersion`,
|
|
267
277
|
`protocolVersion`, and `supportedClientRange: { minVersion, maxVersionExclusive }`.
|
|
268
278
|
Range endpoints remain stable versions. The range is inclusive at the minimum
|
|
269
|
-
and exclusive at the maximum; a
|
|
270
|
-
service publishes `>=
|
|
279
|
+
and exclusive at the maximum; a 1.3.x
|
|
280
|
+
service publishes `>=1.2.0 <1.4.0` until later publication facts permit retirement.
|
|
281
|
+
The service reads the clock for each decision, so retirement needs no redeploy. Health needs no credentials, version
|
|
271
282
|
headers, or available backend.
|
|
272
283
|
|
|
273
284
|
`ab upgrade` probes this public range before installation or project changes.
|
|
@@ -507,3 +518,21 @@ change local files or configuration. Failed cleanup is retryable with access
|
|
|
507
518
|
already refused. Reconnecting requires fresh browser approval and starts empty,
|
|
508
519
|
with hosted ticket numbering reset to 1. See
|
|
509
520
|
[permanent project deletion](operator-api.md#permanent-project-deletion).
|
|
521
|
+
|
|
522
|
+
## Hosted dispatch and local viewing
|
|
523
|
+
|
|
524
|
+
A plain `ab dispatch` reads dispatch placement once before starting local execution.
|
|
525
|
+
For a hosted project it opens the Store-only viewer automatically, displaying
|
|
526
|
+
`viewer · dispatched by <host>` from the placement origin (including a nondefault
|
|
527
|
+
port). `--once`, `--plain`, and `--interval` retain their viewer meanings.
|
|
528
|
+
`--takeover` explicitly dispatches locally, with a warning that it can displace
|
|
529
|
+
the hosted dispatcher; it cannot be combined with `--viewer`. Startup intake
|
|
530
|
+
flags require `--takeover` when placement selects viewer.
|
|
531
|
+
|
|
532
|
+
An unreadable placement fails closed with a typed error naming the cause:
|
|
533
|
+
use `--viewer` to watch or `--takeover` to dispatch locally. Both explicit modes
|
|
534
|
+
skip placement discovery. Older services without the capability and projects
|
|
535
|
+
with unknown or nonhosted placement retain local dispatch behavior. Local stores
|
|
536
|
+
need no placement request. Origin mode (`--repository` or `AB_REPOSITORY`) and
|
|
537
|
+
hosted cron dispatch bypass this check. Placement is a startup snapshot, not a
|
|
538
|
+
liveness probe or a polling input.
|
|
@@ -61,15 +61,16 @@ plan review, code review, the repository's full verify suite, finalize,
|
|
|
61
61
|
merge, and a restack for everything queued behind it. Ten small tickets pay
|
|
62
62
|
that cost ten times, and a blocker chain pays it in series. Prefer fewer,
|
|
63
63
|
larger tickets: one ticket per coherent change, as large as one plan and one
|
|
64
|
-
review pass can hold without the quality bar slipping
|
|
64
|
+
review pass can hold without the quality bar slipping, and no larger than one
|
|
65
|
+
implement session can finish.
|
|
65
66
|
|
|
66
67
|
A ticket is the right size when its acceptance criteria describe one feature
|
|
67
68
|
or fix a reviewer can judge in a single pass, one plan can cover it without
|
|
68
69
|
deferring a design decision to a later build, and its out-of-scope list is
|
|
69
70
|
short and obvious. It is too big when its criteria fall into groups that share
|
|
70
|
-
no behavior, when part of it waits on a decision nobody has made,
|
|
71
|
+
no behavior, when part of it waits on a decision nobody has made, when its
|
|
71
72
|
parts need different merge — one can ship now while another needs consent
|
|
72
|
-
or must wait.
|
|
73
|
+
or must wait — or when implementing it would outgrow one session.
|
|
73
74
|
|
|
74
75
|
Do not split:
|
|
75
76
|
|
|
@@ -80,6 +81,39 @@ Do not split:
|
|
|
80
81
|
- to make progress visible, or because the spec got long. A long spec with
|
|
81
82
|
clear criteria is fine.
|
|
82
83
|
|
|
84
|
+
### Fit one implement session
|
|
85
|
+
|
|
86
|
+
Larger stops paying off where the work outgrows one agent session. The first
|
|
87
|
+
implement round is a single session, and everything it does stays in that
|
|
88
|
+
session's context: the spec and plan, every file it reads, every edit, every
|
|
89
|
+
test and check run and its output, and every debugging detour. A ticket that
|
|
90
|
+
fills the implementer's context window — commonly a million tokens or less —
|
|
91
|
+
degrades mid-build: the harness compacts away the reasoning that held the
|
|
92
|
+
change together, or an operator has to clear context and restart by hand.
|
|
93
|
+
Size each ticket to finish well inside one window, with headroom for
|
|
94
|
+
debugging.
|
|
95
|
+
|
|
96
|
+
Nothing measures this at grooming time, so estimate from what the
|
|
97
|
+
implementer must do, not from how long the spec is:
|
|
98
|
+
|
|
99
|
+
- **Reading.** Count the code it must understand before it can edit safely.
|
|
100
|
+
Several unfamiliar subsystems, each read end to end, cost more than the
|
|
101
|
+
diff itself.
|
|
102
|
+
- **Edit sites.** Count files touched, not lines changed. A rename or
|
|
103
|
+
signature change threaded through dozens of callers spends context on
|
|
104
|
+
every one, however mechanical.
|
|
105
|
+
- **Iteration.** Count the separate behaviors that each need their own
|
|
106
|
+
tests, failures, and fixes, and the slow or verbose loops — full suites,
|
|
107
|
+
UI captures, migrations — the session will repeat.
|
|
108
|
+
- **Your own reading.** If writing the spec meant reading most of several
|
|
109
|
+
subsystems, the implementer reads them again, then writes the code and
|
|
110
|
+
tests on top.
|
|
111
|
+
|
|
112
|
+
Most tickets sit far below this ceiling; it is a limit, not a target. A
|
|
113
|
+
ticket that touches one subsystem and a handful of files needs no estimate.
|
|
114
|
+
When the signals put a ticket near the ceiling, split it at a seam (below)
|
|
115
|
+
rather than gamble on the build fitting.
|
|
116
|
+
|
|
83
117
|
### Cut along seams
|
|
84
118
|
|
|
85
119
|
A seam decides where to cut once a split is justified; it is not a reason to
|
|
@@ -131,7 +165,8 @@ The spec is the build's contract artifact (kind `spec`, revision 0).
|
|
|
131
165
|
Every downstream reviewer approves conformance to its pinned revision.
|
|
132
166
|
For leaves, a phase that discovers the spec itself is wrong raises an
|
|
133
167
|
escalation (`ab escalate`); a human answers, the spec gets revision N+1,
|
|
134
|
-
and the leaf restarts from `plan
|
|
168
|
+
and the leaf restarts from `plan` after any unfinished reconcile resumes under
|
|
169
|
+
the revised spec and its publication is confirmed.
|
|
135
170
|
|
|
136
171
|
Operators may explicitly revise an opened idle collecting node or a node blocked on failed
|
|
137
172
|
integration verification without an escalation. Use
|
|
@@ -149,4 +184,5 @@ Active verification/reconcile or writer work, restack/reparent work, pause,
|
|
|
149
184
|
pending controls, merge intent and ended PRs refuse the no-escalation path.
|
|
150
185
|
A concurrent state change refuses publication with a retry explanation;
|
|
151
186
|
uncited artifacts are inert. Leaves still require an open escalation and
|
|
152
|
-
restart from `plan
|
|
187
|
+
restart from `plan` after any unfinished reconcile resumes under the revised
|
|
188
|
+
spec and its publication is confirmed.
|
|
@@ -77,6 +77,14 @@ parent history. An empty completed contribution is satisfied; missing evidence,
|
|
|
77
77
|
an open or aborted node, or ambiguous newest build generations remain queued.
|
|
78
78
|
Older successful generations are never substituted for the newest build.
|
|
79
79
|
|
|
80
|
+
Destination observations retain versioned, head-bound Git witnesses (reachable
|
|
81
|
+
commit SHAs and direct build trailers) and a fixed-length evidence digest. Current
|
|
82
|
+
confirmed landings and aliases from only the destination's accepted ancestry are
|
|
83
|
+
reapplied before reuse. Unrelated merged history and ready destinations do not
|
|
84
|
+
invalidate this proof. Head changes require a fresh Git sample; legacy observations
|
|
85
|
+
without witnesses refresh once rather than replaying repository history. Current
|
|
86
|
+
readiness and newest-generation checks still apply before claim.
|
|
87
|
+
|
|
80
88
|
- Same node: the blocking change merges directly into the target.
|
|
81
89
|
- Ancestor: the change merges into an ancestor, then presence demand restacks only the required path to the target.
|
|
82
90
|
- Sibling: the blocking node merges into their common ancestor, then presence demand reaches the target through the minimal ancestor path.
|
|
@@ -43,11 +43,20 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
43
43
|
When the manifest lists `assets`, they are the build's pinned ticket assets
|
|
44
44
|
under `$AB_CONTEXT_DIR/assets/<kind>/<name>/`; read them with the spec. A `design` asset
|
|
45
45
|
is a contract on observable visual and reference outcomes, not on implementation — what you build must satisfy it, while how stays yours.
|
|
46
|
+
If the manifest includes `workspaceRecovery`, read that materialized note.
|
|
47
|
+
It distinguishes exact preserved commits restored before the session from
|
|
48
|
+
known lost candidates and unobservable additional work. A retired reconcile
|
|
49
|
+
result is reconstructed on the prepared replay under its retained frozen
|
|
50
|
+
target; do not search for the known nonexistent candidate. Preserved work
|
|
51
|
+
remains the starting point for continuation.
|
|
46
52
|
2. Execute the plan. Commit in coherent increments with real messages —
|
|
47
53
|
the commit history is part of the paper trail.
|
|
48
|
-
3. Run
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
3. Run fast checks while you work when they help you — typecheck, lint, unit
|
|
55
|
+
or focused tests. Do not run slow suites (integration, end-to-end, browser)
|
|
56
|
+
that the configured verify steps will run anyway: verify runs them after
|
|
57
|
+
code review and hands any failure back to you, so running them here only
|
|
58
|
+
doubles their cost on every build. To confirm a fix for a failure a verify
|
|
59
|
+
report names, rerun just the failing tests.
|
|
51
60
|
4. Write the manifest's `notesPath` (normally `$AB_CONTEXT_DIR/implement-notes.md`) — what
|
|
52
61
|
you did, where you deviated from the plan and why, what the reviewer should
|
|
53
62
|
look at hardest — then run `ab done --notes <notesPath>`. The notes bytes
|
package/skills/operate/SKILL.md
CHANGED
|
@@ -86,6 +86,29 @@ live operator is present, tell the human and do not become a second operator
|
|
|
86
86
|
unless directed. Otherwise arm a repository-wide `ab watch --operator --json`.
|
|
87
87
|
A flagged watch writes only mutable liveness, never events or a lease.
|
|
88
88
|
|
|
89
|
+
### Diagnose missing account credentials
|
|
90
|
+
|
|
91
|
+
Local startup refuses missing selected primary/alternate account sources before
|
|
92
|
+
taking the repository lease. Unused declared accounts do not block startup.
|
|
93
|
+
Read the aggregate error: supply the named environment slot, renew Claude with
|
|
94
|
+
`claude setup-token`, replace a Kimi membership key, or sign in ChatGPT with
|
|
95
|
+
`ab accounts login NAME --local`. A safely owned local refreshing login counts;
|
|
96
|
+
a failed, mismatched or unsafe record fails closed. Startup inspects live peer-owned
|
|
97
|
+
logins without claiming them, allowing the losing dispatcher to yield; execution
|
|
98
|
+
claims only after the repository lease is held.
|
|
99
|
+
Successor preflight refusal keeps the predecessor active and reports upgrade
|
|
100
|
+
attention; it never claims or rotates the predecessor's credentials.
|
|
101
|
+
|
|
102
|
+
Hosted absence appears as one durable repository condition per account, in
|
|
103
|
+
repository status, watch and dashboard warnings. Set `ab secrets set VARIABLE`,
|
|
104
|
+
or renew ChatGPT with `ab accounts login NAME --project`. The next tick resumes
|
|
105
|
+
automatically; do not retry builds or reset infrastructure attempts. Hosted
|
|
106
|
+
account slots never use service environment fallback. Config changes may also
|
|
107
|
+
hold account-dependent launches. Observation, controls and cleanup continue.
|
|
108
|
+
Presence is checked without inference; present rejected credentials retain their
|
|
109
|
+
account-specific rejection attention. See [accounts](../ab-guide/references/accounts.md#dispatcher-admission).
|
|
110
|
+
Credential/process changes remain subject to the Boundaries below.
|
|
111
|
+
|
|
89
112
|
### Watch for attention events
|
|
90
113
|
|
|
91
114
|
`ab watch --operator --json` is the standing monitor. Keep its default filter: every
|
|
@@ -95,11 +118,22 @@ restart, abnormal dispatcher stops/loss, ticket-source and forge degradation pas
|
|
|
95
118
|
for ticket sources without reset), and five minutes of continuous tick failures. Advertised resets
|
|
96
119
|
wait for a post-reset tick to finish before requiring action; ordinary recovery
|
|
97
120
|
on that retry stays silent. Source grace and cooldown-driven failures do not
|
|
98
|
-
start the tick-failure clock.
|
|
121
|
+
start the tick-failure clock. When failure writes are unavailable, dispatch watch
|
|
122
|
+
continues with local warnings and retries at least one second apart (or its
|
|
123
|
+
configured interval, if longer). Recovery records the bounded unreported window;
|
|
124
|
+
local warnings do not start durable attention retroactively. Explicit shutdown
|
|
125
|
+
still stops dispatch without waiting for reporting recovery. Routine outcomes and self-healing failures stay silent.
|
|
99
126
|
|
|
100
127
|
Every record carries a cursor; bounded watches end with a bare `{"cursor": …}`
|
|
101
|
-
line.
|
|
102
|
-
using this standing watch's own cursor.
|
|
128
|
+
line. Normally re-arm with `ab watch --operator --json --since <watch-cursor>`,
|
|
129
|
+
using this standing watch's own cursor. Hosted resume covers the most recent
|
|
130
|
+
1,000 sequence positions (inclusive at head minus 1,000). On typed
|
|
131
|
+
`cursor-too-old`, re-arm without `--since` and reconcile repository/build status;
|
|
132
|
+
acknowledge that the expired historical gap cannot be recovered. Never retry
|
|
133
|
+
from cursor zero. Normal re-arms retain their cursor, including after ordinary
|
|
134
|
+
reducer upgrades. `checkpoint-integrity` is a terminal storage error;
|
|
135
|
+
`retired-seed-generation` requires upgrade/restart before fresh attachment.
|
|
136
|
+
Presence survives a re-arm gap of up to
|
|
103
137
|
five minutes after its last heartbeat on routine timeout/count completion.
|
|
104
138
|
Termination (SIGINT, SIGTERM, SIGHUP or stdout EPIPE) attempts withdrawal within
|
|
105
139
|
about two seconds; re-arming with the cursor re-registers the same ID/start.
|
|
@@ -119,7 +153,7 @@ Scope it to named slugs and explicit `--event` globs (for example,
|
|
|
119
153
|
An extra monitor supplements the default standing watch.
|
|
120
154
|
|
|
121
155
|
`ab wait [<slug>...] (--for <condition> | --event <glob>) [--since <cursor>] [--json]`
|
|
122
|
-
blocks until a condition holds and prints one record. `--for` state conditions
|
|
156
|
+
uses the same hosted resume window and expiry recovery as watch, and blocks until a condition holds and prints one record. `--for` state conditions
|
|
123
157
|
are also satisfied immediately by a build already in that state; `--event` is
|
|
124
158
|
satisfied only by new events. Conditions include `attention`,
|
|
125
159
|
`blocked`, `paused`, `running`, `done`, `aborted`, `terminal`, `pr=merged`,
|
|
@@ -166,7 +200,9 @@ establish loss: a healthy lease can accompany a slow tick.
|
|
|
166
200
|
An unscoped watch, or a named watch with `--repository`, reports loss as a
|
|
167
201
|
read-only observation: `{repo, build:null, state:null, observation:{type:
|
|
168
202
|
"dispatcher.lost", run, observedAt, leaseExpiresAt, ...identity}, cursor}`.
|
|
169
|
-
|
|
203
|
+
Any persisted stop suppresses loss, including an abnormal stop, which retains its
|
|
204
|
+
own default attention event. Correlation uses persisted per-run values without
|
|
205
|
+
full-log fallback. A validated successor takeover suppresses predecessor loss even while its sessions
|
|
170
206
|
drain. An unfinished handoff without takeover still reports loss on lease expiry;
|
|
171
207
|
successor loss and upgrade-failure/rollback attention remain independent.
|
|
172
208
|
It has no durable event envelope. Keep its cursor just as for event records;
|
|
@@ -181,7 +217,9 @@ that appear after you arm. Finishing the initially queued set is no reason to st
|
|
|
181
217
|
|
|
182
218
|
1. Check presence as above, then arm `ab watch --operator --json` with no slugs.
|
|
183
219
|
Retain its own cursor and re-arm with
|
|
184
|
-
`ab watch --operator --json --since <watch-cursor>`.
|
|
220
|
+
`ab watch --operator --json --since <watch-cursor>`. If it reports
|
|
221
|
+
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge
|
|
222
|
+
the unavailable historical gap.
|
|
185
223
|
2. Right after arming and after each timeout, run `ab builds --all --json`, adopt
|
|
186
224
|
newly dispatched builds, inspect active builds with `ab build status <slug> --json`,
|
|
187
225
|
and reconcile `ab repository status --json`. Historical attention is baselined
|
|
@@ -219,7 +257,8 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
219
257
|
Idle collecting or verification-failed nodes need no escalation and recollect
|
|
220
258
|
for verification on the same head; children and contributions remain intact.
|
|
221
259
|
Active work, pause, pending controls and merge intent refuse revision. Leaves
|
|
222
|
-
require an escalation and restart from plan
|
|
260
|
+
require an escalation and restart from plan after any unfinished reconcile
|
|
261
|
+
resumes under the revised spec and its publication is confirmed. Run `ab help answer` for the full menu.
|
|
223
262
|
- `ab pause <slug>` / `ab resume <slug>`; `ab pause --all` / `ab resume --all`
|
|
224
263
|
hold and release the whole repository. Pause immediately interrupts live agent
|
|
225
264
|
sessions and acknowledges after they stop. Resume continues the same native
|
|
@@ -302,7 +341,8 @@ that does the job, and say what you are doing before you do it:
|
|
|
302
341
|
review-round ceiling, or a revise-spec resolution. Eligible idle collecting or
|
|
303
342
|
verification-failed nodes accept body/ticket spec revision without an escalation;
|
|
304
343
|
the caller supplies the amended body for ticket origin. The node recollects and
|
|
305
|
-
verifies; leaves require an escalation and restart from plan
|
|
344
|
+
verifies; leaves require an escalation and restart from plan after any unfinished reconcile
|
|
345
|
+
resumes under the revised spec and its publication is confirmed.
|
|
306
346
|
- `tickets.list`, `tickets.get` — read the ticket queue and one ticket. A long
|
|
307
347
|
queue pages with `limit`, `offset` and `order`; `total` counts every match.
|
|
308
348
|
- `tickets.create` — file a new ticket from a conversation.
|
|
@@ -419,7 +459,11 @@ for the exceptions above.
|
|
|
419
459
|
logical credentials, or records a reasoned `harvest.session.resume-fallback`
|
|
420
460
|
and starts fresh. Orderly suspension spends no recovery attempt; real
|
|
421
461
|
crashes retain recovery accounting.
|
|
422
|
-
-
|
|
462
|
+
- Human checkout dispatch defaults to viewer for hosted placement. Humans can use
|
|
463
|
+
`--takeover` to dispatch locally with a displacement warning; unreadable placement
|
|
464
|
+
fails closed and names `--viewer` and `--takeover` as explicit recovery choices.
|
|
465
|
+
These human defaults and overrides do not authorize operator-agent dispatch.
|
|
466
|
+
- Never start, restart, or stop a dispatcher: no `ab dispatch` in any mode (including `--viewer` and `--takeover`),
|
|
423
467
|
and no dispatcher process-management commands. This applies when the
|
|
424
468
|
dispatcher is lost, stopped, absent, or failing repeatedly. Its lease,
|
|
425
469
|
process, and configuration management belong to the maintainer. Diagnose
|
|
@@ -460,7 +504,9 @@ verification fails, file a repair child targeting that node and let it merge
|
|
|
460
504
|
before retrying the node cycle.
|
|
461
505
|
|
|
462
506
|
Watch for decisions and conflicts with `ab watch --operator --json`; save its opaque cursor
|
|
463
|
-
and resume with `ab watch --operator --since <watch-cursor> --json`.
|
|
507
|
+
and resume with `ab watch --operator --since <watch-cursor> --json`. On
|
|
508
|
+
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge the
|
|
509
|
+
unavailable historical gap. Default attention includes
|
|
464
510
|
failed node verification (`integration.verification-failed`), node merges, node item conflicts, conflicted leaf replays and derived
|
|
465
511
|
`build.consent-ready` observations, including already-ready merges on first
|
|
466
512
|
repository-wide discovery. Readiness is identified by its durable
|
|
@@ -483,11 +529,24 @@ raise with its own event type.
|
|
|
483
529
|
|
|
484
530
|
## Forge failure recovery
|
|
485
531
|
|
|
532
|
+
A historical `publication.lost` does not prove that every copy of its candidate
|
|
533
|
+
is gone. Recovery checks the exact branch and private archive refs and retained
|
|
534
|
+
replay objects first. An available candidate continues guarded publication.
|
|
535
|
+
A genuinely missing reconcile or automatic restack candidate records
|
|
536
|
+
`publication.candidate-retired`, abandons its obsolete request, and replays the
|
|
537
|
+
producing operation with a fresh transaction identity. Its frozen target,
|
|
538
|
+
reconcile occurrence or automatic trigger, cycle, and message survive. The
|
|
539
|
+
retired candidate is excluded from archive requirements unless independently
|
|
540
|
+
required by proven history. This reconstruction consumes no infrastructure
|
|
541
|
+
attempt and no additional conflict occurrence; it needs no operator guidance.
|
|
542
|
+
A bare retry also clears an existing infrastructure-limit escalation through
|
|
543
|
+
ordinary retry semantics. Unavailable inspection defers rather than proving loss.
|
|
544
|
+
|
|
486
545
|
Leaf restack and reconcile publication retry classified transient forge or transport
|
|
487
546
|
failures six times after the initial attempt, waiting 30, 60, 120, 240, 300 and
|
|
488
547
|
300 seconds. `publication.retry-scheduled` records the operation, frozen rewrite
|
|
489
548
|
identity, episode anchor, failure ordinal, last error and absolute retry time;
|
|
490
|
-
restart resumes that schedule without rerunning
|
|
549
|
+
restart resumes that schedule without rerunning a resolver whose candidate remains available. These retries do
|
|
491
550
|
not consume `maxPhaseAttempts`. A seventh transient failure records
|
|
492
551
|
`publication.retry-exhausted` and raises `publication-retry-limit`, naming the last
|
|
493
552
|
error and six retries. Answering that escalation opens a fresh publication episode
|
|
@@ -506,7 +565,15 @@ clears it. `policy.janitorBackoffMaxSeconds` sets the positive integer cap.
|
|
|
506
565
|
|
|
507
566
|
A classified forge rate limit records repository degradation with `resetAt`.
|
|
508
567
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
509
|
-
request
|
|
568
|
+
request; a successful probe records automatic recovery. An authorized operator
|
|
569
|
+
may explicitly override erroneous recorded state with
|
|
570
|
+
`ab repository forge-clear --forge <name> --reason <text>` or
|
|
571
|
+
`repository.forge_clear {repo, forge, reason}`. This appends a human-attributed
|
|
572
|
+
`dispatcher.forge-recovered` fact with the reason; it does not prove provider
|
|
573
|
+
success. A subsequent actual limit records a fresh cooldown. Hosted admission
|
|
574
|
+
requires a schema-valid finite ISO `resetAt` no later than server time plus
|
|
575
|
+
24 hours, inclusive; past deadlines remain valid. Rejection never clamps or
|
|
576
|
+
invents a provider reset, and historical events remain readable.
|
|
510
577
|
Native merge application failures keep candidate-specific retry eligibility,
|
|
511
578
|
including automatic decisions without a human command. Retries recheck consent,
|
|
512
579
|
holds, verification and the exact candidate. Uncertain enables remain pending
|
|
@@ -552,3 +619,9 @@ queued dependency presence and accepted re-parenting supply automatic demand.
|
|
|
552
619
|
Nested nodes need independent demand. Inspect the shared parent commit distance
|
|
553
620
|
readout; unknown is unavailable evidence, not zero. Existing transactions finish
|
|
554
621
|
before fresh demand is evaluated. Leaves keep their usual restack points.
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
For explicit MCP build history, `builds.events` returns at most 256 events with
|
|
625
|
+
`cursor` and `hasMore`. Follow the cursor while `hasMore` is true; a single
|
|
626
|
+
page is never evidence that a later terminal event is absent. Hosted repository
|
|
627
|
+
event reads have a fixed 1,000-position tail window; do not replay from zero.
|
package/skills/plan/SKILL.md
CHANGED
|
@@ -47,17 +47,40 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
47
47
|
identifier constraints; memory, nearby adapter code, and passing tests over
|
|
48
48
|
a fake or mock are not evidence of the real contract because they can
|
|
49
49
|
repeat the author's assumption.
|
|
50
|
-
3.
|
|
50
|
+
3. Check the concrete plan against [Fit one implement session](../ab-guide/references/spec-standard.md#fit-one-implement-session),
|
|
51
|
+
as described below. If it clearly will not fit, escalate instead of
|
|
52
|
+
depositing the plan or running `ab done`.
|
|
53
|
+
4. When the plan fits, write it to `$AB_CONTEXT_DIR/plan.md`, deposit it, and finish:
|
|
51
54
|
|
|
52
55
|
```
|
|
53
56
|
ab artifact put plan "$AB_CONTEXT_DIR/plan.md"
|
|
54
57
|
ab done
|
|
55
58
|
```
|
|
56
59
|
|
|
57
|
-
`ab done` is
|
|
60
|
+
`ab done` is the terminal command for this path — the phase is not complete until
|
|
58
61
|
it succeeds, and nothing you print matters to the pipeline. If it reports
|
|
59
62
|
a validation error, fix what it names and run it again.
|
|
60
63
|
|
|
64
|
+
## Implement-session fit
|
|
65
|
+
|
|
66
|
+
After exploring the code, apply the standard's reading, edit-site, and iteration
|
|
67
|
+
signals to the concrete work the implementer must finish, with debugging
|
|
68
|
+
headroom. Most plans need no estimate. The ceiling is a limit, not a target:
|
|
69
|
+
ordinary large plans and plans near but comfortably under it proceed.
|
|
70
|
+
|
|
71
|
+
When the required work clearly will not fit one implement session, stop:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
ab escalate "…evidence that the plan will not fit; proposed seams, each resulting ticket's ownership, and the blocker graph…" --refs "$AB_CONTEXT_DIR/spec.md"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Propose the split using [Cut along seams](../ab-guide/references/spec-standard.md#cut-along-seams)
|
|
78
|
+
and [Keep the blocker graph wide](../ab-guide/references/spec-standard.md#keep-the-blocker-graph-wide):
|
|
79
|
+
favor independent work, blockers only for prerequisites, and a minimal
|
|
80
|
+
contract-establishing prerequisite where needed. Put the evidence and concrete
|
|
81
|
+
proposal in the escalation reason. The operator decides and files the split;
|
|
82
|
+
do not deposit a plan or run `ab done` on this path.
|
|
83
|
+
|
|
61
84
|
## Verification selection
|
|
62
85
|
|
|
63
86
|
The plan may select which configured optional verify steps this build warrants.
|
|
@@ -140,8 +163,8 @@ Some rounds carry no feedback at all — the loop's first round, and the first
|
|
|
140
163
|
round after the spec is revised. Then neither file is there and the manifest
|
|
141
164
|
has no `feedback` field; plan from the spec.
|
|
142
165
|
|
|
143
|
-
|
|
144
|
-
never edit history.
|
|
166
|
+
On any round that proceeds rather than escalates, deposit a fresh
|
|
167
|
+
`ab artifact put plan` — revisions accumulate; never edit history.
|
|
145
168
|
|
|
146
169
|
## If the spec is the problem
|
|
147
170
|
|
|
@@ -34,6 +34,12 @@ verdict travels the typed channel; nothing you print matters to the pipeline.
|
|
|
34
34
|
- **Executability** — could a competent implementer follow the steps
|
|
35
35
|
without re-planning? Are the steps ordered so the build is never broken
|
|
36
36
|
mid-sequence?
|
|
37
|
+
- **Implement-session fit** — apply [Fit one implement session](../ab-guide/references/spec-standard.md#fit-one-implement-session)
|
|
38
|
+
to the whole required plan, grounded in real code and its reading,
|
|
39
|
+
edit-site, and iteration burden, with debugging headroom. Most plans need
|
|
40
|
+
no estimate. The ceiling is a limit, not a target; ordinary large plans
|
|
41
|
+
and plans near but comfortably under it proceed. When fulfilling the
|
|
42
|
+
spec clearly will not fit, escalate with a proposed split as below.
|
|
37
43
|
- **Testing** — does the testing section cover the seams the change
|
|
38
44
|
touches?
|
|
39
45
|
- **Verification selection** — if the plan has opening `verifySteps` TOML
|
|
@@ -51,6 +57,19 @@ verdict travels the typed channel; nothing you print matters to the pipeline.
|
|
|
51
57
|
ab verdict escalate --reason "…" --notes "$AB_CONTEXT_DIR/plan-review.md"
|
|
52
58
|
```
|
|
53
59
|
|
|
60
|
+
## Escalating an oversized plan
|
|
61
|
+
|
|
62
|
+
When fulfilling the spec clearly exceeds one implement session, write review
|
|
63
|
+
notes and use `ab verdict escalate --reason "…" --notes "$AB_CONTEXT_DIR/plan-review.md"`.
|
|
64
|
+
The reason must explain the concrete evidence and propose seams, what each
|
|
65
|
+
resulting ticket owns, and the blocker graph. Follow [Cut along seams](../ab-guide/references/spec-standard.md#cut-along-seams)
|
|
66
|
+
and [Keep the blocker graph wide](../ab-guide/references/spec-standard.md#keep-the-blocker-graph-wide):
|
|
67
|
+
favor independent work, blockers only for prerequisites, and a minimal
|
|
68
|
+
contract-establishing prerequisite where needed. The operator decides and
|
|
69
|
+
files the split. Do not issue a revise finding asking the planner to omit
|
|
70
|
+
scope the spec requires. Unnecessary scope expansion and ordinary plan defects
|
|
71
|
+
still belong in findings.
|
|
72
|
+
|
|
54
73
|
## Writing findings
|
|
55
74
|
|
|
56
75
|
Findings are structured JSON (the CLI validates and stamps ids):
|
|
@@ -121,8 +140,9 @@ invariant makes it material.
|
|
|
121
140
|
Approve when the plan would satisfy the spec — not when it matches how you
|
|
122
141
|
would have written it. Known immaterial defects are not a reason to withhold
|
|
123
142
|
approval — record them with `ab observe` and approve. Escalate when the
|
|
124
|
-
*spec* is the problem (contradictory or unbuildable)
|
|
125
|
-
|
|
143
|
+
*spec* is the problem (contradictory or unbuildable), or when its required
|
|
144
|
+
plan clearly exceeds one implement session, carrying the proposed split above.
|
|
145
|
+
Revise when the plan has an ordinary defect it can fix within the spec.
|
|
126
146
|
|
|
127
147
|
Read the manifest path printed by `ab context`. Its `materialized` keys are
|
|
128
148
|
relative to `contextDir`: join them to locate collision-adjusted inputs.
|