@songsid/agend 2.4.0-beta.21 → 2.4.0-beta.23

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 (276) hide show
  1. package/dist/agent-whats-new.js +6 -0
  2. package/dist/agent-whats-new.js.map +1 -1
  3. package/dist/auth-api.d.ts +2 -0
  4. package/dist/auth-api.js +5 -2
  5. package/dist/auth-api.js.map +1 -1
  6. package/dist/authority/web-authority.d.ts +17 -3
  7. package/dist/authority/web-authority.js +56 -3
  8. package/dist/authority/web-authority.js.map +1 -1
  9. package/dist/backend/claude-code.js +3 -0
  10. package/dist/backend/claude-code.js.map +1 -1
  11. package/dist/build-provenance.json +1 -1
  12. package/dist/cache-ledger.d.ts +23 -21
  13. package/dist/cache-ledger.js +70 -6
  14. package/dist/cache-ledger.js.map +1 -1
  15. package/dist/cache-prices.d.ts +8 -6
  16. package/dist/cache-prices.js +12 -5
  17. package/dist/cache-prices.js.map +1 -1
  18. package/dist/cache-service.d.ts +9 -5
  19. package/dist/cache-service.js +202 -50
  20. package/dist/cache-service.js.map +1 -1
  21. package/dist/channel/mcp-tools.js +8 -1
  22. package/dist/channel/mcp-tools.js.map +1 -1
  23. package/dist/classic-channel-manager.d.ts +1 -1
  24. package/dist/classic-channel-manager.js +2 -2
  25. package/dist/classic-channel-manager.js.map +1 -1
  26. package/dist/cli-audited.js +2 -1
  27. package/dist/cli-audited.js.map +1 -1
  28. package/dist/cli.js +4 -1
  29. package/dist/cli.js.map +1 -1
  30. package/dist/contact-auth-api.js +3 -1
  31. package/dist/contact-auth-api.js.map +1 -1
  32. package/dist/contact-auth-policy.js +1 -1
  33. package/dist/contact-auth-policy.js.map +1 -1
  34. package/dist/contact-auth-service.js +8 -2
  35. package/dist/contact-auth-service.js.map +1 -1
  36. package/dist/contact-auth-store.d.ts +31 -2
  37. package/dist/contact-auth-store.js +106 -12
  38. package/dist/contact-auth-store.js.map +1 -1
  39. package/dist/contact-auth-types.d.ts +3 -2
  40. package/dist/contact-auth-types.js.map +1 -1
  41. package/dist/contact-change-proposals.d.ts +18 -1
  42. package/dist/contact-change-proposals.js +41 -6
  43. package/dist/contact-change-proposals.js.map +1 -1
  44. package/dist/contact-state-view.d.ts +103 -0
  45. package/dist/contact-state-view.js +80 -0
  46. package/dist/contact-state-view.js.map +1 -0
  47. package/dist/daemon.d.ts +31 -0
  48. package/dist/daemon.js +149 -2
  49. package/dist/daemon.js.map +1 -1
  50. package/dist/delivery-outbox.d.ts +10 -0
  51. package/dist/delivery-outbox.js +21 -0
  52. package/dist/delivery-outbox.js.map +1 -1
  53. package/dist/fleet-manager.d.ts +183 -15
  54. package/dist/fleet-manager.js +628 -96
  55. package/dist/fleet-manager.js.map +1 -1
  56. package/dist/general-knowledge/skills/admin/SKILL.md +52 -0
  57. package/dist/general-knowledge/skills/concepts/SKILL.md +14 -17
  58. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -3
  59. package/dist/general-knowledge/skills/hub/SKILL.md +12 -4
  60. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +54 -9
  61. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
  62. package/dist/general-role.d.ts +1 -1
  63. package/dist/general-role.js +1 -0
  64. package/dist/general-role.js.map +1 -1
  65. package/dist/hub/agent-pictures-model.d.ts +128 -0
  66. package/dist/hub/agent-pictures-model.js +43 -4
  67. package/dist/hub/agent-pictures-model.js.map +1 -1
  68. package/dist/hub/agent-pictures.d.ts +14 -2
  69. package/dist/hub/agent-pictures.js +65 -12
  70. package/dist/hub/agent-pictures.js.map +1 -1
  71. package/dist/hub/client.d.ts +2 -0
  72. package/dist/hub/client.js +14 -2
  73. package/dist/hub/client.js.map +1 -1
  74. package/dist/hub/compose/member.d.ts +6 -2
  75. package/dist/hub/compose/member.js +19 -6
  76. package/dist/hub/compose/member.js.map +1 -1
  77. package/dist/hub/compose/server.d.ts +5 -5
  78. package/dist/hub/compose/server.js +6 -3
  79. package/dist/hub/compose/server.js.map +1 -1
  80. package/dist/hub/group-policy/resources.d.ts +1 -1
  81. package/dist/hub/http/compose.d.ts +3 -0
  82. package/dist/hub/http/compose.js +14 -7
  83. package/dist/hub/http/compose.js.map +1 -1
  84. package/dist/hub/http/deps.d.ts +1 -0
  85. package/dist/hub/http/schema.js +2 -1
  86. package/dist/hub/http/schema.js.map +1 -1
  87. package/dist/hub/init/text.js +1 -1
  88. package/dist/hub/mcp/policy.d.ts +1 -1
  89. package/dist/hub/member/agent-pictures.d.ts +34 -1
  90. package/dist/hub/member/agent-pictures.js +80 -9
  91. package/dist/hub/member/agent-pictures.js.map +1 -1
  92. package/dist/hub/member/room-ask.d.ts +22 -1
  93. package/dist/hub/member/room-ask.js +99 -5
  94. package/dist/hub/member/room-ask.js.map +1 -1
  95. package/dist/hub/member/room-asker-store.d.ts +48 -0
  96. package/dist/hub/member/room-asker-store.js +181 -0
  97. package/dist/hub/member/room-asker-store.js.map +1 -0
  98. package/dist/hub/protocol.d.ts +152 -0
  99. package/dist/hub/protocol.js +6 -1
  100. package/dist/hub/protocol.js.map +1 -1
  101. package/dist/hub/question-close-model.d.ts +17 -0
  102. package/dist/hub/question-close-model.js +7 -0
  103. package/dist/hub/question-close-model.js.map +1 -0
  104. package/dist/hub/representative.d.ts +15 -0
  105. package/dist/hub/representative.js +64 -1
  106. package/dist/hub/representative.js.map +1 -1
  107. package/dist/hub/room-asker-identity-model.d.ts +53 -0
  108. package/dist/hub/room-asker-identity-model.js +14 -0
  109. package/dist/hub/room-asker-identity-model.js.map +1 -0
  110. package/dist/hub/room-asker-identity.d.ts +22 -0
  111. package/dist/hub/room-asker-identity.js +43 -0
  112. package/dist/hub/room-asker-identity.js.map +1 -0
  113. package/dist/hub/rooms/agents.js +16 -0
  114. package/dist/hub/rooms/agents.js.map +1 -1
  115. package/dist/hub/rooms/asker-identity.d.ts +21 -0
  116. package/dist/hub/rooms/asker-identity.js +86 -0
  117. package/dist/hub/rooms/asker-identity.js.map +1 -0
  118. package/dist/hub/rooms/direct-view.js +1 -0
  119. package/dist/hub/rooms/direct-view.js.map +1 -1
  120. package/dist/hub/rooms/office.d.ts +18 -0
  121. package/dist/hub/rooms/office.js +3 -1
  122. package/dist/hub/rooms/office.js.map +1 -1
  123. package/dist/hub/rooms/service.d.ts +6 -0
  124. package/dist/hub/rooms/service.js +19 -0
  125. package/dist/hub/rooms/service.js.map +1 -1
  126. package/dist/hub/rooms/types.d.ts +1 -1
  127. package/dist/hub/rooms.d.ts +3 -0
  128. package/dist/hub/rooms.js +27 -1
  129. package/dist/hub/rooms.js.map +1 -1
  130. package/dist/hub/server.js +12 -2
  131. package/dist/hub/server.js.map +1 -1
  132. package/dist/hub/types.d.ts +3 -2
  133. package/dist/hub-character-plan.d.ts +47 -0
  134. package/dist/hub-character-plan.js +70 -0
  135. package/dist/hub-character-plan.js.map +1 -0
  136. package/dist/hub-contact-windows.d.ts +13 -1
  137. package/dist/hub-contact-windows.js +35 -2
  138. package/dist/hub-contact-windows.js.map +1 -1
  139. package/dist/hub-picture-reduce.d.ts +21 -1
  140. package/dist/hub-picture-reduce.js +65 -13
  141. package/dist/hub-picture-reduce.js.map +1 -1
  142. package/dist/hub-picture-worker.js +12 -4
  143. package/dist/hub-picture-worker.js.map +1 -1
  144. package/dist/human-delivery-receipts.d.ts +12 -2
  145. package/dist/human-delivery-receipts.js +19 -4
  146. package/dist/human-delivery-receipts.js.map +1 -1
  147. package/dist/instructions.d.ts +1 -1
  148. package/dist/instructions.js +1 -1
  149. package/dist/instructions.js.map +1 -1
  150. package/dist/locale.js +367 -275
  151. package/dist/locale.js.map +1 -1
  152. package/dist/ls-rows.d.ts +2 -0
  153. package/dist/ls-rows.js.map +1 -1
  154. package/dist/needs-you.d.ts +4 -0
  155. package/dist/needs-you.js +3 -2
  156. package/dist/needs-you.js.map +1 -1
  157. package/dist/office-share-page.js +1 -1
  158. package/dist/office-share-page.js.map +1 -1
  159. package/dist/outbound-handlers.d.ts +8 -0
  160. package/dist/outbound-handlers.js +56 -7
  161. package/dist/outbound-handlers.js.map +1 -1
  162. package/dist/outbound-schemas.d.ts +2 -1
  163. package/dist/outbound-schemas.js +3 -2
  164. package/dist/outbound-schemas.js.map +1 -1
  165. package/dist/public-web-gateway.js +18 -0
  166. package/dist/public-web-gateway.js.map +1 -1
  167. package/dist/reply-buttons-controller.d.ts +2 -1
  168. package/dist/reply-buttons-controller.js +1 -1
  169. package/dist/reply-buttons-controller.js.map +1 -1
  170. package/dist/runtime-cli-install.js +4 -4
  171. package/dist/runtime-cli-install.js.map +1 -1
  172. package/dist/tips.js +3 -3
  173. package/dist/tool-permissions.js +1 -1
  174. package/dist/tool-permissions.js.map +1 -1
  175. package/dist/ui/accounts-keepalive.js +2 -1
  176. package/dist/ui/agent-export-strings.js +1 -1
  177. package/dist/ui/agent-page-strings.js +5 -5
  178. package/dist/ui/chat-activity.js +2 -1
  179. package/dist/ui/chat-pins.js +2 -1
  180. package/dist/ui/claude-credentials.js +2 -1
  181. package/dist/ui/contact-auth-client.js +2 -2
  182. package/dist/ui/contact-auth-strings.js +28 -17
  183. package/dist/ui/contact-authorizations.js +6 -4
  184. package/dist/ui/contact-needs.js +6 -1
  185. package/dist/ui/contact-permissions.js +6 -4
  186. package/dist/ui/contact-tool-groups.js +1 -1
  187. package/dist/ui/contact-verify-need.js +46 -0
  188. package/dist/ui/fleet-cache.js +7 -6
  189. package/dist/ui/fleet-canvas.js +1 -1
  190. package/dist/ui/fleet-office-card.js +26 -2
  191. package/dist/ui/fleet-office-layout.js +2 -2
  192. package/dist/ui/fleet-office-skin.js +26 -6
  193. package/dist/ui/fleet-office-view.js +32 -0
  194. package/dist/ui/fleet-office-zones.js +22 -9
  195. package/dist/ui/fleet-office.js +92 -29
  196. package/dist/ui/fleet-org.js +9 -4
  197. package/dist/ui/fleet-tab-icons.js +19 -0
  198. package/dist/ui/fleet-task-activity.js +2 -1
  199. package/dist/ui/fleet-task-common.js +2 -2
  200. package/dist/ui/fleet-task-view.js +2 -1
  201. package/dist/ui/fleet-usage.js +8 -7
  202. package/dist/ui/hub-admin-overview.js +3 -2
  203. package/dist/ui/hub-agent-intro.js +2 -1
  204. package/dist/ui/hub-assistant-admin.js +2 -1
  205. package/dist/ui/hub-chat-strings.js +1 -1
  206. package/dist/ui/hub-directory-notices.js +2 -1
  207. package/dist/ui/hub-enrolment-code.js +2 -1
  208. package/dist/ui/hub-my-agents-strings.js +2 -2
  209. package/dist/ui/hub-my-agents.js +3 -2
  210. package/dist/ui/hub-quick-pairing.js +2 -1
  211. package/dist/ui/hub-role-audit.js +2 -1
  212. package/dist/ui/hub-role-forms.js +3 -2
  213. package/dist/ui/hub-role-view.js +3 -2
  214. package/dist/ui/hub-roles.js +2 -1
  215. package/dist/ui/hub-room-agent-strings.js +2 -1
  216. package/dist/ui/hub-room-list.js +2 -1
  217. package/dist/ui/hub-room-office.js +70 -2
  218. package/dist/ui/hub-room-owner-requests.js +2 -1
  219. package/dist/ui/hub-room-pins.js +2 -1
  220. package/dist/ui/hub-room-presence.js +5 -0
  221. package/dist/ui/hub-room-strings.js +2 -2
  222. package/dist/ui/hub-room-thread.js +1 -1
  223. package/dist/ui/log-row.js +4 -3
  224. package/dist/ui/office-share-dialog.js +2 -1
  225. package/dist/ui/office-share-page.js +2 -1
  226. package/dist/ui/page-share-dialog.js +3 -2
  227. package/dist/ui/panel-chat.js +2 -1
  228. package/dist/ui/panel-details.js +2 -1
  229. package/dist/ui/panel-fleet.js +15 -10
  230. package/dist/ui/panel-hub.js +2 -1
  231. package/dist/ui/panel-log.js +3 -3
  232. package/dist/ui/panel-needs.js +31 -3
  233. package/dist/ui/panel-notices.js +2 -1
  234. package/dist/ui/panel-runtimes.js +4 -3
  235. package/dist/ui/panel-windows-cli.js +3 -2
  236. package/dist/ui/runtime-cli-install.js +3 -2
  237. package/dist/ui/runtime-update-status.js +1 -1
  238. package/dist/ui/settings-access-strings.js +1 -1
  239. package/dist/ui/settings-appearance.js +2 -1
  240. package/dist/ui/settings-guests.js +4 -3
  241. package/dist/ui/settings-hub-member-address.js +2 -1
  242. package/dist/ui/settings-hub-setup-strings.js +1 -1
  243. package/dist/ui/settings-hub-setup.js +2 -1
  244. package/dist/ui/settings-hub-web-address.js +2 -1
  245. package/dist/ui/settings-hub.js +2 -1
  246. package/dist/ui/settings-layout.js +2 -2
  247. package/dist/ui/settings-named-test.js +16 -16
  248. package/dist/ui/settings-public-session-strings.js +2 -2
  249. package/dist/ui/settings-revoke-strings.js +1 -1
  250. package/dist/ui/settings-shared-strings.js +2 -2
  251. package/dist/ui/settings-strings.js +40 -40
  252. package/dist/ui/settings-update.js +2 -1
  253. package/dist/ui/settings-web-authority.js +2 -1
  254. package/dist/ui/shared/agent-sheet.js +2 -1
  255. package/dist/ui/shared/app-session.js +4 -3
  256. package/dist/ui/shared/app-shell.js +7 -3
  257. package/dist/ui/shared/app.css +60 -11
  258. package/dist/ui/shared/chat-strings.js +8 -8
  259. package/dist/ui/shared/chat-time.js +7 -4
  260. package/dist/ui/shared/clock-text.js +57 -0
  261. package/dist/ui/shared/device-roles.js +6 -5
  262. package/dist/ui/shared/instance-nav.js +31 -2
  263. package/dist/ui/shared/usage-dialog.js +2 -1
  264. package/dist/ui/shared/view-strings.js +13 -9
  265. package/dist/ui/shared/web-authorize.js +3 -2
  266. package/dist/ui/subagent-row.js +2 -1
  267. package/dist/web-api.d.ts +15 -2
  268. package/dist/web-api.js +62 -13
  269. package/dist/web-api.js.map +1 -1
  270. package/dist/web-login.d.ts +6 -1
  271. package/dist/web-login.js +8 -3
  272. package/dist/web-login.js.map +1 -1
  273. package/dist/web-session-authorization.d.ts +3 -0
  274. package/dist/web-session-authorization.js +1 -1
  275. package/dist/web-session-authorization.js.map +1 -1
  276. package/package.json +1 -1
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: admin
3
+ description: What General can do for the administrator — by itself (a tool), only as a proposal the admin confirms, or not at all (where the person clicks). Load it first for any admin ask; it points to the detailed skill.
4
+ roles: [general]
5
+ ---
6
+
7
+ ## Three kinds of answer
8
+
9
+ - **Tool**: do it now, then say what changed.
10
+ - **Proposal**: General asks and an authorized admin presses Confirm on the card the fleet posts. Say that nothing has
11
+ changed yet and who must confirm.
12
+ - **The person does it**: say exactly where they click. Never claim a change you cannot make.
13
+
14
+ ## Map
15
+
16
+ | Area | The admin asks | How |
17
+ |---|---|---|
18
+ | Agents | create, delete, replace, start, stop, pause, wake, restart | Tool (`create_instance` … `restart_instance`); see instance-lifecycle |
19
+ | Agents | backend, model, tool set, auto-pause, name, description | Tool `update_instance_config` (a change restarts the agent) |
20
+ | Agents | reasoning effort | Read with `get_effort`; the person sets it on the agent's Settings page (row ⋯ → Settings) |
21
+ | Accounts | move an agent to another account | Tool `update_instance_config` (credential profile), once that account exists; see credential-profiles |
22
+ | Accounts | add or sign in an account | The person: `/login`, or Settings → AI accounts (a browser sign-in) |
23
+ | Fleet defaults | default backend, model, auto-pause, message size | Tool `update_fleet_defaults`. Check `get_fleet_config` first: an agent with its own value keeps it |
24
+ | Fleet settings | anything else (task board, notifications, access) | The person: Settings, then **/** to search the setting by name |
25
+ | Teams, schedules, decisions, task board cards | all | Tool (`create_team`, `create_schedule`, `post_decision`, `task`) |
26
+ | Contact permissions | what is held, and who it waits on | Tool `contact_state` (read-only) |
27
+ | Contact permissions | approve or decline a held message | The person: the held message's own card in General (**Approve once** / **Decline**), if it has one; else proposal `propose_contact_change` kind `ticket-decision` (the short id people see, R + 8 characters, works) |
28
+ | Contact permissions | change or remove a standing rule | Proposal `grant-adjust` / `grant-revoke`; the grant_id comes from `contact_state` |
29
+ | ClassicBot rooms | restricted or unrestricted | Proposal `mode`: `restricted`, or `legacy` (= unrestricted, 自由) |
30
+ | Contact permissions | clear an agent's retained origin | The person: the agent's Permissions tab in the web dashboard |
31
+ | Contact permissions | the target is not on Discord/Telegram | The person: Fleet › Authorizations (授權) or Needs you, in the web dashboard |
32
+ | Hub | connect, share or pause an agent, who may ask, groups | The person, with their company account; see hub |
33
+ | Access | administrators, allowed users, guests | The person: Settings → Access & security (it grants authority) |
34
+ | Links | open a public link, its lifetime | The person: `/web` → Other device, or Settings → Access & security for a fixed link |
35
+ | Updates | update now or at a time | The person: `/update` in a chat, or the update notice; see fleet-restart |
36
+ | Look, office | themes, colours, cards, effects, office styles | Tool (`set_web_settings`, `web_appearance`, `office_*`); see web-appearance |
37
+
38
+ ## Contact permissions, step by step
39
+
40
+ 0. A held message from an agent, or from a ClassicBot room to an agent, already has a card in General on the target's
41
+ Discord or Telegram: **Approve once** / **Decline**. An administrator who may decide clicks it there; that is the
42
+ decision, with no proposal and no second Confirm. Use the steps below when there is no card (the target is not on
43
+ Discord/Telegram, or the card has expired) or the admin asks you to.
44
+ 1. `contact_state` (optionally `agent`): `held` lists each waiting message with `short_id`, from, to, the people it
45
+ came from and who decides.
46
+ 2. `propose_contact_change` with `{ kind: "ticket-decision", ticket_id: "<short_id>", decision: "approve-once" }`
47
+ (or `"decline"`). Add `grant` only when the admin asked for a standing rule.
48
+ 3. Tell the admin a card is waiting in General for them to Confirm, and that it expires in five minutes.
49
+ 4. A refusal is a sentence that says what to do next: follow it (read `contact_state` again, or send the admin to
50
+ the web page it names).
51
+
52
+ Contact approval lets one message through; it does not limit what the receiving agent does afterwards.
@@ -151,7 +151,7 @@ WebFetch refuses explicit non-public URL forms. DNS and redirects are not pinned
151
151
  selected MCP tools keep their own access, and old conversation memory is not erased.
152
152
  When it delegates work for a person in the room, it keeps the requester with the worker and correlation, then summarizes the matching result in its bound channel and mentions that requester. Unrelated peer reports, chatter and FYI stay quiet.
153
153
 
154
- New rooms start in restricted mode. Non-admin peer relays are held for a target's Fleet administrator to approve; existing rooms stay legacy until an administrator switches them. Contact approval authorizes dispatch only, not the worker's later actions. Native tool coverage is reported separately. General may use `propose_contact_change` to propose room mode, contact-ticket or existing-rule changes. The daemon posts a bound confirmation to the target connection’s General; only a currently authorized Discord/Telegram person may confirm. General never confirms or applies its own proposal. Host-only targets use the web.
154
+ `/start` asks for a backend and a mode, Restricted or Free (受限模式 or 自由模式). The room is not created until both are chosen. For a fleet admin, Free (recommended) / 自由模式(建議) comes first. Restricted / 受限模式 stays a button, and the tap is still required. Only a fleet admin can choose Free; anyone else is offered Restricted and told why Free is not offered. Change it later in the room's Settings → Permissions (權限), or from General's contact-change card. A room that already exists stays as it is until an administrator switches it. Non-admin peer relays in a Restricted room are held for a target's Fleet administrator to approve. Contact approval authorizes dispatch only, not the worker's later actions. Native tool coverage is reported separately. General may read the current state with `contact_state` and use `propose_contact_change` to propose room mode (`legacy` is Free, unrestricted), contact-ticket (the short ID works) or existing-rule changes. The daemon posts a bound confirmation to the target connection’s General; only a currently authorized Discord/Telegram person may confirm. General never confirms or applies its own proposal. Host-only targets use the web.
155
155
 
156
156
  - Code: `src/classic-channel-manager.ts`.
157
157
  - Refs: `docs/permissions.md`.
@@ -165,7 +165,7 @@ can still message each other from the dashboard.
165
165
  - Can: everything chat fleets do, through `/ui` instead of chat.
166
166
  - Can't: chat ingress; `/web revoke` (there is no `/web`) — its Notice names
167
167
  the host's way, signing every browser out.
168
- - Code: `src/web-only-fleet.ts:10-22`; `src/fleet-manager.ts:7807-7808`.
168
+ - Code: `src/web-only-fleet.ts:10-22`; `src/fleet-manager.ts:1132-1141` (WEB_ONLY_REPLY_SINK: replies on a fleet with no chat platform are shown in the web chat).
169
169
  - Refs: 28c2d3a3.
170
170
 
171
171
  ## host owner / operator
@@ -219,7 +219,7 @@ the General topic (approved by the user 2026-11-04).
219
219
  - Can't: anything while unlisted — an empty list grants nobody, and open
220
220
  access or a saved chat grant alone does not grant the role
221
221
  (`docs/SECURITY.md:13`).
222
- - Code: `src/config-validator.ts:368-376`, `:677`.
222
+ - Code: `src/config-validator.ts:385-393` (empty `allowed_users` grants nobody).
223
223
  - Refs: —
224
224
 
225
225
  ## guest (web)
@@ -234,7 +234,7 @@ chat they could already use.
234
234
  anyone who may open the View (#3069).
235
235
  - Can't: admin routes, Notices, the usage report, or anything over surfaces
236
236
  the fleet closed to guests.
237
- - Code: `src/config-validator.ts:738-740`.
237
+ - Code: `src/config-validator.ts:859-862` (`validateWebGuests`).
238
238
  - Refs: #1920.
239
239
 
240
240
  ## tool set / tool profile (`full`, `coordinator`, `general`, `worker`, `standard`, `minimal`)
@@ -270,7 +270,7 @@ not answer, unconfirmed deliveries.
270
270
 
271
271
  - Can: be acknowledged per item.
272
272
  - Can't: be answered by an agent on the person's behalf.
273
- - Code: `src/config.ts:284-293`; `src/web-api.ts` (`/ui/needs/ack`);
273
+ - Code: `src/config.ts:309-317` (`needsYouConfig`); `src/web-api.ts` (`/ui/needs/ack`);
274
274
  `src/daemon.ts:1564`, `:2071`, `:9888`.
275
275
  - Refs: —
276
276
 
@@ -282,7 +282,7 @@ have said in chat, kept, pushed and listed. Admins only, never a guest.
282
282
  - Can: be listed and marked seen.
283
283
  - Can't: be read by guests; on a chat fleet the feed is null because General
284
284
  says them.
285
- - Code: `src/web-api.ts:2346-2349`; `src/fleet-manager.ts:7807-7808`.
285
+ - Code: `src/web-api.ts:3391-3399` (`GET /ui/notices/list`, `POST /ui/notices/seen`; #2910 D2); `src/web-notices.ts:2-7`.
286
286
  - Refs: #2910 D2.
287
287
 
288
288
  ## delivery: ✅ 👀 ❌, "uncertain", queued hand-off (#3030)
@@ -300,7 +300,7 @@ takes it, ❌ when it never does.
300
300
  - Can't: prove permission. A receipt proves the CLI accepted the bytes, not
301
301
  that the person authorized the act — verify the human receipt before anything
302
302
  irreversible.
303
- - Code: `src/daemon.ts:7907-7913`; `:2450-2545`; `docs/delivery-verification.md`.
303
+ - Code: `src/queued-handoffs.ts`; `src/web-notices.ts`; `docs/delivery-verification.md`.
304
304
  - Refs: #3030, 7244b130, 954e5e96.
305
305
 
306
306
  ## schedule
@@ -360,7 +360,7 @@ finishing it from review with done.
360
360
  `--acceptance`, `--check`, `--version`, …). The fleet judges them by the same
361
361
  rules as a tool call (who may edit a card, a stale `version`, one card at a
362
362
  time, the tool profile), so a CLI agent can do exactly what an MCP one can.
363
- - Code: the `task` tool (`src/channel/mcp-tools.ts:79-80`); the command line
363
+ - Code: the `task` tool (`src/channel/mcp-tools.ts:90`); the command line
364
364
  (`taskArgs` in `src/agent-cli.ts`).
365
365
  - Refs: —
366
366
 
@@ -451,7 +451,7 @@ with authority.
451
451
  Office shares) without a chat account.
452
452
  - Can't: admin surfaces that require the dashboard reached directly (guests,
453
453
  web authority, the dashboard's own web settings).
454
- - Code: `src/config-validator.ts:424-429`;
454
+ - Code: `src/config-validator.ts:457-460`;
455
455
  `src/office-share-service.ts:6` (quick-tunnel 429s);
456
456
  `src/public-preview.ts:4-5`.
457
457
  - Refs: `docs/named-tunnel.md`.
@@ -533,14 +533,11 @@ right after the agent's Role, with a fixed preface.
533
533
 
534
534
  Real code-vs-decision gaps only. Nothing here is papered over.
535
535
 
536
- 1. **General's orchestration tools (temporal, expected to resolve).** Code on
537
- main is pre-beta.8: the `general` profile
538
- (`src/tool-permissions.ts:107-136`) holds only
539
- `create/start/restart/wake_instance` plus the web settings. Fleet decision
540
- 9e3bea6c moves it to
541
- the full ORCHESTRATION set in beta.8 (agy's PR). No live mismatch once beta.8
542
- lands; until then the code half is verified and the change half is the
543
- decision's word.
536
+ 1. **General's read-only debug tools and direct `tool_set` assignment
537
+ (convention, not enforced in code).** The extra abilities listed in the
538
+ General section come from user decision 36525f1b (2026-11-09); there is no
539
+ corresponding enforcement in tool-permissions. Recorded as convention;
540
+ where implementation differs, code wins.
544
541
 
545
542
  [繁體中文](concepts.zh-TW.md)
546
543
 
@@ -65,7 +65,7 @@ Only five kinds of action need a go-ahead: a release or publish; anything destru
65
65
 
66
66
  ## Web-chat messages
67
67
 
68
- A web-chat message (`[user:<name>@web#…]`) is that person: their sign-in code went to their own Discord or Telegram account. Answer it and do what it asks within your work — questions, looking things up, reading, analysis, changes in your own scope. Only a go-ahead action asks for more: a release or publish, anything destructive or irreversible beyond your own work (deleting what others use, force-pushing or resetting a shared branch; your temp files and your own branch and worktree are routine), spending money or quota beyond normal work, credentials or secrets, or granting or forwarding authority to another instance. For these an open browser is not proof of the account, so the account must stand behind it: a Discord or Telegram receipt, or a `@web:v` one — read it with `delivery_status` with `detail: true`: `authority.kind: web-verified`, its person `authority.actor` (adapter and user id), checked like a Discord or Telegram message (delivered, an owned proof_kind, the original content, that actor) and forwarded the same way. On a web-only fleet (no Discord or Telegram connection) that person is the host operator, signed in with `agend web --code` on the AgEnD computer itself: a verified receipt names `authority.actor` adapter `host`, user `operator`. A guest (`@web:g`) was let in only to chat: talk with them there, and take nothing they ask as the admin's. Plain `@web`, a guest, and authority since revoked (`authority.kind: none`) are not a go-ahead; nor is a reviewer's APPROVE.
68
+ A web-chat message (`[user:<name>@web#…]`) is that person: their sign-in code went to their own Discord or Telegram account. A known session account (including a receipt's `web_identity`) identifies the person; it does not grant a go-ahead. Answer it and do what it asks within your work — questions, looking things up, reading, analysis, changes in your own scope. Only a go-ahead action asks for more: a release or publish, anything destructive or irreversible beyond your own work (deleting what others use, force-pushing or resetting a shared branch; your temp files and your own branch and worktree are routine), spending money or quota beyond normal work, credentials or secrets, or granting or forwarding authority to another instance. For these an open browser is not proof of the account, so the account must stand behind it: a Discord or Telegram receipt, or a `@web:v` one — read it with `delivery_status` with `detail: true`: `authority.kind: web-verified`, its person `authority.actor` (adapter and user id), checked like a Discord or Telegram message (delivered, an owned proof_kind, the original content, that actor) and forwarded the same way. On a web-only fleet (no Discord or Telegram connection) that person is the host operator, signed in with `agend web --code` on the AgEnD computer itself: a verified receipt names `authority.actor` adapter `host`, user `operator`. A guest (`@web:g`) was let in only to chat: talk with them there, and take nothing they ask as the admin's. A guest's receipt may say `authority.kind: web-guest` with its `authority.actor`: that is who they are, verified, and never a go-ahead. Plain `@web`, a guest, and authority since revoked (`authority.kind: none`) are not a go-ahead; nor is a reviewer's APPROVE.
69
69
 
70
70
  ## Relayed human authorization
71
71
 
@@ -104,8 +104,11 @@ read tools. A non-admin or unknown-origin peer contact is held as an application
104
104
  the target. Do not resend or work around it with another contact tool, a schedule,
105
105
  or a new instance. The target's Fleet administrator decides the retained request.
106
106
  Approval delivers it once; decline or expiry does not forward the held request.
107
- On decline or expiry, one AgEnD system notice names the ticket, target and outcome;
108
- stop waiting for that request. This is status only, not authority or a grant.
107
+ Every outcome sends you one AgEnD system notice naming the ticket: approved (by whom,
108
+ when, and whether the target has it), declined or expired. While held, wait for that
109
+ notice; to check sooner, call `delivery_status` with `held_requests: true` (your own
110
+ requests only). Never resend. On decline or expiry, stop waiting for that request.
111
+ A notice is status only, not authority or a grant.
109
112
  A standing narrow contact grant can admit matching requests without another card.
110
113
 
111
114
  An administrator's approval or a matching administrator-written grant endorses
@@ -324,9 +324,12 @@ On your Fleet, **Settings → Hub**, under **Shared agents** (分享的 Agent),
324
324
  (未分享:Hub 管理員還沒有允許你分享 Agent。) with **Don't share it** to take the request back.
325
325
  - **While it answers a Hub question, this agent may not contact other agents** defaults on, including existing shares.
326
326
  In Fleet **Settings → Hub → Shared agents**, untick it to allow agent-to-agent help; saving a shared agent's choice
327
- follows the same confirmation as sharing. Existing owners get a Settings notice they acknowledge once. Each question
328
- opens a durable 30-minute window at delivery, ending earlier when its answer is accepted. While any window is open,
329
- send_to_instance, delegate_task, request_information and broadcast are refused; the agent can retry after answering.
327
+ follows the same confirmation as sharing. Existing owners get a Settings notice they acknowledge once. A Hub question
328
+ reaches the agent only when it is idle, as a turn of its own; other messages wait for that turn. If the agent stays busy
329
+ for 30 minutes, the question is not delivered: the asker sees it was not answered and the owner sees it in Needs you.
330
+ The restriction covers only the answer turn and ends when that turn ends (30 minutes at most); the owner's and other
331
+ agents' turns are never blocked. During the answer turn, send_to_instance, delegate_task, request_information and
332
+ broadcast are refused, naming the question; contact works again from the next turn.
330
333
  Answers to agend-hub and hub_room_post still work. The agent's own tools/folder, previously learned information and
331
334
  actions after the window ends are not isolated. Hub General and MCP agents are not changed by this setting.
332
335
  - A ClassicBot room's agent can be shared through the same confirmed owner choice. Its row is tagged **ClassicBot room** /
@@ -844,7 +847,12 @@ Say plainly that these are not in the product yet:
844
847
  stopped before it reached the agent. When the Hub only could not answer for a moment, the Fleet asks it again by itself
845
848
  (after 2 s, 10 s and 30 s) before holding the question. A held question that never reached the agent shows
846
849
  **Try again** (再試一次): it goes back through the Hub's checks and is delivered only when the Hub allows it. A question the Hub
847
- refused, or one that may already have reached the agent, has no Try again; the person who asked can send it again.
850
+ refused, or one that may already have reached the agent, has no Try again. For a held one-to-one question,
851
+ a verified managing administrator can choose **Close this question** (不處理這題) and confirm.
852
+ The Hub marks the question not answered and tells the asker that the owner chose not to answer. An answer already
853
+ received by the Hub is kept. Closing is final: the same message cannot be retried, but the asker may send a new question. This never enters the question again or stops work already running in the agent.
854
+ The item disappears only after the Hub acknowledges. An offline or older Hub keeps the item with an explanation;
855
+ reconnect or update the Hub, then repeat the close action. Do not use Try again just to clear an item.
848
856
 
849
857
  - **"That is not a Hub address."** Enter just the address (`hub.example.com`), or the address, a space and the join
850
858
  code. **"A Hub address must use https."** Drop `http://`.
@@ -146,7 +146,13 @@ account.
146
146
  DMs are closed, or Telegram's `/start web` DM) makes the browser **Verified** at once, with no card. The same DM gets
147
147
  "*browser* signed in with the code sent to you, and is verified until …" with **Not me**, which signs that browser
148
148
  out. With no DM, General gets one line with no details: `/web revoke` if it wasn't you.
149
- - **Codes that don't verify:** a guest code, or `agend web --code` on a fleet with a chat connection.
149
+ - **A guest's private /web code (M-3651)** makes the guest's browser verified as that account, for identity only. The
150
+ same DM gets "*browser* signed in as a guest … verified as you until …" with **Not me**, and the session menu says
151
+ **Guest · Verified until …**. Agents still see `@web:g`; the receipt says `authority.kind: web-guest` naming the
152
+ account, which is who it is and never a go-ahead or an admin's authority. A guest never gets a card: once it runs out,
153
+ send `/web` again. The switch, **Only this computer**, the link options and **Revoke web authority** end it as they
154
+ end an admin's.
155
+ - **Codes that don't verify:** `agend web --code` on a fleet with a chat connection.
150
156
  - **Otherwise** (and to re-verify once the authorization runs out) the one row under the composer (bottom left, before the Enter hint) says **Not verified · Authorize**; the
151
157
  session menu says **Not verified · Authorize this browser**. Pressing it
152
158
  sends a card to that account's DM, saying which browser (device, on this computer or the network, when, until when), with
@@ -323,6 +329,20 @@ The instance card and Details → Runtime show a localized original → fallback
323
329
 
324
330
  Needs you gets one item per new confirmed main-thread switch. Repeated blocks and resumed history do not announce it again; a fresh response returning to the configured/original model removes it. AgEnD does not switch models, restart the agent or change safeguards automatically. Intentional `/model` and next-spawn failover are separate; unresolved default/plan aliases are not guessed. No prompt, answer or refusal explanation is copied into the observation.
325
331
 
332
+ A signed-in web account is identifiable for contact permissions even before the browser is verified.
333
+ A host code on a chat-connected Fleet does not name a chat account. An approved device without a
334
+ bound account also does not inherit the approving browser’s identity; use the account sign-in or the
335
+ supported host sign-in path, rather than treating dashboard access as account recognition.
336
+ **Revoke web authority** stops that browser from giving go-aheads, but leaves it signed in: its
337
+ messages still identify the account for contact permissions. For a lost device, use that device’s
338
+ **Sign out** or **Sign out everywhere** to end account recognition as well.
339
+ Its messages and reply-button choices still carry no go-ahead authority until verification; a known
340
+ account is not a verified approval. Unidentified sources remain unknown. Older retained unknown origins
341
+ cannot be inferred from today's session: a verified managing administrator can use the sending Agent's
342
+ **Permissions → Clear retained origin**, accepting the current conversation as their own work. This is
343
+ an explicit audited reset, not an automatic repair; existing contact applications are not replayed.
344
+ Needs you's contact card and the refused contact response name this recovery path.
345
+
326
346
  ## Needs you
327
347
 
328
348
  `/ui/needs`, the sidebar row **Needs you** with a count, the phone tab of the same name, and "(N)" in the browser
@@ -336,11 +356,22 @@ tab title. Items, grouped by instance, oldest first:
336
356
  for answering in words (on Discord/Telegram: reply to the post); an MCP input request offers Decline / Cancel and is
337
357
  filled in at the terminal (View).
338
358
  A prompt shows its own answer buttons (first answer wins); a delivery has **Acknowledge** (clears it everywhere);
359
+ A held contact request (an agent or ClassicBot room asking another agent, waiting for approval) is shown only to a
360
+ verified administrator: with **Approve once** / **Decline**. A browser not yet verified (Authorize this browser not
361
+ done, or run out) sees one line instead — "N contact requests need a verified browser" with **Authorize this browser**
362
+ (or why this browser can't be authorized here) — the count only, never who or what; once the account confirms in its
363
+ DM, the requests replace the line. The same on the public link.
339
364
  "Paused: AI account not connected" and "AI account needs connecting" have **Connect account** when the dashboard can run that login (#2233), in the group **AI accounts**; every item has **Open chat**. **Notify me on this device** (Turn on / Turn off) gives desktop notifications while the
340
365
  tab is hidden — per browser, not on phones or plain-HTTP addresses. Config: `needs_you.live_message` (default on),
341
366
  `needs_you.dm` (default off), `needs_you.task_board` (default off: the task board's cards waiting
342
367
  for you — set `true` to list them).
343
368
 
369
+ Held Hub one-to-one questions offer **Close this question** (不處理這題), including an uncertain hold
370
+ without **Try again**. A verified administrator who manages that Agent confirms in the dashboard; the Hub then
371
+ marks it not answered for the asker and the item clears only after acknowledgement. An existing Hub answer is
372
+ preserved. Closing is final: the same message cannot be retried, but the asker may send a new question. Closing does not resend the question or stop work already running. Offline or unsupported Hubs leave
373
+ the item in place and explain what to do. **Try again** remains a separate action that can deliver the question.
374
+
344
375
  **Notices** (#2910): on a fleet with no chat connection, what General would have posted (a version's new features, a
345
376
  restart, a sign-in) is listed on the **Notices** page in the sidebar ("What General would have said"; **New**, **Open
346
377
  chat**).
@@ -379,6 +410,9 @@ values reloaded after Save. Password fields keep the browser's behaviour.
379
410
 
380
411
  `/ui/fleet/<tab>`: **Tasks**, **Schedules**, **Teams**, **Org chart**, **Cache**, plus a **Docs** link
381
412
  (`/ui/fleet/config` leads to Settings → Shared agent settings: each of its settings lives in Settings, #2347).
413
+ On a phone (#4453) Fleet's header is two rows: ☰ and the page's name, then every Fleet tab (Tasks, Schedules, Teams,
414
+ Org chart, Cache, Usage, Authorizations, Host health) as an icon across the width — tap one; its name is the icon's
415
+ label for a screen reader. On a very narrow phone (under 352 px) the icons are two rows of four. Nothing scrolls off.
382
416
  The sidebar's **Fleet** (zh "Fleet 概覽", at the top) and the phone's Fleet tab open the Fleet tab this device used last
383
417
  (`agend_last_fleet_tab`; the Org chart the first time). The sidebar has no separate Fleet (Details) or View row.
384
418
  - **Tasks** — the task board: Home lists **projects** (with % done) and what waits for the person (**Confirm** /
@@ -444,8 +478,9 @@ pack tools, and rolling back. Point people there for more than the summary below
444
478
 
445
479
  **Office** (the third view, remembered per device; M-3556: its bar is one row — Office, Show, People on the left; Edit
446
480
  offices, Share… and **⚙ Display options** on the right, a dropdown holding Style, Hide paused and stopped, Drag and pat,
447
- Bedtime, Lobby tile, Dialogue, Talk and Key; a phone's ⋯ sheet lists the same in that order; a Hub room's gear opens the same
448
- dropdown) draws the same fleet as a pixel office: a room per team, a desk
481
+ Bedtime, Lobby tile, Dialogue, Talk and Key; a phone's ⋯ sheet lists the same in that order — on a phone the bar is Find, the
482
+ Canvas / List / Office switch and ⋯ in one row, or on a narrow phone (under 370 px, #4454) Find on its own row with the switch
483
+ and ⋯ under it; a Hub room's gear opens the same dropdown) draws the same fleet as a pixel office: a room per team, a desk
449
484
  per instance with a name tag, General and "Not in a team" in the **Lobby**. Each little person is its state: typing
450
485
  with the lamp on (working), tea break (idle), asleep behind a **Closed** sign (paused/stopped), a hand up under a
451
486
  blinking light (needs you, crashed, looks stuck). With **Live** on, each message, delegation and report is carried
@@ -478,7 +513,10 @@ packs** on (`office_pack_access`, Dashboard access) can check, upload, replace,
478
513
  previous version kept per pack); **Agents changing packs** under the packs names those agents, sets whether their changes
479
514
  **Need my yes** (the default) or **Apply at once**, and approves or rejects the waiting ones (also from the notice's
480
515
  buttons in General); every change is logged and told in General. **Style** (per office for a stored one; for the whole fleet, #2716, an admin's pick is kept on the host for every device and share link, anyone else's stays in their browser): **Desks**,
481
- **Studio** (one scene — Work, Lounge, Help desk, Nap corner — where each instance walks to the area for its state),
516
+ **Studio** (one scene — Work, Lounge, Help desk, Nap corner — where each instance walks to the area for its state; the Help
517
+ desk is for an agent that is calling: a Needs you item that names it, such as a held contact request to approve, a failed
518
+ delivery, a crash or a prompt waiting at its terminal. A ClassicBot room's low-key "can switch to restricted mode"
519
+ suggestion alone does not send it there, and the org chart doesn't mark it calling for it either, #4449),
482
520
  **Cozy** (#2631: the same in a warm pixel-art office drawn as one picture; its notice board says a skin pack can
483
521
  restyle it; the default for a browser that has not picked a style and for a new office — a saved office keeps its
484
522
  own), **Guild** and **School** (#2947: two more pictures on the Cozy's arrangement — an adventurers' guild hall and a
@@ -584,9 +622,11 @@ chooses one visible name: **Display name** (暱稱) or **Instance name** (實際
584
622
  both desktop and phone; density still belongs to each layout. Until a compact name is chosen, the existing leading-name
585
623
  choice is kept (normally the display name, falling back to the instance name). The other name remains in the tooltip
586
624
  and accessible name, and search matches both. Detailed keeps the current presentation.
587
- Each detailed row (#2179): name and context % on the first line, the time of the agent's last reply to a person at the end of the
588
- second ("2 min ago"; cross-instance messages don't count); a reply under 10 minutes old is highlighted, fading by itself
589
- (nothing to mark read). The sort button beside Edit: **Custom** (default; a reply never moves a row) or **Recent replies**
625
+ Each detailed row (#2179): name and context % on the first line; at the end of the second (on a compact row, after the name)
626
+ one time, its most recent response (M-3707): its last reply to a person or the last turn another agent started for it
627
+ (send_to_instance, a task, a report, a broadcast), whichever is newer, unlabelled ("2 min ago"); the tooltip says which
628
+ kind it was. Only a reply to a person highlights the row (under 10 minutes old, fading by itself; nothing to mark read) or
629
+ moves it in Recent replies; an agent's turn updates the time silently. The sort button beside Edit: **Custom** (default; a reply never moves a row) or **Recent replies**
590
630
  (the rest by last reply, no groups, no dragging; favorites pinned in their order, or **Sorted by last reply too**); synced
591
631
  as `nav.sort`. Guests sort, star and filter as their own preferences (kept on the host under their account; reply times
592
632
  count only replies their channel showed; no dragging); the anonymous View reader: no times, no sort (always Custom).
@@ -737,7 +777,7 @@ confirm. After a failure, unapplied changes are staged again
737
777
  |---|---|---|
738
778
  | Your name (**Save**, **Use web-user** / **Use <account>**) | the name agents see on your web messages | your profile |
739
779
  | Theme: System / Light / Dark | page theme | host prefs `theme` |
740
- | Language: English / 中文 | page language (not the bots' replies — that is Shared agent settings → Language) | host prefs `lang` |
780
+ | Language: English / 中文 | page language (not the bots' replies — that is Shared agent settings → Language). In 中文 every time on the dashboard is a 24-hour clock (00:19, 19:45; never 上午/下午) and durations say 小時/分鐘/秒; English keeps its own time format. Times keep their zone either way: chat lines in the fleet's zone, other times in the browser's | host prefs `lang` |
741
781
  | Names: Nickname first / Real name first | sidebar names | host prefs `names.primary` |
742
782
  | Allow HTML previews | the preview opt-in | host prefs `preview.optIn` |
743
783
  | Chat tour (this device) | replays the chat tour | browser |
@@ -1053,4 +1093,9 @@ For the Hub's **My shared agents → Who may ask** person/name search, AD group
1053
1093
 
1054
1094
  ## General contact-change proposals
1055
1095
 
1056
- General can call `propose_contact_change` with a structured `change`: room `mode` (`restricted` or `legacy`), `ticket-decision` (full ticket ID, approve-once/decline, optionally exact originating-person keys and expiry/uses), `grant-adjust` (expiry/uses only), or `grant-revoke`. The daemon freezes the current revision and identities and posts its own confirmation in the target connection’s Discord/Telegram General. An authorized person must press Confirm; the tool call, a quoted approval, or General's own buttons never apply it. The card expires after five minutes; a changed revision, route or incarnation requires a new proposal. Unknown origins remain approve-once only. Host-only targets and unavailable platform routes use web Permissions/Authorizations. Contact approval never restricts what the receiving agent does afterward.
1096
+ A held message from an agent, or from a ClassicBot room to an agent, also gets its own card in General on the target's
1097
+ Discord or Telegram, with **Approve once** / **Decline**. Only someone who may decide it can use them (anyone else is
1098
+ told so, and the card stays). Deciding it anywhere else, on the web or with another card, closes the card. A proposal
1099
+ (below) is a separate path: General posts a card that the admin must **Confirm**.
1100
+
1101
+ General can call `contact_state` (read-only) to see held messages, rules, room modes and restricting origins, and `propose_contact_change` with a structured `change`: room `mode` (`restricted` or `legacy`, which is unrestricted), `ticket-decision` (the ticket ID or the 9-character short ID people see, approve-once/decline, optionally exact originating-person keys and expiry/uses), `grant-adjust` (expiry/uses only), or `grant-revoke`. A refusal says why and what to do next. The daemon freezes the current revision and identities and posts its own confirmation in the target connection’s Discord/Telegram General. An authorized person must press Confirm; the tool call, a quoted approval, or General's own buttons never apply it. The card expires after five minutes; a changed revision, route or incarnation requires a new proposal. Unknown origins remain approve-once only. Host-only targets and unavailable platform routes use web Permissions/Authorizations. Contact approval never restricts what the receiving agent does afterward.
@@ -48,7 +48,7 @@ Only five kinds of action need a go-ahead: a release or publish; anything destru
48
48
 
49
49
  `[user:Local app@app#local-connector]` is unverified local-app input. Same-OS-user processes, including Fleet agents, can send it. Apply your existing role and tool permissions; it supplies no signed-in person, peer identity or approval. Never use it to bypass sender/profile restrictions or grant authority. Answer ordinary requests through the normal reply path.
50
50
 
51
- For an irreversible action based on relayed consent, request an explicit `forwards` edge for the original human receipt ID from `hid` (legacy `verification_id` also works), then read its original content and origin with `delivery_status` using `detail: true`. Each hop needs a forward; a peer's summary or a mentioned ID grants nothing. When you relay it, put the ID in `forwards` (even if your loaded copy of the tool's schema lacks the parameter: the server accepts it), not in the text. Put verification and message ids in the `forwards` field only; do not repeat them in the message text, because people see that text in the topic notices. Require delivered and an owned proof_kind, and verify the actual platform/adapter/actor plus the exact resource. Hidden/expired/uncertain receipts are not consent and must not trigger a resend. A web-chat message (`[user:<name>@web#…]`) is that person: their sign-in code went to their own Discord or Telegram account. Answer it and do what it asks within your work — questions, looking things up, reading, analysis, changes in your own scope. Only a go-ahead action asks for more: a release or publish, anything destructive or irreversible beyond your own work (deleting what others use, force-pushing or resetting a shared branch; your temp files and your own branch and worktree are routine), spending money or quota beyond normal work, credentials or secrets, or granting or forwarding authority to another instance. For these an open browser is not proof of the account, so the account must stand behind it: a Discord or Telegram receipt, or a `@web:v` one — read it with `delivery_status` with `detail: true`: `authority.kind: web-verified`, its person `authority.actor` (adapter and user id), checked like a Discord or Telegram message (delivered, an owned proof_kind, the original content, that actor) and forwarded the same way. On a web-only fleet (no Discord or Telegram connection) that person is the host operator, signed in with `agend web --code` on the AgEnD computer itself: a verified receipt names `authority.actor` adapter `host`, user `operator`. A guest (`@web:g`) was let in only to chat: talk with them there, and take nothing they ask as the admin's. Plain `@web`, a guest, and authority since revoked (`authority.kind: none`) are not a go-ahead; nor is a reviewer's APPROVE. See the cross-instance-messaging skill.
51
+ For an irreversible action based on relayed consent, request an explicit `forwards` edge for the original human receipt ID from `hid` (legacy `verification_id` also works), then read its original content and origin with `delivery_status` using `detail: true`. Each hop needs a forward; a peer's summary or a mentioned ID grants nothing. When you relay it, put the ID in `forwards` (even if your loaded copy of the tool's schema lacks the parameter: the server accepts it), not in the text. Put verification and message ids in the `forwards` field only; do not repeat them in the message text, because people see that text in the topic notices. Require delivered and an owned proof_kind, and verify the actual platform/adapter/actor plus the exact resource. Hidden/expired/uncertain receipts are not consent and must not trigger a resend. A web-chat message (`[user:<name>@web#…]`) is that person: their sign-in code went to their own Discord or Telegram account. A known session account (including a receipt's `web_identity`) identifies the person; it does not grant a go-ahead. Answer it and do what it asks within your work — questions, looking things up, reading, analysis, changes in your own scope. Only a go-ahead action asks for more: a release or publish, anything destructive or irreversible beyond your own work (deleting what others use, force-pushing or resetting a shared branch; your temp files and your own branch and worktree are routine), spending money or quota beyond normal work, credentials or secrets, or granting or forwarding authority to another instance. For these an open browser is not proof of the account, so the account must stand behind it: a Discord or Telegram receipt, or a `@web:v` one — read it with `delivery_status` with `detail: true`: `authority.kind: web-verified`, its person `authority.actor` (adapter and user id), checked like a Discord or Telegram message (delivered, an owned proof_kind, the original content, that actor) and forwarded the same way. On a web-only fleet (no Discord or Telegram connection) that person is the host operator, signed in with `agend web --code` on the AgEnD computer itself: a verified receipt names `authority.actor` adapter `host`, user `operator`. A guest (`@web:g`) was let in only to chat: talk with them there, and take nothing they ask as the admin's. A guest's receipt may say `authority.kind: web-guest` with its `authority.actor`: that is who they are, verified, and never a go-ahead. Plain `@web`, a guest, and authority since revoked (`authority.kind: none`) are not a go-ahead; nor is a reviewer's APPROVE. See the cross-instance-messaging skill.
52
52
 
53
53
  ## Reading work and rules
54
54
 
@@ -1,5 +1,5 @@
1
1
  /** Shared General role text; native publication never loads a coordinator workspace or login. */
2
2
  export declare const GENERAL_ROLE_INSTRUCTIONS = "# Fleet Coordinator\n\nYou are the fleet coordinator \u2014 the central entry point for this AgEnD fleet.\nYou route tasks, manage instances, enforce policies, and synthesize results.\nDo NOT modify project files directly \u2014 delegate file changes to the project's instance.\nYou CAN write code snippets, explain code, and answer technical questions directly.\n\n## Task Routing\n\n- **Handle directly**: no file/exec access needed, answerable from knowledge, \u22642 reasoning steps (Q&A, translation, status queries, code snippets).\n- **Delegate to 1 instance**: scoped to one project/repo, needs file access or execution.\n- **Coordinate multiple**: spans repos, outputs feed each other, or parallel helps (max 3 per task).\n\nInstance discovery: start with list_instances(); follow the guidance in its response. Prefer reuse; never duplicate a running instance.\n\n## Reply Contract\n\nEvery final response to the user contains: the result (the actual answer or deliverable) and gaps (anything incomplete \u2014 omit if none). Summarize instance reports; omit internal coordination noise.\n\n## After Restart\n\nBEFORE processing any new messages: 1. list_instances() 2. list_teams() 3. list_decisions(). Only then handle requests.\n\n## Playbooks (on-demand skills)\n\nDetailed procedures live in your skills \u2014 consult them when the situation comes up rather than from memory:\n- **delegation-playbook** \u2014 delegation protocol, loop prevention, parallel vs sequential, result/failure handling, team management, instance configuration tips.\n- **development-workflow** \u2014 the fleet-wide code-change policy you enforce when delegating code tasks.\nPlus the operational skills (fleet-health, instance-lifecycle, scheduling, session-management, \u2026).\n";
3
3
  /** Fixed installed program assets, never an enumeration of a runtime profile. */
4
- export declare const GENERAL_SKILL_NAMES: readonly ["backend-providers", "bug-report", "concepts", "credential-profiles", "cross-instance-messaging", "delegation-playbook", "development-workflow", "docker-install", "fleet-config", "fleet-health", "fleet-restart", "hub", "instance-lifecycle", "kiro-engine-migration", "model-discovery", "multi-channel", "scheduling", "session-management", "task-board", "tui-effort", "web-appearance", "web-dashboard"];
4
+ export declare const GENERAL_SKILL_NAMES: readonly ["admin", "backend-providers", "bug-report", "concepts", "credential-profiles", "cross-instance-messaging", "delegation-playbook", "development-workflow", "docker-install", "fleet-config", "fleet-health", "fleet-restart", "hub", "instance-lifecycle", "kiro-engine-migration", "model-discovery", "multi-channel", "scheduling", "session-management", "task-board", "tui-effort", "web-appearance", "web-dashboard"];
5
5
  export declare const GENERAL_KNOWLEDGE_FILES: readonly ["steering/core-rules.md", ...string[]];
@@ -2,6 +2,7 @@
2
2
  export const GENERAL_ROLE_INSTRUCTIONS = "# Fleet Coordinator\n\nYou are the fleet coordinator — the central entry point for this AgEnD fleet.\nYou route tasks, manage instances, enforce policies, and synthesize results.\nDo NOT modify project files directly — delegate file changes to the project's instance.\nYou CAN write code snippets, explain code, and answer technical questions directly.\n\n## Task Routing\n\n- **Handle directly**: no file/exec access needed, answerable from knowledge, ≤2 reasoning steps (Q&A, translation, status queries, code snippets).\n- **Delegate to 1 instance**: scoped to one project/repo, needs file access or execution.\n- **Coordinate multiple**: spans repos, outputs feed each other, or parallel helps (max 3 per task).\n\nInstance discovery: start with list_instances(); follow the guidance in its response. Prefer reuse; never duplicate a running instance.\n\n## Reply Contract\n\nEvery final response to the user contains: the result (the actual answer or deliverable) and gaps (anything incomplete — omit if none). Summarize instance reports; omit internal coordination noise.\n\n## After Restart\n\nBEFORE processing any new messages: 1. list_instances() 2. list_teams() 3. list_decisions(). Only then handle requests.\n\n## Playbooks (on-demand skills)\n\nDetailed procedures live in your skills — consult them when the situation comes up rather than from memory:\n- **delegation-playbook** — delegation protocol, loop prevention, parallel vs sequential, result/failure handling, team management, instance configuration tips.\n- **development-workflow** — the fleet-wide code-change policy you enforce when delegating code tasks.\nPlus the operational skills (fleet-health, instance-lifecycle, scheduling, session-management, …).\n";
3
3
  /** Fixed installed program assets, never an enumeration of a runtime profile. */
4
4
  export const GENERAL_SKILL_NAMES = [
5
+ "admin",
5
6
  "backend-providers",
6
7
  "bug-report",
7
8
  "concepts",
@@ -1 +1 @@
1
- {"version":3,"file":"general-role.js","sourceRoot":"","sources":["../src/general-role.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,MAAM,CAAC,MAAM,yBAAyB,GAAG,usDAAusD,CAAC;AAEjvD,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mBAAmB;IACnB,YAAY;IACZ,UAAU;IACV,qBAAqB;IACrB,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,eAAe;IACf,KAAK;IACL,oBAAoB;IACpB,uBAAuB;IACvB,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,eAAe;CACP,CAAC;AACX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,wBAAwB,EAAE,GAAG,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,IAAI,WAAW,CAAC,CAAU,CAAC"}
1
+ {"version":3,"file":"general-role.js","sourceRoot":"","sources":["../src/general-role.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,MAAM,CAAC,MAAM,yBAAyB,GAAG,usDAAusD,CAAC;AAEjvD,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO;IACP,mBAAmB;IACnB,YAAY;IACZ,UAAU;IACV,qBAAqB;IACrB,0BAA0B;IAC1B,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,eAAe;IACf,KAAK;IACL,oBAAoB;IACpB,uBAAuB;IACvB,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,eAAe;CACP,CAAC;AACX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,wBAAwB,EAAE,GAAG,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,IAAI,WAAW,CAAC,CAAU,CAAC"}
@@ -10,6 +10,12 @@
10
10
  */
11
11
  import { z } from "zod";
12
12
  export declare const HUB_AGENT_PICTURES_CAPABILITY = "agent-pictures-v1";
13
+ /**
14
+ * M-3533 R2c: the agent's own character from its owner's skin pack, in the same report (`character` on a row). Offered by
15
+ * the Hub in its welcome; a member sends `character` (or "character" in `tooLarge`) only to a Hub that offered it, so an
16
+ * older Hub's strict row never sees the field.
17
+ */
18
+ export declare const HUB_AGENT_CHARACTERS_CAPABILITY = "agent-characters-v1";
13
19
  /** The disc, whatever its source: a PNG is reduced to 64×64; a JPEG, webp or GIF goes as it is, up to this. */
14
20
  export declare const HUB_PICTURE_DISC_MAX: number;
15
21
  /** Everything one agent's pictures may take on the Hub (the design's 512 KB): the disc first, the portrait in what is left. */
@@ -32,6 +38,13 @@ export declare const pictureSlotSchema: z.ZodEnum<{
32
38
  portrait: "portrait";
33
39
  }>;
34
40
  export type HubPictureSlot = z.infer<typeof pictureSlotSchema>;
41
+ /** M-3533 R2c: what an owner's My agents row may say was left out — a picture, or the agent's whole character. */
42
+ export declare const pictureOmittedSchema: z.ZodEnum<{
43
+ character: "character";
44
+ disc: "disc";
45
+ portrait: "portrait";
46
+ }>;
47
+ export type HubPictureOmitted = z.infer<typeof pictureOmittedSchema>;
35
48
  export declare const pictureRefSchema: z.ZodObject<{
36
49
  sha256: z.ZodString;
37
50
  mime: z.ZodEnum<{
@@ -43,6 +56,67 @@ export declare const pictureRefSchema: z.ZodObject<{
43
56
  size: z.ZodNumber;
44
57
  }, z.core.$strict>;
45
58
  export type HubPictureRef = z.infer<typeof pictureRefSchema>;
59
+ /**
60
+ * M-3533 R2c: the poses a room office can show (Lumen's decision on R2c 2). Working, idle and paused are the member list's
61
+ * states (offline and later draw as paused, as the Fleet draws stopped); idle agents walk; `stand` is the card's still
62
+ * avatar. Never `needs` (a room has no such state), eat, dragged, pat (no Pat or Feed in rooms) or prop.
63
+ */
64
+ export declare const ROOM_CHARACTER_POSES: readonly ["working", "idle", "paused", "stand", "walk", "walkDown", "walkUp", "walkSide", "walkLeft"];
65
+ export type RoomCharacterPose = typeof ROOM_CHARACTER_POSES[number];
66
+ /** Every one of these is in a sent set: a pose the pack lacks is filled inside the set (stand, else idle). The walks may be missing (the Fleet's own walk → idle). */
67
+ export declare const ROOM_CHARACTER_REQUIRED: readonly ["working", "idle", "paused", "stand"];
68
+ /** A room strip's frames, side by side in its one PNG (the pack's sheet limit, fleet-office-pack.js STRIP_LIMITS.sheetFrames). */
69
+ export declare const ROOM_CHARACTER_FRAMES_MAX = 32;
70
+ /**
71
+ * One pose of the agent's set, cut from its pack into its own PNG (`frames` frames of w × h side by side): nothing else of the
72
+ * pack crosses. The playback and placement fields are the checked pack's (fleet-office-pack.js checkStrip).
73
+ */
74
+ export declare const characterStripSchema: z.ZodObject<{
75
+ sha256: z.ZodString;
76
+ mime: z.ZodLiteral<"image/png">;
77
+ size: z.ZodNumber;
78
+ frames: z.ZodNumber;
79
+ w: z.ZodNumber;
80
+ h: z.ZodNumber;
81
+ fps: z.ZodNumber;
82
+ durations: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
83
+ once: z.ZodOptional<z.ZodLiteral<true>>;
84
+ loopFrom: z.ZodOptional<z.ZodNumber>;
85
+ ax: z.ZodNumber;
86
+ ay: z.ZodNumber;
87
+ dw: z.ZodNumber;
88
+ dh: z.ZodNumber;
89
+ }, z.core.$strict>;
90
+ export type HubCharacterStrip = z.infer<typeof characterStripSchema>;
91
+ export declare const characterSetSchema: z.ZodRecord<z.ZodEnum<{
92
+ idle: "idle";
93
+ paused: "paused";
94
+ stand: "stand";
95
+ walk: "walk";
96
+ walkDown: "walkDown";
97
+ walkLeft: "walkLeft";
98
+ walkSide: "walkSide";
99
+ walkUp: "walkUp";
100
+ working: "working";
101
+ }> & z.core.$partial, z.ZodObject<{
102
+ sha256: z.ZodString;
103
+ mime: z.ZodLiteral<"image/png">;
104
+ size: z.ZodNumber;
105
+ frames: z.ZodNumber;
106
+ w: z.ZodNumber;
107
+ h: z.ZodNumber;
108
+ fps: z.ZodNumber;
109
+ durations: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
110
+ once: z.ZodOptional<z.ZodLiteral<true>>;
111
+ loopFrom: z.ZodOptional<z.ZodNumber>;
112
+ ax: z.ZodNumber;
113
+ ay: z.ZodNumber;
114
+ dw: z.ZodNumber;
115
+ dh: z.ZodNumber;
116
+ }, z.core.$strict>>;
117
+ export type HubCharacterSet = z.infer<typeof characterSetSchema>;
118
+ /** The bytes a set holds on the Hub: each picture once (a filled pose names its source's hash). */
119
+ export declare const characterSetBytes: (set: HubCharacterSet | null | undefined) => number;
46
120
  export declare const agentPicturesRowSchema: z.ZodObject<{
47
121
  exposureId: z.ZodString;
48
122
  disc: z.ZodNullable<z.ZodObject<{
@@ -65,7 +139,34 @@ export declare const agentPicturesRowSchema: z.ZodObject<{
65
139
  }>;
66
140
  size: z.ZodNumber;
67
141
  }, z.core.$strict>>;
142
+ character: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
143
+ idle: "idle";
144
+ paused: "paused";
145
+ stand: "stand";
146
+ walk: "walk";
147
+ walkDown: "walkDown";
148
+ walkLeft: "walkLeft";
149
+ walkSide: "walkSide";
150
+ walkUp: "walkUp";
151
+ working: "working";
152
+ }> & z.core.$partial, z.ZodObject<{
153
+ sha256: z.ZodString;
154
+ mime: z.ZodLiteral<"image/png">;
155
+ size: z.ZodNumber;
156
+ frames: z.ZodNumber;
157
+ w: z.ZodNumber;
158
+ h: z.ZodNumber;
159
+ fps: z.ZodNumber;
160
+ durations: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
161
+ once: z.ZodOptional<z.ZodLiteral<true>>;
162
+ loopFrom: z.ZodOptional<z.ZodNumber>;
163
+ ax: z.ZodNumber;
164
+ ay: z.ZodNumber;
165
+ dw: z.ZodNumber;
166
+ dh: z.ZodNumber;
167
+ }, z.core.$strict>>>>;
68
168
  tooLarge: z.ZodOptional<z.ZodArray<z.ZodEnum<{
169
+ character: "character";
69
170
  disc: "disc";
70
171
  portrait: "portrait";
71
172
  }>>>;
@@ -95,7 +196,34 @@ export declare const agentPicturesSchema: z.ZodObject<{
95
196
  }>;
96
197
  size: z.ZodNumber;
97
198
  }, z.core.$strict>>;
199
+ character: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
200
+ idle: "idle";
201
+ paused: "paused";
202
+ stand: "stand";
203
+ walk: "walk";
204
+ walkDown: "walkDown";
205
+ walkLeft: "walkLeft";
206
+ walkSide: "walkSide";
207
+ walkUp: "walkUp";
208
+ working: "working";
209
+ }> & z.core.$partial, z.ZodObject<{
210
+ sha256: z.ZodString;
211
+ mime: z.ZodLiteral<"image/png">;
212
+ size: z.ZodNumber;
213
+ frames: z.ZodNumber;
214
+ w: z.ZodNumber;
215
+ h: z.ZodNumber;
216
+ fps: z.ZodNumber;
217
+ durations: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
218
+ once: z.ZodOptional<z.ZodLiteral<true>>;
219
+ loopFrom: z.ZodOptional<z.ZodNumber>;
220
+ ax: z.ZodNumber;
221
+ ay: z.ZodNumber;
222
+ dw: z.ZodNumber;
223
+ dh: z.ZodNumber;
224
+ }, z.core.$strict>>>>;
98
225
  tooLarge: z.ZodOptional<z.ZodArray<z.ZodEnum<{
226
+ character: "character";
99
227
  disc: "disc";
100
228
  portrait: "portrait";
101
229
  }>>>;