@orion-agents/orion-code 0.3.65 → 0.4.3

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 (370) hide show
  1. package/CHANGELOG.md +128 -2
  2. package/README.md +78 -361
  3. package/README.zh-CN.md +71 -263
  4. package/bin/orion +4 -1
  5. package/dist/acp/session-updates.d.ts +34 -0
  6. package/dist/acp/session-updates.js +162 -0
  7. package/dist/acp/sessions.d.ts +32 -0
  8. package/dist/acp/sessions.js +315 -0
  9. package/dist/acp/stdio.d.ts +3 -0
  10. package/dist/acp/stdio.js +59 -0
  11. package/dist/cli.js +136 -185
  12. package/dist/commands/context-tool-command-handlers.d.ts +1 -1
  13. package/dist/commands/context-tool-command-handlers.js +24 -3
  14. package/dist/commands/core-command-handlers.js +5 -1
  15. package/dist/commands/diagnostic-command-handlers.js +20 -6
  16. package/dist/commands/diagnostic-commands.js +0 -12
  17. package/dist/commands/init-command.d.ts +3 -0
  18. package/dist/commands/init-command.js +131 -0
  19. package/dist/commands/model-command-handlers.d.ts +1 -2
  20. package/dist/commands/model-command-handlers.js +15 -100
  21. package/dist/commands/model-commands.js +0 -11
  22. package/dist/commands/registry.js +0 -18
  23. package/dist/commands/rsi-command.d.ts +2 -0
  24. package/dist/commands/rsi-command.js +180 -0
  25. package/dist/commands/session-command-handlers.js +28 -19
  26. package/dist/commands/system-commands.js +0 -1
  27. package/dist/commands/tool-commands.js +1 -1
  28. package/dist/commands/types.d.ts +4 -10
  29. package/dist/commands/types.js +1 -21
  30. package/dist/commands/workflow-command-handlers.js +13 -4
  31. package/dist/framework/loop-budget-contract.d.ts +7 -2
  32. package/dist/framework/loop-budget-contract.js +4 -1
  33. package/dist/framework/loop-progress.d.ts +22 -0
  34. package/dist/framework/loop-progress.js +79 -0
  35. package/dist/framework/prompt.d.ts +0 -2
  36. package/dist/framework/prompt.js +9 -27
  37. package/dist/framework/query.d.ts +27 -20
  38. package/dist/framework/query.js +453 -153
  39. package/dist/framework/store.d.ts +6 -10
  40. package/dist/framework/store.js +2 -21
  41. package/dist/framework/tool-call-orchestrator.d.ts +7 -0
  42. package/dist/framework/tool-call-orchestrator.js +8 -3
  43. package/dist/framework/tool-state.d.ts +2 -0
  44. package/dist/framework/tool.d.ts +0 -23
  45. package/dist/framework/verification-command.d.ts +15 -0
  46. package/dist/framework/verification-command.js +32 -0
  47. package/dist/harness/assembler.d.ts +1 -0
  48. package/dist/harness/assembler.js +24 -0
  49. package/dist/harness/capsule.d.ts +1 -1
  50. package/dist/harness/capsule.js +33 -14
  51. package/dist/harness/context-harness.d.ts +31 -12
  52. package/dist/harness/context-harness.js +491 -35
  53. package/dist/harness/contract.js +1 -1
  54. package/dist/harness/drift-guard.d.ts +4 -0
  55. package/dist/harness/drift-guard.js +68 -16
  56. package/dist/harness/intent.js +21 -0
  57. package/dist/harness/ledger.d.ts +6 -11
  58. package/dist/harness/ledger.js +39 -9
  59. package/dist/harness/progress-controller.d.ts +12 -7
  60. package/dist/harness/progress-controller.js +66 -21
  61. package/dist/harness/state.js +9 -1
  62. package/dist/harness/task-checklist.d.ts +16 -0
  63. package/dist/harness/task-checklist.js +95 -0
  64. package/dist/harness/types.d.ts +73 -1
  65. package/dist/harness/verification.d.ts +19 -1
  66. package/dist/harness/verification.js +116 -29
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +1 -3
  69. package/dist/print-ui/event-stream.d.ts +38 -0
  70. package/dist/print-ui/event-stream.js +187 -0
  71. package/dist/print-ui/launch.d.ts +12 -1
  72. package/dist/print-ui/launch.js +173 -11
  73. package/dist/product/environment.d.ts +1 -1
  74. package/dist/product/environment.js +1 -1
  75. package/dist/product/identity.d.ts +1 -1
  76. package/dist/product/identity.js +1 -1
  77. package/dist/product/paths.d.ts +3 -2
  78. package/dist/product/paths.js +6 -2
  79. package/dist/runtime/agent-loop.d.ts +11 -2
  80. package/dist/runtime/agent-loop.js +165 -25
  81. package/dist/runtime/agent-runtime-controller.d.ts +13 -3
  82. package/dist/runtime/agent-runtime-controller.js +347 -183
  83. package/dist/runtime/agent-runtime-protocol.d.ts +10 -18
  84. package/dist/runtime/agent-runtime-runner.d.ts +10 -0
  85. package/dist/runtime/builtin-tool-provider.js +5 -1
  86. package/dist/runtime/capability-receipt-journal.js +1 -0
  87. package/dist/runtime/durable-tool-receipt-reader.js +2 -1
  88. package/dist/runtime/first-party-tool-services.d.ts +1 -0
  89. package/dist/runtime/first-party-tool-services.js +2 -12
  90. package/dist/runtime/first-party-tool-universe.d.ts +1 -0
  91. package/dist/runtime/first-party-tool-universe.js +1 -1
  92. package/dist/runtime/followup-queue-store.d.ts +16 -0
  93. package/dist/runtime/followup-queue-store.js +75 -0
  94. package/dist/runtime/goal-lifecycle-v2.d.ts +11 -1
  95. package/dist/runtime/goal-lifecycle-v2.js +85 -15
  96. package/dist/runtime/goal-runtime-coordinator.d.ts +10 -1
  97. package/dist/runtime/goal-runtime-coordinator.js +81 -24
  98. package/dist/runtime/loop-budget.js +7 -5
  99. package/dist/runtime/mcp/first-party-mcp-adapter.d.ts +2 -0
  100. package/dist/runtime/mcp/first-party-mcp-adapter.js +23 -19
  101. package/dist/runtime/model-coordinator.js +2 -5
  102. package/dist/runtime/orion-runtime-v1.d.ts +18 -2
  103. package/dist/runtime/orion-runtime-v1.js +135 -39
  104. package/dist/runtime/orion-session-runner.d.ts +7 -0
  105. package/dist/runtime/orion-session-runner.js +82 -0
  106. package/dist/runtime/plan-review.d.ts +1 -0
  107. package/dist/runtime/plan-review.js +8 -4
  108. package/dist/runtime/product-bootstrap.d.ts +6 -0
  109. package/dist/runtime/product-bootstrap.js +41 -51
  110. package/dist/runtime/product-orion-runtime.js +128 -52
  111. package/dist/runtime/release-receipts.d.ts +24 -124
  112. package/dist/runtime/release-receipts.js +129 -683
  113. package/dist/runtime/rich-text/layout.js +108 -65
  114. package/dist/runtime/rsi/contracts.d.ts +50 -0
  115. package/dist/runtime/rsi/contracts.js +17 -0
  116. package/dist/runtime/rsi/diagnosis.d.ts +46 -0
  117. package/dist/runtime/rsi/diagnosis.js +98 -0
  118. package/dist/runtime/rsi/evaluation-suite.d.ts +25 -0
  119. package/dist/runtime/rsi/evaluation-suite.js +141 -0
  120. package/dist/runtime/rsi/evaluation-worker.d.ts +19 -0
  121. package/dist/runtime/rsi/evaluation-worker.js +64 -0
  122. package/dist/runtime/rsi/evaluation.d.ts +49 -0
  123. package/dist/runtime/rsi/evaluation.js +351 -0
  124. package/dist/runtime/rsi/lifecycle.d.ts +54 -0
  125. package/dist/runtime/rsi/lifecycle.js +279 -0
  126. package/dist/runtime/rsi/proposal.d.ts +39 -0
  127. package/dist/runtime/rsi/proposal.js +312 -0
  128. package/dist/runtime/rsi/receipt.d.ts +28 -0
  129. package/dist/runtime/rsi/receipt.js +138 -0
  130. package/dist/runtime/rsi/skill-state.d.ts +7 -0
  131. package/dist/runtime/rsi/skill-state.js +50 -0
  132. package/dist/runtime/rsi/trajectory.d.ts +19 -0
  133. package/dist/runtime/rsi/trajectory.js +314 -0
  134. package/dist/runtime/rsi/triage.d.ts +274 -0
  135. package/dist/runtime/rsi/triage.js +58 -0
  136. package/dist/runtime/session-composer-control.d.ts +5 -24
  137. package/dist/runtime/session-composer-control.js +27 -189
  138. package/dist/runtime/step-snapshot.d.ts +1 -0
  139. package/dist/runtime/subagents/policy.js +0 -1
  140. package/dist/runtime/subagents/production.js +1 -1
  141. package/dist/runtime/subagents/runtime-integration.js +2 -4
  142. package/dist/runtime/subagents/types.d.ts +0 -5
  143. package/dist/runtime/subagents/types.js +0 -2
  144. package/dist/runtime/task-context-recovery.d.ts +55 -0
  145. package/dist/runtime/task-context-recovery.js +342 -0
  146. package/dist/runtime/task-context-service.d.ts +16 -10
  147. package/dist/runtime/task-context-service.js +35 -4
  148. package/dist/runtime/thread-admission.d.ts +1 -1
  149. package/dist/runtime/thread-admission.js +12 -6
  150. package/dist/runtime/thread-event-store.d.ts +2 -2
  151. package/dist/runtime/thread-event-store.js +7 -2
  152. package/dist/runtime/thread-projection.js +4 -2
  153. package/dist/runtime/thread-runtime.d.ts +7 -0
  154. package/dist/runtime/thread-runtime.js +43 -0
  155. package/dist/runtime/thread-session-index.d.ts +8 -0
  156. package/dist/runtime/thread-session-index.js +50 -1
  157. package/dist/runtime/thread-session-view.d.ts +2 -1
  158. package/dist/runtime/thread-session-view.js +4 -0
  159. package/dist/runtime/thread-tool-journal.d.ts +1 -0
  160. package/dist/runtime/thread-tool-journal.js +6 -2
  161. package/dist/runtime/thread-ui-adapter.d.ts +1 -0
  162. package/dist/runtime/thread-ui-adapter.js +88 -11
  163. package/dist/runtime/tool-gateway.d.ts +7 -0
  164. package/dist/runtime/tool-gateway.js +20 -0
  165. package/dist/runtime/tool-transcript-entry.d.ts +16 -0
  166. package/dist/runtime/tool-transcript-entry.js +73 -0
  167. package/dist/runtime/turn-commit.d.ts +4 -1
  168. package/dist/runtime/turn-commit.js +19 -15
  169. package/dist/runtime/ui-events.d.ts +12 -0
  170. package/dist/runtime/ui-view-model.d.ts +6 -5
  171. package/dist/runtime/ui-view-model.js +33 -19
  172. package/dist/runtime/workspace-runtime-kernel.js +0 -1
  173. package/dist/services/atomic-write.d.ts +2 -0
  174. package/dist/services/atomic-write.js +12 -1
  175. package/dist/services/code-review/format.d.ts +4 -1
  176. package/dist/services/code-review/format.js +5 -1
  177. package/dist/services/code-review/runner.d.ts +2 -2
  178. package/dist/services/code-review/runner.js +86 -64
  179. package/dist/services/code-review/snapshot.d.ts +9 -9
  180. package/dist/services/code-review/snapshot.js +182 -166
  181. package/dist/services/compact/auto-compact.d.ts +21 -6
  182. package/dist/services/compact/auto-compact.js +148 -22
  183. package/dist/services/compact/background-candidate.d.ts +33 -0
  184. package/dist/services/compact/background-candidate.js +184 -0
  185. package/dist/services/compact/compact.d.ts +4 -1
  186. package/dist/services/compact/compact.js +30 -3
  187. package/dist/services/compact/coordinator.d.ts +10 -4
  188. package/dist/services/compact/coordinator.js +17 -7
  189. package/dist/services/compact/summary-generator.d.ts +4 -2
  190. package/dist/services/compact/summary-generator.js +17 -3
  191. package/dist/services/config.d.ts +5 -5
  192. package/dist/services/config.js +30 -45
  193. package/dist/services/doctor.js +85 -13
  194. package/dist/services/effort.d.ts +5 -5
  195. package/dist/services/effort.js +5 -11
  196. package/dist/services/file-lock.d.ts +9 -3
  197. package/dist/services/file-lock.js +92 -26
  198. package/dist/services/global-config.d.ts +26 -56
  199. package/dist/services/global-config.js +213 -183
  200. package/dist/services/llm.d.ts +40 -4
  201. package/dist/services/llm.js +164 -45
  202. package/dist/services/model-client-pool.d.ts +15 -9
  203. package/dist/services/model-client-pool.js +62 -33
  204. package/dist/services/model-context.d.ts +2 -1
  205. package/dist/services/model-context.js +15 -9
  206. package/dist/services/model-registry.d.ts +4 -15
  207. package/dist/services/model-registry.js +32 -101
  208. package/dist/services/provider-diagnostics.d.ts +7 -0
  209. package/dist/services/provider-diagnostics.js +9 -10
  210. package/dist/services/provider-resilience/coordinator.d.ts +1 -1
  211. package/dist/services/provider-resilience/coordinator.js +10 -6
  212. package/dist/services/provider-resilience/request-gate.d.ts +3 -0
  213. package/dist/services/provider-resilience/request-gate.js +29 -18
  214. package/dist/services/provider-resilience/types.d.ts +2 -0
  215. package/dist/services/session-storage.d.ts +7 -10
  216. package/dist/services/session-storage.js +57 -30
  217. package/dist/services/settings-coordinator.d.ts +0 -6
  218. package/dist/services/settings-coordinator.js +19 -56
  219. package/dist/services/settings-document-repository.d.ts +3 -10
  220. package/dist/services/settings-document-repository.js +7 -85
  221. package/dist/services/usage-state.d.ts +3 -3
  222. package/dist/services/usage-state.js +11 -42
  223. package/dist/terminal-ui/answer-format.d.ts +14 -0
  224. package/dist/terminal-ui/answer-format.js +119 -0
  225. package/dist/terminal-ui/launch.d.ts +7 -6
  226. package/dist/terminal-ui/launch.js +160 -70
  227. package/dist/terminal-ui/output-queue.d.ts +2 -1
  228. package/dist/terminal-ui/output-queue.js +1 -1
  229. package/dist/terminal-ui/raw-editor.d.ts +2 -1
  230. package/dist/terminal-ui/raw-editor.js +56 -15
  231. package/dist/tools/core/edit-file.js +2 -0
  232. package/dist/tools/core/write-file.js +5 -0
  233. package/dist/tools/lsp.d.ts +16 -1
  234. package/dist/tools/lsp.js +60 -19
  235. package/dist/tools/sandbox.d.ts +1 -1
  236. package/dist/tools/sandbox.js +3 -16
  237. package/dist/tools/todo.d.ts +4 -2
  238. package/dist/tools/todo.js +76 -31
  239. package/dist/tui-core/input-parser.d.ts +1 -0
  240. package/dist/tui-core/input-parser.js +6 -0
  241. package/dist/tui-core/style.d.ts +1 -8
  242. package/dist/tui-core/style.js +3 -110
  243. package/dist/tui-ui/chrome-view-model.d.ts +1 -1
  244. package/dist/tui-ui/chrome-view-model.js +22 -27
  245. package/dist/tui-ui/launch.js +14 -14
  246. package/dist/tui-ui/layout.d.ts +5 -7
  247. package/dist/tui-ui/layout.js +129 -124
  248. package/dist/tui-ui/runner.d.ts +11 -12
  249. package/dist/tui-ui/runner.js +88 -67
  250. package/dist/tui-ui/state.d.ts +0 -11
  251. package/dist/tui-ui/state.js +22 -33
  252. package/dist/tui-ui/terminal-image.js +22 -4
  253. package/dist/tui-ui/transcript-inspector-layout.js +6 -3
  254. package/dist/tui-ui/transcript-inspector.d.ts +1 -0
  255. package/dist/tui-ui/transcript-inspector.js +7 -1
  256. package/dist/tui-ui/transcript-layout.js +42 -6
  257. package/dist/utils/terminal-text.d.ts +11 -0
  258. package/dist/utils/terminal-text.js +114 -0
  259. package/docs/cli-guide.md +562 -0
  260. package/docs/orion.example.yaml +42 -0
  261. package/docs/readme.md +12 -57
  262. package/npm-shrinkwrap.json +484 -1855
  263. package/package.json +13 -63
  264. package/dist/migration/command.d.ts +0 -9
  265. package/dist/migration/command.js +0 -100
  266. package/dist/migration/index.d.ts +0 -7
  267. package/dist/migration/index.js +0 -14
  268. package/dist/migration/migrate.d.ts +0 -19
  269. package/dist/migration/migrate.js +0 -406
  270. package/dist/migration/types.d.ts +0 -55
  271. package/dist/migration/types.js +0 -6
  272. package/dist/services/tool-allowlist.d.ts +0 -110
  273. package/dist/services/tool-allowlist.js +0 -299
  274. package/dist/services/yaml-config.d.ts +0 -57
  275. package/dist/services/yaml-config.js +0 -178
  276. package/dist/web/cli-options.d.ts +0 -17
  277. package/dist/web/cli-options.js +0 -51
  278. package/dist/web/code-review-run-service.d.ts +0 -68
  279. package/dist/web/code-review-run-service.js +0 -228
  280. package/dist/web/context-text.d.ts +0 -17
  281. package/dist/web/context-text.js +0 -40
  282. package/dist/web/errors.d.ts +0 -6
  283. package/dist/web/errors.js +0 -13
  284. package/dist/web/event-hub.d.ts +0 -45
  285. package/dist/web/event-hub.js +0 -370
  286. package/dist/web/file-read-service.d.ts +0 -101
  287. package/dist/web/file-read-service.js +0 -593
  288. package/dist/web/file-write-service.d.ts +0 -16
  289. package/dist/web/file-write-service.js +0 -103
  290. package/dist/web/git-compare-service.d.ts +0 -45
  291. package/dist/web/git-compare-service.js +0 -160
  292. package/dist/web/git-diff-document.d.ts +0 -102
  293. package/dist/web/git-diff-document.js +0 -258
  294. package/dist/web/git-file-source.d.ts +0 -25
  295. package/dist/web/git-file-source.js +0 -21
  296. package/dist/web/git-history-service.d.ts +0 -151
  297. package/dist/web/git-history-service.js +0 -619
  298. package/dist/web/git-index-transaction.d.ts +0 -45
  299. package/dist/web/git-index-transaction.js +0 -174
  300. package/dist/web/git-patch-builder.d.ts +0 -30
  301. package/dist/web/git-patch-builder.js +0 -138
  302. package/dist/web/git-read-model-service.d.ts +0 -452
  303. package/dist/web/git-read-model-service.js +0 -1833
  304. package/dist/web/git-version-service.d.ts +0 -79
  305. package/dist/web/git-version-service.js +0 -279
  306. package/dist/web/host-daemon.d.ts +0 -70
  307. package/dist/web/host-daemon.js +0 -237
  308. package/dist/web/index.d.ts +0 -6
  309. package/dist/web/index.js +0 -28
  310. package/dist/web/launch.d.ts +0 -12
  311. package/dist/web/launch.js +0 -89
  312. package/dist/web/native-directory-picker.d.ts +0 -63
  313. package/dist/web/native-directory-picker.js +0 -169
  314. package/dist/web/protocol.d.ts +0 -705
  315. package/dist/web/protocol.js +0 -639
  316. package/dist/web/review-service.d.ts +0 -22
  317. package/dist/web/review-service.js +0 -68
  318. package/dist/web/server.d.ts +0 -20
  319. package/dist/web/server.js +0 -1453
  320. package/dist/web/session-runtime-registry.d.ts +0 -138
  321. package/dist/web/session-runtime-registry.js +0 -471
  322. package/dist/web/terminal-manager.d.ts +0 -156
  323. package/dist/web/terminal-manager.js +0 -779
  324. package/dist/web/terminal-server.d.ts +0 -8
  325. package/dist/web/terminal-server.js +0 -304
  326. package/dist/web/workbench-controller.d.ts +0 -395
  327. package/dist/web/workbench-controller.js +0 -3077
  328. package/dist/web/workspace-discovery.d.ts +0 -92
  329. package/dist/web/workspace-discovery.js +0 -324
  330. package/dist/web/workspace-mutation-arbiter.d.ts +0 -54
  331. package/dist/web/workspace-mutation-arbiter.js +0 -267
  332. package/dist/web/workspace-open-telemetry.d.ts +0 -55
  333. package/dist/web/workspace-open-telemetry.js +0 -73
  334. package/dist/web-client/assets/FilesPanel-iBYj9ZRf.js +0 -1
  335. package/dist/web-client/assets/GitPanel-D33R_bZr.js +0 -4
  336. package/dist/web-client/assets/ReviewPanel-C_0upsDk.js +0 -6
  337. package/dist/web-client/assets/TerminalPanel-C7A8dMNf.js +0 -23
  338. package/dist/web-client/assets/TerminalPanel-DLuoa74B.css +0 -1
  339. package/dist/web-client/assets/index-BaOxrwGB.css +0 -1
  340. package/dist/web-client/assets/index-CqCgJ2ov.js +0 -20
  341. package/dist/web-client/assets/useAutoNotice-C1qM-_Sg.js +0 -1
  342. package/dist/web-client/favicon.svg +0 -9
  343. package/dist/web-client/index.html +0 -17
  344. package/docs/architecture/agent-mode-permission-contract.md +0 -87
  345. package/docs/architecture/v0.3.0-web-api.yaml +0 -1340
  346. package/docs/architecture/v0.3.1-web-api.yaml +0 -2338
  347. package/docs/architecture/v0.3.2-web-api.yaml +0 -3029
  348. package/docs/architecture/v0.3.3-web-api.yaml +0 -3205
  349. package/docs/architecture/v0.3.4-stabilization-contract.md +0 -32
  350. package/docs/migration/v0.1.9-to-v0.2.0.md +0 -98
  351. package/docs/migration/v0.2.2-to-v0.3.0-settings.md +0 -114
  352. package/docs/migration/v0.2.2-to-v0.3.0.md +0 -55
  353. package/docs/migration/v0.3.0-to-v0.3.1.md +0 -88
  354. package/docs/migration/v0.3.1-to-v0.3.2.md +0 -94
  355. package/docs/migration/v0.3.2-to-v0.3.3.md +0 -62
  356. package/docs/migration/v0.3.3-to-v0.3.4.md +0 -36
  357. package/docs/orion.example.json +0 -86
  358. package/docs/plan/v0.2.0-dsh-harness-redesign-plan.md +0 -1234
  359. package/docs/plan/v0.2.0-release-checklist.md +0 -91
  360. package/docs/plan/v0.3.0-node-runtime-compatibility-plan.md +0 -57
  361. package/docs/plan/v0.3.0-settings-integration-plan.md +0 -740
  362. package/docs/plan/v0.3.0-web-workbench-plan.md +0 -376
  363. package/docs/plan/v0.3.1-web-workbench-professional-shell-plan.md +0 -848
  364. package/docs/plan/v0.3.2-web-workbench-layout-and-composer-plan.md +0 -869
  365. package/docs/plan/v0.3.3-plan.md +0 -1113
  366. package/docs/plan/v0.3.4-stabilization-plan.md +0 -89
  367. package/docs/test/v0.3.1-web-workbench-e2e-plan.md +0 -140
  368. package/docs/test/v0.3.2-web-workbench-e2e-plan.md +0 -100
  369. package/docs/test/v0.3.3-web-workbench-e2e-plan.md +0 -79
  370. package/docs/test/v0.3.4-stabilization-e2e-plan.md +0 -54
@@ -1,32 +0,0 @@
1
- # v0.3.4 stabilization contract
2
-
3
- The complete HTTP schema remains [the v0.3.3 OpenAPI document](v0.3.3-web-api.yaml), updated in the v0.3.4 branch to match the compatible wire additions below.
4
-
5
- ## Context-bound Settings mutation
6
-
7
- ```text
8
- bootstrap(workspaceId, contextRevision)
9
- + settings(revision)
10
- -> PATCH settings(requestId, workspaceId, expectedContextRevision, expectedRevision, operations)
11
- -> admission guard
12
- -> idempotency digest
13
- -> atomic settings coordinator update
14
- ```
15
-
16
- The Context guard is checked before any durable operation. A mismatch is `409 context_revision_conflict` with zero writes, Runtime applies, Session changes or provider requests.
17
-
18
- ## File identity
19
-
20
- `kind` describes the lexical entry (`file|directory|symlink`). For a readable contained symlink, optional `targetKind` describes the effective target (`file|directory`). Authorization evaluates both the lexical alias and canonical Workspace-relative path at list and content-read time.
21
-
22
- ## Terminal ordering
23
-
24
- ```text
25
- ready -> optional gap -> retained replay -> buffered live tail -> optional exit -> close
26
- ```
27
-
28
- PTY output stays paused while replay drains. A high surrogate at the end of a non-final chunk remains buffered; final exit replaces any unpaired surrogate with U+FFFD. Browser xterm submission waits for acknowledgement when the remaining capacity cannot hold a complete pair.
29
-
30
- ## Durable tool truth
31
-
32
- Legacy records are accepted only when both terminal receipt and durable receipt fact are absent. Modern records require both; canonical receipt digest, execution policy digest and durable fact fields must match before a successful `tool_finished` projection is emitted.
@@ -1,98 +0,0 @@
1
- # Orion Code v0.1.9 → v0.2.0 migration and rollback
2
-
3
- Status: release-candidate guidance. A source commit, tag, npm version, and npm dist-tag are separate
4
- delivery receipts; do not treat this document as proof that `0.2.0` has been published.
5
-
6
- ## Why this is a major runtime migration
7
-
8
- v0.2.0 replaces the legacy Brain/Agent/Harness/query ownership graph with one product runtime built
9
- around `Thread → Turn → Step → Item`. It is an intentional breaking cut rather than a compatibility
10
- wrapper:
11
-
12
- - one Agent Loop owns root and child model/tool recursion;
13
- - one ToolGateway owns Capability, Policy, Approval, Sandbox, execution, and durable receipts;
14
- - every model request uses a digest-bound Step Snapshot, so visible schemas and dispatch cannot
15
- drift during a step;
16
- - Skills and MCP servers stay descriptor-only until selected; unselected definitions, resources,
17
- connections, processes, and sockets remain dormant;
18
- - Goal lifecycle and completion state are committed with the same durable TurnCommit as history and
19
- TaskContext evidence;
20
- - Plan produces a durable PlanReceipt, exits automatically, restores BUILD/AUTO, and schedules
21
- implementation as a new logical turn;
22
- - Compact is a non-steerable maintenance transaction with source CAS, checkpoint, pointer, and
23
- crash recovery.
24
-
25
- The package root no longer exports legacy Agent, Brain, Harness, SDK query/session helpers, internal
26
- runtime services, Step Snapshot internals, or plugin-container surfaces.
27
-
28
- ## Command changes
29
-
30
- - `/goal <objective>` creates a Goal. `/goal status`, `pause`, `resume`, and `clear` are the only
31
- lifecycle controls.
32
- - `/target` is removed. `/goal exit`, `edit`, `replace`, `confirm`, `budget`, and `clear --yes` are
33
- removed rather than silently reinterpreted.
34
- - `/plan <task>` is the task entry. A successful planning turn saves a PlanReceipt and exits Plan
35
- automatically; there is no `exit_plan_mode` tool.
36
- - `Shift+Tab` cycles BUILD → PLAN → AUTO. Mode selects workflow behavior; Authority and tool policy
37
- remain separate.
38
- - Compatibility-only roots such as `/task`, `/run`, `/chat`, `/sessions`, and `/models` are removed.
39
- Use `/help` from the installed candidate for the authoritative command inventory.
40
-
41
- ## Before upgrading
42
-
43
- 1. Stop all Orion processes for the target project.
44
- 2. Record `orion --version` and run `orion doctor` with the old executable.
45
- 3. Make a recoverable copy or filesystem snapshot of `~/.orion-code`; preserve permissions and do
46
- not commit it.
47
- 4. Keep the project worktree recoverable. The migration does not require deleting sessions, lock
48
- files, databases, or project data.
49
- 5. Install only an immutable version after its npm receipt exists:
50
-
51
- ```bash
52
- npm install -g @orion-agents/orion-code@0.2.0
53
- orion --version
54
- orion doctor
55
- ```
56
-
57
- ## First start and resume
58
-
59
- On first use of an existing session, Orion materializes legacy transcript, trace, Harness, Compact,
60
- and Goal facts into a side-by-side v2 Thread store. The legacy bytes remain unchanged. Facts and a
61
- verified projection are written before the project index switches; until that final index commit,
62
- the legacy source remains authoritative.
63
-
64
- Migration is fail closed:
65
-
66
- - corrupt records or missing/unknown tool pairs become explicit indeterminate Items rather than a
67
- guessed successful turn;
68
- - a changed source, digest mismatch, partial event prefix, or conflicting index aborts cutover;
69
- - after a successful index switch, replay and projection digests must match before resume;
70
- - a crash before the index switch resolves to legacy; a crash after it resolves to the v2 Thread.
71
-
72
- Resume a non-critical session first, inspect `/status`, `/context explain`, `/tools`, `/skills`, and
73
- `/mcp`, then run a small read/edit/test turn. Do not manually remove `.lock`, `.recovery`, v2 Thread,
74
- compact transaction, or index files while any Orion process may own them.
75
-
76
- ## Configuration boundary
77
-
78
- Existing model/provider configuration remains supported. `skills.paths` becomes filesystem Skill
79
- provider roots. `mcpServers` become dormant descriptors and are not connected merely because Orion
80
- starts or `/mcp` is inspected. BUILD/PLAN/AUTO do not grant additional Authority.
81
-
82
- Do not add plugin package paths or executable JavaScript loaders: v0.2.0 deliberately keeps Model,
83
- Skills, and MCP as the only user extension boundaries.
84
-
85
- ## Rollback
86
-
87
- The executable can be rolled back without deleting data:
88
-
89
- ```bash
90
- npm install -g @orion-agents/orion-code@0.1.9
91
- orion --version
92
- ```
93
-
94
- v0.1.9 cannot safely write a project after its session has cut over to the v2 Thread index. Stop all
95
- Orion processes and restore the pre-upgrade `~/.orion-code` snapshot before resuming with v0.1.9.
96
- Never splice a legacy transcript together with a v2 index, projection, TurnCommit, Goal, or compact
97
- pointer. Preserve the failed v2 directory and diagnostics for audit rather than repeatedly retrying
98
- or deleting recovery evidence.
@@ -1,114 +0,0 @@
1
- # Orion Code v0.2.2 → v0.3.0 Settings 迁移说明
2
-
3
- v0.3.0 将 Web 端设置升级为 Host 管理的持久 Settings 子系统。迁移不会引入
4
- `settings.json`;`$ORION_CODE_CONFIG_DIR/orion.json` 仍然是唯一配置真源。
5
-
6
- ## 迁移前准备
7
-
8
- 1. 备份现有 `orion.json`。
9
- 2. 确认文件是有效 JSON,且当前 Orion Code 可以正常启动。
10
- 3. 不要将 API key、Authorization Header 或其他凭证粘贴到浏览器问题报告中。
11
-
12
- v0.3.0 的 Settings 页只显示 Provider 的 `ready`/`missing`/`unavailable` 状态,不会返回
13
- 凭证值、环境变量名、Header 或配置文件路径。
14
-
15
- ## 主题与动效
16
-
17
- 旧 Web 页面把主题和动效保存在浏览器 `localStorage`。v0.3.0 将它们保存到:
18
-
19
- ```json
20
- {
21
- "web": {
22
- "appearance": {
23
- "theme": "system",
24
- "motion": "system"
25
- }
26
- }
27
- }
28
- ```
29
-
30
- 首次打开 v0.3.0 Web Workbench 时:
31
-
32
- - Host 已有显式值:Host 值优先,清理旧浏览器值。
33
- - Host 没有显式值且浏览器有旧值:通过一次 revision CAS 导入;只在 Host
34
- 确认持久化后删除旧值。
35
- - 多标签页同时导入:只有一个 CAS 成功,其他页面重读 Host,不覆盖已保存值。
36
-
37
- “重置为继承值”会删除对应字段,不会把当前 effective value 反写为新的显式值。
38
-
39
- ## 默认模型与当前会话模型
40
-
41
- Settings 中的“默认模型”写入根级 `defaultModel`,仅影响之后创建的 Session。
42
-
43
- - 已打开 Session 不会被 Settings 暗中切换模型。
44
- - `/model <id>` 仍然是当前 Session 控制,并持久到该 Session metadata。
45
- - 修改 `/model` 不会更改全局 `defaultModel`。
46
-
47
- 页面会同时显示默认模型和当前 Session 模型,以避免两种作用域混淆。
48
-
49
- ## Effort 作用域
50
-
51
- Settings 中的 Effort 是当前 workspace 的 project default,保存到:
52
-
53
- ```text
54
- projects[canonical active workspace].defaultEffort
55
- ```
56
-
57
- 有效值的统一解析顺序为:
58
-
59
- ```text
60
- Session override → project default → global default → model capability default
61
- ```
62
-
63
- Session 已有显式 Effort 时,修改 project default 不会覆盖它。无 Session override 时,
64
- 新值从下一个逻辑请求开始生效。
65
-
66
- ## 工具确认策略
67
-
68
- Settings 中的 `ask`/`allow`/`deny` 是全局 `toolConfirmation` 默认策略。该设置只在
69
- Runtime idle 边界提交,从下一个逻辑请求开始生效。
70
-
71
- `allow` 不会绕过工具硬拒绝、allowlist、sandbox、workspace 边界或风险上限。
72
-
73
- ## 并发编辑与无效配置
74
-
75
- Settings 使用不透明的持久 revision 和文件锁内 CAS:
76
-
77
- - 多个标签页或外部编辑同时修改时,旧 revision 会收到冲突;未提交草稿保留。
78
- - 一次“应用”只发送一个 batch,全部成功或零字段提交。
79
- - 外部写入非法 JSON 或非法 schema 时,Runtime 保留 last-good 配置,Web 写入被禁用。
80
- - 修复 `orion.json` 后刷新 Settings,再基于最新 revision 保存。
81
-
82
- Advanced 页的“打开配置文件”是无 path 的受控操作:浏览器不能指定任意路径,
83
- 响应也不会返回本地绝对路径。
84
-
85
- ## 回滚
86
-
87
- 需要回到 v0.2.2 时:
88
-
89
- 1. 停止 Orion Code Host。
90
- 2. 用迁移前备份恢复 `orion.json`。v0.2.2 会忽略未识别的 `web` 字段,但恢复备份
91
- 可确保与升级前完全一致。
92
- 3. 不要把 revision key 当作配置文件;它仅用于本机 CAS revision,不包含设置值。
93
-
94
- 回滚不需要将主题/动效重新写回浏览器。
95
-
96
- ## 迁移验证记录
97
-
98
- 2026-08-27 的 v0.3.0 确定性验证已直接覆盖上述迁移边界:
99
-
100
- - `SET-P0-01` 验证 legacy localStorage appearance 只导入一次,并在刷新、
101
- 换端口和 Host 重启后保留;
102
- - `SET-P0-02/03` 验证默认模型/当前 Session 及 project/global/session Effort 的
103
- 作用域与重启解析;
104
- - `SET-P0-06..10` 验证多标签 CAS、外部合法/非法编辑、幂等重试与
105
- 同端口 Host 重启换 nonce;
106
- - 同一冻结的 `@orion-agents/orion-code@0.3.0` tgz 已在 Node 20.19.5、22.22.3 和
107
- 24.14.1 各运行 14 个 Settings 场景,全部通过;精确候选哈希在包生成后写入不参与
108
- npm 打包的资格报告,避免本迁移文档对其所在 tarball 的哈希形成循环引用。
109
-
110
- 以上 Node 20/22/24 数据是历史迁移验证。当前 v0.3 Runtime 合同为 Node 22.12+/24/26;
111
- Node 20 已退役,历史 receipt 不能替代当前 Node 26 的 fresh exact-tarball 证据。
112
-
113
- 详细 receipt、失败—修复记录与发布边界见
114
- [`v0.3.0 Web E2E Qualification Report`](../test/v0.3.0-web-e2e-report.md)。
@@ -1,55 +0,0 @@
1
- # Orion Code v0.2.2 → v0.3.0 Migration Guide
2
-
3
- v0.3.0 adds a local Web Workbench without replacing the existing TUI, terminal or print surfaces.
4
- Existing sessions, project configuration, Skill roots, MCP configuration and durable Thread logs
5
- remain the data sources used by both interfaces; no destructive session migration is required.
6
-
7
- ## Runtime requirements
8
-
9
- - Upgrade to Node.js `22.12+`, a supported Node 24 release, or Node 26 before installing v0.3.
10
- Node 20 is upstream EOL and the native dependency line no longer ships a Node 20 prebuild;
11
- Node 24 LTS or Node 26 Current is recommended.
12
- - Run `npm install` and `npm run build`; the build now produces both `dist/` server files and
13
- `dist/web-client/` browser assets.
14
- - Existing `orion`, `orion --ui terminal` and print-mode commands keep their current behavior.
15
-
16
- ## Start the Web Workbench
17
-
18
- ```bash
19
- orion web
20
- orion web --no-open --port 3080
21
- orion web --cwd /absolute/path/to/project
22
- ```
23
-
24
- The host listens only on `127.0.0.1`. Static assets and `/api/v1/*` share one origin; v0.3.0 has no
25
- LAN/public bind option. Model/provider credentials stay in Orion configuration or environment
26
- variables and cannot be entered through the browser.
27
-
28
- ## Behavior to note
29
-
30
- - Web, TUI and terminal use the same product composition and durable Session/Thread sources. Do not
31
- run them concurrently against one active session and assume multi-writer ownership.
32
- - Browser refresh, SSE reconnect and tab closure do not approve or reject a pending tool request.
33
- Explicit denial, runtime abort and host shutdown fail the affected request closed.
34
- - Approval scopes are now consistently `once`, `project` and `global`; the stale durable-protocol
35
- spelling `session` is rejected.
36
- - Plan mode still commits a three-field Plan receipt and then schedules implementation in a new
37
- logical turn. The Web UI does not add a separate Plan approval or synthetic step state.
38
- - Goal state shown in the browser comes from the latest valid TurnCommit. A legacy sidecar remains
39
- migration input only when no committed Goal state exists.
40
- - Tool-output details are project scoped in v0.3.0 because current artifact metadata does not carry
41
- a provable Session identity.
42
- - Web appearance, default model, project Effort and tool-confirmation defaults now use the
43
- Host-owned, revisioned Settings coordinator. See the dedicated
44
- [Settings migration guide](v0.2.2-to-v0.3.0-settings.md) before changing precedence, importing
45
- legacy browser appearance or rolling configuration back.
46
-
47
- ## Rollback
48
-
49
- Stop `orion web` and reinstall or run v0.2.2. v0.3.0 does not rewrite old sessions solely to enable
50
- the browser. New durable Thread facts remain append-only and follow the existing v0.2 recovery
51
- contract; back up `~/.orion-code` before any broader manual rollback or cleanup.
52
-
53
- See the [v0.3.0 Web Workbench plan](../plan/v0.3.0-web-workbench-plan.md) and
54
- [Settings integration plan](../plan/v0.3.0-settings-integration-plan.md), plus the
55
- [OpenAPI contract](../architecture/v0.3.0-web-api.yaml), for the complete boundary.
@@ -1,88 +0,0 @@
1
- # Orion Code v0.3.0 → v0.3.1 Web Workbench 迁移说明
2
-
3
- v0.3.1 将 Web Workbench 从固定三栏升级为多项目导航和专业工程面板,同时保持单一 active
4
- Workspace/Runtime。迁移不会复制 Session、重写 Thread history,也不会把 terminal 变成 durable Session。
5
-
6
- ## 升级前准备
7
-
8
- 1. 停止正在运行的 `orion web` Host,并确认重要终端任务已经结束;浏览器终端不会跨 Host 重启恢复。
9
- 2. 备份 `$ORION_CODE_CONFIG_DIR/orion.json` 与现有 Session/Thread 数据目录。
10
- 3. 记录当前活动 Workspace 和 Session;不要在问题报告中粘贴绝对路径、凭据或 terminal 输出。
11
- 4. 使用受支持的 Node 22.12+、24 或 26。Node 20 不属于 v0.3.1 发布合同。
12
-
13
- ## 多项目注册表
14
-
15
- 首次运行时,Host 会从当前工作区和已有 Session project metadata 幂等导入 WorkspaceRegistryV1。
16
-
17
- - 注册表只保存规范化项目身份、显示标签、最近使用时间和 pin 顺序;
18
- - 它不会复制项目文件、删除 Session 或同时启动多个 Agent Runtime;
19
- - 不存在或不可访问的项目显示 unavailable,可从注册表移除;移除不删除磁盘目录或历史;
20
- - 展开 inactive project 只读取轻量 Session page/Git summary,不激活 Runtime;
21
- - 点击另一个项目的 Session 通过一次 `workspaceId + sessionId + expectedContextRevision` 原子切换。
22
-
23
- 陈旧 Context guard 返回 `409 context_revision_conflict`,Host 保持原 context,且不得投递命令、
24
- 创建 PTY、读错 workspace 或产生其他副作用。客户端应重新读取 bootstrap 后显式重试。
25
-
26
- ## 布局偏好
27
-
28
- 右侧 Work panel 的桌面宽度默认 420px,可用 IDE 式鼠标指针在 320–720px 间拖动调整,双击
29
- 分隔条复位。
30
-
31
- - 精细调宽没有键盘入口;键盘用户可以展开/折叠面板,并在 drawer 中访问全部功能;
32
- - 窄屏自动切换 drawer,不覆盖桌面宽度偏好;返回桌面时恢复;
33
- - 无效或越界旧值会被 clamp/忽略,不阻止 Workbench 启动;
34
- - 当前面板、折叠态和桌面宽度是 UI preference,不是 Runtime 或 Session 权威状态。
35
-
36
- ## 文件、Git 与审阅
37
-
38
- 这些面板都是 Host 管理的只读投影:
39
-
40
- - 文件操作使用 opaque id;Host 每次读取都重新检查 canonical workspace containment;
41
- - sensitive file、workspace 外 symlink、non-regular path 和 stale revision 均 fail-closed;
42
- - Git 只使用 argv 执行 bounded status/log/diff,不提供 checkout、reset、stage、commit 或 push;
43
- - binary 文件只返回 metadata,文本和 Diff 采用 revision-bound 分页并在 Host 端脱敏;
44
- - “发送到 Composer”只把用户选择的安全文本加入草稿,不直接修改文件。
45
-
46
- ## 真实终端
47
-
48
- v0.3.1 terminal 是显式用户启动的真实本地 PTY,是高权限、非 durable 表面:
49
-
50
- - 仅在 active workspace 启动,环境变量经过 allowlist/scrub;
51
- - attach ticket 单次使用且短时有效,只能放在 WebSocket 首个 JSON 消息中;
52
- - 刷新页面时,只要原 Host 仍存活可申请新 ticket 并按 sequence reconnect;
53
- - 输出缓冲已经截断时返回明确 gap;不补造丢失字节;
54
- - Host 重启后旧 terminal 显示 lost,不从 Session、日志或 snapshot 恢复;
55
- - close、workspace switch 和 Host shutdown 会终止拥有的进程树。
56
-
57
- terminal 字节不会进入 Workbench SSE、Thread transcript、diagnostics、release stdout/stderr 或持久设置。
58
-
59
- ## API 客户端变化
60
-
61
- 自定义 v0.3.0 Web 客户端升级时应改用
62
- [`v0.3.1 OpenAPI`](../architecture/v0.3.1-web-api.yaml):
63
-
64
- - active workspace/session/resource 请求携带 `workspaceId` 和 `expectedContextRevision`;
65
- - mutation 的 `requestId` 是 UUID;session command 仍携带 `expectedSessionId`;
66
- - 新增 Workspace registry/session summary、files、Git、review、terminal REST 资源;
67
- - terminal 使用独立 `orion-terminal-v1` WebSocket,不能从 SSE 读取 terminal output;
68
- - `workspace_resource_invalidated` 只提示按 revision 重取,不携带文件、Diff 或 terminal 内容。
69
-
70
- 不要在 409 后盲目重放旧 body;先获取新 bootstrap,确认用户仍希望对同一目标执行,再生成新的
71
- context-bound mutation。只有 byte-equivalent body 才能复用原 requestId。
72
-
73
- ## 回滚到 v0.3.0
74
-
75
- 1. 关闭浏览器并停止 v0.3.1 Host,等待所有 terminal 进程退出;如有异常,先核对进程所有权再处理。
76
- 2. 保留一份 v0.3.1 WorkspaceRegistry/layout preference 备份以便排查;v0.3.0 不依赖这些数据。
77
- 3. 使用升级前备份恢复 `orion.json`(如果升级期间修改过 Settings)。
78
- 4. 安装并启动确切的 v0.3.0 artifact,再显式选择原 Workspace/Session。
79
- 5. 验证 Thread history、当前模型、Goal/Plan 和 pending approval;不要从 terminal 输出重建历史。
80
-
81
- 回滚不会自动恢复已关闭或 lost 的 terminal,也不应删除 v0.3.1 创建的项目文件。WorkspaceRegistry
82
- 和布局偏好不是 Session 权威源;旧版本忽略它们不代表数据被删除。
83
-
84
- ## 升级验证
85
-
86
- 按 [`v0.3.1 Web E2E 资格计划`](../test/v0.3.1-web-workbench-e2e-plan.md)执行
87
- WEB31-P0-01..12。只有 source-clean exact-tarball、真实 Chrome、Node 22.12/24/26 和最终 receipt
88
- 均为 GO,才能把当前候选标记为发布完成。
@@ -1,94 +0,0 @@
1
- # Orion Code v0.3.1 → v0.3.2 Web Workbench 迁移说明
2
-
3
- v0.3.2 在 v0.3.1 专业工作台基础上增加可调左侧项目栏、Composer Control Center、
4
- Session 级模型与权限、可解释 Context、结构化引用、durable Plan review、队列编辑和
5
- Session 草稿恢复。升级保留现有 Workspace、Session、Thread、Goal、Settings 和项目文件。
6
-
7
- ## 升级前准备
8
-
9
- 1. 停止旧 `orion web` Host;如有活动 terminal,先在页面中关闭并确认子进程已退出。
10
- 2. 备份 `$ORION_CODE_CONFIG_DIR/orion.json` 和 Session/Thread 数据目录。
11
- 3. 记录当前 Workspace、Session、模型与项目默认权限。不要把绝对路径、凭据或真实 terminal
12
- 输出粘贴到问题报告。
13
- 4. 使用 Node 22.12+、24 或 26;安装后执行 `orion --version` 与 `orion doctor`。
14
-
15
- ## 布局偏好迁移
16
-
17
- v0.3.2 将旧布局偏好迁移为 `WorkbenchLayoutPreferenceV2`:
18
-
19
- - 左栏展开宽度默认 280px,可用鼠标指针在 240–480px 范围拖动,双击分隔条复位;
20
- - 左栏可折叠为 48px rail;右栏继续使用 320–720px 桌面宽度;
21
- - 中央对话区最小 560px,空间不足时先收缩右栏,再切换为 drawer;
22
- - `<=760px` 时左右栏是互斥 drawer,窄屏不会覆盖保存的桌面宽度;
23
- - 旧值无效或越界时会被 clamp/忽略,不会阻止 Workbench 启动。
24
-
25
- 精细调宽只有鼠标指针入口;键盘仍可展开、折叠、打开 drawer 并操作全部内容。
26
-
27
- ## Composer Control Center
28
-
29
- 原先独立的 BUILD/PLAN/AUTO 按钮改为 Composer 下拉控制,并新增权限、模型、Effort 和
30
- Context 入口。Host 是 current/last-good/pending/error 的权威源,浏览器不会自行推断运行态。
31
-
32
- - **模式**:BUILD、PLAN、AUTO 是工作流模式;不等同于权限。
33
- - **权限**:Session 可选 project default、Ask、Allow 或 Deny。Allow 需要风险确认,且不会绕过
34
- hard policy、sandbox、capability 或 workspace containment。
35
- - **模型**:模型和 Effort 是 Session 偏好;active turn 中的变更延迟到下一个 logical request。
36
- - **Context**:显示 Runtime 提供的 token 使用量、容量和来源;estimated 数据带 `~`,模型切换后
37
- 不沿用旧模型容量。
38
- - **Compact**:切换到更小上下文模型前,Host 先执行可验证 compact;失败时模型、Effort、
39
- Session metadata 和下一次请求保持原值。
40
-
41
- 模式与权限是两个独立轴。AUTO 不能覆盖显式 Deny,也不能把权限提升为全局设置。
42
-
43
- ## Durable Plan review
44
-
45
- 这是 v0.3.2 最重要的行为变化:PLAN 提交后不再自动开始实现。
46
-
47
- 1. Runtime 提交 PlanReceipt,并写入 `awaiting_review` 的 durable review state;
48
- 2. 浏览器显示 exact plan digest;刷新或 Host restart 后仍可恢复;
49
- 3. “批准并进入 BUILD”只接受当前 exact digest,并创建独立 BUILD logical request;
50
- 4. “继续规划”要求反馈并创建新的 PLAN request;
51
- 5. “取消”结束 review,不产生执行副作用;
52
- 6. stale revision/digest 返回 409,客户端不得自动重放。
53
-
54
- TUI、slash command 与 Web 共享同一 Plan review authority;UI 文案不是审批真源。
55
-
56
- ## Context 引用、队列和草稿
57
-
58
- - `+` 可添加 workspace 文件/目录、Review hunk、历史 Session 和 Skill 引用;
59
- - 引用只传 opaque id、revision 和 digest,Host 在组装 prompt 时重新验证 containment、敏感文件、
60
- stale revision 与预算;单引用最大 64KiB,总引用最大 256KiB;
61
- - 队列项可编辑、移动和删除,每次 mutation 需要 item revision;冲突返回 409 且零副作用;
62
- - Steer 与 follow-up 保持不同 admission 语义;队列使用执行时的最新 Composer 控制;
63
- - 未发送草稿按 Session 存在当前 tab 的 `sessionStorage`,切换/刷新可恢复,发送或显式清除后删除;
64
- 草稿不是 durable Session history,也不会跨浏览器重启恢复。
65
-
66
- ## API 客户端变化
67
-
68
- 自定义 Web 客户端应升级到
69
- [`v0.3.2 OpenAPI`](../architecture/v0.3.2-web-api.yaml)并遵守以下规则:
70
-
71
- - composer control mutation 携带 `requestId`、`expectedSessionId`、`expectedContextRevision` 和
72
- control revision;
73
- - queue edit/move/remove 携带 queue revision 与 item revision;
74
- - Plan review 携带 exact plan digest/revision,不接受 last-write-wins;
75
- - Context reference 是 discriminated union,未知类型和未知字段 fail-closed;
76
- - replay reset 是硬屏障;matching active snapshot 恢复前 Composer 保持禁用;
77
- - 409 后先重新读取 bootstrap/snapshot,再让用户确认目标,不自动重放高风险操作。
78
-
79
- ## 回滚到 v0.3.1
80
-
81
- 1. 停止 v0.3.2 Host,并关闭所有显式启动的 terminal。
82
- 2. 备份 v0.3.2 布局偏好、Session composer preference 和 Thread events 供排查。
83
- 3. 安装 exact v0.3.1 artifact,并显式选择原 Workspace/Session。
84
- 4. v0.3.1 会忽略新的布局/Composer 投影,但不会删除项目文件或旧 Thread history。
85
- 5. 不要在 v0.3.1 中批准 v0.3.2 创建的 pending Plan review;需要继续时重新在 v0.3.2 打开,
86
- 或明确取消后再回滚。
87
-
88
- 回滚不会恢复已关闭/lost terminal,也不会把浏览器 `sessionStorage` 草稿写入 Session。
89
-
90
- ## 升级验证
91
-
92
- 按 [`v0.3.2 Web E2E 资格计划`](../test/v0.3.2-web-workbench-e2e-plan.md)执行
93
- WEB32-P0-01..12。只有 source-clean `@orion-agents/orion-code@0.3.2` exact tgz、真实 Chrome、
94
- Node 22.12/24/26 和最终 digest-bound receipt 全部 GO,才能把候选标记为发布完成。
@@ -1,62 +0,0 @@
1
- # 从 Orion Code v0.3.2 升级到 v0.3.3
2
-
3
- v0.3.3 主要更新 Web Workbench:新增内置“方块工坊”视觉风格,并让同一 Host 中的多个 Session 可以
4
- 独立运行。CLI/TUI 继续保持单活动 Session 语义。
5
-
6
- ## 外观设置
7
-
8
- Settings Web view 从 schema 1 升级到 schema 2,`web.appearance` 新增:
9
-
10
- ```json
11
- {
12
- "web": {
13
- "appearance": {
14
- "style": "orion-blocksmith",
15
- "theme": "system"
16
- }
17
- }
18
- }
19
- ```
20
-
21
- `style` 只接受:
22
-
23
- - `orion-blocksmith`:v0.3.3 默认、随包提供的内置方块工坊;
24
- - `classic`:v0.3.2 的经典工作台几何。
25
-
26
- 没有 `style` 的旧配置会以 `orion-blocksmith` 作为继承默认;原有 `theme=system|light|dark` 和
27
- `motion=system|reduced` 不变。保存仍使用 Host revision/CAS,style 与 theme 可在同一批次原子更新;
28
- 旧 schema 的浏览器响应会在客户端只读归一化,不会把本地外观副本写入 localStorage。
29
-
30
- 若希望保持 v0.3.2 外观,在 Settings → General → 视觉风格选择“经典”,或显式配置:
31
-
32
- ```json
33
- { "web": { "appearance": { "style": "classic" } } }
34
- ```
35
-
36
- ## 多 Session Web Runtime
37
-
38
- - Web 命令现在必须携带 exact `workspaceId`、Context revision、Session ID 和 Session Runtime revision;
39
- - 同时最多运行三个 Session turn;第 4 个进入 FIFO 队列,可从当前 Session Composer 取消;
40
- - Session 列表显示 running、waiting approval 和 queued 状态;切换页面不会停止后台 Session;
41
- - 同一 workspace 的变更型 Tool 通过共享写入仲裁器串行执行;revision 已变化时在副作用前失败;
42
- - Host 重启不会偷偷重放未完成副作用。内存 actor 消失后,durable Thread/receipt 仍是恢复权威。
43
-
44
- 这些协议变化要求 Host 与 Web client 来自同一个 v0.3.3 安装包。升级后请关闭旧标签页并重新打开 Host
45
- 输出的 loopback URL;旧 nonce、旧 Session Runtime revision 或旧命令 body 会得到 409/400,不会自动重放。
46
-
47
- ## 布局和 Settings 入口
48
-
49
- - 右侧工作面板折叠后固定为右侧全高 48px rail;窄屏继续使用 modal drawer;
50
- - Settings 常驻入口只保留在左侧项目栏底部,折叠 rail 和窄屏 drawer 中仍可达;
51
- - 左右栏的桌面宽度偏好保存在设备本地布局偏好中,窄屏 drawer 不覆盖桌面值。
52
-
53
- ## 回滚
54
-
55
- 回滚到 v0.3.2 前建议在 v0.3.3 将视觉风格切到 `classic`。v0.3.2 的 tolerant config loader会忽略它
56
- 不认识的 `web.appearance.style`,不会执行任何主题代码;但旧 Web client 不理解 schema 2 响应,因此必须
57
- 同时回滚 Host 和静态 Web 资产,不能混用版本。
58
-
59
- ## 验证
60
-
61
- 发布候选必须使用同一 exact npm tarball 在 Node 22.12、24、26 的全新 prefix 运行真实 Chrome critical
62
- matrix。历史 v0.3.2 receipt 不能证明 v0.3.3;缺少任一 WEB33 场景时发布结论为 `NO_GO`。
@@ -1,36 +0,0 @@
1
- # Migrating Orion Code from v0.3.3 to v0.3.4
2
-
3
- v0.3.4 is a compatible stabilization release. Existing projects, Sessions, Goals, settings and terminal preferences require no data migration.
4
-
5
- ## Web API callers
6
-
7
- `PATCH /api/v1/settings` now requires the active Context guard in addition to Settings CAS:
8
-
9
- ```json
10
- {
11
- "requestId": "<uuid>",
12
- "workspaceId": "<bootstrap.workspaceId>",
13
- "expectedContextRevision": "<bootstrap.contextRevision>",
14
- "expectedRevision": "<settings.revision>",
15
- "operations": [{ "op": "set", "key": "appearance.theme", "value": "dark" }]
16
- }
17
- ```
18
-
19
- A stale page receives `409 context_revision_conflict`. The client must refresh bootstrap/settings and ask the user to retry; it must never replay the mutation automatically into a different Workspace.
20
-
21
- File tree responses may add `targetKind: file|directory` for readable symbolic links. Callers should preserve `kind=symlink` for display/security and use `targetKind` only to choose file preview versus directory expansion.
22
-
23
- Review responses add `totalChangedFiles`. `changedFiles.length` is the visible bounded page and must not be presented as the repository total when `truncated=true`.
24
-
25
- ## Runtime behavior
26
-
27
- - Blank Session rename requests now return 400 instead of persisting an empty title.
28
- - A busy `reject-busy` slash command no longer clears the active turn state.
29
- - Tool receipts with one-sided or mismatched durable evidence fail closed in UI projections.
30
- - Terminal reconnect sends all replay frames before live tail and exit; unpaired UTF-16 input is normalized at the transport boundary.
31
-
32
- ## Security behavior
33
-
34
- Internal symbolic-link aliases do not bypass sensitive-file policy. Git diff blocks sensitive current paths and rename sources. Structured X-prefixed credentials, URL userinfo and captured command output pass through the shared redaction boundary.
35
-
36
- No configuration key is renamed and no manual file rewrite is required.
@@ -1,86 +0,0 @@
1
- {
2
- "schemaVersion": 1,
3
- "providers": [
4
- {
5
- "id": "my-provider",
6
- "displayName": "My OpenAI-compatible Provider",
7
- "baseUrl": "https://your-endpoint.example/v1",
8
- "apiKey": "$ORION_CODE_API_KEY",
9
- "protocol": "openai-completions"
10
- }
11
- ],
12
- "models": [
13
- {
14
- "id": "my-model",
15
- "displayName": "My Model",
16
- "provider": "my-provider",
17
- "model": "model-name",
18
- "contextWindow": 200000,
19
- "maxOutputTokens": 8192,
20
- "reasoningCapability": {
21
- "kind": "effort-level",
22
- "supportedLevels": ["low", "medium", "high"],
23
- "defaultLevel": "medium",
24
- "adapter": "openai-chat-reasoning-effort",
25
- "source": "config"
26
- }
27
- },
28
- {
29
- "id": "my-fallback",
30
- "displayName": "My Fallback Model",
31
- "provider": "my-provider",
32
- "model": "fallback-model-name",
33
- "contextWindow": 200000,
34
- "maxOutputTokens": 8192
35
- }
36
- ],
37
- "defaultModel": "my-model",
38
- "fallbackModel": "my-fallback",
39
- "defaultEffort": "auto",
40
- "toolConfirmation": "allow",
41
- "allowedTools": [],
42
- "projects": {
43
- "/absolute/path/to/project": {
44
- "compactInstructions": "Retain architecture decisions, failed verification, and release receipts.",
45
- "defaultEffort": "medium"
46
- }
47
- },
48
- "web": {
49
- "appearance": {
50
- "theme": "system",
51
- "motion": "system"
52
- }
53
- },
54
- "ui": {
55
- "confirmations": "config",
56
- "theme": "orion-pixel",
57
- "motion": "reduced",
58
- "mascot": true,
59
- "statusLine": ["mode", "goal", "model", "context", "permission", "queue", "activity"],
60
- "keymap": {
61
- "queue": ["tab"],
62
- "history-search": ["ctrl+r"],
63
- "external-editor": ["ctrl+e"]
64
- }
65
- },
66
- "subagents": {
67
- "mode": "auto",
68
- "maxParallel": 4
69
- },
70
- "webSearch": {
71
- "provider": "auto",
72
- "apiKey": "REPLACE_WITH_WEB_SEARCH_KEY"
73
- },
74
- "skills": {
75
- "paths": []
76
- },
77
- "agentLoop": {
78
- "budget": {
79
- "maxLlmRequestsPerUserTurn": 200,
80
- "maxToolCallsPerUserTurn": 400
81
- }
82
- },
83
- "sandbox": {
84
- "profile": "none"
85
- }
86
- }