@defrex/autobuild 1.0.0-beta.3 → 1.0.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.
Files changed (168) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +362 -56
  3. package/bin/ab-dispatch-generation.ts +93 -0
  4. package/docs/agent-runtimes.md +157 -0
  5. package/docs/answering-blocked-builds.md +21 -3
  6. package/docs/architecture.md +166 -7
  7. package/docs/build-store.md +123 -0
  8. package/docs/builds.md +82 -0
  9. package/docs/cli.md +48 -0
  10. package/docs/configuration-overview.md +93 -0
  11. package/docs/configuration.md +1778 -188
  12. package/docs/dispatcher-hosting.md +115 -0
  13. package/docs/dispatcher.md +59 -0
  14. package/docs/forges.md +121 -0
  15. package/docs/getting-started.md +60 -0
  16. package/docs/glossary.md +60 -0
  17. package/docs/hosted-service.md +2 -2
  18. package/docs/intake.md +48 -0
  19. package/docs/integration-overview.md +81 -0
  20. package/docs/integration-tree.md +87 -2
  21. package/docs/integration.md +54 -0
  22. package/docs/operating.md +114 -0
  23. package/docs/operator-api.md +64 -11
  24. package/docs/operator-surfaces.md +90 -0
  25. package/docs/overview.md +49 -0
  26. package/docs/plugin-authoring.md +426 -0
  27. package/docs/remote-store-protocol.md +12 -9
  28. package/docs/restacking.md +4 -1
  29. package/docs/seams.md +66 -0
  30. package/docs/setup.md +28 -6
  31. package/docs/skills.md +119 -0
  32. package/docs/spec-standard.md +23 -5
  33. package/docs/ticket-sources.md +132 -0
  34. package/docs/tickets.md +69 -0
  35. package/docs/troubleshooting.md +111 -0
  36. package/docs/upgrading.md +50 -0
  37. package/docs/verification.md +146 -0
  38. package/docs/website.md +47 -5
  39. package/docs/workspaces.md +152 -0
  40. package/package.json +5 -4
  41. package/packages/core/src/cli/artifact.ts +5 -4
  42. package/packages/core/src/cli/attention.ts +2 -0
  43. package/packages/core/src/cli/binary-direct.ts +190 -0
  44. package/packages/core/src/cli/binary-lifecycle.ts +46 -0
  45. package/packages/core/src/cli/binary.ts +24 -210
  46. package/packages/core/src/cli/build-control.ts +105 -2
  47. package/packages/core/src/cli/context.ts +41 -1
  48. package/packages/core/src/cli/dashboard/hand-pushed.ts +24 -0
  49. package/packages/core/src/cli/dashboard/handoff.ts +64 -0
  50. package/packages/core/src/cli/dashboard/integration-detail.ts +3 -0
  51. package/packages/core/src/cli/dashboard/model.ts +34 -10
  52. package/packages/core/src/cli/dashboard/render.ts +24 -2
  53. package/packages/core/src/cli/dashboard/rollback.ts +30 -0
  54. package/packages/core/src/cli/dispatch-args.ts +53 -0
  55. package/packages/core/src/cli/dispatch-crash-budget.ts +15 -0
  56. package/packages/core/src/cli/dispatch-frontend.ts +52 -5
  57. package/packages/core/src/cli/dispatch-handoff.ts +276 -0
  58. package/packages/core/src/cli/dispatch-launch-contract.ts +170 -0
  59. package/packages/core/src/cli/dispatch-launcher.ts +580 -0
  60. package/packages/core/src/cli/dispatch-parent-watch.ts +44 -0
  61. package/packages/core/src/cli/dispatch-preflight.ts +272 -0
  62. package/packages/core/src/cli/dispatch-presentation-job.ts +46 -0
  63. package/packages/core/src/cli/dispatch-presentation-ownership.ts +9 -0
  64. package/packages/core/src/cli/dispatch-process.ts +22 -90
  65. package/packages/core/src/cli/dispatch-readiness.ts +47 -0
  66. package/packages/core/src/cli/dispatch-repository-feed.ts +5 -1
  67. package/packages/core/src/cli/dispatch-runtime-cache.ts +522 -0
  68. package/packages/core/src/cli/dispatch-runtime-dependencies.ts +291 -0
  69. package/packages/core/src/cli/dispatch-runtime-use.ts +336 -0
  70. package/packages/core/src/cli/dispatch-upgrade-controller.ts +221 -0
  71. package/packages/core/src/cli/dispatch-upgrade-install.ts +258 -0
  72. package/packages/core/src/cli/dispatch-upgrade-source.ts +309 -0
  73. package/packages/core/src/cli/dispatch-upgrade-target.ts +190 -0
  74. package/packages/core/src/cli/dispatch.ts +604 -60
  75. package/packages/core/src/cli/dispatcher-liveness.ts +1 -1
  76. package/packages/core/src/cli/env.ts +1 -1
  77. package/packages/core/src/cli/harvest.ts +28 -11
  78. package/packages/core/src/cli/help.ts +10 -5
  79. package/packages/core/src/cli/installation.ts +5 -3
  80. package/packages/core/src/cli/main-checkout.ts +59 -0
  81. package/packages/core/src/cli/main.ts +15 -45
  82. package/packages/core/src/cli/node-verification-provenance.ts +97 -0
  83. package/packages/core/src/cli/repo-state.ts +3 -58
  84. package/packages/core/src/cli/repository-status.ts +67 -3
  85. package/packages/core/src/cli/runtime-spawn.ts +16 -0
  86. package/packages/core/src/cli/status.ts +57 -3
  87. package/packages/core/src/cli/upgrade-followup.ts +25 -0
  88. package/packages/core/src/cli/wait.ts +3 -0
  89. package/packages/core/src/cli/watch.ts +7 -0
  90. package/packages/core/src/config/landing.ts +8 -0
  91. package/packages/core/src/config/live.ts +1 -0
  92. package/packages/core/src/config/reference-metadata.ts +31 -0
  93. package/packages/core/src/config/reference.ts +342 -0
  94. package/packages/core/src/config/roles.ts +1 -1
  95. package/packages/core/src/config/schema.ts +352 -10
  96. package/packages/core/src/distribution-packaging.ts +116 -0
  97. package/packages/core/src/events/catalog.ts +6 -0
  98. package/packages/core/src/events/payloads.ts +53 -9
  99. package/packages/core/src/events/policy.ts +25 -0
  100. package/packages/core/src/events/repository.ts +184 -4
  101. package/packages/core/src/events/runtime.ts +16 -0
  102. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +2515 -78
  103. package/packages/core/src/kernel/dispatch-drain-recovery.ts +121 -0
  104. package/packages/core/src/kernel/dispatch-status.ts +4 -2
  105. package/packages/core/src/kernel/dispatch-upgrade.ts +171 -0
  106. package/packages/core/src/kernel/dispatcher-liveness.ts +7 -0
  107. package/packages/core/src/kernel/generators/repository-journals.ts +82 -0
  108. package/packages/core/src/kernel/guarded-forge.ts +1 -1
  109. package/packages/core/src/kernel/harvest.ts +98 -4
  110. package/packages/core/src/kernel/integration-attention.ts +20 -0
  111. package/packages/core/src/kernel/integration-state.ts +80 -11
  112. package/packages/core/src/kernel/landing-readiness.ts +6 -1
  113. package/packages/core/src/kernel/mixed-version.ts +34 -0
  114. package/packages/core/src/kernel/node-polling.ts +160 -0
  115. package/packages/core/src/kernel/read-facts.ts +40 -5
  116. package/packages/core/src/kernel/reducer-registry.ts +3 -0
  117. package/packages/core/src/kernel/reducer.ts +75 -14
  118. package/packages/core/src/kernel/service-facts.ts +11 -4
  119. package/packages/core/src/ontology.ts +2 -2
  120. package/packages/core/src/open-map.ts +3 -1
  121. package/packages/core/src/operator/presentation.ts +7 -0
  122. package/packages/core/src/operator/query.ts +6 -2
  123. package/packages/core/src/operator/registry.ts +1 -1
  124. package/packages/core/src/plugins/load.ts +4 -1
  125. package/packages/core/src/plugins/runtime-snapshot.ts +128 -0
  126. package/packages/core/src/ports/forge/contract.ts +29 -0
  127. package/packages/core/src/ports/forge/github.ts +189 -61
  128. package/packages/core/src/ports/forge-failure.ts +1 -0
  129. package/packages/core/src/ports/forge-telemetry.ts +3 -0
  130. package/packages/core/src/ports/runner/session-env.ts +1 -0
  131. package/packages/core/src/ports/types.ts +10 -0
  132. package/packages/core/src/ports/workspace/distribution-archive.ts +22 -149
  133. package/packages/core/src/ports/workspace/distribution-release.ts +56 -0
  134. package/packages/core/src/ports/workspace/git-worktree.ts +2 -1
  135. package/packages/core/src/ports/workspace/local-build-execution.ts +37 -17
  136. package/packages/core/src/processes/build-child-exit.ts +5 -26
  137. package/packages/core/src/processes/build-runner.ts +81 -11
  138. package/packages/core/src/processes/dispatcher.ts +254 -23
  139. package/packages/core/src/processes/execution-no-progress.ts +6 -0
  140. package/packages/core/src/processes/execution-relaunch.ts +30 -0
  141. package/packages/core/src/processes/execution-settlement.ts +16 -7
  142. package/packages/core/src/processes/harvest-runner.ts +328 -292
  143. package/packages/core/src/processes/process-group-reaper.ts +17 -10
  144. package/packages/core/src/runtime-identity.ts +22 -3
  145. package/packages/core/src/store/contract.ts +153 -0
  146. package/packages/core/src/store/local/store.ts +197 -72
  147. package/packages/core/src/store/reduced-reads.ts +8 -0
  148. package/packages/core/src/store/reducer-value-shapes.json +5783 -3305
  149. package/packages/core/src/store/remote/client.ts +43 -0
  150. package/packages/core/src/store/repo-state-events.ts +20 -3
  151. package/packages/core/src/store/types.ts +7 -0
  152. package/skills/finalize/SKILL.md +3 -1
  153. package/skills/guide/SKILL.md +273 -48
  154. package/skills/guide/references/integration-tree.md +87 -2
  155. package/skills/guide/references/operator-api.md +71 -14
  156. package/skills/guide/references/plugin-authoring.md +231 -266
  157. package/skills/guide/references/remote-store-protocol.md +12 -9
  158. package/skills/guide/references/restacking.md +4 -1
  159. package/skills/guide/references/setup.md +28 -6
  160. package/skills/guide/references/spec-standard.md +23 -5
  161. package/skills/harvest/SKILL.md +4 -0
  162. package/skills/harvest-review/SKILL.md +4 -0
  163. package/skills/implement/SKILL.md +4 -2
  164. package/skills/operate/SKILL.md +104 -35
  165. package/skills/plan/SKILL.md +12 -4
  166. package/skills/spec/SKILL.md +20 -2
  167. package/skills/tickets/SKILL.md +20 -1
  168. package/templates/hosted-service/package.json +2 -2
@@ -62,7 +62,7 @@ headers, or available backend.
62
62
  `Date.toISOString()` form, for example `2026-07-15T12:00:00.000Z`.
63
63
  - Event sequence numbers and artifact revisions are integers assigned by the
64
64
  server. Clients must not assign either except for the negative deposit
65
- placeholders described in [Atomic deposits](#7-atomic-deposits).
65
+ placeholders described in [Atomic deposits](#8-atomic-deposits).
66
66
  - Optional object members are omitted, not represented as `null`, unless a
67
67
  response below explicitly specifies JSON `null`.
68
68
  - The server owns durability. Events and artifact metadata visible in a
@@ -144,8 +144,8 @@ An actor is exactly one of:
144
144
 
145
145
  `role`, `session`, `user`, and `source` are nonempty strings. A human actor may
146
146
  carry an optional `via` marker naming the delegate that performed the write on
147
- the person's behalf: `{ "kind": "session", "id": nonempty }` (an operator's
148
- orchestrator session) or `{ "kind": "mcp", "client": nonempty }` (an MCP
147
+ the person's behalf: `{ "kind": "session", "id": nonempty }` (a human account's
148
+ operator-agent session) or `{ "kind": "mcp", "client": nonempty }` (an MCP
149
149
  client). `via` is valid only on `human` actors and only on build and
150
150
  repository events — session events are the delegate's own log — and a `via`
151
151
  key on any other actor variant is a validation failure. These are the
@@ -497,7 +497,7 @@ without a journal record, or a repository without builds.
497
497
  | `getRepo` | `GET /repos/{repo}` | none | `200` + `RepositoryRecord`; absent is `404` (the shipped client maps this to `null`) |
498
498
  | `appendRepo` | `POST /repos/{repo}/events` | event write | `201` + repository event envelope |
499
499
  | `getRepoEvents` | `GET /repos/{repo}/events?since={n}&wait={s}` | optional `since` query value, parsed as in section 3; absence defaults to `0`. Optional `wait` in whole seconds, per the event-wait rules of section 3 | `200` + envelopes with `seq >` parsed `since`, in increasing sequence order |
500
- | `getRepoStateEvents` | `GET /repos/{repo}/state-events` | none | `200` + the bounded repository-journal subset (AUT-489): every durable event type (`harvest.*`, `orchestrator.sandbox.*`, the three dispatcher setting types) plus, when the journal has one, the tail from the latest `dispatcher.run-started`, in increasing sequence order; served inside the repository-existence gate like `GET events`, so an unknown repository is `404` |
500
+ | `getRepoStateEvents` | `GET /repos/{repo}/state-events` | none | `200` + the bounded repository-journal subset (AUT-489): every durable event type (`harvest.*`, `orchestrator.sandbox.*`, the three dispatcher setting types, and cross-generation handoff correlation facts: target-prepared, yield-requested, upgrade-failed, handoff-started, terminal-released, takeover, drain-deadline, drain-settled and handoff-completed) plus, when the journal has one, the tail from the latest `dispatcher.run-started`, in increasing sequence order; served inside the repository-existence gate like `GET events`, so an unknown repository is `404` |
501
501
  | `getReducerSnapshot` (repo scope) | `GET /repos/{repo}/snapshots/{reducer}?version={n}` | required `version` query value, a positive integer; `reducer` is a registry name (`^[A-Za-z][A-Za-z0-9._-]{0,63}$`) | `200` + `{"version", "cursor", "state"}` or `200 null` when absent, written by another reducer version, ahead of the journal's tail, or the repository has no journal record; an unknown repository is `404`, which the shipped client also maps to `null` |
502
502
  | `putReducerSnapshot` (repo scope) | `PUT /repos/{repo}/snapshots/{reducer}` | `{"version": int >= 1, "cursor": int >= 0, "state": JSON}`, at most 16 MiB (`413` above) | `200 {"written": boolean}`; the stored cursor never decreases, so a write at an equal or lower cursor (or an equal cursor at an equal or lower version) and one past the journal's tail answer `written: false` |
503
503
  | `appendRepoWithArtifacts` | `POST /repos/{repo}/deposits` | atomic deposit request | `201` + `{event, artifacts}` using repository shapes |
@@ -688,7 +688,7 @@ authority:
688
688
  ## 5. Operator-session operations
689
689
 
690
690
  Operator sessions are a third resource kind: durable orchestrator-conversation
691
- state keyed by repository and operator. They are hosted-only — local installs
691
+ state keyed by repository and session owner (the human account in `operator`). They are hosted-only — local installs
692
692
  interact through the CLI and dashboard and never create one — but the resource
693
693
  contract is uniform, and a conforming server implements it the same way it
694
694
  implements the repository journal. A session record is:
@@ -698,7 +698,7 @@ implements the repository journal. A session record is:
698
698
  {
699
699
  "id": "os_9f2c…", // server-assigned, `os_`-prefixed
700
700
  "repo": "acme/autobuild",
701
- "operator": "alice", // trimmed nonblank operator identity
701
+ "operator": "alice", // trimmed nonblank session-owner identity
702
702
  "title": "fix the login flow", // optional
703
703
  "createdAt": "2026-07-15T12:00:00.000Z",
704
704
  "updatedAt": "2026-07-15T12:03:00.000Z"
@@ -707,13 +707,13 @@ implements the repository journal. A session record is:
707
707
 
708
708
  Creating a session makes the record and its first event visible together: the
709
709
  record's creation atomically appends a `session.created` event as sequence 1
710
- with the operator as a human actor. The session event catalog is closed and
710
+ with the session owner as a `human` actor. The session event catalog is closed and
711
711
  separate from the build and repository catalogs (`session.created`,
712
712
  `message.posted`, `session.wake-set`, `turn.started`, `turn.suspended`,
713
713
  `turn.resumed`, `approval.requested`, `approval.answered`, `turn.completed`,
714
714
  `turn.failed`, `session.archived`), with its own per-session sequence starting
715
715
  at 1 and its own actor-per-type rules. A `via` member is never valid on a
716
- session event: session events are the delegate's own log, and the operator's
716
+ session event: session events are the delegate's own log, and the session owner's
717
717
  identity is already the actor.
718
718
 
719
719
  | BuildStore operation | HTTP route | Request | Success |
@@ -967,7 +967,7 @@ project; phase CLI scoped handles still constrain build and session access.
967
967
  Authenticated raw writes cannot claim a delegated `via`. Owner-project
968
968
  credentials also use their recorded creator for operator writes. Dispatcher
969
969
  credentials have an immutable server-side purpose: raw store and tickets only,
970
- never human operator controls. The hosted dispatcher issues one per project
970
+ never operator controls. The hosted dispatcher issues one per project
971
971
  invocation, expiring at its configured TTL, and does not revoke at tick return
972
972
  for dispatcher plumbing. Spawned builds receive independent delegated grants. Shared content-addressed blobs
973
973
  remain deduplicated; this is resource authorization, not blob partitioning.
@@ -1006,6 +1006,9 @@ Build grants live until 60 seconds after durable build termination. Phase grants
1006
1006
  also retire 60 seconds after their own session ends, whichever comes first.
1007
1007
  Harvest grants retire 60 seconds after their run stops or their authorized
1008
1008
  execution ends/releases; harvest phases additionally retire on session end.
1009
+ Durable harvest suspension immediately closes the phase grant, without a grace interval.
1010
+ A resumed local harvest turn opens a new bracket and receives fresh credentials;
1011
+ the predecessor grant stays closed.
1009
1012
  The boundary is exclusive: at `end + 60_000ms` the credential is refused. This
1010
1013
  window permits final transcripts, diagnostics, deposits and stream closure.
1011
1014
  Pause/escalation of a build and lease expiry do not end authority. Active grants
@@ -33,6 +33,9 @@ need their own demand. Existing frozen transactions, including ones reserved
33
33
  before upgrade, finish first; later demand coalesces onto the latest parent.
34
34
  Leaves keep verify-entry and awaiting-landing restacks for every target.
35
35
 
36
+ For observation cadence, durable wakes and last-check evidence, see
37
+ [node polling and status](integration-tree.md#polling-and-status).
38
+
36
39
  Presence demand uses change identities, never ticket resolution alone. It follows
37
40
  only the path from the nearest proven ancestor source down to the dependent's
38
41
  actual destination, processing ancestors first. Unrelated siblings stay idle;
@@ -82,7 +85,7 @@ archives, changes and merge proofs. Lease expiry recovers the same operation,
82
85
  not a competing one. Prepared/conflicted/replayed item receipts, publication
83
86
  intent, proven replacement and settlement distinguish each recovery boundary.
84
87
  Inventory retains its sampled source boundary even while the confirmed parent
85
- boundary stays unchanged. It exposes source identities, node-owned foreign commits, active operation,
88
+ boundary stays unchanged. It exposes source identities, hand-pushed changes (node-owned foreign commits), active operation,
86
89
  conflict item and unsafe merge evidence.
87
90
 
88
91
  Only a conflicted item attaches a reconcile runner. It receives the original
@@ -115,17 +115,19 @@ exits nonzero on failure. Then:
115
115
  alternate. The runtime that launched setup and the temporary fresh-skeleton
116
116
  default do not constrain the final arrangement.
117
117
  3. Choose the ticket source and workflow states. Confirm account/team facts and
118
- required environment credentials. Configure end-to-end verification with the
119
- repository's real lifecycle and tools. When judgment is required, author a repository-owned
120
- agent-verify skill and select it from an agent verify step.
118
+ required environment credentials. Author a repository-owned acceptance-check skill and select it from an agent
119
+ verify step in every repository. An **acceptance check** is a repository-owned agent verify step that runs the built software, exercises each acceptance criterion in the spec, attaches evidence, and returns a typed verdict. Every repository must configure one. It is not a test suite and leaves no test files behind.
120
+ Wire an existing maintained end-to-end or browser test suite into an ordinary `check` step. If none exists, do not create one during setup. The acceptance check neither substitutes for nor seeds a suite.
121
121
  4. Preserve an existing `autobuild.toml` and unrelated repository choices on a
122
122
  rerun. Change only choices the maintainer approves.
123
123
  5. Commit the config, setup files, lockfiles, and installed reference changes,
124
124
  then push them to `baseBranch`. A remote sandbox clones the authoritative
125
125
  GitHub revision; it cannot acquire local-only edits.
126
126
  6. Run `ab init --validate`. Fix every named failure, review warnings and unknowns, and rerun
127
- validation. Only then use the installed grooming/ticket skills to create the
128
- first groomed Ready ticket and start `ab dispatch`.
127
+ validation. Setup ends at successful validation. Ask the human to start
128
+ `bun ab dispatch`, then open their coding agent at the repository root with
129
+ `ab-operate` loaded to specify, create, groom, and shepherd the first ticket.
130
+ The setup agent must not start dispatch itself.
129
131
 
130
132
  Validation is explicit and noninteractive. It does not dispatch, claim a
131
133
  ticket, or create build, phase, session, event, transcript, or artifact history.
@@ -222,6 +224,18 @@ requires a published release.
222
224
 
223
225
  ### Guest distribution version selection and delivery
224
226
 
227
+ Cached generations retain explicit archive provenance. A registry generation
228
+ resolves its manifest version’s GitHub release asset on first guest use, validates
229
+ version and digest, and atomically caches it separately from the host archive.
230
+ Local launch requires no GitHub fetch. Isolated and hoisted Bun installations
231
+ retain registry provenance through store-path or lock evidence. Source, Git and local package
232
+ generations deliver their exact packed code. Missing or invalid release assets
233
+ fail guest delivery and remain retryable, without falling back to packing the
234
+ registry installation.
235
+ Remote guests finish their phase before requesting relaunch; re-attachment
236
+ refreshes the archive and marker before the next runner starts. They retain
237
+ independent leases and never hold local retirement open.
238
+
225
239
  The guest's distribution version is selected by the archive source, and both
226
240
  sources agree with the running system by construction:
227
241
 
@@ -400,6 +414,14 @@ Its session instructions must preserve this contract:
400
414
 
401
415
  1. Run `ab context`. The verifier receives `.ab/spec.md`, the configured step,
402
416
  the commit range, and, after escalation is answered, `.ab/guidance.json`.
417
+ Node verify sessions also receive `nodeVerification` in the context manifest:
418
+ contribution specs and a provenance index mapping commits to the builds that
419
+ introduced them. Read those specs through the manifest's allocated paths.
420
+ Also read `handPushedCommits: [{sha, originalSha, message}]` from the manifest
421
+ and index. These hand-pushed node commit messages express maintainer-authorized
422
+ intent; judge quality and consistency, and never fail them solely for lacking
423
+ a covering spec. Other node changes are authorized when the node spec or the introducing
424
+ contribution's spec covers it; use the commit index to find that spec.
403
425
  2. Exercise each applicable acceptance criterion through the repository's real
404
426
  application lifecycle. Prefer the narrowest honest flow that catches a
405
427
  regression.
@@ -534,7 +556,7 @@ without the optional readiness capability report UNKNOWN and need an adapter
534
556
  upgrade; local Git passes these hosted-policy checks trivially.
535
557
 
536
558
  Known hard failures make `ab init --validate` exit unsuccessfully. Warnings and
537
- unknowns preserve the workspace validation result and require operator review.
559
+ unknowns preserve the workspace validation result and require your review.
538
560
  Dispatch reports known hard failures once per invocation as durable
539
561
  `dispatcher.forge-readiness-failed` repository notices without adding an admission
540
562
  gate. External orchestrators follow these through `ab watch` with no slugs or an
@@ -127,8 +127,26 @@ order.
127
127
 
128
128
  ## Immutability during a build
129
129
 
130
- The spec is the build's contract artifact (kind `spec`, revision 0). It
131
- cannot change during a build because every downstream reviewer approves
132
- conformance *to it*. A phase that discovers the spec itself is wrong raises
133
- an escalation (`ab escalate`); a human answers, the spec gets revision N+1,
134
- and the build restarts from `plan`.
130
+ The spec is the build's contract artifact (kind `spec`, revision 0).
131
+ Every downstream reviewer approves conformance to its pinned revision.
132
+ For leaves, a phase that discovers the spec itself is wrong raises an
133
+ escalation (`ab escalate`); a human answers, the spec gets revision N+1,
134
+ and the leaf restarts from `plan`.
135
+
136
+ Operators may explicitly revise an opened idle collecting node or a node blocked on failed
137
+ integration verification without an escalation. Use
138
+ `ab answer <node> --revise-spec replacement.md` or, after amending its ticket,
139
+ `ab answer <node> --revise-spec-from-ticket`. Ticket edits alone do not revise
140
+ the build. Both forms enforce the same spec standard as leaf revisions.
141
+ Each kernel `spec.revised` records the exact artifact and operator identity
142
+ (with optional transport provenance); earlier revisions remain readable.
143
+ Ticket-origin revisions re-pin assets; supplied bodies preserve asset pins.
144
+ The node recollects and verifies the new revision, including on the same head
145
+ and parent after a failed cycle. Earlier cycles remain historical evidence
146
+ and cannot block or authorize landing under the replacement. Children keep
147
+ their specs, claims and targets; contributions are not restarted.
148
+ Active verification/reconcile or writer work, restack/reparent work, pause,
149
+ pending controls, landing intent and ended PRs refuse the no-escalation path.
150
+ A concurrent state change refuses publication with a retry explanation;
151
+ uncited artifacts are inert. Leaves still require an open escalation and
152
+ restart from `plan`.
@@ -64,3 +64,7 @@ cluster and author; you never create or move tickets.
64
64
  Do not call the TicketSource, edit tracker files, dispatch a build, push, or
65
65
  infer state from your own stdout. If evidence is weak, preserve that limitation
66
66
  in acceptance criteria rather than inventing facts.
67
+
68
+ After native resumption, run `ab harvest context` again and inspect the current
69
+ authoritative artifacts and feedback before continuing. The runner gives each
70
+ continued turn fresh session credentials; never reuse a predecessor identity.
@@ -61,3 +61,7 @@ link. Mark honestly in both directions: neither re-litigate a resolved
61
61
  finding nor let a dodged one look fresh, because the kernel mechanically
62
62
  escalates a chain that persists too long, and a stalemate is the only
63
63
  thing that counter can usefully measure.
64
+
65
+ After native resumption, run `ab harvest context` again and inspect the current
66
+ authoritative artifacts and feedback before continuing. The runner gives each
67
+ continued turn fresh session credentials; never reuse a predecessor identity.
@@ -9,6 +9,8 @@ You are the implementer. The spec is the contract, the approved plan is your
9
9
  map, and your output is commits on the build branch plus deposited notes.
10
10
  You never push — the push is plumbing that happens when you finish.
11
11
 
12
+ Guidance is an external operator answer, from the operator agent or a human.
13
+
12
14
  ## Session shape
13
15
 
14
16
  1. Run `ab context`. Read the manifest path printed by the command (normally
@@ -17,7 +19,7 @@ You never push — the push is plumbing that happens when you finish.
17
19
  You get the approved spec and plan, your own prior-round notes, every verify report
18
20
  deposited so far under `.ab/verify/`, and this round's feedback when the
19
21
  round has any — at most one of `.ab/findings.json` (code-review findings), a
20
- failed verify step's report in `.ab/verify/`, or `.ab/guidance.json` (a human
22
+ failed verify step's report in `.ab/verify/`, or `.ab/guidance.json` (an
21
23
  operator's answer to the escalation that blocked this build). The manifest's
22
24
  `feedback` field names which one this round is, and is absent when the round
23
25
  carries none.
@@ -61,7 +63,7 @@ You never push — the push is plumbing that happens when you finish.
61
63
  `findings` → resolve every finding in `.ab/findings.json`; findings you
62
64
  dodge come back marked as persisting, and a chain that stays persistent
63
65
  goes to a human. `verify` → get the named step's report in `.ab/verify/`
64
- to pass. `guidance` → `.ab/guidance.json` carries a human operator's reply
66
+ to pass. `guidance` → `.ab/guidance.json` carries an operator's reply
65
67
  to the escalation that blocked this build. The escalation may have come
66
68
  from you, from the reviewer, from the kernel's code-loop stall or policy
67
69
  guards, or from the verify-attempt policy guard after a failed report.
@@ -5,16 +5,15 @@ description: Orchestrate a repository's builds - file and groom tickets, watch b
5
5
 
6
6
  # Operating the repository
7
7
 
8
- The orchestrator is a role, not a deployment. It is whichever agent is
9
- pointed at a repository to file tickets, watch builds, unblock them, answer
10
- operator questions, and drive work to merge. Any agent can take it on: a
8
+ The operator agent is whichever agent is pointed at a repository to file tickets, watch builds, unblock them, answer
9
+ human questions, and drive work to merge. Any agent can take it on: a
11
10
  coding-agent session at the repository root using the `ab` CLI (or `ab mcp`),
12
11
  or the hosted service's embedded turn runner. There is no initialization
13
12
  step — deciding to orchestrate is enough. By default, the agent that
14
13
  specified and queued work (the `ab-spec` and `ab-tickets` skills) takes the
15
14
  role for that work as soon as it is ready, unless the human opts out.
16
15
 
17
- The orchestrator is not a build phase: it never runs pipeline steps, never
16
+ The operator agent is not a build phase: it never runs pipeline steps, never
18
17
  edits the repository, and never touches a build's checkout. Its reach is the
19
18
  operator surface — the `ab` CLI, or the operator tool registry bound into a
20
19
  hosted turn.
@@ -26,7 +25,7 @@ after them apply to both.
26
25
 
27
26
  ## Running locally with the `ab` CLI
28
27
 
29
- Each command acts with the operator's authority, so say what you are doing
28
+ Each command acts with the human's authority, so say what you are doing
30
29
  before you do anything destructive.
31
30
 
32
31
  ### Resolve the local invocation first
@@ -41,7 +40,7 @@ Determine the package manager from `packageManager` and the lockfile:
41
40
  `pnpm-lock.yaml`, or `yarn.lock`. Resolve workspace context from the manifest
42
41
  declaring the dependency and the repository's package-manager configuration.
43
42
  If evidence conflicts or cannot establish the manager, diagnose and tell the
44
- operator instead of guessing.
43
+ human instead of guessing.
45
44
 
46
45
  Verify that the dependency is already installed and that its installed package
47
46
  exposes the `ab` binary you will execute. For node_modules installs, verify
@@ -68,7 +67,7 @@ Before using Yarn Classic, verify its installed local binary and check that
68
67
  command. Report a script conflict instead of executing it.
69
68
 
70
69
  These forms execute an already-installed dependency. A missing dependency,
71
- unavailable binary, or failed local execution must be reported to the operator;
70
+ unavailable binary, or failed local execution must be reported to the human;
72
71
  never hide it with global fallback or install dependencies automatically.
73
72
  Never use bare `bunx ab`, `npx ab`, `dlx`, or other registry-fetching
74
73
  variants: the registry package named `ab` is not Autobuild. Offline cache
@@ -84,8 +83,8 @@ the same resolved working directory.
84
83
  ### Watch for attention events
85
84
 
86
85
  `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
86
+ record calls for action. It reports failed node verification, build escalations, persistent janitor failures and merge decisions,
87
+ harvest escalations/recovery exhaustion, automatic upgrade failures and runtime rollbacks, rejected configuration, reloads needing
89
88
  restart, abnormal dispatcher stops/loss, ticket-source and forge degradation past reset (15 minutes
90
89
  for ticket sources without reset), and five minutes of continuous tick failures. Advertised resets
91
90
  wait for a post-reset tick to finish before requiring action; ordinary recovery
@@ -98,7 +97,7 @@ are terminal; add `--repository` for repository attention. With no slugs all
98
97
  active builds and repository attention are included. Reconcile status after
99
98
  arming because historical build attention is silently baselined.
100
99
 
101
- Add an extra monitor only for an identified need, such as an operator asking
100
+ Add an extra monitor only for an identified need, such as a human asking
102
101
  to hear when a particular build merges or an outcome triggering follow-up work.
103
102
  Scope it to named slugs and explicit `--event` globs (for example,
104
103
  `ab watch my-build --event pr.merged --json`), and retire it when that need ends.
@@ -127,7 +126,7 @@ active cause, operation, message, and expected reset. Reset times are advisory;
127
126
  recovery means reads actually succeeded. Allow the existing cooldown and retry
128
127
  behavior, investigate persistent ready-scan failures or a condition still active
129
128
  after its reset estimate, and keep watching through recovery. Empty builds do
130
- not establish idle intake; diagnose persistent trouble and report it to the operator.
129
+ not establish idle intake; diagnose persistent trouble and report it to the human.
131
130
 
132
131
  Repository records have null build and state. Handle them with repository
133
132
  status rather than build commands, keep their cursor, and re-arm. A legacy
@@ -137,6 +136,8 @@ cannot recover its earlier interval: reconcile current repository status.
137
136
  attention watch.
138
137
 
139
138
 
139
+ Runtime identity on `dispatcher.holder` describes the lease owner, independently
140
+ of the newest invocation; missing historical runtime is null.
140
141
  Check dispatcher liveness with `ab repository status --json` after a watch
141
142
  timeout or `dispatcher.lost` observation, or when dispatch appears unhealthy. Do not
142
143
  use process lists to decide whether a dispatcher owns this repository. The
@@ -152,7 +153,7 @@ read-only observation: `{repo, build:null, state:null, observation:{type:
152
153
  "dispatcher.lost", run, observedAt, leaseExpiresAt, ...identity}, cursor}`.
153
154
  It has no durable event envelope. Keep its cursor just as for event records;
154
155
  resuming it suppresses repeated loss reports for that run. Inspect repository
155
- status to diagnose the condition and report dispatcher trouble to the operator.
156
+ status to diagnose the condition and report dispatcher trouble to the human.
156
157
  Neither a loss observation nor a later retry authorizes dispatcher intervention.
157
158
 
158
159
  ### Keep watching until the work is done
@@ -191,14 +192,18 @@ Checking once is not shepherding. When you take responsibility for builds:
191
192
  (`blocked`) needs a response, not patience. A watch that exits because
192
193
  every named build is terminal still needs the step 3 status read to learn
193
194
  how each ended.
194
- 6. Report each outcome to the operator, and file or move tickets when the
195
+ 6. Report each outcome to the human, and file or move tickets when the
195
196
  outcome makes that obviously right.
196
197
 
197
198
  ### Inspect
198
199
 
199
200
  - `ab builds [--queued] [--all] [--json]` — builds and their effective status.
200
- - `ab build status <slug> [--events N]` — one build's detail and recent events.
201
- - `ab repository status` — the repository's derived status.
201
+ - `ab build status <slug> [--events N]` — one build's detail, chronological runner
202
+ attaches with runtime identity, and recent events. Historical runtime is null
203
+ in JSON and unrecorded in human output.
204
+ - `ab repository status` — the repository's derived status, including the lease
205
+ holder’s recorded runtime version, commit, and source kind/location. Historical
206
+ runtime is null in JSON and unrecorded in human output.
202
207
  - `ab artifact` — fetch one artifact's bytes.
203
208
 
204
209
  Read events with a cursor or a small `--events` count; logs are long.
@@ -208,7 +213,11 @@ Read events with a cursor or a small `--events` count; logs are long.
208
213
  - `ab answer <slug> [text]` — answer an open escalation with guidance; omit the
209
214
  text for a bare retry. `--dismiss` retires cited review findings,
210
215
  `--review-round-ceiling <n>` raises the round limit, `--revise-spec <file>`
211
- resolves with a revised spec. Run `ab help answer` for the full menu.
216
+ resolves with a revised spec; `--revise-spec-from-ticket` imports an amended ticket.
217
+ Idle collecting or verification-failed nodes need no escalation and recollect
218
+ for verification on the same head; children and contributions remain intact.
219
+ Active work, pause, pending controls and landing intent refuse revision. Leaves
220
+ require an escalation and restart from plan. Run `ab help answer` for the full menu.
212
221
  - `ab pause <slug>` / `ab resume <slug>`; `ab pause --all` / `ab resume --all`
213
222
  hold and release the whole repository. Pause immediately interrupts live agent
214
223
  sessions and acknowledges after they stop. Resume continues the same native
@@ -237,13 +246,13 @@ policy, and explain the landing flow to the human. Ask when intent is unclear.
237
246
  `ab ticket create|update|block|unblock|list|show|move|states` file, edit, and
238
247
  move tickets; the `ab-tickets` skill covers the tracker's details. Moving a
239
248
  ticket into the ready state sends it to dispatch — do that only when the
240
- ticket genuinely conforms and the operator's intent is clear.
249
+ ticket genuinely conforms and the human's intent is clear.
241
250
 
242
251
  ### What the CLI does not offer
243
252
 
244
253
  The registry has operator notes, harvest control, and `discard`, which have no
245
254
  CLI equivalent, and no bulk control beyond `pause --all` / `resume --all`. Say
246
- so rather than improvising; tell the operator, or record it with `ab observe`
255
+ so rather than improvising; tell the human, or record it with `ab observe`
247
256
  when you are inside a build. `ab mcp` mounts the same registry over MCP for
248
257
  harnesses that support it — if you have those tools, the hosted section's tool
249
258
  descriptions apply.
@@ -262,10 +271,10 @@ Each of your turns is one durable agent loop:
262
271
  - The conversation is reconstructed from durable state on every invocation.
263
272
  Nothing is held in memory between invocations; if your turn suspends and
264
273
  resumes in a fresh invocation, the model input is identical.
265
- - Your output streams as protocol parts onto the turn's stream. The operator
274
+ - Your output streams as protocol parts onto the turn's stream. The human
266
275
  sees it live in the session.
267
- - Every tool call is attributed to the session's operator — the human actor
268
- named on every write is that operator, with your session as the delegate.
276
+ - Every tool call is attributed to the session owner — the human account
277
+ named on every write is that owner, with your session as the delegate.
269
278
  Act accordingly: you are spending their authority.
270
279
  - Your tools target exactly one repository, the session's own. You never
271
280
  supply a repository argument; it is bound for you.
@@ -279,7 +288,7 @@ Your turn can stop in two ways, and both are normal:
279
288
  provider call — with the identical conversation. Never assume a turn
280
289
  died; never repeat work a checkpoint already covers.
281
290
  - **Approval.** Some tools are on the repository's approval list. Calling
282
- one suspends your turn (`cause: approval`) until the operator answers.
291
+ one suspends your turn (`cause: approval`) until the human answers.
283
292
  An `approve` answer executes the call; a `deny` answer hands you a denied
284
293
  tool output — treat it as a firm no, say so briefly, and move on. Tools
285
294
  not on the list run without pause.
@@ -299,20 +308,23 @@ Your tools are the operator registry. The read-only ones are always safe:
299
308
  - `repository.status` — the repository's derived status.
300
309
  - `harvest.status` — the observation workflow's current state.
301
310
 
302
- The mutating ones carry the operator's authority — prefer the narrowest
311
+ The mutating ones carry the human's authority — prefer the narrowest
303
312
  that does the job, and say what you are doing before you do it:
304
313
 
305
314
  - `builds.control` — pause, resume, abort, or discard a build. `abort` and
306
315
  `discard` are destructive to in-flight work.
307
316
  - `builds.answer` — answer an open escalation: guidance text, a retry, a
308
- review-round ceiling, or a revise-spec resolution.
317
+ review-round ceiling, or a revise-spec resolution. Eligible idle collecting or
318
+ verification-failed nodes accept body/ticket spec revision without an escalation;
319
+ the caller supplies the amended body for ticket origin. The node recollects and
320
+ verifies; leaves require an escalation and restart from plan.
309
321
  - `tickets.list`, `tickets.get` — read the ticket queue and one ticket.
310
322
  - `tickets.create` — file a new ticket from a conversation.
311
323
  - `tickets.update`, `tickets.block`, `tickets.unblock` — edit fields and
312
324
  blocker relations.
313
325
  - `tickets.move` — move a ticket between workflow states. Moving a ticket
314
326
  into the ready state sends it to dispatch — do that only when the ticket
315
- genuinely conforms and the operator's intent is clear.
327
+ genuinely conforms and the human's intent is clear.
316
328
  - `notes.read`, `notes.write` — the operator-notes artifact: durable,
317
329
  human-readable notes about this repository's operation. Write what the
318
330
  next turn (or the next human) will need; read it before acting on
@@ -334,18 +346,33 @@ outcomes or self-healing failures.
334
346
 
335
347
  Treat every default-watch record as a call to act:
336
348
 
349
+ - `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
350
  - `escalation.raised`: inspect the question and evidence, then resolve it using
338
351
  the shared rules.
339
352
  - `build.consent-ready`: inspect the one consent queue, then land or hold the
340
- selected candidate under the operator's policy. Unready or stale candidates
353
+ selected candidate under the human's policy. Unready or stale candidates
341
354
  do not produce this observation.
342
355
  - `build.merge-decision`: diagnose the current merge-gate deferral or unsafe
343
356
  forge outcome. Consent and hold decisions use only `build.consent-ready`.
344
357
  - Harvest escalation or recovery exhaustion: inspect harvest status and resolve
345
358
  the reported blocker.
359
+ - Automatic upgrade failure: inspect repository status for the target, provenance
360
+ and reason, including a rejected protocol-write preflight. The running generation stays active; the same failed input is
361
+ suppressed until target or selected-store compatibility evidence changes or a fresh operator launch. Report
362
+ launcher-contract changes or disabled automatic upgrades as manual restart
363
+ needs. Agents still never manage the process.
364
+ - Automatic runtime rollback: repository status names the failed and restored
365
+ runtimes and effective hold. Three failed exits within ten minutes of takeover
366
+ restore one previous cached runtime; preflight failures do not count. The failed
367
+ target stays held despite store compatibility changes, resolution errors or
368
+ upgrade opt-out. A different successfully resolved target or a fresh operator
369
+ launch clears the effective hold. Existing phases keep their leases and continue
370
+ on the restored runtime at their next boundary; unreadable decisive facts defer
371
+ with attention. Report the evidence to the operator; agents never restart the
372
+ dispatcher.
346
373
  - Dispatcher loss, abnormal stop, restart-required reload, rejected config, or
347
374
  persistent tick failure: diagnose through repository status and report the
348
- condition to the operator. Repository read failures fail the watch tick and
375
+ condition to the human. Repository read failures fail the watch tick and
349
376
  retry on the next tick, using the existing five-minute persistent-failure
350
377
  attention. For validation failures, inspect the stored tick error for reducer,
351
378
  scope, cursor, field path, and running version/commit. Never start or run a dispatcher.
@@ -361,7 +388,7 @@ These apply in both settings. Where the text below says "plain streamed text", a
361
388
 
362
389
  ### Resolve attention by default
363
390
 
364
- Make a best effort to resolve attention without operator input. Inspect the
391
+ Make a best effort to resolve attention without human input. Inspect the
365
392
  escalation, spec, code, build artifacts/events, and applicable operator notes.
366
393
  Answer questions supported by that evidence, retry when the evidence warrants
367
394
  it, and file or move tickets where that is clearly right, within the existing
@@ -371,26 +398,46 @@ or a human decision is required.
371
398
 
372
399
  ### When to escalate instead of act
373
400
 
374
- Stop and ask the operator — in plain streamed text — whenever:
401
+ Stop and ask the human — in plain streamed text — whenever:
375
402
 
376
403
  - The action is destructive and not clearly instructed (`abort`, `discard`,
377
404
  a bulk control, a repository-wide setting).
378
- - Two readings of the operator's intent diverge in cost or risk.
405
+ - Two readings of the human's intent diverge in cost or risk.
379
406
  - You would be guessing about product direction, priorities, or scope.
380
407
  - A tool refusal repeats and you cannot resolve it with the tools you have.
381
408
  - The attention event is one you cannot act on with the tools you have at all.
382
409
 
383
410
  Filing a ticket is acting — do it when the request is concrete. Default to
384
- resolving attention yourself within these boundaries; ask the operator only
411
+ resolving attention yourself within these boundaries; ask the human only
385
412
  for the exceptions above.
386
413
 
387
414
  ### Boundaries
388
415
 
416
+ - Automatic generation handoff is product behavior, not agent process authority.
417
+ Passing preflight permits draining when the selected store can be shared; unknown
418
+ compatibility chooses cutover. Rejected protocol writes preserve the predecessor.
419
+ Old local and remote executions retain leases while the successor owns repository work.
420
+ At completed phase boundaries they durably request relaunch when the accepted
421
+ target differs; the current owner resumes them on its immutable runtime without
422
+ spending failure budgets or raising attention. Remote guests detach independently
423
+ of local retirement, continue heartbeats, and refresh their archive on re-attach.
424
+ Their captured authorization survives predecessor exit and late attachment.
425
+ Cached registry runtimes resolve and cache their own version’s validated release
426
+ asset on first guest use, so local launch requires no GitHub fetch.
427
+ Source runtimes deliver exact packed code. Remaining local sessions suspend at the policy deadline and resume natively where
428
+ eligible, with reasoned fresh fallback otherwise. Harvest/provisioning work joins
429
+ before repository authority transfers.
430
+
431
+ Local harvest suspends durably before repository lease release on handoff or
432
+ clean stop. The next generation resumes eligible native sessions with fresh
433
+ logical credentials, or records a reasoned `harvest.session.resume-fallback`
434
+ and starts fresh. Orderly suspension spends no recovery attempt; real
435
+ crashes retain recovery accounting.
389
436
  - Never start, restart, or stop a dispatcher: no `ab dispatch` in any mode,
390
437
  and no dispatcher process-management commands. This applies when the
391
438
  dispatcher is lost, stopped, absent, or failing repeatedly. Its lease,
392
- process, and configuration management belong to the operator. Diagnose
393
- through repository status and report trouble to the operator; reporting
439
+ process, and configuration management belong to the maintainer. Diagnose
440
+ through repository status and report trouble to the human; reporting
394
441
  does not authorize process intervention, including on a later retry.
395
442
 
396
443
  - You never claim to have done anything outside the tools you have. If you cannot
@@ -428,14 +475,14 @@ before retrying the node cycle.
428
475
 
429
476
  Watch for decisions and conflicts with `ab watch --json`; save its opaque cursor
430
477
  and resume with `ab watch --since <cursor> --json`. Default attention includes
431
- node landings, node item conflicts, conflicted leaf replays and derived
478
+ failed node verification (`integration.verification-failed`), node landings, node item conflicts, conflicted leaf replays and derived
432
479
  `build.consent-ready` observations, including already-ready landings on first
433
480
  repository-wide discovery. Readiness is identified by its durable
434
481
  entry position: resuming suppresses the same episode, while a new candidate or
435
482
  exit/re-entry can notify again. Explicit `--event` globs remain event-only.
436
483
  Use `ab wait --for consent --for node-landed --for restack-conflicted --json`
437
484
  for one wake; state waits return immediately when already satisfied. `--for
438
- attention` also includes consent readiness, janitor failure attention and landing/conflict attention.
485
+ attention` also includes current failed node verification, consent readiness, janitor failure attention and landing/conflict attention.
439
486
  Resume event backlogs with `--since <cursor>`; keep handling emitted records
440
487
  before interpreting terminal completion.
441
488
 
@@ -473,6 +520,28 @@ ordered by descending count then build name; repository requests are unattribute
473
520
  Repository status names a hotspot only when one build makes at least two requests
474
521
  and more than half of attributed requests. Telemetry never controls workflow.
475
522
 
523
+ GitHub shares in-flight and completed PR, branch/ref and comparison observations
524
+ across builds within one dispatcher tick. Opened nodes prime their tips and
525
+ commit distance with at most two reads: PR plus comparison, or parent branch
526
+ plus reversed comparison without a PR. Priming is best-effort: failures add a
527
+ diagnostic and ordinary parent/target observations continue, so a deleted parent
528
+ can still be replaced. Forge cooldowns and rate limits retain their gates.
529
+ Each admitted poll revalidates mutable resources
530
+ using exact-resource ETags; authenticated 304s spare the REST primary quota.
531
+ Adapter caches are bounded and restart/eviction falls back to fresh reads.
532
+ Writes, including Git publication and rewrites, invalidate observations before
533
+ attempting the mutation so acknowledgement reads remain fresh. Leaf PR polling
534
+ keeps its existing cadence. Readiness and landing inspections remain fresh.
535
+
536
+ For node cadence, durable wakes, restart behavior and CLI evidence, see
537
+ [node polling and status](../ab-guide/references/integration-tree.md#polling-and-status).
538
+
539
+ The total includes all attempted requests. Optional `restPrimary`,
540
+ `restNotModified` and `graphql` counts distinguish REST responses charged to the
541
+ primary quota, REST 304s and GraphQL calls. Transport failures and historical or
542
+ legacy observations can remain unclassified; absent fields never imply zero.
543
+ Shared requests are attributed to their first requester; cache hits count zero.
544
+
476
545
  ## Intentional node staleness
477
546
 
478
547
  An open collecting node may intentionally trail its parent. Parent movement is