@defrex/autobuild 1.0.0-beta.2 → 1.0.0-beta.4
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/SPEC.md +342 -23
- package/bin/ab-dispatch-generation.ts +93 -0
- package/docs/answering-blocked-builds.md +21 -3
- package/docs/architecture.md +170 -7
- package/docs/configuration.md +173 -5
- package/docs/integration-tree.md +91 -4
- package/docs/integration.md +54 -0
- package/docs/operator-api.md +58 -5
- package/docs/remote-store-protocol.md +9 -1
- package/docs/remote-ticket-protocol.md +5 -0
- package/docs/restacking.md +4 -1
- package/docs/setup.md +24 -0
- package/docs/spec-standard.md +94 -5
- package/docs/ticket-migration.md +50 -4
- package/package.json +3 -3
- package/packages/core/src/cli/artifact.ts +5 -4
- package/packages/core/src/cli/attention.ts +2 -0
- package/packages/core/src/cli/binary-direct.ts +190 -0
- package/packages/core/src/cli/binary-lifecycle.ts +46 -0
- package/packages/core/src/cli/binary.ts +24 -210
- package/packages/core/src/cli/build-control.ts +108 -5
- package/packages/core/src/cli/context.ts +41 -1
- package/packages/core/src/cli/dashboard/hand-pushed.ts +24 -0
- package/packages/core/src/cli/dashboard/handoff.ts +64 -0
- package/packages/core/src/cli/dashboard/integration-detail.ts +11 -6
- package/packages/core/src/cli/dashboard/integration-row.ts +15 -8
- package/packages/core/src/cli/dashboard/model.ts +41 -10
- package/packages/core/src/cli/dashboard/render.ts +24 -2
- package/packages/core/src/cli/dashboard/rollback.ts +30 -0
- package/packages/core/src/cli/dispatch-args.ts +53 -0
- package/packages/core/src/cli/dispatch-crash-budget.ts +15 -0
- package/packages/core/src/cli/dispatch-frontend.ts +57 -5
- package/packages/core/src/cli/dispatch-handoff.ts +276 -0
- package/packages/core/src/cli/dispatch-launch-contract.ts +170 -0
- package/packages/core/src/cli/dispatch-launcher.ts +580 -0
- package/packages/core/src/cli/dispatch-parent-watch.ts +44 -0
- package/packages/core/src/cli/dispatch-preflight.ts +272 -0
- package/packages/core/src/cli/dispatch-presentation-job.ts +46 -0
- package/packages/core/src/cli/dispatch-presentation-ownership.ts +9 -0
- package/packages/core/src/cli/dispatch-process.ts +22 -90
- package/packages/core/src/cli/dispatch-readiness.ts +47 -0
- package/packages/core/src/cli/dispatch-repository-feed.ts +6 -1
- package/packages/core/src/cli/dispatch-runtime-cache.ts +522 -0
- package/packages/core/src/cli/dispatch-runtime-dependencies.ts +291 -0
- package/packages/core/src/cli/dispatch-runtime-use.ts +336 -0
- package/packages/core/src/cli/dispatch-upgrade-controller.ts +221 -0
- package/packages/core/src/cli/dispatch-upgrade-install.ts +258 -0
- package/packages/core/src/cli/dispatch-upgrade-source.ts +309 -0
- package/packages/core/src/cli/dispatch-upgrade-target.ts +190 -0
- package/packages/core/src/cli/dispatch.ts +609 -60
- package/packages/core/src/cli/dispatcher-liveness.ts +1 -1
- package/packages/core/src/cli/harvest.ts +28 -11
- package/packages/core/src/cli/help.ts +7 -3
- package/packages/core/src/cli/installation.ts +5 -3
- package/packages/core/src/cli/main-checkout.ts +59 -0
- package/packages/core/src/cli/main.ts +26 -53
- package/packages/core/src/cli/node-verification-provenance.ts +97 -0
- package/packages/core/src/cli/repo-state.ts +3 -58
- package/packages/core/src/cli/repository-status.ts +74 -4
- package/packages/core/src/cli/runtime-spawn.ts +16 -0
- package/packages/core/src/cli/status.ts +57 -3
- package/packages/core/src/cli/ticket.ts +35 -11
- package/packages/core/src/cli/upgrade-followup.ts +25 -0
- package/packages/core/src/cli/wait.ts +3 -0
- package/packages/core/src/cli/watch.ts +7 -0
- package/packages/core/src/config/live.ts +1 -0
- package/packages/core/src/config/schema.ts +8 -4
- package/packages/core/src/distribution-packaging.ts +116 -0
- package/packages/core/src/events/catalog.ts +6 -0
- package/packages/core/src/events/payloads.ts +55 -9
- package/packages/core/src/events/policy.ts +26 -0
- package/packages/core/src/events/repository.ts +205 -4
- package/packages/core/src/events/runtime.ts +16 -0
- package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +6537 -4053
- package/packages/core/src/kernel/change-presence.ts +7 -1
- package/packages/core/src/kernel/dispatch-capacity.ts +12 -4
- package/packages/core/src/kernel/dispatch-drain-recovery.ts +121 -0
- package/packages/core/src/kernel/dispatch-status.ts +4 -2
- package/packages/core/src/kernel/dispatch-upgrade.ts +171 -0
- package/packages/core/src/kernel/dispatcher-liveness.ts +7 -0
- package/packages/core/src/kernel/generators/repository-journals.ts +82 -0
- package/packages/core/src/kernel/guarded-forge.ts +1 -1
- package/packages/core/src/kernel/harvest.ts +98 -4
- package/packages/core/src/kernel/integration-attention.ts +20 -0
- package/packages/core/src/kernel/integration-completeness.ts +54 -16
- package/packages/core/src/kernel/integration-state.ts +80 -11
- package/packages/core/src/kernel/landing-readiness.ts +6 -1
- package/packages/core/src/kernel/mixed-version.ts +34 -0
- package/packages/core/src/kernel/node-parent.ts +35 -10
- package/packages/core/src/kernel/node-polling.ts +160 -0
- package/packages/core/src/kernel/read-facts.ts +47 -5
- package/packages/core/src/kernel/reducer-registry.ts +6 -0
- package/packages/core/src/kernel/reducer.ts +75 -14
- package/packages/core/src/kernel/service-facts.ts +11 -4
- package/packages/core/src/kernel/ticket-migrations.ts +139 -0
- package/packages/core/src/operator/presentation.ts +7 -0
- package/packages/core/src/operator/query.ts +13 -3
- package/packages/core/src/operator/registry.ts +1 -1
- package/packages/core/src/operator/tickets.ts +30 -26
- package/packages/core/src/plugins/load.ts +4 -1
- package/packages/core/src/plugins/runtime-snapshot.ts +128 -0
- package/packages/core/src/ports/forge/contract.ts +29 -0
- package/packages/core/src/ports/forge/github.ts +189 -61
- package/packages/core/src/ports/forge-failure.ts +1 -0
- package/packages/core/src/ports/forge-telemetry.ts +3 -0
- package/packages/core/src/ports/runner/session-env.ts +1 -0
- package/packages/core/src/ports/tickets/linear.ts +180 -12
- package/packages/core/src/ports/tickets/migration.ts +92 -9
- package/packages/core/src/ports/types.ts +17 -0
- package/packages/core/src/ports/workspace/distribution-archive.ts +22 -149
- package/packages/core/src/ports/workspace/distribution-release.ts +56 -0
- package/packages/core/src/ports/workspace/git-worktree.ts +2 -1
- package/packages/core/src/ports/workspace/local-build-execution.ts +37 -17
- package/packages/core/src/processes/build-child-exit.ts +5 -26
- package/packages/core/src/processes/build-runner.ts +81 -11
- package/packages/core/src/processes/dispatcher.ts +418 -59
- package/packages/core/src/processes/execution-no-progress.ts +6 -0
- package/packages/core/src/processes/execution-relaunch.ts +30 -0
- package/packages/core/src/processes/execution-settlement.ts +16 -7
- package/packages/core/src/processes/harvest-runner.ts +328 -292
- package/packages/core/src/processes/process-group-reaper.ts +17 -10
- package/packages/core/src/runtime-identity.ts +22 -3
- package/packages/core/src/store/contract.ts +183 -0
- package/packages/core/src/store/local/store.ts +197 -72
- package/packages/core/src/store/reduced-reads.ts +8 -0
- package/packages/core/src/store/reducer-value-shapes.json +8915 -6344
- package/packages/core/src/store/remote/client.ts +43 -0
- package/packages/core/src/store/repo-state-events.ts +21 -3
- package/packages/core/src/store/types.ts +7 -0
- package/packages/core/src/testing/dispatch-read-budget.ts +3 -2
- package/skills/guide/SKILL.md +234 -24
- package/skills/guide/references/integration-tree.md +91 -4
- package/skills/guide/references/operator-api.md +53 -4
- package/skills/guide/references/plugin-authoring.md +45 -4
- package/skills/guide/references/remote-store-protocol.md +9 -1
- package/skills/guide/references/remote-ticket-protocol.md +5 -0
- package/skills/guide/references/restacking.md +4 -1
- package/skills/guide/references/setup.md +24 -0
- package/skills/guide/references/spec-standard.md +94 -5
- package/skills/guide/references/ticket-migration.md +50 -4
- package/skills/harvest/SKILL.md +4 -0
- package/skills/harvest-review/SKILL.md +4 -0
- package/skills/operate/SKILL.md +78 -8
- package/skills/spec/SKILL.md +35 -5
- package/skills/tickets/SKILL.md +19 -0
package/skills/operate/SKILL.md
CHANGED
|
@@ -84,8 +84,8 @@ the same resolved working directory.
|
|
|
84
84
|
### Watch for attention events
|
|
85
85
|
|
|
86
86
|
`ab watch --json` is the standing monitor. Keep its default filter: every
|
|
87
|
-
record calls for action. It reports build escalations, persistent janitor failures and merge decisions,
|
|
88
|
-
harvest escalations/recovery exhaustion, rejected configuration, reloads needing
|
|
87
|
+
record calls for action. It reports failed node verification, build escalations, persistent janitor failures and merge decisions,
|
|
88
|
+
harvest escalations/recovery exhaustion, automatic upgrade failures and runtime rollbacks, rejected configuration, reloads needing
|
|
89
89
|
restart, abnormal dispatcher stops/loss, ticket-source and forge degradation past reset (15 minutes
|
|
90
90
|
for ticket sources without reset), and five minutes of continuous tick failures. Advertised resets
|
|
91
91
|
wait for a post-reset tick to finish before requiring action; ordinary recovery
|
|
@@ -137,6 +137,8 @@ cannot recover its earlier interval: reconcile current repository status.
|
|
|
137
137
|
attention watch.
|
|
138
138
|
|
|
139
139
|
|
|
140
|
+
Runtime identity on `dispatcher.holder` describes the lease owner, independently
|
|
141
|
+
of the newest invocation; missing historical runtime is null.
|
|
140
142
|
Check dispatcher liveness with `ab repository status --json` after a watch
|
|
141
143
|
timeout or `dispatcher.lost` observation, or when dispatch appears unhealthy. Do not
|
|
142
144
|
use process lists to decide whether a dispatcher owns this repository. The
|
|
@@ -197,8 +199,12 @@ Checking once is not shepherding. When you take responsibility for builds:
|
|
|
197
199
|
### Inspect
|
|
198
200
|
|
|
199
201
|
- `ab builds [--queued] [--all] [--json]` — builds and their effective status.
|
|
200
|
-
- `ab build status <slug> [--events N]` — one build's detail
|
|
201
|
-
|
|
202
|
+
- `ab build status <slug> [--events N]` — one build's detail, chronological runner
|
|
203
|
+
attaches with runtime identity, and recent events. Historical runtime is null
|
|
204
|
+
in JSON and unrecorded in human output.
|
|
205
|
+
- `ab repository status` — the repository's derived status, including the lease
|
|
206
|
+
holder’s recorded runtime version, commit, and source kind/location. Historical
|
|
207
|
+
runtime is null in JSON and unrecorded in human output.
|
|
202
208
|
- `ab artifact` — fetch one artifact's bytes.
|
|
203
209
|
|
|
204
210
|
Read events with a cursor or a small `--events` count; logs are long.
|
|
@@ -208,7 +214,11 @@ Read events with a cursor or a small `--events` count; logs are long.
|
|
|
208
214
|
- `ab answer <slug> [text]` — answer an open escalation with guidance; omit the
|
|
209
215
|
text for a bare retry. `--dismiss` retires cited review findings,
|
|
210
216
|
`--review-round-ceiling <n>` raises the round limit, `--revise-spec <file>`
|
|
211
|
-
resolves with a revised spec
|
|
217
|
+
resolves with a revised spec; `--revise-spec-from-ticket` imports an amended ticket.
|
|
218
|
+
Idle collecting or verification-failed nodes need no escalation and recollect
|
|
219
|
+
for verification on the same head; children and contributions remain intact.
|
|
220
|
+
Active work, pause, pending controls and landing intent refuse revision. Leaves
|
|
221
|
+
require an escalation and restart from plan. Run `ab help answer` for the full menu.
|
|
212
222
|
- `ab pause <slug>` / `ab resume <slug>`; `ab pause --all` / `ab resume --all`
|
|
213
223
|
hold and release the whole repository. Pause immediately interrupts live agent
|
|
214
224
|
sessions and acknowledges after they stop. Resume continues the same native
|
|
@@ -305,7 +315,10 @@ that does the job, and say what you are doing before you do it:
|
|
|
305
315
|
- `builds.control` — pause, resume, abort, or discard a build. `abort` and
|
|
306
316
|
`discard` are destructive to in-flight work.
|
|
307
317
|
- `builds.answer` — answer an open escalation: guidance text, a retry, a
|
|
308
|
-
review-round ceiling, or a revise-spec resolution.
|
|
318
|
+
review-round ceiling, or a revise-spec resolution. Eligible idle collecting or
|
|
319
|
+
verification-failed nodes accept body/ticket spec revision without an escalation;
|
|
320
|
+
the caller supplies the amended body for ticket origin. The node recollects and
|
|
321
|
+
verifies; leaves require an escalation and restart from plan.
|
|
309
322
|
- `tickets.list`, `tickets.get` — read the ticket queue and one ticket.
|
|
310
323
|
- `tickets.create` — file a new ticket from a conversation.
|
|
311
324
|
- `tickets.update`, `tickets.block`, `tickets.unblock` — edit fields and
|
|
@@ -334,6 +347,7 @@ outcomes or self-healing failures.
|
|
|
334
347
|
|
|
335
348
|
Treat every default-watch record as a call to act:
|
|
336
349
|
|
|
350
|
+
- `integration.verification-failed`: inspect the failed steps, verified head and parent, then recheck current status. If the node still needs that repair, file a repair child targeting it. Each current failed cycle reports once; recovery does not backfill superseded failures. The node may have advanced after notification.
|
|
337
351
|
- `escalation.raised`: inspect the question and evidence, then resolve it using
|
|
338
352
|
the shared rules.
|
|
339
353
|
- `build.consent-ready`: inspect the one consent queue, then land or hold the
|
|
@@ -343,6 +357,20 @@ Treat every default-watch record as a call to act:
|
|
|
343
357
|
forge outcome. Consent and hold decisions use only `build.consent-ready`.
|
|
344
358
|
- Harvest escalation or recovery exhaustion: inspect harvest status and resolve
|
|
345
359
|
the reported blocker.
|
|
360
|
+
- Automatic upgrade failure: inspect repository status for the target, provenance
|
|
361
|
+
and reason, including a rejected protocol-write preflight. The running generation stays active; the same failed input is
|
|
362
|
+
suppressed until target or selected-store compatibility evidence changes or a fresh operator launch. Report
|
|
363
|
+
launcher-contract changes or disabled automatic upgrades as manual restart
|
|
364
|
+
needs. Agents still never manage the process.
|
|
365
|
+
- Automatic runtime rollback: repository status names the failed and restored
|
|
366
|
+
runtimes and effective hold. Three failed exits within ten minutes of takeover
|
|
367
|
+
restore one previous cached runtime; preflight failures do not count. The failed
|
|
368
|
+
target stays held despite store compatibility changes, resolution errors or
|
|
369
|
+
upgrade opt-out. A different successfully resolved target or a fresh operator
|
|
370
|
+
launch clears the effective hold. Existing phases keep their leases and continue
|
|
371
|
+
on the restored runtime at their next boundary; unreadable decisive facts defer
|
|
372
|
+
with attention. Report the evidence to the operator; agents never restart the
|
|
373
|
+
dispatcher.
|
|
346
374
|
- Dispatcher loss, abnormal stop, restart-required reload, rejected config, or
|
|
347
375
|
persistent tick failure: diagnose through repository status and report the
|
|
348
376
|
condition to the operator. Repository read failures fail the watch tick and
|
|
@@ -386,6 +414,26 @@ for the exceptions above.
|
|
|
386
414
|
|
|
387
415
|
### Boundaries
|
|
388
416
|
|
|
417
|
+
- Automatic generation handoff is product behavior, not agent process authority.
|
|
418
|
+
Passing preflight permits draining when the selected store can be shared; unknown
|
|
419
|
+
compatibility chooses cutover. Rejected protocol writes preserve the predecessor.
|
|
420
|
+
Old local and remote executions retain leases while the successor owns repository work.
|
|
421
|
+
At completed phase boundaries they durably request relaunch when the accepted
|
|
422
|
+
target differs; the current owner resumes them on its immutable runtime without
|
|
423
|
+
spending failure budgets or raising attention. Remote guests detach independently
|
|
424
|
+
of local retirement, continue heartbeats, and refresh their archive on re-attach.
|
|
425
|
+
Their captured authorization survives predecessor exit and late attachment.
|
|
426
|
+
Cached registry runtimes resolve and cache their own version’s validated release
|
|
427
|
+
asset on first guest use, so local launch requires no GitHub fetch.
|
|
428
|
+
Source runtimes deliver exact packed code. Remaining local sessions suspend at the policy deadline and resume natively where
|
|
429
|
+
eligible, with reasoned fresh fallback otherwise. Harvest/provisioning work joins
|
|
430
|
+
before repository authority transfers.
|
|
431
|
+
|
|
432
|
+
Local harvest suspends durably before repository lease release on handoff or
|
|
433
|
+
clean stop. The next generation resumes eligible native sessions with fresh
|
|
434
|
+
logical credentials, or records a reasoned `harvest.session.resume-fallback`
|
|
435
|
+
and starts fresh. Orderly suspension spends no recovery attempt; real
|
|
436
|
+
crashes retain recovery accounting.
|
|
389
437
|
- Never start, restart, or stop a dispatcher: no `ab dispatch` in any mode,
|
|
390
438
|
and no dispatcher process-management commands. This applies when the
|
|
391
439
|
dispatcher is lost, stopped, absent, or failing repeatedly. Its lease,
|
|
@@ -428,14 +476,14 @@ before retrying the node cycle.
|
|
|
428
476
|
|
|
429
477
|
Watch for decisions and conflicts with `ab watch --json`; save its opaque cursor
|
|
430
478
|
and resume with `ab watch --since <cursor> --json`. Default attention includes
|
|
431
|
-
node landings, node item conflicts, conflicted leaf replays and derived
|
|
479
|
+
failed node verification (`integration.verification-failed`), node landings, node item conflicts, conflicted leaf replays and derived
|
|
432
480
|
`build.consent-ready` observations, including already-ready landings on first
|
|
433
481
|
repository-wide discovery. Readiness is identified by its durable
|
|
434
482
|
entry position: resuming suppresses the same episode, while a new candidate or
|
|
435
483
|
exit/re-entry can notify again. Explicit `--event` globs remain event-only.
|
|
436
484
|
Use `ab wait --for consent --for node-landed --for restack-conflicted --json`
|
|
437
485
|
for one wake; state waits return immediately when already satisfied. `--for
|
|
438
|
-
attention` also includes consent readiness, janitor failure attention and landing/conflict attention.
|
|
486
|
+
attention` also includes current failed node verification, consent readiness, janitor failure attention and landing/conflict attention.
|
|
439
487
|
Resume event backlogs with `--since <cursor>`; keep handling emitted records
|
|
440
488
|
before interpreting terminal completion.
|
|
441
489
|
|
|
@@ -473,6 +521,28 @@ ordered by descending count then build name; repository requests are unattribute
|
|
|
473
521
|
Repository status names a hotspot only when one build makes at least two requests
|
|
474
522
|
and more than half of attributed requests. Telemetry never controls workflow.
|
|
475
523
|
|
|
524
|
+
GitHub shares in-flight and completed PR, branch/ref and comparison observations
|
|
525
|
+
across builds within one dispatcher tick. Opened nodes prime their tips and
|
|
526
|
+
commit distance with at most two reads: PR plus comparison, or parent branch
|
|
527
|
+
plus reversed comparison without a PR. Priming is best-effort: failures add a
|
|
528
|
+
diagnostic and ordinary parent/target observations continue, so a deleted parent
|
|
529
|
+
can still be replaced. Forge cooldowns and rate limits retain their gates.
|
|
530
|
+
Each admitted poll revalidates mutable resources
|
|
531
|
+
using exact-resource ETags; authenticated 304s spare the REST primary quota.
|
|
532
|
+
Adapter caches are bounded and restart/eviction falls back to fresh reads.
|
|
533
|
+
Writes, including Git publication and rewrites, invalidate observations before
|
|
534
|
+
attempting the mutation so acknowledgement reads remain fresh. Leaf PR polling
|
|
535
|
+
keeps its existing cadence. Readiness and landing inspections remain fresh.
|
|
536
|
+
|
|
537
|
+
For node cadence, durable wakes, restart behavior and CLI evidence, see
|
|
538
|
+
[node polling and status](../ab-guide/references/integration-tree.md#polling-and-status).
|
|
539
|
+
|
|
540
|
+
The total includes all attempted requests. Optional `restPrimary`,
|
|
541
|
+
`restNotModified` and `graphql` counts distinguish REST responses charged to the
|
|
542
|
+
primary quota, REST 304s and GraphQL calls. Transport failures and historical or
|
|
543
|
+
legacy observations can remain unclassified; absent fields never imply zero.
|
|
544
|
+
Shared requests are attributed to their first requester; cache hits count zero.
|
|
545
|
+
|
|
476
546
|
## Intentional node staleness
|
|
477
547
|
|
|
478
548
|
An open collecting node may intentionally trail its parent. Parent movement is
|
package/skills/spec/SKILL.md
CHANGED
|
@@ -8,13 +8,32 @@ description: Design a feature spec-first through conversation, or flesh out an e
|
|
|
8
8
|
The conversational surface over the complete
|
|
9
9
|
[spec standard](../ab-guide/references/spec-standard.md) installed with
|
|
10
10
|
`ab-guide` — read it first. It defines "buildable": what and why but never how,
|
|
11
|
-
verifiable acceptance criteria, explicit out-of-scope, and evidence
|
|
11
|
+
verifiable acceptance criteria, explicit out-of-scope, and evidence, plus how
|
|
12
|
+
to size work and where to split it. This skill
|
|
12
13
|
runs *before* a build exists, so it takes a ticket, not a build slug — and
|
|
13
14
|
unlike the phase skills, it is a conversation with a human, not an autonomous
|
|
14
15
|
session.
|
|
15
16
|
|
|
16
17
|
## Node tickets and targets
|
|
17
18
|
|
|
19
|
+
Write a node ticket as a **charter**: the integration goal, checkable completion
|
|
20
|
+
conditions for the whole, and its destination and landing expectations under the
|
|
21
|
+
repository's effective policy. Put evolving feature specifics in child tickets.
|
|
22
|
+
The charter still follows all four parts of the spec standard: what and why,
|
|
23
|
+
verifiable acceptance criteria, out of scope, and evidence.
|
|
24
|
+
|
|
25
|
+
For example: “Integrate a coherent account-management flow so users can manage
|
|
26
|
+
their account in one place. Done means the child-delivered account settings and
|
|
27
|
+
account closure flows work together and pass integration verification. Land the
|
|
28
|
+
complete flow into its parent under the configured landing policy.” Record the
|
|
29
|
+
scope exclusions and supporting evidence alongside these criteria; describe each
|
|
30
|
+
flow's detailed requirements in its child spec.
|
|
31
|
+
|
|
32
|
+
A charter can evolve while the node is open. See
|
|
33
|
+
[iterating inside a node](../ab-guide/references/integration-tree.md#iterating-inside-a-node)
|
|
34
|
+
for adding children, hand-pushed tweaks, explicit charter revisions, and what
|
|
35
|
+
verification judges each against.
|
|
36
|
+
|
|
18
37
|
For node lifecycle, target validation and source-specific storage, read
|
|
19
38
|
[nodes and targets](../ab-guide/references/integration-tree.md). When filing
|
|
20
39
|
related work, follow the shared
|
|
@@ -31,9 +50,12 @@ ab ticket show <id> --json
|
|
|
31
50
|
ab ticket tree --json
|
|
32
51
|
```
|
|
33
52
|
|
|
34
|
-
Whenever grooming produces more than one ticket for a feature,
|
|
35
|
-
|
|
36
|
-
|
|
53
|
+
Whenever grooming produces more than one ticket for a feature, first confirm
|
|
54
|
+
the split is warranted under the standard's
|
|
55
|
+
[sizing and splitting](../ab-guide/references/spec-standard.md#sizing-and-splitting)
|
|
56
|
+
guidance, then explicitly choose root or a node before filing,
|
|
57
|
+
including when fleshing out an existing ticket splits it into several tickets.
|
|
58
|
+
Consult the shared destination criteria and read
|
|
37
59
|
the repository's effective landing policy in `autobuild.toml`; explain the actual
|
|
38
60
|
landing and consent flow to the human in plain terms. Ask the human when the
|
|
39
61
|
choice is unclear from grooming. Root is valid when each ticket can ship alone.
|
|
@@ -61,6 +83,11 @@ in order, but as a conversation, not a form:
|
|
|
61
83
|
conversation in what actually exists.
|
|
62
84
|
2. **Acceptance criteria.** Propose them yourself from the discussion; let
|
|
63
85
|
the user correct. Each must be checkable by a reviewer or a verify step.
|
|
86
|
+
If the criteria fall into separate groups, apply
|
|
87
|
+
[sizing and splitting](../ab-guide/references/spec-standard.md#sizing-and-splitting)
|
|
88
|
+
before treating the work as several tickets: default to one larger ticket,
|
|
89
|
+
and when a split is warranted, propose the seams and the blocker graph to
|
|
90
|
+
the user with the reason for each cut.
|
|
64
91
|
3. **Out of scope.** Ask what adjacent work is explicitly excluded. Propose
|
|
65
92
|
candidates — the tempting expansions you noticed while reading the code.
|
|
66
93
|
4. **Evidence.** Link what exists: the error rates, the user reports, the
|
|
@@ -98,7 +125,7 @@ placement question. Never assume the source default is non-ready.
|
|
|
98
125
|
|
|
99
126
|
For a dependency chain explicitly chosen to ship together under a node, create
|
|
100
127
|
in dependency order and obtain each new id from the command's complete JSON
|
|
101
|
-
result. Write a spec-standard node
|
|
128
|
+
result. Write a spec-standard node charter in `integration.md` as well as the child
|
|
102
129
|
specs. This example assumes the repository's triage state is `Triage`, its ready
|
|
103
130
|
state is `Ready`, and the human requested ready placement for the whole set.
|
|
104
131
|
Use the repository's actual states; if final placement is non-ready, leave the
|
|
@@ -231,6 +258,9 @@ repository, report that rather than waiting on builds that cannot start.
|
|
|
231
258
|
|
|
232
259
|
## Rules
|
|
233
260
|
|
|
261
|
+
- **Fewer, larger tickets.** Split only when sizing calls for it, cut at
|
|
262
|
+
seams, and keep the blocker graph wide so independent tickets build
|
|
263
|
+
together.
|
|
234
264
|
- The spec says **what and why, never how.** An exported, attached `design`
|
|
235
265
|
asset is a contract on observable visual and reference outcomes — layout,
|
|
236
266
|
content, states, copy, look — that plan, review, and verify judge against;
|
package/skills/tickets/SKILL.md
CHANGED
|
@@ -11,6 +11,25 @@ content and blocker relationships. The default file source needs no secret.
|
|
|
11
11
|
|
|
12
12
|
## Node tickets and targets
|
|
13
13
|
|
|
14
|
+
Use a spec-standard charter for the node's integration goal, whole-level
|
|
15
|
+
completion and policy-controlled landing; put feature specifics in children.
|
|
16
|
+
While the node is open, iterate by adding spec-standard children targeting its
|
|
17
|
+
ticket id, pushing small maintainer-authorized tweaks to its recorded branch
|
|
18
|
+
with meaningful intent in commit messages, or explicitly revising its charter.
|
|
19
|
+
Node verification judges ordinary changes against the current event-authorized
|
|
20
|
+
charter or the introducing child's spec through the provenance mapping. Owned
|
|
21
|
+
hand-pushed commit messages authorize tweaks, judged for quality and consistency;
|
|
22
|
+
a missing covering spec alone is not a failure.
|
|
23
|
+
|
|
24
|
+
A ticket edit alone does not revise the active build. Use
|
|
25
|
+
`ab answer <node> --revise-spec replacement.md` or
|
|
26
|
+
`ab answer <node> --revise-spec-from-ticket`; children keep their specs, claims
|
|
27
|
+
and targets while the node recollects and verifies the new revision, including
|
|
28
|
+
on the same head after failure. See
|
|
29
|
+
[iterating inside a node](../ab-guide/references/integration-tree.md#iterating-inside-a-node)
|
|
30
|
+
and [revision restrictions](../ab-guide/references/integration-tree.md#operator-node-spec-revisions).
|
|
31
|
+
Open children keep the node incomplete; completed nodes close admission.
|
|
32
|
+
|
|
14
33
|
For node lifecycle, target validation and source-specific storage, read
|
|
15
34
|
[nodes and targets](../ab-guide/references/integration-tree.md). When filing
|
|
16
35
|
related work, follow the shared
|