@defrex/autobuild 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +738 -68
  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 +155 -25
  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 +63 -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 +101 -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 +178 -76
  41. package/packages/core/src/cli/dashboard/render.ts +129 -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 +29 -38
  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 +200 -34
  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 +97 -43
  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 +316 -0
  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/79f0e0f4ccd43ba2.json +455 -0
  88. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/859c09edac738823.json +1086 -0
  89. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a283c1f3462b1cc1.json +81 -0
  90. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a6e570fb126991ff.json +36 -0
  91. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/a8acf22c968b6e3d.json +81 -0
  92. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/ba7b85895bf6698e.json +1153 -0
  93. package/packages/core/src/kernel/__snapshots__/reducer-identity-records/fc66408cde0b6b04.json +637 -0
  94. package/packages/core/src/kernel/build-roster.ts +230 -0
  95. package/packages/core/src/kernel/dispatch-capacity.ts +4 -2
  96. package/packages/core/src/kernel/engine.ts +43 -5
  97. package/packages/core/src/kernel/execution-intervals.ts +61 -0
  98. package/packages/core/src/kernel/generators/optimization-log.ts +101 -0
  99. package/packages/core/src/kernel/generators/repository-journals.ts +13 -0
  100. package/packages/core/src/kernel/leaf-restack-base.ts +33 -7
  101. package/packages/core/src/kernel/leaf-restack-state.ts +82 -3
  102. package/packages/core/src/kernel/log-index.ts +19 -0
  103. package/packages/core/src/kernel/optimization-admission.ts +244 -3
  104. package/packages/core/src/kernel/optimization.ts +183 -4
  105. package/packages/core/src/kernel/phase-failures.ts +121 -0
  106. package/packages/core/src/kernel/published-branch-head.ts +60 -0
  107. package/packages/core/src/kernel/reducer-registry.ts +27 -8
  108. package/packages/core/src/kernel/reducer-revisions.ts +25 -0
  109. package/packages/core/src/kernel/reducer.ts +63 -4
  110. package/packages/core/src/kernel/rollup.ts +61 -0
  111. package/packages/core/src/kernel/setup-streak.ts +38 -0
  112. package/packages/core/src/kernel/step-durations.ts +257 -0
  113. package/packages/core/src/kernel/target-observation.ts +6 -1
  114. package/packages/core/src/kernel/target-rewrite-recovery.ts +116 -0
  115. package/packages/core/src/kernel/verify-diff-base.ts +5 -0
  116. package/packages/core/src/kernel/verify-stages.ts +13 -3
  117. package/packages/core/src/ontology.ts +5 -0
  118. package/packages/core/src/operator/agent-context-serve.ts +631 -0
  119. package/packages/core/src/operator/annotations.ts +75 -5
  120. package/packages/core/src/operator/attention.ts +470 -0
  121. package/packages/core/src/operator/canonical-skills.ts +35 -0
  122. package/packages/core/src/operator/cli-equivalents.ts +270 -0
  123. package/packages/core/src/operator/context-prompts.ts +61 -0
  124. package/packages/core/src/operator/index.ts +49 -1
  125. package/packages/core/src/operator/landings.ts +28 -19
  126. package/packages/core/src/operator/optimization.ts +7 -0
  127. package/packages/core/src/operator/protocol.ts +3 -0
  128. package/packages/core/src/operator/query.ts +122 -72
  129. package/packages/core/src/operator/read-view.ts +5 -2
  130. package/packages/core/src/operator/registry.ts +406 -46
  131. package/packages/core/src/operator/requests.ts +20 -18
  132. package/packages/core/src/operator/sandbox-host.ts +107 -11
  133. package/packages/core/src/operator/sandbox-resolver.ts +253 -0
  134. package/packages/core/src/operator/sandbox.ts +778 -82
  135. package/packages/core/src/operator/ticket-asset-list.ts +77 -0
  136. package/packages/core/src/operator/ticket-assets.ts +167 -0
  137. package/packages/core/src/operator/tickets.ts +33 -2
  138. package/packages/core/src/plugin-sdk/index.ts +22 -0
  139. package/packages/core/src/plugins/manifest.ts +1 -1
  140. package/packages/core/src/ports/forge/fake.ts +92 -1
  141. package/packages/core/src/ports/forge/git-blob.ts +15 -0
  142. package/packages/core/src/ports/forge/github.ts +82 -0
  143. package/packages/core/src/ports/forge/local-git.ts +61 -1
  144. package/packages/core/src/ports/forge-failure.ts +24 -0
  145. package/packages/core/src/ports/runner/antigravity-test.fixture.ts +149 -0
  146. package/packages/core/src/ports/runner/claude-test.fixture.ts +71 -0
  147. package/packages/core/src/ports/runner/codex-test.fixture.ts +63 -0
  148. package/packages/core/src/ports/tickets/contract.ts +71 -0
  149. package/packages/core/src/ports/tickets/fake.ts +11 -0
  150. package/packages/core/src/ports/tickets/file.ts +18 -0
  151. package/packages/core/src/ports/tickets/github-fake.ts +136 -4
  152. package/packages/core/src/ports/tickets/github.ts +387 -30
  153. package/packages/core/src/ports/tickets/hosted-index.ts +10 -0
  154. package/packages/core/src/ports/tickets/linear.ts +130 -0
  155. package/packages/core/src/ports/tickets/priority.ts +9 -0
  156. package/packages/core/src/ports/tickets/remote-protocol.ts +34 -0
  157. package/packages/core/src/ports/tickets/remote.ts +70 -6
  158. package/packages/core/src/ports/tickets/search.ts +139 -0
  159. package/packages/core/src/ports/types.ts +104 -2
  160. package/packages/core/src/ports/workspace/builtin-capabilities.ts +9 -0
  161. package/packages/core/src/ports/workspace/create.ts +15 -1
  162. package/packages/core/src/ports/workspace/fake.ts +340 -12
  163. package/packages/core/src/ports/workspace/git-worktree.ts +833 -42
  164. package/packages/core/src/ports/workspace/operator-sandbox.ts +129 -12
  165. package/packages/core/src/ports/workspace/process-group.ts +48 -0
  166. package/packages/core/src/ports/workspace/vercel-sandbox.ts +1260 -123
  167. package/packages/core/src/processes/agent-context-assemble.ts +576 -0
  168. package/packages/core/src/processes/agent-context.ts +469 -0
  169. package/packages/core/src/processes/build-runner.ts +387 -236
  170. package/packages/core/src/processes/dispatcher.ts +211 -55
  171. package/packages/core/src/processes/execution-no-progress.ts +4 -0
  172. package/packages/core/src/processes/optimization-activity.ts +120 -0
  173. package/packages/core/src/processes/phase-failure-budget.ts +1 -0
  174. package/packages/core/src/processes/repo-view.ts +78 -2
  175. package/packages/core/src/processes/sandbox-state.ts +53 -6
  176. package/packages/core/src/processes/tick-publication.ts +2 -0
  177. package/packages/core/src/processes/workspace-preparation.ts +76 -0
  178. package/packages/core/src/scenarios/harness.ts +0 -5
  179. package/packages/core/src/store/account-redaction.ts +1 -0
  180. package/packages/core/src/store/adapter.ts +52 -1
  181. package/packages/core/src/store/agent-context.ts +432 -0
  182. package/packages/core/src/store/build-feed.ts +291 -0
  183. package/packages/core/src/store/build-scope.ts +19 -1
  184. package/packages/core/src/store/contract.ts +911 -14
  185. package/packages/core/src/store/digest.ts +19 -6
  186. package/packages/core/src/store/histogram.ts +113 -0
  187. package/packages/core/src/store/local/schema.ts +62 -0
  188. package/packages/core/src/store/local/store.ts +628 -22
  189. package/packages/core/src/store/local/ticket-asset-heads.ts +23 -0
  190. package/packages/core/src/store/memory.ts +461 -69
  191. package/packages/core/src/store/open-builds.ts +19 -0
  192. package/packages/core/src/store/phase-session.ts +32 -4
  193. package/packages/core/src/store/reduced-reads.ts +14 -4
  194. package/packages/core/src/store/reducer-value-shapes.json +6987 -5749
  195. package/packages/core/src/store/reducer-values.ts +6 -1
  196. package/packages/core/src/store/remote/client.ts +208 -2
  197. package/packages/core/src/store/remote/compatibility.ts +1 -1
  198. package/packages/core/src/store/remote/index.ts +33 -0
  199. package/packages/core/src/store/remote/protocol.ts +69 -0
  200. package/packages/core/src/store/remote/released-clients.json +11 -0
  201. package/packages/core/src/store/remote/released-reducer-values/1.11.0.json +35680 -0
  202. package/packages/core/src/store/remote/released-reducer-values/index.ts +18 -16
  203. package/packages/core/src/store/retention.ts +23 -1
  204. package/packages/core/src/store/rollups.ts +337 -0
  205. package/packages/core/src/store/session-handle.ts +20 -2
  206. package/packages/core/src/store/snapshots.ts +10 -0
  207. package/packages/core/src/store/types.ts +108 -9
  208. package/packages/core/src/testing/dispatch-read-budget.ts +1092 -2
  209. package/packages/core/src/testing/git-config-isolation.ts +7 -5
  210. package/packages/core/src/testing/index.ts +27 -0
  211. package/packages/core/src/testing/memory-operator-sandbox.ts +346 -0
  212. package/packages/core/src/testing/reduced-read-budget.ts +1873 -98
  213. package/packages/core/src/web/analytics-source.ts +303 -0
  214. package/packages/core/src/web/assets/Atkinson-OFL.txt +93 -0
  215. package/packages/core/src/web/assets/AtkinsonHyperlegibleNext.latin.woff2 +0 -0
  216. package/packages/core/src/web/assets/JetBrains-OFL.txt +93 -0
  217. package/packages/core/src/web/assets/JetBrainsMono.latin.woff2 +0 -0
  218. package/packages/core/src/web/assets/app.css +1 -0
  219. package/packages/core/src/web/assets/app.js +9 -0
  220. package/packages/core/src/web/assets/manifest.json +31 -0
  221. package/packages/core/src/web/assets/theme.js +1 -0
  222. package/packages/core/src/web/bounded.ts +31 -0
  223. package/packages/core/src/web/http.ts +315 -0
  224. package/packages/core/src/web/hub.ts +160 -0
  225. package/packages/core/src/web/options.ts +38 -0
  226. package/packages/core/src/web/overview-source.ts +322 -0
  227. package/packages/core/src/web/page.ts +56 -0
  228. package/packages/core/src/web/protocol.ts +151 -0
  229. package/packages/core/src/web/read-only.ts +23 -0
  230. package/packages/core/src/web/repository-source.ts +35 -0
  231. package/packages/core/src/web/server.ts +97 -0
  232. package/skills/code-review/SKILL.md +10 -2
  233. package/skills/guide/SKILL.md +366 -52
  234. package/skills/guide/references/accounts.md +2 -1
  235. package/skills/guide/references/integration-tree.md +2 -2
  236. package/skills/guide/references/operator-api.md +134 -6
  237. package/skills/guide/references/optimization-nodes.md +69 -11
  238. package/skills/guide/references/plugin-authoring.md +37 -1
  239. package/skills/guide/references/remote-store-protocol.md +94 -13
  240. package/skills/guide/references/remote-ticket-protocol.md +40 -0
  241. package/skills/guide/references/restacking.md +20 -4
  242. package/skills/guide/references/setup.md +14 -2
  243. package/skills/guide/references/ticket-dependencies.md +10 -3
  244. package/skills/implement/SKILL.md +23 -4
  245. package/skills/operate/SKILL.md +134 -32
  246. package/skills/plan/SKILL.md +10 -4
  247. package/skills/plan-review/SKILL.md +9 -2
  248. package/skills/spec/SKILL.md +34 -8
  249. package/skills/tickets/SKILL.md +51 -5
  250. package/templates/hosted-service/package.json +2 -2
@@ -20,9 +20,11 @@ edits the repository, and never touches a build's checkout. Its reach is the
20
20
  operator surface — the `ab` CLI, or the operator tool registry exposed through MCP.
21
21
 
22
22
  Find your setting and read that section: **Running locally with the `ab`
23
- CLI** if you are a session with a shell, **Running as an external connected agent** if
24
- your tools are the registry's `builds.*` / `tickets.*` family. The sections
25
- after them apply to both.
23
+ CLI** if you run at the repository root with a shell and the CLI, **Running as an
24
+ external connected agent** if you are connected over MCP and your tools are the
25
+ registry's `builds.*` / `tickets.*` family. A connected agent has no shell and no
26
+ `ab` CLI of its own. The sections after them apply to both, and a connected agent
27
+ maps each `ab` command they name to its tool as the next section describes.
26
28
 
27
29
  ## Running locally with the `ab` CLI
28
30
 
@@ -274,9 +276,9 @@ that appear after you arm. Finishing the initially queued set is no reason to st
274
276
  alive and keep discovering work until the human ends or hands off the role.
275
277
 
276
278
  Use `ab wait` and named unflagged watches only as separate diagnostics. They
277
- cannot replace the registered monitor or its cursor. In MCP, poll
278
- `repository.events` for repository attention and `builds.events` for each build;
279
- operator presence is not exposed there, and its
279
+ cannot replace the registered monitor or its cursor. In MCP, start each round
280
+ with `repository.attention` (see the connected-agent section); operator presence
281
+ is not exposed there, and its
280
282
  `repository.status` marks presence `unavailable` rather than absent.
281
283
 
282
284
  ### Inspect
@@ -306,6 +308,10 @@ Read events with a cursor or a small `--events` count; logs are long.
306
308
  text for a bare retry. `--dismiss` retires cited review findings,
307
309
  `--review-round-ceiling <n>` raises the round limit, `--revise-spec <file>`
308
310
  resolves with a revised spec; `--revise-spec-from-ticket` imports an amended ticket.
311
+ `--accept-target` answers only a target-rewritten escalation: a leaf whose
312
+ target was force-pushed while it had work of its own. It restacks the build's
313
+ own commits onto the current target; abort is the alternative. A leaf with no
314
+ work recovers from a rewritten target by itself and raises nothing.
309
315
  Idle collecting or verification-failed nodes need no escalation and recollect
310
316
  for verification on the same head; children and contributions remain intact.
311
317
  Active work, pause, pending controls and merge intent refuse revision. Leaves
@@ -402,8 +408,9 @@ For feature sets you file yourself, consult the shared
402
408
  explicitly choose root or a node, evaluate the repository's effective merge
403
409
  policy, and explain the merge flow to the human. Ask when intent is unclear.
404
410
 
405
- `ab ticket create|update|block|unblock|list|show|move|states` file, edit, and
406
- move tickets; the `ab-tickets` skill covers the tracker's details. A ticket
411
+ `ab ticket create|update|block|unblock|list|search|show|move|states` file, find,
412
+ edit, and move tickets; the `ab-tickets` skill covers the tracker's details.
413
+ Run `ab ticket search` for duplicates before filing. A ticket
407
414
  filed from a forge issue carries it with `--issues N` (`closes`), or
408
415
  `--issues N:refs` when the work only partly addresses it. Moving a
409
416
  ticket into the ready state sends it to dispatch — do that only when the
@@ -413,7 +420,9 @@ The dispatcher claims urgent ready tickets before normal ones, each in source
413
420
  order, and ahead of normal builds waiting for a slot to re-verify, reconcile or
414
421
  resume. To expedite a ticket, such as a fix for a stuck build, mark it urgent
415
422
  with `--priority urgent` on create or update; never move other ready tickets
416
- out of ready to make room. A claimed ticket's priority becomes its build's.
423
+ out of ready to make room. A claimed ticket's priority becomes its build's,
424
+ except that an optimization node's attempts claim at the node's current
425
+ priority; a claimed attempt keeps its own.
417
426
  To expedite a build that already exists — a waiting reconcile or re-verify
418
427
  that now blocks other work — run `ab priority <slug> urgent` (MCP:
419
428
  `builds.control` with action `priority` and `priority: "urgent"`); `normal`
@@ -451,16 +460,57 @@ human and recommend setting that key rather than inventing a custom state.
451
460
  The registry has operator notes, harvest control, and `discard`, which have no
452
461
  CLI equivalent, and no bulk control beyond `pause --all` / `resume --all`. Say
453
462
  so rather than improvising; tell the human, or record it with `ab observe`
454
- when you are inside a build. `ab mcp` mounts the same registry over MCP for
455
- harnesses that support it — if you have those tools, the connected-agent section's tool
456
- descriptions apply.
463
+ when you are inside a build. `ab mcp` mounts the same registry over MCP for a
464
+ local harness that supports it; its tools then work as the connected-agent
465
+ section describes.
457
466
 
458
467
  ## Running as an external connected agent
459
468
 
460
469
  This section applies when an external agent harness connects to the operator
461
- registry through MCP. With a shell and the `ab` CLI, use the section above.
462
- Follow each advertised tool schema, including its repository arguments; do not
463
- assume repository identity is injected into calls.
470
+ registry through MCP. You have no shell and no `ab` CLI: you read context
471
+ through the context tools, explore code in the sandbox, and act through
472
+ operator tools. Which repository you act on depends on the connector:
473
+
474
+ - **Per-repository connector** (a URL such as `<origin>/mcp/github.com/acme/widgets`,
475
+ copied from the project's Settings tab): it serves that one repository. Its
476
+ tools have no `repo` argument; do not add one, because a `repo` naming
477
+ another repository is refused.
478
+ - **Deployment-wide connector** (`<origin>/mcp`): every tool requires `repo`.
479
+ Call `repositories.list` to find the identities you can reach.
480
+
481
+ Either way, follow each advertised tool schema exactly.
482
+
483
+ ### Load context first
484
+
485
+ The server instructions list each repository's skills and agent instructions.
486
+ Before acting:
487
+
488
+ 1. Call `context.list`. It returns the repository's skills with descriptions,
489
+ its agent instructions files (`AGENTS.md`, `CLAUDE.md`) with their scopes, and
490
+ which to load before operating and before ticket work.
491
+ 2. Read this skill (`ab-operate`) and the repository's agent instructions with
492
+ `context.read`, or invoke the MCP prompt named for the skill. Follow a
493
+ relative link in a file by passing it as `path` with the file as `from`.
494
+ 3. Treat the agent instructions as the repository's own rules: they win over
495
+ Autobuild skills for that repository. Their commands and rules about local
496
+ processes apply inside the sandbox.
497
+
498
+ Every `context.read` result starts with a generated preamble that maps each
499
+ `ab` command the file mentions to the tool that performs it, or says the
500
+ command is for build sessions, for the sandbox, or for a human on the host. A
501
+ repository with no captured context serves the canonical skills bundled with
502
+ Autobuild, and the index says so.
503
+
504
+ ### Explore in the sandbox
505
+
506
+ Read code, docs and history in your operator sandbox, a persistent checkout of
507
+ the repository: `sandbox.open`, poll `sandbox.status` until it is ready, then
508
+ `sandbox.exec`, `sandbox.read_file`, and `sandbox.close` when you are done. Run
509
+ repository commands there, including the `ab` commands a preamble marks for the
510
+ sandbox. The sandbox holds no store, forge or model credentials, so every build
511
+ and ticket action still goes through the operator tools. Sandbox tools are
512
+ offered only where the repository's config enables `[orchestrator]`; otherwise
513
+ they are absent or refuse with a `sandbox-*` code.
464
514
 
465
515
  ### How you run
466
516
 
@@ -477,10 +527,26 @@ Do not assume session-owner delegation or a runner-provided repository scope.
477
527
  Respect a human denial as a firm no. Any approval or suspension flow in your
478
528
  external harness belongs to that harness. Protocol session approval answers are durable records only. Do not repeat completed work when your harness resumes.
479
529
 
530
+ ### Each round
531
+
532
+ Begin every operator round with `repository.attention`. One call returns
533
+ everything waiting on you: blocked builds with their open escalation questions,
534
+ merges awaiting consent or held, repository attention events after your cursor,
535
+ builds paused, stalled or failing verification, and dispatcher attention. Each
536
+ item's `resolve` names the tool call that acts on it, primary first; `by:
537
+ "human"` marks a condition you report rather than fix. Act on each item, then
538
+ pass back `events.cursor` next round. Omit the cursor on the first call to get
539
+ a baseline; on `code: "cursor-too-old"`, call again without one.
540
+
480
541
  ### The tool surface
481
542
 
482
543
  Your tools are the operator registry. The read-only ones are always safe:
483
544
 
545
+ - `context.list`, `context.read` — the repository's skills and agent
546
+ instructions, with a generated preamble on each read. Call them first.
547
+ - `repository.attention` — the attention digest: everything waiting on the
548
+ operator, each item naming its resolving tool call. The first call of each
549
+ round.
484
550
  - `builds.list` — active, queued, or all builds, with effective status.
485
551
  - `builds.get` — one build's detail.
486
552
  - `builds.events` — one build's event log from a cursor (use a cursor; logs
@@ -488,14 +554,15 @@ Your tools are the operator registry. The read-only ones are always safe:
488
554
  - `builds.artifact` — one artifact's bytes, base64-encoded.
489
555
  - `repository.status` — the repository's derived status. Its `operator.presence`
490
556
  is `unavailable`: it does not load presence, so it is not evidence of absence.
491
- - `repository.events` — your repository attention watch: the repository journal
492
- after a `cursor`, with an optional bounded `waitSeconds` (at most 30). Its
557
+ - `repository.events` — the repository journal after a `cursor`, with an
558
+ optional bounded `waitSeconds` (at most 30), for waiting on new events. Its
493
559
  default `attention` filter returns exactly the repository records
494
560
  `ab watch --operator` reports, such as `ticket.handed-back`; `filter: "all"`
495
561
  returns every event. Omit the cursor once to get a baseline, then pass back
496
562
  the returned cursor, which advances past filtered events; follow it while
497
563
  `hasMore` is true. On `code: "cursor-too-old"`, re-baseline and reconcile
498
- `repository.status`. Build attention comes from `builds.events`.
564
+ `repository.status`. The attention digest reports blocked, waiting and
565
+ merge-ready builds; `builds.events` gives one build's history.
499
566
  - `harvest.status` — the observation workflow's current state.
500
567
 
501
568
  The mutating ones carry the human's authority — prefer the narrowest
@@ -516,8 +583,13 @@ that does the job, and say what you are doing before you do it:
516
583
  `revision` (`{origin: "body" | "ticket", body}`, destructive — it replaces the
517
584
  spec), or both, exactly as `ab reopen` does. Feedback returns to implement; a
518
585
  revision restarts from plan; consent is revoked and the PR is kept.
519
- - `tickets.list`, `tickets.get` — read the ticket queue and one ticket. A long
586
+ - `tickets.list`, `tickets.get` — read the ticket queue and one ticket, with
587
+ its current assets. A long
520
588
  queue pages with `limit`, `offset` and `order`; `total` counts every match.
589
+ - `tickets.search` — search ticket titles and bodies across every state, with
590
+ optional `state`, `labels`, `limit` and `cursor`. Use it to check for
591
+ duplicates before `tickets.create`. A source without search refuses with
592
+ `code: "search-unsupported"`, naming the source.
521
593
  - `tickets.create` — file a new ticket from a conversation. A ticket filed
522
594
  from a forge issue carries it in `issueLinks` as `{issue}` (intent `closes`,
523
595
  the default) or `{issue, intent: "refs"}` when the work only partly
@@ -539,6 +611,9 @@ that does the job, and say what you are doing before you do it:
539
611
  intake is off, as `ab start` does, with optional `priority` (`manual` by
540
612
  default, `urgent` or `normal`, chosen as for `ab start`); `cancel: true`
541
613
  withdraws a pending request. The outcome arrives as `ticket.start-settled` in `repository.events`.
614
+ - `tickets.asset.attach`, `tickets.asset.get`, `tickets.asset.remove` — attach,
615
+ read and remove ticket assets with base64 bytes, as `ab ticket attach`,
616
+ `ab ticket asset get` and `ab ticket asset rm` do. `remove` is destructive.
542
617
  - `notes.read`, `notes.write` — the operator-notes artifact: durable,
543
618
  human-readable notes about this repository's operation. Write what the
544
619
  next operator or human will need; explicitly read it before acting on
@@ -552,6 +627,14 @@ that does the job, and say what you are doing before you do it:
552
627
  - `optimization.settle-unmeasured` — release the slot of an attempt that merged
553
628
  without a landing measurement, under an explicit policy; see
554
629
  [optimization nodes](#optimization-nodes).
630
+ - `sandbox.open`, `sandbox.status`, `sandbox.close`, `sandbox.refresh` — your
631
+ sandbox's lifecycle; `refresh` fast-forwards a clean checkout to the base head.
632
+ - `sandbox.exec`, `sandbox.start`, `sandbox.wait`, `sandbox.read_file`,
633
+ `sandbox.write_file` — run commands and read or write files in the sandbox.
634
+ - `sandbox.reset` and `sandbox.publish` — destructive. `reset` discards every
635
+ change and re-provisions; `publish` pushes the sandbox's commit to your
636
+ operator branch and opens or updates a pull request. Use them only on clear
637
+ instruction.
555
638
 
556
639
  Every tool returns the operator API's shapes: results, or a typed failure
557
640
  (`kind`, `error`, `code`). A refusal is information, not an exception:
@@ -559,7 +642,8 @@ report it, adapt, and carry on.
559
642
 
560
643
  ### The attention set
561
644
 
562
- Obtain current facts through supported status, event and monitoring reads.
645
+ Obtain current facts through supported status, event and monitoring reads; as
646
+ a connected agent, `repository.attention` is that current-facts read.
563
647
  Notifications may be stale; reconcile current state before acting on routine
564
648
  outcomes or self-healing failures. The service does not automatically deliver
565
649
  wake payloads to your external harness.
@@ -606,7 +690,7 @@ Treat every default-watch record as a call to act:
606
690
  and reason, including a rejected protocol-write preflight. The running generation stays active; the same failed input is
607
691
  suppressed until target or selected-store compatibility evidence changes or a fresh operator launch. Report
608
692
  launcher-contract changes or disabled automatic upgrades as manual restart
609
- needs. Agents still never manage the process. Status shows a failure as
693
+ needs. Do not manage another session's dispatcher process. Status shows a failure as
610
694
  current only until a later different resolved target, a later successful
611
695
  preparation or handoff, or a later generation supersedes it; a failure marked
612
696
  `(superseded)` needs no action.
@@ -617,14 +701,14 @@ Treat every default-watch record as a call to act:
617
701
  upgrade opt-out. A different successfully resolved target or a fresh operator
618
702
  launch clears the effective hold. Existing phases keep their leases and continue
619
703
  on the restored runtime at their next boundary; unreadable decisive facts defer
620
- with attention. Report the evidence to the operator; agents never restart the
704
+ with attention. Report the evidence to the operator; agents never restart another session's
621
705
  dispatcher.
622
706
  - Dispatcher loss, abnormal stop, restart-required reload, rejected config, or
623
707
  persistent tick failure: diagnose through repository status and report the
624
708
  condition to the human. Repository read failures fail the watch tick and
625
709
  retry on the next tick, using the existing five-minute persistent-failure
626
710
  attention. For validation failures, inspect the stored tick error for reducer,
627
- scope, cursor, field path, and running version/commit. Never start or run a dispatcher.
711
+ scope, cursor, field path, and running version/commit. Follow the ownership rules below before considering a new dispatcher.
628
712
  - Persistent source degradation: inspect the source cause and reset evidence,
629
713
  diagnose and report the continuing intake problem.
630
714
  - Abandoned ticket preparation (`ticket-preparation.resolved`, outcome
@@ -720,13 +804,25 @@ for the exceptions above.
720
804
  - Human checkout dispatch defaults to viewer for hosted placement. Humans can use
721
805
  `--takeover` to dispatch locally with a displacement warning; unreadable placement
722
806
  fails closed and names `--viewer` and `--takeover` as explicit recovery choices.
723
- These human defaults and overrides do not authorize operator-agent dispatch.
724
- - Never start, restart, or stop a dispatcher: no `ab dispatch` in any mode (including `--viewer` and `--takeover`),
725
- and no dispatcher process-management commands. This applies when the
726
- dispatcher is lost, stopped, absent, or failing repeatedly. Its lease,
727
- process, and configuration management belong to the maintainer. Diagnose
728
- through repository status and report trouble to the human; reporting
729
- does not authorize process intervention, including on a later retry.
807
+ These placement defaults do not authorize agent takeover; the ownership rules below still apply.
808
+ - Inspect fresh repository status before starting: never start a dispatcher when
809
+ `dispatcherRunning` is true. Missing, unreadable or unrecognized running status
810
+ fails closed. A holder, expired holder or unfinished draining handoff counts as
811
+ running, regardless of lease age or an empty drain map.
812
+ - When none is running, honor repository instructions first, then read
813
+ `ab operator dispatcher --json`. Follow the saved `human` or `agent` preference;
814
+ if unset, ask who should run it and offer to save the answer with
815
+ `ab operator dispatcher human` or `ab operator dispatcher agent`. This writes
816
+ only `.autobuild/local.toml`; it does not authorize takeover.
817
+ - For human ownership, provide startup instructions and wait. For agent ownership,
818
+ start `ab dispatch --web --plain --json` under the harness's managed background
819
+ lifetime and give the person the returned URL. If that lifetime is unavailable,
820
+ explain that limitation and leave startup to the human.
821
+ - Stop only a dispatcher this session started, only when requested, using a clean
822
+ stop and waiting for drain. Never adopt, restart, kill or manage another
823
+ session's dispatcher. Diagnose and report trouble without process intervention.
824
+ - `ab web` is always permitted, including while a dispatcher is running; it is a
825
+ read-only surface and does not acquire a dispatcher lease.
730
826
 
731
827
  - You never claim to have done anything outside the tools you have. If you cannot
732
828
  observe it with a tool, say you cannot observe it.
@@ -872,7 +968,9 @@ when to stop, and landing the result.
872
968
 
873
969
  - **Read progress** with `ab objective <node>` (`--json` for the structured
874
970
  view): starting, current and best values, attempts filed, accepted, rejected,
875
- merged unmeasured and running, the plateau counter, elapsed hours, stop
971
+ merged unmeasured and running, the plateau counter, active hours (time its
972
+ attempts, proposer or measurements actually ran; `settling` right after a
973
+ stop), stop
876
974
  eligibility, and, once stopped, the cause, mode and what still blocks
877
975
  completion. It also lists every `unmeasured merge` and every `branch cleanup
878
976
  pending`, each of which holds a concurrency slot; `ab build status <node>`
@@ -891,10 +989,14 @@ when to stop, and landing the result.
891
989
  shown error names why the forge refused, and the ticket moves to rejected
892
990
  once the branch is gone.
893
991
  - **Revise when to stop** with `ab objective <node> --threshold n`, or
894
- `--max-attempts n`, `--max-hours n`, `--plateau n` or `--stop-mode abort|drain`.
992
+ `--max-attempts n`, `--max-hours n` (active hours), `--plateau n` or
993
+ `--stop-mode abort|drain`.
895
994
  The dispatcher applies the change on its next tick, with no replanning and
896
995
  running attempts untouched. Lowering the threshold to the current value, or a
897
996
  budget to what is already spent, stops the node on that tick.
997
+ - **Speed up its attempts** with `ab priority <node> urgent`: attempts claimed
998
+ afterwards take the urgent tier. No slot is reserved and nothing running is
999
+ preempted; attempts already claimed keep their priority.
898
1000
  - **Stop it** with `ab objective <node> --stop` to take the progress so far.
899
1001
  Without a flag the objective's stop mode applies, `abort` unless the objective
900
1002
  says otherwise. `--stop --abort` cancels queued attempts and aborts running
@@ -134,10 +134,16 @@ steps. Strict validation when depositing a new plan is unchanged.
134
134
  paragraphs. Name the alternatives you rejected and why, briefly.
135
135
  - **Steps** — ordered, concrete, each naming the files it touches and what
136
136
  changes. An implementer should be able to execute steps top to bottom.
137
- - **Testing** — what gets unit-tested and at which seams; what the verify
138
- steps will exercise. Prefer unit and integration tests at seams. Add end-to-end
139
- or browser-automation tests only when the repository already maintains such a
140
- suite or the spec explicitly asks for one.
137
+ - **Testing** — two lists, kept apart. *Lasting regression tests*: each test
138
+ the change will commit, the behavior it guards, and the seam it runs at.
139
+ Choose the narrowest, fastest seam that still fails when that behavior
140
+ breaks, and prefer a unit test over an integration test when both would
141
+ catch it. *Implementation-time checks*: probes, focused runs and scaffolding
142
+ tests the implementer uses while building but does not commit. Then say what
143
+ the verify steps will exercise. Prefer unit and integration tests at seams.
144
+ Add end-to-end or browser-automation tests only when the repository already
145
+ maintains such a suite or the spec explicitly asks for one. Plan no removal
146
+ of tests outside this change; record slimming candidates with `ab observe`.
141
147
  - **Risks** — the parts most likely to go wrong, and how the implementer
142
148
  will know.
143
149
 
@@ -43,8 +43,15 @@ verdict travels the typed channel; nothing you print matters to the pipeline.
43
43
  no estimate. The ceiling is a limit, not a target; ordinary large plans
44
44
  and plans near but comfortably under it proceed. When fulfilling the
45
45
  spec clearly will not fit, escalate with a proposed split as below.
46
- - **Testing** — does the testing section cover the seams the change
47
- touches?
46
+ - **Testing** — does the testing section keep lasting regression tests
47
+ apart from implementation-time checks, and do the lasting tests cover
48
+ the seams the change touches? Judge each planned committed test on its
49
+ regression value: one that duplicates existing coverage, asserts
50
+ implementation details instead of behavior, exists only to scaffold the
51
+ build, or is slow where a faster test at a narrower seam would catch the
52
+ same regression is a finding. Do not demand tests the spec does not
53
+ warrant. Removing tests outside the change is out of scope: an
54
+ observation, not a finding.
48
55
  - **Verification selection** — if the plan has opening `verifySteps` TOML
49
56
  front matter, does its complete list include every optional configured
50
57
  verifier warranted by the spec's purpose and the planned change? Treat an
@@ -51,7 +51,8 @@ lands. The marker rules and the objective schema are in
51
51
 
52
52
  To groom an optimization node, follow the
53
53
  [grooming guidance](../ab-guide/references/optimization-nodes.md#grooming-an-optimization-node)
54
- for writing the purpose and choosing the harness, ε and budget. For a panel
54
+ for writing the purpose, measuring where builds run, and choosing the
55
+ harness, ε and budget. For a panel
55
56
  objective (`kind = "panel"`), write the rubric as criteria for comparing two
56
57
  variants side by side, keep the rubric and any fixtures the judges read inside
57
58
  the harness, and choose `judges` for cost against noise; the
@@ -96,6 +97,20 @@ Depart from `ab` only when the user asks for an operation outside its CLI
96
97
  surface. In that case, use the ticket tooling available in the current
97
98
  environment and tell the user what you changed.
98
99
 
100
+ ## Connected agents
101
+
102
+ When you are connected over MCP, you have no shell and no `ab` CLI:
103
+
104
+ - Before filing or revising a ticket, call `context.list` and read the
105
+ repository's agent instructions with `context.read`. They are the
106
+ repository's own rules and win over this skill for that repository.
107
+ - Ground the spec in the code by exploring it in your operator sandbox
108
+ (`sandbox.open`, then `sandbox.exec` and `sandbox.read_file`) wherever this
109
+ skill says to read the code.
110
+ - Each `ab ticket …` command here maps to a `tickets.*` tool; the preamble of
111
+ every `context.read` result lists the mapping for the commands the file
112
+ mentions.
113
+
99
114
  ## No argument: design spec-first
100
115
 
101
116
  Interview the user toward a conforming spec. Work the standard's four parts
@@ -122,6 +137,10 @@ in order, but as a conversation, not a form:
122
137
  ticket assets and cited by kind and name — see
123
138
  [Designs and reference material](#designs-and-reference-material).
124
139
 
140
+ Before filing, search for an existing ticket covering the same work
141
+ (`ab ticket search "<key words>"`, MCP `tickets.search`). If one exists, flesh
142
+ it out through the ticket-argument path below instead of filing a duplicate.
143
+
125
144
  Draft the spec in full, show it, iterate until the user accepts. Then create
126
145
  the ticket with the spec as its body using `ab ticket create`. Honor a
127
146
  destination workflow state when the human already named one during grooming:
@@ -160,9 +179,10 @@ say you will operate it. The human's explicit instructions override either defau
160
179
 
161
180
  If grooming established prerequisites, follow the complete
162
181
  [safe blocker-filing workflow](../ab-guide/references/ticket-dependencies.md).
163
- A single `ab ticket create --blocked-by` invocation does not publish atomically:
164
- Linear and GitHub expose the issue before separate blocker writes.
165
- For a ready destination, create in a known non-ready staging state, pass all
182
+ A single `ab ticket create --blocked-by` invocation does not publish atomically
183
+ on every source: Linear exposes the issue before separate blocker writes, while
184
+ GitHub stages a ready-bound create in triage itself until its blockers are
185
+ recorded. Elsewhere, for a ready destination, create in a known non-ready staging state, pass all
166
186
  blockers at creation, read back and verify them, then move to ready last. The
167
187
  human's requested final placement still wins; temporary staging needs no new
168
188
  placement question. Never assume the source default is non-ready.
@@ -174,7 +194,8 @@ specs. This example assumes the repository's triage state is `Triage`, its ready
174
194
  state is `Ready`, and the human requested ready placement for the whole set.
175
195
  Use the repository's actual states; if final placement is non-ready, leave the
176
196
  set there after verification instead of promoting it. Root remains a valid
177
- explicit choice when each ticket is independently useful and safe to ship:
197
+ explicit choice when each ticket is independently useful and safe to ship.
198
+ Run the same duplicate search for each planned ticket before the first create:
178
199
 
179
200
  ```sh
180
201
  ab ticket create "Integration" --body integration.md --kind node --json --state Triage > node-ticket.json
@@ -252,8 +273,12 @@ Attach the folder (or a single file) to the ticket as a `design` asset:
252
273
  ab ticket attach <id> design <path> [--name <name>]
253
274
  ```
254
275
 
276
+ A connected agent uses `tickets.asset.attach` with the file bytes as base64
277
+ `entries` (`layout: "tree"` for a folder, `"file"` for one file).
278
+
255
279
  The ticket must exist first. For a new ticket, create it in a non-ready
256
- staging state, attach, and check with `ab ticket show <id>`. Then place it
280
+ staging state, attach, and check with `ab ticket show <id>` (or `tickets.get`,
281
+ whose `assets` lists it). Then place it
257
282
  where the human asked: if the intended destination is ready, move it there
258
283
  last, so a build cannot claim it before its assets exist; otherwise leave it
259
284
  in its destination (or the configured create state) and do not promote it. Attaching the same
@@ -295,8 +320,9 @@ This is the default, not a requirement:
295
320
  facility, or no operator surface), say so and leave operation to the human.
296
321
 
297
322
  Operating follows the `ab-operate` skill's rules, including its boundaries:
298
- never start, stop, or restart a dispatcher. If no dispatcher holds the
299
- repository, report that rather than waiting on builds that cannot start.
323
+ inspect `dispatcherRunning` before starting and follow the saved local ownership
324
+ preference or ask when unset. Repository instructions take precedence; never
325
+ manage another session's dispatcher.
300
326
 
301
327
  ## Rules
302
328
 
@@ -48,7 +48,8 @@ lands. The marker rules and the objective schema are in
48
48
 
49
49
  To groom an optimization node, follow the
50
50
  [grooming guidance](../ab-guide/references/optimization-nodes.md#grooming-an-optimization-node)
51
- for writing the purpose and choosing the harness, ε and budget.
51
+ for writing the purpose, measuring where builds run, and choosing the
52
+ harness, ε and budget.
52
53
 
53
54
  For node lifecycle, target validation and source-specific storage, read
54
55
  [nodes and targets](../ab-guide/references/integration-tree.md). When filing
@@ -111,8 +112,32 @@ Each ticket is `<id>.md`: TOML frontmatter between `+++` fences carrying `id`
111
112
  and `title` (and optional `labels`, `blockedBy`, `issueLinks` and `priority`), then the body — which is
112
113
  the spec.
113
114
 
115
+ ## Connected agents
116
+
117
+ Connected over MCP, you have no shell and no `ab` CLI. Each `ab ticket …`
118
+ command below maps to a `tickets.*` tool, and every `context.read` result's
119
+ preamble lists the mapping for the file it returns. Before filing or revising,
120
+ call `context.list` and read the repository's agent instructions with
121
+ `context.read`: they win over this skill for that repository. Ground a ticket
122
+ in the code by exploring it in your operator sandbox (`sandbox.open`, then
123
+ `sandbox.exec` and `sandbox.read_file`).
124
+
114
125
  ## Create a ticket
115
126
 
127
+ Search for duplicates first:
128
+
129
+ ```
130
+ ab ticket search "rate limit auth"
131
+ ```
132
+
133
+ Over MCP, use `tickets.search`. It matches every word against titles and
134
+ bodies in every state, including done and rejected tickets. Narrow it with
135
+ `--state` or `--labels`, and page with the `--cursor` it prints. When a match
136
+ already covers the work, update it, reopen it or block on it instead of filing
137
+ another. A source without search refuses and names itself; then check the
138
+ states the work could be in with `ab ticket list --state <state>` before
139
+ filing.
140
+
116
141
  ```
117
142
  ab ticket create "Rate-limit auth endpoints" --body spec.md [--labels bug,api] [--blocked-by file-1,file-2] [--issues 824,820:refs] [--priority urgent] [--assignees alice,me]
118
143
  ```
@@ -138,12 +163,33 @@ exported labels and never adds them.
138
163
 
139
164
  For dependencies on any source, follow the
140
165
  [safe blocker-filing workflow](../ab-guide/references/ticket-dependencies.md).
141
- Direct Linear and GitHub record blockers after creating the issue, so a ready
142
- issue can be claimed before `create --blocked-by` returns. Stage dependents in a
143
- known non-ready state, verify all blockers with `ab ticket show --json`, then use
144
- `ab ticket move` to publish the intended ready destination. Do not use the local
166
+ Direct Linear records blockers after creating the issue, so a ready issue can be
167
+ claimed before `create --blocked-by` returns. Stage dependents in a known
168
+ non-ready state, verify all blockers with `ab ticket show --json`, then use
169
+ `ab ticket move` to publish the intended ready destination. GitHub stages a
170
+ ready-bound create in triage itself and moves it to ready only after every
171
+ blocker is recorded; still verify with `ab ticket show --json`, since a partial
172
+ failure leaves it in triage. Do not use the local
145
173
  file tracker's default state as an assumption about another configured source.
146
174
 
175
+ ## Ticket assets
176
+
177
+ Files or folders attached to a ticket, such as a design export or reference
178
+ screenshots. Each CLI form has an operator tool for connected agents:
179
+
180
+ | CLI | Operator tool |
181
+ |---|---|
182
+ | `ab ticket attach <id> <kind> <path> [--name <name>]` | `tickets.asset.attach` with `layout` (`file` or `tree`) and base64 `entries` |
183
+ | `ab ticket show <id>` | `tickets.get`, whose `assets` lists the current ones |
184
+ | `ab ticket asset get <id> <kind> <name> <dest> [--rev <n>]` | `tickets.asset.get`, with optional `rev` |
185
+ | `ab ticket asset rm <id> <kind> <name>` | `tickets.asset.remove` (destructive) |
186
+
187
+ Both forms share the rules: each attach makes a new revision, earlier ones stay
188
+ retrievable, the store's size limit applies, and attach and remove leave a note
189
+ on the ticket. A build freezes the assets it claims, so changes afterward do not
190
+ reach a running build. Tool inputs, receipts and failures are in the
191
+ [operator API](../ab-guide/references/operator-api.md#ticket-assets).
192
+
147
193
  ## Edit content or blockers
148
194
 
149
195
  Use the configured TicketSource rather than hand-editing frontmatter/body:
@@ -4,8 +4,8 @@
4
4
  "build": "ab-hosted-service-build"
5
5
  },
6
6
  "dependencies": {
7
- "@defrex/autobuild-hosted-store-service": "1.10.0",
8
- "@defrex/autobuild": "1.10.0",
7
+ "@defrex/autobuild-hosted-store-service": "1.11.0",
8
+ "@defrex/autobuild": "1.11.0",
9
9
  "next": "16.1.6",
10
10
  "react": "19.2.4",
11
11
  "react-dom": "19.2.4"