@rubytech/create-sitedesk-code 0.1.521 → 0.1.523

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 (416) hide show
  1. package/dist/index.js +17 -3
  2. package/package.json +1 -1
  3. package/payload/platform/lib/account-schema-regions/package-lock.json +12 -0
  4. package/payload/platform/lib/active-rules/package-lock.json +12 -0
  5. package/payload/platform/lib/graph-style/dist/index.d.ts.map +1 -1
  6. package/payload/platform/lib/graph-style/dist/index.js +28 -0
  7. package/payload/platform/lib/graph-style/dist/index.js.map +1 -1
  8. package/payload/platform/lib/graph-style/src/__tests__/caption-coverage.test.ts +7 -0
  9. package/payload/platform/lib/graph-style/src/index.ts +24 -0
  10. package/payload/platform/lib/graph-write/dist/__tests__/merge-on.test.d.ts.map +1 -0
  11. package/payload/platform/lib/graph-write/dist/__tests__/merge-on.test.js.map +1 -0
  12. package/payload/platform/lib/graph-write/dist/index.d.ts +16 -0
  13. package/payload/platform/lib/graph-write/dist/index.d.ts.map +1 -1
  14. package/payload/platform/lib/graph-write/dist/index.js +83 -6
  15. package/payload/platform/lib/graph-write/dist/index.js.map +1 -1
  16. package/payload/platform/lib/graph-write/src/index.ts +117 -10
  17. package/payload/platform/lib/mcp-lifeline/package-lock.json +12 -0
  18. package/payload/platform/lib/routine-templates/dist/index.d.ts +151 -0
  19. package/payload/platform/lib/routine-templates/dist/index.d.ts.map +1 -0
  20. package/payload/platform/lib/routine-templates/dist/index.js +207 -0
  21. package/payload/platform/lib/routine-templates/dist/index.js.map +1 -0
  22. package/payload/platform/lib/routine-templates/dist/roster.d.ts +57 -0
  23. package/payload/platform/lib/routine-templates/dist/roster.d.ts.map +1 -0
  24. package/payload/platform/lib/routine-templates/dist/roster.js +182 -0
  25. package/payload/platform/lib/routine-templates/dist/roster.js.map +1 -0
  26. package/payload/platform/lib/routine-templates/dist/seed-cli.d.ts +2 -0
  27. package/payload/platform/lib/routine-templates/dist/seed-cli.d.ts.map +1 -0
  28. package/payload/platform/lib/routine-templates/dist/seed-cli.js +64 -0
  29. package/payload/platform/lib/routine-templates/dist/seed-cli.js.map +1 -0
  30. package/payload/platform/lib/routine-templates/package.json +6 -0
  31. package/payload/platform/lib/routine-templates/src/__tests__/roster.test.ts +170 -0
  32. package/payload/platform/lib/routine-templates/src/__tests__/seed.test.ts +298 -0
  33. package/payload/platform/lib/routine-templates/src/index.ts +299 -0
  34. package/payload/platform/lib/routine-templates/src/roster.ts +206 -0
  35. package/payload/platform/lib/routine-templates/src/seed-cli.ts +65 -0
  36. package/payload/platform/lib/routine-templates/tsconfig.json +9 -0
  37. package/payload/platform/lib/routine-templates/vitest.config.ts +9 -0
  38. package/payload/platform/neo4j/edge-annotations.json +2 -2
  39. package/payload/platform/neo4j/schema.cypher +25 -1
  40. package/payload/platform/package.json +3 -2
  41. package/payload/platform/plugins/admin/PLUGIN.md +2 -2
  42. package/payload/platform/plugins/admin/mcp/dist/index.js +39 -1
  43. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  44. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +319 -66
  45. package/payload/platform/plugins/admin/skills/whats-new/SKILL.md +12 -0
  46. package/payload/platform/plugins/docs/references/admin-ui.md +275 -59
  47. package/payload/platform/plugins/docs/references/internals.md +4 -0
  48. package/payload/platform/plugins/docs/references/memory-guide.md +11 -1
  49. package/payload/platform/plugins/docs/references/outlook-guide.md +27 -4
  50. package/payload/platform/plugins/graph/.claude-plugin/plugin.json +1 -1
  51. package/payload/platform/plugins/graph/PLUGIN.md +1 -1
  52. package/payload/platform/plugins/memory/PLUGIN.md +1 -1
  53. package/payload/platform/plugins/memory/mcp/dist/index.js +12 -5
  54. package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
  55. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.d.ts +2 -0
  56. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.d.ts.map +1 -0
  57. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.js +197 -0
  58. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/phase-estate-census.test.js.map +1 -0
  59. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-loader.test.js +55 -9
  60. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-loader.test.js.map +1 -1
  61. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-validator.test.js +96 -0
  62. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-validator.test.js.map +1 -1
  63. package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/index.d.ts +7 -0
  64. package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/index.d.ts.map +1 -1
  65. package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.d.ts +29 -0
  66. package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.d.ts.map +1 -0
  67. package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.js +126 -0
  68. package/payload/platform/plugins/memory/mcp/dist/lib/dream-cycle/phase-estate-census.js.map +1 -0
  69. package/payload/platform/plugins/memory/mcp/dist/scripts/dream-cycle-sweep.js +7 -4
  70. package/payload/platform/plugins/memory/mcp/dist/scripts/dream-cycle-sweep.js.map +1 -1
  71. package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.d.ts +1 -0
  72. package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.d.ts.map +1 -1
  73. package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.js +18 -1
  74. package/payload/platform/plugins/memory/mcp/dist/tools/memory-dream-run.js.map +1 -1
  75. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts +7 -0
  76. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts.map +1 -1
  77. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js +4 -3
  78. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js.map +1 -1
  79. package/payload/platform/plugins/memory/mcp/vitest.config.ts +2 -0
  80. package/payload/platform/plugins/memory/references/schema-estate-agent.md +2 -2
  81. package/payload/platform/plugins/memory/skills/conversation-archive-enrich/SKILL.md +4 -4
  82. package/payload/platform/plugins/outlook/.claude-plugin/plugin.json +1 -1
  83. package/payload/platform/plugins/outlook/PLUGIN.md +9 -1
  84. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-resolve.test.d.ts +2 -0
  85. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-resolve.test.d.ts.map +1 -0
  86. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-resolve.test.js +151 -0
  87. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-resolve.test.js.map +1 -0
  88. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-store.test.d.ts +2 -0
  89. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-store.test.d.ts.map +1 -0
  90. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-store.test.js +151 -0
  91. package/payload/platform/plugins/outlook/mcp/dist/__tests__/delegated-store.test.js.map +1 -0
  92. package/payload/platform/plugins/outlook/mcp/dist/__tests__/device-flow.test.js +38 -4
  93. package/payload/platform/plugins/outlook/mcp/dist/__tests__/device-flow.test.js.map +1 -1
  94. package/payload/platform/plugins/outlook/mcp/dist/__tests__/graph-client-prefix-wiring.test.d.ts +2 -0
  95. package/payload/platform/plugins/outlook/mcp/dist/__tests__/graph-client-prefix-wiring.test.d.ts.map +1 -0
  96. package/payload/platform/plugins/outlook/mcp/dist/__tests__/graph-client-prefix-wiring.test.js +146 -0
  97. package/payload/platform/plugins/outlook/mcp/dist/__tests__/graph-client-prefix-wiring.test.js.map +1 -0
  98. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-list-delegated.test.d.ts +2 -0
  99. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-list-delegated.test.d.ts.map +1 -0
  100. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-list-delegated.test.js +120 -0
  101. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-list-delegated.test.js.map +1 -0
  102. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-list.test.js +8 -8
  103. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-list.test.js.map +1 -1
  104. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-path-prefix.test.d.ts +2 -0
  105. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-path-prefix.test.d.ts.map +1 -0
  106. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-path-prefix.test.js +27 -0
  107. package/payload/platform/plugins/outlook/mcp/dist/__tests__/mailbox-path-prefix.test.js.map +1 -0
  108. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mail-only-guard.test.d.ts +2 -0
  109. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mail-only-guard.test.d.ts.map +1 -0
  110. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mail-only-guard.test.js +70 -0
  111. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mail-only-guard.test.js.map +1 -0
  112. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mailbox-add.test.d.ts +2 -0
  113. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mailbox-add.test.d.ts.map +1 -0
  114. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mailbox-add.test.js +152 -0
  115. package/payload/platform/plugins/outlook/mcp/dist/__tests__/shared-mailbox-add.test.js.map +1 -0
  116. package/payload/platform/plugins/outlook/mcp/dist/auth/delegated-store.d.ts +57 -0
  117. package/payload/platform/plugins/outlook/mcp/dist/auth/delegated-store.d.ts.map +1 -0
  118. package/payload/platform/plugins/outlook/mcp/dist/auth/delegated-store.js +163 -0
  119. package/payload/platform/plugins/outlook/mcp/dist/auth/delegated-store.js.map +1 -0
  120. package/payload/platform/plugins/outlook/mcp/dist/auth/device-flow.d.ts +12 -0
  121. package/payload/platform/plugins/outlook/mcp/dist/auth/device-flow.d.ts.map +1 -1
  122. package/payload/platform/plugins/outlook/mcp/dist/auth/device-flow.js +21 -1
  123. package/payload/platform/plugins/outlook/mcp/dist/auth/device-flow.js.map +1 -1
  124. package/payload/platform/plugins/outlook/mcp/dist/auth/mailbox-registry.d.ts +35 -4
  125. package/payload/platform/plugins/outlook/mcp/dist/auth/mailbox-registry.d.ts.map +1 -1
  126. package/payload/platform/plugins/outlook/mcp/dist/auth/mailbox-registry.js +92 -10
  127. package/payload/platform/plugins/outlook/mcp/dist/auth/mailbox-registry.js.map +1 -1
  128. package/payload/platform/plugins/outlook/mcp/dist/index.js +106 -3
  129. package/payload/platform/plugins/outlook/mcp/dist/index.js.map +1 -1
  130. package/payload/platform/plugins/outlook/mcp/dist/lib/graph-client.d.ts +49 -0
  131. package/payload/platform/plugins/outlook/mcp/dist/lib/graph-client.d.ts.map +1 -1
  132. package/payload/platform/plugins/outlook/mcp/dist/lib/graph-client.js +126 -8
  133. package/payload/platform/plugins/outlook/mcp/dist/lib/graph-client.js.map +1 -1
  134. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-info.d.ts +13 -0
  135. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-info.d.ts.map +1 -1
  136. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-info.js +9 -0
  137. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-info.js.map +1 -1
  138. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-list.d.ts +42 -8
  139. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-list.d.ts.map +1 -1
  140. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-list.js +59 -19
  141. package/payload/platform/plugins/outlook/mcp/dist/tools/mailbox-list.js.map +1 -1
  142. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-add.d.ts +47 -0
  143. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-add.d.ts.map +1 -0
  144. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-add.js +67 -0
  145. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-add.js.map +1 -0
  146. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-remove.d.ts +12 -0
  147. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-remove.d.ts.map +1 -0
  148. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-remove.js +18 -0
  149. package/payload/platform/plugins/outlook/mcp/dist/tools/shared-mailbox-remove.js.map +1 -0
  150. package/payload/platform/plugins/outlook/references/auth.md +15 -2
  151. package/payload/platform/plugins/outlook/references/graph-surfaces.md +8 -0
  152. package/payload/platform/plugins/outlook/skills/outlook/SKILL.md +21 -1
  153. package/payload/platform/plugins/quickbooks/PLUGIN.md +10 -10
  154. package/payload/platform/plugins/scheduling/PLUGIN.md +49 -1
  155. package/payload/platform/plugins/scheduling/mcp/dist/index.js +48 -0
  156. package/payload/platform/plugins/scheduling/mcp/dist/index.js.map +1 -1
  157. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.d.ts +2 -0
  158. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.d.ts.map +1 -0
  159. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.js +78 -0
  160. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/notes-cap.test.js.map +1 -0
  161. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.d.ts +2 -0
  162. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.d.ts.map +1 -0
  163. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.js +457 -0
  164. package/payload/platform/plugins/scheduling/mcp/dist/lib/__tests__/routine-run.test.js.map +1 -0
  165. package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.d.ts +35 -0
  166. package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.d.ts.map +1 -0
  167. package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.js +39 -0
  168. package/payload/platform/plugins/scheduling/mcp/dist/lib/notes-cap.js.map +1 -0
  169. package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.d.ts +175 -0
  170. package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.d.ts.map +1 -0
  171. package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.js +533 -0
  172. package/payload/platform/plugins/scheduling/mcp/dist/lib/routine-run.js.map +1 -0
  173. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/agent-turn-dispatch.test.js +123 -9
  174. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/agent-turn-dispatch.test.js.map +1 -1
  175. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.d.ts +2 -0
  176. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.d.ts.map +1 -0
  177. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.js +189 -0
  178. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/routine-roster-audit.test.js.map +1 -0
  179. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.d.ts +2 -0
  180. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.d.ts.map +1 -0
  181. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.js +95 -0
  182. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/suspension-census.test.js.map +1 -0
  183. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.d.ts +2 -0
  184. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.d.ts.map +1 -0
  185. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.js +114 -0
  186. package/payload/platform/plugins/scheduling/mcp/dist/scripts/__tests__/sweep-excludes-suspended.test.js.map +1 -0
  187. package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.d.ts +109 -2
  188. package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.d.ts.map +1 -1
  189. package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.js +340 -9
  190. package/payload/platform/plugins/scheduling/mcp/dist/scripts/agent-turn-dispatch.js.map +1 -1
  191. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts +9 -1
  192. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.d.ts.map +1 -1
  193. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +210 -45
  194. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
  195. package/payload/platform/plugins/scheduling/mcp/dist/scripts/reconcile-bookings.js +43 -1
  196. package/payload/platform/plugins/scheduling/mcp/dist/scripts/reconcile-bookings.js.map +1 -1
  197. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-get-agent.test.js +55 -7
  198. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-get-agent.test.js.map +1 -1
  199. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-list.test.js +45 -1
  200. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-list.test.js.map +1 -1
  201. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.d.ts +2 -0
  202. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.d.ts.map +1 -0
  203. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.js +96 -0
  204. package/payload/platform/plugins/scheduling/mcp/dist/tools/__tests__/schedule-runs.test.js.map +1 -0
  205. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.d.ts.map +1 -1
  206. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js +2 -1
  207. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-cancel.js.map +1 -1
  208. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts +5 -0
  209. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.d.ts.map +1 -1
  210. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js +13 -0
  211. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-get.js.map +1 -1
  212. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts +4 -0
  213. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.d.ts.map +1 -1
  214. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js +24 -3
  215. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-list.js.map +1 -1
  216. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.d.ts +33 -0
  217. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.d.ts.map +1 -0
  218. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.js +51 -0
  219. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-runs.js.map +1 -0
  220. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.d.ts.map +1 -1
  221. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js +12 -2
  222. package/payload/platform/plugins/scheduling/mcp/dist/tools/schedule-update.js.map +1 -1
  223. package/payload/platform/plugins/whatsapp/references/channels-whatsapp.md +30 -2
  224. package/payload/platform/plugins/whatsapp/skills/connect-whatsapp/SKILL.md +1 -1
  225. package/payload/platform/scripts/check-specialist-tool-surface.mjs +92 -16
  226. package/payload/platform/scripts/seed-neo4j.sh +41 -0
  227. package/payload/platform/scripts/verify-skill-tool-surface.sh +91 -2
  228. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  229. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +3 -0
  230. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  231. package/payload/platform/templates/specialists/agents/librarian.md +1 -1
  232. package/payload/platform/templates/specialists/agents/personal-assistant.md +1 -1
  233. package/payload/server/{chunk-AZLT4LVO.js → chunk-VUXKXOJU.js} +755 -335
  234. package/payload/server/{chunk-UX2FRNO7.js → chunk-WT2PFGY4.js} +37 -265
  235. package/payload/server/{chunk-PXNY2TAP.js → chunk-XCR5D2G3.js} +239 -10
  236. package/payload/server/{manager-CQBSUJXR.js → manager-4TJK3YOY.js} +4 -2
  237. package/payload/server/maxy-edge.js +2 -2
  238. package/payload/server/public/activity.html +5 -5
  239. package/payload/server/public/agents.html +4 -4
  240. package/payload/server/public/assets/{AdminLoginScreens-Dar_MMJm.js → AdminLoginScreens-uknqh2Pm.js} +1 -1
  241. package/payload/server/public/assets/AdminLoginScreens-uknqh2Pm.js.br +0 -0
  242. package/payload/server/public/assets/AdminLoginScreens-uknqh2Pm.js.gz +0 -0
  243. package/payload/server/public/assets/AdminShell-GqtMImyQ.js +2 -0
  244. package/payload/server/public/assets/AdminShell-GqtMImyQ.js.br +0 -0
  245. package/payload/server/public/assets/AdminShell-GqtMImyQ.js.gz +0 -0
  246. package/payload/server/public/assets/{activity-B1rt4GIy.js → activity-B4KfMJqO.js} +1 -1
  247. package/payload/server/public/assets/activity-B4KfMJqO.js.br +0 -0
  248. package/payload/server/public/assets/activity-B4KfMJqO.js.gz +0 -0
  249. package/payload/server/public/assets/admin-DxCZeVw0.js +1 -0
  250. package/payload/server/public/assets/admin-DxCZeVw0.js.br +0 -0
  251. package/payload/server/public/assets/admin-DxCZeVw0.js.gz +0 -0
  252. package/payload/server/public/assets/agents-BtwBuO4G.js +1 -0
  253. package/payload/server/public/assets/agents-BtwBuO4G.js.br +0 -0
  254. package/payload/server/public/assets/agents-BtwBuO4G.js.gz +0 -0
  255. package/payload/server/public/assets/{browser-1QSCPl3X.js → browser-B3hSzI3O.js} +1 -1
  256. package/payload/server/public/assets/browser-B3hSzI3O.js.br +0 -0
  257. package/payload/server/public/assets/browser-B3hSzI3O.js.gz +0 -0
  258. package/payload/server/public/assets/{calendar-D009qWVV.js → calendar-BggxXxhS.js} +1 -1
  259. package/payload/server/public/assets/calendar-BggxXxhS.js.br +0 -0
  260. package/payload/server/public/assets/calendar-BggxXxhS.js.gz +0 -0
  261. package/payload/server/public/assets/chat-flivHt0t.js +1 -0
  262. package/payload/server/public/assets/chat-flivHt0t.js.br +0 -0
  263. package/payload/server/public/assets/chat-flivHt0t.js.gz +0 -0
  264. package/payload/server/public/assets/chevron-left-nVRThX7f.js +1 -0
  265. package/payload/server/public/assets/chevron-right-CLqfrkRA.js +1 -0
  266. package/payload/server/public/assets/chevron-right-CLqfrkRA.js.br +0 -0
  267. package/payload/server/public/assets/clock-Dj3SRZKo.js +1 -0
  268. package/payload/server/public/assets/clock-Dj3SRZKo.js.br +0 -0
  269. package/payload/server/public/assets/clock-Dj3SRZKo.js.gz +0 -0
  270. package/payload/server/public/assets/data-Ckjkne54.js +1 -0
  271. package/payload/server/public/assets/data-Ckjkne54.js.br +3 -0
  272. package/payload/server/public/assets/data-Ckjkne54.js.gz +0 -0
  273. package/payload/server/public/assets/{file-text-DwGAfCsd.js → file-text-BKs9eyiw.js} +1 -1
  274. package/payload/server/public/assets/file-text-BKs9eyiw.js.br +0 -0
  275. package/payload/server/public/assets/file-text-BKs9eyiw.js.gz +0 -0
  276. package/payload/server/public/assets/{graph-D-DGlfhW.js → graph-DTi71NaZ.js} +3 -3
  277. package/payload/server/public/assets/graph-DTi71NaZ.js.br +0 -0
  278. package/payload/server/public/assets/graph-DTi71NaZ.js.gz +0 -0
  279. package/payload/server/public/assets/graph-labels-BT3S6e9H.js +1 -0
  280. package/payload/server/public/assets/graph-labels-BT3S6e9H.js.br +0 -0
  281. package/payload/server/public/assets/graph-labels-BT3S6e9H.js.gz +0 -0
  282. package/payload/server/public/assets/{maximize-2-C_-KapxH.js → maximize-2-zC94tsxY.js} +1 -1
  283. package/payload/server/public/assets/maximize-2-zC94tsxY.js.br +0 -0
  284. package/payload/server/public/assets/maximize-2-zC94tsxY.js.gz +0 -0
  285. package/payload/server/public/assets/operator-BtWNEMh-.js +1 -0
  286. package/payload/server/public/assets/operator-BtWNEMh-.js.br +0 -0
  287. package/payload/server/public/assets/operator-BtWNEMh-.js.gz +0 -0
  288. package/payload/server/public/assets/page-BFm91p0e.js +1 -0
  289. package/payload/server/public/assets/page-BFm91p0e.js.br +0 -0
  290. package/payload/server/public/assets/page-BFm91p0e.js.gz +0 -0
  291. package/payload/server/public/assets/{page-E74MYB18.js → page-Ccl0FazM.js} +3 -3
  292. package/payload/server/public/assets/page-Ccl0FazM.js.br +0 -0
  293. package/payload/server/public/assets/page-Ccl0FazM.js.gz +0 -0
  294. package/payload/server/public/assets/{public-CI6K1sNW.js → public-BpC6cn9S.js} +1 -1
  295. package/payload/server/public/assets/public-BpC6cn9S.js.br +0 -0
  296. package/payload/server/public/assets/public-BpC6cn9S.js.gz +0 -0
  297. package/payload/server/public/assets/{rotate-ccw-PWu_QGrD.js → rotate-ccw-BNcqbHkZ.js} +1 -1
  298. package/payload/server/public/assets/rotate-ccw-BNcqbHkZ.js.br +0 -0
  299. package/payload/server/public/assets/rotate-ccw-BNcqbHkZ.js.gz +0 -0
  300. package/payload/server/public/assets/routines-D5iia-XG.js +1 -0
  301. package/payload/server/public/assets/routines-D5iia-XG.js.br +0 -0
  302. package/payload/server/public/assets/routines-D5iia-XG.js.gz +0 -0
  303. package/payload/server/public/assets/{skills-g8HvunPA.js → skills-COLAw_jt.js} +1 -1
  304. package/payload/server/public/assets/skills-COLAw_jt.js.br +0 -0
  305. package/payload/server/public/assets/skills-COLAw_jt.js.gz +0 -0
  306. package/payload/server/public/assets/tasks-CZDQI4nB.js +1 -0
  307. package/payload/server/public/assets/tasks-CZDQI4nB.js.br +0 -0
  308. package/payload/server/public/assets/tasks-CZDQI4nB.js.gz +0 -0
  309. package/payload/server/public/assets/{time-entry-format-BXWuQ6Sw.js → time-entry-format-laTFzawg.js} +1 -1
  310. package/payload/server/public/assets/time-entry-format-laTFzawg.js.br +0 -0
  311. package/payload/server/public/assets/time-entry-format-laTFzawg.js.gz +0 -0
  312. package/payload/server/public/assets/{triangle-alert-BNshRC13.js → triangle-alert-DrwqhEog.js} +1 -1
  313. package/payload/server/public/assets/triangle-alert-DrwqhEog.js.br +0 -0
  314. package/payload/server/public/assets/triangle-alert-DrwqhEog.js.gz +0 -0
  315. package/payload/server/public/assets/{useCopyFeedback-CwTZ9DqH.js → useCopyFeedback-Cxme5GK6.js} +1 -1
  316. package/payload/server/public/assets/useCopyFeedback-Cxme5GK6.js.br +0 -0
  317. package/payload/server/public/assets/useCopyFeedback-Cxme5GK6.js.gz +0 -0
  318. package/payload/server/public/assets/useSubAccountSwitcher-B-K8y5a4.css +1 -0
  319. package/payload/server/public/assets/useSubAccountSwitcher-B-K8y5a4.css.br +0 -0
  320. package/payload/server/public/assets/useSubAccountSwitcher-B-K8y5a4.css.gz +0 -0
  321. package/payload/server/public/assets/useSubAccountSwitcher-C_1E11Dv.js +14 -0
  322. package/payload/server/public/assets/useSubAccountSwitcher-C_1E11Dv.js.br +0 -0
  323. package/payload/server/public/assets/useSubAccountSwitcher-C_1E11Dv.js.gz +0 -0
  324. package/payload/server/public/assets/{useVoiceRecorder-BGqV5R6u.js → useVoiceRecorder-DUBpVa2T.js} +1 -1
  325. package/payload/server/public/assets/useVoiceRecorder-DUBpVa2T.js.br +0 -0
  326. package/payload/server/public/assets/useVoiceRecorder-DUBpVa2T.js.gz +0 -0
  327. package/payload/server/public/assets/{wrench-DQ045Pyk.js → wrench-DWuxPnzF.js} +1 -1
  328. package/payload/server/public/assets/wrench-DWuxPnzF.js.br +0 -0
  329. package/payload/server/public/assets/wrench-DWuxPnzF.js.gz +0 -0
  330. package/payload/server/public/browser.html +4 -4
  331. package/payload/server/public/calendar.html +7 -7
  332. package/payload/server/public/chat.html +13 -13
  333. package/payload/server/public/data.html +11 -11
  334. package/payload/server/public/graph.html +9 -9
  335. package/payload/server/public/index.html +14 -14
  336. package/payload/server/public/operator.html +14 -14
  337. package/payload/server/public/public.html +13 -13
  338. package/payload/server/public/routines.html +6 -6
  339. package/payload/server/public/skills.html +5 -5
  340. package/payload/server/public/tasks.html +6 -6
  341. package/payload/server/server.js +6631 -5690
  342. package/payload/server/public/assets/AdminLoginScreens-Dar_MMJm.js.br +0 -0
  343. package/payload/server/public/assets/AdminLoginScreens-Dar_MMJm.js.gz +0 -0
  344. package/payload/server/public/assets/AdminShell-CpaI2F_p.js +0 -2
  345. package/payload/server/public/assets/AdminShell-CpaI2F_p.js.br +0 -0
  346. package/payload/server/public/assets/AdminShell-CpaI2F_p.js.gz +0 -0
  347. package/payload/server/public/assets/activity-B1rt4GIy.js.br +0 -0
  348. package/payload/server/public/assets/activity-B1rt4GIy.js.gz +0 -0
  349. package/payload/server/public/assets/admin-DE3lLNje.js +0 -1
  350. package/payload/server/public/assets/admin-DE3lLNje.js.br +0 -0
  351. package/payload/server/public/assets/admin-DE3lLNje.js.gz +0 -0
  352. package/payload/server/public/assets/agents-BXq8woVf.js +0 -1
  353. package/payload/server/public/assets/agents-BXq8woVf.js.br +0 -0
  354. package/payload/server/public/assets/agents-BXq8woVf.js.gz +0 -0
  355. package/payload/server/public/assets/browser-1QSCPl3X.js.br +0 -0
  356. package/payload/server/public/assets/browser-1QSCPl3X.js.gz +0 -0
  357. package/payload/server/public/assets/calendar-D009qWVV.js.br +0 -0
  358. package/payload/server/public/assets/calendar-D009qWVV.js.gz +0 -0
  359. package/payload/server/public/assets/chat-CUg1fTqJ.js +0 -1
  360. package/payload/server/public/assets/chat-CUg1fTqJ.js.br +0 -1
  361. package/payload/server/public/assets/chat-CUg1fTqJ.js.gz +0 -0
  362. package/payload/server/public/assets/chevron-left-C2JEy7uU.js +0 -1
  363. package/payload/server/public/assets/chevron-left-C2JEy7uU.js.br +0 -0
  364. package/payload/server/public/assets/chevron-right-DWa047Ys.js +0 -1
  365. package/payload/server/public/assets/chevron-right-DWa047Ys.js.br +0 -0
  366. package/payload/server/public/assets/clock-C3OqfCnn.js +0 -1
  367. package/payload/server/public/assets/clock-C3OqfCnn.js.br +0 -0
  368. package/payload/server/public/assets/clock-C3OqfCnn.js.gz +0 -0
  369. package/payload/server/public/assets/data-Bu_yCScC.js +0 -1
  370. package/payload/server/public/assets/data-Bu_yCScC.js.br +0 -0
  371. package/payload/server/public/assets/data-Bu_yCScC.js.gz +0 -0
  372. package/payload/server/public/assets/file-text-DwGAfCsd.js.br +0 -0
  373. package/payload/server/public/assets/file-text-DwGAfCsd.js.gz +0 -0
  374. package/payload/server/public/assets/graph-D-DGlfhW.js.br +0 -0
  375. package/payload/server/public/assets/graph-D-DGlfhW.js.gz +0 -0
  376. package/payload/server/public/assets/graph-labels-BbX3fXzl.js +0 -1
  377. package/payload/server/public/assets/graph-labels-BbX3fXzl.js.br +0 -0
  378. package/payload/server/public/assets/graph-labels-BbX3fXzl.js.gz +0 -0
  379. package/payload/server/public/assets/maximize-2-C_-KapxH.js.br +0 -0
  380. package/payload/server/public/assets/maximize-2-C_-KapxH.js.gz +0 -0
  381. package/payload/server/public/assets/operator-CFrZVcv6.js +0 -1
  382. package/payload/server/public/assets/operator-CFrZVcv6.js.br +0 -0
  383. package/payload/server/public/assets/operator-CFrZVcv6.js.gz +0 -0
  384. package/payload/server/public/assets/page-CHt62f1_.js +0 -1
  385. package/payload/server/public/assets/page-CHt62f1_.js.br +0 -0
  386. package/payload/server/public/assets/page-CHt62f1_.js.gz +0 -0
  387. package/payload/server/public/assets/page-E74MYB18.js.br +0 -0
  388. package/payload/server/public/assets/page-E74MYB18.js.gz +0 -0
  389. package/payload/server/public/assets/public-CI6K1sNW.js.br +0 -0
  390. package/payload/server/public/assets/public-CI6K1sNW.js.gz +0 -0
  391. package/payload/server/public/assets/rotate-ccw-PWu_QGrD.js.br +0 -0
  392. package/payload/server/public/assets/rotate-ccw-PWu_QGrD.js.gz +0 -0
  393. package/payload/server/public/assets/routines-Cp3_XS7S.js +0 -1
  394. package/payload/server/public/assets/routines-Cp3_XS7S.js.br +0 -0
  395. package/payload/server/public/assets/routines-Cp3_XS7S.js.gz +0 -0
  396. package/payload/server/public/assets/skills-g8HvunPA.js.br +0 -0
  397. package/payload/server/public/assets/skills-g8HvunPA.js.gz +0 -0
  398. package/payload/server/public/assets/tasks-CMC_jDVm.js +0 -1
  399. package/payload/server/public/assets/tasks-CMC_jDVm.js.br +0 -0
  400. package/payload/server/public/assets/tasks-CMC_jDVm.js.gz +0 -0
  401. package/payload/server/public/assets/time-entry-format-BXWuQ6Sw.js.br +0 -2
  402. package/payload/server/public/assets/time-entry-format-BXWuQ6Sw.js.gz +0 -0
  403. package/payload/server/public/assets/triangle-alert-BNshRC13.js.br +0 -0
  404. package/payload/server/public/assets/triangle-alert-BNshRC13.js.gz +0 -0
  405. package/payload/server/public/assets/useCopyFeedback-CwTZ9DqH.js.br +0 -0
  406. package/payload/server/public/assets/useCopyFeedback-CwTZ9DqH.js.gz +0 -0
  407. package/payload/server/public/assets/useSubAccountSwitcher-BuUYMDWl.js +0 -14
  408. package/payload/server/public/assets/useSubAccountSwitcher-BuUYMDWl.js.br +0 -0
  409. package/payload/server/public/assets/useSubAccountSwitcher-BuUYMDWl.js.gz +0 -0
  410. package/payload/server/public/assets/useSubAccountSwitcher-dzDnmWq9.css +0 -1
  411. package/payload/server/public/assets/useSubAccountSwitcher-dzDnmWq9.css.br +0 -0
  412. package/payload/server/public/assets/useSubAccountSwitcher-dzDnmWq9.css.gz +0 -0
  413. package/payload/server/public/assets/useVoiceRecorder-BGqV5R6u.js.br +0 -0
  414. package/payload/server/public/assets/useVoiceRecorder-BGqV5R6u.js.gz +0 -0
  415. package/payload/server/public/assets/wrench-DQ045Pyk.js.br +0 -0
  416. package/payload/server/public/assets/wrench-DQ045Pyk.js.gz +0 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: platform-architecture
3
3
  description: Use when grounding any documented-surface claim about what SiteDesk ships — plugins, skills, specialists, install/deploy flows, internals. This is the install catalogue, not evidence of what is enabled on the current account. For install state on this account, call `capabilities-here`; for documented surface, cite the `Source:` URL inline.
4
- content-hash: sha256:5704ae2d754fce29e10cf6bb2ee38da35a78387a0ca67134d5a105f1cd004abb
4
+ content-hash: sha256:3c774bc07fd9321ebc739551ae7e7288d6995c368d7fb3f87dcd096359419a65
5
5
  brand: sitedesk-code
6
6
  product-name: SiteDesk
7
7
  ---
@@ -1355,7 +1355,7 @@ Take another snapshot immediately before any subsequent platform upgrade.
1355
1355
 
1356
1356
  ## 4. Run the installer
1357
1357
 
1358
- Run as the `admin` user (do not use `sudo`; the installer escalates internally where it needs to). The `--hostname` flag is required on a cloud VM it becomes the Cloudflare-fronted hostname and the systemd unit name.
1358
+ Run as the `admin` user (do not use `sudo`; the installer escalates internally where it needs to). The `--hostname` flag is required on a cloud VM. It sets the **OS** hostname via `hostnamectl` and names the Cloudflare-fronted host; it does **not** name the systemd units, which stay brand-derived. Measured on a netcup install 2026-07-28: passing `--hostname orchard` to `create-realagent-code` produced `hostname` = `orchard` alongside units still named `realagent-code.service`, `realagent-code-edge.service`, `realagent-code-claude-session-manager.service` and `realagent-code-rss-sampler.service`. Pass the same value on every re-run, so the flag rather than OS detection decides it.
1359
1359
 
1360
1360
  ```bash
1361
1361
  npx -y @rubytech/create-maxy-code@latest --hostname <hostname>
@@ -1995,12 +1995,22 @@ Every new node in SiteDesk's graph is created with at least one connection to an
1995
1995
 
1996
1996
  Every node also carries a provenance stamp — which agent wrote it, in which session, via which tool. You never see these fields, but they are how operators trace unusual growth back to the code path that produced it, and why your graph stays clean over time.
1997
1997
 
1998
- **Two write surfaces, one substrate.** General agents write through schema-aware helpers — SiteDesk can record a new contact, a new commitment, a new preference without ever typing a database query, and the helper enforces the connection-and-provenance rule above structurally. The graph-steward role (the specialist SiteDesk dispatches when you ask for graph hygiene — "merge those two duplicate contacts," "wire those four tasks to the meeting," "rename the legacy label across the graph") additionally has a raw Cypher write tool for the multi-step operations the helpers cannot express. The steward role internalises the same connection-and-provenance discipline in its prompt; a post-write audit emits a warning on every breach so the same rules apply to both surfaces. Both paths feed the same hourly orphan trend and the same forensic provenance fields — read-side, you cannot tell the two apart, and that is the point.
1998
+ **Two write surfaces, one substrate.** General agents write through schema-aware helpers — SiteDesk can record a new contact, a new commitment, a new preference without ever typing a database query, and the helper enforces the connection-and-provenance rule above structurally. The librarian (the specialist SiteDesk dispatches for ingest and graph hygiene — "merge those two duplicate contacts," "wire those four tasks to the meeting," "import this archive") additionally has a raw Cypher write tool, scoped to executing templates other tools emit, for the multi-step operations the helpers cannot express. The steward role internalises the same connection-and-provenance discipline in its prompt; a post-write audit emits a warning on every breach so the same rules apply to both surfaces. Both paths feed the same hourly orphan trend and the same forensic provenance fields — read-side, you cannot tell the two apart, and that is the point.
1999
1999
 
2000
2000
  ## Vertical schemas
2001
2001
 
2002
2002
  On top of the base graph, each brand boots one optional **vertical** — an extra set of entity types tailored to a trade. The vertical is named by `brand.json#vertical` and defined in a `schema-<name>.md` reference; the memory plugin loads it at startup and validates every write against base + the active vertical. Real Agent boots `schema-estate-agent` (Listing, Property, Viewing, Offer). SiteDesk boots `schema-construction`, the canonical JobLogic-derived field-service ontology, which adds the service-delivery entities — `Job`, `Customer`, `Site`, `Asset`, `Visit`, `Quote`, `QuoteLine`, `Valuation`, `VariationNote`, `JobCost`, `Part`, `PurchaseOrder`, `Invoice`, `InboundInvoice`, `PpmContract`, `WhatsAppGroup` (with `Engineer` and `Supplier` as additional labels on `Person`/`Organization`) — grounded in real builder job folders so a job's customer, site, quote, valuations, variations, costs, and received supplier invoices all hang off one `Job` node. The default SiteDesk brand boots no vertical (base graph only).
2003
2003
 
2004
+ ### Estate agents: a listing needs no photo, a property needs no listing
2005
+
2006
+ Two things SiteDesk used to refuse, and no longer does.
2007
+
2008
+ **A listing can be recorded before it has a photo.** You take the instruction on Monday and the photographer comes on Thursday. The listing exists as a business fact for those three days, so SiteDesk records it as soon as you tell it about it, with the photo and the live page link added whenever they arrive. The same applies to the link: a property's page does not exist until the site is published.
2009
+
2010
+ **A property can be recorded before it has a listing.** A property you have valued, or been asked to appraise, or are holding off-market is a real property. SiteDesk records it as the property itself, with no marketing attached, and the listing hangs off it later — the same property can be listed for sale, withdrawn, and re-listed to let without ever becoming three properties.
2011
+
2012
+ Neither gap is forgotten. Once a day SiteDesk counts the listings visible to the public that still have no photo, and the properties that still have no listing, so a gap that should have closed by now can be seen rather than guessed at. If a public listing genuinely has no photo, its property card is shown as text without one rather than with a broken image.
2013
+
2004
2014
  ## Public-facing summaries for customer-readable subjects
2005
2015
 
2006
2016
  Some entities in your graph are knowable by people outside your team — companies you work with, projects you've delivered, the business itself. For those entities (SiteDesk treats `:Organization`, `:Concept`, `:Project`, and `:LocalBusiness` this way), SiteDesk maintains two summaries: a private one only you and your specialist agents see, and a customer-facing public one your public agents are allowed to surface.
@@ -2388,7 +2398,7 @@ The `outlook` plugin gives the admin agent access to Microsoft 365 / Outlook.com
2388
2398
 
2389
2399
  1. **No app to register.** The client ID ships with the brand (`brand.json#outlookClientId`), and the installer stamps it onto the session-manager env, so there is zero operator Azure work. On a brand that ships an empty value the plugin stays inert until its vendor app exists — see `platform/plugins/outlook/references/auth.md` for the one-time-per-brand vendor provisioning runbook (a vendor step, not an operator or end-user step), including setting **Allow public client flows** to Yes.
2390
2400
  2. **Per account: register the Outlook account** — in admin chat, ask the agent to "register my Outlook account". The agent runs `outlook-account-register`, which returns a short user code and the URL `microsoft.com/devicelogin` and relays both to you.
2391
- 3. **Consent on any device** — open `microsoft.com/devicelogin` on your phone or laptop, enter the code, sign in to your Microsoft account, and consent to the requested scopes (`offline_access`, `User.Read`, `Mail.ReadWrite`, `Mail.Send`, `Calendars.ReadWrite`, `Contacts.Read`). `Mail.Send` enables sending and `Calendars.ReadWrite` enables calendar control; a mailbox last consented on an older read-only scope set must re-register before send or any calendar write succeeds. Nothing else to do: the server finishes the sign-in automatically once you consent, usually within about half a minute, and the mailbox is then connected.
2401
+ 3. **Consent on any device** — open `microsoft.com/devicelogin` on your phone or laptop, enter the code, sign in to your Microsoft account, and consent to the requested scopes (`offline_access`, `User.Read`, `Mail.ReadWrite`, `Mail.Send`, `Mail.ReadWrite.Shared`, `Mail.Send.Shared`, `Calendars.ReadWrite`, `Contacts.Read`). `Mail.Send` enables sending, `Calendars.ReadWrite` enables calendar control, and the two `.Shared` scopes let this mailbox reach a shared mailbox it has Full Access to; a mailbox last consented on an older scope set must re-register before send, any calendar write, or any shared mailbox succeeds. Nothing else to do: the server finishes the sign-in automatically once you consent, usually within about half a minute, and the mailbox is then connected.
2392
2402
  4. **Done.** Subsequent tool calls (mail, calendar, contacts) use the persisted refresh token transparently.
2393
2403
  5. **Several mailboxes on one account.** Register again to add a second mailbox; it is stored alongside the first, not in place of it. Every operational tool then takes an optional `mailbox` argument — an email address or graphUserId. With one mailbox, omit it. With two or more, name it; omitting it returns a refusal listing the connected mailboxes. `outlook-mailbox-list` shows every connected mailbox. Only one registration runs at a time per account; starting another while one is live returns an in-progress signal.
2394
2404
 
@@ -2415,12 +2425,32 @@ The `outlook` plugin gives the admin agent access to Microsoft 365 / Outlook.com
2415
2425
  | `outlook-calendar-freebusy` | Availability for one or more addresses over a window. |
2416
2426
  | `outlook-contacts-list` | Top contacts. Default top=50. |
2417
2427
  | `outlook-mailbox-info` | Health probe for one mailbox — auth state, refresh-window, folder count. Name the mailbox with `mailbox` when several are attached. |
2418
- | `outlook-mailbox-list` | Every connected mailbox with its email, scopes, and token health. Local only — no network — so it also flags a mailbox whose stored credentials cannot be read. |
2428
+ | `outlook-mailbox-list` | Every connected mailbox with its email, scopes, and token health, signed-in and shared alike (`kind`, and `via` for a shared one). Local only by default — no network — so it also flags a mailbox whose stored credentials cannot be read. `verify:true` additionally probes each shared mailbox and reports `reachable`. |
2429
+ | `outlook-shared-mailbox-add` | Attach a shared mailbox (no sign-in, no licence) through the Full Access of a mailbox that is already connected. `address` is the shared mailbox; `via` names the connected mailbox when more than one is attached. Proves the access before storing anything, so a refusal is the real answer. |
2430
+ | `outlook-shared-mailbox-remove` | Detach a shared mailbox. Drops the pointer only; no credential is touched. |
2419
2431
  | `outlook-mail-send` | Send a message. No attachments → `POST /me/sendMail`; with attachments → draft, attach, send (`/me/sendMail` carries attachments inline and cannot fit a large file). to/cc/bcc arrays, subject, body, isHtml, attachments (account-dir paths, 25 MB/file). Success asserted on Graph 202; no message id on either route. Needs `Mail.Send` (+ `Mail.ReadWrite` to attach). |
2420
2432
  | `outlook-draft` | Create a draft in Drafts, either a new message or a threaded reply. Returns the draft id; never sends. Attachments are attached before the id is returned, so the draft is ready to send. Needs `Mail.ReadWrite`. **New message** (no `replyToMessageId`): `POST /me/messages`, requires `to` + `subject`, same body model as `outlook-mail-send`, threads under nothing. **Threaded reply** (`replyToMessageId` = the id of the message being answered): `POST /me/messages/{id}/createReply` — the draft carries the parent's conversationId, so it lands under the original. This is the only way to draft a reply without sending it: `outlook-mail-reply` threads but always sends. Graph sets the recipients and `RE:` subject from the original and composes the body above its own quote, matching what `outlook-mail-reply` sends, so the threaded path is **plain text only** — `to`, `subject`, and `isHtml: true` are **refused** (not ignored) when replying. `replyAll` includes everyone on the original; `cc`/`bcc` add recipients. |
2421
2433
  | `outlook-draft-edit` | Update an existing draft in place (`PATCH /me/messages/{draftId}`) and/or add and remove attachments. Graph drafts are mutable — pass draftId plus the fields to change (to/cc/bcc/subject/body/isHtml/attachments/removeAttachments). `attachments` adds; `removeAttachments` takes files off by name or attachment id; both together replace a file in one call. Sent messages cannot be edited. Needs `Mail.ReadWrite`. |
2422
2434
  | `outlook-draft-send` | Send an existing draft by id (`POST /me/messages/{id}/send`). Graph consumes the draft, returns 202. Needs `Mail.Send`. |
2423
2435
 
2436
+ ## Shared mailboxes
2437
+
2438
+ A shared mailbox (`team@`, `info@`, `accounts@`) has no sign-in of its own, so nobody can connect it the way a normal mailbox is connected. **It does not need a licence and should never be given one for this.** Whoever has Full Access to it connects their own mailbox in the normal way, then attaches the shared one to it:
2439
+
2440
+ ```
2441
+ outlook-shared-mailbox-add address=team@yourcompany.com
2442
+ ```
2443
+
2444
+ Add `via=<your address>` if this account has more than one mailbox connected. From then on the shared address works as the `mailbox` argument on any mail tool, and `outlook-mailbox-list` shows it as `kind:delegated`.
2445
+
2446
+ The attach call checks the access before it stores anything, so what it says back is the real state of things:
2447
+
2448
+ - **"does not have Full Access"** — the delegation is missing. Grant it in the Microsoft 365 admin centre: Teams & groups → Shared mailboxes → the mailbox → Members / Read and manage. Nothing is purchased.
2449
+ - **"no mailbox with this address in the tenant"** — the address is wrong, or it is a distribution list. A distribution list has no mailbox and cannot be attached.
2450
+ - **"connected without the Mail.ReadWrite.Shared scope"** — your mailbox was connected before the plugin asked for the shared scopes. Register it again and it will work.
2451
+
2452
+ Mail only: calendar and contacts tools refuse on a shared mailbox and say so. If a shared mailbox stops answering, the delegation was probably removed in Exchange — `outlook-mailbox-list verify:true` reports which ones are still reachable.
2453
+
2424
2454
  ## Drafting to a Contact
2425
2455
 
2426
2456
  When the admin agent drafts or sends a message to a known contact, it reads that contact's record first and applies any routing the record carries, for example a preferred send-to address, showing the result for your approval before anything is sent.
@@ -2440,7 +2470,10 @@ All log lines start with `[outlook-mcp]` and write to `server.log`. They are key
2440
2470
  | /me failed post-token | `me-failed account=<id> status=<N>` |
2441
2471
  | Auth ok | `auth-ok account=<id> graphUserId=<id> mail=<addr> scopes=<csv> tokenExpSec=<N>` |
2442
2472
  | Registration already in flight | `register-in-progress account=<id>` (start refused; one device-code flow at a time) |
2443
- | Credential resolve | `cred-resolve account=<id> mailbox=<id-or-empty> source=arg|sole|none|refused` — names the resolved mailbox and how it was chosen; `source=refused` is the ambiguity/not-found refusal |
2473
+ | Credential resolve | `cred-resolve account=<id> mailbox=<id-or-empty> source=arg|sole|none|refused kind=signed-in|delegated via=<delegator-or-empty>` — names the resolved mailbox and how it was chosen; `source=refused` is the ambiguity/not-found refusal, and `kind=delegated` means the call ran against a shared mailbox through `via` |
2474
+ | Shared mailbox attached | `shared-add account=<id> address=<addr> via=<key> outcome=ok|ok-reattached|no-scope|forbidden|not-found` — every refusal path is named, so a failed attach is diagnosable without reproducing it |
2475
+ | Shared mailbox detached | `shared-remove account=<id> address=<addr> outcome=ok|absent` |
2476
+ | Calendar/contacts on a shared mailbox | `shared-tool-refused account=<id> tool=<tool> prefix=<users-path>` — refused before any request is built |
2444
2477
  | Token refreshed | `token-refreshed account=<id> oldExpSec=<N> newExpSec=<N>` |
2445
2478
  | Refresh failed | `token-refresh-failed account=<id> reason=<err>` (terminal) |
2446
2479
  | Mail list | `mail-list op=resolve account=<id> folderIn=<name> folderResolved=<token> asRawId=<bool> count=<N> elapsedMs=<N>` (on error, `error=<msg>` replaces `count`) |
@@ -2458,7 +2491,7 @@ All log lines start with `[outlook-mcp]` and write to `server.log`. They are key
2458
2491
  | Scope insufficient | `scope-insufficient tool=<t> account=<id> missing=Calendars.ReadWrite` (stale read-only consent) |
2459
2492
  | Contacts list | `contacts-list account=<id> count=<N> elapsedMs=<N>` |
2460
2493
  | Mailbox info | `mailbox-info account=<id> tokenWithinRefreshWindow=<bool> folderCount=<N>` |
2461
- | Mailbox list | `mailbox-list account=<id> count=<N> unreadable=<N>` (unreadable>0 flags an orphaned or corrupt mailbox store) |
2494
+ | Mailbox list | `mailbox-list account=<id> count=<N> unreadable=<N> addressable=<N> delegated=<N> verified=<N>` — `count` covers signed-in plus delegated entries, `addressable` counts only signed-in ones that are usable by their email, `delegated` counts the attached shared mailboxes, and `verified` is how many of those were probed (0 unless `verify:true`). `unreadable>0` flags an orphaned or corrupt mailbox store |
2462
2495
  | Graph error | `graph-error account=<id> status=<N> code=<graphErrorCode> retryAfterMs=<N-or-null>` — writes flow through the same `callGraph` loop, so a failed write logs `graph-error` too |
2463
2496
  | On-prem rejected | `on-prem-rejected account=<id> mailServer=<host>` (terminal) |
2464
2497
  | Scope insufficient | `scope-insufficient account=<id> tool=<t> missing=Mail.Send` (terminal — re-register to grant send) |
@@ -3300,13 +3333,95 @@ The route (`server/routes/admin/routines.ts`) is account-scoped like `calendar.t
3300
3333
  | `GET /api/admin/routines` | Lists automation Events: `recurrence IS NOT NULL OR agentChannel IS NOT NULL OR actionPlugin IS NOT NULL`. Keyed by the `eventId` property. |
3301
3334
  | `GET /api/admin/routines/:eventId` | One routine, same automation+account guard. |
3302
3335
  | `PATCH /api/admin/routines/:eventId` | Edits `agentPrompt` and/or `recurrence`. Cron validation and the timezone-aware `nextRun` recompute copy the scheduling plugin's `schedule-update` tool. An invalid cron is rejected 400 with no write. Only creation and deletion stay agent-only (`schedule-event`/`schedule-cancel`). |
3336
+ | `POST /api/admin/routines/:eventId/suspend` | Writes `eventStatus = 'suspended'` on a routine currently `'scheduled'`. 404s otherwise, so a second suspend is not a silent no-op. |
3337
+ | `POST /api/admin/routines/:eventId/resume` | Returns a suspended routine to `'scheduled'`. 404s if it is not suspended, 409s if it cannot be resumed. |
3338
+ | `POST /api/admin/routines/suspend-all` | Suspends every routine currently `'scheduled'` and marks each one. Returns the count. |
3339
+ | `POST /api/admin/routines/resume-all` | Resumes only the routines `suspend-all` marked. Returns `restored` and a `refused` list. |
3340
+
3341
+ **Suspension is the reversible stop.** Before it, the only way to stop a routine
3342
+ from the dashboard was to delete it. A suspended routine keeps its schedule, its
3343
+ instruction and its history; it simply stops being selected. The enforcement is
3344
+ not a new guard: all four `eventStatus = 'scheduled'` predicates in
3345
+ `check-due-events.ts` are equalities, so any other status is excluded by
3346
+ construction, and `'suspended'` is the literal the shipped roster already seeds
3347
+ with.
3348
+
3349
+ The status write lives on dedicated routes rather than on `PATCH`, which admits
3350
+ only `agentPrompt` and `recurrence` and 400s on anything else. Widening `PATCH`
3351
+ would put a free-form status on the edit path.
3352
+
3353
+ **Resume schedules forward and never backfills.** For a recurring routine
3354
+ `nextRun` is recomputed from the cron in the routine's own timezone; the stored
3355
+ value is deliberately not restored, because the sweep selects `nextRun <= now`
3356
+ and a stale one fires on the next tick. A one-time routine has no cron to
3357
+ advance, so resuming one whose date has passed is refused (409) with the date
3358
+ named — resuming it would run it immediately, for a window the operator did not
3359
+ choose. A one-time routine still in the future resumes with its date untouched.
3360
+
3361
+ **Suspend-all acts on exactly the dispatchable set**, so the number on the
3362
+ control is the number of routines that could have fired; rows already due,
3363
+ cancelled or suspended are untouched and a deliberately cancelled routine is
3364
+ never re-armed. Each row it stops is marked, and resume-all selects only marked
3365
+ rows — a routine suspended one at a time carries no mark and stays suspended,
3366
+ which is what makes resume-all safe to press. The seeded roster is unmarked by
3367
+ construction, so resume-all never enables it.
3303
3368
 
3304
3369
  Observability rides `[admin:routines]`: `op=list accountId=<8> count=<n>`,
3305
- `op=get id=<8> found=<bool>`, and `op=patch id=<8> fields=<…> outcome=ok|rejected
3306
- reason=<invalid-cron|not-found> nextRun=<…> cron=<serialized>`. A `count=0` while
3307
- routines exist for the account is the account-scope-miss signature; the logged
3308
- `cron=` on `outcome=ok` confirms the persisted expression without opening the
3309
- graph.
3370
+ `op=get id=<8> found=<bool>`, `op=patch id=<8> fields=<…> outcome=ok|rejected
3371
+ reason=<invalid-cron|not-found> nextRun=<…> cron=<serialized>`, and
3372
+ `op=suspend|resume id=<8> scope=<one|all> outcome=<applied|refused|failed>` with
3373
+ `count=`/`restored=` and, on a refusal, `reason=<not-scheduled|not-suspended|
3374
+ past-one-time|invalid-cron>`. A `count=0` while routines exist for the account is
3375
+ the account-scope-miss signature; the logged `cron=` on `outcome=ok` confirms the
3376
+ persisted expression without opening the graph.
3377
+
3378
+ Two scheduler-side lines close the loop, because a suspend that the sweep ignores
3379
+ looks identical to a healthy routine until it fires. `[schedule-sweep]
3380
+ op=skip-suspended account=<8> count=<n>` is emitted every sweep for every local
3381
+ account including zero, filtered to automation rows by the same predicate the
3382
+ routes and the census use, so all three count one set. Nothing else in the sweep
3383
+ ever mentions a suspended row, so without this line the whole class is invisible
3384
+ there and a suspension that stopped holding would look exactly like one that
3385
+ still holds. `[schedule-audit] op=suspension-census acct=<8> routines=<n>
3386
+ dispatchable=<n> suspended=<n> due=<n> cancelled=<n> completed=<n> other=<n>` is
3387
+ the standing reconciliation: the named buckets are the whole shipped status enum
3388
+ plus `suspended`, so they sum to `routines` by construction and `other` above
3389
+ zero means a routine carries a status the system does not handle — nothing else
3390
+ would say so. `completed` gets its own bucket even though no code path writes it
3391
+ today, because `schedule-update` takes `eventStatus` as an unvalidated string and
3392
+ one completed routine would otherwise pin `other` above zero forever and kill the
3393
+ alarm.
3394
+
3395
+ **The shipped roster.** Every account starts with ten routines — `start-of-day`,
3396
+ `inbound-check`, `end-of-day`, `appointment-reminder`, `commitment-chase`,
3397
+ `calendar-reconcile`, `contact-reconcile`, `crm-reconcile`, `finance-reconcile`,
3398
+ `weekly-digest` — seeded `eventStatus:'suspended'` with `nextRun` NULL and no
3399
+ channel or destination, so `/routines` is a catalogue to enable rather than a
3400
+ blank page. The list query applies no status filter and `AUTOMATION_WHERE`
3401
+ admits them on `recurrence IS NOT NULL`, so they render with no change here.
3402
+ They cannot fire: every dispatch query in `check-due-events.ts` selects
3403
+ `eventStatus = 'scheduled'`, and the recurring one additionally requires
3404
+ `nextRun IS NOT NULL`.
3405
+
3406
+ Enabling one is `schedule-update {eventId, eventStatus:'scheduled', recurrence,
3407
+ timezone}` — all four arguments. `eventStatus` on its own does not touch
3408
+ `nextRun`, so the row would read enabled and never fire; omitting `timezone`
3409
+ recomputes `nextRun` in the server's zone rather than the operator's, so it
3410
+ fires at the wrong hour and still looks healthy. Binding a channel and a
3411
+ destination is separate and equally required: `chooseDispatchMode` returns
3412
+ `{kind:'none'}` unless `agentChannel`, `agentDestination` and `agentPrompt` are
3413
+ all present, and a destination cannot be seeded because
3414
+ `validateAgentDestination` is fail-closed against the account's
3415
+ `whatsapp.adminPhones` / `telegram.adminUsers`, both empty on a fresh install.
3416
+
3417
+ The seed re-runs on every upgrade and never writes `eventStatus`,
3418
+ `agentChannel`, `agentDestination`, `recurrence` or `timezone` on a row that
3419
+ already exists, so an upgrade cannot re-suspend an enabled routine, unbind a
3420
+ bound destination or reset a retimed cron. Three standing checks ride the
3421
+ scheduling heartbeat and report on every tick including zero:
3422
+ `[schedule-audit] op=roster` (a seed that never ran or ran short),
3423
+ `op=dispatch-mode-none` (a routine that fires and delivers nothing) and
3424
+ `op=null-timezone` (a routine that fires at the box's hour).
3310
3425
 
3311
3426
  ### Skills
3312
3427
 
@@ -3361,7 +3476,9 @@ both `kind: 'specialist'` and differ only by origin.
3361
3476
  `agent-builder`). The specialist modal shows the model, tools, the owning
3362
3477
  plugin's skills, and the system-prompt body. Specialists are authored, edited,
3363
3478
  and deleted through chat (`agent-builder` / `specialist-management`), so the
3364
- specialist modal offers no delete or open-agent link.
3479
+ specialist modal offers no delete or open-agent link. **These are the only
3480
+ agents that can be switched off from this page**, and the route enforces that
3481
+ rather than relying on the UI to withhold the control.
3365
3482
  - **Shipped specialists** (`origin: 'shipped'`) — the union of
3366
3483
  `<accountDir>/specialists/agents/`, `<accountDir>/specialists/agents-disabled/`
3367
3484
  and `PLATFORM_ROOT/templates/specialists/agents/`, in that precedence order.
@@ -3369,22 +3486,27 @@ both `kind: 'specialist'` and differ only by origin.
3369
3486
  a disabled agent still appears there through its bundled-template row. The
3370
3487
  route once walked only the account plugins tree, so the twelve
3371
3488
  highest-capability agents on the box were the ones the operator could not see.
3372
- These are the only agents that can be disabled, and the route enforces that
3373
- rather than relying on the UI to withhold the control.
3489
+ **A shipped agent cannot be switched off here.** It is part of the product, so
3490
+ disabling one breaks a capability the operator did not author and cannot
3491
+ repair, and it is not what runs unattended: an agent runs only when something
3492
+ dispatches it, an inbound message is operator-initiated, so the only autonomous
3493
+ path is the scheduler. The modal says so and points at the routines instead.
3374
3494
  **A file in the LIVE directory whose name also exists under
3375
3495
  `<accountDir>/plugins/*/agents/` is excluded from this set.** `agent-builder`
3376
3496
  copies the authored file into `specialists/agents/` because presence there is
3377
3497
  what makes an agent dispatchable, so the live directory says nothing about who
3378
3498
  wrote the agent and every activated user-created specialist used to render
3379
3499
  twice, the second time as Shipped. The account plugin tree is the authorship
3380
- evidence and its row wins, which is also why `disable` refuses a slug present
3381
- under `plugins/*/agents/`: quarantine exists to stop provisioning re-delivering
3382
- a file, and provisioning never writes that tree. Both gates read filenames off
3383
- disk, so a plugin file whose frontmatter does not parse still suppresses its
3384
- live twin it is authored either way, and `specialistsSkipped` is what reports
3385
- the parse failure. The exclusion applies to the live copy only: a copy found in
3386
- quarantine is operator state, keeps its Shipped row and its `disabled:true`,
3387
- and is therefore still switchable back on. Each exclusion logs
3500
+ evidence and its row wins; it is the same discriminator `disable` requires.
3501
+ Both gates read filenames off disk, so a plugin file whose frontmatter does not
3502
+ parse still suppresses its live twin it is authored either way, and
3503
+ `specialistsSkipped` is what reports the parse failure. **The exclusion covers
3504
+ both account directories, live and quarantine.** It was live-only while only a
3505
+ shipped agent could be quarantined; now that an authored specialist can be
3506
+ switched off, its specialist row carries the plugin, the skills, the detail
3507
+ route and its own disabled state, so a second row from the shipped walk would
3508
+ be a duplicate with none of that. The bundled templates are never deduped: a
3509
+ bundled name is shipped by definition. Each exclusion logs
3388
3510
  `op=list-shipped-dedup file=<name>` and the count rides `op=list` and the
3389
3511
  response as `deduped`.
3390
3512
 
@@ -3412,35 +3534,137 @@ no class is dashed and uncoloured rather than painted as if it were understood.
3412
3534
  Badge colours come from the shared semantic status set: `-solid` with white text
3413
3535
  for the badge, `-tint` with `-textOnTint` for a chip, never white.
3414
3536
 
3537
+ **No tool name on a card.** The card renders the badge word and the plugin (or,
3538
+ for a public agent, its status). It does not render `riskiestTool`: a qualified
3539
+ tool symbol tells the person reading this dashboard nothing the badge word did
3540
+ not. `riskiestTool` stays on the wire and on the `op=risk` line as a diagnostic,
3541
+ so a wrong class is still traceable to the tool that set it without re-deriving
3542
+ the classification.
3543
+
3544
+ **Combination rules.** The per-tool max answers "what is the worst single thing
3545
+ this agent can do". It cannot answer "what can it do in sequence", which is the
3546
+ question the person reading the dashboard is actually asking: an agent that
3547
+ reads a customer record and an agent that emails a stranger are both red, and so
3548
+ is the one that does both. Four rules in `server/lib/agent-risk.ts` run *after*
3549
+ the max. A rule fires when **every** risk class it names is present among the
3550
+ resolved tools and its own class is not below the class the max produced; the
3551
+ first match in table order wins and supplies the sentence the modal renders.
3552
+
3553
+ | Rule | Fires when the agent holds | Class | What the operator reads |
3554
+ |---|---|---|---|
3555
+ | `changes-and-sends` | a `write_local` tool and an `external` tool | red | It can change your records and also send messages out, so a wrong change can reach someone outside the business. |
3556
+ | `reads-and-sends` | a `read` tool and an `external` tool | red | It can read what is held on this device and also send things out of it, so anything it reads can leave. |
3557
+ | `changes-and-runs` | a `write_local` tool and an `exec` tool | red | It can change files on this device and run commands, so a mistake is not confined to one file. |
3558
+ | `reads-and-runs` | a `read` tool and an `exec` tool | red | It can read what is held on this device and run commands on it. |
3559
+
3560
+ The order is the priority order: reaching outside the business outranks running
3561
+ a command inside it, and changing something outranks reading it. A rule may only
3562
+ **raise** a class, never lower one, and because `exec` and `external` both
3563
+ saturate at red today every rule is itself red — so on the shipped fleet the
3564
+ rules change no colour and their whole product is the named hazard in words. A
3565
+ rule whose class sat below the derived one would be skipped rather than applied,
3566
+ so a softer sentence can never be attached to a harder class.
3567
+
3568
+ With no rule matched the sentence comes from the class itself: green says it can
3569
+ only read, amber says it can change what is held here and nothing reaches
3570
+ outside, red says it can run commands or reach services outside. The three
3571
+ forced-red paths carry their own sentences instead, because none of them derived
3572
+ a capability: a tool with no risk class on this install, an agent with no
3573
+ `tools:` line at all, and a plugin registry that failed to load.
3574
+
3575
+ Of the four rules, three fire on the twelve shipped specialists
3576
+ (`changes-and-sends`, `changes-and-runs`, `reads-and-runs`) and `reads-and-sends`
3577
+ fires on none of them, which is what the `op=rule-census` line exists to report
3578
+ across real accounts.
3579
+
3415
3580
  **Disable.** `<accountDir>/specialists/agents/` is the live dispatchable set —
3416
3581
  `spawn-context.ts` reads it to build the spawn manifest — so disabling **moves**
3417
- the agent file to `<accountDir>/specialists/agents-disabled/` and records the
3418
- basename in a 0600 `<accountDir>/agents-disabled.json`. A flag alone would leave
3419
- the agent running while the card claimed otherwise.
3420
-
3421
- The file is moved, never deleted: a premium `--` agent and an operator-edited
3422
- override each exist only in the account dir, so deleting one and later restoring
3423
- from the bundled template would hand back a different agent than the operator
3424
- switched off. A disabled agent stays listed, marked `Disabled`, because an agent
3425
- that vanished from the surface that disabled it could never be switched back on.
3426
-
3427
- `provision-account-dir.sh` re-reads the store after its core-specialist recopy
3428
- and removes anything named in it, so an upgrade does not silently re-deliver a
3429
- disabled agent. An unreadable store withholds nothing and says so: a corrupt
3430
- file is not evidence that an agent was disabled.
3431
-
3432
- Disabling also reconciles the admin's routing prose. `agents/admin/AGENTS.md`
3433
- carries one `- **specialists:<name>**:` line per dispatchable specialist, and
3582
+ the agent file to `<accountDir>/specialists/agents-disabled/`. A flag alone would
3583
+ leave the agent running while the card claimed otherwise. `agent-builder` copies
3584
+ an authored specialist into that same live directory, because presence there is
3585
+ what makes it dispatchable, so the same move applies to it.
3586
+
3587
+ The file is moved, never deleted: an authored specialist's activated copy can
3588
+ carry operator edits its plugin-tree original does not, so deleting one and later
3589
+ restoring "the original" would hand back a different agent than the operator
3590
+ switched off. A disabled agent stays listed, because an agent that vanished from
3591
+ the surface that disabled it could never be switched back on.
3592
+
3593
+ **Authorisation is drawn in both states.** Every specialist card carries a
3594
+ `Live` or `Stood down` pill, and the header above the list reads
3595
+ `<n> agents · <n> stood down`, derived from the same rows the cards render.
3596
+ Drawing only the disabled half made a live agent indistinguishable from a pill
3597
+ that failed to render, and left the operator counting cards to answer how much
3598
+ of the fleet was switched off. Public agents carry no pill: they have no disable
3599
+ path, so `Live` there would assert something the surface never derived.
3600
+
3601
+ **The disable confirm names what stops.** Before the confirm it reads
3602
+ `Stop this agent being dispatched?` plus the skills that run through the agent
3603
+ and the fact that nothing can hand it work until it is switched back on. It does
3604
+ **not** name the routines that dispatch the agent, and cannot: a routine
3605
+ `:Event` stores `agentChannel`, `agentDestination` and `agentPrompt`, never an
3606
+ agent, so there is nothing on disk to join against. A shipped agent's detail
3607
+ also carries no skills, because a shipped specialist owns no skills directory, so
3608
+ today the skills clause appears only on a plugin-backed specialist. The
3609
+ shipped-agent sentence is a different thing and does not conflict: it names
3610
+ suspending routines as the general way to stop unattended dispatch, which is
3611
+ true of every shipped agent, rather than claiming this one's routines can be
3612
+ listed.
3613
+
3614
+ Three cases, no more. Authored with a live copy → moved to quarantine. Authored
3615
+ with no live copy → refused 409: it is not in the dispatchable set, so there is
3616
+ nothing to switch off and recording one would claim work that did not happen.
3617
+ Not authored → refused 404, naming the routines as what stops it instead.
3618
+
3619
+ **Enable is deliberately not symmetric, and takes no authorship check.** An
3620
+ install that disabled a shipped agent before the gate was inverted holds it in
3621
+ the quarantine directory and names it in `agents-disabled.json`; requiring
3622
+ authorship on enable would strand it there with no route back through the
3623
+ product. So enable serves both classes: a quarantined authored specialist, and a
3624
+ shipped agent disabled under the old rule (whether it was moved, or was
3625
+ bundled-only and recorded in the store alone).
3626
+
3627
+ **Nothing writes `agents-disabled.json` any more.** That 0600 store exists only
3628
+ to stop the next provisioning run re-delivering a withheld shipped file —
3629
+ `provision-account-dir.sh` re-reads it after its core-specialist recopy and
3630
+ removes anything named in it — and shipped disable is now refused, so no new
3631
+ entry can be created. An authored specialist needs no entry either: provisioning
3632
+ never writes the account plugin tree, so the quarantined file is its whole state.
3633
+ The store is now read-and-clear: the listing reads it for shipped rows and enable
3634
+ clears entries from it, rewriting it whole and re-applying 0600 explicitly
3635
+ (`writeFileSync`'s `mode` applies only on creation, and nothing creates this file
3636
+ now). An unreadable store withholds nothing and says so: a corrupt file is not
3637
+ evidence that an agent was disabled.
3638
+
3639
+ Both routes reconcile the admin's routing prose. `agents/admin/AGENTS.md` carries
3640
+ one `- **specialists:<name>**:` line per dispatchable specialist, and
3434
3641
  `agents-md-bootstrap.sh` used to only ever append, so a disabled agent stayed
3435
3642
  advertised and the admin dispatched to a file that was no longer there. The
3436
- script now withholds a line for every name in the store, and both routes exec it
3437
- after the move, so the prose is right immediately rather than after the next
3643
+ script withholds a line for every name in the store and both routes exec it after
3644
+ the move, so the prose is right immediately rather than after the next
3438
3645
  provisioning run. It emits `[agents-md] op=specialist-lines account=<id8>
3439
- kept=<n> withheld=<comma-list|none|store-unreadable>`. `system-status` reads the
3440
- same store, so a disabled agent reports `disabled (operator)` rather than
3646
+ kept=<n> withheld=<comma-list|none|store-unreadable>`. Note the reach, because it is not
3647
+ symmetric: the script skips every `--` filename as out of scope, and its prune is
3648
+ keyed on a store basename (`acme--helper`) while the routing line is keyed on the
3649
+ frontmatter name (`helper`) that the activation path in `specialist-management`
3650
+ wrote. So the bootstrap can neither remove nor restore an authored specialist's
3651
+ line, and before this change that did not matter because that class could not be
3652
+ disabled at all. It is now the only class that can be, so the route makes a
3653
+ second, targeted pass for it, reading the name from whichever copy of the file
3654
+ exists after the move and emitting `op=agents-md-authored`. Without it the admin
3655
+ would keep advertising a specialist whose file is quarantined and dispatch would
3656
+ fail inside the turn, which is the defect the bootstrap's prune was written to
3657
+ prevent, on the one class it does not reach. `system-status` reads the same store, so a shipped agent
3658
+ disabled under the old rule reports `disabled (operator)` rather than
3441
3659
  `missing file`, and the header counts the two separately
3442
3660
  (`<n> registered, missing=<x> disabled=<y>`).
3443
3661
 
3662
+ Observability rides `[admin/agents] op=disable|enable accountId=<8> slug=<s>
3663
+ origin=<specialist|shipped> eligible=<bool> outcome=<applied|refused|failed>`
3664
+ with `reason=<not-user-created|not-dispatchable|not-disabled>` on a refusal.
3665
+ `eligible=false outcome=refused` is what proves the gate is live rather than
3666
+ merely re-labelled in the UI.
3667
+
3444
3668
  **Account scope.** The route (`server/routes/admin/agents.ts`) never infers an
3445
3669
  account from device state. The two reads resolve from the caller's admin session
3446
3670
  (`requireAdminSession` + the shared `accountDirForSession` in
@@ -3454,10 +3678,10 @@ explicit `?plugin=` parameter, not inferred from `--` in the slug.
3454
3678
 
3455
3679
  | Route | Behaviour |
3456
3680
  |-------|-----------|
3457
- | `GET /api/admin/agents` | Session-scoped. Lists the session account's public `agents/*/` dirs (never the `admin` agent), its user-created specialists from `plugins/*/agents/*.md`, and its shipped specialists, each row tagged `kind` and `origin` and carrying `risk`, `riskiestTool`, `unresolved` and `disabled`. A live-directory candidate whose filename also exists under `plugins/*/agents/` is dropped and counted, so an activated user-created agent is listed once. Returns `{agents, accountId, skipped, specialistsSkipped, shippedSkipped, deduped, riskSurfaceFailed}`. 401 when the session maps to no account. |
3458
- | `GET /api/admin/agents/:slug` | Session-scoped. Without `?plugin=` or `?origin=`, returns a public agent's config fields + four owned docs + a `present` map (a missing or unreadable doc is `''`/`present.<role>=false`, never a 500). With `?plugin=`, that plugin's user-created specialist; with `?origin=shipped`, the shipped one. Both specialist shapes add `{risk, riskiestTool, unresolved, byTool, disabled}`, where `byTool` is one class per declared tool. Selection is explicit rather than inferred, because a premium file and a user-created specialist under a plugin of the same name produce the same slug. Unknown 404s, 401 as above. |
3459
- | `POST /api/admin/agents/:slug/disable?accountId=` | Shipped agents only, enforced here: a slug present in none of the three shipped directories 404s, and so does a slug present under `plugins/*/agents/` (a user-created specialist, `reason=user-created-specialist`), because its activated copy in the live directory would otherwise pass the shipped test. Moves the file from `specialists/agents/` to `specialists/agents-disabled/` and records the basename in the 0600 store. Returns `{ok, moved}`; `moved:false` means the agent existed only as a bundled template, so nothing was there to move and the store entry is what stops the next provisioning run delivering it. The store is read strictly before anything moves, so an unreadable store 500s with the file untouched rather than rewriting the file whole from an empty set and dropping every other disabled agent. Returns `routingReconciled`, which is `false` when the AGENTS.md reconcile threw: the move and the store write already happened, so the request is not failed, and the caller is told rather than left assuming the prose is correct. Same `accountId` contract as delete. |
3460
- | `POST /api/admin/agents/:slug/enable?accountId=` | Covers both of disable's outcomes. Returns `{ok, restored}`: a quarantined file moves back (`restored:true`); a bundled-only agent has nothing to move, so clearing the store entry is the whole job (`restored:false`), which is what stops provisioning withholding it. Treating that second case as "nothing to restore" made disable a one-way door. 404 only when neither directory nor store knows the agent. Carries the same `routingReconciled` field; the restored file is what puts the routing line back. |
3681
+ | `GET /api/admin/agents` | Session-scoped. Lists the session account's public `agents/*/` dirs (never the `admin` agent), its user-created specialists from `plugins/*/agents/*.md`, and its shipped specialists, each row tagged `kind` and `origin` and carrying `risk`, `riskiestTool`, `riskRule`, `riskReason`, `unresolved` and `disabled`. A live-directory candidate whose filename also exists under `plugins/*/agents/` is dropped and counted, so an activated user-created agent is listed once. Returns `{agents, accountId, skipped, specialistsSkipped, shippedSkipped, deduped, riskSurfaceFailed}`. 401 when the session maps to no account. |
3682
+ | `GET /api/admin/agents/:slug` | Session-scoped. Without `?plugin=` or `?origin=`, returns a public agent's config fields + four owned docs + a `present` map (a missing or unreadable doc is `''`/`present.<role>=false`, never a 500). With `?plugin=`, that plugin's user-created specialist; with `?origin=shipped`, the shipped one. Both specialist shapes add `{risk, riskiestTool, riskRule, riskReason, unresolved, byTool, disabled}`, where `byTool` is one class per declared tool. Selection is explicit rather than inferred, because a premium file and a user-created specialist under a plugin of the same name produce the same slug. Unknown 404s, 401 as above. |
3683
+ | `POST /api/admin/agents/:slug/disable?accountId=` | Agents the operator authored only, enforced here rather than left to the UI: a slug NOT present under `plugins/*/agents/` 404s (`reason=not-user-created`), and the message names suspending the routines as what stops a shipped agent instead. An authored slug with no copy in `specialists/agents/` 409s (`reason=not-dispatchable`): it is already not dispatchable, so there is nothing to move and nothing to record. Otherwise it moves the file from `specialists/agents/` to `specialists/agents-disabled/` and returns `{ok, moved:true}` the only outcome, since the two other cases refuse. It writes NO store entry: `agents-disabled.json` exists to stop provisioning re-delivering a withheld shipped file, and provisioning never writes the account plugin tree. Returns `routingReconciled`, false when either AGENTS.md pass threw; the move already happened and already stopped dispatch, so the request is not failed and the caller is told rather than left assuming the prose is right. Same `accountId` contract as delete. |
3684
+ | `POST /api/admin/agents/:slug/enable?accountId=` | Takes NO authorship check, and that asymmetry with disable is deliberate: an install that switched a shipped agent off under the old gate must still reach this route, or inverting the gate strands it. For an authored slug the quarantined file is the whole state — 404 when it is absent, `restored:true` when it moves back, and the store is never touched. For a shipped slug it covers both of the old disable's outcomes: a quarantined file moves back (`restored:true`), and a bundled-only agent has nothing to move so clearing the store entry is the whole job (`restored:false`), which is what stops provisioning withholding it. 404 only when neither the quarantine directory nor the store knows the slug. The store is read strictly first, because this is the read half of a read-modify-write that rewrites the file whole, and it is written back only when an entry was actually removed — so enabling never creates a store an account did not have. |
3461
3685
  | `DELETE /api/admin/agents/:slug?accountId=` | Public agents only, on the named validated account. Removes the dir after `deleteAgentProjection`; refuses the `admin` slug (403) and a missing/unknown `accountId` (400) with no write. Loud-fail: a graph-cleanup throw aborts the file removal. |
3462
3686
  | `POST /api/admin/agents/:slug/project?accountId=` | Re-projects the named account's on-disk agent into the graph. Same `accountId` contract as delete. |
3463
3687
 
@@ -3491,25 +3715,40 @@ Agents page survived undiagnosed on a multi-account install.
3491
3715
  does not add up is visible without reproducing anything. The over-exclusion to
3492
3716
  watch for is a `deduped` line naming a file that is also a bundled or premium
3493
3717
  agent: the authored file then hides a genuinely shipped one.
3494
- - `op=classify account=<id8> agent=<name> origin=<shipped|public|specialist>
3495
- risk=<green|amber|red> riskiestTool=<tool> tools=<n> unresolved=<comma-list|none>
3496
- disabled=<bool>` — one line per classified agent per listing, so it fires on
3497
- every page load. `riskiestTool` makes a wrong class diagnosable without
3498
- re-deriving it. Its value is the FULL canonical tool name, while the card
3499
- renders only the segment after the plugin prefix. One load
3500
- showing `riskiest tool: memory-update` on the card and
3501
- `riskiestTool=mcp__plugin_memory_memory__memory-update` on this line is the
3502
- confirmation that both derive from one value.
3503
- **A non-empty `unresolved=` is the one to act on**: the agent
3718
+ - `[agents] op=risk account=<id8> slug=<name> origin=<shipped|public|specialist>
3719
+ class=<green|amber|red> rule=<id|none> riskiestTool=<tool> tools=<n>
3720
+ unresolved=<n> unresolvedTools=<comma-list|none> disabled=<bool>` — one line
3721
+ per classified agent per listing, so it fires on every page load.
3722
+ **`rule=` is the field that proves the combination table is live**: a
3723
+ mis-specified rule emits nothing of its own and is otherwise indistinguishable
3724
+ from an absent one. `riskiestTool` makes a wrong class diagnosable without
3725
+ re-deriving it; its value is the FULL canonical tool name and it is no longer
3726
+ rendered anywhere, so this line is where it is read.
3727
+ **A non-zero `unresolved=` is the one to act on**: the agent
3504
3728
  is forced red, and the cause is that the built-in table or the registry
3505
- mapping has drifted, not that the agent changed.
3506
- - `op=risk-surface status=load-failed reason=<msg>` the plugin registry did
3507
- not parse, so every row is forced red and the listing returns
3508
- `riskSurfaceFailed: true`. Without the forced red, every plugin tool would
3509
- land in `unresolved` and a registry outage would read as agent drift across
3510
- every card at once; without the response field, a red row would be
3511
- indistinguishable from a genuinely dangerous agent, because nothing resolved
3512
- so `unresolved` is empty and the per-tool explanation cannot fire.
3729
+ mapping has drifted, not that the agent changed. `unresolvedTools=` says which.
3730
+ - `[agents] op=rule-census account=<id8> rules=<n> classified=<n> fired=<n>
3731
+ never=<comma-list|none>` one line per listing, not per agent.
3732
+ **This is the standing check.** A rule that never fires produces no evidence of
3733
+ its own, so nothing except this line would ever say so; a rule id permanently
3734
+ in `never` across every account is dead or wrong. `fired + never` always equals
3735
+ `rules`. Read `never` only when `classified` is non-zero: an account with no
3736
+ specialists puts every rule in `never` and would otherwise be
3737
+ indistinguishable from a table that was never wired. Today `reads-and-sends`
3738
+ sits in `never` on an install whose agents are all shipped, which is expected
3739
+ and not a fault.
3740
+ - `op=risk-surface status=load-failed reason=<msg>`, emitted with
3741
+ `[agents] op=risk-surface-failed reason=registry-unreadable detail=<msg>` — the
3742
+ plugin registry did not parse, so every row is forced red and the listing
3743
+ returns `riskSurfaceFailed: true`. Both lines say the same thing; the second is
3744
+ the greppable shape, so one pattern (`\[agents\] op=(risk|rule-census|risk-surface-failed)`)
3745
+ covers the per-agent lines, the census and the outage that forced them. Without
3746
+ the forced red, every plugin tool would land in `unresolved` and a registry
3747
+ outage would read as agent drift across every card at once; without the
3748
+ response field, a red row would be indistinguishable from a genuinely dangerous
3749
+ agent, because nothing resolved so `unresolved` is empty and the per-tool
3750
+ explanation cannot fire. Every row's reason then says the registry is the
3751
+ cause rather than asserting a capability the derivation never produced.
3513
3752
  - `op=disabled-store status=parse-failed reason=<msg>` — the listing then treats
3514
3753
  every agent as enabled, which is what they actually are. A read surface shows
3515
3754
  the true dispatchable set rather than a comforting one.
@@ -3902,6 +4141,16 @@ authoritative. This section names the surfaces and what backs each.
3902
4141
  > - **Dashboard home** renders on `/` (a greeting, stat cards, a Live-now column,
3903
4142
  > a Recent artefacts card, and a Channels column), consuming existing endpoints
3904
4143
  > only.
4144
+ > - **Channels card rows.** A WhatsApp row shows a profile picture,
4145
+ > the conversation's name, its last message, and the time, matching the layout
4146
+ > of the WhatsApp client. The name is the one WhatsApp itself holds: a group
4147
+ > shows its group subject, a 1:1 shows the contact name saved on the paired
4148
+ > phone. A group row carries an extra `Group` chip. When no name has been
4149
+ > captured yet, a group falls back to its group id and a 1:1 to its phone
4150
+ > number; neither ever shows a group member's name or the install's own
4151
+ > WhatsApp display name. The existing `Public` chip (the message came from
4152
+ > outside) and `House` / `Client` chip (which account owns the thread) are
4153
+ > unchanged.
3905
4154
  > - **Per-surface header.** Each surface carries its own header (`PageHeader`):
3906
4155
  > the sidebar collapse toggle, the page title, and a Claude status pill on the
3907
4156
  > right (Connected / Connect, driven by `/api/health`). The pill replaces the
@@ -5032,8 +5281,12 @@ For estate-agent client work surfaced on the `/tasks` operator page, `work-creat
5032
5281
 
5033
5282
  Two surfaces feed the gate. (1) **Workflow path:** `memory-write` accepts an optional `producedByTaskId` parameter. When set, an inbound `:PRODUCED` edge from that Task is composed into the write's relationships before the gate runs — the typical agent-side pattern is to call `work-create` at the start of an autonomous flow, capture `taskId`, and pass it as `producedByTaskId` on every subsequent `memory-write` for a gated label. The gate verifies Task and write share the same `accountId`; mismatch is rejected loud. (2) **Direct-ask path:** the admin server resolves the active `:AdminConversation`'s `sessionId` UUID and stamps it as `SESSION_NODE_ID` in the spawn env at PTY-spawn time. The same stamp propagates onto specialist subagent spawns the admin dispatches so listing-curator, content-producer, database-operator etc. inherit the same conversation anchor. The `contact-create` and `memory-write` wrappers call `injectConversationProvenance` (exported from [`@maxy/graph-write`](../../../lib/graph-write/src/conversation-provenance.ts)) which MATCHes `(c:Conversation {sessionId, accountId})` — account isolation is part of the natural key, not a separate gate — and prepends the synthetic `:PRODUCED` edge (composed by Neo4j elementId, which the helper reads off the MATCH). No agent-visible schema field changes. `memory-write` uses the env-stamp only as a fallback when `producedByTaskId` is unset; `contact-create` has no `producedByTaskId` parameter today and relies on the env-stamp alone. Autonomous (cron-driven) specialists with no parent conversation legitimately have no env-stamp; those must thread `producedByTaskId`.
5034
5283
 
5284
+ A task also carries a **workspace** edge, distinct from the two provenance ones above: `(t:Task)-[:WORKED_ON_IN]->(c:Conversation)` is the session an operator works the task in, written only by the `/tasks` page Session control. `RAISED_DURING` and `PART_OF` say where a task was *raised*, so neither can answer "which chat do I continue this task in" — a task raised in an unrelated conversation would resume that one. At most one such edge exists per task: the control's link route deletes any edge to a different Conversation before merging the new one, which is how a resume the session manager redirected to a live fork re-points itself rather than staying on the dead source. The `:Task` also carries `sessionSpawnRequestedAt`, stamped before the spawn and removed when the link lands, so a session that was created but never linked is countable rather than invisible.
5285
+
5035
5286
  Operator audit cyphers:
5036
5287
  - "What entities did this conversation's actions produce?" — `MATCH (c:AdminConversation {sessionId:$id})<-[:RAISED_DURING]-(t:Task)-[:PRODUCED]->(e) RETURN labels(e), e.name, t.kind, t.status`
5288
+ - "Which session is this task worked in?" — `MATCH (t:Task {taskId:$id})-[:WORKED_ON_IN]->(c:Conversation) RETURN c.sessionId, c.name`
5289
+ - "Which tasks were marked for a session spawn that never linked?" — `MATCH (t:Task {accountId:$acct}) WHERE t.sessionSpawnRequestedAt IS NOT NULL AND NOT (t)-[:WORKED_ON_IN]->(:Conversation) RETURN t.taskId, t.name, t.sessionSpawnRequestedAt`
5037
5290
  - "What cloudflare resources did this tunnel-login produce?" — `MATCH (t:Task {kind:'cloudflare-tunnel-login', status:'completed'})-[:PRODUCED]->(r) RETURN t.taskId, r.tunnelId, r.hostnameValue ORDER BY t.completedAt DESC`
5038
5291
 
5039
5292
  See `.docs/neo4j.md § Process provenance doctrine` for the full enforcement contract, observability surface, and out-of-scope deferrals.
@@ -9,6 +9,18 @@ Invoked by the admin agent directly.
9
9
 
10
10
  This is the platform's release timeline, newest first. Each entry shows the date it shipped and the version it shipped in, so you can tell the operator how current their install is. To compare, read the installed version from `capabilities-here` and match it against the versions below. Keep answers high level and in plain English; this is a summary, not a full commit log.
11
11
 
12
+ ## 2026-07-29 (0.1.523)
13
+
14
+ - You can now switch off an agent you created yourself. Until now that was refused, while switching off a built-in agent was offered instead, which was the wrong way round. You can also suspend a routine, or all of them at once, without deleting it.
15
+ - Routines now keep a run history. Each run opens and closes its own record, so one run no longer overwrites the last, and you can see what ran and when.
16
+ - WhatsApp no longer gives up reconnecting for good after a bad spell; it re-arms and keeps trying. It also works out the WhatsApp protocol version through a checked lookup rather than reading a fixed line number out of someone else's file.
17
+
18
+ ## 2026-07-28 (0.1.522)
19
+
20
+ - You can now connect a shared Outlook mailbox you have been given access to, without needing a separate licence for it.
21
+ - WhatsApp conversations now show the real chat name, contact avatar and last message, instead of guessing from the first message.
22
+ - Open tasks now have a Session button that opens or resumes a chat session named for that task.
23
+
12
24
  ## 2026-07-28 (0.1.521)
13
25
 
14
26
  - Starting a new session now opens a naming modal first, and New-session controls read white on black across every brand.