@defrex/autobuild 1.0.0-beta.3 → 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.
Files changed (130) hide show
  1. package/SPEC.md +317 -20
  2. package/bin/ab-dispatch-generation.ts +93 -0
  3. package/docs/answering-blocked-builds.md +21 -3
  4. package/docs/architecture.md +166 -7
  5. package/docs/configuration.md +173 -5
  6. package/docs/integration-tree.md +87 -2
  7. package/docs/integration.md +54 -0
  8. package/docs/operator-api.md +58 -5
  9. package/docs/remote-store-protocol.md +4 -1
  10. package/docs/restacking.md +4 -1
  11. package/docs/setup.md +20 -0
  12. package/docs/spec-standard.md +23 -5
  13. package/package.json +3 -3
  14. package/packages/core/src/cli/artifact.ts +5 -4
  15. package/packages/core/src/cli/attention.ts +2 -0
  16. package/packages/core/src/cli/binary-direct.ts +190 -0
  17. package/packages/core/src/cli/binary-lifecycle.ts +46 -0
  18. package/packages/core/src/cli/binary.ts +24 -210
  19. package/packages/core/src/cli/build-control.ts +105 -2
  20. package/packages/core/src/cli/context.ts +41 -1
  21. package/packages/core/src/cli/dashboard/hand-pushed.ts +24 -0
  22. package/packages/core/src/cli/dashboard/handoff.ts +64 -0
  23. package/packages/core/src/cli/dashboard/integration-detail.ts +3 -0
  24. package/packages/core/src/cli/dashboard/model.ts +34 -10
  25. package/packages/core/src/cli/dashboard/render.ts +24 -2
  26. package/packages/core/src/cli/dashboard/rollback.ts +30 -0
  27. package/packages/core/src/cli/dispatch-args.ts +53 -0
  28. package/packages/core/src/cli/dispatch-crash-budget.ts +15 -0
  29. package/packages/core/src/cli/dispatch-frontend.ts +52 -5
  30. package/packages/core/src/cli/dispatch-handoff.ts +276 -0
  31. package/packages/core/src/cli/dispatch-launch-contract.ts +170 -0
  32. package/packages/core/src/cli/dispatch-launcher.ts +580 -0
  33. package/packages/core/src/cli/dispatch-parent-watch.ts +44 -0
  34. package/packages/core/src/cli/dispatch-preflight.ts +272 -0
  35. package/packages/core/src/cli/dispatch-presentation-job.ts +46 -0
  36. package/packages/core/src/cli/dispatch-presentation-ownership.ts +9 -0
  37. package/packages/core/src/cli/dispatch-process.ts +22 -90
  38. package/packages/core/src/cli/dispatch-readiness.ts +47 -0
  39. package/packages/core/src/cli/dispatch-repository-feed.ts +5 -1
  40. package/packages/core/src/cli/dispatch-runtime-cache.ts +522 -0
  41. package/packages/core/src/cli/dispatch-runtime-dependencies.ts +291 -0
  42. package/packages/core/src/cli/dispatch-runtime-use.ts +336 -0
  43. package/packages/core/src/cli/dispatch-upgrade-controller.ts +221 -0
  44. package/packages/core/src/cli/dispatch-upgrade-install.ts +258 -0
  45. package/packages/core/src/cli/dispatch-upgrade-source.ts +309 -0
  46. package/packages/core/src/cli/dispatch-upgrade-target.ts +190 -0
  47. package/packages/core/src/cli/dispatch.ts +604 -60
  48. package/packages/core/src/cli/dispatcher-liveness.ts +1 -1
  49. package/packages/core/src/cli/harvest.ts +28 -11
  50. package/packages/core/src/cli/help.ts +6 -3
  51. package/packages/core/src/cli/installation.ts +5 -3
  52. package/packages/core/src/cli/main-checkout.ts +59 -0
  53. package/packages/core/src/cli/main.ts +15 -45
  54. package/packages/core/src/cli/node-verification-provenance.ts +97 -0
  55. package/packages/core/src/cli/repo-state.ts +3 -58
  56. package/packages/core/src/cli/repository-status.ts +67 -3
  57. package/packages/core/src/cli/runtime-spawn.ts +16 -0
  58. package/packages/core/src/cli/status.ts +57 -3
  59. package/packages/core/src/cli/upgrade-followup.ts +25 -0
  60. package/packages/core/src/cli/wait.ts +3 -0
  61. package/packages/core/src/cli/watch.ts +7 -0
  62. package/packages/core/src/config/live.ts +1 -0
  63. package/packages/core/src/config/schema.ts +8 -4
  64. package/packages/core/src/distribution-packaging.ts +116 -0
  65. package/packages/core/src/events/catalog.ts +6 -0
  66. package/packages/core/src/events/payloads.ts +53 -9
  67. package/packages/core/src/events/policy.ts +25 -0
  68. package/packages/core/src/events/repository.ts +184 -4
  69. package/packages/core/src/events/runtime.ts +16 -0
  70. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +2515 -78
  71. package/packages/core/src/kernel/dispatch-drain-recovery.ts +121 -0
  72. package/packages/core/src/kernel/dispatch-status.ts +4 -2
  73. package/packages/core/src/kernel/dispatch-upgrade.ts +171 -0
  74. package/packages/core/src/kernel/dispatcher-liveness.ts +7 -0
  75. package/packages/core/src/kernel/generators/repository-journals.ts +82 -0
  76. package/packages/core/src/kernel/guarded-forge.ts +1 -1
  77. package/packages/core/src/kernel/harvest.ts +98 -4
  78. package/packages/core/src/kernel/integration-attention.ts +20 -0
  79. package/packages/core/src/kernel/integration-state.ts +80 -11
  80. package/packages/core/src/kernel/landing-readiness.ts +6 -1
  81. package/packages/core/src/kernel/mixed-version.ts +34 -0
  82. package/packages/core/src/kernel/node-polling.ts +160 -0
  83. package/packages/core/src/kernel/read-facts.ts +40 -5
  84. package/packages/core/src/kernel/reducer-registry.ts +3 -0
  85. package/packages/core/src/kernel/reducer.ts +75 -14
  86. package/packages/core/src/kernel/service-facts.ts +11 -4
  87. package/packages/core/src/operator/presentation.ts +7 -0
  88. package/packages/core/src/operator/query.ts +6 -2
  89. package/packages/core/src/operator/registry.ts +1 -1
  90. package/packages/core/src/plugins/load.ts +4 -1
  91. package/packages/core/src/plugins/runtime-snapshot.ts +128 -0
  92. package/packages/core/src/ports/forge/contract.ts +29 -0
  93. package/packages/core/src/ports/forge/github.ts +189 -61
  94. package/packages/core/src/ports/forge-failure.ts +1 -0
  95. package/packages/core/src/ports/forge-telemetry.ts +3 -0
  96. package/packages/core/src/ports/runner/session-env.ts +1 -0
  97. package/packages/core/src/ports/types.ts +10 -0
  98. package/packages/core/src/ports/workspace/distribution-archive.ts +22 -149
  99. package/packages/core/src/ports/workspace/distribution-release.ts +56 -0
  100. package/packages/core/src/ports/workspace/git-worktree.ts +2 -1
  101. package/packages/core/src/ports/workspace/local-build-execution.ts +37 -17
  102. package/packages/core/src/processes/build-child-exit.ts +5 -26
  103. package/packages/core/src/processes/build-runner.ts +81 -11
  104. package/packages/core/src/processes/dispatcher.ts +254 -23
  105. package/packages/core/src/processes/execution-no-progress.ts +6 -0
  106. package/packages/core/src/processes/execution-relaunch.ts +30 -0
  107. package/packages/core/src/processes/execution-settlement.ts +16 -7
  108. package/packages/core/src/processes/harvest-runner.ts +328 -292
  109. package/packages/core/src/processes/process-group-reaper.ts +17 -10
  110. package/packages/core/src/runtime-identity.ts +22 -3
  111. package/packages/core/src/store/contract.ts +153 -0
  112. package/packages/core/src/store/local/store.ts +197 -72
  113. package/packages/core/src/store/reduced-reads.ts +8 -0
  114. package/packages/core/src/store/reducer-value-shapes.json +5783 -3305
  115. package/packages/core/src/store/remote/client.ts +43 -0
  116. package/packages/core/src/store/repo-state-events.ts +20 -3
  117. package/packages/core/src/store/types.ts +7 -0
  118. package/skills/guide/SKILL.md +231 -23
  119. package/skills/guide/references/integration-tree.md +87 -2
  120. package/skills/guide/references/operator-api.md +53 -4
  121. package/skills/guide/references/plugin-authoring.md +45 -4
  122. package/skills/guide/references/remote-store-protocol.md +4 -1
  123. package/skills/guide/references/restacking.md +4 -1
  124. package/skills/guide/references/setup.md +20 -0
  125. package/skills/guide/references/spec-standard.md +23 -5
  126. package/skills/harvest/SKILL.md +4 -0
  127. package/skills/harvest-review/SKILL.md +4 -0
  128. package/skills/operate/SKILL.md +78 -8
  129. package/skills/spec/SKILL.md +19 -1
  130. package/skills/tickets/SKILL.md +19 -0
@@ -103,6 +103,22 @@ source targets, while build status shows the effective destination.
103
103
 
104
104
  ## Collect, verify and land
105
105
 
106
+ Node `verify:*` context additionally exposes `nodeVerification`: the frozen
107
+ range, a JSON index path, contribution build slugs, current stored ticket
108
+ identities, event-authorized spec revisions and spec paths, and their commits.
109
+ The index maps every commit in the range using build identity trailers,
110
+ including earlier-cycle contributions and merge side history. Commits without
111
+ an identity are listed as unattributed (a mechanical classification). The manifest
112
+ and index also expose `handPushedCommits: [{sha, originalSha, message}]` for owned
113
+ hand-pushed commits in the frozen range, preserving original identity across restacks.
114
+ Their full messages express maintainer-authorized intent: judge quality and
115
+ consistency, and never fail them solely for lacking a covering spec. Other node
116
+ changes are authorized when covered by the current event-authorized node spec or the spec
117
+ of the contribution introducing it; use the commit mapping to find that spec.
118
+ Missing or ambiguous provenance fails hydration. Leaf context is unchanged.
119
+ See [iterating inside a node](#iterating-inside-a-node) for authoring and evolving
120
+ these sources of intent.
121
+
106
122
  Create a node and direct work into it (replace ids with those returned by your
107
123
  source):
108
124
 
@@ -127,8 +143,10 @@ publication; tracker edits cannot be transactional with a forge write.
127
143
 
128
144
  The kernel runs all configured verify steps with normal path applicability on
129
145
  the exact node head and parent. Either moving invalidates eligibility, even a
130
- clean restack. Failed verification blocks the node: file a repair child targeting
131
- it; the repaired landed head permits a new cycle. Historical reports keep their
146
+ clean restack. Failed verification blocks the node and emits `integration.verification-failed` once per prepared cycle. Default watch and new hosted wake settings include it; `ab wait --for attention` also detects the current failure before notification. The fact names failed steps, head, parent and repair guidance. Watch baselines prior failures; reconcile status after arming. A new cycle can notify again, while historical facts do not keep a repaired node blocked. Recovery reports only the latest prepared cycle while its head and parent remain current; superseded failures are not backfilled. Recheck current status before filing a repair, since the node may have advanced after notification. To recover, file a repair child targeting
147
+ it; the repaired landed head permits a new cycle. If the contract changed, an
148
+ operator can explicitly revise the spec instead and verify again on the same head
149
+ (see operator node spec revisions below). Historical reports keep their
132
150
  actual head/base citations. Integration grammar is collect → verify → land →
133
151
  close, with restacking and repair cycles along the way.
134
152
 
@@ -145,6 +163,38 @@ merged head was verified, then completes the ticket. Closing without merge or
145
163
  aborting closes admission and returns the ticket to triage; already claimed
146
164
  children retain their frozen destination.
147
165
 
166
+ ## Iterating inside a node
167
+
168
+ Write the node spec as a finite integration charter: its goal, observable
169
+ completion conditions for the whole, and destination and landing expectations
170
+ under the effective policy. Put feature specifics in spec-standard children.
171
+ An open node supports three ways to iterate:
172
+
173
+ - **Add children.** Create spec-standard tickets targeting the node's ticket id,
174
+ for example `ab ticket create "Account settings" --body settings.md --target <node-id>`.
175
+ Ordinary children run their normal pipeline. Verification uses the provenance
176
+ mapping to judge changes against the introducing child's spec or the current
177
+ event-authorized node charter; a child contribution need not also be promised
178
+ independently by the charter.
179
+ - **Push small maintainer-authorized tweaks.** Push to the node's recorded branch
180
+ with meaningful commit messages describing intent. Verification reads the frozen
181
+ range's owned `handPushedCommits` messages, judges quality and consistency, and
182
+ cannot fail a tweak solely because it lacks a covering spec. This is maintainer
183
+ iteration, not permission for phase agents to bypass their publication boundary.
184
+ - **Revise the charter when the charter itself changes.** Use
185
+ `ab answer <node> --revise-spec replacement.md`, or update the ticket and import
186
+ it with `ab answer <node> --revise-spec-from-ticket`. A ticket edit alone does
187
+ not revise an active build. Children retain their specs, claims and targets;
188
+ the node recollects and verifies the replacement revision, including on the
189
+ same head and parent after failed verification. See
190
+ [operator node spec revisions](#operator-node-spec-revisions) for admission
191
+ restrictions.
192
+
193
+ Open children keep the node incomplete, including triage, backlog and ready
194
+ children. Completion remains finite: landed or otherwise ended nodes close
195
+ admission. Iteration does not relax verification of the exact head and parent,
196
+ or the configured readiness, consent and landing gates described above.
197
+
148
198
  ## Changing a parent
149
199
 
150
200
  `ab ticket update NODE-1 --target NODE-2` reparents an open node;
@@ -194,3 +244,38 @@ verification and landing, for queued dependency presence, on operator request,
194
244
  and after accepted re-parenting. Descendants need independent demand; presence
195
245
  requests follow only the minimal proven ancestor path. See
196
246
  [restacking](restacking.md#timing-and-evidence) for timing, requests and distance.
247
+
248
+ ## Polling and status
249
+
250
+ Opened integration nodes poll every tick until their durable activity has been
251
+ quiet for `policy.nodeIdleAfterSeconds` (default 600 seconds), then poll every
252
+ `policy.nodeIdlePollSeconds` (default 120 seconds). Holds and waiting for consent
253
+ qualify normally. Child claims, PR and landing activity, operator commands
254
+ (including repeated holds), restack requests and answers wake the next tick.
255
+ GitHub-only changes are discovered on the next due check, within the idle
256
+ interval plus normal tick scheduling while the dispatcher is running; failure,
257
+ cooldown and transport-budget gates still apply. Pending operations retain
258
+ active polling and action-time readiness checks remain fresh. Successful
259
+ `node.poll-checked` facts preserve quiet history across restarts; missing facts
260
+ force a fresh check. `ab build status` reports active or idle cadence and the
261
+ last successful check (or unrecorded evidence).
262
+
263
+ ## Operator node spec revisions
264
+
265
+ Operators may explicitly revise an opened idle collecting node or a node blocked on failed
266
+ integration verification without an escalation. Use
267
+ `ab answer <node> --revise-spec replacement.md` or, after amending its ticket,
268
+ `ab answer <node> --revise-spec-from-ticket`. Ticket edits alone do not revise
269
+ the build. Both forms enforce the same spec standard as leaf revisions.
270
+ Each kernel `spec.revised` records the exact artifact and operator identity
271
+ (with optional transport provenance); earlier revisions remain readable.
272
+ Ticket-origin revisions re-pin assets; supplied bodies preserve asset pins.
273
+ The node recollects and verifies the new revision, including on the same head
274
+ and parent after a failed cycle. Earlier cycles remain historical evidence
275
+ and cannot block or authorize landing under the replacement. Children keep
276
+ their specs, claims and targets; contributions are not restarted.
277
+ Active verification/reconcile or writer work, restack/reparent work, pause,
278
+ pending controls, landing intent and ended PRs refuse the no-escalation path.
279
+ A concurrent state change refuses publication with a retry explanation;
280
+ uncited artifacts are inert. Leaves still require an open escalation and
281
+ restart from `plan`.
@@ -81,8 +81,8 @@ turn runner (a later ticket) is the only producer of turn facts.
81
81
  | Method and path | Result |
82
82
  |---|---|
83
83
  | `GET …/builds?scope=active\|queued\|all` | Build summaries, newest update first. `queued` means active plus queued, matching `ab builds --queued`. |
84
- | `GET …/builds/{slug}` | `{detail, dashboardRow}`; `dashboardRow` remains a `CLEANING` row after `build.aborted` and becomes `null` only when the dashboard stops listing it (after cleanup's `build.completed`). |
85
- | `GET …/dashboard` | `{generatedAt, model, settingsHeader}`. `model` is the dashboard's rows, steps, elapsed timing inputs, harvest row, queue/capacity and settings projection. |
84
+ | `GET …/builds/{slug}` | `{detail, dashboardRow}`; `detail.runnerAttaches` records chronological attach boundaries and their runtime identity (version, commit, source kind/location), with null runtime for unrecorded historical attaches; `dashboardRow` remains a `CLEANING` row after `build.aborted` and becomes `null` only when the dashboard stops listing it (after cleanup's `build.completed`). |
85
+ | `GET …/dashboard` | `{generatedAt, model, settingsHeader}`. `model` is the dashboard's rows, steps, elapsed timing inputs, harvest row, queue/capacity and settings projection. Optional `rollback` contains `correlation`, `lineage`, full `failed` and `restored` runtime identities and rollback event `ts` for the authoritative dispatcher lineage’s unresolved hold. Both dashboards name failed, restored and held runtime plus timestamp. Matching durable different-target hold clearance removes it; a fresh operator lineage hides it only after a committed operational tick or accepted takeover. Run-started and yielded ticks alone cannot replace authority; same-lineage generations retain the notice. Historical rollback records are not fallback notices. Optional `handoffs` lists all accepted unfinished handoffs with predecessor `run`, optional `successor`, `correlation`, full `from`/`to` runtimes, `mode` and optional `deadline`. Outstanding drain-mode builds carry `draining: true`, also on build-detail `dashboardRow`; matching settlement removes it. Accepted completion removes the handoff; neither takeover nor the clock does. Missing historical mode means cutover and missing deadline displays unknown. |
86
86
  | `GET …/status` | Repository intake, pause, and default-auto-merge projection. |
87
87
  | `GET …/harvest/status` | Harvest gate, runs, steps, recovery, and attention projection. |
88
88
  | `GET …/builds/{slug}/artifacts/{kind}?rev=N` | Raw bytes (`application/octet-stream`) plus content-disposition and `X-Autobuild-Artifact-*` metadata headers. Omit `rev` for latest. |
@@ -146,6 +146,24 @@ revision, a trusted caller fetches the current ticket body and supplies it; the
146
146
  build must still have a recorded ticket. Revision conformance, lazy retry,
147
147
  artifact metadata, event ordering, and refusal rules are the same as the CLI.
148
148
 
149
+ Operators may explicitly revise an opened idle collecting node or a node blocked on failed
150
+ integration verification without an escalation. Use
151
+ `ab answer <node> --revise-spec replacement.md` or, after amending its ticket,
152
+ `ab answer <node> --revise-spec-from-ticket`. Ticket edits alone do not revise
153
+ the build. Both forms enforce the same spec standard as leaf revisions.
154
+ Each kernel `spec.revised` records the exact artifact and operator identity
155
+ (with optional transport provenance); earlier revisions remain readable.
156
+ Ticket-origin revisions re-pin assets; supplied bodies preserve asset pins.
157
+ The node recollects and verifies the new revision, including on the same head
158
+ and parent after a failed cycle. Earlier cycles remain historical evidence
159
+ and cannot block or authorize landing under the replacement. Children keep
160
+ their specs, claims and targets; contributions are not restarted.
161
+ Active verification/reconcile or writer work, restack/reparent work, pause,
162
+ pending controls, landing intent and ended PRs refuse the no-escalation path.
163
+ A concurrent state change refuses publication with a retry explanation;
164
+ uncited artifacts are inert. Leaves still require an open escalation and
165
+ restart from `plan`.
166
+
149
167
  ## The registry's protocol face: `POST …/tools/{tool}`
150
168
 
151
169
  One generic route executes any entry of the agent tool registry (the same
@@ -220,7 +238,8 @@ event reads.
220
238
 
221
239
  Dispatcher liveness is also visible through `ab repository status --json`:
222
240
  `dispatcher.holder` identifies the unexpired repository lease owner, independently
223
- of `latestRun`. Heartbeat age measures attributable renewals; tick age measures
241
+ of `latestRun`. Each run includes its recorded `runtime` (version, commit, and
242
+ source kind/location), or null for unrecorded historical starts. Heartbeat age measures attributable renewals; tick age measures
224
243
  durable progress. Missing historical evidence is null. The liveness query uses
225
244
  bounded repository facts first, with a full-history fallback when a later
226
245
  invocation hides the holder start or the latest stop. Other state reads retain
@@ -246,7 +265,7 @@ The default watch reports actionable conditions only:
246
265
  awaiting application is silent. One merge decision is reported per build/PR.
247
266
  - Repository `harvest.escalated`, `harvest.recovery-exhausted`,
248
267
  `dispatcher.config-rejected`, `dispatcher.config-reloaded` with nonempty
249
- `restartRequired`, abnormal `dispatcher.run-stopped`, and `dispatcher.lost`.
268
+ `restartRequired`, `dispatcher.upgrade-failed`, `dispatcher.runtime-rolled-back`, abnormal `dispatcher.run-stopped`, and `dispatcher.lost`.
250
269
  - `dispatcher.ticket-source-persistent`: degradation past its advertised
251
270
  reset time, once a tick started at or after reset has completed or failed
252
271
  with the episode still open; crossing reset alone is silent. Without a reset,
@@ -316,3 +335,33 @@ the original reset, which later rate limits cannot postpone indefinitely.
316
335
  uses the same service as `ab restack <node>`. The receipt contains `slug`,
317
336
  `request`, `coalesced` and `waiting`; execution is asynchronous. It refuses
318
337
  non-node, unopened and terminal builds and enforces repository ownership.
338
+
339
+ Repository status includes `upgrades.runs`, keyed by originating dispatcher run,
340
+ with latest successful `resolved` target, detected target, failure, handoff and
341
+ completion evidence. `dispatcher.upgrade-target-resolved` carries strict
342
+ `{run, lineage, target}` data; the target has mode (`pinned`, `installed`, or
343
+ `source`), content key, source provenance and optional version/base/SHA. Source
344
+ mode names the authoritative base commit, which can advance without changing
345
+ packaged inputs or the running runtime. Status text renders the resolved mode,
346
+ base and SHA separately, so an older handoff cannot hide a newer target. Identical
347
+ observations append nothing; a successful resolution does not clear failures. Facts carry launcher
348
+ lineage, from/to runtimes, resolution mode and authoritative base SHA/ref or original
349
+ installation provenance, plus prepared cache identity. Completion names the successor
350
+ and records completed retirement separately from takeover. During a handoff the
351
+ projection includes both generations, chosen mode, outstanding draining builds
352
+ and deadline. The successor owns repository work after terminal release and lease
353
+ claim, while old local runners retain execution leases until settlement or deadline.
354
+ Remote guests retain independent leases, finish their phase and request neutral
355
+ relaunch; their separate handoff capture never holds retirement open. `dispatcher.upgrade-failed` is immediate repository
356
+ attention; the current generation remains active and identical failed inputs are
357
+ suppressed across native handoff until target or selected-store compatibility evidence changes or a fresh operator launch.
358
+
359
+ Repository status additionally exposes `upgrades.lastRollback` (historical, retained
360
+ when cleared), `upgrades.holds` keyed by launcher lineage, `upgrades.lineages` keyed
361
+ by generation run, optional `upgrades.authoritativeRun` from rollback, accepted takeover or committed operational tick (never startup/yield alone), `upgrades.rollbackIds` for idempotent rollback correlations, and `rollbackHold` for the effective dispatcher lineage.
362
+ `dispatcher.runtime-rolled-back` names failed/restored runtime identities and cache
363
+ roots, target, original handoff/takeover, three failed exits and reason. It is default
364
+ repository attention. `dispatcher.rollback-hold-cleared` records a different
365
+ successfully resolved target. The rollback hold survives store compatibility
366
+ changes, resolution errors and upgrade opt-out; a new operator-launch lineage
367
+ ignores old holds. Preflight failure suppression above remains separate.
@@ -84,7 +84,11 @@ and validated details work across separately loaded SDK copies.
84
84
  Optionally implement `Forge.observeRequests(observer): () => void`; return a
85
85
  disposer and call registered observers once per wire request, including failed
86
86
  requests and pagination. Pass `ForgeRequestContext` with the build slug when
87
- known, or `{}` when unknown. The host fills missing build attribution from its
87
+ known, or `{}` when unknown. Capture attribution before awaiting transport and
88
+ notify after its outcome is known. Optional `outcome` is `restPrimary` for REST
89
+ HTTP responses other than 304, `restNotModified` for REST 304, or `graphql` for
90
+ GraphQL calls (including failures). Network failures have no proven REST debit
91
+ and omit the category. The host fills missing build attribution from its
88
92
  current build-scoped operation; otherwise the request is repository/unattributed.
89
93
  Credential discovery and skipped calls are not provider requests. For example:
90
94
 
@@ -93,11 +97,23 @@ observeRequests(observer: ForgeRequestObserver) {
93
97
  this.observers.add(observer)
94
98
  return () => { this.observers.delete(observer) }
95
99
  }
96
- // At the actual transport boundary:
97
- for (const observer of this.observers) observer({ build: context.build })
98
- return transport(method, path, options)
100
+ // Capture context before awaiting the transport. After response/failure:
101
+ for (const observer of this.observers) {
102
+ observer({ build: context.build, ...(outcome ? { outcome } : {}) })
103
+ }
99
104
  ```
100
105
 
106
+ Optional `withReadScope(work)` wraps a complete dispatcher tick, sharing promises
107
+ and observations across builds, and tears down on rejection too. Keep concurrent
108
+ operations outside that scope independent. Optional `primeNodeReads({workspacePath,
109
+ parent, head, prNumber?})` seeds opened-node facts. Priming is an optimization:
110
+ non-cooldown failures produce a diagnostic and fall through to ordinary stage
111
+ reads, preserving parent recovery when the previous parent disappeared.
112
+ Neither capability changes the
113
+ plugin API version requirement. Invalidate observations before writes, including
114
+ uncertain writes and Git pushes; acknowledgement and readiness reads must stay
115
+ fresh. Branch and ref endpoints share normalized facts, never HTTP validators.
116
+
101
117
  Declare `apiVersion: '^1.8.0'` when using these capabilities. Compatible legacy
102
118
  1.x plugins still load without observers and show unavailable counts. Arbitrary
103
119
  legacy errors are not classified automatically.
@@ -213,6 +229,31 @@ source = "file"
213
229
  readyState = "ready"
214
230
  ```
215
231
 
232
+ Inside a cached dispatcher generation, selection still uses those roots, but
233
+ selected external plugin code and its installed dependency closure are copied
234
+ into an immutable auxiliary snapshot. Native ESM, CommonJS `require`, delayed
235
+ imports, export-from and module-anchored `createRequire` all resolve the core
236
+ package to the same canonical frozen runtime, including SDK values and classes.
237
+ There are no loader hooks or source transforms. Repo-path modules in a consuming
238
+ repository use their literal import closure and literal `new URL(..., import.meta.url)`
239
+ assets, rather than copying the checkout or its unused dev dependencies. Plugins
240
+ with their own package boundary retain that package’s assets and dependency graph.
241
+ Package-relative assets remain
242
+ beside copied modules; `import.meta.url` and filenames name the snapshot, while
243
+ cwd and factory `repoRoot` remain the consuming checkout. Explicit absolute
244
+ paths remain plugin-controlled external resources.
245
+
246
+ Auxiliary snapshots use neutral compiler boundaries and cached Bun entrypoints
247
+ pin the core config with `--no-install --tsconfig-override` before JavaScript
248
+ runs. Autobuild-owned compiler chains cannot escape the runtime; installed
249
+ third-party development configs are preserved byte-for-byte. New selections
250
+ can prepare new snapshots without changing the generation's core identity.
251
+ Live plugin processes retain their core runtime independently of Store leases.
252
+ Plugin-loading CLI calls reclaim dead auxiliary snapshots during the generation,
253
+ so edits between phase commands do not accumulate checkout-sized copies.
254
+ Ordinary noncached consumers retain the separately loaded SDK compatibility
255
+ rules described above.
256
+
216
257
  Each configured specifier string must be unique. An exact repeat fails config
217
258
  validation before Bun resolves or evaluates any plugin, identifies the repeated
218
259
  value and both list positions, and tells the operator to remove or deduplicate
@@ -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 |
@@ -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
@@ -222,6 +222,18 @@ requires a published release.
222
222
 
223
223
  ### Guest distribution version selection and delivery
224
224
 
225
+ Cached generations retain explicit archive provenance. A registry generation
226
+ resolves its manifest version’s GitHub release asset on first guest use, validates
227
+ version and digest, and atomically caches it separately from the host archive.
228
+ Local launch requires no GitHub fetch. Isolated and hoisted Bun installations
229
+ retain registry provenance through store-path or lock evidence. Source, Git and local package
230
+ generations deliver their exact packed code. Missing or invalid release assets
231
+ fail guest delivery and remain retryable, without falling back to packing the
232
+ registry installation.
233
+ Remote guests finish their phase before requesting relaunch; re-attachment
234
+ refreshes the archive and marker before the next runner starts. They retain
235
+ independent leases and never hold local retirement open.
236
+
225
237
  The guest's distribution version is selected by the archive source, and both
226
238
  sources agree with the running system by construction:
227
239
 
@@ -400,6 +412,14 @@ Its session instructions must preserve this contract:
400
412
 
401
413
  1. Run `ab context`. The verifier receives `.ab/spec.md`, the configured step,
402
414
  the commit range, and, after escalation is answered, `.ab/guidance.json`.
415
+ Node verify sessions also receive `nodeVerification` in the context manifest:
416
+ contribution specs and a provenance index mapping commits to the builds that
417
+ introduced them. Read those specs through the manifest's allocated paths.
418
+ Also read `handPushedCommits: [{sha, originalSha, message}]` from the manifest
419
+ and index. These hand-pushed node commit messages express maintainer-authorized
420
+ intent; judge quality and consistency, and never fail them solely for lacking
421
+ a covering spec. Other node changes are authorized when the node spec or the introducing
422
+ contribution's spec covers it; use the commit index to find that spec.
403
423
  2. Exercise each applicable acceptance criterion through the repository's real
404
424
  application lifecycle. Prefer the narrowest honest flow that catches a
405
425
  regression.
@@ -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.
@@ -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 and recent events.
201
- - `ab repository status` — the repository's derived status.
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. Run `ab help answer` for the full menu.
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
@@ -16,6 +16,24 @@ session.
16
16
 
17
17
  ## Node tickets and targets
18
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
+
19
37
  For node lifecycle, target validation and source-specific storage, read
20
38
  [nodes and targets](../ab-guide/references/integration-tree.md). When filing
21
39
  related work, follow the shared
@@ -107,7 +125,7 @@ placement question. Never assume the source default is non-ready.
107
125
 
108
126
  For a dependency chain explicitly chosen to ship together under a node, create
109
127
  in dependency order and obtain each new id from the command's complete JSON
110
- result. Write a spec-standard node body in `integration.md` as well as the child
128
+ result. Write a spec-standard node charter in `integration.md` as well as the child
111
129
  specs. This example assumes the repository's triage state is `Triage`, its ready
112
130
  state is `Ready`, and the human requested ready placement for the whole set.
113
131
  Use the repository's actual states; if final placement is non-ready, leave the
@@ -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