@qlairoslabs/acp-client 0.13.0-alpha.1 → 0.13.2-alpha.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 (343) hide show
  1. package/CONSUMER_GUIDE.md +181 -8
  2. package/MIGRATION-0.12-to-0.13.md +20 -7
  3. package/package.json +13 -2
  4. package/src/agent/config.ts +2 -0
  5. package/src/agent/conversation-manager.ts +1 -0
  6. package/src/agent/native-operations.ts +40 -0
  7. package/src/agent-session-config.ts +2 -0
  8. package/src/agent-session.ts +12 -2
  9. package/src/agent.ts +100 -2
  10. package/src/client.ts +5 -3
  11. package/src/controller-connection.ts +1 -0
  12. package/src/controller.ts +2 -0
  13. package/src/index.ts +3 -0
  14. package/src/launcher.ts +2 -0
  15. package/src/native/approvals.ts +20 -3
  16. package/src/native/capabilities.ts +2 -2
  17. package/src/native/connection.ts +1 -1
  18. package/src/native/controller.ts +5 -3
  19. package/src/native/host-config.ts +2 -0
  20. package/src/native/host.ts +83 -4
  21. package/src/native/mcp.ts +47 -0
  22. package/src/native/recovery.ts +8 -7
  23. package/src/native/reminders/routine-guard.ts +4 -3
  24. package/src/native/reminders/routine-wire.ts +1 -1
  25. package/src/native-harness/README.md +58 -1
  26. package/src/native-harness/package.json +4 -0
  27. package/src/native-harness/scripts/build-routine-zones.py +47 -0
  28. package/src/native-harness/src/capabilities/attachments/admission.ts +42 -0
  29. package/src/native-harness/src/capabilities/attachments/image-validation.ts +98 -0
  30. package/src/native-harness/src/capabilities/attachments/input.ts +1 -0
  31. package/src/native-harness/src/capabilities/attachments/read.ts +76 -0
  32. package/src/native-harness/src/capabilities/attachments/recovery.ts +26 -0
  33. package/src/native-harness/src/capabilities/attachments/selection.ts +37 -0
  34. package/src/native-harness/src/capabilities/attachments/service.ts +75 -0
  35. package/src/native-harness/src/capabilities/attachments/upload.ts +164 -0
  36. package/src/native-harness/src/capabilities/attachments/vision.ts +45 -0
  37. package/src/native-harness/src/capabilities/context/build.ts +5 -0
  38. package/src/native-harness/src/capabilities/context/session.ts +2 -1
  39. package/src/native-harness/src/capabilities/model/openrouter-stream.ts +80 -17
  40. package/src/native-harness/src/capabilities/model/runner.ts +6 -3
  41. package/src/native-harness/src/capabilities/reminders/cron-calendar.ts +50 -0
  42. package/src/native-harness/src/capabilities/reminders/cron-fields.ts +46 -0
  43. package/src/native-harness/src/capabilities/reminders/cron-proof.ts +32 -0
  44. package/src/native-harness/src/capabilities/reminders/cron-zone.ts +53 -0
  45. package/src/native-harness/src/capabilities/reminders/iana-zones.json.gz +0 -0
  46. package/src/native-harness/src/capabilities/reminders/iana-zones.ts +34 -0
  47. package/src/native-harness/src/capabilities/reminders/interval.ts +30 -0
  48. package/src/native-harness/src/capabilities/reminders/routine-advance.ts +47 -0
  49. package/src/native-harness/src/capabilities/reminders/routine-backlog.ts +47 -0
  50. package/src/native-harness/src/capabilities/reminders/routine-expiry.ts +15 -0
  51. package/src/native-harness/src/capabilities/reminders/routine-occurrence.ts +65 -0
  52. package/src/native-harness/src/capabilities/reminders/routine-schedule.ts +70 -0
  53. package/src/native-harness/src/capabilities/reminders/unattended.ts +8 -0
  54. package/src/native-harness/src/capabilities/tools/mcp/client.ts +97 -0
  55. package/src/native-harness/src/capabilities/tools/mcp/http.ts +183 -0
  56. package/src/native-harness/src/capabilities/tools/mcp/registry.ts +62 -0
  57. package/src/native-harness/src/capabilities/tools/mcp/result.ts +33 -0
  58. package/src/native-harness/src/capabilities/tools/mcp/schema.ts +77 -0
  59. package/src/native-harness/src/capabilities/tools/mcp/secrets.ts +28 -0
  60. package/src/native-harness/src/capabilities/tools/mcp/stdio.ts +105 -0
  61. package/src/native-harness/src/capabilities/tools/reminders/index.ts +27 -5
  62. package/src/native-harness/src/capabilities/tools/runtime/invocations.ts +4 -1
  63. package/src/native-harness/src/capabilities/tools/web/config.ts +1 -0
  64. package/src/native-harness/src/capabilities/tools/web/definitions.ts +18 -0
  65. package/src/native-harness/src/capabilities/tools/web/direct-address.ts +56 -0
  66. package/src/native-harness/src/capabilities/tools/web/direct-transport.ts +235 -0
  67. package/src/native-harness/src/capabilities/tools/web/direct.ts +149 -0
  68. package/src/native-harness/src/capabilities/tools/web/exa-transport.ts +41 -0
  69. package/src/native-harness/src/capabilities/tools/web/exa.ts +71 -0
  70. package/src/native-harness/src/capabilities/tools/web/preview.ts +44 -0
  71. package/src/native-harness/src/capabilities/tools/web/registry.ts +47 -0
  72. package/src/native-harness/src/capabilities/tools/web/usage.ts +1 -0
  73. package/src/native-harness/src/contracts/agent.ts +3 -1
  74. package/src/native-harness/src/contracts/attachments.ts +62 -0
  75. package/src/native-harness/src/contracts/config-permissions.ts +14 -3
  76. package/src/native-harness/src/contracts/context.ts +1 -1
  77. package/src/native-harness/src/contracts/events.ts +2 -2
  78. package/src/native-harness/src/contracts/loop.ts +3 -3
  79. package/src/native-harness/src/contracts/mcp.ts +22 -0
  80. package/src/native-harness/src/contracts/model-execution.ts +2 -1
  81. package/src/native-harness/src/contracts/operator-controls.ts +8 -1
  82. package/src/native-harness/src/contracts/protocol.ts +21 -5
  83. package/src/native-harness/src/contracts/reminders.ts +4 -2
  84. package/src/native-harness/src/contracts/routines.ts +20 -0
  85. package/src/native-harness/src/contracts/session-file.ts +2 -0
  86. package/src/native-harness/src/contracts/session.ts +8 -3
  87. package/src/native-harness/src/contracts/storage.ts +32 -13
  88. package/src/native-harness/src/contracts/tools.ts +2 -0
  89. package/src/native-harness/src/contracts/web.ts +16 -0
  90. package/src/native-harness/src/governance/permissions/gate.ts +9 -2
  91. package/src/native-harness/src/governance/policy/resolve.ts +6 -1
  92. package/src/native-harness/src/index.ts +48 -12
  93. package/src/native-harness/src/interfaces/cli/development.ts +108 -53
  94. package/src/native-harness/src/interfaces/cli/serve.ts +2 -2
  95. package/src/native-harness/src/interfaces/cli/start.ts +22 -13
  96. package/src/native-harness/src/interfaces/client.ts +8 -2
  97. package/src/native-harness/src/interfaces/inspector/index.html +7 -1
  98. package/src/native-harness/src/interfaces/inspector/state.ts +6 -2
  99. package/src/native-harness/src/interfaces/protocol/load.ts +3 -1
  100. package/src/native-harness/src/interfaces/protocol/local.ts +13 -4
  101. package/src/native-harness/src/interfaces/protocol/operator.ts +8 -2
  102. package/src/native-harness/src/interfaces/protocol/server.ts +102 -36
  103. package/src/native-harness/src/interfaces/protocol/stdio-client.ts +8 -0
  104. package/src/native-harness/src/interfaces/web-chat/index.html +65 -12
  105. package/src/native-harness/src/interfaces/web-chat/server.ts +30 -3
  106. package/src/native-harness/src/kernel/channels.ts +27 -15
  107. package/src/native-harness/src/kernel/loop.ts +1 -1
  108. package/src/native-harness/src/runtime/config/inference-key.ts +7 -0
  109. package/src/native-harness/src/runtime/config/managed.ts +1 -1
  110. package/src/native-harness/src/runtime/config/paths.ts +8 -1
  111. package/src/native-harness/src/runtime/execution/mcp-stdio.ts +31 -0
  112. package/src/native-harness/src/runtime/reminder-validation.ts +31 -10
  113. package/src/native-harness/src/runtime/reminders.ts +2 -2
  114. package/src/native-harness/src/state/storage/archive.ts +113 -12
  115. package/src/native-harness/src/state/storage/attachment-files.ts +58 -0
  116. package/src/native-harness/src/state/storage/attachment-import.ts +106 -0
  117. package/src/native-harness/src/state/storage/attachment-tables.ts +123 -0
  118. package/src/native-harness/src/state/storage/engine.ts +396 -45
  119. package/src/native-harness/src/state/storage/inference.ts +30 -2
  120. package/src/native-harness/src/state/storage/memory-attachments.ts +56 -0
  121. package/src/native-harness/src/state/storage/memory-reminders.ts +31 -6
  122. package/src/native-harness/src/state/storage/memory.ts +32 -4
  123. package/src/native-harness/src/state/storage/reminder-archive.ts +53 -12
  124. package/src/native-harness/src/state/storage/reminder-change.ts +60 -14
  125. package/src/native-harness/src/state/storage/reminder-tables.ts +11 -3
  126. package/src/native-harness/src/state/storage/routine-row.ts +25 -0
  127. package/src/native-harness/src/state/storage/session-file.ts +22 -9
  128. package/src/native-harness/src/state/storage/sqlite-reminders.ts +48 -8
  129. package/src/native-harness/src/state/storage/sqlite.ts +59 -11
  130. package/src/native-harness/src/state/storage/web-tables.ts +47 -0
  131. package/src/native-harness/src/testing.ts +151 -56
  132. package/src/native-harness/src/util/attachment-input.ts +42 -0
  133. package/src/native-harness/src/util/config.ts +64 -9
  134. package/src/native-harness/src/util/intake.ts +7 -0
  135. package/src/native-harness/src/util/mcp-config.ts +102 -0
  136. package/src/native-harness/src/util/web-config.ts +34 -0
  137. package/src/native-harness/src/util/web-usage.ts +33 -0
  138. package/src/orchestrator/permissions.ts +6 -3
  139. package/src/permissions/conversation.ts +13 -5
  140. package/src/permissions/matcher.ts +2 -0
  141. package/src/permissions/outcome.ts +12 -1
  142. package/src/permissions/policy.ts +13 -8
  143. package/src/steering/combine.ts +1 -0
  144. package/src/steering/contracts.ts +3 -0
  145. package/src/terminals.ts +9 -6
  146. package/src/native/reminders/reminders.test.ts +0 -553
  147. package/src/native/reminders/routine-config.typecheck.ts +0 -13
  148. package/src/native/reminders/wire.typecheck.ts +0 -13
  149. package/src/native-harness/.res/README.md +0 -1
  150. package/src/native-harness/.res/architecture/README.md +0 -21
  151. package/src/native-harness/.res/architecture/context-and-data.md +0 -31
  152. package/src/native-harness/.res/architecture/execution.md +0 -42
  153. package/src/native-harness/.res/architecture/overview.md +0 -44
  154. package/src/native-harness/.res/architecture/persistence.md +0 -56
  155. package/src/native-harness/.res/architecture/suspend-and-resume.md +0 -45
  156. package/src/native-harness/.res/architecture/technical-architecture.md +0 -50
  157. package/src/native-harness/.res/decisions/0001-basic-loop.md +0 -11
  158. package/src/native-harness/.res/decisions/0002-channel-input.md +0 -17
  159. package/src/native-harness/.res/decisions/0003-inference-inspection.md +0 -14
  160. package/src/native-harness/.res/decisions/0004-shared-context.md +0 -21
  161. package/src/native-harness/.res/decisions/0005-notice-inbox.md +0 -20
  162. package/src/native-harness/.res/decisions/0006-explicit-notices.md +0 -12
  163. package/src/native-harness/.res/decisions/0007-channel-output.md +0 -12
  164. package/src/native-harness/.res/decisions/0008-browser-client.md +0 -16
  165. package/src/native-harness/.res/decisions/0009-scripted-model.md +0 -18
  166. package/src/native-harness/.res/decisions/0010-inprocess-protocol.md +0 -19
  167. package/src/native-harness/.res/decisions/0011-stdio-transport.md +0 -21
  168. package/src/native-harness/.res/decisions/0012-session-storage-contract.md +0 -37
  169. package/src/native-harness/.res/decisions/0013-durable-delivery-contract.md +0 -64
  170. package/src/native-harness/.res/decisions/0014-channel-controls-contract.md +0 -73
  171. package/src/native-harness/.res/decisions/0015-session-file-contract.md +0 -72
  172. package/src/native-harness/.res/decisions/0016-configuration-permissions.md +0 -159
  173. package/src/native-harness/.res/decisions/0017-openrouter-managed-config.md +0 -69
  174. package/src/native-harness/.res/decisions/0018-tool-dispatch-evidence.md +0 -78
  175. package/src/native-harness/.res/decisions/0019-model-execution.md +0 -188
  176. package/src/native-harness/.res/decisions/0020-startup-channel-changes.md +0 -71
  177. package/src/native-harness/.res/decisions/0021-tools-and-host-callbacks.md +0 -100
  178. package/src/native-harness/.res/decisions/0022-operator-controls.md +0 -115
  179. package/src/native-harness/.res/decisions/0023-long-running-mock.md +0 -82
  180. package/src/native-harness/.res/decisions/0024-callback-policy-names.md +0 -46
  181. package/src/native-harness/.res/decisions/0025-external-notices.md +0 -364
  182. package/src/native-harness/.res/decisions/0026-bounded-context.md +0 -81
  183. package/src/native-harness/.res/decisions/0027-development-instructions.md +0 -22
  184. package/src/native-harness/.res/decisions/0028-debug-tools.md +0 -16
  185. package/src/native-harness/.res/decisions/0029-bounded-model-call-pages.md +0 -37
  186. package/src/native-harness/.res/decisions/0030-timeline-retrieval.md +0 -145
  187. package/src/native-harness/.res/decisions/0031-one-off-reminders.md +0 -173
  188. package/src/native-harness/.res/docs/11-15.md +0 -148
  189. package/src/native-harness/.res/docs/BUSINESS_RULES.md +0 -111
  190. package/src/native-harness/.res/docs/WORK.md +0 -65
  191. package/src/native-harness/.res/docs/_/11-16-persistence/LOG.md +0 -312
  192. package/src/native-harness/.res/docs/_/11-16-persistence/PLAN.md +0 -77
  193. package/src/native-harness/.res/docs/_/11-16-persistence/SPEC.md +0 -313
  194. package/src/native-harness/.res/docs/_/11-19-channel-controls/LOG.md +0 -160
  195. package/src/native-harness/.res/docs/_/11-19-channel-controls/PLAN.md +0 -89
  196. package/src/native-harness/.res/docs/_/11-19-channel-controls/SPEC.md +0 -135
  197. package/src/native-harness/.res/docs/_/11-19-config-permissions/LOG.md +0 -143
  198. package/src/native-harness/.res/docs/_/11-19-config-permissions/PLAN.md +0 -93
  199. package/src/native-harness/.res/docs/_/11-19-config-permissions/SPEC.md +0 -181
  200. package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/11-20-LOG.md +0 -433
  201. package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/PLAN.md +0 -60
  202. package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/PROTOCOL.md +0 -141
  203. package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/SPEC.md +0 -168
  204. package/src/native-harness/.res/docs/attachments/0001-DESIGN/SPEC.md +0 -111
  205. package/src/native-harness/.res/docs/bounded-context/0001-DESIGN/PLAN.md +0 -129
  206. package/src/native-harness/.res/docs/bounded-context/0001-DESIGN/SPEC.md +0 -135
  207. package/src/native-harness/.res/docs/channel-messaging/0001-DESIGN-external-notices/LOG.md +0 -437
  208. package/src/native-harness/.res/docs/channel-messaging/0001-DESIGN-external-notices/PLAN.md +0 -127
  209. package/src/native-harness/.res/docs/channel-messaging/0001-DESIGN-external-notices/SPEC.md +0 -203
  210. package/src/native-harness/.res/docs/long-running-mock/0001-DESIGN/LOG.md +0 -292
  211. package/src/native-harness/.res/docs/long-running-mock/0001-DESIGN/PLAN.md +0 -91
  212. package/src/native-harness/.res/docs/long-running-mock/0001-DESIGN/SPEC.md +0 -187
  213. package/src/native-harness/.res/docs/model-execution/0001-DESIGN/LOG.md +0 -148
  214. package/src/native-harness/.res/docs/model-execution/0001-DESIGN/PLAN.md +0 -95
  215. package/src/native-harness/.res/docs/model-execution/0001-DESIGN/SPEC.md +0 -200
  216. package/src/native-harness/.res/docs/model-execution/0002-AMENDMENT-accounting/SPEC.md +0 -80
  217. package/src/native-harness/.res/docs/operator-controls/0001-DESIGN/LOG.md +0 -206
  218. package/src/native-harness/.res/docs/operator-controls/0001-DESIGN/PLAN.md +0 -106
  219. package/src/native-harness/.res/docs/operator-controls/0001-DESIGN/SPEC.md +0 -297
  220. package/src/native-harness/.res/docs/persistence/0002-AMENDMENT-session-file/LOG.md +0 -41
  221. package/src/native-harness/.res/docs/persistence/0002-AMENDMENT-session-file/PLAN.md +0 -36
  222. package/src/native-harness/.res/docs/persistence/0002-AMENDMENT-session-file/SPEC.md +0 -84
  223. package/src/native-harness/.res/docs/shell-execution/0001-DESIGN/SPEC.md +0 -147
  224. package/src/native-harness/.res/docs/timeline-retrieval/0001-DESIGN/LOG.md +0 -15
  225. package/src/native-harness/.res/docs/timeline-retrieval/0001-DESIGN/PLAN.md +0 -107
  226. package/src/native-harness/.res/docs/timeline-retrieval/0001-DESIGN/SPEC.md +0 -114
  227. package/src/native-harness/.res/docs/todos/11-19-TODO-auto_review-approve.md +0 -24
  228. package/src/native-harness/.res/docs/todos/11-20-TODO-user-entered-tool-code.md +0 -23
  229. package/src/native-harness/.res/docs/todos/11-21-TODO-node-resource-coordination.md +0 -103
  230. package/src/native-harness/.res/docs/todos/11-22-TODO-harness-m1-sequence.md +0 -50
  231. package/src/native-harness/.res/docs/tools-and-callbacks/0001-DESIGN/LOG.md +0 -337
  232. package/src/native-harness/.res/docs/tools-and-callbacks/0001-DESIGN/PLAN.md +0 -76
  233. package/src/native-harness/.res/docs/tools-and-callbacks/0001-DESIGN/SPEC.md +0 -204
  234. package/src/native-harness/.res/docs/tools-and-callbacks/0002-AMENDMENT-callback-policy/LOG.md +0 -73
  235. package/src/native-harness/.res/docs/tools-and-callbacks/0002-AMENDMENT-callback-policy/SPEC.md +0 -64
  236. package/src/native-harness/.res/docs/tools-and-callbacks/0003-DESIGN-attachment-tools/SPEC.md +0 -58
  237. package/src/native-harness/.res/docs/tools-and-callbacks/0004-DESIGN-reminder-tools/LOG.md +0 -45
  238. package/src/native-harness/.res/docs/tools-and-callbacks/0004-DESIGN-reminder-tools/PLAN.md +0 -108
  239. package/src/native-harness/.res/docs/tools-and-callbacks/0004-DESIGN-reminder-tools/SPEC.md +0 -169
  240. package/src/native-harness/.res/docs/web-tools/0001-DESIGN/SPEC.md +0 -128
  241. package/src/native-harness/.res/marketing-draft.md +0 -22
  242. package/src/native-harness/.res/sandbox/1-simple-harness/README.md +0 -285
  243. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-1.md +0 -19
  244. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-10.md +0 -138
  245. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-11.md +0 -148
  246. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-12.md +0 -172
  247. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-13.md +0 -194
  248. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-14.md +0 -233
  249. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-15.md +0 -249
  250. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-16.md +0 -265
  251. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-17.md +0 -279
  252. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-18.md +0 -293
  253. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-19.md +0 -307
  254. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-2.md +0 -29
  255. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-20.md +0 -317
  256. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-21.md +0 -327
  257. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-3.md +0 -40
  258. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-4.md +0 -59
  259. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-5.md +0 -69
  260. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-6.md +0 -79
  261. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-7.md +0 -89
  262. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-8.md +0 -102
  263. package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-9.md +0 -116
  264. package/src/native-harness/.res/sandbox/1-simple-harness/conversation.jsonl +0 -49
  265. package/src/native-harness/.res/sandbox/1-simple-harness/doc.md +0 -87
  266. package/src/native-harness/.res/sandbox/1-simple-harness/harness.py +0 -289
  267. package/src/native-harness/.res/sandbox/1-simple-harness/local/harness copy 2.py +0 -221
  268. package/src/native-harness/.res/sandbox/1-simple-harness/local/harness copy 3.py +0 -287
  269. package/src/native-harness/.res/sandbox/1-simple-harness/local/harness copy.py +0 -165
  270. package/src/native-harness/.res/sandbox/1-simple-harness/state.json +0 -22
  271. package/src/native-harness/.res/sandbox/1-simple-harness/system-prompt.md +0 -2
  272. package/src/native-harness/AGENTS.md +0 -70
  273. package/src/native-harness/ARCHITECTURE.md +0 -249
  274. package/src/native-harness/bun.lock +0 -26
  275. package/src/native-harness/test/agent.test.ts +0 -130
  276. package/src/native-harness/test/approval-gate.test.ts +0 -255
  277. package/src/native-harness/test/approval-protocol.test.ts +0 -94
  278. package/src/native-harness/test/boundaries.test.ts +0 -18
  279. package/src/native-harness/test/channel-controls.test.ts +0 -322
  280. package/src/native-harness/test/client-abort.test.ts +0 -136
  281. package/src/native-harness/test/config-policy.test.ts +0 -301
  282. package/src/native-harness/test/conformance/storage.ts +0 -1141
  283. package/src/native-harness/test/context.test.ts +0 -177
  284. package/src/native-harness/test/crash.test.ts +0 -187
  285. package/src/native-harness/test/debug-tools.test.ts +0 -67
  286. package/src/native-harness/test/development-cli.test.ts +0 -67
  287. package/src/native-harness/test/development.test.ts +0 -171
  288. package/src/native-harness/test/dispatch-evidence.test.ts +0 -58
  289. package/src/native-harness/test/e2e.test.ts +0 -186
  290. package/src/native-harness/test/external-notices.test.ts +0 -101
  291. package/src/native-harness/test/fixtures/approval-e2e.jsonl +0 -4
  292. package/src/native-harness/test/fixtures/crash-scenario.jsonl +0 -5
  293. package/src/native-harness/test/fixtures/development-lifecycle.jsonl +0 -10
  294. package/src/native-harness/test/fixtures/echo-scenario.jsonl +0 -3
  295. package/src/native-harness/test/fixtures/format2-schema.ts +0 -27
  296. package/src/native-harness/test/fixtures/format3-schema.ts +0 -16
  297. package/src/native-harness/test/fixtures/hold-scenario.jsonl +0 -4
  298. package/src/native-harness/test/fixtures/model-e2e.jsonl +0 -3
  299. package/src/native-harness/test/fixtures/storage-owner.ts +0 -20
  300. package/src/native-harness/test/format-reply.test.ts +0 -10
  301. package/src/native-harness/test/helpers/operator-view.ts +0 -41
  302. package/src/native-harness/test/helpers/scenario.ts +0 -9
  303. package/src/native-harness/test/helpers/session.ts +0 -38
  304. package/src/native-harness/test/helpers/stdio.ts +0 -46
  305. package/src/native-harness/test/inspector.test.ts +0 -77
  306. package/src/native-harness/test/listeners.test.ts +0 -49
  307. package/src/native-harness/test/loop.test.ts +0 -88
  308. package/src/native-harness/test/model-channel-double.test.ts +0 -87
  309. package/src/native-harness/test/model-crash.test.ts +0 -62
  310. package/src/native-harness/test/model-delivery-regressions.test.ts +0 -55
  311. package/src/native-harness/test/model-e2e.test.ts +0 -71
  312. package/src/native-harness/test/model-final-filter.test.ts +0 -30
  313. package/src/native-harness/test/model-large-reply.test.ts +0 -28
  314. package/src/native-harness/test/model-live-queue.test.ts +0 -33
  315. package/src/native-harness/test/model-runner.test.ts +0 -117
  316. package/src/native-harness/test/model-storage.test.ts +0 -99
  317. package/src/native-harness/test/model-stream-adapter.test.ts +0 -26
  318. package/src/native-harness/test/model-stream-public.test.ts +0 -77
  319. package/src/native-harness/test/notices.test.ts +0 -64
  320. package/src/native-harness/test/openrouter-config.test.ts +0 -218
  321. package/src/native-harness/test/operator-controls.test.ts +0 -132
  322. package/src/native-harness/test/output.test.ts +0 -44
  323. package/src/native-harness/test/owner-config.test.ts +0 -64
  324. package/src/native-harness/test/permissions-e2e.test.ts +0 -68
  325. package/src/native-harness/test/persistence.test.ts +0 -236
  326. package/src/native-harness/test/portability.test.ts +0 -337
  327. package/src/native-harness/test/protocol.test.ts +0 -160
  328. package/src/native-harness/test/reminder-clock.test.ts +0 -61
  329. package/src/native-harness/test/reminder-stdio.test.ts +0 -140
  330. package/src/native-harness/test/reminder-storage.test.ts +0 -124
  331. package/src/native-harness/test/scenario-jsonl.test.ts +0 -112
  332. package/src/native-harness/test/scripted.test.ts +0 -92
  333. package/src/native-harness/test/session-file.test.ts +0 -51
  334. package/src/native-harness/test/startup-channel-changes.test.ts +0 -256
  335. package/src/native-harness/test/stdio.test.ts +0 -132
  336. package/src/native-harness/test/storage-memory.test.ts +0 -4
  337. package/src/native-harness/test/storage-sqlite.test.ts +0 -420
  338. package/src/native-harness/test/suspension.test.ts +0 -430
  339. package/src/native-harness/test/timeline-retrieval.test.ts +0 -211
  340. package/src/native-harness/test/tools-catalog.test.ts +0 -468
  341. package/src/native-harness/test/tools-protocol.test.ts +0 -418
  342. package/src/native-harness/test/transfers.test.ts +0 -94
  343. package/src/native-harness/test/web-chat.test.ts +0 -35
@@ -1,107 +0,0 @@
1
- # Timeline retrieval implementation plan
2
-
3
- Date: 2026-11-24
4
-
5
- Status: Ready for contract review. Base: integrated `alpha` at `7fde493`.
6
-
7
- The first tools gate delivers `search_timeline` and `read_message` through
8
- the same native registration and dispatch path in development chat and stdio.
9
- A scripted model searches a second channel's old decision, opens the source
10
- with neighbors, and answers with the original attribution.
11
- [Timeline retrieval spec](SPEC.md)
12
-
13
- ## Findings from the current code
14
-
15
- - `src/index.ts` assembles tool offers and dispatch. Host catalog entries
16
- already check the current offer, availability and arguments before approval.
17
- Direct built-ins and supplied executors currently follow a different branch.
18
- Extract the small checked native registration behavior for the two new tools,
19
- with local handlers. Reserve their names even when disabled. Keep existing
20
- host callbacks, the result reader, and debug and notice behavior compatible.
21
- - `OperatorStorageReads.readTimeline` already supports channel and sequence
22
- ranges. Operator message projection has eligibility and ID rules. Reuse
23
- those rules for search, lookup and neighbors. Add focused lookup for each
24
- supported message ID where the current storage port lacks it.
25
- - The bounded context pipeline currently puts completed tool exchanges into
26
- historical projections. Retrieval exchanges need to remain paired in the
27
- active turn and inspector, then be excluded as complete exchanges from
28
- later inference. A mixed assistant message may contain other calls or
29
- assistant text that must survive the projection.
30
- - `start --script` swaps the model and can assemble configured tools.
31
- `test:scenario` currently wires an echo-only executor. The root rehearsal
32
- already drives a real acp-client host over stdio. Reuse those paths as
33
- described below.
34
-
35
- ## G1a · Contract review
36
-
37
- Record checked native registration, focused reads, and retrieval projection
38
- semantics before runtime changes. Pin text eligibility, token normalization
39
- and case rules, deterministic candidate ordering and tie-breaks, and the
40
- ranking guarantees shared by memory and SQLite. Define query, candidate,
41
- neighbor and response byte limits, and when a partial result is reported.
42
- Ensure index tokenization produces a conservative candidate set for the
43
- specified tokenizer. Explicitly cover Unicode, diacritics, punctuation and
44
- case validation in fixtures. Keep FTS expressions internal.
45
-
46
- Define point ID lookup and window cursors that carry a fixed timeline revision
47
- and verify the target and window on every page. Use the existing operator IDs.
48
- Pin the SQLite migration, recovery and archive strategy for a derived index.
49
- Check FTS5 on the supported Bun environment. The reviewer signs off on the
50
- contract revision before dependent work.
51
-
52
- ## G1b · Implement and verify
53
-
54
- | Area | Files and expected changes |
55
- | --- | --- |
56
- | Tool assembly | `src/index.ts`, `src/contracts/tools.ts`, and `src/capabilities/tools/runtime/` for checked registration and local dispatch. Use a small `timeline/` directory under `capabilities/tools/` for definitions, validators and handlers. |
57
- | Storage | `src/contracts/storage.ts`, existing operator read/projection helpers, and `src/state/storage/{engine,memory,sqlite}.ts`. Index eligible committed text in the same transaction as the timeline write. Rebuild only where migration, recovery or import requires it. |
58
- | Context | `src/capabilities/context/` and the focused inference read projection as needed. Filter retrieval calls and results together before historical window budgeting. Keep the canonical trace and active exchange. |
59
- | Entry points | `src/interfaces/cli/` and stdio session assembly. Run checked tools through the same configuration and admission path with live or scripted models. |
60
- | Verification | Harness storage conformance and focused tool/context tests. Root native rehearsal for the real-stdio consumer run. |
61
-
62
- Acceptance covers both adapters on a common corpus and includes matched and
63
- unmatched cases, case-sensitive search, attribution, ranking and equal-score
64
- ordering, partial results, eligible text only, long messages and paged
65
- neighbors. Concurrent appends cannot move an existing read window. Reopen,
66
- migration and archive round-trip preserve IDs and retrieval. On a 10,000-entry
67
- SQLite timeline no retrieval call takes a session snapshot or scans intervening
68
- messages to resolve an ID. Report common-term ranking cost separately from
69
- the cap on verifying candidates.
70
-
71
- Under an ask policy a malformed or disabled invocation creates one paired
72
- rejection and no approval or execution. Policy denial prevents execution.
73
- Test normal dispatch and cancellation, including a subsequent turn that retains
74
- the original messages but omits the retrieval exchange. Inspect the stored
75
- call and result to confirm the exchange remains available to operators.
76
-
77
- ## G1c · Growing end-to-end script
78
-
79
- Add one cumulative fixture under `test/native/fixtures/` and run it through
80
- the existing rehearsal harness over real stdio. Keep the time-based load
81
- rehearsal and the focused echo smoke test usable. The cumulative scenario
82
- uses completion barriers between phases and exact model record consumption.
83
- The script supplies model decisions. Real tool dispatch, storage, policies,
84
- events, and result pairing still run. Later phases may use fixture provider
85
- endpoints, runner workspaces, or a controlled clock at the edge.
86
-
87
- For the first phase, send a decision and a correction on channel A, then on
88
- channel B script a real search, a real read with neighbors, and a sourced reply.
89
- Use stable fixture input IDs for the scripted read. Assert that search returned
90
- that ID and the expected channel, and that the real read result was visible to
91
- the next inference. Avoid fixture interpolation or a new scenario language for
92
- this gate. If assertions need access to an attempt, attach them to the existing
93
- scenario observation or durable tool trace.
94
-
95
- Make the reusable script-mode assembly offer the normal configured tool
96
- catalog, with optional tools enabled by the fixture's safe config. Verify the
97
- first phase over stdio and document how to try it in development chat. Future
98
- gates extend this fixture when their tools land. Each addition must assert an
99
- observable real tool result or effect and exact consumption. Focused tests
100
- continue to cover edge cases.
101
-
102
- ## Submission
103
-
104
- Submit the contract SHA first and the runtime SHA after approval. Include
105
- both typechecks, focused storage, tool and context results, the cumulative
106
- real-stdio run, and full harness and root results. The reviewer reruns the
107
- key checks on the exact runtime revision. Integration follows review.
@@ -1,114 +0,0 @@
1
- # Timeline retrieval
2
-
3
- Date: 2026-11-22
4
-
5
- Status: Proposed for M2. Shared visibility applies across native channels in v1.
6
-
7
- ## Purpose
8
-
9
- Let the agent retrieve older conversation messages on demand as the context
10
- builder starts limiting what goes into each inference. The timeline remains the
11
- source of the original messages. How much recent history to include automatically
12
- is a bounded-context design decision.
13
-
14
- ## Search the timeline
15
-
16
- `search_timeline({ query, channel?, match?, case_sensitive? })` returns a bounded
17
- list of hits. Each hit carries a stable `message_id`, the original channel,
18
- sender, timestamp, and a short excerpt around the matching text. Sort by
19
- relevance, then by descending timeline sequence for ties. Include `partial`
20
- when a work limit prevents the search from establishing its result. The hits
21
- then describe the best qualifying matches checked so far. An empty partial
22
- result leaves open whether more candidates would match.
23
-
24
- - `query` is a non-empty string with at least one searchable word. Default
25
- `match` is `keywords`. Every query word must occur as a whole token in the
26
- same message, in any order. With `match: "phrase"`, the words must appear
27
- consecutively and in order. Phrase matching is based on tokens.
28
- - Matching is case-insensitive by default. With `case_sensitive: true`, check
29
- the original text for the requested token casing. `TODO` then matches `TODO`
30
- and skips `todo` and `TODOS`. Check casing and visibility before applying the
31
- result limit. Generate excerpts around qualifying matches.
32
- - Omitting `channel` searches the shared scope. Supplying it narrows the search
33
- to that channel. Use the existing conversation-message eligibility rule for
34
- search, direct reads, and neighbor windows. Eligible entries are committed
35
- participant messages and assistant replies with text. Internal and external
36
- notices, raw tool results, and empty tool-only replies are outside v1 retrieval.
37
-
38
- Translate the tool query into a parameterized search expression with application
39
- defined keyword and phrase semantics. Keep raw FTS query syntax internal.
40
-
41
- ## Read a message
42
-
43
- `read_message({ message_id, before?, after?, cursor? })` resolves the reference
44
- within the current session. Return the original attributed message in full
45
- when it fits and offer a continuation for larger text. Share the existing
46
- operator message ID encoder. Participant entries with item IDs use `item:<id>`,
47
- model replies use their stored ID, and other eligible entries use the sequence
48
- fallback. Resolve each supported form with a point lookup. The ID stays stable
49
- across reopen and session-file export and import.
50
-
51
- `before` and `after` are optional counts of neighboring conversation messages
52
- in the same channel. Both default to zero. Return the window in timeline order
53
- with the target identified. Enforce both a message count and an output byte
54
- limit. Freeze the window at the first read's timeline revision. The cursor
55
- binds the target and window to that revision and carries the next position and
56
- any offset within a split message. Check current visibility on every page.
57
-
58
- For example, the agent searches for `launch Friday`, opens a matching message
59
- with `before: 2, after: 3`, and reads the exchange to see whether the date was
60
- agreed or only proposed. The retrieved text enters the active turn as a normal
61
- paired tool result. Preserve the retrieval exchange in the stored tool trace.
62
- Render it only in the active turn, keeping the call and result paired. Omit
63
- the retrieval exchange from later shared context. The agent can retrieve the
64
- source messages again when needed.
65
-
66
- ## Storage and execution
67
-
68
- Expose retrieval through the storage read interface and compose the tools through
69
- the existing tool registry and permission gate. Implement SQLite search with an
70
- FTS5 index keyed by timeline sequence. Index committed text in the same transaction
71
- as the source entry. The index is a derived projection that can be rebuilt on
72
- upgrade or import from the timeline. Use the index to narrow candidates and check
73
- the original text when case sensitivity is requested. Start with one index and
74
- cap candidate verification. The cap bounds original-text checks. SQLite may
75
- still do substantial matching and ranking work, so measure that separately on
76
- common terms. Revisit a case-aware index if measurements justify it.
77
- [SQLite FTS5](https://sqlite.org/fts5.html)
78
-
79
- Use a point lookup and the existing channel-and-sequence range reads for the
80
- message and its neighbors. Keep FTS syntax and index details inside the SQLite
81
- adapter. The in-memory adapter uses the same token and phrase rules, scope, and
82
- bound semantics. Define candidate, result, input, and window limits with the
83
- implementation plan and record adjustable defaults in [Business rules](../../BUSINESS_RULES.md).
84
-
85
- ## Visibility now and in v1
86
-
87
- Reuse timeline `channelId` and `from` for origin channel and sender attribution.
88
- Keep any existing source attribution intact. M2 preserves shared visibility
89
- across channels within the session. The harness supplies the actual calling
90
- channel and any trusted participant identity available to the turn. The model's
91
- channel argument only narrows the search.
92
-
93
- Keep origin metadata and caller context available to search, direct reads, and
94
- [live context construction](../../bounded-context/0001-DESIGN/SPEC.md). V1
95
- offers no cross-channel privacy guarantee. Future visibility policy can build
96
- on that boundary and account for derived material, including summaries and
97
- earlier retrieval results.
98
-
99
- ## Acceptance
100
-
101
- 1. Exercise keyword and phrase matching, punctuation, Unicode, `todo` versus
102
- `TODO`, channel filters, result ranking and limits, and an empty result on
103
- both adapters. Verify the partial flag when common lowercase hits consume
104
- the candidate budget before later exact-case hits are checked.
105
- 2. Open a hit by ID and read a bounded window without selecting messages from
106
- other channels. Verify large messages can be read through continuations,
107
- and appending messages between pages leaves the original window stable.
108
- 3. Recover an older decision and a later correction from another channel when
109
- both are outside the live context. Verify that the results retain attribution.
110
- 4. Verify indexed SQLite search and bounded message reads on a long timeline.
111
- Check transactional index updates and rebuild from imported timeline data.
112
- 5. Retrieve a message from another native channel. Verify the result keeps
113
- the original attribution and the saved retrieval exchange is omitted from
114
- later shared context.
@@ -1,24 +0,0 @@
1
- # TODO: Automatic tool approval review
2
-
3
- Status: deferred. Revisit after consumer approval works end to end.
4
-
5
- Add an optional automatic reviewer behind the tool approval interface. The
6
- policy gate resolves each call to allow, deny, or ask. An ask can go to an
7
- automatic reviewer or the consumer. A policy denial is final.
8
-
9
- The reviewer judges whether the exact call is authorized and within scope.
10
- Give it the tool name and arguments, the relevant user request, the channel
11
- and turn, and the rule that triggered review. Provide more context only when
12
- needed. Treat conversation text and tool output as evidence.
13
-
14
- The reviewer can approve the exact call once, deny with a reason, or escalate
15
- to the consumer. If nobody can answer an escalation, leave the tool unexecuted.
16
- Record the outcome and reason against the original approval request.
17
-
18
- Use the same request lifecycle as consumer approval. On suspension, close the
19
- request and record why the tool did not run. A resumed turn can request fresh
20
- approval if the action is still needed. Ignore late responses to closed
21
- requests.
22
-
23
- Before implementing, decide how consumers opt in, what context the reviewer may
24
- access, and which actions always require human approval.
@@ -1,23 +0,0 @@
1
- # TODO: User-entered code for tools
2
-
3
- Date: 2026-11-20.
4
- Status: deferred until consumer-registered callbacks work end to end.
5
-
6
- Explore an optional executor for tools whose implementation is written by a
7
- user. The current callback design uses implementations registered by the
8
- consumer. User-entered code needs a separate execution environment because a
9
- normal callback can inherit the host's access to files, credentials, and
10
- network resources.
11
-
12
- Before designing an implementation, decide:
13
-
14
- - Who can create, edit, and enable a code-backed tool.
15
- - Which language and runtime are supported, and which resources the executor
16
- can access. Start with explicit grants for files, network, and credentials.
17
- - How to bound time, memory, and output, and how cancellation and uncertain
18
- effects are reported through the existing tool-call lifecycle.
19
- - Whether code and its version travel in a session export. Define what the
20
- destination must approve before imported code can run.
21
-
22
- Reuse the existing tool schema, policy gate, and call records. The gate
23
- authorizes dispatch. The executor enforces the limits on what the code can do.
@@ -1,103 +0,0 @@
1
- # TODO: Node-level coordination for native harnesses
2
-
3
- Date: 2026-11-21.
4
- Status: deferred until after the second milestone makes the harness usable.
5
-
6
- ## Context
7
-
8
- The first milestone gives acp-client an offline integration path. The second
9
- adds bounded context and the user-facing capabilities that make the shared
10
- agent useful. Measure the resulting harness before optimizing how multiple
11
- instances share a Node. Context assembly, storage reads, and model request
12
- size can change substantially during that milestone.
13
-
14
- The capacity question is how a Node can keep roughly 50 agents available on
15
- modest hardware. Each agent has its own harness process and can serve several
16
- channels. A turn alternates between local work and waiting on a model or remote
17
- tool. Many processes can wait concurrently. If they all start together, or if
18
- many responses arrive together and trigger expensive local work, they can
19
- compete for CPU and memory. A Node scheduler could spread those bursts and
20
- keep warm the agents most likely to receive work. The agent count is a workload
21
- to measure, with capacity determined by the observed resource use and latency.
22
-
23
- ## Proposed shape
24
-
25
- Use two independent connections. The Hub runs conversations through acp-client
26
- and the existing runtime bridge. Today the native harness uses its own stdio
27
- protocol behind acp-client. ACP can remain the conversation transport where the
28
- Hub uses it. The harness initiates a separate outbound connection to a
29
- Node-owned control socket, so each process needs no additional listener.
30
-
31
- The Node owns launch, allocation, and eviction decisions. The harness owns
32
- its channels, tool execution, and session lifecycle. Wire the optional control
33
- adapter at the harness runtime edge, using existing lifecycle and observation
34
- operations. Standalone harnesses continue to run independently. Control
35
- messages carry process identity, readiness, aggregate activity, and lifecycle
36
- results. Conversation content, tool arguments, and model output stay on the
37
- conversation path.
38
-
39
- | Control | Proposed behavior |
40
- | --- | --- |
41
- | Cold start and wake | The Node limits concurrent launches and prefers interactive work over background starts. The host can request a wake when work arrives for a stopped process. The harness reports readiness after it can serve work. |
42
- | Warm retention | Use observed working-set memory and recent activity to choose idle candidates for eviction. Leave headroom for running work to finish. |
43
- | Drain | Request suspension through the existing lifecycle boundary. Confirm the checkpoint before closing the child and releasing storage ownership. |
44
- | Local resource permits | If profiles show repeated CPU bursts, gate specific expensive operations through asynchronous Node permits. Context assembly and genuinely local tool work are candidates to measure. |
45
- | Fairness | Give Hubs a fair share before scheduling among their agents. Keep interactive starts responsive during background bursts. |
46
- | Provider capacity | If needed, govern model-request concurrency separately from local CPU. A model wait must release its local CPU permit. |
47
-
48
- ## Drain, wake, and failure boundaries
49
-
50
- Idle is a hint for choosing an eviction candidate. A channel may have pending
51
- input or a checkpoint while nothing is running, and new work can race an idle
52
- notification. Request a drain, close new admission through the harness's
53
- suspension path, and wait for confirmation from that process. A callback that
54
- holds the drain open remains visible. If the host explicitly interrupts it,
55
- preserve the existing rules for uncertain tool effects. A forced process exit
56
- uses crash recovery. See [suspend, stop, and resume](../../architecture/suspend-and-resume.md).
57
-
58
- On wake, reopen the same stored session and explicitly resume a scheduler-
59
- initiated suspension. Preserve operator-requested suspension and individually
60
- suspended channels. The Node must know which suspension it initiated before
61
- resuming it. Define how the host handles a new wake request during drain or
62
- eviction so work arriving at that boundary receives a clear outcome and uses
63
- the existing durable receipt rules.
64
-
65
- After control connection loss, keep local session semantics and treat the
66
- Node's last activity view as stale. A drain without confirmation cannot be used
67
- as a clean eviction. Correlate commands and replies with the process instance
68
- so a late acknowledgment from an old process cannot authorize stopping its
69
- replacement. Before implementation, confirm how the container reaches the
70
- Node socket and how the Node authenticates that connection and binds it to the
71
- launched instance.
72
-
73
- If permits are added, acquire them before expensive work and outside storage
74
- transactions. Release them on completion, cancellation, and before waiting
75
- on a model or remote tool. Decide how permits expire or are reclaimed when a
76
- process exits and what a connected harness does while its scheduler is
77
- unavailable. Use Node resource limits for hard ceilings. Permits coordinate
78
- when cooperating processes begin work.
79
-
80
- ## Order and evidence
81
-
82
- 1. **Measure the usable harness.** Profile cold start, readiness, memory per
83
- process and channel, context assembly, tool execution, and time spent
84
- waiting. Use the target container runtime and representative active and
85
- idle mixes. Treat coding harness profiles as comparison points.
86
- 2. **Try startup scheduling and idle/drain first.** Add only the activity and
87
- lifecycle signals those paths need. Test a startup burst, a new interactive
88
- request during the burst, eviction and wake, and loss of the control
89
- connection while a drain is in flight.
90
- 3. **Add warm retention or permits where data warrants them.** Measure the
91
- effect of each change. A burst in provider waits, local CPU, or memory calls
92
- for a different control. Keep per-chunk and ordinary cheap operations off
93
- the control path.
94
-
95
- Reuse and extend the [long-running mock](../long-running-mock/0001-DESIGN/SPEC.md)
96
- to drive the same multi-process workload with coordination disabled and
97
- enabled. Run both startup bursts and steady traffic with synchronized response
98
- bursts. Compare startup queue time, time to first reply, p95 reply latency,
99
- CPU saturation, resident memory, and progress by Hub. Verify that a new turn
100
- can make progress under load and that eviction preserves accepted work and
101
- does not replay uncertain effects. Keep Node scheduling and socket design out
102
- of the current harness milestones until the baseline shows where coordination
103
- would help.
@@ -1,50 +0,0 @@
1
- # TODO: Harness M1 implementation sequence
2
-
3
- Date: 2026-11-22.
4
- Status: ready to start operator controls Gate 1.
5
-
6
- ## Starting point
7
-
8
- Start work from `aiagent/haurness-l`. It contains the accepted acp-client
9
- integration (`7133c5c`) and tools and host callbacks (`f4eff94`, closure
10
- `c1c3e88`). The reviewed callbacks also landed on `alpha`. Pin the worktree
11
- base and the spec and plan revisions in the first handoff.
12
-
13
- ## Work in order
14
-
15
- 1. **Operator and consumer controls.** Start with Gate 1 on the accepted
16
- callbacks base. Review the replacement wire contract, bounded storage reads,
17
- and the host-level approval responder before implementing either side.
18
- Finish the real stdio checkpoint for independent attachment, recovery,
19
- approvals, and opt-in history. The short checkpoint can run as soon as
20
- operator controls is ready. [Spec and implementation gates](../operator-controls/0001-DESIGN/PLAN.md)
21
- 2. **Long-running mock mode.** Start from the accepted operator-controls base.
22
- Use the JSONL adapter and acp-client driver to run the deterministic CI
23
- scenario and the multi-minute rehearsal. Record the fixture, command, and
24
- result. [Spec and implementation gates](../long-running-mock/0001-DESIGN/PLAN.md)
25
- 3. **Callback policy names amendment.** Carry the policies that authorized the
26
- invocation through `functions/call` and the acp-client handler context.
27
- Verify mixed policy, approval, and the explicit policy-free case. The
28
- orchestrator owns rule lookup and application. [Amendment](../tools-and-callbacks/0002-AMENDMENT-callback-policy/SPEC.md)
29
- 4. **External notices.** Implement `channel/notify` over the durable inbox,
30
- then connect acp-client's durable worker handoff. Gate 1 verifies that the
31
- first supported worker backend can recover a completion after acp-client
32
- exits. The generic harness path can proceed once its contract passes review.
33
- Keep full worker-delivery acceptance open until a supported backend passes
34
- the crash cases. [Spec and implementation gates](../channel-messaging/0001-DESIGN-external-notices/PLAN.md)
35
-
36
- The short stdio checkpoint establishes the native integration path. The timed
37
- rehearsal exercises it under load. The policy amendment and external notices
38
- then complete the harness path needed for durable worker delivery. The usable
39
- harness milestone follows, beginning with bounded model context.
40
-
41
- ## Review process
42
-
43
- Use one implementer and one independent reviewer. The coordinator pins the
44
- base and records the exact revision and evidence at each gate. The implementer
45
- grounds the gate in the current code and sends the revision for review. The
46
- reviewer checks it against the spec and independently verifies the gate. They
47
- can resolve findings directly, with scope decisions brought back to the
48
- coordinator. Start each next slice from the accepted revision of its base.
49
-
50
- For current status, see the [work index](../WORK.md).