@ouro.bot/cli 0.1.0-alpha.1469 → 0.1.0-alpha.1470

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 (567) hide show
  1. package/README.md +1 -1
  2. package/changelog.json +6 -2
  3. package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
  4. package/deploy/unraid/sanctuary.xml +1 -1
  5. package/desk.lock.json +8 -0
  6. package/dist/heart/identity.js +27 -1
  7. package/dist/mind/desk-section.js +33 -43
  8. package/dist/repertoire/desk-mcp.js +140 -0
  9. package/dist/repertoire/mcp-manager.js +22 -0
  10. package/dist/repertoire/mcp-tools.js +11 -7
  11. package/npm-shrinkwrap.json +2 -2
  12. package/package.json +4 -1
  13. package/vendor/desk/.claude-plugin/plugin.json +35 -0
  14. package/vendor/desk/.mcp.claude-codex.json +28 -0
  15. package/vendor/desk/.mcp.copilot.json +16 -0
  16. package/vendor/desk/.ouro-desk.json +6 -0
  17. package/vendor/desk/CHANGELOG.md +7004 -0
  18. package/vendor/desk/README.md +195 -0
  19. package/vendor/desk/activation/README.md +98 -0
  20. package/vendor/desk/activation/copilot-root.flattened-bundle.json +38 -0
  21. package/vendor/desk/activation/desk.activation.json +251 -0
  22. package/vendor/desk/activation/host-capability-evidence.md +46 -0
  23. package/vendor/desk/activation/support-matrix.json +84 -0
  24. package/vendor/desk/agency.json +20 -0
  25. package/vendor/desk/agents/observer.agent.md +26 -0
  26. package/vendor/desk/agents/observer.md +29 -0
  27. package/vendor/desk/agents/worker.agent.md +32 -0
  28. package/vendor/desk/agents/worker.md +40 -0
  29. package/vendor/desk/artifacts/tombstones/tombstone.schema.json +53 -0
  30. package/vendor/desk/artifacts/tombstones/tombstones.jsonl +1 -0
  31. package/vendor/desk/changelog.d/README.md +12 -0
  32. package/vendor/desk/docs/agent-files.md +104 -0
  33. package/vendor/desk/docs/agentic-engineering-v2-rfc.md +206 -0
  34. package/vendor/desk/docs/agentic-engineering-v3-rfc.md +109 -0
  35. package/vendor/desk/docs/browser-remote-desktops.md +69 -0
  36. package/vendor/desk/docs/dependency-activation-stories-and-criteria.md +500 -0
  37. package/vendor/desk/docs/evaluation-packet.md +363 -0
  38. package/vendor/desk/docs/factory-local-capture.md +651 -0
  39. package/vendor/desk/docs/factory-store-playbook.md +927 -0
  40. package/vendor/desk/docs/images/factory-site.png +0 -0
  41. package/vendor/desk/docs/issue-drains.md +79 -0
  42. package/vendor/desk/docs/lfs-inspection.md +55 -0
  43. package/vendor/desk/docs/preview-diagnostics.md +11 -0
  44. package/vendor/desk/docs/relays.md +88 -0
  45. package/vendor/desk/docs/schedules.md +69 -0
  46. package/vendor/desk/docs/search-recovery.md +22 -0
  47. package/vendor/desk/docs/session-labels.md +157 -0
  48. package/vendor/desk/docs/session-retention.md +125 -0
  49. package/vendor/desk/docs/sessions.md +17 -0
  50. package/vendor/desk/docs/stalled-nudges.md +54 -0
  51. package/vendor/desk/docs/webhooks.md +80 -0
  52. package/vendor/desk/docs/workspace-tidy.md +74 -0
  53. package/vendor/desk/hooks/boot-checks.cjs +7 -0
  54. package/vendor/desk/hooks/claude-session-start.cjs +123 -0
  55. package/vendor/desk/hooks/compatible-node.cjs +97 -0
  56. package/vendor/desk/hooks/copilot-boot-prompt.cjs +69 -0
  57. package/vendor/desk/hooks/copilot-durable-files.cjs +8 -0
  58. package/vendor/desk/hooks/copilot-hooks.json +61 -0
  59. package/vendor/desk/hooks/copilot-intake-context.cjs +5 -0
  60. package/vendor/desk/hooks/copilot-lane-model.cjs +8 -0
  61. package/vendor/desk/hooks/copilot-session-start.cjs +264 -0
  62. package/vendor/desk/hooks/copilot-skill-current.cjs +28 -0
  63. package/vendor/desk/hooks/factory-end.cjs +5 -0
  64. package/vendor/desk/hooks/factory-start.cjs +27 -0
  65. package/vendor/desk/hooks/hooks.json +40 -0
  66. package/vendor/desk/hooks/lib/boot-checks.cjs +643 -0
  67. package/vendor/desk/hooks/lib/child-agent.cjs +14 -0
  68. package/vendor/desk/hooks/lib/copilot-intake-context.cjs +73 -0
  69. package/vendor/desk/hooks/lib/current-release.cjs +162 -0
  70. package/vendor/desk/hooks/lib/delivery-stop.cjs +326 -0
  71. package/vendor/desk/hooks/lib/detach-worker.cjs +43 -0
  72. package/vendor/desk/hooks/lib/durable-files.cjs +102 -0
  73. package/vendor/desk/hooks/lib/factory-end.cjs +327 -0
  74. package/vendor/desk/hooks/lib/lane-model.cjs +82 -0
  75. package/vendor/desk/hooks/lib/node-required.cjs +56 -0
  76. package/vendor/desk/hooks/lib/orca-session-title.cjs +60 -0
  77. package/vendor/desk/hooks/lib/session-end.cjs +30 -0
  78. package/vendor/desk/hooks/lib/sync-end.cjs +89 -0
  79. package/vendor/desk/hooks/loop-start.cjs +105 -0
  80. package/vendor/desk/hooks/node-missing.sh +78 -0
  81. package/vendor/desk/hooks/orca-session-title.cjs +8 -0
  82. package/vendor/desk/hooks/session-end.cjs +8 -0
  83. package/vendor/desk/mcp/README.md +269 -0
  84. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  85. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  86. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  87. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  88. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  89. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  90. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  91. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  92. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  93. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  94. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  95. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  96. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  97. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  98. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  99. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/support-matrix.json +72 -0
  100. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  101. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  102. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  103. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
  104. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
  105. package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
  106. package/vendor/desk/mcp/artifacts/runtime-deps/README.md +25 -0
  107. package/vendor/desk/mcp/bootstrap.cjs +761 -0
  108. package/vendor/desk/mcp/docs/private-feedback.md +13 -0
  109. package/vendor/desk/mcp/idle-proxy.cjs +423 -0
  110. package/vendor/desk/mcp/index.js +813 -0
  111. package/vendor/desk/mcp/package-lock.json +3717 -0
  112. package/vendor/desk/mcp/package.json +44 -0
  113. package/vendor/desk/mcp/scripts/agency-desk-channel.js +7 -0
  114. package/vendor/desk/mcp/scripts/build-runtime-deps-pack.js +5 -0
  115. package/vendor/desk/mcp/scripts/crew.js +89 -0
  116. package/vendor/desk/mcp/scripts/drains-launcher.mjs +329 -0
  117. package/vendor/desk/mcp/scripts/drains.js +5 -0
  118. package/vendor/desk/mcp/scripts/factory.js +657 -0
  119. package/vendor/desk/mcp/scripts/file-desk-problem.js +9 -0
  120. package/vendor/desk/mcp/scripts/finish-commit.js +7 -0
  121. package/vendor/desk/mcp/scripts/lfs.js +37 -0
  122. package/vendor/desk/mcp/scripts/local-recovery.js +363 -0
  123. package/vendor/desk/mcp/scripts/migrations.js +11 -0
  124. package/vendor/desk/mcp/scripts/private-view.js +177 -0
  125. package/vendor/desk/mcp/scripts/resolve-desk-root.js +106 -0
  126. package/vendor/desk/mcp/scripts/session-boot.js +22 -0
  127. package/vendor/desk/mcp/scripts/session-retention.js +5 -0
  128. package/vendor/desk/mcp/scripts/session-sync.js +10 -0
  129. package/vendor/desk/mcp/scripts/sessions.js +5 -0
  130. package/vendor/desk/mcp/scripts/sync-push.js +13 -0
  131. package/vendor/desk/mcp/scripts/tidy-status.js +8 -0
  132. package/vendor/desk/mcp/scripts/verify-runtime-deps-pack.js +5 -0
  133. package/vendor/desk/mcp/src/actions/desk-read.actions.mts +73 -0
  134. package/vendor/desk/mcp/src/actions/desk-session.actions.mts +42 -0
  135. package/vendor/desk/mcp/src/actions/desk-web.actions.mts +52 -0
  136. package/vendor/desk/mcp/src/actions/desk.actions.mts +5 -0
  137. package/vendor/desk/mcp/src/actions/generated/desk/OuroActions.swift +649 -0
  138. package/vendor/desk/mcp/src/actions/generated/desk/OuroActionsReins.swift +61 -0
  139. package/vendor/desk/mcp/src/actions/generated/desk/actions.json +280 -0
  140. package/vendor/desk/mcp/src/actions/generated/desk/commands.json +145 -0
  141. package/vendor/desk/mcp/src/actions/generated/desk/mcp.json +256 -0
  142. package/vendor/desk/mcp/src/actions/generated/desk/web.ts +59 -0
  143. package/vendor/desk/mcp/src/actions/generated/desk/webmcp.json +250 -0
  144. package/vendor/desk/mcp/src/actions/generated/desk-web/OuroActions.swift +241 -0
  145. package/vendor/desk/mcp/src/actions/generated/desk-web/OuroActionsReins.swift +25 -0
  146. package/vendor/desk/mcp/src/actions/generated/desk-web/actions.json +73 -0
  147. package/vendor/desk/mcp/src/actions/generated/desk-web/commands.json +53 -0
  148. package/vendor/desk/mcp/src/actions/generated/desk-web/mcp.json +83 -0
  149. package/vendor/desk/mcp/src/actions/generated/desk-web/web.ts +47 -0
  150. package/vendor/desk/mcp/src/actions/generated/desk-web/webmcp.json +81 -0
  151. package/vendor/desk/mcp/src/actions/served.js +5 -0
  152. package/vendor/desk/mcp/src/activation/admit.js +77 -0
  153. package/vendor/desk/mcp/src/activation/failures.js +65 -0
  154. package/vendor/desk/mcp/src/activation/readiness-policy.js +102 -0
  155. package/vendor/desk/mcp/src/activation/schema.js +17 -0
  156. package/vendor/desk/mcp/src/activation/superpowers-context.js +265 -0
  157. package/vendor/desk/mcp/src/activation/validate.js +540 -0
  158. package/vendor/desk/mcp/src/artifacts/tombstones.js +61 -0
  159. package/vendor/desk/mcp/src/crew/initiative.js +287 -0
  160. package/vendor/desk/mcp/src/crew/workspace.js +1259 -0
  161. package/vendor/desk/mcp/src/db/init.js +75 -0
  162. package/vendor/desk/mcp/src/db/schema.sql +83 -0
  163. package/vendor/desk/mcp/src/desk/active-tasks.js +408 -0
  164. package/vendor/desk/mcp/src/desk/card-commit-guard.js +281 -0
  165. package/vendor/desk/mcp/src/desk/cleanup-index.js +53 -0
  166. package/vendor/desk/mcp/src/desk/content-home.js +246 -0
  167. package/vendor/desk/mcp/src/desk/crew-config.js +102 -0
  168. package/vendor/desk/mcp/src/desk/crew-member.js +196 -0
  169. package/vendor/desk/mcp/src/desk/crew-roster.js +151 -0
  170. package/vendor/desk/mcp/src/desk/frontmatter-lite.js +228 -0
  171. package/vendor/desk/mcp/src/desk/gh-logins.js +109 -0
  172. package/vendor/desk/mcp/src/desk/handles.js +123 -0
  173. package/vendor/desk/mcp/src/desk/handoff-reference.js +35 -0
  174. package/vendor/desk/mcp/src/desk/improvement-authority.js +3 -0
  175. package/vendor/desk/mcp/src/desk/improvement-cards.js +704 -0
  176. package/vendor/desk/mcp/src/desk/improvement-person.js +51 -0
  177. package/vendor/desk/mcp/src/desk/lifecycle.js +16 -0
  178. package/vendor/desk/mcp/src/desk/machine-desks.js +119 -0
  179. package/vendor/desk/mcp/src/desk/naming.js +333 -0
  180. package/vendor/desk/mcp/src/desk/organization.js +592 -0
  181. package/vendor/desk/mcp/src/desk/resources.js +274 -0
  182. package/vendor/desk/mcp/src/desk/runtime-resolver.js +30 -0
  183. package/vendor/desk/mcp/src/desk/scratch-paths.js +44 -0
  184. package/vendor/desk/mcp/src/desk/step-delivery.js +140 -0
  185. package/vendor/desk/mcp/src/desk/steps.js +263 -0
  186. package/vendor/desk/mcp/src/desk/tidy.js +930 -0
  187. package/vendor/desk/mcp/src/desk/unsigned-deliveries.js +359 -0
  188. package/vendor/desk/mcp/src/factory/agent-types.js +45 -0
  189. package/vendor/desk/mcp/src/factory/andon-watch.js +109 -0
  190. package/vendor/desk/mcp/src/factory/binding.js +612 -0
  191. package/vendor/desk/mcp/src/factory/boot-check.js +645 -0
  192. package/vendor/desk/mcp/src/factory/capture-classify.js +158 -0
  193. package/vendor/desk/mcp/src/factory/capture-count.js +183 -0
  194. package/vendor/desk/mcp/src/factory/capture-flush.js +268 -0
  195. package/vendor/desk/mcp/src/factory/capture-publish.js +141 -0
  196. package/vendor/desk/mcp/src/factory/capture-schema.js +193 -0
  197. package/vendor/desk/mcp/src/factory/capture-sweep.js +239 -0
  198. package/vendor/desk/mcp/src/factory/catch-point.js +60 -0
  199. package/vendor/desk/mcp/src/factory/commit-resolve.js +94 -0
  200. package/vendor/desk/mcp/src/factory/consent-answer.js +37 -0
  201. package/vendor/desk/mcp/src/factory/context-capability.js +15 -0
  202. package/vendor/desk/mcp/src/factory/context-outbox.js +885 -0
  203. package/vendor/desk/mcp/src/factory/context-run.js +386 -0
  204. package/vendor/desk/mcp/src/factory/context-schema.js +249 -0
  205. package/vendor/desk/mcp/src/factory/copilot-turn-index.js +93 -0
  206. package/vendor/desk/mcp/src/factory/copilot-usage.js +148 -0
  207. package/vendor/desk/mcp/src/factory/credential.js +45 -0
  208. package/vendor/desk/mcp/src/factory/derive-claude.js +960 -0
  209. package/vendor/desk/mcp/src/factory/derive-codex.js +734 -0
  210. package/vendor/desk/mcp/src/factory/derive-common.js +279 -0
  211. package/vendor/desk/mcp/src/factory/derive-copilot.js +1057 -0
  212. package/vendor/desk/mcp/src/factory/derive-run.js +807 -0
  213. package/vendor/desk/mcp/src/factory/desk-problem-file.js +310 -0
  214. package/vendor/desk/mcp/src/factory/desk-problem-fingerprint.js +70 -0
  215. package/vendor/desk/mcp/src/factory/desk-problem-known.js +246 -0
  216. package/vendor/desk/mcp/src/factory/desk-problem-template.js +107 -0
  217. package/vendor/desk/mcp/src/factory/desk-repo.js +1223 -0
  218. package/vendor/desk/mcp/src/factory/desk-task-line.js +28 -0
  219. package/vendor/desk/mcp/src/factory/desk-visibility.js +48 -0
  220. package/vendor/desk/mcp/src/factory/end-hook.js +14 -0
  221. package/vendor/desk/mcp/src/factory/evaluate-kick.js +164 -0
  222. package/vendor/desk/mcp/src/factory/evaluate-run.js +678 -0
  223. package/vendor/desk/mcp/src/factory/evaluator-step.js +484 -0
  224. package/vendor/desk/mcp/src/factory/filer-launch.js +79 -0
  225. package/vendor/desk/mcp/src/factory/flush-health.js +26 -0
  226. package/vendor/desk/mcp/src/factory/flush.js +1758 -0
  227. package/vendor/desk/mcp/src/factory/focus.js +326 -0
  228. package/vendor/desk/mcp/src/factory/headless-flag.cjs +32 -0
  229. package/vendor/desk/mcp/src/factory/headless-flag.js +25 -0
  230. package/vendor/desk/mcp/src/factory/headless-ledger.js +743 -0
  231. package/vendor/desk/mcp/src/factory/headless.js +567 -0
  232. package/vendor/desk/mcp/src/factory/held-route.js +93 -0
  233. package/vendor/desk/mcp/src/factory/host-flags.js +36 -0
  234. package/vendor/desk/mcp/src/factory/improvement-verify.js +429 -0
  235. package/vendor/desk/mcp/src/factory/kaizen-file.js +231 -0
  236. package/vendor/desk/mcp/src/factory/label-binding.js +90 -0
  237. package/vendor/desk/mcp/src/factory/label-schema.js +426 -0
  238. package/vendor/desk/mcp/src/factory/local-status.js +368 -0
  239. package/vendor/desk/mcp/src/factory/loop-conditions.js +121 -0
  240. package/vendor/desk/mcp/src/factory/loop-health.js +500 -0
  241. package/vendor/desk/mcp/src/factory/loop-slot.js +90 -0
  242. package/vendor/desk/mcp/src/factory/loop-status.js +100 -0
  243. package/vendor/desk/mcp/src/factory/loop-switch.cjs +14 -0
  244. package/vendor/desk/mcp/src/factory/loop-worker-state.js +96 -0
  245. package/vendor/desk/mcp/src/factory/loop-worker.js +290 -0
  246. package/vendor/desk/mcp/src/factory/marker.js +61 -0
  247. package/vendor/desk/mcp/src/factory/mirror-step.js +145 -0
  248. package/vendor/desk/mcp/src/factory/os-protect.js +243 -0
  249. package/vendor/desk/mcp/src/factory/outbox.js +2231 -0
  250. package/vendor/desk/mcp/src/factory/outcome.js +431 -0
  251. package/vendor/desk/mcp/src/factory/pipeline/andon.js +319 -0
  252. package/vendor/desk/mcp/src/factory/pipeline/attention-rollup.js +158 -0
  253. package/vendor/desk/mcp/src/factory/pipeline/attention.js +146 -0
  254. package/vendor/desk/mcp/src/factory/pipeline/build.js +299 -0
  255. package/vendor/desk/mcp/src/factory/pipeline/compare.js +148 -0
  256. package/vendor/desk/mcp/src/factory/pipeline/formulas.js +652 -0
  257. package/vendor/desk/mcp/src/factory/pipeline/kaizen.js +387 -0
  258. package/vendor/desk/mcp/src/factory/pipeline/lifecycle-clocks.js +345 -0
  259. package/vendor/desk/mcp/src/factory/pipeline/normalize.js +73 -0
  260. package/vendor/desk/mcp/src/factory/pipeline/number-states.js +154 -0
  261. package/vendor/desk/mcp/src/factory/pipeline/outcomes.js +268 -0
  262. package/vendor/desk/mcp/src/factory/pipeline/report.js +737 -0
  263. package/vendor/desk/mcp/src/factory/pipeline/rollups.js +883 -0
  264. package/vendor/desk/mcp/src/factory/pipeline/stretches.js +523 -0
  265. package/vendor/desk/mcp/src/factory/pipeline/timeline.js +199 -0
  266. package/vendor/desk/mcp/src/factory/pipeline/validate-pr.js +238 -0
  267. package/vendor/desk/mcp/src/factory/pipeline/versions.js +42 -0
  268. package/vendor/desk/mcp/src/factory/pipeline/walk.js +1177 -0
  269. package/vendor/desk/mcp/src/factory/plugin-registry.js +72 -0
  270. package/vendor/desk/mcp/src/factory/plugin-sources.cjs +249 -0
  271. package/vendor/desk/mcp/src/factory/pr-green.js +77 -0
  272. package/vendor/desk/mcp/src/factory/process-lock.js +142 -0
  273. package/vendor/desk/mcp/src/factory/proof-session.js +75 -0
  274. package/vendor/desk/mcp/src/factory/publish.js +637 -0
  275. package/vendor/desk/mcp/src/factory/published-schema.js +648 -0
  276. package/vendor/desk/mcp/src/factory/reconcile-reasons.js +22 -0
  277. package/vendor/desk/mcp/src/factory/reconcile-step.js +251 -0
  278. package/vendor/desk/mcp/src/factory/reconcile.js +808 -0
  279. package/vendor/desk/mcp/src/factory/release-version.js +134 -0
  280. package/vendor/desk/mcp/src/factory/repo-name.js +13 -0
  281. package/vendor/desk/mcp/src/factory/retention.js +60 -0
  282. package/vendor/desk/mcp/src/factory/route-desk.js +40 -0
  283. package/vendor/desk/mcp/src/factory/route-issues.js +251 -0
  284. package/vendor/desk/mcp/src/factory/route-local.js +264 -0
  285. package/vendor/desk/mcp/src/factory/schema.js +957 -0
  286. package/vendor/desk/mcp/src/factory/session-kind.js +16 -0
  287. package/vendor/desk/mcp/src/factory/session-lifetime.js +56 -0
  288. package/vendor/desk/mcp/src/factory/session-route.js +183 -0
  289. package/vendor/desk/mcp/src/factory/shell-git.js +500 -0
  290. package/vendor/desk/mcp/src/factory/store-issues.js +143 -0
  291. package/vendor/desk/mcp/src/factory/store-route.js +208 -0
  292. package/vendor/desk/mcp/src/factory/test-state-guard.js +103 -0
  293. package/vendor/desk/mcp/src/factory/time.js +36 -0
  294. package/vendor/desk/mcp/src/factory/tool-issue-file.js +84 -0
  295. package/vendor/desk/mcp/src/factory/tool-kinds.js +87 -0
  296. package/vendor/desk/mcp/src/factory/triage-schema.js +233 -0
  297. package/vendor/desk/mcp/src/factory/windows-acl.js +679 -0
  298. package/vendor/desk/mcp/src/indexer/chunk.js +232 -0
  299. package/vendor/desk/mcp/src/indexer/discover.js +434 -0
  300. package/vendor/desk/mcp/src/indexer/exclusions.js +247 -0
  301. package/vendor/desk/mcp/src/indexer/index.js +167 -0
  302. package/vendor/desk/mcp/src/indexer/refs.js +0 -0
  303. package/vendor/desk/mcp/src/indexer/text-hash.js +18 -0
  304. package/vendor/desk/mcp/src/lib/ouro-actions/actions.claims.json +75 -0
  305. package/vendor/desk/mcp/src/lib/ouro-actions/dist-manifest.json +70 -0
  306. package/vendor/desk/mcp/src/lib/ouro-actions/ouro-actions.mts +1416 -0
  307. package/vendor/desk/mcp/src/lib/ouro-ui/LICENSE +21 -0
  308. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/ax-claims.ts +190 -0
  309. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/ax-command.ts +1020 -0
  310. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/checks.ts +343 -0
  311. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/cli.ts +240 -0
  312. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/component.ts +430 -0
  313. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/dev-commands.ts +204 -0
  314. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/doctor.ts +126 -0
  315. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/effects.ts +68 -0
  316. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/exit-codes.ts +75 -0
  317. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/help.ts +220 -0
  318. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/mcp.ts +268 -0
  319. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/outcome.ts +265 -0
  320. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/output.ts +67 -0
  321. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/precise-copy.ts +235 -0
  322. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/problem.ts +124 -0
  323. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/surfaces.kit.mts +8 -0
  324. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/surfaces.ts +568 -0
  325. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/terminal.ts +245 -0
  326. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/voice.ts +136 -0
  327. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/wait.ts +226 -0
  328. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/work-event.ts +181 -0
  329. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/xray.kit.mts +18 -0
  330. package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/xray.ts +2072 -0
  331. package/vendor/desk/mcp/src/package-metadata.js +20 -0
  332. package/vendor/desk/mcp/src/protected/legacy-ledger.js +55 -0
  333. package/vendor/desk/mcp/src/readiness/leftovers.js +75 -0
  334. package/vendor/desk/mcp/src/readiness/process-start.js +149 -0
  335. package/vendor/desk/mcp/src/runtime/admission-worker.js +194 -0
  336. package/vendor/desk/mcp/src/runtime/admission.js +177 -0
  337. package/vendor/desk/mcp/src/runtime/agency-desk-channel.js +342 -0
  338. package/vendor/desk/mcp/src/runtime/agents-md.js +62 -0
  339. package/vendor/desk/mcp/src/runtime/append-lane.js +68 -0
  340. package/vendor/desk/mcp/src/runtime/argv-safe-reason.js +55 -0
  341. package/vendor/desk/mcp/src/runtime/boot-dependencies.js +75 -0
  342. package/vendor/desk/mcp/src/runtime/boot-text.js +504 -0
  343. package/vendor/desk/mcp/src/runtime/boot.js +1677 -0
  344. package/vendor/desk/mcp/src/runtime/bootstrap.js +1455 -0
  345. package/vendor/desk/mcp/src/runtime/chunked-import.js +102 -0
  346. package/vendor/desk/mcp/src/runtime/copilot-commit-trailer.js +133 -0
  347. package/vendor/desk/mcp/src/runtime/copilot-session.js +155 -0
  348. package/vendor/desk/mcp/src/runtime/deliver.js +469 -0
  349. package/vendor/desk/mcp/src/runtime/desk-channel.js +86 -0
  350. package/vendor/desk/mcp/src/runtime/desk-failure.js +26 -0
  351. package/vendor/desk/mcp/src/runtime/desk-health.js +168 -0
  352. package/vendor/desk/mcp/src/runtime/desk-session.js +1451 -0
  353. package/vendor/desk/mcp/src/runtime/diagnostic-server.js +72 -0
  354. package/vendor/desk/mcp/src/runtime/diagnostics.js +241 -0
  355. package/vendor/desk/mcp/src/runtime/drains-cli.js +187 -0
  356. package/vendor/desk/mcp/src/runtime/drains.js +781 -0
  357. package/vendor/desk/mcp/src/runtime/elsewhere-note.js +9 -0
  358. package/vendor/desk/mcp/src/runtime/failure-evidence.js +21 -0
  359. package/vendor/desk/mcp/src/runtime/fast-refs.js +209 -0
  360. package/vendor/desk/mcp/src/runtime/filer-throttle.js +66 -0
  361. package/vendor/desk/mcp/src/runtime/focused-card.js +147 -0
  362. package/vendor/desk/mcp/src/runtime/front-door.js +204 -0
  363. package/vendor/desk/mcp/src/runtime/gate-wait.js +2 -0
  364. package/vendor/desk/mcp/src/runtime/git-inspection.js +201 -0
  365. package/vendor/desk/mcp/src/runtime/git-read-worker.js +157 -0
  366. package/vendor/desk/mcp/src/runtime/health.js +50 -0
  367. package/vendor/desk/mcp/src/runtime/hooks.js +353 -0
  368. package/vendor/desk/mcp/src/runtime/hosted.js +163 -0
  369. package/vendor/desk/mcp/src/runtime/inbox.js +102 -0
  370. package/vendor/desk/mcp/src/runtime/index-drift.js +118 -0
  371. package/vendor/desk/mcp/src/runtime/last-start.js +133 -0
  372. package/vendor/desk/mcp/src/runtime/lesson-section.js +92 -0
  373. package/vendor/desk/mcp/src/runtime/lessons-shelf.js +100 -0
  374. package/vendor/desk/mcp/src/runtime/lfs.js +319 -0
  375. package/vendor/desk/mcp/src/runtime/native-path.js +12 -0
  376. package/vendor/desk/mcp/src/runtime/newest-release.js +197 -0
  377. package/vendor/desk/mcp/src/runtime/node-selection.js +233 -0
  378. package/vendor/desk/mcp/src/runtime/orca-session-title.js +225 -0
  379. package/vendor/desk/mcp/src/runtime/other-sessions.js +183 -0
  380. package/vendor/desk/mcp/src/runtime/pending-migrations.js +653 -0
  381. package/vendor/desk/mcp/src/runtime/plugin-update.js +215 -0
  382. package/vendor/desk/mcp/src/runtime/pluginless-runtimes.js +34 -0
  383. package/vendor/desk/mcp/src/runtime/pr-publication.js +226 -0
  384. package/vendor/desk/mcp/src/runtime/preview-snapshot.js +23 -0
  385. package/vendor/desk/mcp/src/runtime/publication-mode.js +19 -0
  386. package/vendor/desk/mcp/src/runtime/relays.js +974 -0
  387. package/vendor/desk/mcp/src/runtime/release-alert.js +148 -0
  388. package/vendor/desk/mcp/src/runtime/remote-identity.js +140 -0
  389. package/vendor/desk/mcp/src/runtime/resolve-here.js +4 -0
  390. package/vendor/desk/mcp/src/runtime/runtime-deps-cli.js +65 -0
  391. package/vendor/desk/mcp/src/runtime/runtime-deps.js +1109 -0
  392. package/vendor/desk/mcp/src/runtime/runtime-identity.js +22 -0
  393. package/vendor/desk/mcp/src/runtime/runtime-swap.js +101 -0
  394. package/vendor/desk/mcp/src/runtime/schedules.js +235 -0
  395. package/vendor/desk/mcp/src/runtime/session-activity.js +190 -0
  396. package/vendor/desk/mcp/src/runtime/session-label.js +30 -0
  397. package/vendor/desk/mcp/src/runtime/session-retention.js +662 -0
  398. package/vendor/desk/mcp/src/runtime/session-sync.js +333 -0
  399. package/vendor/desk/mcp/src/runtime/session-trailer.js +126 -0
  400. package/vendor/desk/mcp/src/runtime/sessions-cli.js +301 -0
  401. package/vendor/desk/mcp/src/runtime/signoff-listed.js +81 -0
  402. package/vendor/desk/mcp/src/runtime/skills.js +76 -0
  403. package/vendor/desk/mcp/src/runtime/stale-card-lead.js +52 -0
  404. package/vendor/desk/mcp/src/runtime/stale-desk-refresh.js +198 -0
  405. package/vendor/desk/mcp/src/runtime/stale-desk.js +219 -0
  406. package/vendor/desk/mcp/src/runtime/stalled.js +255 -0
  407. package/vendor/desk/mcp/src/runtime/standing-authority.js +79 -0
  408. package/vendor/desk/mcp/src/runtime/startup-boot.js +341 -0
  409. package/vendor/desk/mcp/src/runtime/startup-resolve.js +140 -0
  410. package/vendor/desk/mcp/src/runtime/state-branch.js +203 -0
  411. package/vendor/desk/mcp/src/runtime/status-compact.js +165 -0
  412. package/vendor/desk/mcp/src/runtime/status-inspection-child.js +26 -0
  413. package/vendor/desk/mcp/src/runtime/status-inspection.js +147 -0
  414. package/vendor/desk/mcp/src/runtime/status-root.js +39 -0
  415. package/vendor/desk/mcp/src/runtime/sync-worker.js +911 -0
  416. package/vendor/desk/mcp/src/runtime/test-state-guard.js +107 -0
  417. package/vendor/desk/mcp/src/runtime/unmerged-saves.js +247 -0
  418. package/vendor/desk/mcp/src/runtime/workspace-claim.js +53 -0
  419. package/vendor/desk/mcp/src/runtime/workspace-evidence.js +96 -0
  420. package/vendor/desk/mcp/src/runtime/workspace-tidy.js +509 -0
  421. package/vendor/desk/mcp/src/search/direct-lexical.js +54 -0
  422. package/vendor/desk/mcp/src/search/embedder.js +108 -0
  423. package/vendor/desk/mcp/src/search/engine.js +406 -0
  424. package/vendor/desk/mcp/src/search/files-router.js +22 -0
  425. package/vendor/desk/mcp/src/search/old-index.js +46 -0
  426. package/vendor/desk/mcp/src/search/vectors.js +60 -0
  427. package/vendor/desk/mcp/src/server.js +389 -0
  428. package/vendor/desk/mcp/src/tool-names.js +73 -0
  429. package/vendor/desk/mcp/src/tool-refusal.cjs +35 -0
  430. package/vendor/desk/mcp/src/tool-schema-parts.js +12 -0
  431. package/vendor/desk/mcp/src/tool-schemas.js +325 -0
  432. package/vendor/desk/mcp/src/tools/_card-commit.js +148 -0
  433. package/vendor/desk/mcp/src/tools/archive-links.js +185 -0
  434. package/vendor/desk/mcp/src/tools/archive-move.js +18 -0
  435. package/vendor/desk/mcp/src/tools/archive-native-session.js +728 -0
  436. package/vendor/desk/mcp/src/tools/archive-state.js +513 -0
  437. package/vendor/desk/mcp/src/tools/delivery-gate.js +251 -0
  438. package/vendor/desk/mcp/src/tools/desk-save.js +444 -0
  439. package/vendor/desk/mcp/src/tools/doctor.js +122 -0
  440. package/vendor/desk/mcp/src/tools/done-evidence.js +260 -0
  441. package/vendor/desk/mcp/src/tools/factory-context.js +204 -0
  442. package/vendor/desk/mcp/src/tools/friction.js +332 -0
  443. package/vendor/desk/mcp/src/tools/improvement.js +156 -0
  444. package/vendor/desk/mcp/src/tools/lesson-lines.js +22 -0
  445. package/vendor/desk/mcp/src/tools/lesson-owners.js +137 -0
  446. package/vendor/desk/mcp/src/tools/lesson-team.js +169 -0
  447. package/vendor/desk/mcp/src/tools/lesson.js +254 -0
  448. package/vendor/desk/mcp/src/tools/local-only.js +151 -0
  449. package/vendor/desk/mcp/src/tools/move.js +794 -0
  450. package/vendor/desk/mcp/src/tools/native-stage-context.js +32 -0
  451. package/vendor/desk/mcp/src/tools/note.js +267 -0
  452. package/vendor/desk/mcp/src/tools/search.js +634 -0
  453. package/vendor/desk/mcp/src/tools/shared-write.js +196 -0
  454. package/vendor/desk/mcp/src/tools/sibling-desk.js +37 -0
  455. package/vendor/desk/mcp/src/tools/status.js +233 -0
  456. package/vendor/desk/mcp/src/tools/task-archive-due.js +9 -0
  457. package/vendor/desk/mcp/src/tools/task-archived-resource.js +53 -0
  458. package/vendor/desk/mcp/src/tools/task-body.js +141 -0
  459. package/vendor/desk/mcp/src/tools/task-focus.js +164 -0
  460. package/vendor/desk/mcp/src/tools/task-log.js +76 -0
  461. package/vendor/desk/mcp/src/tools/task-signoff.js +155 -0
  462. package/vendor/desk/mcp/src/tools/task.js +1768 -0
  463. package/vendor/desk/mcp/src/tools/track-row.js +89 -0
  464. package/vendor/desk/mcp/src/tools/track.js +240 -0
  465. package/vendor/desk/mcp/src/util/agency-session.cjs +29 -0
  466. package/vendor/desk/mcp/src/util/archive-links.js +105 -0
  467. package/vendor/desk/mcp/src/util/bash.js +36 -0
  468. package/vendor/desk/mcp/src/util/capture-record.js +73 -0
  469. package/vendor/desk/mcp/src/util/cas-commit.js +252 -0
  470. package/vendor/desk/mcp/src/util/created-dirs.js +71 -0
  471. package/vendor/desk/mcp/src/util/deferred-tools.js +51 -0
  472. package/vendor/desk/mcp/src/util/desk-owner.js +99 -0
  473. package/vendor/desk/mcp/src/util/env-value.js +13 -0
  474. package/vendor/desk/mcp/src/util/file-identity.js +40 -0
  475. package/vendor/desk/mcp/src/util/finish-commit.js +145 -0
  476. package/vendor/desk/mcp/src/util/fm.js +410 -0
  477. package/vendor/desk/mcp/src/util/git-config-file.js +85 -0
  478. package/vendor/desk/mcp/src/util/git-stage.js +440 -0
  479. package/vendor/desk/mcp/src/util/main-publish.js +240 -0
  480. package/vendor/desk/mcp/src/util/markdown-links.cjs +555 -0
  481. package/vendor/desk/mcp/src/util/object-input.js +59 -0
  482. package/vendor/desk/mcp/src/util/paths.js +647 -0
  483. package/vendor/desk/mcp/src/util/rank.js +189 -0
  484. package/vendor/desk/mcp/src/util/redact.js +92 -0
  485. package/vendor/desk/mcp/src/util/remove-retry.js +35 -0
  486. package/vendor/desk/mcp/src/util/rename-retry.js +73 -0
  487. package/vendor/desk/mcp/src/util/route-around.js +265 -0
  488. package/vendor/desk/mcp/src/util/shell-quote.js +18 -0
  489. package/vendor/desk/mcp/src/util/startup-direction.js +124 -0
  490. package/vendor/desk/mcp/src/util/state-ignore.js +33 -0
  491. package/vendor/desk/mcp/src/util/tool-commits.js +64 -0
  492. package/vendor/desk/mcp/src/util/unicode-16/LICENSE-MIT.txt +7 -0
  493. package/vendor/desk/mcp/src/util/unicode-16/README.md +9 -0
  494. package/vendor/desk/mcp/src/util/unicode-16/letter.cjs +1 -0
  495. package/vendor/desk/mcp/src/util/unicode-16/mark.cjs +1 -0
  496. package/vendor/desk/mcp/src/util/unicode-16/number.cjs +1 -0
  497. package/vendor/desk/mcp/web-auth.cjs +1897 -0
  498. package/vendor/desk/mcp/web-browser-discovery.cjs +53 -0
  499. package/vendor/desk/mcp/web-catalog.json +34 -0
  500. package/vendor/desk/mcp/web-launch.cjs +101 -0
  501. package/vendor/desk/mcp/web.cjs +1239 -0
  502. package/vendor/desk/migrations/01-move-to-ourostack-desk.md +188 -0
  503. package/vendor/desk/migrations/02-tidy-desk.md +87 -0
  504. package/vendor/desk/migrations/03-desk-release-channel.md +38 -0
  505. package/vendor/desk/optional/session-label/consumer.mjs +237 -0
  506. package/vendor/desk/optional/session-label/extension.mjs +32 -0
  507. package/vendor/desk/plugin.json +54 -0
  508. package/vendor/desk/settings.json +3 -0
  509. package/vendor/desk/skills/add-workspace-mcp/SKILL.md +180 -0
  510. package/vendor/desk/skills/adopt-inflight-work/SKILL.md +212 -0
  511. package/vendor/desk/skills/archive-workflow/SKILL.md +132 -0
  512. package/vendor/desk/skills/content-routing/SKILL.md +95 -0
  513. package/vendor/desk/skills/core-meeting-capture/SKILL.md +47 -0
  514. package/vendor/desk/skills/core-meeting-capture/references/capture-contract.md +175 -0
  515. package/vendor/desk/skills/curator/SKILL.md +103 -0
  516. package/vendor/desk/skills/delightful-decks/SKILL.md +67 -0
  517. package/vendor/desk/skills/desk-problem/SKILL.md +87 -0
  518. package/vendor/desk/skills/directory-structure/SKILL.md +169 -0
  519. package/vendor/desk/skills/doc-review-rigor/SKILL.md +63 -0
  520. package/vendor/desk/skills/draining-issues/SKILL.md +62 -0
  521. package/vendor/desk/skills/evaluate-release/SKILL.md +96 -0
  522. package/vendor/desk/skills/evidence-discipline/SKILL.md +150 -0
  523. package/vendor/desk/skills/factory-evaluator/SKILL.md +122 -0
  524. package/vendor/desk/skills/factory-task-context/SKILL.md +116 -0
  525. package/vendor/desk/skills/factory-work/SKILL.md +16 -0
  526. package/vendor/desk/skills/fast-honest-ci/SKILL.md +70 -0
  527. package/vendor/desk/skills/fast-honest-ci/examples.md +49 -0
  528. package/vendor/desk/skills/first-run-bootstrap/SKILL.md +95 -0
  529. package/vendor/desk/skills/friction-management/SKILL.md +98 -0
  530. package/vendor/desk/skills/git-hygiene/SKILL.md +253 -0
  531. package/vendor/desk/skills/independent-review/SKILL.md +34 -0
  532. package/vendor/desk/skills/interaction-style/SKILL.md +239 -0
  533. package/vendor/desk/skills/lesson-capture/SKILL.md +85 -0
  534. package/vendor/desk/skills/lesson-capture/agents-md-budget.mjs +61 -0
  535. package/vendor/desk/skills/online-evaluation/SKILL.md +81 -0
  536. package/vendor/desk/skills/operator-voice-comments/LICENSE-humanize +21 -0
  537. package/vendor/desk/skills/operator-voice-comments/SKILL.md +90 -0
  538. package/vendor/desk/skills/operator-voice-comments/human-voice.md +43 -0
  539. package/vendor/desk/skills/peer-pr-review/SKILL.md +104 -0
  540. package/vendor/desk/skills/pr-feedback-on-own-pr/SKILL.md +145 -0
  541. package/vendor/desk/skills/pr-review-interrogation/SKILL.md +121 -0
  542. package/vendor/desk/skills/pr-reviewer-audit/SKILL.md +68 -0
  543. package/vendor/desk/skills/pr-reviewer-audit/helpers/audit.py +335 -0
  544. package/vendor/desk/skills/pr-reviewer-audit/helpers/test_audit.py +486 -0
  545. package/vendor/desk/skills/pr-self-review/SKILL.md +86 -0
  546. package/vendor/desk/skills/pr-surface-hygiene/SKILL.md +105 -0
  547. package/vendor/desk/skills/pr-surface-hygiene/check-visual-proof.cjs +99 -0
  548. package/vendor/desk/skills/pr-surface-hygiene/repository-setup.md +19 -0
  549. package/vendor/desk/skills/pr-surface-hygiene/resources/pr-visual-proof.yml +29 -0
  550. package/vendor/desk/skills/pr-surface-hygiene/resources/pull-request-template.md +5 -0
  551. package/vendor/desk/skills/preflight-actions/SKILL.md +60 -0
  552. package/vendor/desk/skills/preview-feedback/SKILL.md +70 -0
  553. package/vendor/desk/skills/repo-handling/SKILL.md +67 -0
  554. package/vendor/desk/skills/rnd-lab/SKILL.md +52 -0
  555. package/vendor/desk/skills/runtime-symptom-investigation/SKILL.md +106 -0
  556. package/vendor/desk/skills/session-resumption/SKILL.md +126 -0
  557. package/vendor/desk/skills/session-start/SKILL.md +54 -0
  558. package/vendor/desk/skills/session-start/details.md +150 -0
  559. package/vendor/desk/skills/session-start-migrations/README.md +71 -0
  560. package/vendor/desk/skills/session-start-migrations/SKILL.md +108 -0
  561. package/vendor/desk/skills/start-task/SKILL.md +88 -0
  562. package/vendor/desk/skills/task-card-format/SKILL.md +198 -0
  563. package/vendor/desk/skills/task-lifecycle/SKILL.md +217 -0
  564. package/vendor/desk/skills/track-card-format/SKILL.md +90 -0
  565. package/vendor/desk/skills/using-desk/SKILL.md +58 -0
  566. package/vendor/desk/skills/using-superpowers-with-desk/SKILL.md +156 -0
  567. package/vendor/desk/skills/work-orchestration/SKILL.md +162 -0
@@ -0,0 +1,206 @@
1
+ <!-- canonical-agentic-engineering-v2-rfc -->
2
+ # Agentic Engineering Epoch 2
3
+
4
+ > **History.** The current RFC is [Agentic Engineering Epoch 3](agentic-engineering-v3-rfc.md), with the epoch-to-version map. This document describes the Epoch 2 design and the machinery it built.
5
+
6
+ Agentic Engineering Epoch 2 is a way of working in which humans hand agents whole engineering outcomes and agents carry them to an accepted result: planned together, executed autonomously, verified at the level of the claim, remembered across sessions, and measured so the work itself can be designed. This document is the reason the pieces exist and the contract they keep. It is written for the people who adopt Epoch 2 and, just as much, for the agents who do the work.
7
+
8
+ **How to read it:** with your agent. Start a session and ask it to walk you through this RFC and how it applies to what you're doing. The agents are the ones doing the work, and the agent living inside a system often sees what is broken better than we do ([The work spoke back](https://ouroboros.bot/blog/designing-with-your-agent/)), so its reading matters as much as yours. Agents load short foundations at the start of every session, one per layer; this document is the longer “why” behind them, read when someone wants the conversation, not on every boot.
9
+
10
+ **Agent, if you are reading this with someone:** relate each section to the work in front of you rather than explaining it in general. Say plainly where the way you two work matches a pattern in section 2, and where Epoch 2 itself looks wrong or confusing; that feedback is how Epoch 2 improves.
11
+
12
+ **Contract and status.** Sections 1 to 8 describe how Epoch 2 works when it is complete. Section 9 says what runs today; nothing in sections 1 to 8 should be described as working if section 9 lists it as being built. Epoch 2 lives at https://github.com/ourostack/desk, and its channel is that repository's `main` branch.
13
+
14
+ **Where things stand today, before you read the design.** As of 28 September 2026, Epoch 2 is stable (Desk 3.2.0 and later) and an outside engineer can evaluate it end to end. Install, the startup foundations, channel-based updates, the public factory store and its [public site](https://ourostack.github.io/factory/) all run today. The kaizen loop, andon alarms and cross-job rollups are merged but not yet proven live end to end, and a self-review of the factory's own data caught and fixed two data-quality problems in it (details in section 9). A handful of gaps are still open, including draining recorded friction into kaizen cards and a separate factory store for work done under a company overlay. Section 9 is the complete, current account; treat nothing elsewhere in this document as already working where section 9 says otherwise.
15
+
16
+ **See it.** The public factory site is built live from the store: https://ourostack.github.io/factory/.
17
+
18
+ [![The public factory site: the three longest agent sessions in the store, with their merged pull requests](images/factory-site.png)](https://ourostack.github.io/factory/)
19
+
20
+ ## Direction: Epoch 3 (agreed 2026-11-10)
21
+
22
+ Epoch 2 grew heavy. Desk is evolving toward Epoch 3 on `main`, one small merged change at a time; there is no separate Epoch 3 to switch to. Where a section below conflicts with these principles, the principles show where Desk is heading, and section 9 still says what runs today.
23
+
24
+ 1. **Many people and many agents.** Desk serves individuals, groups working together on Crew, and agents; agents are users too.
25
+ 2. **One contract, two signals.** A conversation settles intent and a measurable definition of done. After release, the agent works in silence except "ready for you" and "done". An agent that needs a human mid-task points to a gap in the conversation, not in the execution.
26
+ 3. **Proof at the altitude of the claim.** Screenshots of primary sources, not generated graphics. How it was done is available on request, never required.
27
+ 4. **Two boundaries.** Nothing irreversibly destructive, and no contacting other people without approval. Within them, agents decide from intent.
28
+ 5. **Rich context, justified overhead.** Give agents enough context. Every always-on instruction, hook, rule and guardrail earns its place by measurement, or goes; restrictions that bind an agent's hands are usually overhead.
29
+ 6. **Restraint.** The best code is the code never written, and deleting most of our tooling counts as a win.
30
+ 7. **Trunk-based.** Ship the smallest verifiable increment to `main`. In desk and workspace repositories everything is on `main`, and worktrees and pull requests exist only for parallel work and synchronisation. Product repositories keep their own gates; where a repository allows merging without further sign-off, merge. No milestones and no undo machinery.
31
+ 8. **Homes come from meaning, not rules.** Say clearly what each kind of thing is, and let people and agents choose where it lives. Most tasks are a folder with only a `task.md`.
32
+ 9. **Always-on context is small and says what system this is,** and where its reasons live: this document.
33
+
34
+ ## 1. Why Epoch 2 exists
35
+
36
+ An agent can produce plausible local progress while still failing the actual job. It starts from the wrong source, splits one outcome across competing records, stops at a command that printed success, delegates without a bounded return, or treats a passing proxy as proof that an installed or rendered result works. Humans compensate by supervising: narrating steps, re-briefing every session, carrying context between tools, reading every line of every diff. The agent becomes a typewriter that needs supervising, and the human becomes the bottleneck twice over.
37
+
38
+ We think about the path out in three acts:
39
+
40
+ 1. **Capability:** can an agent do real work on a computer? This is now solved enough.
41
+ 2. **Orientation:** can an agent stay coherent across time, people and sessions: who it works for, what it's working on, what it promised, what it's allowed to do? Orientation is not a memory feature; it is a stance the substrate takes. This is the lens of Agent Experience: designing the system from the perspective of the agent that has to inhabit it. When staying oriented is expensive for the agent, the human becomes its recovery loop; when it is cheap, the collaboration keeps momentum ([What is Agent Experience?](https://ouroboros.bot/blog/what-is-agent-experience/)).
42
+ 3. **Designed, measurable agentic labor:** once an agent stays oriented, the work itself becomes designable, the way industrial engineering designs systems around the worker instead of making the worker absorb the friction. We can see where effort is wasted, where attention should flow and what the atomic units of agent labor are, and we can measure whether a change helped. This is the factory in “software factory”, taken seriously.
43
+
44
+ That progression rests on a two-step claim. First, given durable context and a real engineering lifecycle, an agent can carry a long-horizon engineering task to a high-quality, merged result. Most people have not yet found a way to delegate work that runs for hours or days, so this has to be shown rather than asserted, and the [public factory site](https://ourostack.github.io/factory/) shows it with real sessions: as of this writing, the longest ran 69 hours in one session, with 50 of the 53 pull requests it referenced merged. Second, once that holds, the next problem is industrial-engineering-style work design: understanding what an agent actually does across a stretch that long, and whether the system around it can be improved. That is what the factory measures (section 4).
45
+
46
+ Epoch 1 of this system was built for weaker models and accumulated workflow machinery to compensate. Epoch 2 re-bases on current models: it keeps what nobody else provides (durable work state, authority and attribution), takes the engineering method from a maintained open-source provider, [Superpowers](https://github.com/obra/superpowers), instead of owning one, and adds a permanent way to answer the question every adopter eventually gets asked: *how much is this actually helping?*
47
+
48
+ Epoch 2 is an opt-in, measurable and replaceable experiment on the agent hosts people already use, not a claim that everyone should adopt one team's way of working. Epoch 2 applies keep-it-simple, build-only-what-is-needed and don't-repeat-yourself to itself: no mechanism without a real user, each rule stated in one place, and anything a shared runtime or a better provider replaces gets deleted. Its components earn their place by evidence.
49
+
50
+ ## 2. Working together: the human and the agent
51
+
52
+ People own the work they authorize, so ordinary accounts of that work name the person as the actor; agent use is normally implicit, like computer use. Plain Language's [Attribute work to the person](../../plain-language/skills/plain-language/SKILL.md#attribute-work-to-the-person) keeps that ownership visible without claiming manual execution or hiding an acting account when it matters.
53
+
54
+ **Delegate outcomes, not steps.** The human supplies the intent, the material constraints, the authority and the desired endpoint. The agent owns everything else: sequencing, tool choice, decomposition, implementation, verification, recovery and cleanup, inside that authority. Beyond that, the human brings judgment: noticing that the question is misframed, deciding what matters, making the calls only a person can make. We don't do for the agent what it can do for itself, and the agent never hands the human a step it could do itself. A genuine human gate is one only a person can pass, such as a sign-in on their own device or a decision that is theirs to make.
55
+
56
+ **The planning is collaborative; the doing is delegated** ([Stop Being the Glue](https://ouroboros.bot/blog/stop-being-the-glue/)). New work starts with a real conversation in which the agent states its assumptions instead of acting on them, and helps the human put words to what they want: the outcome, why it matters, and what done looks like. The agent pulls every question that will need human judgment forward into this conversation, and the conversation ends with an explicit go. It is proportionate to the work: a clear, bounded request needs one confirming sentence, not a meeting, and bounded help stays bounded. A one-shot prompt that jumps straight into substantial work is a warning sign.
57
+
58
+ **After go, the agent owns the sequence to done.** It does not hand control back while tractable work remains, and it does not ask the human to steer work already delegated. It returns only for a genuine judgment call, missing authority, or because the human asked to talk. An agent that needs constant correction is an agent missing context; the correction is a bug report about the substrate, and the fix is to record that context durably so the next session doesn't need it.
59
+
60
+ **Agents coach the collaboration.** Most people don't know where to start or what they are doing wrong, and agents naturally go with the flow. So agents are expected to recognize the common failure patterns and say, once and plainly, “let's step back and reset how we're working”, with a concrete proposal:
61
+
62
+ - steps handed over one at a time instead of an outcome;
63
+ - micromanagement, or hovering over work in progress;
64
+ - a one-shot request with no alignment conversation;
65
+ - the human acting as glue: relaying output between tools or agents, or asking how and then doing it themselves;
66
+ - the work pulled back mid-flight: the human takes over a step the agent was handling, or the agent hands control back while tractable work remains;
67
+ - the same correction arriving again and again, or the human restating identity, restitching context and rebuilding the work after every interruption, which is an Agent Experience problem, not a memory problem;
68
+ - an ask too broad to assess, which the agent shapes into a clear outcome through conversation rather than shrinking. Ambitious delegation is welcome; over-reaching is how both sides find where the limits are.
69
+
70
+ Coaching happens once, stays short and actionable, and never becomes a recurring gate. Communication and trust are the two halves of delegation: trust without communication is “go figure it out”, and communication without trust is a micromanaged checklist. Before sending a request, read it from the agent's seat.
71
+
72
+ **Confidence without reading code.** Humans read every line of a change today because nothing else gives them confidence. Epoch 2 aims for evidence good enough that a human ideally never needs to: verification at the altitude of the claim, visual proof, receipts, and a measured account of how the work went.
73
+
74
+ ## 3. Layers and ownership
75
+
76
+ Each layer has one job. Layers depend downward and never redefine one another.
77
+
78
+ | Layer | Owns |
79
+ | --- | --- |
80
+ | Host runtime | Launching agents, sessions, tools, and acquiring the selected plugins from their channels |
81
+ | Desk (and Crew, which turns one Git repository into a shared workspace for a team) | Durable work identity, continuity across sessions and machines, authority and attribution, the working relationship, browser access, the factory's evidence |
82
+ | Superpowers | The engineering method: brainstorming, planning, test-first implementation, verification and code review |
83
+ | Plain Language | How agents write for people |
84
+ | Consumer overlays | Identity, organization policy and environment-specific tools, added on top without copying anything below |
85
+ | Repository policy | Contribution authority, build and test gates, delivery and cleanup for the product being changed |
86
+
87
+ Desk does not become a second engineering method; Superpowers does not become a second task store; an overlay does not copy the foundation beneath it. Access to a repository does not create authority to change it.
88
+
89
+ **Startup is layered the same way.** Every layer that has something always-on ships its own short foundation and injects it once at session start, in stack order: `using-superpowers`, then the Plain Language contract, then `using-desk`, then each overlay's foundation. Section 9 says which hosts do this today. The Desk foundation gives the agent this document's installed path, so the agent can open it from any repository. The agent body on top carries identity and context only. An invariant lives in exactly one layer; a layer states only what it adds. Startup stays light, because a session usually starts to do work, not to reconsider its philosophy: the foundations say how humans and agents work together, and point here for why. When an agent finds instructions that are confusing, redundant or in conflict, it says so instead of being silently confused, and records the friction so it gets fixed.
90
+
91
+ **Durable context lives in the desk.** Instructions, preferences, task state and memory live in each person's desk, a Git repository, so they follow the person across machines and hosts. A desk holds tracks (areas of work, each with a `track.md`) and tasks (each with a `task.md` card that records the outcome, the go, the endpoint and progress), plus the friction and lessons that become fixes. A host's own configuration folder is only a thin pointer to the desk. Each repository holds one kind of thing: plugin repositories hold code, desks hold durable state, and factory stores hold measurement data. Work never carries AI attribution: no co-author trailers, no “generated with” lines.
92
+
93
+ **Every agent gets a browser.** Browser access is base level, because almost all real work touches the web. Desk selects a browser context from the contexts the workspace declares, matches on declared claims, and fails closed when none fits. Overlays add environment-specific browser providers, and no operator-specific paths live in plugin source.
94
+
95
+ ### 3.1 Effortless browser contract
96
+
97
+ **Simplified October 25, 2026.** Installing the plugin is the only setup step. `desk-web` offers two browsers through `browser_context`: `fresh`, an empty throwaway profile that is never signed in, and `mine`, a private copy of the person's own Edge (or Chrome) profile so their sign-ins work. Both run headless as their own browser processes with their own user-data folder in a private temp folder, which is deleted on close, and `browser_command` drives them through the Playwright CLI inside `playwright-core`. Desk never focuses a window, attaches to or closes the person's running browser, changes their default browser or profiles, or uses a debugging port. The extension, native messaging helpers, managed profiles and the browser-context broker were removed; [the browser roadmap](../../../docs/roadmap/browser.md) lists what each one would have solved.
98
+
99
+ ## 4. The factory: measuring and designing the work
100
+
101
+ A factory is only a factory if it measures and designs the work. Sharing a place to work is orientation; designing it is the third act.
102
+
103
+ This section is the contract for how Epoch 2 measures work and the public method it grades by. The pipeline that runs it is being built; section 9 says how far.
104
+
105
+ **The unit of flow is the whole accepted job:** one outcome from intent to accepted result, including every session, machine, subagent, review round and retry it took. Output that is never accepted is inventory, scrap or rework, not progress. A job is one outcome; the desk records it as one durable task (section 5).
106
+
107
+ **Every stretch of work is value-adding, necessary support, or waste.** Value-adding work moves the accepted outcome forward in a way the requester would recognize. Necessary support is required by authority, safety, verification or policy, and adds no value the requester sees but cannot be skipped. Waste is neither. Where the evidence cannot tell, the stretch is unavailable. The waste types are the eight classic Lean wastes, translated for agent work: rework, overproduction, waiting, unused capability, handoffs, work in progress, context switching and overprocessing. The evaluator records unevenness in the flow and overburden where they explain waste. (Lean calls these three muda, mura and muri; Epoch 2's reports use the plain words.) Waste is never an action count or a stopwatch: optimizing those proxies rewards skipped proof and hidden rework. Necessary exploration and verification are not waste.
108
+
109
+ **Quality, flow and cost stay separate,** with quality floors checked first and no composite score. Flow is measured with established work-measurement statistics: lead time (start to acceptance), active time (time actually worked), waits (time blocked on someone or something else), work in progress (how many jobs are open at once), rework (work redone after it was thought finished), first-pass yield (the share accepted with no rework) and flow efficiency (active time as a share of lead time).
110
+
111
+ **Measure the system, never the people.** The subject is one accountable agent doing one job, including the work it delegated. Human replies and approvals are inputs and waits, not something to rank. There are no leaderboards, no cohorts and no study bureaucracy.
112
+
113
+ **Evidence is source-native.** Facts come from what the job already produces: session event logs, Git history, pull requests and CI, never from asking the working agent to keep a second ledger. The agent doing the work never grades itself; an independent evaluator classifies the work from the evidence and cites it. Anything that could not be observed is reported as unavailable, never as zero.
114
+
115
+ **Every finished job answers four questions:** what happened, what mattered, what was waste, and what we could not see.
116
+
117
+ **How the data flows.** When a session ends, its host hook derives facts for the work it touched: timings, tool use, waits, failures, retries, usage, model versions, plugin versions, and references to commits and reviews. The facts never include transcript text, prompts or file contents. Facts from every machine arrive as pull requests to the factory store for their trust boundary: personal use goes to the public store, [`ourostack/factory`](https://github.com/ourostack/factory), and an organization's work goes to its own store. There, CI enforces the privacy schema, normalizes the facts, rebuilds each job's timeline with the formulas above, regenerates its report, and merges. Contribution is opt-in and asked once at setup. Published facts carry no identity and no content: no transcript text, prompt, reply or tool name. They hold codes, counts and size classes; random session IDs; job IDs, replaced for a public desk by a keyed hash (HMAC) under a secret that stays on the machine; and references to public work: public repository names, pull request numbers, commit SHAs, model IDs, and the names and versions of plugins installed from a public repository ([publishing transform](../mcp/src/factory/publish.js)). They carry one date per task, the UTC day it finished, and otherwise only times on each task's own clock: durations and offsets from the task card's creation, including each operator prompt and each pull request the session named, with whether the session created it, never a clock time. Because a pull request's creation time is public on GitHub, the store can place merge times on that clock too. A desk whose remote is public publishes no finish day and no task clock. A public store names only plugins installed from a public repository, such as the `ourostack` marketplace; every other plugin, including one whose source is unknown, appears only in a count of private plugins. An organization's own store keeps every plugin's name and version. Sessions that touch no task count as unattributed, not as missing work. The public store's data is visualized at https://ourostack.github.io/factory/, rebuilt after every store build.
118
+
119
+ **The rubric is public.** The grading method is this section and the evaluator's rubric ([factory-evaluator](../skills/factory-evaluator/SKILL.md)), both public and open to review, and every label names the rubric version that produced it. We hold our agent system to the kind of review we would give a colleague's work, and “we could not tell” is an acceptable answer.
120
+
121
+ **The loop closes.** Each job's waste feeds lesson capture, and friction about the shared system (Desk, its skills and tools, the factory) becomes a kaizen card: an issue in the desk's factory store that names the measure it should move, the direction, the countermeasure's pull request and, once it ships, the first version that carries it. (Kaizen is Lean's word for a small, continuous improvement.) A card in a public store carries structured fields only, never the desk's free text, and the kaizen worker — the role that turns a confirmed finding into a shipped fix, assigned to an agent rather than a person — opens it as an improvement card by itself, with no signoff, and the loop's mirror step files it. Every fact carries the versions that produced it, so on every build the store compares the card's measure between the jobs before and after that version, with the change in median and its 95% bootstrap interval. Jobs that share a session count as one independent group, and each side needs at least 6 groups: that is the fewest groups a method needs to compute a 95% confidence range for a median without assuming what shape the data follows; the minimum is computed from the confidence level, not a hand-picked number. The card is marked confirmed or not confirmed only when the whole interval lies on one side of zero; otherwise it shows “not enough independent jobs yet” or “no clear change so far” and keeps gathering data. The kaizen worker ships each card's countermeasure through the normal pull request flow, closes confirmed cards, and reverts or re-plans not-confirmed ones ([local capture](factory-local-capture.md), “The kaizen check”).
122
+
123
+ **Andon stops the line.** On every build the store also compares, for each plugin its maintainers list in the store's `factory.json`, the latest version with enough independent jobs against the one before it on the quality measures (tool failures, retries, rework and defect time), with the same 6-group minimum. When a version makes one clearly worse, the build opens an andon issue that names every plugin that changed in the same version set, and closes it itself once a later version recovers. A reviewer who judges an alarm false labels it `andon-dismissed`; the build then never reopens or closes it, but still posts new numbers. Each session start lists a contributing store's open andon issues in one line, and the kaizen worker handles them before any other card. Quality comes first: no flow gain can offset a quality regression.
124
+
125
+ **Waste judgment is every agent's job.** Before and during work, the agent asks whether each step adds justifiable, necessary, non-duplicative value; folds ad-hoc steps into the plan; parallelizes independent work and batches or resequences to avoid waiting; and redesigns the work when the same failure comes back instead of patching it again. The human never needs to know the vocabulary. “No waste” never means dropping proof.
126
+
127
+ ## 5. Work, source and continuity
128
+
129
+ **One durable task per outcome.** A task is how the desk records one job, the factory's unit of flow. It carries the work through changed requirements, corrections, review findings, verification and cleanup. A material requirement that arrives mid-work updates the same task and invalidates only the evidence it affects; it does not become a side quest or a silent restart. A replacement session reconciles the same task, source, authority and uncertain side effects before it writes.
130
+
131
+ **Channels, never commits.** A channel is the branch consumers track; Epoch 2's channel is `main` of its repository. Everything tracks a channel: plugin dependencies, installs, setup links, docs, tests, fixtures, evaluations, review packets, handoffs and a task's recorded source. Dependency constraints are version ranges, never exact versions. A pinned commit silently freezes everyone downstream and keeps fixes from reaching them. There is no frozen candidate: reviewers and outside evaluators work on the channel as it is when they run, and record the commit they saw as evidence. A commit hash appears only as that kind of evidence. A note or handoff that says to freeze or pin something is wrong; correct it. Desks and shared workspace state live on their repository's default branch.
132
+
133
+ Upstream providers such as Superpowers are vendored from their own default branch and refreshed as it moves; the record of which upstream commit a copy came from is evidence, not a pin.
134
+
135
+ **Every task owns its resources** from creation: branches, worktrees, processes, browser sessions, artifacts. Completion means the outcome is delivered and every resource is removed, handed to a named owner, or deliberately kept with a reason.
136
+
137
+ ## 6. Verification, visual proof and review
138
+
139
+ **Verify at the altitude of the claim.** A source test cannot prove an installed workflow; a terminal success line cannot prove a rendered result; an opened pull request cannot prove merged state. When a milestone claims an installed, rendered, merged, deployed or resumed result, the evidence shows that real state.
140
+
141
+ **Visual proof at every stage where it helps**, not only at the end: pull requests opened and merged, before and after states, rollout state, rendered artifacts, working logs. It supplements tests, logs and system-of-record readback; it never replaces them. It never exposes secrets, and nonvisual work gets no artificial screenshots.
142
+
143
+ **Review** goes through Superpowers' code review (`superpowers:requesting-code-review`). It reviews the current candidate and its evidence, records how each finding was handled, keeps one owner for corrections, and re-reviews only what a correction touched.
144
+
145
+ **Delivery policy is known up front** from the repository and the work, not chosen after implementation. When the recorded gates pass, the agent delivers and cleans up.
146
+
147
+ ## 7. Getting Epoch 2 and staying current
148
+
149
+ **On Claude Code,** give your agent the link https://github.com/ourostack/desk/blob/main/SETUP.md and say “set this up.” It installs Desk, Superpowers and Plain Language, sets the host defaults, turns the host's configuration folder into a thin pointer, and finds your existing desk or creates a fresh one.
150
+
151
+ **On a managed launcher** that installs plugins from repository branches (for example the GitHub Copilot CLI through a company launcher), install the top-most plugin you use; its dependencies bring the rest of the stack from their channels. Some launchers refresh only the plugin you name, not its dependencies; if yours does, install the Desk plugins explicitly with the same refresh policy so their updates arrive right away.
152
+
153
+ **Updates reach everyone.** Claude Code updates a plugin when its version string changes; a launcher that installs from branches updates when the branch's contents change. Epoch 2 serves both: every plugin change ships on its channel as a new version, and CI enforces it. Desk takes its new version on `main` after the merge, from the changelog fragment the pull request adds, so parallel pull requests do not conflict.
154
+
155
+ **Your first job.** After setup, start a session and describe the outcome you want and why, not the steps. Your agent talks it through with you, records it as a task in your desk, and asks for go. After go, leave it to work: it comes back for a real decision, for authority it lacks, or with the result and its evidence. If you catch yourself relaying output, re-explaining context or narrating steps, expect your agent to suggest a reset, and take it.
156
+
157
+ **Epoch 2 replaces Epoch 1; it never runs alongside it.** Epoch 2 is opt-in: you get it by installing from this repository. Promotion moves Epoch 1 users over; there is no parallel installation and no separate rollback package, because Git already holds the history. Existing early users who installed from the earlier repository move to this one automatically. Epoch 1's plugins in `ourostack/ouroboros-skills` keep working until promotion and retire with it.
158
+
159
+ ## 8. Limits
160
+
161
+ Epoch 2 grants no repository, publication, destructive or rollout authority beyond what the human gave. Hosts differ in background, visual, review and recovery capabilities, and Epoch 2 does not promise every host supports every one. Desk supports Claude Code and Copilot CLI; it ships nothing for Codex. Structural tests are not a substitute for installed behavior or editorial judgment. One successful job is not proof of a productivity improvement; the factory exists so that claims like that can be made honestly, or honestly withheld.
162
+
163
+ Public, generic policy lives here and in the layer foundations. Environment-specific rules belong in consumer overlays, product behavior in the product's repository, and each operator's preferences in their own desk.
164
+
165
+ ## 9. Status
166
+
167
+ **As of 28 September 2026: ready for evaluation. Desk 3.2.0 and later are stable.** An engineer outside the team can now evaluate Epoch 2 with the [evaluation packet](evaluation-packet.md) ([#28](https://github.com/ourostack/desk/pull/28)). This section says what works today, what is built but not yet proven live end to end, and what is still open.
168
+
169
+ **Browser status updated October 14, 2026.** The browser entries below distinguish the carried alpha.322 direct-stock change from the [undelivered effortless-browser target](#31-effortless-browser-contract). Other status entries retain their September evidence; this bounded update does not re-certify fresh setup, host composition, recovery, organization or the work factory store. The [packet](evaluation-packet.md#how-the-evaluation-works) starts those cold-run gates unrun, and evaluation and promotion remain human decisions.
170
+
171
+ **Works today.**
172
+
173
+ - **Install from the channel.** Desk, Crew, Superpowers and Plain Language live in https://github.com/ourostack/desk, and Epoch 2 installs from its `main` branch on Claude Code ([setup](../../../SETUP.md)) and through a managed launcher with a company overlay ([#1](https://github.com/ourostack/desk/pull/1)). Alpha users who installed from the earlier repository move here automatically ([#3](https://github.com/ourostack/desk/pull/3)). Every plugin change bumps its version, and CI enforces it ([release check](../../../scripts/check-release-integrity.cjs)).
174
+ - **Startup foundations.** On both kinds of host, each layer's foundation loads exactly once at startup (Superpowers, Plain Language, Desk and the overlay's own), and the agent body carries identity only ([#4](https://github.com/ourostack/desk/pull/4), [#5](https://github.com/ourostack/desk/pull/5), [#7](https://github.com/ourostack/desk/pull/7)).
175
+ - **The RFC pointer.** The Desk foundation gives the agent this document's installed path, so an agent can open it from any repository ([#5](https://github.com/ourostack/desk/pull/5)). The repository root keeps a short [pointer](../../../AGENTIC-ENGINEERING-V2.md) to it.
176
+ - **Channels, never commits.** Plugin dependencies track `main`, never an exact commit, and CI enforces it ([#1](https://github.com/ourostack/desk/pull/1), [dependency check](../../../scripts/check-dependency-channels.cjs)). The docs and skills say there is no frozen candidate ([#8](https://github.com/ourostack/desk/pull/8)).
177
+ - **Always-on Desk.** The Desk server answers the host's handshake before any other work and never exits before it ([#14](https://github.com/ourostack/desk/pull/14), [#19](https://github.com/ourostack/desk/pull/19)). Hundreds of live launches have shown no handshake failure. The part of the live check that also requires a successful `desk_status` has not passed yet.
178
+ - **The public factory store.** [`ourostack/factory`](https://github.com/ourostack/factory) is live. Using the store pipeline ([#27](https://github.com/ourostack/desk/pull/27)), its intake validated and merged a synthetic facts file and built its report ([factory#8](https://github.com/ourostack/factory/pull/8)), and rejected a file that carried a date ([factory#3](https://github.com/ourostack/factory/pull/3)).
179
+ - **The public factory site.** A GitHub Pages site, https://ourostack.github.io/factory/, reads the public store live and renders it as the proof of long-horizon work, the work-design charts and the plain-language account section 4 promises; the store's build workflow rebuilds and redeploys it after every build, or on demand ([factory#92](https://github.com/ourostack/factory/pull/92)).
180
+ - **Delivery from an installed Desk, end to end.** On Desk 3.2.0-alpha.107, a fresh Claude Code session start delivered this machine's outbox as one intake pull request ([factory#55](https://github.com/ourostack/factory/pull/55)). The store validated it, merged it and rebuilt its reports, and every job's report has its four sections: what happened, what mattered, what was waste and what we could not see. The next session start delivered the first session's own facts as a new file — the intake pull requests are the evidence for the delivery itself ([factory#56](https://github.com/ourostack/factory/pull/56), [factory#58](https://github.com/ourostack/factory/pull/58)), and the Desk-side changes that produced them are the evidence for the mechanism ([#36](https://github.com/ourostack/desk/pull/36), [#44](https://github.com/ourostack/desk/pull/44)).
181
+ - **Private plugin names stay private.** A public store receives a plugin's name only when the plugin was installed from a public repository; the rest are counted as `refs.private.plugins` ([#63](https://github.com/ourostack/desk/pull/63)). The store refuses a new or changed facts file that lacks that count or names a plugin outside its public list, so an older Desk cannot put private names back ([factory#48](https://github.com/ourostack/factory/pull/48), [factory#57](https://github.com/ourostack/factory/pull/57)). The first delivery from the new Desk re-published every earlier file that way, and a scan of the store's current tree finds no private plugin name. Earlier commits in the store's history still hold the names; the history is not rewritten.
182
+ - **Session-end capture.** On Claude Code and Copilot CLI, the end of a session records its facts locally, outside any desk ([#26](https://github.com/ourostack/desk/pull/26), [local capture](factory-local-capture.md)). Contribution is opt-in ([#22](https://github.com/ourostack/desk/pull/22)), and the transform that produces published facts removes identity and time of day ([#18](https://github.com/ourostack/desk/pull/18)).
183
+ - **Job attribution, fixed going forward.** We reviewed the store's own job count the way we'd review a colleague's work, and found most of it was noise: 60 of the store's 73 job attributions came from one bulk tidy of task cards and its later revert, both housekeeping edits with no engineering behind them. Fixed in [#75](https://github.com/ourostack/desk/pull/75): a commit whose only change to a task's folder is a housekeeping edit to its `task.md` card — a rename, a move, or a change to only its `title`, `track` or `updated` field — no longer binds a job; a commit that touches the card's `status` or body still does. The housekeeping judge is now wider still: a tidy that only reformats a card's frontmatter byte-for-byte — a date gaining a redundant timestamp, a long field folded onto its own line — counts as housekeeping too, and the tidy tools themselves now patch only the field they mean to change instead of rewriting the whole card, which is what made those byte-level reformats happen in the first place ([#85](https://github.com/ourostack/desk/pull/85)). Separately, a long-running session could keep binding jobs under an older release's since-fixed logic even after it reported a newer plugin version; a deriver now holds instead of republishing under superseded logic once the Desk it is actually running predates the version its own session already declared ([#87](https://github.com/ourostack/desk/pull/87)). Correcting the store's existing attributions is in progress, not finished: two later store pull requests have since removed 72 polluted job entries across four sessions ([factory#87](https://github.com/ourostack/factory/pull/87), [factory#91](https://github.com/ourostack/factory/pull/91)), but the store's history is not rewritten.
184
+ - **Job identity survives a rename or move, fixed going forward.** A job's identity was derived from a task's current track and task path, so renaming or moving either started a new, disconnected job instead of continuing the old one. Fixed in [#81](https://github.com/ourostack/desk/pull/81): a job's identity is now the task's birth path — the track/slug its card, `task.md`, was first added at — found by following the card's own Git rename history, so a track rename, a task move or an archive move keeps the same job instead of splitting it. The fix stops new splits; a job that already split under the old scheme, before this fix, is not merged back together.
185
+ - **Waste labels.** The store gates waste labels as a second data path beside facts ([#34](https://github.com/ourostack/desk/pull/34)). An independent evaluator labeled a real job's waste ([#41](https://github.com/ourostack/desk/pull/41)), and those labels reached the store with its facts ([factory#55](https://github.com/ourostack/factory/pull/55)). That first labeling was a single manual run: nothing queued it automatically, so every other finished job went unlabeled. Fixed in [#78](https://github.com/ourostack/desk/pull/78): a task now queues its own evaluation request the moment it reaches a terminal status, `done` or `cancelled` alike, since a cancelled job is still a finished job whose waste is worth seeing.
186
+ - **No manual ledger.** The factory replaced the manual work-measurement ledger, which is retired: no tool, skill or instruction asks anyone to record work by hand. Records it left on a machine stay there, and `desk_doctor` counts them without reading or deleting them ([#52](https://github.com/ourostack/desk/pull/52)).
187
+ - **Browser access by default (section 3).** Desk declares `desk-web` on Claude Code and Copilot CLI. It opens a `fresh` signed-out browser or `mine`, a private copy of the person's own profile, both headless and in the background (section 3.1).
188
+ - **Superpowers follows upstream.** A weekly workflow refreshes the vendored Superpowers and releases it ([#32](https://github.com/ourostack/desk/pull/32)). Its first live run failed while filing its fallback issue, and the fix merged ([#40](https://github.com/ourostack/desk/pull/40)). The next run refreshed the copy and pushed it, but hit a repository setting that blocked GitHub Actions from opening pull requests here. The Actions permission that blocked PR creation was corrected, and the following run opened and merged its own pull request ([#46](https://github.com/ourostack/desk/pull/46)), closing the tracking issue ([#38](https://github.com/ourostack/desk/issues/38)).
189
+
190
+ **Built, not yet live end to end.**
191
+
192
+ **Current kaizen closure authority, October 11, 2026.** The September card closures below are historical, not standing permission to close a shipped card by hand. The [current curator](../skills/curator/SKILL.md#the-improvement-card-routine) leaves verification and closure to the loop; thin data never confirms a card. Evaluate the loop's [documented closure conditions](factory-local-capture.md#how-a-card-closes), distinguishing `closed_unverified` from a confirmed statistical verdict.
193
+
194
+ - **Desk organization.** The naming and layout rules and the one-time tidy are merged ([#20](https://github.com/ourostack/desk/pull/20), [#21](https://github.com/ourostack/desk/pull/21), [#25](https://github.com/ourostack/desk/pull/25)). The tidy is not yet proven on real desks, and a fix for tidying single-owner hub desks has merged ([#37](https://github.com/ourostack/desk/pull/37)).
195
+ - **The kaizen loop and andon.** The store's build checking kaizen cards and raising andon issues is merged ([#53](https://github.com/ourostack/desk/pull/53), [factory#40](https://github.com/ourostack/factory/pull/40)). The first live card, [factory#39](https://github.com/ourostack/factory/issues/39), targets tool failures; its countermeasure ([#49](https://github.com/ourostack/desk/pull/49)) stops the checkout guard from failing closed on long shell loops and shipped in Desk 3.2.0-alpha.98. The store's first build after the merge checked the card and reported “not enough independent jobs yet” ([check](https://github.com/ourostack/factory/issues/39#issuecomment-5860353764)). That verdict cannot change once the whole fleet has moved past the version a fix shipped in: the “before” side of the comparison needs jobs older than that release, and it can never gain another one. All six kaizen cards filed to date ran into exactly that: [factory#39](https://github.com/ourostack/factory/issues/39), [factory#51](https://github.com/ourostack/factory/issues/51), [factory#52](https://github.com/ourostack/factory/issues/52), [factory#53](https://github.com/ourostack/factory/issues/53) and [factory#54](https://github.com/ourostack/factory/issues/54) each still read zero pre-fix job groups when closed, and [factory#50](https://github.com/ourostack/factory/issues/50) was filed with its countermeasure and version already recorded before it had a chosen signal or hypothesis, so the check could never score it either. All six are now closed on their merged, verified fixes instead of a statistical verdict, under a rule the curator (the kaizen-worker skill) now follows: close a card the store can structurally never confirm on the evidence for its fix, and never record a countermeasure or version on a card before it has a signal and hypothesis ([#83](https://github.com/ourostack/desk/pull/83)). Filing system friction as kaizen cards after the curator's signoff — `curator` is the agent skill that fills the kaizen-worker role — has merged ([#54](https://github.com/ourostack/desk/pull/54)), as has listing open andon issues at session start ([#55](https://github.com/ourostack/desk/pull/55)). A fixture store, with GitHub simulated, shows andon opening an alarm, leaving it alone while too few jobs arrive, and closing it when a later version recovers ([test](../../../tests/desk/mcp/__tests__/factory/andon_regression.test.js)); no live andon alarm has fired yet.
196
+ - **The evaluator and rollups.** The observer agent that evaluates work it did not do ([#28](https://github.com/ourostack/desk/pull/28)) and rollups of waste across jobs ([#39](https://github.com/ourostack/desk/pull/39)) are merged, and a job's report now shows its labels ([#67](https://github.com/ourostack/desk/pull/67)). The first labeled job is still open, so the rollups count no labeled job yet.
197
+
198
+ **Still open.**
199
+
200
+ - A kaizen verdict on live data: the first card needs at least 6 independent groups of finished jobs on each side of its countermeasure's release before the build can confirm it or not.
201
+ - Draining recorded friction into kaizen cards: [#54](https://github.com/ourostack/desk/pull/54) shipped the filing step and made `curator` the kaizen worker; the curator's first pass over the desks' friction has not run yet.
202
+ - A separate factory store for work done under a company overlay, and the admin session that manages it (section 4, “How the data flows”). Routing is built: a session that loads the overlay goes to the overlay's store and never to the public one ([#44](https://github.com/ourostack/desk/pull/44)). Until that store exists and the machine consents to it, such sessions are delivered nowhere.
203
+ - Every sign-in in `mine` on Windows while Edge is open: Windows locks Edge's cookie file, so Desk skips it and only the work sign-in carries over until Edge is closed.
204
+ - A fresh install on Claude Code, from `SETUP.md` through a first `browser_context` open, recorded end to end on a clean profile. The browser's pieces are each proven (below), but that single run has not been recorded.
205
+
206
+ **Next.** An evaluation by an engineer outside the team, then the maintainer's decision on promotion.
@@ -0,0 +1,109 @@
1
+ # Agentic Engineering Epoch 3
2
+
3
+ **Status:** current. It states the principles agreed on 2026-11-10 and the working rules agreed after. Epoch 3 landed in place on Desk's `main`, one small merged change at a time; there is nothing to switch to. The [Epoch 2 RFC](agentic-engineering-v2-rfc.md) stays as history and still describes the machinery it built. Where the two disagree, this document says where Desk is going and the changelog says what runs today.
4
+
5
+ Ari's quotes below are the sources. When a rule is unclear, go back to the quote and decide from intent.
6
+
7
+ ## Why Epoch 3
8
+
9
+ Epoch 2's principles were mostly right: delegate outcomes, align before go, own execution after go, keep it simple. But each principle was written twice, once as always-on text every agent pays for on every turn and once as machinery to enforce it (guards, doctors, boot checks, pipelines). The result was slow and heavy, and it bound agents' hands. Epoch 3 keeps the principles, states each once, and trusts the agent.
10
+
11
+ > "the best code is the code you never had to write"; "building our tooling is an exercise in restraint. if we can delete most of our code during exeuction, i consider that a massive win".
12
+
13
+ ## Who it serves
14
+
15
+ Many people, many teams and many agents. One person's setup is one instance of it. Agents are users too, and their context, confusion and waiting count as much as a human's attention. Human attention is the scarcest thing in the system, so every part is judged by the attention it saves minus the overhead it adds.
16
+
17
+ > "yes - several people AND many agents"; "also other teams using Crew; not just [one team]".
18
+
19
+ A team builds its own domain tooling on top of the shared layer and composes it instead of rebuilding it. The shared layer stays small and stable enough to build on, and it never makes a team's tooling harder to write or run.
20
+
21
+ ## The contract
22
+
23
+ 1. **Conversation.** Before an outcome is delegated, the human and agent talk until intent, constraints and a measurable, verifiable **definition of done** are clear. The agent drives it: it surfaces the decisions the work will need and asks "what have we missed?". It doesn't act until released.
24
+ 2. **Release.** From then on the agent owns execution and decides from intent when it meets the unforeseen.
25
+ 3. **Two signals.** The agent breaks silence only to say **"ready for you, it's here, I'm continuing"** or **"done"**. Each carries **proof from primary sources**: screenshots of the real thing, not prose and not generated graphics. How it was done is available if asked, never required reading.
26
+ 4. **Outcomes, not steps.** People delegate outcomes and needn't know how things get built.
27
+
28
+ Needing the human mid-task is a failure of the conversation, and the lesson goes there.
29
+
30
+ > "ideally, 2 never ever happens, because all judgement and intend should have been shaken out during the conversation"; "i do need to be given visual proof (screenshots of primary sources, not generated graphics etc)"; "folks should not know or care about *how* things get built".
31
+
32
+ ## The two boundaries
33
+
34
+ Agents never do anything **irreversibly destructive**, and never **contact another human without approval**. Epoch 3 adds no other boundary. A repository's own permissions and contribution rules are facts of the environment, not Epoch 3 rules. Destroy only what you created: never delete, reset or stop a machine, container, profile, branch, worktree or file you didn't create in the task.
35
+
36
+ > "those are really the only two boundaries, ever ever".
37
+
38
+ Tools follow from this. A tool never refuses a command an agent chose to run; it puts guidance in its replies and errors and makes the right path the easy one. Every error says what probably happened, how to look further, the one call that files a bug with the evidence, and how to keep working meanwhile. No error costs an agent its confidence.
39
+
40
+ > "no handcuffs!!!"; "the absolute last thing the tool should do is kill the agent's confidence".
41
+
42
+ ## Context, not overhead
43
+
44
+ - **Context** is what the task needs: history, intent, the relevant files. Give it generously.
45
+ - **Overhead** is everything paid whatever the task: always-on rules, tool schemas, injected policies, guards, rituals and restrictions. Each piece justifies its cost, measured, or goes.
46
+ - **The always-on part is tiny.** It says only what an agent can't discover alone: what system this is, where this RFC lives, the contract and the two boundaries.
47
+ - **Every byte of context is observable.** Nothing is injected behind the agent's or the human's back.
48
+ - **Progressive disclosure.** A skill costs its name and description until it is used.
49
+ - **Prefer a CLI and a README read on demand to a tool server.** Add a tool only when an eval shows the ordinary path is worse.
50
+ - **Build on shared agent-experience tooling, not bespoke tooling.** When it lacks something, contribute it there.
51
+ - **Learnings flow back to the source** that owns the behavior: fix the test, doc or tool, and add no rule that something already says.
52
+
53
+ > "slop is what happens when your agent did not have enough context"; "all overhead must be totally justified"; "things that bind agents hands, regardless of intention? more often than not, that is expensive and unnecessary overhead".
54
+
55
+ ## State and flow
56
+
57
+ - **State is plain files in Git.** Desks hold tracks and tasks as Markdown that agents read and edit with ordinary tools. Sessions are disposable; the files are the memory.
58
+ - **Desks and workspaces keep everything on `main`.** Worktrees and pull requests exist for parallelism and synchronization.
59
+ - **Product repositories keep their own gates.** If a repository lets you merge, merge.
60
+ - **Trunk-based, in the smallest unit that lands.** An outcome is many small increments on `main`, never one big branch and never a milestone. Merge on green. A red `main` is the first job of whoever finds it: fix it or revert. Never close a pull request because of a clock or one failed check: find the cause, re-run a known flaky test once and say so, then merge. From pull request open to live takes minutes, and speed comes from redesigning the pipeline, never from skipping a check.
61
+ - **No undo machinery and no deadlines.** Ship incremental, verifiable, well-tested value instead. Thirty minutes is a goal for a change, never a rule and never a reason to discard work.
62
+ - **Work in your own worktree,** started from the latest `main`, and clean it up when the change merges. Never `git stash`: stashes are shared by every worktree of a repository.
63
+ - **Homes come from meaning.** A track is an ongoing area and a task is one outcome. People and agents choose where things live, and the tools don't enforce it.
64
+ - **Plan with the capable model, execute with the cheap one,** and always name the model explicitly.
65
+
66
+ > "i've had enough of this nonsense, building giant milestones and not shipping incremental value ... always ship incremental value!!!!!"; "makign it possible to do that will be giant overhead"; "these 'by morning' deadlines end up just causing more confusion"; "30min itself arbitrary"; "if a repo lets you push right to main / merge without additional signoff, do it!"; "we give people+agents the tools, they decide where the right home is"; "boss agents stay as the more capable models, but use cheaper models for exeuction".
67
+
68
+ ## Always-on agents
69
+
70
+ Persistent agents are a buddy system: each keeps the other alive, because whatever one runs on can fail. They coordinate and give high-level visibility. Conversations with humans happen in working sessions.
71
+
72
+ > "buddy system / accountability partners".
73
+
74
+ ## Crash and freeze recovery
75
+
76
+ Always-on only counts if the platform recovers by itself. On 2026-11-15 the app's window froze twice, it crashed once, and a macOS update then restarted the Mac; nobody was told, and a person recovered it by hand. The rule that came out of it:
77
+
78
+ > "i also should never have needed to notice that the app froze!!! housesitter is FAILING me"; "housesitter should have handled ALL of this!!!! should prob have a no-token-used heartbeat or something".
79
+
80
+ - **Housesitter owns recovery on the Mac, Ouroboros owns the telling.** Detection and recovery are plain programs that launchd runs on a timer, with no model turns. The agent hears once, after the fact, and only then.
81
+ - **Probe what fails.** A heartbeat every 30 seconds asks the app's socket and its window (an accessibility read only the main thread can answer). The 2026-11-15 freeze kept the socket answering, so a socket-only probe would have called it healthy.
82
+ - **A freeze is two minutes of failing probes.** Then: evidence first (a stack sample of the app and its helpers, process and memory state, the app's log), then a quit (SIGTERM, then SIGKILL to the exact pids), a relaunch, and a resume of every session that was working. The message says when it froze, that it was restarted, how many of how many sessions resumed, and where the evidence is. A second freeze in an hour names the pattern; after three recoveries in an hour it holds and says so, because the restart is not holding.
83
+ - **A crash is relaunched** when a crash report names the app, or sessions were working and it stayed gone. An app a person quit stays quit.
84
+ - **The Mac stopping is recorded with its cause.** A gap of five minutes or more between the heartbeat's own runs is classified from the boot time, the update history, the power log, panic reports and launchd's log (a reboot and for what, a sleep, a restart being prepared, or a hang), and told once after the sessions resumed. The 2026-11-15 reboot was a macOS update; launchd had stopped starting jobs while it prepared the restart.
85
+ - **Nothing owed is forgotten.** Sessions that were working are written down before anything is quit, so whichever job survives (the resume watcher after a reboot) finishes the resume.
86
+ - **Recovery is followed, not assumed.** For six hours after any restart a watch checks each resumed session (did it take a turn, is it erroring, is it stuck busy), asks again once, and reports by name only what stays broken.
87
+ - **A pending OS update is coordinated, never sprung on a person.** It waits for the quiet hours and an idle Mac, gets every working session to a safe point (READY or DEFER), quits the app, arms the post-reboot prompts, installs and restarts, and checks that everything came back. If it needs an administrator's password, it says so once, with exactly what is needed, and installs nothing.
88
+
89
+ The build is in [housesitter](https://github.com/ourostack/housesitter#what-it-does-when-the-app-freezes-crashes-or-the-mac-restarts), with the evidence for 2026-11-15 and a live rehearsal against a stand-in process that is hung with `kill -STOP`.
90
+
91
+ ## Epochs and versions
92
+
93
+ An **epoch** is a generation of the platform. "v" is only for package versions, such as Desk 3.2.103.
94
+
95
+ | Epoch | Defining design | Desk versions | Dates |
96
+ |---|---|---|---|
97
+ | **1** | The Desk 1.0 setup; no separate RFC | 0.1.0 to 1.8.0 | 2026-05-22 to 2026-08-24 |
98
+ | **2** | The [Epoch 2 RFC](agentic-engineering-v2-rfc.md) | 2.0.0 to 3.2.85, including the 3.2.0 alpha previews and stable 3.2.0 (2026-10-26) | 2026-08-25 to 2026-11-11 |
99
+ | **3** | This document | 3.2.86 and every release after (3.2.167 on 2026-11-15) | 2026-11-11 onward |
100
+
101
+ Desk's major version didn't change at the Epoch 2 to 3 boundary, because Epoch 3 landed in place on `main`. The boundary is a git fact: the commit that published the Epoch 3 principles (`12cee98b`, #724) is an ancestor of Desk 3.2.86 and not of 3.2.85. Desk 3.2.0 to 3.2.85 are Epoch 2, and 3.0.0 to 3.1.2 are part of Epoch 2's lineage. Ouroboros alpha releases from alpha.1090 onward belong to Epoch 3.
102
+
103
+ ## Adoption and measurement
104
+
105
+ There is no switch-back. Live work is the proof: real tasks run on Desk's `main`, and the people and agents doing them are its customers, so their failures are the shared tooling's backlog. Everyday tasks also have offline evals: a realistic prompt, a throwaway copy of the repository and a mechanical check of the result, recording time to "ready", time to "done", tokens and tool calls. A change that touches a measured task is judged on them.
106
+
107
+ ## Later
108
+
109
+ Observing how executions ran (lean, the factory) and tracking work across them both matter, once everything above works.
@@ -0,0 +1,69 @@
1
+ # Driving a remote desktop in the browser
2
+
3
+ An agent can use a cloud PC or virtual desktop that has a web client through Desk's own browser, with no remote-access daemon, no extra software and no new sign-in. It uses `browser_context` and `browser_command` with `browser: "mine"`, so the person's existing sign-in comes with the private copy. Below are the steps, as tested on a cloud PC web portal, from opening the browser to running a PowerShell command in the remote session. Commands are shown as `browser_command` `args` lists; `<ref>` stands for a ref from the agent's latest read.
4
+
5
+ ## 1. Open the portal
6
+
7
+ 1. `browser_context` `{ "action": "open", "browser": "mine" }`, then keep the `contextId`.
8
+ 2. `["goto", "<the web portal of your remote desktop service>"]`
9
+ 3. `["wait", "<text you expect on the page, such as the machine's name>"]`. `wait` returns a snapshot once that text shows.
10
+
11
+ If the portal asks for a sign-in, `mine` didn't get one from the person's browser. Stop and tell the person. Don't type credentials or start a sign-in the person didn't ask for.
12
+
13
+ ## 2. Keep refs fresh
14
+
15
+ A ref belongs to one read of one tab. It works while it comes from one of that tab's last three reads (`snapshot` or `find`) and its element is unchanged. After a tab switch, navigation or anything else that redraws the page, an old ref is refused:
16
+
17
+ - `AUTH_SNAPSHOT_INVALIDATED`: the page replaced that element, or navigated, after the read.
18
+ - `AUTH_TARGET_REFUSED`: the ref isn't from one of the tab's last three reads, or its element has gone.
19
+
20
+ Both mean read again and act on the new ref: `["snapshot", "--interactive"]`, or `["find", "<label text>"]`, which returns just the matching lines with their refs. A new read also renews refs inside child frames, where a remote desktop's screen usually lives. Desk already retries its own reads while a page settles, so a refusal on a ref means that element really changed. Retrying the old ref won't help.
21
+
22
+ Refs can change between two actions on the same page. To uncheck one setting and check another, read again before each action.
23
+
24
+ ## 3. Open the session
25
+
26
+ 1. `["find", "<machine name or its actions menu>"]`, then `["click", "<ref>"]`. Choose the item that opens the desktop in the browser.
27
+ 2. If it opens a new tab: `["tab-list"]`, then `["tab-select", "<n>"]`, then `["snapshot", "--interactive"]`. Every ref from the old tab is now stale.
28
+ 3. Set the session's options on its settings page, such as clipboard or printer, with `check` or `uncheck` on fresh refs.
29
+ 4. `["find", "Connect"]`, then `["click", "<ref>"]`. The page shows a connecting state. Wait about 15 to 30 seconds with `["wait", "<seconds>"]`, then `["screenshot"]`. Dismiss any first-run dialog (`find` its button, then `click`).
30
+
31
+ ## 4. Type into the remote screen
32
+
33
+ The remote screen is a canvas. A read shows it as a `textbox`, usually next to text that says it's the remote session. Use that `textbox` ref for keys:
34
+
35
+ 1. `["click", "<canvas ref>"]` to give it focus.
36
+ 2. To open PowerShell on a Windows desktop: `["press", "Control+Escape"]`, then `["type", "<canvas ref>", "windows powershell"]`, then `["press", "Enter"]`. Wait about 10 seconds and read again for a fresh canvas ref.
37
+ 3. `["type", "<canvas ref>", "Write-Output <nonce>; Get-Date"]`, then `["press", "Enter"]`. Use a fresh random nonce each time.
38
+
39
+ `type` focuses the target, checks it still has the focus before every key and stops with `AUTH_FOCUS_MOVED` if something else takes it. The field may then hold part of the text. Read again, check what landed and type again.
40
+
41
+ `AUTH_FOCUS_MOVED` also comes up, by design, in two common cases. Keep the focus check on and handle them like this:
42
+
43
+ - **The ref is the session's image, not its textbox.** The image can't hold focus. Read again and use the `textbox` ref next to it.
44
+ - **A code split across several boxes** (one box per character or group) moves focus to the next box by itself. Fill each box on its own: read, `["fill", "<box ref>", "<that box's part>"]`, then read again before the next box. Never type the whole code into the first box.
45
+
46
+ ## 5. Check the result in a screenshot
47
+
48
+ On a canvas, `type` returns `"typed": { "verified": false }`, because Desk can't read characters back from pixels. Don't report typing as verified, and don't take the canvas's own text as proof. The proof is a `["screenshot"]` that shows the nonce echoed and the date printed.
49
+
50
+ Screenshots blur only real secrets (password and one-time-code fields, token-looking values) and paint nothing else, so the remote session shows as it is. It is the operator's own page: don't crop or hide parts of it from them. A screenshot is refused with no file when part of the page is in a closed shadow root (`AUTH_SHADOW_COVERAGE_REFUSED`) or a child frame can't be read (`AUTH_FRAME_COVERAGE_REFUSED`). Wait and try again, or `goto` that frame's own page.
51
+
52
+ ## 6. Finish
53
+
54
+ `browser_context` `{ "action": "close", "contextId": "<id>" }`. Closing deletes the private copy. Sign out of the remote session first if the person asked for that. Leaving it connected keeps the remote session running.
55
+
56
+ ## Next: a coding agent in the remote session
57
+
58
+ With a PowerShell window open, the person can set up a coding agent there by following that tool's own install guide. For GitHub Copilot CLI that's [Installing GitHub Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli). It needs the Node.js version that guide names inside the remote session, which is separate from the Node.js that runs Desk on the agent's own machine. Installing software on the remote machine needs the person's go-ahead. Sign-ins there (`/login`, `gh auth login`) are the person's: when one shows a device code, give it to them and let them finish it in their own browser. Never carry a token or a second factor across.
59
+
60
+ ## When it stops
61
+
62
+ - `AUTH_TIMEOUT`: the command ran too long and the context is closed. Before the close, Desk keeps a screenshot and names it in the failure, with the failed and pending hosts. Look at that picture, open a new context and start again from step 1, and keep waits under a minute.
63
+ - `wait` for text that never shows: the context stays open, and the result has a `diagnosis` (the page's address without its query, the main document's status, failed and pending request hosts with codes, console counts, whether it sat on a sign-in redirect, and a screenshot path) and a hint that names the likeliest cause and how to keep working. For a sign-in redirect, complete sign-in in your own browser and open a new context.
64
+ - `AUTH_ACTION_COVERED`, `AUTH_ACTION_NOT_READY` or `AUTH_ACTION_TIMEOUT`: that one control could not be used in time, and the context is still open. Look at the page with a snapshot or a find, clear what covers the control or wait for the page to settle, then act on a fresh ref.
65
+ - `AUTH_CONTEXT_REFUSED`: the tab or context is gone. Open a new one.
66
+ - `AUTH_COMMAND_UNKNOWN`: `mine` has no command by that name. The line lists the ones it has; `eval` and `run-code` cover the rest.
67
+ - `AUTH_SCRIPT_FAILED`: the script you ran with `eval` or `run-code` threw; the line carries the script's own error and the context stays open.
68
+ - Each of these failures also names the one call that files a bug with its evidence: `friction_add` with `{"error_code":"auth_timeout"}` (the code, lowercased). A page that never became ready is filed with `{"error_code":"auth_page_not_ready"}`.
69
+ - A certificate or unsafe-site warning on a host you know is internal: your call, proceed. An authentication prompt that needs a passkey, password or MFA code only the person holds: stop and tell the person.