@defrex/autobuild 1.6.0 → 1.8.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 +423 -57
- package/docs/agent-runtimes.md +1 -1
- package/docs/answering-blocked-builds.md +44 -3
- package/docs/architecture.md +124 -29
- package/docs/cli.md +1 -0
- package/docs/configuration-overview.md +11 -1
- package/docs/configuration.md +334 -14
- package/docs/dispatcher.md +1 -1
- package/docs/forges.md +1 -0
- package/docs/integration-overview.md +2 -2
- package/docs/integration-tree.md +7 -4
- package/docs/merge-policy.md +78 -6
- package/docs/migration-1.0.md +4 -2
- package/docs/operating.md +3 -2
- package/docs/operator-api.md +45 -13
- package/docs/operator-surfaces.md +16 -3
- package/docs/plugin-authoring.md +45 -7
- package/docs/remote-store-protocol.md +28 -7
- package/docs/restacking.md +35 -11
- package/docs/ticket-dependencies.md +9 -4
- package/docs/ticket-sources.md +34 -6
- package/docs/tickets.md +7 -1
- package/docs/troubleshooting.md +1 -1
- package/docs/workspaces.md +1 -1
- package/package.json +3 -3
- package/packages/core/src/cli/attention.ts +2 -0
- package/packages/core/src/cli/binary-direct.ts +1 -0
- package/packages/core/src/cli/build-control.ts +65 -7
- package/packages/core/src/cli/context.ts +55 -14
- package/packages/core/src/cli/dashboard/actions.ts +13 -4
- package/packages/core/src/cli/dashboard/landing-display.ts +32 -8
- package/packages/core/src/cli/dashboard/model.ts +61 -8
- package/packages/core/src/cli/dashboard/render.ts +28 -3
- package/packages/core/src/cli/dashboard/tree.ts +9 -1
- package/packages/core/src/cli/dispatch-frontend.ts +10 -14
- package/packages/core/src/cli/dispatch-preflight.ts +1 -0
- package/packages/core/src/cli/dispatch-repository-feed.ts +145 -109
- package/packages/core/src/cli/dispatch.ts +9 -3
- package/packages/core/src/cli/help.ts +80 -11
- package/packages/core/src/cli/init-validation.ts +14 -1
- package/packages/core/src/cli/landings.ts +1 -1
- package/packages/core/src/cli/main.ts +60 -9
- package/packages/core/src/cli/publication-settlement.ts +10 -0
- package/packages/core/src/cli/repository-status.ts +37 -2
- package/packages/core/src/cli/status.ts +186 -12
- package/packages/core/src/cli/terminals.ts +197 -4
- package/packages/core/src/cli/ticket.ts +22 -4
- package/packages/core/src/cli/wait.ts +1 -0
- package/packages/core/src/cli/watch.ts +73 -0
- package/packages/core/src/config/landing.ts +12 -0
- package/packages/core/src/config/live.ts +4 -0
- package/packages/core/src/config/path-selectors.ts +68 -0
- package/packages/core/src/config/profiles.ts +96 -0
- package/packages/core/src/config/ready-assignee.ts +43 -11
- package/packages/core/src/config/roles.ts +33 -10
- package/packages/core/src/config/schema.ts +205 -81
- package/packages/core/src/events/catalog.ts +17 -3
- package/packages/core/src/events/compatibility.ts +4 -1
- package/packages/core/src/events/forge-degradation-policy.ts +16 -2
- package/packages/core/src/events/head-paths-limits.ts +25 -0
- package/packages/core/src/events/payloads.ts +323 -20
- package/packages/core/src/events/policy.ts +22 -0
- package/packages/core/src/events/repository.ts +47 -1
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +320 -130
- package/packages/core/src/kernel/build-creation.ts +29 -0
- package/packages/core/src/kernel/consent-revocation.ts +72 -0
- package/packages/core/src/kernel/dispatch-capacity.ts +19 -8
- package/packages/core/src/kernel/engine.ts +48 -8
- package/packages/core/src/kernel/forge-health.ts +47 -0
- package/packages/core/src/kernel/guarded-forge.ts +76 -18
- package/packages/core/src/kernel/head-paths-state.ts +63 -0
- package/packages/core/src/kernel/head-paths.ts +401 -0
- package/packages/core/src/kernel/landing-policy-identity.ts +20 -0
- package/packages/core/src/kernel/landing-policy.ts +55 -2
- package/packages/core/src/kernel/landing-readiness.ts +104 -9
- package/packages/core/src/kernel/landing-state.ts +44 -4
- package/packages/core/src/kernel/leaf-restack-state.ts +50 -2
- package/packages/core/src/kernel/log-index.ts +27 -1
- package/packages/core/src/kernel/node-parent.ts +2 -0
- package/packages/core/src/kernel/node-polling.ts +13 -3
- package/packages/core/src/kernel/node-restack-state.ts +8 -1
- package/packages/core/src/kernel/node-restack-transaction.ts +45 -0
- package/packages/core/src/kernel/read-deferrals.ts +3 -1
- package/packages/core/src/kernel/read-facts.ts +37 -2
- package/packages/core/src/kernel/reducer-registry.ts +22 -1
- package/packages/core/src/kernel/reducer.ts +332 -16
- package/packages/core/src/kernel/target-observation.ts +2 -5
- package/packages/core/src/kernel/terminal-guard.ts +52 -3
- package/packages/core/src/kernel/ticket-handbacks.ts +40 -0
- package/packages/core/src/kernel/ticket-preparation.ts +15 -1
- package/packages/core/src/kernel/ticket-wait.ts +345 -0
- package/packages/core/src/kernel/verify-applicability.ts +9 -19
- package/packages/core/src/ontology.ts +1 -0
- package/packages/core/src/operator/annotations.ts +6 -0
- package/packages/core/src/operator/index.ts +3 -0
- package/packages/core/src/operator/protocol.ts +25 -2
- package/packages/core/src/operator/query.ts +1 -1
- package/packages/core/src/operator/registry.ts +122 -10
- package/packages/core/src/operator/repository-events.ts +67 -0
- package/packages/core/src/operator/sandbox-host.ts +3 -0
- package/packages/core/src/operator/tickets.ts +15 -3
- package/packages/core/src/plugin-sdk/index.ts +4 -0
- package/packages/core/src/ports/forge/create.ts +6 -0
- package/packages/core/src/ports/forge/github-transport.ts +40 -3
- package/packages/core/src/ports/forge/github.ts +12 -1
- package/packages/core/src/ports/forge/workspace-ancestry.ts +60 -0
- package/packages/core/src/ports/forge-failure.ts +31 -2
- package/packages/core/src/ports/runner/routing.ts +66 -5
- package/packages/core/src/ports/tickets/assignees.ts +54 -0
- package/packages/core/src/ports/tickets/contract.ts +164 -4
- package/packages/core/src/ports/tickets/create.ts +17 -3
- package/packages/core/src/ports/tickets/fake.ts +5 -0
- package/packages/core/src/ports/tickets/github-fake.ts +18 -2
- package/packages/core/src/ports/tickets/github.ts +247 -29
- package/packages/core/src/ports/tickets/hosted-index.ts +1 -0
- package/packages/core/src/ports/tickets/operations.ts +6 -1
- package/packages/core/src/ports/tickets/tree.ts +12 -2
- package/packages/core/src/ports/tickets/update.ts +6 -2
- package/packages/core/src/ports/types.ts +36 -5
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +9 -0
- package/packages/core/src/processes/build-child.ts +28 -7
- package/packages/core/src/processes/build-execution-state.ts +34 -2
- package/packages/core/src/processes/build-runner.ts +165 -19
- package/packages/core/src/processes/dispatcher.ts +837 -115
- package/packages/core/src/processes/execution-no-progress.ts +22 -2
- package/packages/core/src/processes/harvest-child.ts +4 -0
- package/packages/core/src/processes/harvest-runner.ts +5 -0
- package/packages/core/src/processes/phase-failure-budget.ts +1 -0
- package/packages/core/src/processes/publication-state.ts +6 -1
- package/packages/core/src/processes/repo-view.ts +2 -0
- package/packages/core/src/scenarios/harness.ts +15 -1
- package/packages/core/src/store/digest.ts +41 -2
- package/packages/core/src/store/reduced-reads.ts +4 -1
- package/packages/core/src/store/reducer-value-shapes.json +10310 -8441
- package/packages/core/src/store/remote/client.ts +49 -10
- package/packages/core/src/store/remote/index.ts +4 -0
- package/packages/core/src/store/remote/protocol.ts +18 -1
- package/packages/core/src/store/remote/released-clients.json +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.7.0.json +27366 -0
- package/packages/core/src/store/remote/released-reducer-values/1.8.0.json +29043 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +4 -0
- package/packages/core/src/store/repo-state-events.ts +3 -0
- package/packages/core/src/store/types.ts +27 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +84 -58
- package/packages/core/src/testing/index.ts +2 -0
- package/packages/core/src/testing/reduced-read-budget.ts +419 -9
- package/skills/code-review/SKILL.md +8 -0
- package/skills/finalize/SKILL.md +4 -0
- package/skills/guide/SKILL.md +241 -47
- package/skills/guide/references/integration-tree.md +7 -4
- package/skills/guide/references/merge-policy.md +78 -6
- package/skills/guide/references/migration-1.0.md +4 -2
- package/skills/guide/references/operator-api.md +45 -13
- package/skills/guide/references/plugin-authoring.md +45 -7
- package/skills/guide/references/remote-store-protocol.md +28 -7
- package/skills/guide/references/restacking.md +35 -11
- package/skills/guide/references/ticket-dependencies.md +9 -4
- package/skills/implement/SKILL.md +15 -1
- package/skills/operate/SKILL.md +133 -16
- package/skills/plan/SKILL.md +17 -2
- package/skills/plan-review/SKILL.md +8 -0
- package/skills/reconcile/SKILL.md +21 -5
- package/skills/tickets/SKILL.md +23 -6
- package/templates/hosted-service/package.json +2 -2
package/skills/operate/SKILL.md
CHANGED
|
@@ -118,8 +118,9 @@ Credential/process changes remain subject to the Boundaries below.
|
|
|
118
118
|
`ab watch --operator --json` is the standing monitor. Keep its default filter: every
|
|
119
119
|
record calls for action. It reports failed node verification, build escalations, persistent janitor failures and their escalations, merge decisions,
|
|
120
120
|
harvest escalations/recovery exhaustion, automatic upgrade failures and runtime rollbacks, rejected configuration, reloads needing
|
|
121
|
-
restart, abnormal dispatcher stops/loss, abandoned ticket preparations, ticket-source and forge degradation past reset (15 minutes
|
|
122
|
-
for ticket sources without reset),
|
|
121
|
+
restart, abnormal dispatcher stops/loss, abandoned ticket preparations, ticket hand-backs (`ticket.handed-back`), ticket-source and forge degradation past reset (15 minutes
|
|
122
|
+
for ticket sources without reset), forge rate limits outside the dispatcher's credential
|
|
123
|
+
(`forge.credential-limited`), and five minutes of continuous tick failures. Advertised resets
|
|
123
124
|
wait for a post-reset tick to finish before requiring action; ordinary recovery
|
|
124
125
|
on that retry stays silent. Source grace and cooldown-driven failures do not
|
|
125
126
|
start the tick-failure clock. When failure writes are unavailable, dispatch watch
|
|
@@ -267,13 +268,17 @@ that appear after you arm. Finishing the initially queued set is no reason to st
|
|
|
267
268
|
alive and keep discovering work until the human ends or hands off the role.
|
|
268
269
|
|
|
269
270
|
Use `ab wait` and named unflagged watches only as separate diagnostics. They
|
|
270
|
-
cannot replace the registered monitor or its cursor. In MCP,
|
|
271
|
-
|
|
271
|
+
cannot replace the registered monitor or its cursor. In MCP, poll
|
|
272
|
+
`repository.events` for repository attention and `builds.events` for each build;
|
|
273
|
+
operator presence is not exposed there, and its
|
|
272
274
|
`repository.status` marks presence `unavailable` rather than absent.
|
|
273
275
|
|
|
274
276
|
### Inspect
|
|
275
277
|
|
|
276
278
|
- `ab builds [--queued] [--all] [--json]` — builds and their effective status.
|
|
279
|
+
A build parked on a ticket wait lists as `waiting`, with `waiting on <ids>`
|
|
280
|
+
after its phase; in `--json` its `status` stays `blocked` and `wait` carries
|
|
281
|
+
`state` and `tickets`.
|
|
277
282
|
- `ab build status <slug> [--events N]` — one build's detail, chronological runner
|
|
278
283
|
attaches with runtime identity, and recent events. Historical runtime is null
|
|
279
284
|
in JSON and unrecorded in human output.
|
|
@@ -295,26 +300,46 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
295
300
|
for verification on the same head; children and contributions remain intact.
|
|
296
301
|
Active work, pause, pending controls and merge intent refuse revision. Leaves
|
|
297
302
|
require an escalation and restart from plan after any unfinished reconcile
|
|
298
|
-
resumes under the revised spec and its publication is confirmed.
|
|
303
|
+
resumes under the revised spec and its publication is confirmed. Answering a
|
|
304
|
+
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
305
|
+
tickets complete (see ticket wait attention). Run
|
|
306
|
+
`ab help answer` for the full menu.
|
|
299
307
|
- `ab pause <slug>` / `ab resume <slug>`; `ab pause --all` / `ab resume --all`
|
|
300
308
|
hold and release the whole repository. Pause immediately interrupts live agent
|
|
301
309
|
sessions and acknowledges after they stop. Resume continues the same native
|
|
302
310
|
session where supported; remote or unsupported sessions rerun fresh, with a
|
|
303
311
|
reason recorded in session.resume-fallback. Without a live agent (including
|
|
304
312
|
check-only verify), pause still takes effect at the next boundary.
|
|
305
|
-
- `ab abort <slug
|
|
306
|
-
|
|
313
|
+
- `ab abort <slug> [--to triage|ready] [--reason <text>]` — destructive:
|
|
314
|
+
closes the PR, removes branches, and hands the ticket back to triage by
|
|
315
|
+
default. To free a build's slot while it waits on other work, use
|
|
316
|
+
`--to ready`: the ticket goes straight to ready with its blockers kept and
|
|
317
|
+
redispatches once they merge, so it needs no second move. A ticket that no
|
|
318
|
+
longer conforms to the spec standard falls back to triage, and the comment
|
|
319
|
+
lists what is missing. `--reason` is quoted in the hand-back comment.
|
|
320
|
+
Cleanup is asynchronous: act on the `ticket.handed-back` repository event,
|
|
321
|
+
not on `build.aborted` or the build leaving `ab builds`.
|
|
307
322
|
- `ab hold <slug>` — persistently hold a merge and revoke earlier consent.
|
|
308
323
|
- `ab merge <slug>` — consent to a ready merge and clear its hold. Consent
|
|
309
|
-
survives restacks and verification; use hold to withdraw it when work
|
|
324
|
+
survives clean restacks and verification; use hold to withdraw it when work
|
|
325
|
+
changes. Consent given under a `[[merge]]` rule with `paths` or `within`
|
|
326
|
+
predicates is revoked when a reconcile's own edits touch a file those
|
|
327
|
+
predicates match; `landing.consent-revoked` reports it.
|
|
310
328
|
Read the matched policy, readiness, acknowledged command and gate deferral in
|
|
311
329
|
build status before acting. Work the consent queue by checking completeness
|
|
312
330
|
and current verification, then issuing merge for the chosen merge. A merge
|
|
313
331
|
acknowledgement accepts consent; it never promises that gates passed. A
|
|
314
|
-
`merge-not-ready` or `
|
|
332
|
+
`merge-not-ready`, `node-incomplete` or `head-mismatch` refusal records no consent and no
|
|
315
333
|
landing, though a node's completeness check may save an
|
|
316
334
|
`integration.observed` diagnostic; re-read status and act on the stated
|
|
317
335
|
reason.
|
|
336
|
+
- `ab merge <slug> --head <sha>` — bind consent to the head you reviewed. It
|
|
337
|
+
records consent only when `<sha>` (full or at least seven characters) is the
|
|
338
|
+
build's current candidate head; otherwise it refuses with code
|
|
339
|
+
`head-mismatch`, records nothing, and names the current head. Review that
|
|
340
|
+
head before retrying. The guard applies only when consent is given: consent
|
|
341
|
+
still survives later clean restacks, and build status shows the consented
|
|
342
|
+
head beside the current one.
|
|
318
343
|
- Configure ordered `[[merge]]` rules for project policy through ab-guide.
|
|
319
344
|
Repository auto-merge defaults and per-build auto-merge toggles are retired.
|
|
320
345
|
|
|
@@ -339,6 +364,11 @@ out of ready to make room. Urgency never preempts a running build, and a blocked
|
|
|
339
364
|
urgent ticket still waits on its blockers. A source that cannot store priority
|
|
340
365
|
refuses `urgent` and names itself; tell the human.
|
|
341
366
|
|
|
367
|
+
On GitHub tickets, `--assignees` on create or update sets who a ticket is
|
|
368
|
+
assigned to (`me` is the credential owner; on update it replaces the set). Under
|
|
369
|
+
`[tickets].readyAssignee` only the assigned person's dispatcher claims a ticket,
|
|
370
|
+
so reassign to hand work to someone else rather than moving it between states.
|
|
371
|
+
|
|
342
372
|
Move tickets by lifecycle role rather than by native state name:
|
|
343
373
|
`ab ticket move <id> --role triage|ready|backlog|rejected`. "Ice it",
|
|
344
374
|
"icebox" and "backlog" mean `--role backlog` (deferred work); "reject" and
|
|
@@ -390,19 +420,30 @@ Your tools are the operator registry. The read-only ones are always safe:
|
|
|
390
420
|
- `builds.artifact` — one artifact's bytes, base64-encoded.
|
|
391
421
|
- `repository.status` — the repository's derived status. Its `operator.presence`
|
|
392
422
|
is `unavailable`: it does not load presence, so it is not evidence of absence.
|
|
423
|
+
- `repository.events` — your repository attention watch: the repository journal
|
|
424
|
+
after a `cursor`, with an optional bounded `waitSeconds` (at most 30). Its
|
|
425
|
+
default `attention` filter returns exactly the repository records
|
|
426
|
+
`ab watch --operator` reports, such as `ticket.handed-back`; `filter: "all"`
|
|
427
|
+
returns every event. Omit the cursor once to get a baseline, then pass back
|
|
428
|
+
the returned cursor, which advances past filtered events; follow it while
|
|
429
|
+
`hasMore` is true. On `code: "cursor-too-old"`, re-baseline and reconcile
|
|
430
|
+
`repository.status`. Build attention comes from `builds.events`.
|
|
393
431
|
- `harvest.status` — the observation workflow's current state.
|
|
394
432
|
|
|
395
433
|
The mutating ones carry the human's authority — prefer the narrowest
|
|
396
434
|
that does the job, and say what you are doing before you do it:
|
|
397
435
|
|
|
398
436
|
- `builds.control` — pause, resume, abort, or discard a build. `abort` and
|
|
399
|
-
`discard` are destructive to in-flight work.
|
|
437
|
+
`discard` are destructive to in-flight work. `abort` accepts `to`
|
|
438
|
+
(`triage`, the default, or `ready`) and a `reason`, as `ab abort` does.
|
|
400
439
|
- `builds.answer` — answer an open escalation: guidance text, a retry, a
|
|
401
440
|
review-round ceiling, or a revise-spec resolution. Eligible idle collecting or
|
|
402
441
|
verification-failed nodes accept body/ticket spec revision without an escalation;
|
|
403
442
|
the caller supplies the amended body for ticket origin. The node recollects and
|
|
404
443
|
verifies; leaves require an escalation and restart from plan after any unfinished reconcile
|
|
405
|
-
resumes under the revised spec and its publication is confirmed.
|
|
444
|
+
resumes under the revised spec and its publication is confirmed. Answering a
|
|
445
|
+
ticket wait's escalation ends the wait early; the dispatcher ends it when its
|
|
446
|
+
tickets complete.
|
|
406
447
|
- `tickets.list`, `tickets.get` — read the ticket queue and one ticket. A long
|
|
407
448
|
queue pages with `limit`, `offset` and `order`; `total` counts every match.
|
|
408
449
|
- `tickets.create` — file a new ticket from a conversation. A ticket filed
|
|
@@ -449,6 +490,10 @@ Treat every default-watch record as a call to act:
|
|
|
449
490
|
- `build.consent-ready`: inspect the one consent queue, then merge or hold the
|
|
450
491
|
selected candidate under the human's policy. Unready or stale candidates
|
|
451
492
|
do not produce this observation.
|
|
493
|
+
- `landing.consent-revoked`: a reconcile edited files protected by the rule
|
|
494
|
+
your consent was given under. Review the reconcile's edits to the named files
|
|
495
|
+
at the new head, then consent again with `ab merge <slug> --head <new head>`
|
|
496
|
+
or hold it. The build is back in the consent queue until you do.
|
|
452
497
|
- `build.merge-decision`: diagnose the current merge-gate deferral or unsafe
|
|
453
498
|
forge outcome. Consent and hold decisions use only `build.consent-ready`.
|
|
454
499
|
- Harvest escalation or recovery exhaustion: inspect harvest status and resolve
|
|
@@ -486,6 +531,16 @@ Treat every default-watch record as a call to act:
|
|
|
486
531
|
assuming it sits in Doing. Decide whether to leave it finished or cancelled,
|
|
487
532
|
or return it to Ready for another attempt. Each abandonment reports once;
|
|
488
533
|
history does not replay.
|
|
534
|
+
- Ticket hand-back (`ticket.handed-back`): the dispatcher returned a claimed or
|
|
535
|
+
ready ticket other than as completion, and the move is already committed.
|
|
536
|
+
`cause` is `abort`, `spec-bounce`, `preparation-failed`, `pr-closed` or
|
|
537
|
+
`discard`; `state` and `role` say where it went, `requested` the role an abort
|
|
538
|
+
asked for when it fell back, `missing` the spec-standard parts, and `reason`
|
|
539
|
+
the operator's text. An abort to ready needs nothing more. For triage, groom
|
|
540
|
+
the ticket and move it on when intended; for a spec bounce, fix the missing
|
|
541
|
+
parts first. Moving the ticket as soon as the record arrives is safe: no later
|
|
542
|
+
dispatcher write for the same hand-back overrides it. Each hand-back reports
|
|
543
|
+
once.
|
|
489
544
|
|
|
490
545
|
Do not re-derive history the build's events already tell you; read events
|
|
491
546
|
with a cursor and keep it short.
|
|
@@ -577,16 +632,19 @@ or queue entries for merge ancestry after a source ticket changes.
|
|
|
577
632
|
Start with `ab merges --json` (MCP `merges.list`). This is the one queue of
|
|
578
633
|
ready merges needing a decision: consent-policy candidates and held ready
|
|
579
634
|
candidates. Entries include the target, branch preview, candidate head/parent,
|
|
635
|
+
the live `currentHead` and the `consentedHead` (null without consent),
|
|
580
636
|
verification receipts and node children/completeness. Unknown completeness is
|
|
581
637
|
not zero children. A changed head or parent must regain current verification;
|
|
582
638
|
unfinished or automatically authorized candidates do not ask for attention.
|
|
583
639
|
Queued and held candidates hold no capacity slot; one that must re-verify or
|
|
584
640
|
reconcile waits for a slot ahead of new ticket claims, so a full repository
|
|
585
|
-
delays it without failing it.
|
|
641
|
+
delays it without failing it. A build waiting on other tickets holds no slot
|
|
642
|
+
either, and takes one ahead of new claims once its wait ends.
|
|
586
643
|
|
|
587
644
|
Select a queue build in the terminal and use `l merge` or `o hold`, or run
|
|
588
645
|
`ab merge <slug>` / `ab hold <slug>`. MCP uses `builds.control` with action `merge`
|
|
589
|
-
or `hold
|
|
646
|
+
or `hold`; its optional `head` binds merge consent to the reviewed head, like
|
|
647
|
+
`ab merge --head`. Hold is available before readiness and suppresses automatic merge.
|
|
590
648
|
Merge rechecks readiness and live node completeness, so act on failures by
|
|
591
649
|
refreshing the facts. Open children keep a node collecting; a child moved to
|
|
592
650
|
the rejected role no longer does. When integration
|
|
@@ -597,7 +655,7 @@ Watch for decisions and conflicts with `ab watch --operator --json`; save its op
|
|
|
597
655
|
and resume with `ab watch --operator --since <watch-cursor> --json`. On
|
|
598
656
|
`cursor-too-old`, re-arm without `--since`, reconcile status and acknowledge the
|
|
599
657
|
unavailable historical gap. Default attention includes
|
|
600
|
-
failed node verification (`integration.verification-failed`), node merges, node item conflicts, conflicted leaf replays and derived
|
|
658
|
+
failed node verification (`integration.verification-failed`), node merges, node item conflicts, conflicted leaf replays, revoked protected consent (`landing.consent-revoked`) and derived
|
|
601
659
|
`build.consent-ready` observations, including already-ready merges on first
|
|
602
660
|
repository-wide discovery. Readiness is identified by its durable
|
|
603
661
|
entry position: resuming suppresses the same episode, while a new candidate or
|
|
@@ -617,6 +675,45 @@ Repeated classified read failures park immediately again; they do not consume
|
|
|
617
675
|
the phase failure allowance. Default watch and attention waits deliver the new
|
|
618
676
|
raise with its own event type.
|
|
619
677
|
|
|
678
|
+
### Ticket wait attention
|
|
679
|
+
|
|
680
|
+
A build that `ab builds` and both dashboards show as `waiting` / `WAITING`,
|
|
681
|
+
with an amber `waiting on <ids> — <reason>` line, is a ticket wait. It is not
|
|
682
|
+
a red blocker; its escalation question begins `Waiting on`. Its agent declared with `ab wait-on` that it cannot proceed until
|
|
683
|
+
the named tickets complete, and the dispatcher recorded them in the build
|
|
684
|
+
ticket's `blockedBy`. It holds no capacity slot and keeps its branch and
|
|
685
|
+
workspace; `ab build status` shows a `waiting on:` line naming the tickets.
|
|
686
|
+
Drive the named tickets to completion: the dispatcher ends the wait on its
|
|
687
|
+
first tick after every named ticket completes, with no answer needed, and a
|
|
688
|
+
wait with some tickets still open stays in place. Answer sooner only when the
|
|
689
|
+
needed work landed another way or the wait is mistaken; any answer ends the
|
|
690
|
+
wait early. Either way the build then takes a
|
|
691
|
+
slot ahead of new ticket claims. If its target moved, it first restacks onto the
|
|
692
|
+
target's current head, so the resumed phase sees the merged blockers;
|
|
693
|
+
`ab build status` shows a `restack:` line with trigger `wait-resume`, and a
|
|
694
|
+
conflicting restack shows as `reconcile` before the phase resumes. The phase
|
|
695
|
+
that declared the wait then resumes, told what it waited on. Until the
|
|
696
|
+
dispatcher accepts a request, the build keeps its slot and `ab build status`
|
|
697
|
+
reports the wait as requested. A wait declared in `implement` first publishes
|
|
698
|
+
the build's commits; if that publication is lost, the wait is refused
|
|
699
|
+
(`publication-lost`) and implement re-runs with the refusal as guidance.
|
|
700
|
+
|
|
701
|
+
A waited ticket that is rejected or deleted can never complete. The dispatcher
|
|
702
|
+
then ends the wait with an ordinary red policy escalation, `wait-unresolvable`,
|
|
703
|
+
in the default attention filter, whose question names each such ticket and why.
|
|
704
|
+
Answer it with guidance to resume the declaring phase without that ticket
|
|
705
|
+
(the session is again told what it waited on), with `--revise-spec` when the
|
|
706
|
+
spec has to change, or abort the build. Do not leave it waiting for the ticket
|
|
707
|
+
to come back: moving the ticket out of the rejected state later does not
|
|
708
|
+
re-enter the wait.
|
|
709
|
+
|
|
710
|
+
Entering and leaving a wait (`wait.entered`, `wait.ended`, and the
|
|
711
|
+
`escalation.answered` that ends a wait) are routine, not default-watch
|
|
712
|
+
attention. To see waits begin and end, run a separate diagnostic
|
|
713
|
+
`ab watch --event 'wait.*' --event escalation.answered --json` alongside the
|
|
714
|
+
standing watch. On either dashboard, `r` / RESUME on a waiting build answers
|
|
715
|
+
the wait and ends it early.
|
|
716
|
+
|
|
620
717
|
### Janitor escalation attention
|
|
621
718
|
|
|
622
719
|
`build.janitor-escalated` is ordinary blocked attention for a janitor failure
|
|
@@ -652,7 +749,7 @@ not consume `maxPhaseAttempts`. A seventh transient failure records
|
|
|
652
749
|
error and six retries. Answering that escalation opens a fresh publication episode
|
|
653
750
|
for the same retained intent without resetting agent phase failures. Pending
|
|
654
751
|
publication keeps its workspace through backoff and unresolved exhaustion.
|
|
655
|
-
|
|
752
|
+
Dispatcher-classified rate limits retain repository cooldown and consume no publication
|
|
656
753
|
retry allowance. Rejected pushes, lease conflicts, dirty trees and unclassified
|
|
657
754
|
errors retain their existing behavior.
|
|
658
755
|
|
|
@@ -692,7 +789,8 @@ one durable `dispatcher.kernel-git-unavailable` repository condition, node work
|
|
|
692
789
|
waits, and `dispatcher.kernel-git-recovered` closes the condition once a clone
|
|
693
790
|
succeeds.
|
|
694
791
|
|
|
695
|
-
A
|
|
792
|
+
A rate limit the dispatcher classifies on its own authenticated request
|
|
793
|
+
records repository degradation with `resetAt`.
|
|
696
794
|
Forge work waits during cooldown; passing the deadline permits a recovery
|
|
697
795
|
request; a successful probe records automatic recovery. An authorized operator
|
|
698
796
|
may explicitly override erroneous recorded state with
|
|
@@ -703,6 +801,25 @@ success. A subsequent actual limit records a fresh cooldown. Hosted admission
|
|
|
703
801
|
requires a schema-valid finite ISO `resetAt` no later than server time plus
|
|
704
802
|
24 hours, inclusive; past deadlines remain valid. Rejection never clamps or
|
|
705
803
|
invents a provider reset, and historical events remain readable.
|
|
804
|
+
|
|
805
|
+
Only the dispatcher's own forge pauses the repository. A limit on a request
|
|
806
|
+
that carried no credential, or one seen by a build runner or phase session,
|
|
807
|
+
says nothing about the dispatcher's credential: that process waits out its own
|
|
808
|
+
reset locally (a dispatcher defers that work instead), and records one advisory
|
|
809
|
+
`forge.credential-limited` fact per episode naming the process, whether the
|
|
810
|
+
request was `unauthenticated` (with why) or used the process's own credential,
|
|
811
|
+
and the reset. It is `ab watch` attention and appears as
|
|
812
|
+
`forgeCredentialLimits` in `ab repository status` until its reset;
|
|
813
|
+
`forge-clear` does not apply. Remote guests receive no forge credential: their
|
|
814
|
+
GitHub API requests fail with a typed error naming `GITHUB_TOKEN or GH_TOKEN`
|
|
815
|
+
instead of going out anonymously, and they prove ancestry through their
|
|
816
|
+
workspace's Git. An unauthenticated limit therefore points at a process missing
|
|
817
|
+
`GITHUB_TOKEN`/`GH_TOKEN` or a `gh` login, or at guest-side forge use that must
|
|
818
|
+
run kernel-side. Runners and sessions still wait out a dispatcher-recorded
|
|
819
|
+
cooldown, but a limit they hit on a shared token no longer pauses the
|
|
820
|
+
dispatcher in advance; the dispatcher records it on its own next limited
|
|
821
|
+
request.
|
|
822
|
+
|
|
706
823
|
Native merge application failures keep candidate-specific retry eligibility,
|
|
707
824
|
including automatic decisions without a human command. Retries recheck consent,
|
|
708
825
|
holds, verification and the exact candidate. Uncertain enables remain pending
|
package/skills/plan/SKILL.md
CHANGED
|
@@ -166,6 +166,21 @@ has no `feedback` field; plan from the spec.
|
|
|
166
166
|
On any round that proceeds rather than escalates, deposit a fresh
|
|
167
167
|
`ab artifact put plan` — revisions accumulate; never edit history.
|
|
168
168
|
|
|
169
|
+
## Waiting on other tickets
|
|
170
|
+
|
|
171
|
+
If the build cannot proceed until another ticket merges — the plan depends on
|
|
172
|
+
code that ticket owns and it has not landed — do not escalate. End the session
|
|
173
|
+
with:
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
ab wait-on <ticket-id>... --reason "…what this plan needs from them…"
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
The build parks without holding a slot. When every named ticket completes,
|
|
180
|
+
the dispatcher ends the wait and this phase resumes at the same round, on the
|
|
181
|
+
target's current head, with a `wait` block in `$AB_CONTEXT_DIR/guidance.json` naming
|
|
182
|
+
what you waited on. Escalate as before for anything else.
|
|
183
|
+
|
|
169
184
|
## If the spec is the problem
|
|
170
185
|
|
|
171
186
|
If the spec is contradictory, unbuildable, or wrong — do not plan around it.
|
|
@@ -175,8 +190,8 @@ Park the build for external judgment from the operator agent or a human:
|
|
|
175
190
|
ab escalate "…the question, concretely…" --refs "$AB_CONTEXT_DIR/spec.md"
|
|
176
191
|
```
|
|
177
192
|
|
|
178
|
-
This is also a terminal command; use exactly one of `ab done
|
|
179
|
-
`ab escalate` per session.
|
|
193
|
+
This is also a terminal command; use exactly one of `ab done`,
|
|
194
|
+
`ab escalate` or `ab wait-on` per session.
|
|
180
195
|
|
|
181
196
|
Read the manifest path printed by `ab context`. Its `materialized` keys are
|
|
182
197
|
relative to `contextDir`: join them to locate collision-adjusted inputs.
|
|
@@ -57,6 +57,14 @@ verdict travels the typed channel; nothing you print matters to the pipeline.
|
|
|
57
57
|
ab verdict escalate --reason "…" --notes "$AB_CONTEXT_DIR/plan-review.md"
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
If you cannot judge the plan until another ticket merges — it builds on
|
|
61
|
+
code that ticket owns and has not landed — end the session with
|
|
62
|
+
`ab wait-on <ticket-id>... --reason "…"` instead of a verdict or an
|
|
63
|
+
escalation. The build parks without a slot; when every named ticket
|
|
64
|
+
completes, this same review round resumes on the target's current head,
|
|
65
|
+
with a `wait` block in `$AB_CONTEXT_DIR/guidance.json`. Escalate as before for
|
|
66
|
+
anything else.
|
|
67
|
+
|
|
60
68
|
## Escalating an oversized plan
|
|
61
69
|
|
|
62
70
|
When fulfilling the spec clearly exceeds one implement session, write review
|
|
@@ -40,8 +40,8 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
40
40
|
1. Run `ab context`. Read the printed manifest and its `materialized` paths for
|
|
41
41
|
the spec, approved plan, implement-notes, and any `$AB_CONTEXT_DIR/guidance.json` guidance. `replay` names the
|
|
42
42
|
original head, old contribution base, single change, frozen target base and
|
|
43
|
-
whether replay conflicted. A replay may originate at verify entry
|
|
44
|
-
PR exists; `restackId` identifies an adopted automatic transaction. Never fetch, merge, rebase, select another base,
|
|
43
|
+
whether replay conflicted. A replay may originate at verify entry or at a
|
|
44
|
+
ticket-wait resume before any PR exists; `restackId` identifies an adopted automatic transaction. Never fetch, merge, rebase, select another base,
|
|
45
45
|
or move the named branch yourself. Missing replay inputs require escalation, except a node item uses `nodeChange` and `conflict.baseSha` instead of `replay`.
|
|
46
46
|
If the manifest includes `workspaceRecovery`, read that materialized note.
|
|
47
47
|
It distinguishes exact preserved commits restored before the session from
|
|
@@ -80,7 +80,9 @@ manifest-directed artifact paths remain authoritative. Never commit scratch.
|
|
|
80
80
|
A publication success message parks this turn for kernel publication;
|
|
81
81
|
do not repeat `ab done` after success. Post-reconcile verification follows the
|
|
82
82
|
captured policy and begins a fresh cycle after confirmed publication. A conflict
|
|
83
|
-
at initial verify entry
|
|
83
|
+
at initial verify entry, or at a ticket-wait resume, still requires initial
|
|
84
|
+
checks regardless of that policy. After a wait-resume replay publishes, the
|
|
85
|
+
build resumes the phase that declared the wait.
|
|
84
86
|
|
|
85
87
|
A leaf replay resumed after a spec revision uses the revised spec as its
|
|
86
88
|
contract. Its historical plan and implement notes describe the retained change;
|
|
@@ -88,6 +90,20 @@ they cannot override that contract. After confirmed publication the build
|
|
|
88
90
|
restarts planning, implementation and review before verification, rather than
|
|
89
91
|
entering the ordinary post-reconcile verification cycle directly.
|
|
90
92
|
|
|
93
|
+
## Waiting on other tickets
|
|
94
|
+
|
|
95
|
+
If the resolution needs work from other tickets that has not landed, end the
|
|
96
|
+
session with `ab wait-on <ticket-id>... --reason <text>` instead of
|
|
97
|
+
escalating. The build parks without a slot, and the wait ends by itself when
|
|
98
|
+
every named ticket completes. When
|
|
99
|
+
the wait ends and the target branch has moved, and no resolution of this
|
|
100
|
+
replay was deposited for publication, the kernel abandons this replay,
|
|
101
|
+
including any resolution you have not deposited with `ab done`, and prepares a
|
|
102
|
+
fresh replay onto the target's current head, which you then resolve. If the
|
|
103
|
+
target has not moved, you resume this same replay with its conflicts as you
|
|
104
|
+
left them. Escalate as before for anything that is not waiting on another
|
|
105
|
+
ticket to merge.
|
|
106
|
+
|
|
91
107
|
## When not to resolve
|
|
92
108
|
|
|
93
109
|
Escalate semantic conflicts, incompatible or deleted branch history, or choices
|
|
@@ -100,8 +116,8 @@ ab escalate "The target changes the session-token format but the build keys its
|
|
|
100
116
|
An operator answer in guidance is authoritative while the spec remains the
|
|
101
117
|
contract. If they cannot both be satisfied, escalate the contradiction.
|
|
102
118
|
Reconcile has no code-review round; escalate risky resolutions for external
|
|
103
|
-
judgment. The only successful terminal commands are `ab done
|
|
104
|
-
`ab escalate`.
|
|
119
|
+
judgment. The only successful terminal commands are `ab done`,
|
|
120
|
+
`ab escalate` and `ab wait-on`.
|
|
105
121
|
|
|
106
122
|
Read the manifest path printed by `ab context`. Its `materialized` keys are
|
|
107
123
|
relative to `contextDir`: join them to locate collision-adjusted inputs.
|
package/skills/tickets/SKILL.md
CHANGED
|
@@ -93,7 +93,7 @@ the spec.
|
|
|
93
93
|
## Create a ticket
|
|
94
94
|
|
|
95
95
|
```
|
|
96
|
-
ab ticket create "Rate-limit auth endpoints" --body spec.md [--labels bug,api] [--blocked-by file-1,file-2] [--issues 824,820:refs] [--priority urgent]
|
|
96
|
+
ab ticket create "Rate-limit auth endpoints" --body spec.md [--labels bug,api] [--blocked-by file-1,file-2] [--issues 824,820:refs] [--priority urgent] [--assignees alice,me]
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
It lands in `triage/` and prints the new id. `--body` is a file, and its
|
|
@@ -106,6 +106,11 @@ succeeds. When the ticket originates from a forge issue, attach it with
|
|
|
106
106
|
`--issues`: `N` (intent `closes`, the default) when the ticket fully resolves
|
|
107
107
|
the issue, `N:refs` when it only partly addresses it. `--priority urgent` makes
|
|
108
108
|
the dispatcher claim it before normal ready work; omit it for normal.
|
|
109
|
+
`--assignees` assigns the ticket on a source that stores assignees (GitHub):
|
|
110
|
+
usernames, or `me` for the owner of the GitHub credential. Without it, a
|
|
111
|
+
configured `[tickets].createAssignee` assigns the ticket, and `--assignees ''`
|
|
112
|
+
files it unassigned. Under `[tickets].readyAssignee` an unassigned ticket never
|
|
113
|
+
becomes ready, so assign a ticket to whoever's dispatcher should build it.
|
|
109
114
|
|
|
110
115
|
For dependencies on any source, follow the
|
|
111
116
|
[safe blocker-filing workflow](../ab-guide/references/ticket-dependencies.md).
|
|
@@ -125,6 +130,7 @@ ab ticket update file-3 --title "New title" --labels bug,api
|
|
|
125
130
|
ab ticket update file-3 --labels ''
|
|
126
131
|
ab ticket update file-3 --issues 824:refs
|
|
127
132
|
ab ticket update file-3 --priority urgent
|
|
133
|
+
ab ticket update 412 --assignees octocat,me
|
|
128
134
|
ab ticket block file-3 file-1
|
|
129
135
|
ab ticket unblock file-3 file-1
|
|
130
136
|
```
|
|
@@ -134,10 +140,20 @@ Update is partial: omitted fields stay untouched, while an explicitly empty
|
|
|
134
140
|
`--issues ''` clears it. `--priority urgent|normal` sets the dispatch class;
|
|
135
141
|
the file tracker writes `priority = "urgent"` and removes the key for normal. A
|
|
136
142
|
source that cannot store priority refuses `urgent`, names itself, and writes
|
|
137
|
-
nothing; `normal` succeeds there.
|
|
143
|
+
nothing; `normal` succeeds there. `--assignees` replaces the whole set of
|
|
144
|
+
assignees, `--assignees ''` clears it, and omitting it leaves them alone;
|
|
145
|
+
`ab ticket show` prints them and JSON reads carry an `assignees` array. Hand a
|
|
146
|
+
GitHub ticket to someone else this way. A source that cannot store assignees
|
|
147
|
+
(file, hosted, Linear) refuses the option, names itself, and writes nothing. It cannot change state. For block/unblock the first
|
|
138
148
|
id is the ticket being edited; the second is its blocker. Both are safe to
|
|
139
149
|
retry, and adding validates the blocker exists and is not the ticket itself.
|
|
140
150
|
|
|
151
|
+
A label can also select one of the repository's `[profiles]` (role overrides
|
|
152
|
+
for that ticket's build, defined in `autobuild.toml`; see the `ab-guide`
|
|
153
|
+
skill). Give a ticket at most one profile label: a ready ticket carrying two
|
|
154
|
+
profiles' labels is not claimed until one is removed. The profile is fixed when
|
|
155
|
+
the ticket is claimed, so relabelling a ticket whose build exists has no effect.
|
|
156
|
+
|
|
141
157
|
## Report the backlog
|
|
142
158
|
|
|
143
159
|
```
|
|
@@ -187,10 +203,11 @@ work proceeds, and urgency never stops a running build. To expedite a ticket,
|
|
|
187
203
|
mark it urgent rather than moving other tickets out of `ready/`.
|
|
188
204
|
|
|
189
205
|
When the dispatcher claims an eligible file ticket, it moves it to `doing/`,
|
|
190
|
-
then to `done/` on merge or back to `triage/` if the build aborts
|
|
191
|
-
bounces. A caught failure before build
|
|
192
|
-
after safe ownership checks
|
|
193
|
-
|
|
206
|
+
then to `done/` on merge or back to `triage/` if the build aborts (`ready/`
|
|
207
|
+
with `ab abort --to ready`) or the spec bounces. A caught failure before build
|
|
208
|
+
creation returns it to configured Ready after safe ownership checks. Every such
|
|
209
|
+
return reports one `ticket.handed-back` repository event once the move is done.
|
|
210
|
+
Unfinished recovery stays durably tracked and withheld from another claim. Uncertain ownership or externally changed/missing
|
|
194
211
|
tickets end automatic recovery with an `abandoned` resolution, reported once
|
|
195
212
|
in that tick's dispatcher diagnostics and once as default `ab watch`
|
|
196
213
|
repository attention, leaving the ticket unchanged for operator inspection.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"build": "ab-hosted-service-build"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@defrex/autobuild-hosted-store-service": "1.
|
|
8
|
-
"@defrex/autobuild": "1.
|
|
7
|
+
"@defrex/autobuild-hosted-store-service": "1.8.0",
|
|
8
|
+
"@defrex/autobuild": "1.8.0",
|
|
9
9
|
"next": "16.1.6",
|
|
10
10
|
"react": "19.2.4",
|
|
11
11
|
"react-dom": "19.2.4"
|