@defrex/autobuild 1.10.0 → 1.11.1

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 (255) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +745 -69
  3. package/bin/ab-dispatch-generation.ts +3 -1
  4. package/docs/accounts.md +2 -1
  5. package/docs/answering-blocked-builds.md +20 -0
  6. package/docs/architecture.md +165 -29
  7. package/docs/build-store.md +10 -7
  8. package/docs/cli.md +33 -1
  9. package/docs/configuration-overview.md +4 -1
  10. package/docs/configuration.md +381 -29
  11. package/docs/dispatcher.md +64 -4
  12. package/docs/forges.md +7 -0
  13. package/docs/integration-tree.md +2 -2
  14. package/docs/operating.md +4 -2
  15. package/docs/operator-api.md +134 -6
  16. package/docs/operator-surfaces.md +85 -0
  17. package/docs/optimization-nodes.md +69 -11
  18. package/docs/plugin-authoring.md +37 -1
  19. package/docs/remote-store-protocol.md +94 -13
  20. package/docs/remote-ticket-protocol.md +40 -0
  21. package/docs/restacking.md +20 -4
  22. package/docs/setup.md +14 -2
  23. package/docs/ticket-dependencies.md +10 -3
  24. package/docs/ticket-sources.md +24 -2
  25. package/docs/tickets.md +7 -1
  26. package/docs/troubleshooting.md +8 -0
  27. package/docs/verification.md +4 -3
  28. package/docs/workspaces.md +3 -0
  29. package/package.json +9 -5
  30. package/packages/core/src/cli/accounts.ts +7 -2
  31. package/packages/core/src/cli/attention.ts +3 -1
  32. package/packages/core/src/cli/binary-direct.ts +2 -0
  33. package/packages/core/src/cli/binary-lifecycle.ts +2 -1
  34. package/packages/core/src/cli/build-control.ts +79 -1
  35. package/packages/core/src/cli/context.ts +4 -0
  36. package/packages/core/src/cli/dashboard/facts.ts +49 -53
  37. package/packages/core/src/cli/dashboard/header.ts +111 -0
  38. package/packages/core/src/cli/dashboard/model.ts +31 -39
  39. package/packages/core/src/cli/dashboard/objective-row.ts +46 -14
  40. package/packages/core/src/cli/dashboard/poll.ts +179 -76
  41. package/packages/core/src/cli/dashboard/render.ts +159 -230
  42. package/packages/core/src/cli/dashboard/row-text.ts +538 -0
  43. package/packages/core/src/cli/dashboard/timeline.ts +288 -0
  44. package/packages/core/src/cli/dashboard/vocabulary.ts +188 -0
  45. package/packages/core/src/cli/dispatch-args.ts +44 -1
  46. package/packages/core/src/cli/dispatch-frontend.ts +40 -40
  47. package/packages/core/src/cli/dispatch-launch-stop.ts +18 -0
  48. package/packages/core/src/cli/dispatch-launcher.ts +20 -7
  49. package/packages/core/src/cli/dispatch-web.ts +155 -0
  50. package/packages/core/src/cli/dispatch.ts +202 -38
  51. package/packages/core/src/cli/help.ts +87 -3
  52. package/packages/core/src/cli/init-validation.ts +3 -3
  53. package/packages/core/src/cli/main.ts +70 -6
  54. package/packages/core/src/cli/mcp.ts +35 -3
  55. package/packages/core/src/cli/objective.ts +1 -1
  56. package/packages/core/src/cli/operator-preference.ts +57 -0
  57. package/packages/core/src/cli/repo-lease.ts +2 -0
  58. package/packages/core/src/cli/repo-state.ts +56 -6
  59. package/packages/core/src/cli/repository-status.ts +105 -49
  60. package/packages/core/src/cli/status.ts +82 -1
  61. package/packages/core/src/cli/terminal-restore.ts +32 -7
  62. package/packages/core/src/cli/ticket.ts +98 -36
  63. package/packages/core/src/cli/wait.ts +14 -6
  64. package/packages/core/src/cli/watch.ts +20 -4
  65. package/packages/core/src/cli/web.ts +139 -0
  66. package/packages/core/src/config/live.ts +99 -14
  67. package/packages/core/src/config/load.ts +61 -20
  68. package/packages/core/src/config/local.ts +212 -0
  69. package/packages/core/src/config/pipeline-source.ts +2 -0
  70. package/packages/core/src/config/reference.ts +18 -0
  71. package/packages/core/src/config/schema.ts +45 -10
  72. package/packages/core/src/events/catalog.ts +4 -0
  73. package/packages/core/src/events/payloads.ts +97 -0
  74. package/packages/core/src/events/policy.ts +10 -0
  75. package/packages/core/src/events/repository.ts +46 -3
  76. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +381 -30
  77. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/017d8dd5bb6dd80b.json.gz +0 -0
  78. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/178e12f1759b7552.json.gz +0 -0
  79. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/4932c70a2af97faf.json.gz +0 -0
  80. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/536085773daf6b58.json.gz +0 -0
  81. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/6bd6275061aaffa5.json.gz +0 -0
  82. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/89625654b02e9ac1.json.gz +0 -0
  83. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/a98af134be2da8a9.json.gz +0 -0
  84. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/d5d5ccca80a893d8.json.gz +0 -0
  85. package/packages/core/src/kernel/__snapshots__/reducer-identity-corpora/f8155387eb5f375c.json.gz +0 -0
  86. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/3c27f918b194e3b3.json +465 -0
  87. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/46196d8f0076496a.json +97 -0
  88. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/79f0e0f4ccd43ba2.json +455 -0
  89. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/859c09edac738823.json +1086 -0
  90. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a283c1f3462b1cc1.json +81 -0
  91. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6e570fb126991ff.json +36 -0
  92. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a8acf22c968b6e3d.json +81 -0
  93. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ba7b85895bf6698e.json +1153 -0
  94. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc66408cde0b6b04.json +637 -0
  95. package/packages/core/src/kernel/build-roster.ts +230 -0
  96. package/packages/core/src/kernel/dispatch-capacity.ts +4 -2
  97. package/packages/core/src/kernel/dispatch-status.ts +139 -0
  98. package/packages/core/src/kernel/engine.ts +43 -5
  99. package/packages/core/src/kernel/execution-intervals.ts +61 -0
  100. package/packages/core/src/kernel/generators/optimization-log.ts +101 -0
  101. package/packages/core/src/kernel/generators/repository-journals.ts +13 -0
  102. package/packages/core/src/kernel/leaf-restack-base.ts +33 -7
  103. package/packages/core/src/kernel/leaf-restack-state.ts +82 -3
  104. package/packages/core/src/kernel/log-index.ts +19 -0
  105. package/packages/core/src/kernel/optimization-admission.ts +244 -3
  106. package/packages/core/src/kernel/optimization.ts +183 -4
  107. package/packages/core/src/kernel/phase-failures.ts +121 -0
  108. package/packages/core/src/kernel/published-branch-head.ts +60 -0
  109. package/packages/core/src/kernel/read-facts.ts +15 -13
  110. package/packages/core/src/kernel/reducer-registry.ts +27 -8
  111. package/packages/core/src/kernel/reducer-revisions.ts +27 -0
  112. package/packages/core/src/kernel/reducer.ts +63 -4
  113. package/packages/core/src/kernel/rollup.ts +61 -0
  114. package/packages/core/src/kernel/setup-streak.ts +38 -0
  115. package/packages/core/src/kernel/step-durations.ts +257 -0
  116. package/packages/core/src/kernel/target-observation.ts +6 -1
  117. package/packages/core/src/kernel/target-rewrite-recovery.ts +116 -0
  118. package/packages/core/src/kernel/verify-diff-base.ts +5 -0
  119. package/packages/core/src/kernel/verify-stages.ts +13 -3
  120. package/packages/core/src/ontology.ts +5 -0
  121. package/packages/core/src/operator/agent-context-serve.ts +631 -0
  122. package/packages/core/src/operator/annotations.ts +75 -5
  123. package/packages/core/src/operator/attention.ts +470 -0
  124. package/packages/core/src/operator/canonical-skills.ts +35 -0
  125. package/packages/core/src/operator/cli-equivalents.ts +270 -0
  126. package/packages/core/src/operator/context-prompts.ts +61 -0
  127. package/packages/core/src/operator/index.ts +49 -1
  128. package/packages/core/src/operator/landings.ts +28 -19
  129. package/packages/core/src/operator/optimization.ts +7 -0
  130. package/packages/core/src/operator/protocol.ts +3 -0
  131. package/packages/core/src/operator/query.ts +129 -74
  132. package/packages/core/src/operator/read-view.ts +5 -2
  133. package/packages/core/src/operator/registry.ts +406 -46
  134. package/packages/core/src/operator/requests.ts +20 -18
  135. package/packages/core/src/operator/sandbox-host.ts +107 -11
  136. package/packages/core/src/operator/sandbox-resolver.ts +253 -0
  137. package/packages/core/src/operator/sandbox.ts +778 -82
  138. package/packages/core/src/operator/ticket-asset-list.ts +77 -0
  139. package/packages/core/src/operator/ticket-assets.ts +167 -0
  140. package/packages/core/src/operator/tickets.ts +33 -2
  141. package/packages/core/src/plugin-sdk/index.ts +22 -0
  142. package/packages/core/src/plugins/manifest.ts +1 -1
  143. package/packages/core/src/ports/forge/fake.ts +92 -1
  144. package/packages/core/src/ports/forge/git-blob.ts +15 -0
  145. package/packages/core/src/ports/forge/github.ts +82 -0
  146. package/packages/core/src/ports/forge/local-git.ts +61 -1
  147. package/packages/core/src/ports/forge-failure.ts +24 -0
  148. package/packages/core/src/ports/runner/antigravity-test.fixture.ts +149 -0
  149. package/packages/core/src/ports/runner/claude-test.fixture.ts +71 -0
  150. package/packages/core/src/ports/runner/codex-test.fixture.ts +63 -0
  151. package/packages/core/src/ports/tickets/contract.ts +71 -0
  152. package/packages/core/src/ports/tickets/fake.ts +11 -0
  153. package/packages/core/src/ports/tickets/file.ts +18 -0
  154. package/packages/core/src/ports/tickets/github-fake.ts +136 -4
  155. package/packages/core/src/ports/tickets/github.ts +387 -30
  156. package/packages/core/src/ports/tickets/hosted-index.ts +10 -0
  157. package/packages/core/src/ports/tickets/linear.ts +130 -0
  158. package/packages/core/src/ports/tickets/priority.ts +9 -0
  159. package/packages/core/src/ports/tickets/remote-protocol.ts +34 -0
  160. package/packages/core/src/ports/tickets/remote.ts +70 -6
  161. package/packages/core/src/ports/tickets/search.ts +139 -0
  162. package/packages/core/src/ports/types.ts +104 -2
  163. package/packages/core/src/ports/workspace/builtin-capabilities.ts +9 -0
  164. package/packages/core/src/ports/workspace/create.ts +15 -1
  165. package/packages/core/src/ports/workspace/fake.ts +340 -12
  166. package/packages/core/src/ports/workspace/git-worktree.ts +833 -42
  167. package/packages/core/src/ports/workspace/operator-sandbox.ts +129 -12
  168. package/packages/core/src/ports/workspace/process-group.ts +48 -0
  169. package/packages/core/src/ports/workspace/vercel-sandbox.ts +1260 -123
  170. package/packages/core/src/processes/agent-context-assemble.ts +576 -0
  171. package/packages/core/src/processes/agent-context.ts +469 -0
  172. package/packages/core/src/processes/build-runner.ts +387 -236
  173. package/packages/core/src/processes/dispatcher.ts +211 -55
  174. package/packages/core/src/processes/execution-no-progress.ts +4 -0
  175. package/packages/core/src/processes/optimization-activity.ts +120 -0
  176. package/packages/core/src/processes/phase-failure-budget.ts +1 -0
  177. package/packages/core/src/processes/repo-view.ts +78 -2
  178. package/packages/core/src/processes/sandbox-state.ts +53 -6
  179. package/packages/core/src/processes/tick-publication.ts +2 -0
  180. package/packages/core/src/processes/workspace-preparation.ts +76 -0
  181. package/packages/core/src/scenarios/harness.ts +0 -5
  182. package/packages/core/src/store/account-redaction.ts +1 -0
  183. package/packages/core/src/store/adapter.ts +52 -1
  184. package/packages/core/src/store/agent-context.ts +432 -0
  185. package/packages/core/src/store/build-feed.ts +291 -0
  186. package/packages/core/src/store/build-scope.ts +19 -1
  187. package/packages/core/src/store/contract.ts +911 -14
  188. package/packages/core/src/store/digest.ts +19 -6
  189. package/packages/core/src/store/histogram.ts +113 -0
  190. package/packages/core/src/store/local/schema.ts +62 -0
  191. package/packages/core/src/store/local/store.ts +628 -22
  192. package/packages/core/src/store/local/ticket-asset-heads.ts +23 -0
  193. package/packages/core/src/store/memory.ts +461 -69
  194. package/packages/core/src/store/open-builds.ts +19 -0
  195. package/packages/core/src/store/phase-session.ts +32 -4
  196. package/packages/core/src/store/reduced-reads.ts +14 -4
  197. package/packages/core/src/store/reducer-value-shapes.json +7027 -5751
  198. package/packages/core/src/store/reducer-values.ts +6 -1
  199. package/packages/core/src/store/remote/client.ts +208 -2
  200. package/packages/core/src/store/remote/compatibility.ts +1 -1
  201. package/packages/core/src/store/remote/index.ts +33 -0
  202. package/packages/core/src/store/remote/protocol.ts +69 -0
  203. package/packages/core/src/store/remote/released-clients.json +22 -0
  204. package/packages/core/src/store/remote/released-reducer-values/1.11.0.json +35680 -0
  205. package/packages/core/src/store/remote/released-reducer-values/1.11.1.json +35718 -0
  206. package/packages/core/src/store/remote/released-reducer-values/index.ts +20 -16
  207. package/packages/core/src/store/retention.ts +23 -1
  208. package/packages/core/src/store/rollups.ts +337 -0
  209. package/packages/core/src/store/session-handle.ts +20 -2
  210. package/packages/core/src/store/snapshots.ts +10 -0
  211. package/packages/core/src/store/types.ts +108 -9
  212. package/packages/core/src/testing/dispatch-journals.ts +117 -0
  213. package/packages/core/src/testing/dispatch-read-budget.ts +1092 -2
  214. package/packages/core/src/testing/git-config-isolation.ts +7 -5
  215. package/packages/core/src/testing/index.ts +27 -0
  216. package/packages/core/src/testing/memory-operator-sandbox.ts +346 -0
  217. package/packages/core/src/testing/reduced-read-budget.ts +1873 -98
  218. package/packages/core/src/web/analytics-source.ts +303 -0
  219. package/packages/core/src/web/assets/Atkinson-OFL.txt +93 -0
  220. package/packages/core/src/web/assets/AtkinsonHyperlegibleNext.latin.woff2 +0 -0
  221. package/packages/core/src/web/assets/JetBrains-OFL.txt +93 -0
  222. package/packages/core/src/web/assets/JetBrainsMono.latin.woff2 +0 -0
  223. package/packages/core/src/web/assets/app.css +1 -0
  224. package/packages/core/src/web/assets/app.js +9 -0
  225. package/packages/core/src/web/assets/manifest.json +31 -0
  226. package/packages/core/src/web/assets/theme.js +1 -0
  227. package/packages/core/src/web/bounded.ts +31 -0
  228. package/packages/core/src/web/http.ts +315 -0
  229. package/packages/core/src/web/hub.ts +160 -0
  230. package/packages/core/src/web/options.ts +38 -0
  231. package/packages/core/src/web/overview-source.ts +322 -0
  232. package/packages/core/src/web/page.ts +56 -0
  233. package/packages/core/src/web/protocol.ts +151 -0
  234. package/packages/core/src/web/read-only.ts +23 -0
  235. package/packages/core/src/web/repository-source.ts +39 -0
  236. package/packages/core/src/web/server.ts +97 -0
  237. package/skills/code-review/SKILL.md +10 -2
  238. package/skills/guide/SKILL.md +376 -54
  239. package/skills/guide/references/accounts.md +2 -1
  240. package/skills/guide/references/integration-tree.md +2 -2
  241. package/skills/guide/references/operator-api.md +134 -6
  242. package/skills/guide/references/optimization-nodes.md +69 -11
  243. package/skills/guide/references/plugin-authoring.md +37 -1
  244. package/skills/guide/references/remote-store-protocol.md +94 -13
  245. package/skills/guide/references/remote-ticket-protocol.md +40 -0
  246. package/skills/guide/references/restacking.md +20 -4
  247. package/skills/guide/references/setup.md +14 -2
  248. package/skills/guide/references/ticket-dependencies.md +10 -3
  249. package/skills/implement/SKILL.md +23 -4
  250. package/skills/operate/SKILL.md +134 -32
  251. package/skills/plan/SKILL.md +10 -4
  252. package/skills/plan-review/SKILL.md +9 -2
  253. package/skills/spec/SKILL.md +34 -8
  254. package/skills/tickets/SKILL.md +51 -5
  255. package/templates/hosted-service/package.json +2 -2
@@ -49,6 +49,8 @@ Declare served model prefixes and a default. Optional tool-free `oneShot` sits b
49
49
  - Provision an absolute, writable working copy for the requested branch; return durable base evidence.
50
50
  - Resume an intact branch non-destructively, never silently re-cut from a newer base. Rematerialize a lost copy. Make release idempotent.
51
51
  - Optional `provision.publication` supplies a durable confirmed SHA and known cache tips for authoritative readback and cache repair. Preserve unknown unpublished work.
52
+ - Optional `provision.fresh: { owner }` marks a build's first provision. A pre-existing branch of that name is not the build's work: never return it as the base unless you hold your own creation receipt for `owner` (stable across that build's retries). Cut from `baseBranch` and keep the old tip recoverable. Providers that ignore it rely on claim-time deduplication.
53
+ - Optional `localBranchExists(repo, branch)` reports a local `refs/heads/<branch>` in the checkout you create branches in, and throws when the probe fails. Dispatch calls it only at claim time and skips such a slug. Omit it when your branches aren't local; `remoteBranchExists` covers those.
52
54
 
53
55
  ### `forge`
54
56
 
@@ -108,7 +110,8 @@ another store opened. A throw during slug selection fails that claim: no build
108
110
  is created and the ticket is handed back to retry on a later tick, never named
109
111
  without the check. A throw while diagnosing a target node leaves the plain
110
112
  pending diagnostic. Without the capability, slugs are deduplicated against the
111
- local store only and the dispatcher records a startup warning.
113
+ local store, plus local branches when the workspace provider implements
114
+ `localBranchExists`, and the dispatcher records a startup warning.
112
115
 
113
116
  Stores may expose `getNodeRewrite(node, previousHead, beforePrevious)` as a bounded point
114
117
  lookup of a durable `node.rewritten` receipt. Built-in adapters index these
@@ -244,6 +247,7 @@ A plugin relying on a capability declares an `apiVersion` range containing its v
244
247
  - **1.8** Forge failure classification and request observers.
245
248
  - **1.9** Optional native ticket-source paging (`listPage`); older sources retain operator slicing.
246
249
  - **1.10** Optional ticket-source ready-assignee capability (`readyAssignee`, with `prepareReadyAssignee`, `readyAssigneeRefusal` and `describeReadyAssignee`); sources without it refuse `[tickets].readyAssignee`. Also optional targeted ticket listing (`listTargeting`); older tree sources are observed through `listAll`.
250
+ - **1.11** Optional ticket-source search (`search`); callers refuse sources without it and never fall back to a listing.
247
251
 
248
252
  ## 2. Create a repository-local module
249
253
 
@@ -644,6 +648,38 @@ File, Linear and GitHub retain fallback; the remote `HostedTicketSource`
644
648
  forwards pages to the service's native paging (`list-page`), falling back only
645
649
  against a service predating it. The POST list-ready protocol stays exhaustive.
646
650
 
651
+ ## Optional ticket search capability
652
+
653
+ Text search is an optional API 1.11 ticket-source capability:
654
+ `search?(query: TicketSearchQuery): Promise<TicketSearchPage>`. The SDK exports
655
+ the types and the `TicketSearchCursorInvalid` and `TicketSearchUnsupported`
656
+ errors.
657
+
658
+ | Type | Fields |
659
+ | --- | --- |
660
+ | `TicketSearchQuery` | `text`, optional `state`, optional `labels`, `limit`, optional `cursor` |
661
+ | `TicketSearchHit` | `id`, `title`, optional `state`, `labels`, `kind`, optional `target` |
662
+ | `TicketSearchPage` | `tickets: TicketSearchHit[]`, optional `cursor`, `diagnostics` |
663
+
664
+ - **Matching.** A ticket matches when every whitespace-separated term of
665
+ `text` occurs, case-insensitively, in its title or body; each term may hit
666
+ either field. A provider-backed source may apply its provider's word matching
667
+ instead.
668
+ - **Filters.** `state` resolves as `listReady` resolves it; absent means every
669
+ state, including completed and rejected tickets. `labels` are ANDed.
670
+ - **Paging.** `limit` is positive and already bounded by the caller. `cursor`
671
+ is opaque and source-defined; return one only when more matches remain. Order
672
+ is source-defined and stable across pages. Reject a malformed or foreign
673
+ cursor with the SDK's `TicketSearchCursorInvalid(sourceName, cursor)`;
674
+ callers map it to the `search-cursor-invalid` refusal.
675
+ - **Cost.** Build each hit from the search read itself, never from a follow-up
676
+ read per result. A failure rejects; it never falls back to `listAll`.
677
+
678
+ Sources that cannot search omit the method. Callers (`tickets.search`,
679
+ `ab ticket search`) then refuse with `TicketSearchUnsupported`, naming the
680
+ source, before reading any ticket. The shared `describeTicketSourceContract`
681
+ suite checks declared search automatically and skips it otherwise.
682
+
647
683
  Hosted cooldown recording rejects observed reset deadlines beyond the 24-hour
648
684
  admission horizon explicitly; adapters must not shorten or invent a provider
649
685
  reset to evade this validation. Operator forge-clear is an audited override,
@@ -534,7 +534,7 @@ client version window are unchanged.
534
534
 
535
535
  | Scope | Reducers with no arguments |
536
536
  | --- | --- |
537
- | Build | `executionNoProgress`, `summaryRequests`, `build`, `buildDigest`, `currentPrAttachments`, `pendingPrAttachmentReclaims`, `openExecution`, `lastExecutionOutcome`, `infrastructureFailureReset`, `openWorkspace`, `setupStreak`, `openBuildWorkspace`, `currentDeferralObservation`, `dashboardFacts`, `pinnedAssets`, `buildDelegation` |
537
+ | Build | `executionNoProgress`, `summaryRequests`, `build`, `buildDigest`, `currentPrAttachments`, `pendingPrAttachmentReclaims`, `openExecution`, `lastExecutionOutcome`, `infrastructureFailureReset`, `openWorkspace`, `setupStreak`, `openBuildWorkspace`, `currentDeferralObservation`, `dashboardFacts`, `buildTimeline`, `buildRosterEntry`, `pinnedAssets`, `buildDelegation` |
538
538
  | Repository | `dispatchPlacement`, `ticketPreparation`, `harvest`, `dispatchSettings`, `sandboxStates`, `openHarvestExecutions`, `hostedHarvestAuthority`, `autoMergeDefault`, `effectiveConfig`, `harvestDelegation` |
539
539
 
540
540
  | Reducer | Scope | Required arguments |
@@ -579,6 +579,40 @@ names retain their existing behavior. The value cache key format is versioned;
579
579
  checkpoints from the former publicly writable format are ignored and rebuilt
580
580
  from the log after upgrading.
581
581
 
582
+ ### Rollup values
583
+
584
+ `POST /repos/{repo}/rollup-values` answers a derived reducer: a value across the
585
+ repository's builds. The body is a named-value request of at most
586
+ 4 KiB, whose optional `read` record carries read-time arguments:
587
+
588
+ ```json
589
+ {"reducer":"stepDurations","args":{"outcome":"all"},"read":{"window":"30d"}}
590
+ ```
591
+
592
+ - `args` are key arguments: each combination, after defaults, is its own
593
+ rollup. `read` shapes only the finished value and never creates a key.
594
+ Named-value requests that carry `read` are `400 validation`.
595
+ - The response is the strict envelope `200 {"version", "cursor", "value"}`.
596
+ `cursor` is always `0`; `value.position` names the repository change
597
+ position the answer reflects.
598
+ - The server advances the rollup by the builds changed since its saved
599
+ position, serialized per key, and answers canonically. The client sends one
600
+ request and never reconstructs the value from events, the changed-builds
601
+ feed or build values.
602
+ - Rollups have no released projection catalog. A client requires the server's
603
+ `version` to equal its own; a different version, an absent route (`404` or
604
+ `405` from an older server), `400 validation` for a rollup the server does
605
+ not know (an older server), an invalid envelope or a value outside the
606
+ rollup's schema raises `ReducerValueIncompatibilityError`.
607
+ - Unknown rollup names, invalid arguments and extra fields are
608
+ `400 validation`. An unknown repository answers the empty value and creates
609
+ nothing. The operation is read-only authority, like `reducer-values`.
610
+
611
+ | Rollup | Key arguments | Read-time arguments | Value |
612
+ | --- | --- | --- | --- |
613
+ | `stepDurations` | `outcome`: `merged` (default) or `all`; `kind`: `leaf` (default), `node` or `all` | `window`: `24h`, `7d` (default), `30d` or `all` | `{"position": string, "window": string, "steps": [{"step", "count", "meanMs", "p50Ms", "p90Ms", "p99Ms", "totalMs"}]}`, steps in pipeline order with waits last |
614
+ | `buildRoster` | none | none | `{"position": string, "live": [{"slug", "kind", "createdAt"?}], "finished": [{"slug", "kind", "outcome", "completedAt"}]}`: every live build, oldest first; up to 10 of the newest finished builds, newest first, with `outcome` `merged`, `closed` or `aborted` |
615
+
582
616
  ### Reducer snapshots
583
617
 
584
618
  A reducer snapshot is one registered reducer's serialized state as of a log
@@ -716,17 +750,20 @@ waits apply. There is no push transport; a held request is the whole mechanism.
716
750
  Repository journals are separate resources with independent event sequences,
717
751
  artifacts, and leases. `{repo}` is one percent-encoded repository id; encode
718
752
  embedded `/` characters. All resource routes authorize and require the
719
- repository to exist. An unknown repository returns `404 not-found` — with one
720
- carve-out: the build-digest batch read of this section is keyed to build
721
- records, not the repository journal record, so it authorizes the project credential
722
- but answers `200` (possibly empty) even for an unknown repository, a repository
723
- without a journal record, or a repository without builds.
753
+ repository to exist. An unknown repository returns `404 not-found` — except
754
+ for the build-record reads of this section (`change-position`, `builds`,
755
+ `changed-builds`, `build-page`, `build-digests`, `open-builds` and `rollup-values`), which are keyed
756
+ to build records, not the repository journal record, so they authorize the
757
+ project credential but answer `200` (possibly empty) even for an unknown
758
+ repository, a repository without a journal record, or a repository without
759
+ builds.
724
760
 
725
761
  | BuildStore operation | HTTP route | Request | Success |
726
762
  |---|---|---|---|
727
763
  | `ensureRepo` | `POST /repos` | `{"repo": string}` with a nonempty id | `200` + `RepositoryRecord`; idempotently returns the existing record |
728
764
  | `getRepo` | `GET /repos/{repo}` | none | `200` + `RepositoryRecord`; absent is `404` (the shipped client maps this to `null`) |
729
765
  | `appendRepo` | `POST /repos/{repo}/events` | event write | `201` + repository event envelope |
766
+ | `appendRepoIfCurrent` | `POST /repos/{repo}/events/conditional` | `{"expectedSeq": nonnegative integer, "event": event write}` | appended: `201` + repository event envelope; journal advanced: `200 null` (mirroring section 3's build compare-and-append). A server without the route answers `404`; callers report it and never fall back to an unconditional append |
730
767
  | `getRepoEvents` / `getRepositoryTail` | `GET /repos/{repo}/events?since={n}&through={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 > since`, up to the frozen head; optional `through` caps the response at `seq <= through`; `409 cursor-too-old` below `max(0, head - 1000)` |
731
768
  | `getRepoStateEvents` | `GET /repos/{repo}/state-events` | none | `200` + the bounded repository-journal subset (AUT-489): every durable event type (`ticket-preparation.*`, `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 the latest-only `dispatcher.ticket-scan-completed` and `dispatcher.placement-set` facts and, 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` |
732
769
  | `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` |
@@ -735,11 +772,28 @@ without a journal record, or a repository without builds.
735
772
  | `putRepoArtifact` | `POST /repos/{repo}/artifacts` | artifact input | `201` + repository artifact metadata |
736
773
  | `getRepoArtifact` | `GET /repos/{repo}/artifacts?kind={kind}&rev={n}` | required nonempty `kind`; optional `rev` is parsed as in section 3 | `200` + artifact read; latest only when the `rev` parameter is absent; missing kind/revision is `200 null` |
737
774
  | `listRepoArtifacts` | `GET /repos/{repo}/artifact-list?kind={kind}` | optional `kind`; absence means all kinds | `200` + metadata ordered by kind and then increasing revision |
775
+ | `getRepoChangePosition` | `GET /repos/{repo}/change-position` | none | `200 {"position": string}`: the canonical unsigned decimal change position, `"0"` for an unknown repository. Positions are ordered: a later build creation, build event, repository event or repository lease holder change yields a strictly greater value, compared numerically |
776
+ | `listBuildsForRepo` | `GET /repos/{repo}/builds` | none | `200` + `BuildRecord[]` ordered by creation time, then slug |
777
+ | `listBuildsChangedSince` | `GET /repos/{repo}/changed-builds?since={p}` | required `since`, a canonical unsigned decimal no greater than 9223372036854775807; anything else is `400 validation` | `200 {"position": string, "builds": [{"slug": string, "position": string}]}`: the builds whose latest change position is greater than `since`, ascending by position and each once, with the repository head read in the same snapshot. Reads no event rows. An unknown repository answers `{"position": "0", "builds": []}` |
778
+ | `listBuildsPage` | `GET /repos/{repo}/build-page?limit={n}&cursor={c}&kind={k}&outcome=merged&activeSince={t}` | optional `limit`, a decimal integer from 1 to 100 (default 25); optional `cursor`, a `next` value this server issued for the same filters; optional `kind`, `leaf` or `node`; optional `outcome`, only `merged`; optional `activeSince`, an ISO instant with a zone. A bad limit, a malformed cursor, a cursor of the other order, or an empty or invalid filter is `400 validation` | `200 {"builds": BuildRecord[], "next": string \| null, "filters"?: {"kind"?, "outcome"?, "activeSince"?}}`: one page newest first by creation time, slug descending to break ties, with records as `builds` returns them; `next` is `null` on the last page. `kind` and `outcome` keep that order. `activeSince` keeps builds whose `updatedAt` is at or after it, ordered by `updatedAt` then slug, both descending, a superset of builds active in the window; a build written between two requests can appear twice or be skipped once, so dedupe by slug. A filtered answer echoes the normalized filters it applied as `filters`. Every page, filtered or not, costs at most `limit + 1` index entries and no event rows |
779
+ | `getReducerValue` (rollup scope) | `POST /repos/{repo}/rollup-values` | a named-value request with optional `read`; see [Rollup values](#rollup-values) | `200 {"version", "cursor": 0, "value"}`: the canonical rollup; an unknown repository answers the empty value |
738
780
  | `getRepoBuildDigests` | `GET /repos/{repo}/build-digests` | none | `200` + `BuildDigest[]`, one entry per build record of the repository (possibly empty), ordered by slug; handled before the repository-existence gate, so an unknown or journal-less repository answers `200 []` |
781
+ | `listOpenBuilds` | `GET /repos/{repo}/open-builds` | none | `200` + `[{"record", "digest"}]`, a build record and its `BuildDigest` for every open build of the repository (possibly empty), ordered by `createdAt` and then slug; handled before the repository-existence gate, so an unknown or journal-less repository answers `200 []` |
739
782
  | `claimRepoLease` | `POST /repos/{repo}/lease/claim` | claim request | `200 {"ok": boolean}` |
740
783
  | `heartbeatRepo` | `POST /repos/{repo}/lease/heartbeat` | holder request | `200 {"ok": boolean}` |
741
784
  | `releaseRepoLease` | `POST /repos/{repo}/lease/release` | holder request | `200 {"ok": true}`; a wrong holder is a successful no-op |
742
785
 
786
+ The `changed-builds` and `build-page` routes are additive and keep the
787
+ protocol version. A server on the same release line that lacks them answers
788
+ `501 unsupported-operation` or `404 not-found`; the shipped client reports
789
+ that as a typed `BuildFeedUnsupportedError` and never falls back to listing
790
+ builds or reading events. The `build-page` filters are additive too. A server
791
+ that predates them ignores the parameters and answers an unfiltered page
792
+ without `filters`, so the client requires an echo equal to the filters it sent
793
+ and otherwise raises `BuildFeedUnsupportedError` with capability
794
+ `buildPageFilters`. It never filters an unfiltered page client-side and never
795
+ retries without the filters.
796
+
743
797
  There is no repository-list operation. `ensureRepo` is the only repository
744
798
  creation operation and must not reset timestamps, events, artifacts, or lease
745
799
  state when the repository already exists. Event sequence numbering starts at 1
@@ -799,8 +853,11 @@ field from events.
799
853
  `false` for a plain node. For an optimization node it is a bounded summary of
800
854
  the node's own optimization facts: `stopped?` and `measured?` (each `true` when
801
855
  set), `inFlight`, `concurrency`, `attemptRoom?` (absent without an attempts
802
- budget), `emptyProposals`, `openedAt`, `maxHours?`, `proposal?: {request,
803
- deposited?: {ids, at}}`, and `wakeSeq?` and `deferredSeq?`, the sequences of
856
+ budget), `emptyProposals`, `openedAt`, `maxHours?`, `clock?: {activeMs,
857
+ spans, open, stoppedAt?, settled?}` (the active-hours clock: activity
858
+ compacted before the last batch, closed spans since, and the start time of
859
+ each open run), `proposal?: {request, deposited?: {ids, at}}`, and `wakeSeq?`
860
+ and `deferredSeq?`, the sequences of
804
861
  the latest fact that can clear a proposer deferral and of the latest
805
862
  `optimization.proposal-deferred`. A dispatcher selects nodes to request
806
863
  proposals for, file proposals from and stop as exhausted from this member
@@ -808,7 +865,18 @@ alone. The member is additive and keeps the protocol version. A node digest
808
865
  without it is an older service's answer: the client fails the proposer stage
809
866
  and the attempt-creation hold closed with a typed capability error, proposing
810
867
  nothing and withholding every ready ticket that carries a creation key for
811
- that pass, and it never falls back to reading each node's facts.
868
+ that pass, and it never falls back to reading each node's facts. A node digest
869
+ whose signal lacks `clock` skips the hours condition of a proposal request,
870
+ which the build read then confirms.
871
+
872
+ `executionFacts` is present on every build digest: the count of the build's
873
+ `execution.started` and `execution.ended` facts. The dispatcher's
874
+ optimization activity pass compares it with what a node's clock has
875
+ accounted, and reads the build's served `executionIntervals` value, which
876
+ holds only the execution facts no node has acknowledged, only when it grew.
877
+ The member is additive and keeps the protocol version. A digest without it is
878
+ an older service's answer: the activity pass fails closed with a typed
879
+ capability error and never reads the build's events instead.
812
880
 
813
881
  The digest is derived from the event log on every call — the server persists
814
882
  nothing and there is no refresh step. Protocol version `3` reshaped the
@@ -823,6 +891,18 @@ This is the same discipline the transport's supported-window rules promise:
823
891
  wire shapes that independently implemented servers must reproduce update this
824
892
  document and the protocol version together.
825
893
 
894
+ An open build is one whose latest terminal fact is not `build.completed`:
895
+ queued, running, paused, blocked and settled-awaiting-merge builds, plus
896
+ aborted builds whose cleanup has not finished. The server maintains the set
897
+ in the same transaction that inserts a build or appends its
898
+ `build.completed`, `build.aborted` or `build.reopened`, so answering costs one
899
+ entry per open build and never grows with settled history. Operator reads of
900
+ active work use it. The route is additive and keeps the protocol version. A
901
+ server without it answers the generic `no route` `404`, or its
902
+ repository-existence gate's `unknown repo` `404` for a journal-less
903
+ repository; a client surfaces either as a typed capability error and never
904
+ answers from `build-digests` or the build list instead.
905
+
826
906
  The build-stream query, artifact, ordering, timestamp, and validation rules
827
907
  apply symmetrically to repository journals, including the event-read bounded
828
908
  wait of section 3.
@@ -1487,8 +1567,8 @@ Beyond leases, the backing store must maintain:
1487
1567
 
1488
1568
  - per-build and per-repository monotonically assigned event sequences starting
1489
1569
  at 1, preserving append order and continuity across server restarts;
1490
- - atomic build-stream conditional append, including a mutation-free stale
1491
- comparison result;
1570
+ - atomic build-stream and repository-journal conditional append, including a
1571
+ mutation-free stale comparison result;
1492
1572
  - server-assigned event, record, artifact, lease, and heartbeat times;
1493
1573
  - 0-based revisions independently per resource and artifact kind, including
1494
1574
  distinct concurrent assignments;
@@ -1559,8 +1639,9 @@ Four shipped behaviors do not add `BuildStore` routes:
1559
1639
  not a deeper backing-store transaction or migration check. The example shows anonymous health on the 1.3 line; an admitted same-line protocol-7 probe sees 7 instead.
1560
1640
 
1561
1641
  There is no push/WebSocket subscription protocol, repository listing, artifact
1562
- deletion, or server deployment API. The one repo-scoped batch read is the
1563
- build-digest route of section 4; no other batch-read route exists.
1642
+ deletion, or server deployment API. The repo-scoped batch reads are the
1643
+ build-digest and open-build routes of section 4; no other batch-read route
1644
+ exists.
1564
1645
 
1565
1646
  ## 12. Conformance
1566
1647
 
@@ -184,6 +184,7 @@ The operation names and `input` values are:
184
184
  | `list-ready` | `{labels?: string[], state?: string}` | `TicketListing` |
185
185
  | `list-targeting` | `{nodeId: string}` | `TicketListing` of every state |
186
186
  | `list-page` | `{criteria: {labels?, state?}, page: {limit, offset?, order?}}` | `TicketPageListing` (`{tickets, diagnostics, total}`) |
187
+ | `search` | `{text, state?, labels?, limit, cursor?}` | `{tickets: {id, title, state?, labels, kind, target?}[], cursor?, diagnostics}` |
187
188
  | `get` | `{id}` | `Ticket \| null` |
188
189
  | `claim` | `{id}` | `{claimed: boolean}` |
189
190
  | `comment` | `{id, body}` | `{ok: true}` |
@@ -482,3 +483,42 @@ listing takes the `list-ready` path by that explicit decision.
482
483
 
483
484
  The capability is additive. It does not change the remote BuildStore protocol
484
485
  version, and released clients, which never send `list-page`, are unaffected.
486
+
487
+ ## Search
488
+
489
+ `search` answers one page of compact hits from the backing source's own search,
490
+ for duplicate checks before filing:
491
+
492
+ - **Matching.** `text` is nonblank. Every whitespace-separated term must occur,
493
+ case-insensitively, in the title or the body; each term may hit either field.
494
+ `%`, `_` and `\` are literal. `state` resolves as in `list-ready` (exact, else
495
+ one case-insensitive match); `labels` are ANDed. Absent `state` searches every
496
+ state.
497
+ - **Paging.** `limit` is an integer from 1 to 100. Order is source-defined and
498
+ stable across pages: the PostgreSQL backend answers newest ticket number
499
+ first. `cursor` is opaque; pass the previous page's `cursor` with the same
500
+ text and filters. It is absent on the last page.
501
+ - **Hits.** `id`, `title`, `state`, `labels`, `kind` and `target` come from the
502
+ search read itself. Bodies are never returned, and there is no read per hit.
503
+ - **Refusals.** A backing source without search answers `409` with
504
+ `code: "search-unsupported"`. A malformed or foreign cursor answers `400` with
505
+ `code: "search-cursor-invalid"` and the `cursor`. Clients report them as
506
+ `TicketSearchUnsupported` and `TicketSearchCursorInvalid`. The service never
507
+ filters a full listing instead.
508
+ - **Authority.** `search` is an operator read: it requires project or owner
509
+ authority, and ticket grants and harvest delegations receive `403`.
510
+ - **Cost.** One request per page, answered by PostgreSQL in one bounded
511
+ statement. Cost follows the page, not the project's ticket count.
512
+
513
+ Every `/tickets/*` response, including errors, carries
514
+ `x-autobuild-ticket-search: 1`. A current client declares `search` only after a
515
+ response from the service has carried that header, settled on the response that
516
+ already finishes source construction, with no extra probe. Against a service
517
+ predating the operation (an ok response without the header) the client never
518
+ declares `search`, so callers refuse with `TicketSearchUnsupported` before any
519
+ request and nothing is listed. A `search` request that the service later refuses
520
+ with `404` or `400` and no header fails with `TicketSearchUnsupported`, with no
521
+ fallback, and the client stops declaring `search`.
522
+
523
+ The capability is additive. It does not change the remote BuildStore protocol
524
+ version, and released clients, which never send `search`, are unaffected.
@@ -27,10 +27,26 @@ heads require immutable commit ancestry proof against the accepted target and
27
27
  the destination base already used by replay. Missing capability or failed proof
28
28
  defers new replay. A non-descendant without kernel lineage records
29
29
  `target.rewritten` with branch,
30
- previous SHA and observed SHA, retains the accepted target, and raises watch/wait
31
- attention. Repeated rewrite pairs are deduplicated. Returning to a safe target
32
- clears attention (`target.rewrite-cleared` when the accepted tip is unchanged).
33
- Upstream force-pushes are never adopted automatically. Accepted node reparenting
30
+ previous SHA and observed SHA, and retains the accepted target. Repeated rewrite
31
+ pairs are deduplicated. Returning to a safe target clears the wait
32
+ (`target.rewrite-cleared` when the accepted tip is unchanged). Upstream
33
+ force-pushes are never adopted on top of existing work automatically:
34
+
35
+ - A leaf with no work of its own (no published head, no PR, no commits beyond
36
+ its base in use) is reprovisioned from the current target by its next runner,
37
+ without operator action: `target.rewrite-reprovision-prepared`, a branch
38
+ reset, then `target.rewrite-recovered` (`reprovisioned`). A runner that dies
39
+ mid-reset completes it forward.
40
+ - A leaf with work raises one `policy/target-rewritten` escalation per episode
41
+ (a run of rewrites of the same rejected base), naming that base, the new
42
+ target head and its own commits. `ab answer <slug> --accept-target` waives
43
+ the rejected base (`target.rewrite-recovered`, `accepted`) and restacks its
44
+ own commits onto the target at the next replay boundary; `ab abort` is the
45
+ other way out.
46
+ - A node waits, and raises watch/wait attention once per episode.
47
+
48
+ `ab build status` names a leaf's recovery state, and the base when the build's
49
+ first provision adopted it from a pre-existing branch. Accepted node reparenting
34
50
  starts a new branch scope; frozen transactions recover their retained inputs.
35
51
 
36
52
  Kernel restacks of a node are admitted through durable guarded publication
package/docs/setup.md CHANGED
@@ -24,6 +24,16 @@ Keep the default `git-worktree` provider unless the maintainer explicitly opts
24
24
  into remote builds. It creates local disposable worktrees and uses the tools,
25
25
  network, and credentials available to the dispatcher machine.
26
26
 
27
+ Local worktrees live outside the checkout, under
28
+ `$XDG_STATE_HOME/autobuild/worktrees/` (default `~/.local/state/…`), or in the
29
+ store's own `worktrees/` when a local store lies outside the checkout. They do
30
+ not inherit the checkout's `node_modules`, so `[commands].setup` must install
31
+ dependencies. If the destination resolves inside the checkout or has a
32
+ `node_modules` directory above it, new builds fail to provision and dispatch
33
+ shows a startup notice: set `XDG_STATE_HOME` to an absolute directory outside
34
+ the checkout with no `node_modules` above it, or select a local store outside
35
+ the checkout.
36
+
27
37
  For remote execution, set `[workspace].provider = "vercel-sandbox"`. A Vercel
28
38
  Sandbox is a fresh independent machine; a runtime that works on the setup
29
39
  machine is not evidence that it works there. Confirm all of these with the
@@ -111,7 +121,7 @@ allowlist entry; their real credentials remain on the dispatcher host.
111
121
 
112
122
  Keep package-level and checkout-level bootstrap in an idempotent
113
123
  `[commands].setup`. It runs after system provisioning and must remain safe to
114
- rerun on attachment. Do not repeatedly install OS packages there. Expose only
124
+ rerun on attachment and after every restack onto a new base. Do not repeatedly install OS packages there. Expose only
115
125
  required runtime credentials through
116
126
  `[workspace.config].environmentVariables`, keep generated caches disposable,
117
127
  and lock dependencies in the repository. A browser-capable repository should
@@ -141,7 +151,9 @@ exits nonzero on failure. Then:
141
151
  `bun ab dispatch`, then open their coding agent at the repository root with
142
152
  `ab-operate` loaded to specify, create and groom the first ticket. Check operator
143
153
  presence before taking the role; an existing operator picks up ready work.
144
- The setup agent must not start dispatch itself.
154
+ For dispatcher startup after setup, follow `ab-operate` ownership boundaries: check
155
+ fresh `dispatcherRunning`, honor repository instructions and the saved local
156
+ preference, or ask who should run it when unset.
145
157
 
146
158
  Validation is explicit and noninteractive. It does not dispatch, claim a
147
159
  ticket, or create build, phase, session, event, transcript, or artifact history.
@@ -1,14 +1,21 @@
1
1
  # Filing tickets with blockers safely
2
2
 
3
3
  `ab ticket create --blocked-by` validates prerequisite ids and records blocking
4
- relationships, but a single CLI command is **not an atomic publication guarantee**.
5
- In particular, direct Linear and GitHub create the issue first and add
6
- its blocker relationships in separate requests. If the issue is already in the
4
+ relationships, but on most sources a single CLI command is **not an atomic
5
+ publication guarantee**. Direct Linear creates the issue first and adds its
6
+ blocker relationships in separate requests. If the issue is already in the
7
7
  ready state, a dispatcher can see it before those relationships exist. A
8
8
  successful create response containing every blocker does not prove that no build
9
9
  was claimed during the request. Harvest's durable creation reservations protect
10
10
  its own filing workflow; ordinary interactive ticket creation has no such hold.
11
11
 
12
+ GitHub stages for you. A ready-bound create with blockers opens in triage,
13
+ records every blocker, and only then moves to ready. Claim also re-reads
14
+ blockers fresh, so one `create --blocked-by` never exposes an unblocked ready
15
+ ticket and needs no manual staging. A partial failure leaves the ticket in
16
+ triage, so reading it back still matters. The workflow below is the portable
17
+ procedure for any source whose create order you do not know.
18
+
12
19
  ## Safe interactive workflow
13
20
 
14
21
  For tickets with prerequisites, determine the intended final state from the
@@ -158,13 +158,14 @@ rejectedState = "rejected"
158
158
  - **Labels.** `readyLabels` defaults to `["autobuild"]`; `[]` removes the gate. Missing labels, [creation labels](#creation-labels) included, are created on demand. State and link labels are never part of a ticket's labels, and a write that names one is refused. The `autobuild:proposal` and `autobuild:aborted` labels that harvest and abort apply are ordinary labels, so `proposal` and `aborted` can't be states.
159
159
  - **Assignee.** `readyAssignee = "me"` keeps only issues assigned to the login that owns the GitHub credential; a username, including an Enterprise Managed User login such as `mona_acme`, names a specific user. The ready read itself is narrowed by assignee, an unassigned issue is never ready, and any one of several assignees matches. While `readyAssignee` is set, each scan reports open ready issues that carry every `readyLabels` entry but have no assignee in the ticket diagnostics, which `ab repository status` and the dashboards show, naming the ten lowest-numbered and counting the rest. The report never claims or assigns them; assigning one makes it claimable. `"me"` costs one `GET /user` per dispatcher start, never during a tick, so a reload that enables it needs no restart unless startup couldn't resolve the credential's owner.
160
160
  - **Assignees.** Tickets carry the issue's assignees as an `assignees` array of usernames in JSON reads, whether they were set on GitHub or through `ab`, and `ab ticket show` prints them. They aren't part of the ticket's `revision`. `--assignees` on `ab ticket create` and `ab ticket update`, and the `assignees` field of the operator `tickets.create` and `tickets.update` tools, set them: each entry is a username or `me`, at most ten entries counted before duplicates collapse, and an update replaces the whole set. `createAssignee = "me"` (or a username) assigns every ticket Autobuild creates, through `ab ticket create`, operator `tickets.create` and harvest proposals, unless the create names its own assignees; a harvest proposal goes to the owner of the filing dispatcher's credential. That pairs with `readyAssignee = "me"`, so each person's dispatcher picks up the tickets they file. A create or update fails, naming the cause and writing nothing, when `me` has no user behind the credential (a GitHub App installation token has none) or a user can't be assigned issues in the repository. GitHub silently drops assignees a token without push access sets, so a write whose assignees don't come back fails, naming the issue and saying it is unassigned; a retried harvest create adopts that issue, assigns it and adds any requested labels it is missing. A write naming assignees costs one check per user per process, `me` reuses the `readyAssignee` `GET /user`, and reads cost nothing extra.
161
- - **Blockers** are native issue dependencies ("blocked by"), visible on both issues, including ones added on GitHub. A blocker resolves when its issue is done. One in another repository never resolves and is named in the dependency diagnostics. An issue transferred to another repository is no longer a ticket here: its old number reads as missing, so it is never written and never resolves a blocker.
161
+ - **Blockers** are native issue dependencies ("blocked by"), visible on both issues, including ones added on GitHub. A blocker resolves when its issue is done. One in another repository never resolves and is named in the dependency diagnostics. GitHub's dependency summary lags the edges by seconds, so reads that can lead to a claim (`ab ticket show`, the ready scan, dependency checks) read the dependency list instead; broad listings (`ab ticket list` outside the ready state) and export trust the summary and can miss a blocker recorded seconds earlier. Claim re-reads the dependency list fresh: a ticket whose blocker was added after the scan's dependency check stays ready and counts as dependency-blocked until a later scan. `ab ticket create --blocked-by` into the ready state opens the issue in triage, records every blocker, then moves it to ready; a partial failure says so and leaves it in triage. An issue transferred to another repository is no longer a ticket here: its old number reads as missing, so it is never written and never resolves a blocker.
162
162
  - **Issue links.** The ticket's own issue is always a `closes` link that can't be removed. Links to other issues are labels named `autobuild-link:<intent> #<n>`, such as `autobuild-link:refs #820`, so they show on the issue and survive edits on GitHub. Each linked issue and intent adds one repository label, which appears in GitHub's label picker; unused link labels are never deleted.
163
163
  - **Comments and assets.** Dispatcher notices post as issue comments, but tickets carry no comment history, so `ab ticket show` lists none; export and import read comment history explicitly. Assets live in the BuildStore, with the usual note left as an issue comment.
164
164
  - **Nodes and targets.** A node is an issue with the exact `node` label. A ticket targets a node by being a sub-issue of the node's issue, so the node's sub-issue list on GitHub shows its children. A parent without the `node` label, or in another repository, is ordinary grouping: it gives no target, never blocks dispatch and is left untouched, so `--target` on such an issue is refused and `--no-target` doesn't remove it. Sub-issues and `node` labels added or removed on GitHub read the same as `ab ticket` writes. GitHub allows 100 direct sub-issues per issue and 8 levels of nesting. A repository label named `Node` or another casing must be renamed to `node` first.
165
165
  - **Export and import.** `ab ticket export` covers every issue, closed ones included. `ab ticket import` remaps every id to a new issue number and resumes by creation key, as the ticket migration procedure's GitHub section describes.
166
166
  - **Not supported:** guarded writes (`--expected-revision` is refused, as with Linear).
167
- - **Cost.** Dispatcher reads are conditional requests. Their validators live under the local state root, in `github-tickets/<owner>/<repo>/validators/`, and are evicted after 7 days unused, so a tick on an unchanged repository spends no primary rate-limit budget. A process without them, such as a cold hosted instance, pays one read sized by the ready candidates. A ready candidate whose parent issue isn't in the listing adds one conditional read of that parent, at most one per distinct parent. A node's completeness check reads the node issue and its sub-issues, conditionally, whatever the repository's size. With `readyAssignee` set, the unassigned-issue report adds one conditional read per scan, plus one per further page, which is free on an unchanged repository; its failure, a rate limit included, is a diagnostic that never stops assigned tickets from being listed and claimed. Rate limits surface as the ticket-source rate-limit error, with GitHub's reset time.
167
+ - **Cost.** Dispatcher reads are conditional requests. Their validators live under the local state root, in `github-tickets/<owner>/<repo>/validators/`, and are evicted after 7 days unused, so a tick on an unchanged repository spends no primary rate-limit budget. A process without them, such as a cold hosted instance, pays one read sized by the ready candidates. A ready candidate whose parent issue isn't in the listing adds one conditional read of that parent, at most one per distinct parent. Each ready candidate adds one conditional read of its dependency list, free while it is unchanged; a tick with no ready issues adds none. Each claim attempt adds one fresh dependency read, plus one per further page of 100 blockers. A node's completeness check reads the node issue and its sub-issues, conditionally, whatever the repository's size. With `readyAssignee` set, the unassigned-issue report adds one conditional read per scan, plus one per further page, which is free on an unchanged repository; its failure, a rate limit included, is a diagnostic that never stops assigned tickets from being listed and claimed. Rate limits surface as the ticket-source rate-limit error, with GitHub's reset time.
168
+ - **Search.** `ab ticket search` and `tickets.search` send one [`GET /search/issues`](https://docs.github.com/en/rest/search/search#search-issues-and-pull-requests) per page, scoped to the repository, newest filed first, with no read per hit, so hits carry no target. Matching is GitHub's case-insensitive word matching on title and body. The text splits on whitespace into words, and each word is quoted, so search syntax in the text stays literal; double quotes in the text are removed rather than read as phrase syntax, a word that was only quotes is dropped, and text with no words left is refused. The quoted words may total at most 256 characters. A label filter containing a comma or double quote, or a state filter containing a double quote, is refused before any request. GitHub serves only the first 1,000 matches; the page that reaches that cap says so in a diagnostic. Done and rejected filters follow close reasons as listings do, and closures from before GitHub's close reasons are done; because a state filter is applied to a broader GitHub query, a filtered page can come back shorter than its limit with a cursor still set, so follow the cursor. A reopened issue's stale state label reports its label's state until a read strips it, and GitHub's search index can lag a just-filed or relabelled issue by seconds. Search has its own [30-per-minute quota](https://docs.github.com/en/rest/rate-limit/rate-limit): exhausting it refuses only further searches until GitHub's reset, while listing and claiming continue. A [secondary rate limit](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits), or any limit GitHub doesn't attribute to the search quota, pauses the whole source until its reset, as for every other GitHub request.
168
169
  - **State counts** are display-only: one fresh GraphQL request per call, plus one more for each further page of 100 `autobuild:` labels, never cached and never reading issue history, with done and rejected subject to GitHub's search-index lag. Three cases approximate. A stale reopen label counts in its label's state until the first read strips it. An issue with two or more state labels counts once in each until its labels are fixed; the first read reports it. A closure that predates GitHub's close reasons reads as done but may count as rejected or `not-planned`, and never heals.
169
170
  - **Creation keys** live in a hidden marker in the issue body. A keyed create needs `idempotencyKeyReservedAt`; harvest supplies it.
170
171
 
@@ -256,6 +257,27 @@ File, Linear and GitHub retain fallback; the remote `HostedTicketSource`
256
257
  forwards pages to the service's native paging (`list-page`), falling back only
257
258
  against a service predating it. The POST list-ready protocol stays exhaustive.
258
259
 
260
+ Search is an optional API 1.11 ticket-source capability:
261
+ `search?(query: TicketSearchQuery): Promise<TicketSearchPage>`. It matches
262
+ every query word against titles and bodies, filters by state and labels, and
263
+ returns compact hits with an opaque cursor; `tickets.search` and
264
+ `ab ticket search` call it. The file source implements it with one tracker scan
265
+ per call, and the in-memory fake used for tests implements it too. The hosted
266
+ source searches through the service's `search` operation, which PostgreSQL
267
+ answers with one bounded statement per page; against a service predating it,
268
+ the hosted source refuses with `search-unsupported`. PostgreSQL search
269
+ case-folds title and body with the ICU root collation `und-x-icu`, so a server
270
+ built without ICU refuses search with `search-unsupported`; PostgreSQL 16 and
271
+ later build with ICU by default. The Linear source answers each page with one
272
+ GraphQL `issues` request filtered to the configured team: every query word must
273
+ match the title or description through Linear's `containsIgnoreCase`, newest
274
+ first, archived issues included. A hit lists at most 50 labels, with a
275
+ diagnostic beyond that. The GitHub source answers each page with one GitHub
276
+ issue search request scoped to the repository, using GitHub's case-insensitive
277
+ word matching on title and body; the GitHub section's **Search** bullet covers
278
+ its limits. Nothing falls back to a listing. See the
279
+ [optional ticket search capability](plugin-authoring.md#optional-ticket-search-capability).
280
+
259
281
  Bounded state counts are another optional capability:
260
282
  `countStates?(names: readonly string[]): Promise<TicketStateCount[]>`. It returns
261
283
  `{name, tickets}` for each requested name that resolves (exactly, else by one
package/docs/tickets.md CHANGED
@@ -41,6 +41,12 @@ The spec standard asks for:
41
41
 
42
42
  Your operator agent grooms the ticket with you using `ab-spec`, then moves it to the ready state with any required labels. Dispatch's spec gate returns ready tickets that can't become conforming specs to Triage with an explanation.
43
43
 
44
+ Before filing, search for a ticket that already covers the work (MCP `tickets.search`). It matches every word against titles and bodies in every state; sources without search refuse and name themselves.
45
+
46
+ ```sh
47
+ bun ab ticket search "close stale sandboxes"
48
+ ```
49
+
44
50
  When the work comes from a forge issue, record it on the ticket: `--issues 824` when the ticket fully resolves issue #824 (`closes`, the default), or `--issues 820:refs` when it only partly addresses it. `ab ticket update --issues` replaces the set and `--issues ''` clears it. Sources that can't store issue links refuse the write and name the source.
45
51
 
46
52
  A build freezes the links when it claims the ticket. On GitHub, a leaf build that targets the default branch writes `Closes #824` or `Refs #820` lines at the end of its PR body and before the trailers of its landed commit, so merging closes each fully resolved issue and back-links the rest. A leaf that targets a node branch writes only `Refs` lines into its PR body, which never close anything, and none into its landed commit; its links ride up to the root node's PR into the default branch, together with the node's own links, so they close when the node lands. A build that turns out to only partly resolve an issue downgrades it to `refs` with a recorded reason.
@@ -87,7 +93,7 @@ Ordinary intake claims only tickets in the ready state with the required labels
87
93
  - **Destination and capacity.** Its target must accept new work, and a capacity slot must be free and not reserved for an integration node awaiting verification, a finished build waiting to re-verify or reconcile, or a build resuming after its ticket wait ends; each of those is admitted before normal claims (see [slot admission order](dispatcher.md#slot-admission-order)). A pending `ab start` request reserves a slot ahead of the claims and parked work its tier outranks.
88
94
  - **Open-PR backpressure.** When the repository configures `maxOpenPrs` and that many root build PRs are open and unmerged, the dispatcher pauses ordinary ready-queue normal-priority claims, even with a free slot, until the count drains to `resumeOpenPrs` (below `maxOpenPrs` when the two are equal). Urgent tickets bypass this gate, and so does every `ab start` tier, which still respects capacity and repository pause. See [`[policy]`](configuration.md#policy) for the thresholds.
89
95
 
90
- When a slot is free, the dispatcher takes urgent ready tickets first, then normal ones, each in the source's order. Urgent tickets also go ahead of normal builds waiting to re-verify, reconcile or resume, though not ahead of urgent ones. A claimed ticket's priority becomes its build's priority; to expedite a build that already exists, run `ab priority <slug> urgent`. Urgent tickets also bypass open-PR backpressure: a blocked urgent ticket waits like any other while normal work proceeds, and an urgent ticket never stops or pauses a running build. The web dashboard's Queue tab lists tickets in the same order and marks urgent ones `URGENT`; the mark shows priority, not that the ticket will dispatch next.
96
+ When a slot is free, the dispatcher takes urgent ready tickets first, then normal ones, each in the source's order. Urgent tickets also go ahead of normal builds waiting to re-verify, reconcile or resume, though not ahead of urgent ones. An ordinary claimed ticket's priority becomes its build's priority. An [optimization node's attempts](optimization-nodes.md#attempts) claim at the node's current priority instead: a later `ab priority` on the node affects attempts claimed afterwards, while an already claimed attempt keeps its build priority. To expedite a build that already exists, run `ab priority <slug> urgent`. Urgent tickets also bypass open-PR backpressure: a blocked urgent ticket waits like any other while normal work proceeds, and an urgent ticket never stops or pauses a running build. The web dashboard's Queue tab lists tickets in the same order and marks urgent ones `URGENT`; the mark shows priority, not that the ticket will dispatch next.
91
97
 
92
98
  Before ready filing, the agent checks `ab repository status --json`. With live
93
99
  `operator.registrations`, it records intent, rejected alternatives and out-of-scope
@@ -61,6 +61,14 @@ bun ab harvest status
61
61
  - **Capacity:** paused unfinished work, and work blocked on a question, keeps its slot; builds waiting for a merge decision, builds waiting on other tickets, and idle collecting nodes take none. A finished build that must re-verify or reconcile, or a build whose ticket wait ended, reserves a slot ahead of normal claims; urgent work, including urgent ready tickets, goes first, and `ab priority <slug> urgent` expedites a waiting build. Node verification and reconciliation account specially for descendants' slots.
62
62
  - **Harvest:** check the acknowledged harvest gate and unclaimed observations. Harvest triggers at `policy.harvestThreshold` observations, or `policy.harvestMaxDrift` other merged builds since the oldest observation (zero disables drift), and uses no build slot.
63
63
 
64
+ ## Worktree destination not isolated
65
+
66
+ **Symptom.** Dispatch shows `new build worktrees cannot be provisioned: build worktree root … is not isolated` or `… resolves inside the checkout`, and new builds record a workspace-stage dispatch failure.
67
+
68
+ **Cause.** Local build worktrees must sit outside the checkout's package ancestry. The destination under `$XDG_STATE_HOME/autobuild/worktrees/` resolves inside the checkout, or a directory above it holds `node_modules`.
69
+
70
+ **Fix.** Set `XDG_STATE_HOME` to an absolute directory outside the checkout with no `node_modules` above it, remove the stray `node_modules` the message names, or select a local store outside the checkout. Builds already in a worktree keep running and release meanwhile.
71
+
64
72
  ## Authentication failures
65
73
 
66
74
  **Symptom.** Ticket requests, forge operations, agent launches or hosted reads report missing or rejected credentials. Each service has its own credential and scope.
@@ -185,11 +185,12 @@ Autobuild's own chain: this repository's choices, not defaults.
185
185
  | 7 | ui-tui | agent | captures terminal-dashboard frames and judges them |
186
186
  | 8 | ui-app | agent | captures operator web-app frames and judges them against the design; the capture first mounts each depicted page the same way |
187
187
  | 9 | ui-website | agent | captures site and docs frames at desktop and phone widths, compared with approved references |
188
- | 10 | docs | agent | fails when a `docs/` passage no longer matches the build's user-facing changes |
188
+ | 10 | ui-web | agent | captures the design-system catalog and the `ab web` pages at both grounds and widths, failing any page whose cumulative layout shift exceeds 0.002 |
189
+ | 11 | docs | agent | fails when a `docs/` passage no longer matches the build's user-facing changes |
189
190
 
190
- Steps 5 to 10 are optional. Integration covers every package plus `tools/`, `scripts/` and `bin/`, and applies to every build because many of its tests check skills, docs and configuration. Steps 6 to 10 are path-scoped. App-load is the step that catches a web-app page failing to load in a browser. Its paths cover every file the web app's client bundle reads: the app, the hosted service source, `packages/core/src/`, the capture tooling and the workspace manifests. A kernel-only diff that changes what the dashboard bundles still runs it, while docs-, skills- and website-only diffs skip it. Steps 7 to 10 run through repository skills `verify-ui-tui`, `verify-ui-app`, `verify-ui-website` and `verify-docs`. The docs step applies to product source, skills, templates, `SPEC.md`, `README.md` and `docs/`.
191
+ Steps 5 to 11 are optional. Integration covers every package plus `tools/`, `scripts/` and `bin/`, and applies to every build because many of its tests check skills, docs and configuration. Steps 6 to 11 are path-scoped. App-load is the step that catches a web-app page failing to load in a browser. Its paths cover every file the web app's client bundle reads: the app, the hosted service source, `packages/core/src/`, the capture tooling and the workspace manifests. A kernel-only diff that changes what the dashboard bundles still runs it, while docs-, skills- and website-only diffs skip it. Steps 7 to 11 run through repository skills `verify-ui-tui`, `verify-ui-app`, `verify-ui-website`, `verify-ui-web` and `verify-docs`. The docs step applies to product source, skills, templates, `SPEC.md`, `README.md` and `docs/`.
191
192
 
192
- A plan for a docs change like this page selects lint, types, unit, build, integration, ui-website and docs; both of the last two pass their path checks because they cover `docs/`. The untouched app-load, ui-tui and ui-app steps aren't selected.
193
+ A plan for a docs change like this page selects lint, types, unit, build, integration, ui-website and docs; both of the last two pass their path checks because they cover `docs/`. The untouched app-load, ui-tui, ui-app and ui-web steps aren't selected.
193
194
 
194
195
  Grouped failures retain the legacy `feedback.verify` object for the first report
195
196
  in configured order. A decisive `verify.stage-failed` receipt carries the full
@@ -20,6 +20,8 @@ Install with `bun add -d --exact @defrex/autobuild`. Examples are complete `auto
20
20
 
21
21
  The default, for builds on your own machine. Needs Git, a writable repository and scratch location, and your runtime and check tools on the host. No workspace credential.
22
22
 
23
+ Worktrees live outside the checkout, under `$XDG_STATE_HOME/autobuild/worktrees/` (default `~/.local/state/…`) or a local store's own `worktrees/` when the store is outside the checkout. Each new worktree is checked first: it must not resolve inside the checkout or have `node_modules` above it ([fix](troubleshooting.md#worktree-destination-not-isolated)). Worktrees don't inherit the checkout's dependencies, so `[commands].setup` installs them.
24
+
23
25
  <!-- seam-config:start -->
24
26
  ```toml
25
27
  forge = "local-git"
@@ -41,6 +43,7 @@ Run `bun ab init`, install and authenticate your runtime, then run `bun ab init
41
43
  - **Isolation.** Each build gets its own directory and branch over the shared Git object database. Files are isolated; host processes, network and credentials aren't.
42
44
  - **No options.** No `[workspace.config]` and no provisioning; system packages must already be on the host.
43
45
  - **Resume.** Intact reprovision keeps uncommitted work; a lost directory is rebuilt from branch and publication evidence, never a newer base.
46
+ - **First provision.** A new leaf build never adopts an existing local branch of its name: it cuts from the base and keeps the old tip under `refs/autobuild/displaced/<branch>/<sha>`. A worktree holding that branch is detached in place, and moved to `<worktree root>/.displaced/` if it sits at the build's path, with its files untouched.
44
47
  - **Release** is idempotent and removes the working copy, not the forge branch.
45
48
 
46
49
  ### Vercel Sandbox (`vercel-sandbox`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defrex/autobuild",
3
- "version": "1.10.0",
3
+ "version": "1.11.1",
4
4
  "description": "Agent-driven software delivery from groomed ticket to merged PR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -128,6 +128,7 @@
128
128
  "capture:web-dashboard": "bun packages/web-dashboard-capture/src/web-dashboard-capture.tsx",
129
129
  "check:app-load": "bun packages/web-dashboard-capture/src/client-load.ts && AB_APP_LOAD_BROWSER_TEST=1 bun test packages/web-dashboard-capture/src/client-load.browser.integration.test.ts",
130
130
  "capture:website": "bun tools/website-capture.ts",
131
+ "capture:ui-web": "bun tools/ui-web-capture.ts",
131
132
  "website:dev": "bun packages/website/src/dev.ts",
132
133
  "website:build": "bun packages/website/src/build.ts",
133
134
  "capture:readme-headline": "bun tools/readme-headline.ts",
@@ -139,11 +140,14 @@
139
140
  "docs:baseline": "bun packages/website/src/docs-baseline.ts",
140
141
  "check": "bun tools/biome-check.ts && bun tools/product-name-check.ts && bun tools/docs-asset-check.ts && bun tools/reducer-value-shapes.ts --check && bun tools/configuration-reference.ts --check && bun tools/docs-reference-sync.ts && bun tools/docs-integrity-check.ts && bun tools/skill-docs-asset-check.ts && bun tools/readme-headline.ts --check && bun tools/website-hero.ts --check && bun tools/package-boundary-check.ts && bun tools/publish-dependencies-check.ts",
141
142
  "check:build": "bun tools/workspace-manifest-check.ts && bun tools/bin-mode-check.ts && bun tools/publish-contents-check.ts && bun tools/publish-imports-check.ts",
142
- "format:staged": "git-format-staged --formatter './node_modules/.bin/biome format --stdin-file-path {}' '*.js' '*.jsx' '*.ts' '*.tsx' '*.json' '*.jsonc' '*.css' '*.graphql' '*.gql'",
143
+ "format:staged": "git-format-staged --formatter './node_modules/.bin/biome format --stdin-file-path {}' '*.js' '*.jsx' '*.ts' '*.tsx' '*.json' '*.jsonc' '*.css' '*.graphql' '*.gql' '!packages/core/src/web/assets/*'",
143
144
  "prepare": "husky",
144
145
  "test": "bun tools/test-temp-leaks.ts unit",
145
146
  "test:integration": "bun tools/test-temp-leaks.ts integration",
146
- "typecheck": "node --max-old-space-size=4096 ./node_modules/typescript/bin/tsc --noEmit"
147
+ "typecheck": "node --max-old-space-size=4096 ./node_modules/typescript/bin/tsc --noEmit",
148
+ "ui:catalog": "bun packages/ui/scripts/catalog.ts",
149
+ "ui:tokens": "bun packages/ui/scripts/tokens.ts",
150
+ "ui:web": "bun packages/ui/scripts/web.ts"
147
151
  },
148
152
  "dependencies": {
149
153
  "@ai-sdk/gateway": "4.0.82",
@@ -158,8 +162,8 @@
158
162
  },
159
163
  "devDependencies": {
160
164
  "@biomejs/biome": "2.5.5",
161
- "@defrex/autobuild-postgres-store": "1.10.0",
162
- "@defrex/autobuild-vercel-sandbox": "1.10.0",
165
+ "@defrex/autobuild-postgres-store": "1.11.1",
166
+ "@defrex/autobuild-vercel-sandbox": "1.11.1",
163
167
  "@resvg/resvg-js": "2.6.2",
164
168
  "@types/bun": "^1.3.14",
165
169
  "@types/node": "^24.0.0",