@sema-agent/server 7.145.0 → 7.147.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 (526) hide show
  1. package/MIGRATION.md +876 -0
  2. package/README.md +1 -1
  3. package/README.zh-CN.md +1 -1
  4. package/USAGE.md +374 -99
  5. package/deploy/facts/CHANGES.json +25 -0
  6. package/deploy/facts/README.md +57 -0
  7. package/deploy/facts/lanes.json +61 -0
  8. package/deploy/facts/lanes.schema.json +57 -0
  9. package/deploy/facts/sandbox-rbac.json +113 -0
  10. package/deploy/facts/sandbox-rbac.schema.json +74 -0
  11. package/deploy/facts/sealed-key.json +9 -0
  12. package/deploy/facts/sealed-key.schema.json +52 -0
  13. package/deploy/sema-up/README.md +2 -2
  14. package/deploy/sema-up/chart/templates/_helpers.tpl +41 -0
  15. package/deploy/sema-up/chart/templates/sandbox-rbac.yaml +47 -7
  16. package/deploy/sema-up/chart/templates/server-v4pro.yaml +9 -4
  17. package/deploy/sema-up/chart/templates/server.yaml +9 -4
  18. package/deploy/sema-up/chart/values.yaml +8 -1
  19. package/deploy/sema-up/cluster-up.sh +2 -1
  20. package/deploy/sema-up/lib/flagshape.sh +4 -0
  21. package/deploy/sema-up/lib/lanes.json +2 -5
  22. package/deploy/sema-up/sema-up.sh +12 -9
  23. package/deploy/sema-up/stack/compose.yaml +5 -4
  24. package/deploy/sema-up/stack/sema-stack-cluster.yaml +34 -17
  25. package/dist/adoption/import-limits.d.ts +6 -0
  26. package/dist/adoption/import-limits.js +7 -0
  27. package/dist/adoption/import.d.ts +62 -0
  28. package/dist/adoption/import.js +107 -0
  29. package/dist/adoption/wire.d.ts +52 -0
  30. package/dist/adoption/wire.js +9 -0
  31. package/dist/approval-ask-machine.d.ts +2 -2
  32. package/dist/approval-card.d.ts +7 -16
  33. package/dist/approval-card.js +0 -4
  34. package/dist/approval-gate-currency.d.ts +1 -1
  35. package/dist/approval-gate-currency.js +1 -1
  36. package/dist/approval-reconciler.d.ts +1 -1
  37. package/dist/approval.d.ts +3 -3
  38. package/dist/audit.js +2 -2
  39. package/dist/bench/s1/live-deps.js +3 -1
  40. package/dist/boot/crash-last.js +2 -1
  41. package/dist/boot/deployment-mods.d.ts +11 -1
  42. package/dist/boot/deployment-mods.js +15 -2
  43. package/dist/boot/device-lane.js +7 -5
  44. package/dist/boot/engine-lease.d.ts +195 -22
  45. package/dist/boot/engine-lease.js +146 -20
  46. package/dist/boot/execution-env.d.ts +5 -0
  47. package/dist/boot/execution-env.js +57 -33
  48. package/dist/boot/execution-lane.d.ts +37 -9
  49. package/dist/boot/execution-lane.js +74 -20
  50. package/dist/boot/exit-boundary.d.ts +50 -0
  51. package/dist/boot/exit-boundary.js +32 -0
  52. package/dist/boot/exit-last.d.ts +20 -4
  53. package/dist/boot/exit-last.js +23 -5
  54. package/dist/boot/governance-seams.d.ts +2 -2
  55. package/dist/boot/governance-seams.js +1 -0
  56. package/dist/boot/leader.js +1 -1
  57. package/dist/boot/memory-boundary.d.ts +11 -11
  58. package/dist/boot/memory-boundary.js +3 -3
  59. package/dist/boot/memory-consolidation.d.ts +42 -41
  60. package/dist/boot/memory-consolidation.js +26 -28
  61. package/dist/boot/org-memory.js +3 -2
  62. package/dist/boot/parked-revive-gate.d.ts +1 -1
  63. package/dist/boot/parked-revive-gate.js +1 -1
  64. package/dist/boot/reapers.d.ts +12 -4
  65. package/dist/boot/reapers.js +40 -16
  66. package/dist/boot/resolve-spec.d.ts +2 -0
  67. package/dist/boot/resolve-spec.js +126 -123
  68. package/dist/boot/retention-lane.d.ts +4 -42
  69. package/dist/boot/runner-deps.js +1 -1
  70. package/dist/boot/session-faces.d.ts +1 -0
  71. package/dist/boot/session-faces.js +11 -3
  72. package/dist/boot/shutdown.js +27 -9
  73. package/dist/boot/stage-01-config.d.ts +1 -1
  74. package/dist/boot/stage-01-config.js +7 -3
  75. package/dist/boot/stage-02-web-admin-pull.d.ts +1 -1
  76. package/dist/boot/stage-02-web-admin-pull.js +10 -8
  77. package/dist/boot/stage-03-store-backend.d.ts +2 -1
  78. package/dist/boot/stage-03-store-backend.js +2 -2
  79. package/dist/boot/stage-04-stores.d.ts +2 -1
  80. package/dist/boot/stage-05-execution-env.d.ts +4 -1
  81. package/dist/boot/stage-05-execution-env.js +6 -6
  82. package/dist/boot/stage-06-runners.d.ts +5 -2
  83. package/dist/boot/stage-06-runners.js +12 -13
  84. package/dist/boot/stage-07-capability-layer.d.ts +5 -2
  85. package/dist/boot/stage-07-capability-layer.js +7 -7
  86. package/dist/boot/stage-08-reapers.d.ts +5 -2
  87. package/dist/boot/stage-08-reapers.js +3 -3
  88. package/dist/boot/stage-09-leader.d.ts +6 -2
  89. package/dist/boot/stage-10-http-server.d.ts +6 -2
  90. package/dist/boot/stage-10-http-server.js +5 -3
  91. package/dist/boot/stores.d.ts +10 -0
  92. package/dist/boot/stores.js +53 -26
  93. package/dist/boot/web-admin.js +3 -3
  94. package/dist/boot/workflow-orchestration.d.ts +1 -1
  95. package/dist/boot/workflow-orchestration.js +2 -1
  96. package/dist/capabilities/center-plugins.d.ts +2 -0
  97. package/dist/capabilities/center-plugins.js +6 -2
  98. package/dist/capabilities/composite-members.d.ts +4 -1
  99. package/dist/capabilities/composite-members.js +4 -1
  100. package/dist/capabilities/execution-lane.d.ts +7 -7
  101. package/dist/capabilities/execution-lane.js +2 -2
  102. package/dist/capabilities/hands-lane.d.ts +1 -1
  103. package/dist/capabilities/scenarios.d.ts +34 -20
  104. package/dist/capabilities/scenarios.js +13 -9
  105. package/dist/capabilities/settings-contract.d.ts +29 -0
  106. package/dist/capabilities/settings-contract.js +14 -0
  107. package/dist/capabilities/skills.d.ts +5 -5
  108. package/dist/capability-facts.d.ts +56 -1
  109. package/dist/capability-facts.js +59 -8
  110. package/dist/center-credential-renewer.js +3 -2
  111. package/dist/checkpoint-ctx-seal-m28.d.ts +1 -1
  112. package/dist/config-catalog.js +19 -9
  113. package/dist/config-invariants.d.ts +18 -3
  114. package/dist/config-invariants.js +36 -19
  115. package/dist/config-lkg.d.ts +1 -1
  116. package/dist/config-lkg.js +5 -6
  117. package/dist/config-provider.d.ts +2 -2
  118. package/dist/config-provider.js +2 -0
  119. package/dist/config-types.d.ts +228 -185
  120. package/dist/config.d.ts +74 -6
  121. package/dist/config.js +146 -64
  122. package/dist/degenerate-instrument.js +1 -1
  123. package/dist/deleted-session-ids.d.ts +19 -0
  124. package/dist/deleted-session-ids.js +26 -0
  125. package/dist/deploy-facts.d.ts +155 -0
  126. package/dist/deploy-facts.js +95 -0
  127. package/dist/deployment-shape.d.ts +21 -12
  128. package/dist/deployment-shape.js +24 -6
  129. package/dist/device-ws-hub.d.ts +48 -3
  130. package/dist/device-ws-hub.js +48 -2
  131. package/dist/env-facts.d.ts +7 -5
  132. package/dist/env-facts.js +10 -6
  133. package/dist/error-code-family.d.ts +35 -0
  134. package/dist/error-code-family.js +26 -0
  135. package/dist/execution-config-root.d.ts +5 -5
  136. package/dist/execution-config-root.js +5 -5
  137. package/dist/execution-env-purpose.d.ts +14 -0
  138. package/dist/execution-env-purpose.js +29 -0
  139. package/dist/execution-lane-caps.d.ts +49 -86
  140. package/dist/execution-lane-caps.js +52 -62
  141. package/dist/execution-placement.d.ts +18 -2
  142. package/dist/execution-placement.js +19 -0
  143. package/dist/file-history-disclosure.d.ts +2 -2
  144. package/dist/fleet/drain-entry.d.ts +46 -3
  145. package/dist/fleet/drain-entry.js +6 -0
  146. package/dist/fleet/fleet-bus.d.ts +2 -1
  147. package/dist/fleet/serving-lease.js +3 -4
  148. package/dist/history-anchor.d.ts +22 -0
  149. package/dist/history-anchor.js +14 -0
  150. package/dist/hooks/branch-transcript.d.ts +1 -1
  151. package/dist/hooks/branch-transcript.js +1 -0
  152. package/dist/hooks/classic-stations.d.ts +25 -8
  153. package/dist/hooks/classic-stations.js +29 -3
  154. package/dist/hooks/command-spawn.d.ts +1 -4
  155. package/dist/hooks/command-spawn.js +0 -11
  156. package/dist/hooks/hook-runner.d.ts +85 -24
  157. package/dist/hooks/hook-runner.js +326 -109
  158. package/dist/hooks/hook-source.d.ts +14 -2
  159. package/dist/hooks/hook-source.js +8 -0
  160. package/dist/http/active-run-conflict.d.ts +1 -1
  161. package/dist/http/active-run-conflict.js +1 -1
  162. package/dist/http/admission.js +11 -1
  163. package/dist/http/approval-sweeps.d.ts +2 -5
  164. package/dist/http/approval-sweeps.js +3 -2
  165. package/dist/http/checkpoint-ctx.d.ts +76 -71
  166. package/dist/http/checkpoint-ctx.js +40 -40
  167. package/dist/http/claim-latency.d.ts +10 -0
  168. package/dist/http/claim-latency.js +12 -0
  169. package/dist/http/dispatch.js +19 -3
  170. package/dist/http/durable-run-leg.d.ts +5 -0
  171. package/dist/http/durable-run-leg.js +3 -1
  172. package/dist/http/execution-context.d.ts +7 -1
  173. package/dist/http/execution-context.js +13 -0
  174. package/dist/http/health-self-report.d.ts +6 -2
  175. package/dist/http/health-self-report.js +3 -2
  176. package/dist/http/memory-compliance-failure-reply.d.ts +2 -2
  177. package/dist/http/memory-compliance-failure-reply.js +5 -15
  178. package/dist/http/memory-control-plane-corrupt-reply.d.ts +25 -0
  179. package/dist/http/memory-control-plane-corrupt-reply.js +19 -0
  180. package/dist/http/memory-store-refusal-reply.d.ts +3 -3
  181. package/dist/http/memory-store-refusal-reply.js +3 -0
  182. package/dist/http/owner-access.d.ts +11 -0
  183. package/dist/http/owner-access.js +7 -4
  184. package/dist/http/principal-gate.d.ts +28 -16
  185. package/dist/http/principal-gate.js +10 -19
  186. package/dist/http/request-guards.d.ts +2 -2
  187. package/dist/http/request-guards.js +5 -5
  188. package/dist/http/resume-legs.d.ts +29 -10
  189. package/dist/http/resume-legs.js +94 -56
  190. package/dist/http/rewind-files-reply.d.ts +34 -0
  191. package/dist/http/rewind-files-reply.js +36 -0
  192. package/dist/http/route-ctx.d.ts +43 -26
  193. package/dist/http/route-table.js +4 -0
  194. package/dist/http/routes/adoption.d.ts +11 -0
  195. package/dist/http/routes/adoption.js +80 -6
  196. package/dist/http/routes/agents-roster.js +1 -0
  197. package/dist/http/routes/approvals-assistant.js +7 -26
  198. package/dist/http/routes/background.js +1 -0
  199. package/dist/http/routes/capabilities.js +12 -3
  200. package/dist/http/routes/devices.js +1 -1
  201. package/dist/http/routes/diagnostics.d.ts +9 -14
  202. package/dist/http/routes/diagnostics.js +10 -20
  203. package/dist/http/routes/engine.d.ts +31 -0
  204. package/dist/http/routes/engine.js +81 -0
  205. package/dist/http/routes/memory-bundle.js +3 -0
  206. package/dist/http/routes/memory-consolidation.js +3 -5
  207. package/dist/http/routes/memory-origin.d.ts +2 -2
  208. package/dist/http/routes/memory-origin.js +2 -4
  209. package/dist/http/routes/memory-policy.js +5 -1
  210. package/dist/http/routes/notify-wake.js +2 -1
  211. package/dist/http/routes/observability.js +3 -6
  212. package/dist/http/routes/projects.d.ts +70 -0
  213. package/dist/http/routes/projects.js +86 -0
  214. package/dist/http/routes/rules.js +30 -2
  215. package/dist/http/routes/runs.js +15 -11
  216. package/dist/http/routes/session-sync.js +39 -35
  217. package/dist/http/routes/sessions-list.d.ts +1 -1
  218. package/dist/http/routes/sessions.d.ts +7 -1
  219. package/dist/http/routes/sessions.js +108 -2
  220. package/dist/http/routes/tasks.js +32 -8
  221. package/dist/http/routes/trace-usage.js +1 -1
  222. package/dist/http/run-concurrency-cap.d.ts +86 -0
  223. package/dist/http/run-concurrency-cap.js +54 -0
  224. package/dist/http/server.d.ts +31 -14
  225. package/dist/http/server.js +29 -3
  226. package/dist/http/stored-body-replay.d.ts +12 -7
  227. package/dist/http/stored-body-replay.js +28 -5
  228. package/dist/http/wire-types.d.ts +27 -13
  229. package/dist/index.d.ts +2 -2
  230. package/dist/index.js +1 -1
  231. package/dist/instruction-source-notice.d.ts +1 -1
  232. package/dist/json-body-limit.d.ts +8 -0
  233. package/dist/json-body-limit.js +2 -0
  234. package/dist/leader/diffout.d.ts +1 -1
  235. package/dist/local-data-root.d.ts +2 -2
  236. package/dist/memory-embedder-reembed.d.ts +38 -0
  237. package/dist/memory-embedder-reembed.js +20 -0
  238. package/dist/memory-incident-sink.d.ts +0 -28
  239. package/dist/memory-incident-sink.js +5 -0
  240. package/dist/memory-operator-faces.d.ts +9 -4
  241. package/dist/memory-scope-stores.d.ts +9 -7
  242. package/dist/memory-scope-stores.js +3 -14
  243. package/dist/memory-scope.d.ts +38 -2
  244. package/dist/memory-scope.js +33 -2
  245. package/dist/memory-store-refusal.d.ts +17 -4
  246. package/dist/memory-store-refusal.js +1 -1
  247. package/dist/memory-sync-client.d.ts +2 -0
  248. package/dist/memory-sync-client.js +13 -11
  249. package/dist/memory-sync.js +1 -1
  250. package/dist/model-compat.d.ts +35 -21
  251. package/dist/model-compat.js +49 -21
  252. package/dist/model-entry-refusal.d.ts +11 -1
  253. package/dist/model-entry-refusal.js +7 -0
  254. package/dist/namespaced-rule-name.d.ts +18 -1
  255. package/dist/namespaced-rule-name.js +12 -0
  256. package/dist/net-address.d.ts +53 -0
  257. package/dist/net-address.js +111 -0
  258. package/dist/observability/fail-open.d.ts +29 -17
  259. package/dist/observability/fail-open.js +29 -17
  260. package/dist/observability/metrics.d.ts +2 -0
  261. package/dist/observability/metrics.js +2 -0
  262. package/dist/observability/secret-env-scrub.d.ts +30 -4
  263. package/dist/observability/secret-env-scrub.js +15 -3
  264. package/dist/orchestration/workflow-agent-session-index.d.ts +7 -12
  265. package/dist/orchestration/workflow-agent-session-index.js +1 -6
  266. package/dist/orchestration/workflow-completion-inbox.d.ts +26 -6
  267. package/dist/orchestration/workflow-completion-inbox.js +63 -45
  268. package/dist/orchestration/workflow-notify-journal.js +2 -3
  269. package/dist/org-delivery-gate.js +1 -1
  270. package/dist/org-memory-admission.d.ts +5 -2
  271. package/dist/org-memory-admission.js +25 -10
  272. package/dist/parked-decide.d.ts +33 -26
  273. package/dist/parked-decide.js +36 -44
  274. package/dist/peer-directory.d.ts +6 -12
  275. package/dist/peer-directory.js +5 -1
  276. package/dist/plugins/approval-ask-store-file.d.ts +10 -2
  277. package/dist/plugins/approval-ask-store-file.js +37 -4
  278. package/dist/plugins/approval-ask-store-memory.d.ts +5 -3
  279. package/dist/plugins/approval-ask-store-memory.js +11 -2
  280. package/dist/plugins/approval-ask-store-sql.d.ts +3 -0
  281. package/dist/plugins/approval-ask-store-sql.js +3 -1
  282. package/dist/plugins/blob-backend.d.ts +38 -195
  283. package/dist/plugins/blob-backend.js +33 -229
  284. package/dist/plugins/caching-session-store.d.ts +12 -5
  285. package/dist/plugins/caching-session-store.js +3 -0
  286. package/dist/plugins/checkpoint-index-columns.d.ts +1 -1
  287. package/dist/plugins/checkpoint-index-columns.js +3 -2
  288. package/dist/plugins/checkpoint-store-face.d.ts +426 -0
  289. package/dist/plugins/checkpoint-store-face.js +152 -0
  290. package/dist/plugins/device-store-sql.d.ts +2 -2
  291. package/dist/plugins/device-store-sql.js +5 -10
  292. package/dist/plugins/execution-lane-rename-m40.d.ts +20 -0
  293. package/dist/plugins/execution-lane-rename-m40.js +10 -0
  294. package/dist/plugins/execution-placement-sql.d.ts +63 -88
  295. package/dist/plugins/execution-placement-sql.js +94 -54
  296. package/dist/plugins/file-run-store.d.ts +26 -18
  297. package/dist/plugins/file-run-store.js +64 -75
  298. package/dist/plugins/fork-routing-session-store.d.ts +6 -2
  299. package/dist/plugins/fork-routing-session-store.js +2 -2
  300. package/dist/plugins/imported-layer-root-retirement.d.ts +22 -11
  301. package/dist/plugins/imported-layer-root-retirement.js +4 -8
  302. package/dist/plugins/inbox-payload-column.d.ts +14 -0
  303. package/dist/plugins/inbox-payload-column.js +13 -0
  304. package/dist/plugins/local-checkpoint-store.d.ts +7 -2
  305. package/dist/plugins/local-checkpoint-store.js +13 -8
  306. package/dist/plugins/local-data-dir-modes-m39.d.ts +48 -0
  307. package/dist/plugins/local-data-dir-modes-m39.js +182 -0
  308. package/dist/plugins/local-engine-high-water.d.ts +11 -0
  309. package/dist/plugins/local-engine-high-water.js +59 -0
  310. package/dist/plugins/local-session-store.d.ts +119 -30
  311. package/dist/plugins/local-session-store.js +156 -53
  312. package/dist/plugins/local-task-attachment-store.d.ts +2 -0
  313. package/dist/plugins/local-task-attachment-store.js +10 -11
  314. package/dist/plugins/memory-embedder-fingerprint.d.ts +33 -10
  315. package/dist/plugins/memory-embedder-fingerprint.js +52 -12
  316. package/dist/plugins/memory-embedder.d.ts +1 -1
  317. package/dist/plugins/memory-embedder.js +2 -2
  318. package/dist/plugins/memory-engine-pg.d.ts +30 -6
  319. package/dist/plugins/memory-engine-pg.js +96 -214
  320. package/dist/plugins/memory-engine-sql-apply.d.ts +130 -0
  321. package/dist/plugins/memory-engine-sql-apply.js +358 -0
  322. package/dist/plugins/memory-engine-tidb.d.ts +38 -9
  323. package/dist/plugins/memory-engine-tidb.js +99 -230
  324. package/dist/plugins/memory-key-guards.d.ts +1 -1
  325. package/dist/plugins/memory-origin-law.d.ts +3 -3
  326. package/dist/plugins/one-time-migrations.d.ts +169 -83
  327. package/dist/plugins/one-time-migrations.js +295 -235
  328. package/dist/plugins/owner-only-file-mode.d.ts +29 -0
  329. package/dist/plugins/owner-only-file-mode.js +141 -0
  330. package/dist/plugins/permission-rule-store-file.d.ts +17 -3
  331. package/dist/plugins/permission-rule-store-file.js +20 -1
  332. package/dist/plugins/pg-pool.d.ts +2 -1
  333. package/dist/plugins/pg-pool.js +12 -5
  334. package/dist/plugins/release-version.d.ts +20 -0
  335. package/dist/plugins/release-version.js +28 -0
  336. package/dist/plugins/remote-env-adb.d.ts +20 -4
  337. package/dist/plugins/remote-env-adb.js +39 -11
  338. package/dist/plugins/remote-env-e2b.d.ts +12 -3
  339. package/dist/plugins/remote-env-e2b.js +6 -4
  340. package/dist/plugins/remote-env-host.d.ts +9 -1
  341. package/dist/plugins/remote-env-host.js +6 -5
  342. package/dist/plugins/remote-env-k8s.d.ts +5 -2
  343. package/dist/plugins/remote-env-k8s.js +15 -4
  344. package/dist/plugins/remote-env-local-docker.d.ts +4 -1
  345. package/dist/plugins/remote-env-local-docker.js +3 -3
  346. package/dist/plugins/remote-env-ssh.d.ts +8 -2
  347. package/dist/plugins/remote-env-ssh.js +26 -24
  348. package/dist/plugins/remote-shell.d.ts +59 -30
  349. package/dist/plugins/remote-shell.js +175 -62
  350. package/dist/plugins/retention-declaration.d.ts +37 -0
  351. package/dist/plugins/retention-declaration.js +9 -0
  352. package/dist/plugins/retention-deployment.d.ts +126 -0
  353. package/dist/plugins/retention-deployment.js +88 -0
  354. package/dist/plugins/retention-lane-store-sql.d.ts +74 -4
  355. package/dist/plugins/retention-lane-store-sql.js +103 -1
  356. package/dist/plugins/retention-sql.d.ts +29 -0
  357. package/dist/plugins/retention-sql.js +8 -0
  358. package/dist/plugins/run-store-sql.js +2 -2
  359. package/dist/plugins/schema-consistency.d.ts +0 -6
  360. package/dist/plugins/schema-consistency.js +1 -2
  361. package/dist/plugins/schema-ensure-legs.d.ts +1 -1
  362. package/dist/plugins/schema-ensure-legs.js +13 -3
  363. package/dist/plugins/session-ext-table.d.ts +74 -0
  364. package/dist/plugins/session-ext-table.js +121 -0
  365. package/dist/plugins/session-fork.d.ts +31 -9
  366. package/dist/plugins/session-fork.js +3 -2
  367. package/dist/plugins/session-placement.d.ts +4 -2
  368. package/dist/plugins/session-row-sql.d.ts +8 -7
  369. package/dist/plugins/session-row-sql.js +15 -7
  370. package/dist/plugins/session-store-sql.d.ts +131 -0
  371. package/dist/plugins/session-store-sql.js +298 -0
  372. package/dist/plugins/session-workspace-cell.d.ts +2 -2
  373. package/dist/plugins/session-workspace-cell.js +2 -2
  374. package/dist/plugins/shared-memory-store-sql.d.ts +10 -0
  375. package/dist/plugins/shared-memory-store-sql.js +13 -13
  376. package/dist/plugins/snapshot-bucket-presence.js +1 -1
  377. package/dist/plugins/sql-driver.d.ts +23 -7
  378. package/dist/plugins/sql-driver.js +41 -8
  379. package/dist/plugins/sql-errors.d.ts +5 -2
  380. package/dist/plugins/sql-errors.js +4 -0
  381. package/dist/plugins/sql-json-column.d.ts +5 -1
  382. package/dist/plugins/store-backend.d.ts +46 -16
  383. package/dist/plugins/store-backend.js +192 -69
  384. package/dist/plugins/store-contracts.d.ts +10 -13
  385. package/dist/plugins/store-contracts.js +1 -9
  386. package/dist/plugins/store-sweep.d.ts +63 -0
  387. package/dist/plugins/store-sweep.js +48 -0
  388. package/dist/plugins/task-attachment-store.d.ts +6 -8
  389. package/dist/plugins/task-attachment-store.js +15 -10
  390. package/dist/plugins/task-list-store-sql.d.ts +1 -1
  391. package/dist/plugins/text-column-capacity.d.ts +21 -0
  392. package/dist/plugins/text-column-capacity.js +5 -0
  393. package/dist/plugins/tidb-pool.d.ts +3 -2
  394. package/dist/plugins/tidb-pool.js +20 -32
  395. package/dist/plugins/user-input-ledger-sql.d.ts +1 -1
  396. package/dist/prompt-screen.d.ts +6 -9
  397. package/dist/prompt-screen.js +2 -5
  398. package/dist/read-face-posture.d.ts +6 -6
  399. package/dist/read-face-posture.js +2 -2
  400. package/dist/request-value-closure.d.ts +5 -5
  401. package/dist/request-value-closure.js +1 -1
  402. package/dist/rules-consent.d.ts +48 -27
  403. package/dist/rules-consent.js +147 -23
  404. package/dist/run-cancel-context.d.ts +4 -1
  405. package/dist/run-cancel-context.js +2 -1
  406. package/dist/run-local.js +17 -13
  407. package/dist/runs.d.ts +48 -30
  408. package/dist/runs.js +27 -17
  409. package/dist/runtime-caps-resolver.d.ts +15 -8
  410. package/dist/runtime-caps-resolver.js +14 -10
  411. package/dist/sandbox-egress-policy.js +6 -11
  412. package/dist/sandbox-rbac-rules.d.ts +88 -0
  413. package/dist/sandbox-rbac-rules.js +80 -0
  414. package/dist/sealed-key-layout.d.ts +16 -0
  415. package/dist/sealed-key-layout.js +3 -0
  416. package/dist/sealed-key.js +8 -6
  417. package/dist/security.d.ts +43 -9
  418. package/dist/security.js +9 -2
  419. package/dist/sema-config-dir.js +2 -2
  420. package/dist/server-secret-env.d.ts +2 -0
  421. package/dist/service-version.d.ts +2 -1
  422. package/dist/service-version.js +2 -2
  423. package/dist/session-error-wire.d.ts +1 -1
  424. package/dist/session-incarnation.d.ts +8 -5
  425. package/dist/session-notify-door.d.ts +5 -3
  426. package/dist/session-resident-background.d.ts +110 -0
  427. package/dist/session-resident-background.js +88 -0
  428. package/dist/session-row.d.ts +1 -1
  429. package/dist/session-sync-kernel.d.ts +53 -14
  430. package/dist/session-sync-kernel.js +70 -1
  431. package/dist/session-sync.d.ts +5 -3
  432. package/dist/session-workspace.d.ts +12 -2
  433. package/dist/session-workspace.js +6 -0
  434. package/dist/sighup-idle.d.ts +9 -7
  435. package/dist/sighup-idle.js +4 -5
  436. package/dist/spec-fields.d.ts +16 -0
  437. package/dist/spec-fields.js +7 -0
  438. package/dist/store-posture.d.ts +2 -1
  439. package/dist/stored-request-env-credentials-m38.d.ts +3 -0
  440. package/dist/stored-request-env-credentials-m38.js +8 -0
  441. package/dist/stored-request-hooks-m20.d.ts +3 -2
  442. package/dist/stored-request-hooks-m20.js +19 -14
  443. package/dist/stored-request-prompt-profile-m30.d.ts +1 -1
  444. package/dist/stores-sql/blob-index-sql.d.ts +148 -0
  445. package/dist/stores-sql/blob-index-sql.js +154 -0
  446. package/dist/{plugins → stores-sql}/checkpoint-store-sql.d.ts +14 -428
  447. package/dist/{plugins → stores-sql}/checkpoint-store-sql.js +43 -220
  448. package/dist/{plugins → stores-sql}/file-history-store-sql.d.ts +23 -11
  449. package/dist/{plugins → stores-sql}/file-history-store-sql.js +23 -18
  450. package/dist/{plugins → stores-sql}/mailbox-store-sql.d.ts +2 -2
  451. package/dist/{plugins → stores-sql}/mailbox-store-sql.js +4 -4
  452. package/dist/{plugins → stores-sql}/pg-session-storage.d.ts +27 -67
  453. package/dist/{plugins → stores-sql}/pg-session-storage.js +82 -207
  454. package/dist/{plugins → stores-sql}/retention-store-sql.d.ts +123 -217
  455. package/dist/{plugins → stores-sql}/retention-store-sql.js +66 -190
  456. package/dist/{plugins → stores-sql}/roster-store-sql.d.ts +2 -2
  457. package/dist/{plugins → stores-sql}/roster-store-sql.js +1 -1
  458. package/dist/{plugins → stores-sql}/session-event-payload.d.ts +1 -1
  459. package/dist/{plugins → stores-sql}/session-event-payload.js +1 -1
  460. package/dist/stores-sql/session-policy-store-sql.d.ts +1 -1
  461. package/dist/stores-sql/session-write-hooks.d.ts +59 -0
  462. package/dist/stores-sql/session-write-hooks.js +2 -0
  463. package/dist/{plugins → stores-sql}/tidb-session-storage.d.ts +10 -11
  464. package/dist/{plugins → stores-sql}/tidb-session-storage.js +10 -21
  465. package/dist/{plugins → stores-sql}/tidb-session-store.d.ts +35 -112
  466. package/dist/{plugins → stores-sql}/tidb-session-store.js +73 -169
  467. package/dist/{plugins → stores-sql}/tool-result-store-sql.d.ts +3 -3
  468. package/dist/{plugins → stores-sql}/tool-result-store-sql.js +6 -6
  469. package/dist/stores-sql/windowed-session-storage.d.ts +56 -0
  470. package/dist/stores-sql/windowed-session-storage.js +61 -0
  471. package/dist/{plugins → stores-sql}/workflow-journal-store-sql.d.ts +7 -12
  472. package/dist/{plugins → stores-sql}/workflow-journal-store-sql.js +3 -8
  473. package/dist/task-a2a.d.ts +7 -1
  474. package/dist/task-a2a.js +15 -14
  475. package/dist/task-cwd.d.ts +11 -3
  476. package/dist/task-cwd.js +17 -1
  477. package/dist/task-mcp.d.ts +10 -2
  478. package/dist/task-mcp.js +13 -16
  479. package/dist/task-settings.d.ts +68 -8
  480. package/dist/task-settings.js +63 -6
  481. package/dist/tool-approval.d.ts +23 -10
  482. package/dist/tool-approval.js +10 -6
  483. package/dist/trace/core-keyset-guard.d.ts +17 -10
  484. package/dist/trace/engine-notice-wire.d.ts +1 -1
  485. package/dist/trace/engine-notice-wire.js +4 -0
  486. package/dist/trace/exit-seat.d.ts +29 -1
  487. package/dist/trace/exit-seat.js +4 -0
  488. package/dist/trace/project.d.ts +33 -16
  489. package/dist/trace/project.js +21 -9
  490. package/dist/trace/redact.d.ts +13 -2
  491. package/dist/trace/redact.js +347 -78
  492. package/dist/trace/self-minted-wire.d.ts +587 -16
  493. package/dist/trace/self-minted-wire.js +215 -9
  494. package/dist/trace/sema-provenance.d.ts +45 -41
  495. package/dist/trace/sema-provenance.js +81 -10
  496. package/dist/trace/task-notification-facets.d.ts +70 -2
  497. package/dist/trace/task-notification-facets.js +71 -1
  498. package/dist/trace/wire-projection-faces.d.ts +39 -3
  499. package/dist/trace/wire-projection-faces.js +27 -2
  500. package/dist/unread-request-members.d.ts +66 -0
  501. package/dist/unread-request-members.js +41 -0
  502. package/dist/usage-analytics.d.ts +4 -0
  503. package/dist/user-input-ledger.d.ts +2 -2
  504. package/dist/web-admin-client/apply-effective.js +22 -26
  505. package/dist/web-admin-client/candidate-gate.d.ts +35 -3
  506. package/dist/web-admin-client/candidate-gate.js +53 -5
  507. package/dist/web-admin-client/center-request.d.ts +4 -1
  508. package/dist/web-admin-client/center-request.js +2 -1
  509. package/dist/web-admin-client/effective-keys.js +0 -1
  510. package/dist/web-admin-client/facade.d.ts +1 -1
  511. package/dist/web-admin-client/http-client.d.ts +1 -0
  512. package/dist/web-admin-client/http-client.js +17 -9
  513. package/dist/web-admin-client/restart-signal.js +5 -2
  514. package/dist/web-admin-client/skills-mcp.d.ts +20 -6
  515. package/dist/web-admin-client/skills-mcp.js +26 -21
  516. package/dist/web-admin-client/types.d.ts +34 -49
  517. package/docs/DEVICE-EXECUTOR-PROTOCOL.md +2 -2
  518. package/package.json +22 -13
  519. package/scripts/drain-check-local.mjs +8 -55
  520. package/scripts/drain-check.mysql.sql +3 -40
  521. package/scripts/drain-check.pg.sql +3 -40
  522. package/skills/update-config.md +1 -1
  523. package/wire-changes/server@7.146.0.json +3221 -0
  524. package/wire-changes/server@7.147.0.json +813 -0
  525. package/dist/approval-batch-census.d.ts +0 -27
  526. package/dist/approval-batch-census.js +0 -27
@@ -477,6 +477,32 @@ export declare const SELF_MINTED_WIRE: {
477
477
  };
478
478
  };
479
479
  };
480
+ /** 7.147.0:能力位 `settingsContract.hookEntryFields` 的键(契约 hook 条目型,每型一列字段名,契约型序;恒在场、不随部署形变)。 */
481
+ readonly settingsContractHookEntryType: {
482
+ readonly at: "GET /v1/capabilities settingsContract.hookEntryFields";
483
+ readonly members: {
484
+ command: {
485
+ attr: string;
486
+ since: string;
487
+ };
488
+ prompt: {
489
+ attr: string;
490
+ since: string;
491
+ };
492
+ agent: {
493
+ attr: string;
494
+ since: string;
495
+ };
496
+ http: {
497
+ attr: string;
498
+ since: string;
499
+ };
500
+ mcp_tool: {
501
+ attr: string;
502
+ since: string;
503
+ };
504
+ };
505
+ };
480
506
  /** 7.137.0:能力位 `credentialPlane.sandboxGit.state`(成员 git 凭据平面开 / 关;判官 `judgeSandboxGitPlane`)。 */
481
507
  readonly credentialPlaneSandboxGitState: {
482
508
  readonly at: "GET /v1/capabilities credentialPlane.sandboxGit.state";
@@ -561,6 +587,31 @@ export declare const SELF_MINTED_WIRE: {
561
587
  };
562
588
  };
563
589
  };
590
+ /**
591
+ * `GET /health` 的 `auth` 段的键集(恒在场,`auth` 本身恒在)。7.121.0 的三键是补登记;`serviceTokenActsForDeployment` = 出示 service 凭据、不报主体的调用方
592
+ * 在这台部署上代不代部署本人(配了 service 凭据 ∧ 声明位 `SERVICE_TOKEN_ACTS_FOR_DEPLOYMENT`;门 `actsForDeployment` 读同一格)。
593
+ */
594
+ readonly healthAuthKey: {
595
+ readonly at: "GET /health auth";
596
+ readonly members: {
597
+ required: {
598
+ attr: string;
599
+ since: string;
600
+ };
601
+ kinds: {
602
+ attr: string;
603
+ since: string;
604
+ };
605
+ identityAttach: {
606
+ attr: string;
607
+ since: string;
608
+ };
609
+ serviceTokenActsForDeployment: {
610
+ attr: string;
611
+ since: string;
612
+ };
613
+ };
614
+ };
564
615
  /** 7.121.0:`GET /health` 自报位 `auth.identityAttach`。 */
565
616
  readonly healthIdentityAttach: {
566
617
  readonly at: "GET /health auth.identityAttach";
@@ -653,6 +704,33 @@ export declare const SELF_MINTED_WIRE: {
653
704
  };
654
705
  };
655
706
  };
707
+ /**
708
+ * `GET /health` 的 `inflightBreakdown` 段(7.146.0;`backgroundAgents` 7.147.0):`inflight` 的分项 —— `http` = 本副本 HTTP 腿(在飞 run 集 + 没有登记身份的同步计费腿 + admission 期的非探针请求),
709
+ * `leader` = leader 口的后台 run,`backgroundAgents` = 活过起它的那一条腿、仍在跑的后台子代理(停驻的不计),`sessionResident` = 会话驻留的后台 shell / monitor(活过起它的那一条腿;不含 retain 行)。
710
+ * `inflight`(总数)恒等于四项之和(同一次读、`inflightTotal` 一处求和);判停读的阻断集 = `http + leader + backgroundAgents`(不上 wire),驻留 shell 项只报不阻断。
711
+ * present-iff `inflight` 在场(`drainState` 装了的部署);键集属主 = `InflightBreakdown`(加一键而本表没跟 ⇒ tsc 红)。
712
+ */
713
+ readonly healthInflightBreakdownKey: {
714
+ readonly at: "GET /health inflightBreakdown";
715
+ readonly members: {
716
+ http: {
717
+ attr: string;
718
+ since: string;
719
+ };
720
+ leader: {
721
+ attr: string;
722
+ since: string;
723
+ };
724
+ backgroundAgents: {
725
+ attr: string;
726
+ since: string;
727
+ };
728
+ sessionResident: {
729
+ attr: string;
730
+ since: string;
731
+ };
732
+ };
733
+ };
656
734
  /**
657
735
  * `GET /health` 的 `engineLease` 段(7.141.0):引擎附着租约窗 —— `lingerMs` = 自退腿会执行的**最短**静默窗(父活着的窗与孤儿窗取小),`tickMs` = 自退检查采样拍。
658
736
  * present-iff 本进程装了租约腿(`ENGINE_AUTO_EXIT` 开或 `SEMA_PARENT_PID` 在场)∧ 腿还在观察 ∧ 窗会到期;键集属主 = `EngineLeaseFacts`(加一键而本表没跟 ⇒ tsc 红)。
@@ -668,6 +746,129 @@ export declare const SELF_MINTED_WIRE: {
668
746
  attr: string;
669
747
  since: string;
670
748
  };
749
+ firstAttach: {
750
+ attr: string;
751
+ since: string;
752
+ };
753
+ lane: {
754
+ attr: string;
755
+ since: string;
756
+ };
757
+ handover: {
758
+ attr: string;
759
+ since: string;
760
+ };
761
+ };
762
+ };
763
+ /**
764
+ * `GET /health` 的 `engineLease.firstAttach` 格(7.146.0):首次附着前的宽限窗 —— `windowMs` = 生效的候首触窗 `max(owned 窗, ENGINE_FIRST_ATTACH_MS)`,
765
+ * `since` = 窗开始(装配那一拍,epoch ms),`attachedAt` = 首个非探针请求的时刻(epoch ms;`null` = 还没有过)。键集属主 = `EngineLeaseFirstAttachFacts`(加一键而本表没跟 ⇒ tsc 红)。
766
+ */
767
+ readonly healthEngineLeaseFirstAttachKey: {
768
+ readonly at: "GET /health engineLease.firstAttach";
769
+ readonly members: {
770
+ windowMs: {
771
+ attr: string;
772
+ since: string;
773
+ };
774
+ since: {
775
+ attr: string;
776
+ since: string;
777
+ };
778
+ attachedAt: {
779
+ attr: string;
780
+ since: string;
781
+ };
782
+ };
783
+ };
784
+ /** `GET /health` 的 `engineLease.handover` 格:交接车道的事实 —— 进入时刻(epoch ms)、缘由、交接窗、退出边界此刻会硬收的后台 shell 数。只在 handover 车道在场;键集属主 = `EngineHandoverFacts`。 */
785
+ readonly healthEngineLeaseHandoverKey: {
786
+ readonly at: "GET /health engineLease.handover";
787
+ readonly members: {
788
+ since: {
789
+ attr: string;
790
+ since: string;
791
+ };
792
+ reason: {
793
+ attr: string;
794
+ since: string;
795
+ };
796
+ lingerMs: {
797
+ attr: string;
798
+ since: string;
799
+ };
800
+ backgroundShells: {
801
+ attr: string;
802
+ since: string;
803
+ };
804
+ };
805
+ };
806
+ /** 附着租约的车道词(`/health.engineLease.lane`、`POST /v1/engine/handover` · `POST /v1/engine/attach` 200 体的 `lane`、`exit-last.json` 的 `lane`)。 */
807
+ readonly engineLane: {
808
+ readonly at: "engine lease lane(/health engineLease.lane · POST /v1/engine/handover|attach lane · exit-last.json lane)";
809
+ readonly members: {
810
+ handover: {
811
+ attr: string;
812
+ since: string;
813
+ };
814
+ orphan: {
815
+ attr: string;
816
+ since: string;
817
+ };
818
+ awaitingFirstAttach: {
819
+ attr: string;
820
+ since: string;
821
+ };
822
+ owned: {
823
+ attr: string;
824
+ since: string;
825
+ };
826
+ };
827
+ };
828
+ /** 交接缘由闭集(交接口体的 `reason`、`/health.engineLease.handover.reason`)。 */
829
+ readonly engineHandoverReason: {
830
+ readonly at: "POST /v1/engine/handover reason · /health engineLease.handover.reason";
831
+ readonly members: {
832
+ background_exit: {
833
+ attr: string;
834
+ since: string;
835
+ };
836
+ };
837
+ };
838
+ /** `POST /v1/engine/handover` 200 体的键集(唯一铸点 = 租约腿交接门的 `enter`)。 */
839
+ readonly engineHandoverReplyKey: {
840
+ readonly at: "POST /v1/engine/handover 200 体键(<键> → 在场律)";
841
+ readonly members: {
842
+ lane: {
843
+ attr: string;
844
+ since: string;
845
+ };
846
+ since: {
847
+ attr: string;
848
+ since: string;
849
+ };
850
+ lingerMs: {
851
+ attr: string;
852
+ since: string;
853
+ };
854
+ backgroundShells: {
855
+ attr: string;
856
+ since: string;
857
+ };
858
+ };
859
+ };
860
+ /** `POST /v1/engine/attach` 200 体的键集(唯一铸点 = 租约腿交接门的 `attach`)。 */
861
+ readonly engineAttachReplyKey: {
862
+ readonly at: "POST /v1/engine/attach 200 体键(<键> → 在场律)";
863
+ readonly members: {
864
+ lane: {
865
+ attr: string;
866
+ since: string;
867
+ };
868
+ handedOverForMs: {
869
+ attr: string;
870
+ since: string;
871
+ };
671
872
  };
672
873
  };
673
874
  /** `GET /v1/models` 的 `models[]` 行键(只登本版新出现的键;行的其余键不是本版新上 wire):`supportsThinkingOff` —— 「这只模型的推理能不能关」,恒在场的布尔,值 = 引擎唯一读法 `thinkingOffSpelled(条目)`。 */
@@ -678,6 +879,36 @@ export declare const SELF_MINTED_WIRE: {
678
879
  readonly attr: "always";
679
880
  readonly since: "7.138.0";
680
881
  };
882
+ readonly thinkingLevelMap: {
883
+ readonly attr: "present-iff declared";
884
+ readonly since: "7.147.0";
885
+ };
886
+ };
887
+ };
888
+ /** `GET /v1/models` 的 anthropic-messages 行上 `compat` 的键(本版起这条线路的声明生效、上 wire —— 此前 anthropic 条目的 compat 一律被丢;键集 = core `AnthropicMessagesCompat`)。 */
889
+ readonly modelsRowAnthropicCompatKey: {
890
+ readonly at: "GET /v1/models models[].compat 键(anthropic-messages 行;<键> → 在场律)";
891
+ readonly members: {
892
+ thinkingMode: {
893
+ attr: string;
894
+ since: string;
895
+ };
896
+ effortLevels: {
897
+ attr: string;
898
+ since: string;
899
+ };
900
+ supportsTemperature: {
901
+ attr: string;
902
+ since: string;
903
+ };
904
+ contextManagement: {
905
+ attr: string;
906
+ since: string;
907
+ };
908
+ interleavedThinking: {
909
+ attr: string;
910
+ since: string;
911
+ };
681
912
  };
682
913
  };
683
914
  /** `GET /v1/sessions/:id/background` 的 `rows[]` 上本版新出现的键:`sessionId` —— 后台 agent 行的子会话 id(引擎绑定之后才在,别的行型恒缺席;只是 id,不授读权)。 */
@@ -704,6 +935,86 @@ export declare const SELF_MINTED_WIRE: {
704
935
  };
705
936
  };
706
937
  };
938
+ /**
939
+ * 项目登记簿读面(`GET /v1/projects` 的 `projects[]` = `GET /v1/projects/:id` 的 200 体)的行键全集:settings-schema `ProjectRegistration` 的原键原名 + 本面铸的 `id`。
940
+ * `satisfies` 绑处置表(`http/routes/projects.ts` 的 `PROJECT_ROW_DISPOSITIONS`):settings-schema 给登记加键 ⇒ 处置表先红,表态之后这里再红。
941
+ */
942
+ readonly projectRowKey: {
943
+ readonly at: "GET /v1/projects projects[] 行键 = GET /v1/projects/:id 200 体(<键> → 在场律)";
944
+ readonly members: {
945
+ id: {
946
+ attr: string;
947
+ since: string;
948
+ };
949
+ displayName: {
950
+ attr: string;
951
+ since: string;
952
+ };
953
+ goal: {
954
+ attr: string;
955
+ since: string;
956
+ };
957
+ contextItems: {
958
+ attr: string;
959
+ since: string;
960
+ };
961
+ gitRemotes: {
962
+ attr: string;
963
+ since: string;
964
+ };
965
+ defaultScopes: {
966
+ attr: string;
967
+ since: string;
968
+ };
969
+ notes: {
970
+ attr: string;
971
+ since: string;
972
+ };
973
+ icon: {
974
+ attr: string;
975
+ since: string;
976
+ };
977
+ color: {
978
+ attr: string;
979
+ since: string;
980
+ };
981
+ registeredBy: {
982
+ attr: string;
983
+ since: string;
984
+ };
985
+ registeredAt: {
986
+ attr: string;
987
+ since: string;
988
+ };
989
+ archivedAt: {
990
+ attr: string;
991
+ since: string;
992
+ };
993
+ };
994
+ };
995
+ /** `GET /v1/projects` 200 体的顶层键(闭集;体是路由里的内联字面量 —— 行的键集在 `projectRowKey`)。 */
996
+ readonly projectsListBodyKey: {
997
+ readonly at: "GET /v1/projects 200 体顶层键(<键> → 在场律)";
998
+ readonly members: {
999
+ readonly projects: {
1000
+ readonly attr: "always";
1001
+ readonly since: "7.147.0";
1002
+ };
1003
+ };
1004
+ };
1005
+ /**
1006
+ * 会话视图 `GET /v1/sessions/:id` 体顶层本版新出现的键:`projectId` —— 会话行上最后一帧 `workspace_changed` 的 `project.id`(引擎对这只会话最后一条自己的腿的项目判决;
1007
+ * 唯一读口 `session-workspace.ts` 的 `readSessionProjectId`)。体是视图读面拼出来的(`boot/session-faces.ts`),没有可 `satisfies` 的具名型;在场律由视图读面的钉证。
1008
+ */
1009
+ readonly sessionViewKey: {
1010
+ readonly at: "GET /v1/sessions/:id 体顶层键(本版新出现;<键> → 在场律)";
1011
+ readonly members: {
1012
+ readonly projectId: {
1013
+ readonly attr: "present-iff the session row's last own workspace_changed frame carried a project";
1014
+ readonly since: "7.147.0";
1015
+ };
1016
+ };
1017
+ };
707
1018
  /** 会话列表行 `unreadable` 标记的整个键闭集:`errorCode` —— 读口打开这只会话时答的码(open 面那一张码表,与全局兜底同读)。 */
708
1019
  readonly sessionsListRowUnreadableKey: {
709
1020
  readonly at: "GET /v1/sessions sessions[].unreadable 键(<键> → 在场律)";
@@ -714,6 +1025,34 @@ export declare const SELF_MINTED_WIRE: {
714
1025
  };
715
1026
  };
716
1027
  };
1028
+ /** 停驻补投帧上被裁标记 `payloadTruncated` 的出现面(<帧>#<键> → 在场律):条目扩展键的 UTF-8 字节越过收件条目预算(最窄后端的 `payload` 列容量)⇒ 补投帧是最小形并带它;live 帧不带。 */
1029
+ readonly inboxPayloadTruncatedFrame: {
1030
+ readonly at: "停驻补投帧(下一次开流 drain)键(<帧>#<键> → 在场律)";
1031
+ readonly members: {
1032
+ readonly "task_notification#payloadTruncated": {
1033
+ readonly attr: "present-iff the parked entry's payload exceeded the inbox byte budget (minimal form)";
1034
+ readonly since: "7.147.0";
1035
+ };
1036
+ readonly "workflow_complete#payloadTruncated": {
1037
+ readonly attr: "present-iff the parked entry's payload exceeded the inbox byte budget (minimal form)";
1038
+ readonly since: "7.147.0";
1039
+ };
1040
+ };
1041
+ };
1042
+ /** `payloadTruncated` 的键集(恒两键):`droppedKeys` = 被丢的键名(全形键序;末尾的 `summary` = 帧上的 `summary` 是扣下原句后的受信句),`bytes` = 全形扩展键的 UTF-8 字节数。 */
1043
+ readonly inboxPayloadTruncatedKey: {
1044
+ readonly at: "停驻补投帧 payloadTruncated 的键";
1045
+ readonly members: {
1046
+ droppedKeys: {
1047
+ attr: string;
1048
+ since: string;
1049
+ };
1050
+ bytes: {
1051
+ attr: string;
1052
+ since: string;
1053
+ };
1054
+ };
1055
+ };
717
1056
  /** `tool_end` 帧 `gate.disposition`(denied 臂)上的键(<臂>#<键> → 在场律;回放面 `GET /v1/runs/:id/events` 同读):`extension` —— hook 层拒且拒者的扩展注册名已知时 = 那张注册的名字(过出口座)。 */
718
1057
  readonly toolEndGateDispositionKey: {
719
1058
  readonly at: "tool_end gate.disposition 键(<臂>#<键> → 在场律)";
@@ -940,13 +1279,46 @@ export declare const SELF_MINTED_WIRE: {
940
1279
  };
941
1280
  };
942
1281
  /**
943
- * `inheritEnv` 的三只 400 `request.field_invalid`(值形 / 车道 / 无会话)拒体的 `reason`(体另带 `field: "inheritEnv"`;一种拒因一个词)。词表属主 = `request-value-closure.ts` 的
1282
+ * 429 `limit.rate_exceeded` 拒体的机读 `reason`(7.146.0 起;码是旧的、`reason` 键是新的 —— 其余 `limit.rate_exceeded` 的产地不带它)。词表属主 = `http/run-concurrency-cap.ts` 的
1283
+ * `RATE_EXCEEDED_REASONS`(唯一铸点 `runConcurrencyRefusalOf`);`satisfies Record<RateExceededReason, …>`。`run_concurrency_cap` = 本副本在飞 run 已到并发帽
1284
+ * (`RUN_MAX_CONCURRENT` / `RUN_MAX_CONCURRENT_PER_PRINCIPAL`;新提交的四个口,幂等重放之后),体另带 `retryAfterSec: 5`。
1285
+ */
1286
+ readonly rateExceededReason: {
1287
+ readonly at: "429 limit.rate_exceeded reason(在飞 run 并发帽;其余产地不带 reason)";
1288
+ readonly members: {
1289
+ run_concurrency_cap: {
1290
+ attr: string;
1291
+ since: string;
1292
+ };
1293
+ };
1294
+ };
1295
+ /**
1296
+ * 400 `request.env_credential_refused`(7.146.0 起;请求 `settings.env` 里有凭据)拒体 `entries[]` 每一条的 `match`:这一条为什么被判成凭据(体另带 `field: "settings.env"`、`entries[].key`;值从不进体)。
1297
+ * 词表属主 = `task-settings.ts` 的 `SETTINGS_ENV_CREDENTIAL_MATCHES`(唯一铸点 `settingsEnvCredentialIssue`;受理门 / `resolveSpec` 两腿 / 存体续跑预判同调);`satisfies Record<SettingsEnvCredentialMatch, …>`。
1298
+ * `name` = 名字是本引擎的凭据变量(配置目录 `secret` 行 ∪ 模型条目 `apiKeyEnv`,比名不分大小写);`value_shape` = 值是秘密形;两者都中报 `name`。续跑口 409 `resume_blocked_by_policy`(`blockedBy` = 本码)随体同一组机读位。
1299
+ * 行为钉:`test/settings-env-credential.test.ts`。
1300
+ */
1301
+ readonly settingsEnvCredentialMatch: {
1302
+ readonly at: "400 request.env_credential_refused entries[].match(settings.env 里被判成凭据的条目;续跑口 409 resume_blocked_by_policy 同一组机读位)";
1303
+ readonly members: {
1304
+ name: {
1305
+ attr: string;
1306
+ since: string;
1307
+ };
1308
+ value_shape: {
1309
+ attr: string;
1310
+ since: string;
1311
+ };
1312
+ };
1313
+ };
1314
+ /**
1315
+ * `inheritEnv` 的两类 400 `request.field_invalid`(值形 / 车道)拒体的 `reason`(体另带 `field: "inheritEnv"`;一种拒因一个词)。词表属主 = `request-value-closure.ts` 的
944
1316
  * `INHERIT_ENV_REFUSAL_REASONS`(唯一铸点 `inheritEnvFacts`;受理门与 resolveSpec 两腿只经它出机读位);`satisfies Record<InheritEnvRefusalReason, …>`。
945
- * `unknown_word` = 是字符串但不在受理词表;`not_a_string` = 根本不是字符串;`lane_not_host` = `"all"` 落在非 host 车道;`no_authorizer_session` = `"all"` 而部署不接 authorizer。
1317
+ * `unknown_word` = 是字符串但不在受理词表;`not_a_string` = 根本不是字符串;`lane_not_host` = `"all"` 落在非 host 车道。
946
1318
  * 422 `request.host_posture_refused` 不在这组(姿态拒,不带 `field` / `reason`)。行为钉:`test/inherit-env-request-key.test.ts`。
947
1319
  */
948
1320
  readonly inheritEnvRefusalReason: {
949
- readonly at: "400 request.field_invalid reason(inheritEnv 的值形 / 车道 / 无会话三只拒;另带 field: \"inheritEnv\")";
1321
+ readonly at: "400 request.field_invalid reason(inheritEnv 的值形 / 车道两类拒;另带 field: \"inheritEnv\")";
950
1322
  readonly members: {
951
1323
  unknown_word: {
952
1324
  attr: string;
@@ -960,10 +1332,6 @@ export declare const SELF_MINTED_WIRE: {
960
1332
  attr: string;
961
1333
  since: string;
962
1334
  };
963
- no_authorizer_session: {
964
- attr: string;
965
- since: string;
966
- };
967
1335
  };
968
1336
  };
969
1337
  /**
@@ -1673,6 +2041,10 @@ export declare const SELF_MINTED_WIRE: {
1673
2041
  readonly attr: 409;
1674
2042
  readonly since: "7.145.0";
1675
2043
  };
2044
+ readonly "POST /v1/sessions/:id/sync/plan#stamped_archive(DB_BACKEND=local;\u5E72\u8DD1\u6309 id \u5206\u7C7B\u51FA fork / stale,\u76EE\u7684\u7AEF\u5B58\u6863\u4ECD\u5E26\u5C5E\u4E3B\u6233;\u6B64\u523B\u8BFB,\u4E0D\u5F00\u6682\u5B58\u3001\u4E0D\u62FF\u79DF\u7EA6\u3001\u4E0D\u5199\u5B58\u6863;\u4F53 conflict.session_archive_stamped + \u5E26\u6233\u5B58\u6863\u7684\u56FA\u5B9A\u53E5,\u4E0D\u5E26 relation)": {
2045
+ readonly attr: 409;
2046
+ readonly since: "7.147.0";
2047
+ };
1676
2048
  readonly "POST /v1/tasks|/v1/tasks/stream|/v1/runs#images_url_credential(\u65B0\u63D0\u4EA4;\u4F53 request.field_invalid + field images[i].url + reason url_userinfo|url_credential_param)": {
1677
2049
  readonly attr: 400;
1678
2050
  readonly since: "7.136.0";
@@ -1901,10 +2273,54 @@ export declare const SELF_MINTED_WIRE: {
1901
2273
  readonly attr: 503;
1902
2274
  readonly since: "7.143.0";
1903
2275
  };
1904
- readonly "POST /v1/rules/cc-import/redeem#member_refused(\u5151\u4ED8\u8D70\u5B8C\u3001\u5F15\u64CE\u7684\u5B8C\u6574\u6210\u5458\u8868\u91CC\u6709\u88AB\u62D2\u7684\u6210\u5458;\u4F53 = \u56DE\u6267 { members, rev },\u90A3\u51E0\u884C outcome indeterminate + reason store_refused + detail \u5F15\u64CE\u539F\u8BDD;\u7968\u7528\u6389,\u540C\u7968\u518D\u5151 404)": {
2276
+ readonly "POST /v1/rules/cc-import/prepare|POST /v1/rules/local-import/prepare#record_store_refused(\u5BA1\u6279\u8BB0\u5F55\u5E97\u5EFA\u8FD9\u6B21\u5BFC\u5165\u7684\u8BB0\u5F55\u5931\u8D25,\u5F15\u64CE\u7B54\u5E97\u62D2\u81C2;\u6CA1\u6709\u7968\u3001\u6CA1\u6709\u653E\u884C\u843D\u5E97 \u2014\u2014 local-import \u8FD9\u4E00\u6279\u6536\u4E0B\u7684 deny / ask \u53EF\u80FD\u5DF2\u5F53\u573A\u843D\u5E97;\u4F53 state.rule_write_failed + committed;\u91CD\u53D1\u540C\u4E00\u8BF7\u6C42\u5373\u91CD\u94F8)": {
2277
+ readonly attr: 503;
2278
+ readonly since: "7.147.0";
2279
+ };
2280
+ readonly "POST /v1/rules/cc-import/redeem#member_refused(\u5151\u4ED8\u8D70\u5B8C\u3001\u5F15\u64CE\u7684\u5B8C\u6574\u6210\u5458\u8868\u91CC\u6709\u88AB\u62D2\u7684\u6210\u5458;\u4F53 = \u56DE\u6267 { members, rev },\u90A3\u51E0\u884C outcome refused(\u5F15\u64CE\u7B54 committed no;7.145.0 \u4E3A indeterminate + store_refused)+ reason = \u5F15\u64CE\u62D2\u56E0\u7801(RuleRefusalCode)+ detail \u5F15\u64CE\u539F\u8BDD;\u7968\u7528\u6389,\u540C\u7968\u518D\u5151 404)": {
1905
2281
  readonly attr: 200;
1906
2282
  readonly since: "7.145.0";
1907
2283
  };
2284
+ readonly "POST /v1/rules/cc-import/redeem|POST /v1/rules/local-import/redeem#member_outcome_unknown(\u5151\u4ED8\u8D70\u5B8C\u3001\u5F15\u64CE\u7684\u5B8C\u6574\u6210\u5458\u8868\u91CC\u6709\u4E00\u5458\u7B54 committed unknown:\u5199\u629B / \u8BFB\u56DE\u8BFB\u4E0D\u51FA / \u8BB0 dot \u7684 CAS \u6216 dot \u5206\u914D\u5931\u8D25;\u4E0D\u843D\u5B9A,\u8BA4\u9886\u653E\u56DE;\u4F53 state.rule_import_retry + retryAfterSec;\u540C\u7968\u91CD\u6765\u5373\u91CD\u8D70)": {
2285
+ readonly attr: 503;
2286
+ readonly since: "7.146.0";
2287
+ };
2288
+ readonly "POST /v1/tasks|/v1/tasks/stream|/v1/runs#settings.env \u5E26\u51ED\u636E\u6761\u76EE(\u540D\u5B57\u662F\u672C\u5F15\u64CE\u7684\u51ED\u636E\u53D8\u91CF / \u503C\u662F\u79D8\u5BC6\u5F62;\u65B0\u63D0\u4EA4;\u4F53 request.env_credential_refused + field settings.env + entries[{ key, match }],\u503C\u4E0D\u56DE\u663E)": {
2289
+ readonly attr: 400;
2290
+ readonly since: "7.146.0";
2291
+ };
2292
+ readonly "POST /v1/tasks|/v1/tasks/stream|/v1/runs#sessionId \u662F\u672C\u8FDB\u7A0B\u5220\u8FC7\u7684\u4F1A\u8BDD id\u3001\u6839\u4F1A\u8BDD\u884C\u4E0A\u7684\u4F4F\u5BA2\u4E0D\u662F\u5220\u524D\u5C5E\u4E3B(\u65B0\u63D0\u4EA4;\u6388\u6743\u53E3\u767B\u8BB0\u4E4B\u540E\u3001\u6267\u884C\u4E0A\u4E0B\u6587\u89E3\u6790\u5668\u6B65 \u2460;\u4F53 conflict.session_id_retired,\u4E0D\u56DE\u663E id / \u5C5E\u4E3B)": {
2293
+ readonly attr: 409;
2294
+ readonly since: "7.146.0";
2295
+ };
2296
+ readonly "POST /v1/approvals/:sessionId/decide|/v1/sessions/:id/wake|/v1/assistant/tasks/:id/resume|/v1/assistant/tasks/:id/plan_review#\u6839\u4F1A\u8BDD id \u662F\u672C\u8FDB\u7A0B\u5220\u8FC7\u7684\u4F1A\u8BDD id\u3001\u884C\u4E0A\u7684\u4F4F\u5BA2\u4E0D\u662F\u5220\u524D\u5C5E\u4E3B(\u7EED\u8DD1\u5BB6\u65CF / \u505C\u9A7B\u8D4E\u56DE / \u5DE5\u4F5C\u6D41\u51B3\u65AD\u540E\u7684\u5BBF\u4E3B\u65B0\u8F6E;\u8BA4\u9886\u4E4B\u524D,\u5361\u4ECD\u5F85\u51B3;\u4F53 resume_blocked_by_policy + blockedBy conflict.session_id_retired + retriable)": {
2297
+ readonly attr: 409;
2298
+ readonly since: "7.146.0";
2299
+ };
2300
+ readonly "POST /v1/tasks|/v1/tasks/stream|/v1/runs#scenario_assignment_unavailable(\u65B0\u63D0\u4EA4;\u90E8\u7F72\u63A5\u4E86\u914D\u7F6E\u4E2D\u5FC3\u3001\u8BF7\u6C42\u5E26\u4E3B\u4F53,\u800C\u4E2D\u5FC3\u7B54\u4E0D\u51FA\u8FD9\u4F4D\u4E3B\u4F53\u7684\u573A\u666F\u88C1\u5B9A:\u4E0D\u53EF\u8FBE / \u8D85\u65F6 / \u7B54\u590D\u8BFB\u4E0D\u51FA / \u6307\u6D3E\u4E24\u952E\u5F62\u4E0D\u5BF9\u6216\u53EA\u53D1\u4E00\u952E;\u70B9\u540D\u4E0E\u4E0D\u70B9\u540D\u540C\u62D2;\u96F6 run;\u4F53 state.scenario_assignment_unavailable + permanence: transient,\u65E0 detail)": {
2301
+ readonly attr: 503;
2302
+ readonly since: "7.147.0";
2303
+ };
2304
+ readonly "GET /v1/capabilities/mcp|/v1/sessions/:id/a2a#scenario_assignment_unavailable(\u4E0E\u63D0\u4EA4\u817F\u540C\u4E00\u53EA\u573A\u666F\u95E8;\u7F3A\u5E2D\u4E0E\u70B9\u540D\u7684\u573A\u666F\u540D\u540C\u62D2;\u6574\u9762;\u4F53\u540C\u4E0A)": {
2305
+ readonly attr: 503;
2306
+ readonly since: "7.147.0";
2307
+ };
2308
+ readonly "POST /v1/approvals/:sessionId/decide|/v1/sessions/:id/wake|/v1/assistant/tasks/:id/resume|/v1/assistant/tasks/:id/plan_review#scenario_assignment_unavailable(\u7EED\u8DD1\u5BB6\u65CF\u7ECF\u88C5\u914D\u7684\u90A3\u51E0\u6761;\u8BA4\u9886\u4E4B\u524D,\u5361\u4ECD\u5F85\u51B3;\u4E0D\u6298 resume_blocked_by_policy;\u4F53 state.scenario_assignment_unavailable + permanence: transient + retriable)": {
2309
+ readonly attr: 503;
2310
+ readonly since: "7.147.0";
2311
+ };
2312
+ readonly "POST /v1/tasks|/v1/tasks/stream|/v1/runs#settings.env \u6709\u6210\u5458\u4E0D\u662F\u5E3D\u5185\u7684\u4E32(\u65B0\u63D0\u4EA4;\u53EA\u5728\u91C7\u7EB3 env \u7684\u8F66\u9053\u4E0A:\u5355\u7528\u6237 host / device,\u6216\u91C7\u7EB3\u8BF7\u6C42\u4F53 hooks \u4E14\u8BF7\u6C42\u5E26\u7740 hooks;\u96F6 run;\u4F53 request.field_invalid + field settings.env,\u53E5\u5B50\u70B9\u540D\u5750\u6807\u3001\u4E0D\u56DE\u663E\u503C)": {
2313
+ readonly attr: 400;
2314
+ readonly since: "7.147.0";
2315
+ };
2316
+ readonly "POST /v1/approvals/:sessionId/decide|/v1/sessions/:id/wake|/v1/assistant/tasks/:id/resume|/v1/assistant/tasks/:id/plan_review#stored_unread_members(\u7EED\u8DD1\u5C06\u8981\u8DD1\u7684\u90A3\u4E00\u4EFD\u4F53 \u2014\u2014 \u5B58\u91CF\u4F53,\u91CD\u8FF0\u952E\u5728\u573A\u65F6\u76D6\u8FC7\u91CD\u8FF0\u4E4B\u540E \u2014\u2014 \u91CC\u6709\u672C\u7248\u8BFB\u8005\u8BFB\u4E0D\u51FA\u3001\u800C\u672C\u90E8\u7F72\u672C\u4F1A\u91C7\u7EB3\u7684\u6210\u5458:settings.hooks / settings.env / \u5176\u4F59 settings \u5EF6\u540E\u952E / mcpServers[i].transport / a2aPeers[i].headers;\u8BA4\u9886\u4E4B\u524D,\u5361\u4ECD\u5F85\u51B3;\u4F53 resume_blocked_by_policy + blockedBy request.field_invalid + field + retriable)": {
2317
+ readonly attr: 409;
2318
+ readonly since: "7.147.0";
2319
+ };
2320
+ readonly "POST /v1/runs/:id/steer#stored_unread_members(run \u5DF2\u7EC8\u6001\u3001\u94F8\u5524\u9192\u5361\u4E4B\u524D;\u540C\u4E00\u53EA\u5224;\u4E0D\u94F8\u5361;\u4F53 resume_blocked_by_policy + blockedBy request.field_invalid + field,\u4E0D\u5E26 retriable)": {
2321
+ readonly attr: 409;
2322
+ readonly since: "7.147.0";
2323
+ };
1908
2324
  };
1909
2325
  };
1910
2326
  /**
@@ -1925,15 +2341,8 @@ export declare const SELF_MINTED_WIRE: {
1925
2341
  since: string;
1926
2342
  };
1927
2343
  };
1928
- readonly retired: {
1929
- readonly "result(\u22647.144.0 \u7684 cc-import \u56DE\u6267:{ members: <\u5F15\u64CE RedeemedBatchMember \u539F\u5F62\u884C:candidateIndex / behavior / rule / scope \u5BF9\u8C61 / status / alreadyRedeemed / dot>, rev })": {
1930
- readonly attr: "always";
1931
- readonly since: "7.46.0";
1932
- readonly until: "7.145.0";
1933
- };
1934
- };
1935
2344
  };
1936
- /** 同上回执 `members[]` 一行的键(<键> → 在场律)。键集属主 = `ImportOutcomeMember`(`satisfies` 穷举),唯一投影 = `rules-consent.ts` 的 `buildImportOutcomeMembers`(两口同调)。 */
2345
+ /** 同上回执 `members[]` 一行的键(<键> → 在场律)。键集属主 = `ImportOutcomeMember`(`satisfies` 穷举),唯一投影 = `rules-consent.ts` 的 `settleImportWalk`(两口同调)。 */
1937
2346
  readonly ruleImportReceiptMemberKey: {
1938
2347
  readonly at: "POST /v1/rules/cc-import/redeem 200 回执 members[] 行键(<键> → 在场律;与 POST /v1/rules/local-import/redeem 同形)";
1939
2348
  readonly members: {
@@ -1983,6 +2392,7 @@ export declare const SELF_MINTED_WIRE: {
1983
2392
  /**
1984
2393
  * `GET /v1/sessions/:id/memory-status` 200 体上本版新出现的顶层键:`memorySync` —— 本部署记忆同步腿的停驻事实(部署事实,不随会话、不随层座 `?scope=`;
1985
2394
  * 唯一读口 = 同步执行器的 `parked()`)。形 `{ parked: Array<{ scope, wayOut }> }`,`parked: []` = 在同步、没有层停驻;游标盘路径不上 wire。
2395
+ * `writeHome` / `planes`(7.146.0)—— 会话的记忆写家:引擎给的 canonical 绝对目录(worker 文件系统路径),字节原样;`writeHome` 是店绑定的键(带层座 = 那只店的引擎答案,顶层原样;不带层座 = 引擎在店之间择好的会话级一值,顶层原样;逐店明细 `planes[]` 原样透出每行的 `writeHome`);在场律 = 引擎答了 ∧ 部署形表行 `callerOwnsWorkerDisk`(与能力位 `projectContext` 同一行)。
1986
2396
  */
1987
2397
  readonly sessionMemoryStatusKey: {
1988
2398
  readonly at: "GET /v1/sessions/:id/memory-status 200 体顶层键(<键> → 在场律)";
@@ -1991,6 +2401,14 @@ export declare const SELF_MINTED_WIRE: {
1991
2401
  readonly attr: "present-iff this deployment runs a memory sync leg;{parked:[{scope,wayOut}]} in sync order;parked:[] ⇔ no layer parked;deployment fact (same for every session, ?scope= not applied)";
1992
2402
  readonly since: "7.141.0";
1993
2403
  };
2404
+ readonly writeHome: {
2405
+ readonly attr: "present-iff the engine answered it ∧ the single-user host lane (the capability bit projectContext's range predicate: hosted / sandbox / device / no-hands lanes ⇒ absent);the engine's absolute directory, byte for byte;with ?scope= that store's engine answer;without ?scope= the session-level home the engine chose across the stores (the newest store's own home;absent while any store's reading is unreadable, on a same-instant tie, or when no store names one)";
2406
+ readonly since: "7.146.0";
2407
+ };
2408
+ readonly planes: {
2409
+ readonly attr: "present-iff no ?scope= ∧ the single-user host lane (same predicate as writeHome);[{plane:\"project\"|\"personal\", writeHome?}] one row per store in the engine's store order, each row the engine's own answer for that store (writeHome verbatim, absent when that store names none);the rows' other keys are not on the wire";
2410
+ readonly since: "7.146.0";
2411
+ };
1994
2412
  };
1995
2413
  };
1996
2414
  /** 停驻层出路 `memorySync.parked[].wayOut` 的闭集(同一只词也在运维行 `memory_sync_layer_parked` 的 `wayOut` 上)。`delete_cursor` = 删掉这一层的同步游标文件,下一轮从空基线重收敛(不推删除)。 */
@@ -2078,6 +2496,121 @@ export declare const SELF_MINTED_WIRE: {
2078
2496
  };
2079
2497
  };
2080
2498
  };
2499
+ /** run 外只恢复代码口的 wire 面(`<面>#<键>` → 读法 / 在场律)。200 体 = 引擎 `Runner.rewindFiles` 的结果原样(键属主在引擎);本仓只脱敏文本叶,不加汇总键。 */
2500
+ readonly sessionRewindFilesWire: {
2501
+ readonly at: "POST /v1/sessions/:id/rewind-files(<面>#<键> → 读法 / 在场律)";
2502
+ readonly members: {
2503
+ readonly "body#to": {
2504
+ readonly attr: "required;a rewind handle this server minted (a prompt's taskId or a message's eventId), 1..255 chars;translated by the same anchor reader as the submit body's rewindFilesTo;unknown ⇒ 404 rewind_files_to.unknown_event";
2505
+ readonly since: "7.147.0";
2506
+ };
2507
+ readonly "body#dryRun": {
2508
+ readonly attr: "optional boolean;true ⇒ preview only, no file written;any other key ⇒ 400 request.body_shape";
2509
+ readonly since: "7.147.0";
2510
+ };
2511
+ readonly "body#acceptPartialRestore": {
2512
+ readonly attr: "not accepted ⇒ 400 request.body_shape (the engine's out-of-run rewind has no partial-restore policy; a partial restore answers 200 with restore.outcome partial)";
2513
+ readonly since: "7.147.0";
2514
+ };
2515
+ readonly "200#dryRun": {
2516
+ readonly attr: "always;the engine RewindFilesResult discriminant verbatim";
2517
+ readonly since: "7.147.0";
2518
+ };
2519
+ readonly "200#preview": {
2520
+ readonly attr: "present-iff dryRun true;engine FileHistoryDiffStats verbatim, or null when the store gives no stats (null is not zero stats)";
2521
+ readonly since: "7.147.0";
2522
+ };
2523
+ readonly "200#restore": {
2524
+ readonly attr: "present-iff dryRun false;engine restore ledger (outcome complete | partial, filesChanged, identicalSkipped, refused[], failed[], modeNotPreserved?, error?), path and reason leaves redacted;error = { errorCode, message, permanence? } (the engine member code is spelled errorCode on the wire)";
2525
+ readonly since: "7.147.0";
2526
+ };
2527
+ readonly "409 conflict.session_active_run#activeTaskId": {
2528
+ readonly attr: "always on this face;the run holding the session's durable claim (the message names it too)";
2529
+ readonly since: "7.147.0";
2530
+ };
2531
+ };
2532
+ };
2533
+ /**
2534
+ * 收编批量导入 `POST /v1/adoption/:id/sessions` 逐元素结局的 `outcome`(三词闭集;属主 = `adoption/wire.ts` 的 `AdoptionImportResult` 判别联合 ——
2535
+ * 联合加一臂而本表没跟 / 多一个词 ⇒ tsc 红)。
2536
+ */
2537
+ readonly adoptionImportOutcome: {
2538
+ readonly at: "POST /v1/adoption/:id/sessions 200 results[].outcome";
2539
+ readonly members: {
2540
+ imported: {
2541
+ attr: string;
2542
+ since: string;
2543
+ };
2544
+ already_imported: {
2545
+ attr: string;
2546
+ since: string;
2547
+ };
2548
+ rejected: {
2549
+ attr: string;
2550
+ since: string;
2551
+ };
2552
+ };
2553
+ };
2554
+ /** 同口 `outcome: "rejected"` 的 `code`(三词闭集;属主 = `adoption/wire.ts` 的 `ADOPTION_IMPORT_REJECT_CODES`,与结局联合的拒臂两向编译钉)。属性 = 这一臂多带的键。 */
2555
+ readonly adoptionImportRejectCode: {
2556
+ readonly at: "POST /v1/adoption/:id/sessions 200 results[].code(present-iff outcome rejected)";
2557
+ readonly members: {
2558
+ too_large: {
2559
+ attr: string;
2560
+ since: string;
2561
+ };
2562
+ invalid_envelope: {
2563
+ attr: string;
2564
+ since: string;
2565
+ };
2566
+ duplicate_client_session_id: {
2567
+ attr: string;
2568
+ since: string;
2569
+ };
2570
+ };
2571
+ };
2572
+ /** 同口的体与结局键(`<面>#<键>` → 读法 / 在场律)。 */
2573
+ readonly adoptionImportWire: {
2574
+ readonly at: "POST /v1/adoption/:id/sessions(<面>#<键> → 读法 / 在场律)";
2575
+ readonly members: {
2576
+ readonly "body#sessions": {
2577
+ readonly attr: "required;the only key;array of envelopes;length > adoptionImport.maxSessions ⇒ 400 request.field_invalid (field sessions, reason over_cap)";
2578
+ readonly since: "7.146.0";
2579
+ };
2580
+ readonly "body.sessions[]#clientSessionId": {
2581
+ readonly attr: "required;string 1-255 chars;idempotency key with the adoption id";
2582
+ readonly since: "7.146.0";
2583
+ };
2584
+ readonly "body.sessions[]#entries": {
2585
+ readonly attr: "required;array of session entries oldest first;the only other key (any extra key ⇒ that element invalid_envelope)";
2586
+ readonly since: "7.146.0";
2587
+ };
2588
+ readonly "200#results": {
2589
+ readonly attr: "always;one per element, same order";
2590
+ readonly since: "7.146.0";
2591
+ };
2592
+ readonly "200.results[]#clientSessionId": {
2593
+ readonly attr: "always except invalid_envelope on an unreadable envelope";
2594
+ readonly since: "7.146.0";
2595
+ };
2596
+ readonly "200.results[]#sessionId": {
2597
+ readonly attr: "present-iff imported | already_imported;the cloud session id derived from (adoptionId, clientSessionId)";
2598
+ readonly since: "7.146.0";
2599
+ };
2600
+ readonly "200.results[]#count": {
2601
+ readonly attr: "present-iff code too_large";
2602
+ readonly since: "7.146.0";
2603
+ };
2604
+ readonly "200.results[]#cap": {
2605
+ readonly attr: "present-iff code too_large";
2606
+ readonly since: "7.146.0";
2607
+ };
2608
+ readonly "200.results[]#detail": {
2609
+ readonly attr: "present-iff code invalid_envelope";
2610
+ readonly since: "7.146.0";
2611
+ };
2612
+ };
2613
+ };
2081
2614
  /** 中心侧同步口(`<面>#<键>` → 读法 / 在场律)。只登本版新出现的(路径版本段、主张、答复游标的化身、化身拒答两键)。 */
2082
2615
  readonly centralMemorySyncWire: {
2083
2616
  readonly at: "POST /v2/memory/sync/:scope(<面>#<键> → 读法 / 在场律)";
@@ -2153,6 +2686,14 @@ export declare const SELF_MINTED_WIRE: {
2153
2686
  readonly refusalSentenceForm: {
2154
2687
  readonly at: "拒体 message 的句型(<码>#<座> → 句型骨架;码 / 状态 / 机读位不变)";
2155
2688
  readonly members: {
2689
+ readonly "401 auth.unauthorized#operator(/metrics* \u00B7 GET /v1/tasks/source-summary)": {
2690
+ readonly attr: "… send the deployment's service token … without a principal header where this deployment lets its service token act for the deployment itself (GET /health reports it as auth.serviceTokenActsForDeployment; …), or a read-only token this endpoint accepts (…)";
2691
+ readonly since: "7.146.0";
2692
+ };
2693
+ readonly "422 invalid_entries#row_contract(\u4F1A\u8BDD\u540C\u6B65\u63A8\u9001\u7B2C\u4E8C\u9636\u6BB5;\u6536\u7F16\u6279\u91CF\u5BFC\u5165\u540C\u53E5\u8FDB\u9010\u5143\u7D20 detail)": {
2694
+ readonly attr: "malformed entry (id and parentId must be strings of 1-64 characters, type a string of 1-32 characters)";
2695
+ readonly since: "7.146.0";
2696
+ };
2156
2697
  readonly "409 decide.row_unrevivable#no_root_anchor": {
2157
2698
  readonly attr: "ends: deny it to close the card (the agent then ends as failed)";
2158
2699
  readonly since: "7.136.0";
@@ -2297,6 +2838,14 @@ export declare const SELF_MINTED_WIRE: {
2297
2838
  readonly attr: "this session has no transcript yet, so there is no revision to sync from — run a task in it (…), then sync";
2298
2839
  readonly since: "7.143.0";
2299
2840
  };
2841
+ readonly "400 request.field_invalid#unread_request_members(\u65B0\u63D0\u4EA4:settings.env \u6709\u6210\u5458\u4E0D\u662F\u5E3D\u5185\u7684\u4E32;\u5D4C\u5165\u65B9\u76F4\u8C03\u88C5\u914D\u65F6\u56DB\u5EA7\u540C\u53E5)": {
2842
+ readonly attr: "this request carries a member|members this server version's readers cannot take as written, on a deployment that would apply it|them: <坐标,至多 8 处>[ (and <n> more)] — running it would silently leave that member|those members out (a hook that guards a tool, an MCP server's credentials); submit it again with this member|these members in the current form";
2843
+ readonly since: "7.147.0";
2844
+ };
2845
+ readonly "409 resume_blocked_by_policy#unread_members(\u7EED\u8DD1\u56DB\u95E8 \u00B7 steer \u94F8\u5524\u9192\u5361\u4E4B\u524D)": {
2846
+ readonly attr: "resume blocked by an admission policy change: <同上一句>";
2847
+ readonly since: "7.147.0";
2848
+ };
2300
2849
  };
2301
2850
  };
2302
2851
  /**
@@ -2481,6 +3030,14 @@ export declare const SELF_MINTED_WIRE: {
2481
3030
  readonly attr: "memory";
2482
3031
  readonly since: "7.142.0";
2483
3032
  };
3033
+ readonly DEVICE_TRUSTED_PROXY_CIDRS: {
3034
+ readonly attr: "orchestration";
3035
+ readonly since: "7.146.0";
3036
+ };
3037
+ readonly SERVICE_TOKEN_ACTS_FOR_DEPLOYMENT: {
3038
+ readonly attr: "auth";
3039
+ readonly since: "7.146.0";
3040
+ };
2484
3041
  };
2485
3042
  };
2486
3043
  /**
@@ -2862,6 +3419,20 @@ export declare const SELF_MINTED_WIRE: {
2862
3419
  readonly attr: "segment-text=block-texts-concat;end-only-block=text_end.content";
2863
3420
  readonly since: "7.144.0";
2864
3421
  };
3422
+ /**
3423
+ * 7.147.0:续跑家族唯一组句器(`http/resume-legs.ts` `checkpointRefusalAnswer`)对引擎 `checkpoint.invalid_outcome` 拒的码 —— 有决断成因 ⇒ 成因的码(`field` 的角色;审阅门上不带判别位 ⇒
3424
+ * `resume_outcome_invalid`),这一行自己的拒(`reason` 在场)与无成因的拒 ⇒ 引擎原码(= 行上 `rowVerdict.code`)。此前 `policy_ask` 门上无 `field` 一律借 `approval_binding_mismatch`、其余门一律借
3425
+ * `resume_outcome_invalid`。钉 test/decision-refusal-row-own-code.test.ts ①④⑤。
3426
+ */
3427
+ readonly "POST /v1/approvals/:sessionId/decide|/v1/assistant/tasks/:id/plan_review|/v1/assistant/tasks/:id/resume|/v1/sessions/:id/wake#errorCode(\u5F15\u64CE\u62D2 checkpoint.invalid_outcome)": {
3428
+ readonly attr: "decision-cause⇒cause-code;row-own(reason)|no-cause⇒checkpoint.invalid_outcome";
3429
+ readonly since: "7.147.0";
3430
+ };
3431
+ /** 7.147.0:决断口停在续跑之前的两臂(读行臂的「体读不成检查点」、门型守卫之前判官判非 `ok`)答这一行自己的拒,码 = 判官的码(经同一只组句器);此前 `conflict.checkpoint_unreadable` / `gate_not_tool_approval`。钉同上 ②③。 */
3432
+ readonly "POST /v1/approvals/:sessionId/decide#errorCode(\u8FD9\u4E00\u884C\u81EA\u5DF1\u7684\u62D2:\u8BFB\u884C\u81C2 / \u95E8\u578B\u5B88\u536B\u4E4B\u524D)": {
3433
+ readonly attr: "rowVerdict.code+reason+retriable:true(engine-judge;before-gate)";
3434
+ readonly since: "7.147.0";
3435
+ };
2865
3436
  };
2866
3437
  };
2867
3438
  };