@skillcdn/console 0.5.1 → 0.5.2

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 (288) hide show
  1. package/README.md +20 -2
  2. package/dist/agent-page.d.ts.map +1 -1
  3. package/dist/agent-page.js +4 -4
  4. package/dist/agent-page.js.map +1 -1
  5. package/dist/api.d.ts +5 -4
  6. package/dist/api.d.ts.map +1 -1
  7. package/dist/api.js +5 -4
  8. package/dist/api.js.map +1 -1
  9. package/dist/cli/cli.d.ts +32 -0
  10. package/dist/cli/cli.d.ts.map +1 -1
  11. package/dist/cli/cli.js +442 -93
  12. package/dist/cli/cli.js.map +1 -1
  13. package/dist/cli/format.d.ts +6 -2
  14. package/dist/cli/format.d.ts.map +1 -1
  15. package/dist/cli/format.js +25 -3
  16. package/dist/cli/format.js.map +1 -1
  17. package/dist/cli/help.d.ts.map +1 -1
  18. package/dist/cli/help.js +10 -5
  19. package/dist/cli/help.js.map +1 -1
  20. package/dist/cli/machine-check.d.ts +36 -0
  21. package/dist/cli/machine-check.d.ts.map +1 -0
  22. package/dist/cli/machine-check.js +151 -0
  23. package/dist/cli/machine-check.js.map +1 -0
  24. package/dist/cli/runner-host.d.ts +7 -0
  25. package/dist/cli/runner-host.d.ts.map +1 -1
  26. package/dist/cli/runner-host.js +2 -0
  27. package/dist/cli/runner-host.js.map +1 -1
  28. package/dist/cli/secret-notes.d.ts +8 -0
  29. package/dist/cli/secret-notes.d.ts.map +1 -0
  30. package/dist/cli/secret-notes.js +48 -0
  31. package/dist/cli/secret-notes.js.map +1 -0
  32. package/dist/client.d.ts +7 -1
  33. package/dist/client.d.ts.map +1 -1
  34. package/dist/client.js +6 -1
  35. package/dist/client.js.map +1 -1
  36. package/dist/components/agent-page.d.ts +106 -13
  37. package/dist/components/agent-page.d.ts.map +1 -1
  38. package/dist/components/agent-page.js +391 -102
  39. package/dist/components/agent-page.js.map +1 -1
  40. package/dist/components/agents.d.ts.map +1 -1
  41. package/dist/components/agents.js +1 -1
  42. package/dist/components/agents.js.map +1 -1
  43. package/dist/components/board.d.ts.map +1 -1
  44. package/dist/components/board.js +3 -2
  45. package/dist/components/board.js.map +1 -1
  46. package/dist/components/categories.js +1 -1
  47. package/dist/components/categories.js.map +1 -1
  48. package/dist/components/decision-list.d.ts.map +1 -1
  49. package/dist/components/decision-list.js +1 -1
  50. package/dist/components/decision-list.js.map +1 -1
  51. package/dist/components/event-feed.d.ts.map +1 -1
  52. package/dist/components/event-feed.js +3 -2
  53. package/dist/components/event-feed.js.map +1 -1
  54. package/dist/components/goals.d.ts +2 -0
  55. package/dist/components/goals.d.ts.map +1 -1
  56. package/dist/components/goals.js +1 -1
  57. package/dist/components/goals.js.map +1 -1
  58. package/dist/components/home.d.ts.map +1 -1
  59. package/dist/components/home.js +12 -6
  60. package/dist/components/home.js.map +1 -1
  61. package/dist/components/icon.d.ts +31 -0
  62. package/dist/components/icon.d.ts.map +1 -0
  63. package/dist/components/icon.js +169 -0
  64. package/dist/components/icon.js.map +1 -0
  65. package/dist/components/markdown.d.ts +6 -0
  66. package/dist/components/markdown.d.ts.map +1 -1
  67. package/dist/components/markdown.js +10 -2
  68. package/dist/components/markdown.js.map +1 -1
  69. package/dist/components/people.js +1 -1
  70. package/dist/components/people.js.map +1 -1
  71. package/dist/components/plugin-frame.d.ts.map +1 -1
  72. package/dist/components/plugin-frame.js +7 -0
  73. package/dist/components/plugin-frame.js.map +1 -1
  74. package/dist/components/projects.d.ts +17 -4
  75. package/dist/components/projects.d.ts.map +1 -1
  76. package/dist/components/projects.js +25 -6
  77. package/dist/components/projects.js.map +1 -1
  78. package/dist/components/sessions.d.ts.map +1 -1
  79. package/dist/components/sessions.js +3 -2
  80. package/dist/components/sessions.js.map +1 -1
  81. package/dist/components/setup.d.ts.map +1 -1
  82. package/dist/components/setup.js +2 -2
  83. package/dist/components/setup.js.map +1 -1
  84. package/dist/components/shell.d.ts.map +1 -1
  85. package/dist/components/shell.js +3 -2
  86. package/dist/components/shell.js.map +1 -1
  87. package/dist/components/tokens.js +1 -1
  88. package/dist/components/tokens.js.map +1 -1
  89. package/dist/components/ui.d.ts +5 -2
  90. package/dist/components/ui.d.ts.map +1 -1
  91. package/dist/components/ui.js +10 -7
  92. package/dist/components/ui.js.map +1 -1
  93. package/dist/connect-page.js +1 -1
  94. package/dist/connect-page.js.map +1 -1
  95. package/dist/console.css +473 -77
  96. package/dist/console.d.ts.map +1 -1
  97. package/dist/console.js +38 -31
  98. package/dist/console.js.map +1 -1
  99. package/dist/home-tiles.d.ts +9 -0
  100. package/dist/home-tiles.d.ts.map +1 -1
  101. package/dist/home-tiles.js +105 -23
  102. package/dist/home-tiles.js.map +1 -1
  103. package/dist/i18n/en.d.ts +48 -1
  104. package/dist/i18n/en.d.ts.map +1 -1
  105. package/dist/i18n/en.js +125 -2
  106. package/dist/i18n/en.js.map +1 -1
  107. package/dist/i18n/ko.d.ts.map +1 -1
  108. package/dist/i18n/ko.js +197 -79
  109. package/dist/i18n/ko.js.map +1 -1
  110. package/dist/i18n/particles.d.ts +7 -0
  111. package/dist/i18n/particles.d.ts.map +1 -0
  112. package/dist/i18n/particles.js +72 -0
  113. package/dist/i18n/particles.js.map +1 -0
  114. package/dist/icons/glyphs.d.ts +605 -0
  115. package/dist/icons/glyphs.d.ts.map +1 -0
  116. package/dist/icons/glyphs.js +104 -0
  117. package/dist/icons/glyphs.js.map +1 -0
  118. package/dist/icons/index.d.ts +59 -0
  119. package/dist/icons/index.d.ts.map +1 -0
  120. package/dist/icons/index.js +157 -0
  121. package/dist/icons/index.js.map +1 -0
  122. package/dist/index.d.ts +1 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +1 -0
  125. package/dist/index.js.map +1 -1
  126. package/dist/limits.d.ts +9 -0
  127. package/dist/limits.d.ts.map +1 -1
  128. package/dist/limits.js +9 -0
  129. package/dist/limits.js.map +1 -1
  130. package/dist/marks.d.ts +9 -0
  131. package/dist/marks.d.ts.map +1 -1
  132. package/dist/marks.js +9 -0
  133. package/dist/marks.js.map +1 -1
  134. package/dist/onboarding.js +3 -3
  135. package/dist/onboarding.js.map +1 -1
  136. package/dist/plugin/web.d.ts +3 -0
  137. package/dist/plugin/web.d.ts.map +1 -1
  138. package/dist/plugin/web.js +5 -1
  139. package/dist/plugin/web.js.map +1 -1
  140. package/dist/runner/acp.d.ts.map +1 -1
  141. package/dist/runner/acp.js +2 -2
  142. package/dist/runner/acp.js.map +1 -1
  143. package/dist/runner/awake.d.ts +35 -0
  144. package/dist/runner/awake.d.ts.map +1 -0
  145. package/dist/runner/awake.js +95 -0
  146. package/dist/runner/awake.js.map +1 -0
  147. package/dist/runner/claude.d.ts.map +1 -1
  148. package/dist/runner/claude.js +19 -7
  149. package/dist/runner/claude.js.map +1 -1
  150. package/dist/runner/codex.d.ts.map +1 -1
  151. package/dist/runner/codex.js +2 -2
  152. package/dist/runner/codex.js.map +1 -1
  153. package/dist/runner/config.d.ts +5 -0
  154. package/dist/runner/config.d.ts.map +1 -1
  155. package/dist/runner/config.js +9 -0
  156. package/dist/runner/config.js.map +1 -1
  157. package/dist/runner/desk.d.ts.map +1 -1
  158. package/dist/runner/desk.js +5 -6
  159. package/dist/runner/desk.js.map +1 -1
  160. package/dist/runner/runner.d.ts +13 -2
  161. package/dist/runner/runner.d.ts.map +1 -1
  162. package/dist/runner/runner.js +141 -22
  163. package/dist/runner/runner.js.map +1 -1
  164. package/dist/runner/slack.d.ts.map +1 -1
  165. package/dist/runner/slack.js +10 -4
  166. package/dist/runner/slack.js.map +1 -1
  167. package/dist/runner/types.d.ts +15 -0
  168. package/dist/runner/types.d.ts.map +1 -1
  169. package/dist/runner/types.js +9 -0
  170. package/dist/runner/types.js.map +1 -1
  171. package/dist/schemas.d.ts +94 -1
  172. package/dist/schemas.d.ts.map +1 -1
  173. package/dist/schemas.js +81 -5
  174. package/dist/schemas.js.map +1 -1
  175. package/dist/services.d.ts.map +1 -1
  176. package/dist/services.js +9 -5
  177. package/dist/services.js.map +1 -1
  178. package/dist/setup-guide.d.ts +14 -3
  179. package/dist/setup-guide.d.ts.map +1 -1
  180. package/dist/setup-guide.js +41 -37
  181. package/dist/setup-guide.js.map +1 -1
  182. package/dist/tokens.d.ts.map +1 -1
  183. package/dist/tokens.js +5 -1
  184. package/dist/tokens.js.map +1 -1
  185. package/dist/vocabulary.d.ts +7 -0
  186. package/dist/vocabulary.d.ts.map +1 -1
  187. package/dist/vocabulary.js +6 -0
  188. package/dist/vocabulary.js.map +1 -1
  189. package/docs/specs/cli.md +10 -7
  190. package/docs/specs/plugins.md +17 -6
  191. package/docs/specs/rest.md +10 -8
  192. package/docs/specs/runner.md +26 -8
  193. package/package.json +7 -3
  194. package/skills/building-a-console/SKILL.md +2 -2
  195. package/skills/building-a-plugin/SKILL.md +2 -2
  196. package/skills/keeping-a-desk/SKILL.md +2 -2
  197. package/skills/running-an-agent/SKILL.md +47 -57
  198. package/skills/working-the-board/SKILL.md +5 -4
  199. package/skills/working-the-board/references/the-pack.md +1 -1
  200. package/src/agent-page.tsx +13 -1
  201. package/src/api.ts +32 -1
  202. package/src/cli/cli.ts +530 -106
  203. package/src/cli/format.ts +31 -3
  204. package/src/cli/help.ts +12 -4
  205. package/src/cli/machine-check.ts +223 -0
  206. package/src/cli/runner-host.ts +8 -0
  207. package/src/cli/secret-notes.ts +63 -0
  208. package/src/client.ts +23 -0
  209. package/src/components/agent-page.tsx +629 -112
  210. package/src/components/agents.tsx +9 -5
  211. package/src/components/board.tsx +3 -15
  212. package/src/components/categories.tsx +2 -2
  213. package/src/components/decision-list.tsx +11 -7
  214. package/src/components/event-feed.tsx +7 -2
  215. package/src/components/goals.tsx +33 -25
  216. package/src/components/home.tsx +30 -6
  217. package/src/components/icon.tsx +337 -0
  218. package/src/components/markdown.tsx +22 -2
  219. package/src/components/people.tsx +1 -1
  220. package/src/components/plugin-frame.tsx +7 -0
  221. package/src/components/projects.tsx +39 -5
  222. package/src/components/sessions.tsx +2 -13
  223. package/src/components/setup.tsx +2 -2
  224. package/src/components/shell.tsx +3 -20
  225. package/src/components/tokens.tsx +1 -1
  226. package/src/components/ui.tsx +16 -8
  227. package/src/connect-page.tsx +1 -1
  228. package/src/console.tsx +87 -53
  229. package/src/home-tiles.ts +127 -23
  230. package/src/i18n/en.ts +127 -2
  231. package/src/i18n/ko.ts +200 -79
  232. package/src/i18n/particles.ts +79 -0
  233. package/src/icons/glyphs.ts +112 -0
  234. package/src/icons/index.ts +195 -0
  235. package/src/index.ts +7 -0
  236. package/src/limits.ts +9 -0
  237. package/src/marks.ts +12 -0
  238. package/src/onboarding.ts +3 -3
  239. package/src/plugin/web.ts +9 -2
  240. package/src/runner/acp.ts +2 -1
  241. package/src/runner/awake.ts +135 -0
  242. package/src/runner/claude.ts +19 -4
  243. package/src/runner/codex.ts +2 -1
  244. package/src/runner/config.ts +9 -0
  245. package/src/runner/desk.ts +5 -6
  246. package/src/runner/runner.ts +183 -23
  247. package/src/runner/slack.ts +10 -4
  248. package/src/runner/types.ts +20 -0
  249. package/src/schemas.ts +94 -3
  250. package/src/services.ts +9 -5
  251. package/src/setup-guide.ts +43 -38
  252. package/src/styles/README.md +5 -4
  253. package/src/styles/base.css +17 -0
  254. package/src/styles/console.css +1 -0
  255. package/src/styles/drawn-by-pages.json +1 -1
  256. package/src/styles/pages/agents.css +103 -1
  257. package/src/styles/pages/board.css +0 -10
  258. package/src/styles/pages/calendar.css +1 -1
  259. package/src/styles/pages/connect.css +0 -10
  260. package/src/styles/pages/decisions.css +3 -1
  261. package/src/styles/pages/feed.css +5 -2
  262. package/src/styles/pages/home.css +5 -0
  263. package/src/styles/pages/roadmap.css +2 -2
  264. package/src/styles/pages/settings.css +11 -0
  265. package/src/styles/pages/task.css +0 -20
  266. package/src/styles/pages/thread.css +1 -1
  267. package/src/styles/parts/calendar.css +1 -1
  268. package/src/styles/parts/callout.css +1 -0
  269. package/src/styles/parts/detail.css +22 -0
  270. package/src/styles/parts/empty.css +2 -0
  271. package/src/styles/parts/eyebrow.css +1 -1
  272. package/src/styles/parts/facts.css +1 -1
  273. package/src/styles/parts/figures.css +1 -1
  274. package/src/styles/parts/form.css +2 -1
  275. package/src/styles/parts/icon.css +191 -0
  276. package/src/styles/parts/input.css +14 -4
  277. package/src/styles/parts/mark.css +36 -0
  278. package/src/styles/parts/menu.css +1 -7
  279. package/src/styles/parts/page.css +1 -1
  280. package/src/styles/parts/panel.css +10 -0
  281. package/src/styles/parts/person.css +5 -2
  282. package/src/styles/parts/progress.css +5 -2
  283. package/src/styles/parts/rows.css +1 -0
  284. package/src/styles/parts/settings.css +5 -0
  285. package/src/styles/parts/stat.css +1 -1
  286. package/src/styles/tokens.css +22 -7
  287. package/src/tokens.ts +5 -1
  288. package/src/vocabulary.ts +9 -0
@@ -247,10 +247,21 @@ The console keeps a plugin's records in `plugin_records` (id UUIDv7, plugin, col
247
247
 
248
248
  ## SQL
249
249
 
250
- With `storage:sql` consented to, enabling creates the schema `plugin_<key>` and the login role `plugin_<key>`, grants the role `USAGE` and `CREATE` on that schema, which `PUBLIC` is left nothing on, sets its `search_path` to the schema, its `statement_timeout` to ten seconds and its connection limit to four, and gives it a password the console draws at every boot and keeps in memory alone. Where the database refuses to make the role or to change it, provisioning is refused (`plugin.unavailable`) in words that name the role and give the database's code and words, and never the statement, which carries the password: enabling is refused so, and a plugin enabled before is held failed with those words as its problem. The plugin's `migrations/*.sql`, in the order of their names, are applied as the plugin's role by the `migrate` role under the console's migration lock, those applied recorded in `plugin_<key>._migrations`. `ctx.sql.query` and `transaction` run on a pool of the plugin's role in the parent, and a result is bounded to 10,000 rows and 4 MiB. Purge drops the schema with everything in it, and the role.
250
+ With `storage:sql` consented to, enabling creates the schema `plugin_<key>` and the login role `plugin_<key>`, grants the role `USAGE` and `CREATE` on that schema, which `PUBLIC` is left nothing on, sets its `search_path` to the schema, its `statement_timeout` to ten seconds and its connection limit to four, and gives it a password the console draws at every boot and keeps in memory alone. The statement that gives the role its password carries what the server keeps of one, its salt and its two keys (SCRAM-SHA-256), and never the password, so a server that logs its statements (`log_statement` of `ddl` or more) writes down nothing a login can be made with. Where the database refuses to make the role or to change it, provisioning is refused (`plugin.unavailable`) in words that name the role and give the database's code and words, and never the statement: enabling is refused so, and a plugin enabled before is held failed with those words as its problem. The plugin's `migrations/*.sql`, in the order of their names, are applied as the plugin's role by the `migrate` role under the console's migration lock, those applied recorded in `plugin_<key>._migrations`. `ctx.sql.query` and `transaction` run on a pool of the plugin's role in the parent, and a result is bounded to 10,000 rows and 4 MiB. Purge drops the schema with everything in it, and the role.
251
251
 
252
252
  The role may use no schema of the console's, `public` (its tables), `drizzle` (the record of its migrations), `transcript` and `feed_order` (the feeds' order), nor another plugin's: a role that may use a schema can name a table in it, and naming one can hold it up before any right on it is asked for, the board's writes and reads, its feeds and the console's migrations with it ([ADR-0125](../adr/0125-a-feed-is-read-no-further-than-its-settled-end-which-its-writers-hold-a-lock-for.md), [ADR-0133](../adr/0133-the-consoles-schemas-are-closed-to-every-role-when-a-plugin-first-gets-a-schema-of-its-own.md)). Every role of a new database may use `public` through `PUBLIC`, so provisioning (at enabling, at every boot and in the `migrate` role) first takes from `PUBLIC` whatever it holds on those schemas and says so in the log (`PUBLIC may no longer use these schemas`); from then on every other role of the database uses them only by a grant of its own. Only a schema's owner may take that from `PUBLIC`: where the console's user does not own `public`, provisioning is refused (`plugin.unavailable`) with nothing made, in words that give the statement the database's owner runs once, `GRANT USAGE, CREATE ON SCHEMA "public" TO "<the console's user>"; REVOKE ALL ON SCHEMA "public" FROM PUBLIC;`. Enabling the plugin is refused so, and a plugin enabled before is held failed at the next boot with those words as its problem, its statements refused. A right on those schemas given to the plugin's role by name is taken back, and refused the same way where the console's user may not.
253
253
 
254
+ A statement of `ctx.sql` is one statement: it is sent with its parameters whether it has any or not, so the server takes a text that holds several for none of them and runs nothing of it (`plugin.invalid_args`); a migration's file is the one text that holds several. A connection goes back to the role's pool as a new one would be (`DISCARD ALL`), after a statement and after a transaction: what a statement set for its session, its timeout among it, is the role's own again, and what it took for its session, an advisory lock, a temporary table, a listen, is let go. A connection that cannot be reset, inside a transaction a statement opened and left, is ended.
255
+
256
+ What the role can still do beyond its schema, since no right keeps a role that may sign in from it, and what bounds each:
257
+
258
+ - **Take an advisory lock by number**: the one the migrations run under, the ones a transcript's writes take, and the ones the console tries before a plugin's hooks and jobs, which pass over a round where theirs is held. A lock is held no longer than the statement that took it, or the transaction of `ctx.sql` it was taken in, since the connection is reset when either ends. That is ten seconds a statement by the role's own setting, and a minute for a transaction its plugin does not end; a statement inside a transaction may set another timeout for that transaction, so a plugin written to do so holds a connection, and what it locked, for as long as one statement of its own runs. The role has four connections, and whoever holds a lock is seen in `pg_locks` beside `pg_stat_activity`, whose `application_name` is `console-plugin_<key>`. The feeds' order is not held this way for that reason ([ADR-0125](../adr/0125-a-feed-is-read-no-further-than-its-settled-end-which-its-writers-hold-a-lock-for.md)).
259
+ - **Notify a channel the console listens on.** A notification there says only that something may be new, and whoever hears it reads from where they stood: one from a plugin costs a read that finds nothing.
260
+ - **Read the catalogue**, which names the console's tables and says how many rows each is thought to hold, and never a row of them; and call a catalogue function that takes an object's number, which holds that object's lock for the length of the call and conflicts with no read or write of the board's.
261
+ - **Make a temporary table**, which the database lets every role do: it goes when its connection is reset.
262
+
263
+ None of them reads or changes anything of the console's. A plugin is code an administrator built into the image and consented to; what would end these too is a database of the plugin's own, which nothing has asked for.
264
+
254
265
  What the deployment must allow: the console's database user holds `CREATEROLE`, and owns the database or the schema `public` ([deploy/README.md](../../deploy/README.md#plugins-in-the-image)). Without `CREATEROLE`, `GET /api/v1/plugins` says `storage:sql` is unavailable in this deployment, and a plugin that declares it cannot be enabled (`plugin.unavailable`).
255
266
 
256
267
  ## The board
@@ -270,7 +281,7 @@ What the deployment must allow: the console's database user holds `CREATEROLE`,
270
281
  - New kinds of the console's events: `plugin.enabled`, `plugin.disabled`, `plugin.configured`, `plugin.granted`, `plugin.revoked`, `plugin.upgraded`, `plugin.command`, `plugin.failed`, `plugin.purged`. `events.plugin` names the plugin on every event a plugin caused, its own kinds and the board's. `plugin.configured` names the fields that changed and, for a secret, its `source`: `administrator`, or the host of the answer the console sealed it from. `plugin.granted` and `plugin.revoked` name a `grantee` where the role went to a plugin. An event a plugin caused for a person names the person as its actor and that plugin as `via`, beside `plugin` ([ADR-0072](../adr/0072-a-plugin-is-a-principal-it-holds-roles-granted-to-it-calls-as-itself-and-acts-for-a-person-within-what-both-may-do.md)). `plugin.command` records the plugin, the command, the arguments (the secret ones as `[hidden]`), the outcome (`ok`, `refused` with its code, `waiting`, `failed`), the duration and the caller's run. They are in the board project's feed where there is one, and always at `GET /api/v1/plugins/<key>/events`, for whoever may read them there ("REST").
271
282
  - A plugin's own events (`ctx.events.emit`, the kind named as a `key`, the data JSON up to 16 KiB) go to `plugin_events` (plugin, kind, data, at; 100,000 kept, for ninety days, the janitor sweeping the rest), reach the frames of that plugin that subscribed, read at `GET .../plugin-events?after=&limit=` by its role holders, and the hooks of plugins with `events:plugins` on `plugin:<key>:<kind>`. They are not the board's feed.
272
283
  - Hooks run in the `worker` role's host. A dispatcher reads the console's events and `plugin_events` from a cursor per plugin (`plugin_cursors`, begun at the end of both streams when the plugin is enabled, so that it is not told of everything that ever happened), each plugin under an advisory lock of its own, so that one process dispatches to a plugin at a time and two processes to two plugins at once. The lock is held by a transaction the server lets idle for as long as a pass may take on the plugin, its time, the hook begun last and a minute more, in place of the thirty seconds an idle transaction has otherwise, and it is taken with two keys, which no job's lock of one key can be. A process delivers to a few plugins side by side, a quarter as many as it has database connections, at least one and four at most (one at a time in the `worker` role, whose pool has four), since each holds a connection for its lock and takes more for its queries and its hook's calls on `ctx`: a plugin whose hook waits on a slow service, or waits out its backoff, holds up no plugin delivered to beside it, and the pool keeps room for the rest, the API's requests where the `api` role carries the worker. A plugin that has had twenty seconds of a pass leaves the rest of its events to the next. It delivers each event to the handler that named its kind; a console event is delivered for the plugin's board project, the projects it is on, the items it made and what it caused, and, for a plugin with `people:read:all`, the workspace's people events (`person.*`), teams' events (`team.*`) and agent accounts' events (`agent.*`: how one stands now, `agent.state_changed`, [ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md)), with the kind, the ids and the time, and the content and the actor with `board:read`, or with `people:read:all` for a people event, since the directory is its to read. Delivery is at least once and in order: a handler that fails is retried five times with doubling backoff, then the event is skipped with a `plugin.failed` event; a handler has thirty seconds. A try in which the console itself could not make the event ready, or could not call the hook, counts as a try the hook failed, so that an event it can never deliver is skipped the same way and does not hold the plugin at it. Each stream is read no further than its settled end, the highest number below which no change is still under way ([ADR-0125](../adr/0125-a-feed-is-read-no-further-than-its-settled-end-which-its-writers-hold-a-lock-for.md)), and a cursor begins there: an event numbered before another and committed after it is delivered once it is there, in the order of the numbers, and never passed over. Every delivery carries the event's `id` and the `attempt`, 1 the first time, so that a hook keeps from acting twice by the id alone, where before it had to make a key of the kind, the record and the time. A hook told to come back later by the service it called, a rate limit or an outage, says so with `retryAfterMs` in the data of its refusal (`throw new PluginError("rate_limited", message, { retryAfterMs })`), and the next try waits that long, within an hour, in place of the backoff; the try still counts.
273
- - Jobs run in the `worker` role's host, with the `jobs` capability, each under an advisory lock, never two at once, the lock held by a transaction the server lets idle for the job's five minutes and a minute more, in place of the thirty seconds an idle transaction has otherwise; `plugin_jobs` keeps the last run, its outcome and the next time, the first run one period after the scheduler first sees the job, `at` read in the workspace's time zone; a failed job is a `plugin.failed` event, at most one an hour per job, and a line in the log every time. A job has five minutes. The jobs are seen ([ADR-0128](../adr/0128-a-plugins-jobs-are-seen-and-one-that-keeps-failing-is-a-problem-of-its-plugin.md)): `plugin_jobs` keeps since when a job has failed, run after run, its first failure after it went well, cleared when it goes well again; `GET /api/v1/plugins/<key>` answers each job the module declares with how often it runs, its last run and outcome, its next time and that moment (`jobs`), and a job that failed twice running is a problem of its plugin, `the job <name> has failed since <moment>`, among `problems` on both routes until its next run goes well, for whoever lists the plugins and on the settings pages. One failure is not said there: a host away for a moment fails a run and the next goes well. A job the code no longer declares, and a plugin that is not enabled with `jobs`, have no such problem, and no next time.
284
+ - Jobs run in the `worker` role's host, with the `jobs` capability, each under an advisory lock, never two at once, the lock held by a transaction the server lets idle for the job's five minutes and a minute more, in place of the thirty seconds an idle transaction has otherwise; `plugin_jobs` keeps the last run, its outcome and the next time, the first run one period after the scheduler first sees the job, `at` read in the workspace's time zone; a failed job is a `plugin.failed` event, at most one an hour per job, and a line in the log every time. A job has five minutes. The jobs are seen ([ADR-0128](../adr/0128-a-plugins-jobs-are-seen-and-one-that-keeps-failing-is-a-problem-of-its-plugin.md)): `plugin_jobs` keeps since when a job has failed, run after run, its first failure after it went well, cleared when it goes well again; `GET /api/v1/plugins/<key>` answers each job the module declares with how often it runs, its last run and outcome, its next time and that moment (`jobs`), and a job that failed twice running is a problem of its plugin, `the job <name> has failed since <moment>`, among `problems` on both routes until its next run goes well, for whoever lists the plugins and on the settings pages. The problem says where the reason is, the `plugin.failed` event among the plugin's events, and never the reason itself, which is what the plugin's code said about a project's work; that event is written in the plugin's board project where it has one, so a reader the project is closed to is told that the reason is in that project and that a member of it or an administrator reads it, in place of being sent to an event they may not read. One failure is not said there: a host away for a moment fails a run and the next goes well. A job the code no longer declares, and a plugin that is not enabled with `jobs`, have no such problem, and no next time.
274
285
  - `WORKER_IN_PROCESS` puts hooks and jobs in the `api` role's host.
275
286
 
276
287
  ## Between plugins
@@ -374,7 +385,7 @@ The rules an agent reads carry the plugins: `GET /api/v1/rules` and `GET /api/v1
374
385
  </html>
375
386
  ```
376
387
 
377
- with the headers `content-security-policy: default-src 'none'; script-src <origin>/api/v1/plugins/<key>/web/<version>/; style-src <origin>/api/v1/plugins/<key>/web/ <origin>/api/v1/plugin-runtime/; img-src <origin>/api/v1/plugins/<key>/web/ data: blob:; font-src <origin>/api/v1/plugins/<key>/web/ <origin>/api/v1/plugin-runtime/; connect-src 'none'; frame-ancestors <origin>; base-uri 'none'; form-action 'none'; sandbox allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox`, `referrer-policy: no-referrer`, `x-content-type-options: nosniff` and `cache-control: no-store`. `<origin>` is the origin of the page that embeds the frame, read from the request's `referer`: `PUBLIC_URL`'s, or the loopback a person's own console is served on by `console serve` ([ADR-0014](../adr/0014-a-persons-own-console-is-served-from-their-machine-by-the-command.md)); any other, or none, is not found. A plugin that is not enabled, or a page or a widget it does not declare, is answered 404 with a blank document under `default-src 'none'; script-src 'sha256-<its one script>'; frame-ancestors <origin>; base-uri 'none'; form-action 'none'; sandbox allow-scripts`, whose one script tells the page `unavailable`, so that a frame never shows an answer meant for a program. The console's page embeds the frame as `<iframe sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox" referrerpolicy="origin" src=...>`. The document's origin is opaque: no cookie travels, the API is out of reach, and its scripts are the bundle's alone. `allow-forms` is there so that a page's form fires its `submit` event, which a browser drops with the submission otherwise; `form-action 'none'` keeps a submission from going anywhere, so a page handles the event itself and speaks over the bridge. `allow-popups` and `allow-popups-to-escape-sandbox` are there so that a link a person presses opens in a new tab: the browser lets the frame open a window for a press in it alone, one a press, and the window is a page as any, out of the sandbox, with no opener and no referrer as `frame.open` opens it ([ADR-0078](../adr/0078-a-frame-opens-its-links-itself-and-the-browser-holds-it-to-a-press-in-it.md)); the console's page admits no frame but its own under `frame-src 'self'`, so a window a plugin opened with an opener could send the frame nowhere. The headers are proven by an integration test, and a browser is seen to enforce them by `pnpm test:browser`, a real Chromium against the console listening on this machine, apart from `pnpm check` (`apps/console/src/http/plugin-frame.browser.test.ts`). The files of the bundle, `GET .../web/<version>/<path>`, are served from the package's `web` directory with `cache-control: public, max-age=31536000, immutable` (`no-store` on the preview console of `pnpm dev:plugins`, where a plugin is rebuilt under one version and a browser that kept a build would run it against a server that answers something else), `cross-origin-resource-policy: cross-origin` and `access-control-allow-origin: *`, since the frame's origin is not the console's and a module script, as a font, is fetched with CORS; the console's stylesheet for frames carries the same two. The document links `fonts.css` before the stylesheet: the `@font-face` rules of the console's own build, their files served at `GET /api/v1/plugin-runtime/assets/<file>`, fonts alone, so that a frame reads in the console's faces; empty where the server has no build. In a frame document the stylesheet paints no background and lets the document be as tall as its content (`html[data-console]`), so that the box the console draws shows through and the frame shrinks as well as grows. Until the page has drawn, the console shows a spinner in the frame's place and the frame not at all: until the page grows past the height it had before it drew anything, which its first `resize` says, or five seconds after the frame loaded or said `ready`, whichever is first, so that a page that draws nothing is shown as it is. A bundle holds no secret, since anyone may fetch it. The console's own pages gain `frame-src 'self'` in their policy and nothing else.
388
+ with the headers `content-security-policy: default-src 'none'; script-src <origin>/api/v1/plugins/<key>/web/<version>/; style-src <origin>/api/v1/plugins/<key>/web/ <origin>/api/v1/plugin-runtime/; img-src <origin>/api/v1/plugins/<key>/web/ data: blob:; font-src <origin>/api/v1/plugins/<key>/web/ <origin>/api/v1/plugin-runtime/; connect-src 'none'; frame-ancestors <origin>; base-uri 'none'; form-action 'none'; sandbox allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox`, `referrer-policy: no-referrer`, `x-content-type-options: nosniff` and `cache-control: no-store`. `<origin>` is the origin of the page that embeds the frame, read from the request's `referer`: `PUBLIC_URL`'s, or the loopback a person's own console is served on by `console serve` ([ADR-0014](../adr/0014-a-persons-own-console-is-served-from-their-machine-by-the-command.md)); any other, or none, is not found. A plugin that is not enabled, or a page or a widget it does not declare, is answered 404 with a blank document under `default-src 'none'; script-src 'sha256-<its one script>'; frame-ancestors <origin>; base-uri 'none'; form-action 'none'; sandbox allow-scripts`, whose one script tells the page `unavailable`, so that a frame never shows an answer meant for a program. The console's page embeds the frame as `<iframe sandbox="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox" referrerpolicy="origin" src=...>`, a page's with `scrolling="no"` as well (below). The document's origin is opaque: no cookie travels, the API is out of reach, and its scripts are the bundle's alone. `allow-forms` is there so that a page's form fires its `submit` event, which a browser drops with the submission otherwise; `form-action 'none'` keeps a submission from going anywhere, so a page handles the event itself and speaks over the bridge. `allow-popups` and `allow-popups-to-escape-sandbox` are there so that a link a person presses opens in a new tab: the browser lets the frame open a window for a press in it alone, one a press, and the window is a page as any, out of the sandbox, with no opener and no referrer as `frame.open` opens it ([ADR-0078](../adr/0078-a-frame-opens-its-links-itself-and-the-browser-holds-it-to-a-press-in-it.md)); the console's page admits no frame but its own under `frame-src 'self'`, so a window a plugin opened with an opener could send the frame nowhere. The headers are proven by an integration test, and a browser is seen to enforce them by `pnpm test:browser`, a real Chromium against the console listening on this machine, apart from `pnpm check` (`apps/console/src/http/plugin-frame.browser.test.ts`). The files of the bundle, `GET .../web/<version>/<path>`, are served from the package's `web` directory with `cache-control: public, max-age=31536000, immutable` (`no-store` on the preview console of `pnpm dev:plugins`, where a plugin is rebuilt under one version and a browser that kept a build would run it against a server that answers something else), `cross-origin-resource-policy: cross-origin` and `access-control-allow-origin: *`, since the frame's origin is not the console's and a module script, as a font, is fetched with CORS; the console's stylesheet for frames carries the same two. The document links `fonts.css` before the stylesheet: the `@font-face` rules of the console's own build, their files served at `GET /api/v1/plugin-runtime/assets/<file>`, fonts alone, so that a frame reads in the console's faces; empty where the server has no build. In a frame document the stylesheet paints no background and lets the document be as tall as its content (`html[data-console]`), so that the box the console draws shows through and the frame shrinks as well as grows. A page's frame never scrolls itself: it is as tall as its page, the console's page scrolls it, and the console embeds it with `scrolling="no"`, which the HTML standard has a browser keep from scrolling whatever the document's `overflow`, so that a wheel over a page moves the console's page, also where the frame is a fraction of a pixel shorter than its page or its height has yet to catch up with a page that grew (Firefox scrolls a frame by that much and holds the wheel to it); a page at the most a frame grows to, 20,000 pixels, scrolls the rest of itself inside, and a widget's frame is as its document has it. Until the page has drawn, the console shows a spinner in the frame's place and the frame not at all: until the page grows past the height it had before it drew anything, which its first `resize` says, or five seconds after the frame loaded or said `ready`, whichever is first, so that a page that draws nothing is shown as it is. A bundle holds no secret, since anyone may fetch it. The console's own pages gain `frame-src 'self'` in their policy and nothing else.
378
389
 
379
390
  ### The bridge
380
391
 
@@ -400,7 +411,7 @@ The console's page and the frame speak over `postMessage`, every message `{ v: 1
400
411
 
401
412
  The page performs every `call` with the person's session under `/api/v1/plugins/<key>/` only; a method or a path outside it is refused before any request, as `plugin.forbidden`. A page thus holds exactly the authority of its plugin's server module, as the person using it.
402
413
 
403
- `@skillcdn/console/plugin/web` is the frame's side: `connect()` says `ready`, waits for `init`, and resolves to `{ context, call, command, query, records, files, people, navigate, open, download, setTitle, onEvent, onTheme, onPath, close }`, applies the tokens to `:root` and the language to the document, and watches the body's height; it depends on nothing, and a refusal arrives as a `PluginBridgeError` with the console's code. `open(url)` opens a web or a mail address in a new tab from the frame itself, with no opener and no referrer, for a link a person pressed: the browser holds the frame to a press in it, as it holds any page that opens a window, so that no window opens on the frame's own time or for a press elsewhere on the page, and the call is refused with no recent press where the browser can say so ([ADR-0078](../adr/0078-a-frame-opens-its-links-itself-and-the-browser-holds-it-to-a-press-in-it.md)); it needs a console from 0.4.6, which a plugin that calls it says in its manifest's `console`. `@skillcdn/console/plugin/web/react` adds `usePlugin()` for a plugin that chooses React. `people.picture(id)` answers a `blob:` address for an image, or `null` for a person with no picture to show. A page renders nothing a person wrote as HTML, as the console's own pages do not.
414
+ `@skillcdn/console/plugin/web` is the frame's side: `connect()` says `ready`, waits for `init`, and resolves to `{ context, call, command, query, records, files, people, navigate, open, download, setTitle, onEvent, onTheme, onPath, close }`, applies the tokens to `:root` and the language to the document, and watches the body's height, said as the body is drawn and rounded up to a whole pixel, so that the frame of a page is never shorter than the page; it depends on nothing, and a refusal arrives as a `PluginBridgeError` with the console's code. `open(url)` opens a web or a mail address in a new tab from the frame itself, with no opener and no referrer, for a link a person pressed: the browser holds the frame to a press in it, as it holds any page that opens a window, so that no window opens on the frame's own time or for a press elsewhere on the page, and the call is refused with no recent press where the browser can say so ([ADR-0078](../adr/0078-a-frame-opens-its-links-itself-and-the-browser-holds-it-to-a-press-in-it.md)); it needs a console from 0.4.6, which a plugin that calls it says in its manifest's `console`. `@skillcdn/console/plugin/web/react` adds `usePlugin()` for a plugin that chooses React. `people.picture(id)` answers a `blob:` address for an image, or `null` for a person with no picture to show. A page renders nothing a person wrote as HTML, as the console's own pages do not.
404
415
 
405
416
  ### Tabs, sub-tabs and addresses
406
417
 
@@ -415,13 +426,13 @@ The page performs every `call` with the person's session under `/api/v1/plugins/
415
426
 
416
427
  The front page (`/`) is one grid of square cells on which the projects and the widgets stand as tiles ([ADR-0061](../adr/0061-the-front-page-is-one-grid-of-tiles-a-person-arranges-by-hand.md)): the widgets the person holds a role for, of the plugins that are enabled. The grid has 12 columns where the page is at least 1520 pixels wide, 8 from 900, 6 from 560 and 4 below, and a cell is as wide as that leaves it. A project is an `icon` of 1×1 cells or `small` of 2×2, or a glance at its board at `medium` 4×2, `large` 4×4 or `wide` 8×2, never `full` ([ADR-0105](../adr/0105-a-project-at-a-larger-size-is-a-glance-at-its-board.md)). A widget is at its size, `small` 2×2, `medium` 4×2, `large` 4×4, `wide` 8×2, `full` 8×4, filling the cells it has; the height it says is not read. A grid offers a tile the sizes that fit it, and one kept or started at a size too wide takes the largest it comes in that fits, each width being arranged for itself; every widget has a size at most four cells across, so that a phone has one to show ([ADR-0062](../adr/0062-a-widget-comes-in-a-size-a-phone-can-hold.md)). Each widget is a frame with the same document and bridge, `widget=<key>` in place of `page`, its name above it; `init` carries `size`, the size the widget has on this grid, and a `size` message follows when the person changes it or the page narrows past it, so that the bundle lays itself out for the cells (`frame.context.size`, `frame.onSize`).
417
428
 
418
- There is no default layout. On a width the person arranged, what they have not seen yet takes the first room reading from the top, at the size it starts at: a project made since, the widgets of a plugin as soon as it is enabled. For someone who has arranged nothing, the page is composed edge to edge ([ADR-0082](../adr/0082-the-page-of-someone-who-has-arranged-nothing-is-composed-edge-to-edge.md)): the first widget placed `home:top` leads, half the page wide, and beside it stand the next two `home:top` widgets and the projects, the column as high as the lead; the projects are icons, one to a cell, in rows as long as their column has cells, the last ending short ([ADR-0108](../adr/0108-a-project-on-the-composed-page-stands-on-one-cell.md)), below the lead and across the page where they would need more than two rows beside it; the other widgets, those placed `home:bottom` last, stand below, two to a row. On 6 columns or fewer, or with no second widget, they stand one under the other in the same order, the lead at the size of its `sizes` nearest the page's width and four rows, on that size's cells, and where it leaves columns the projects follow it there, then across the page below it, before the other widgets ([ADR-0110](../adr/0110-a-lead-with-nothing-beside-it-stands-at-a-size-it-comes-in.md)). Any other composed widget may reach fractions of a cell, and its frame is told the size of its `sizes` nearest the shape it has, one that fits within it on a tie, which may be another than its `defaultSize`. Arranging starts from the composed page, each tile on the cells nearest it; while arranging, a button puts the page back as composed, every width unarranged and every tile taken off back on it, which Done keeps as `{ hidden: [], layouts: {} }` and Cancel lets go ([ADR-0109](../adr/0109-arranging-can-put-the-page-back-as-composed.md)). `GET /api/v1/me` answers `home`, `{ hidden: [<tile>, ...], layouts: { "12"?, "8"?, "6"?, "4"?: [{ tile, x, y, size }, ...] } }`, or `null` while they have arranged nothing: the tiles they took off, which stay off, and what they arranged at each width, a tile being `project:<id>` or `widget:<plugin>:<widget>`; `PATCH /api/v1/me` with `home` keeps it. A width nobody arranged, when another was, reads the same order closed up: each tile takes one of the sizes it comes in on the grid, chosen so that the fewest cells stand empty within the rows the page takes, then the fewest tiles leave the size kept at the other width, then the page is the shortest, the projects taking one size together.
429
+ There is no default layout. On a width the person arranged, what they have not seen yet takes the first room reading from the top, at the size it starts at: a project made since, the widgets of a plugin as soon as it is enabled. For someone who has arranged nothing, the page is composed edge to edge ([ADR-0082](../adr/0082-the-page-of-someone-who-has-arranged-nothing-is-composed-edge-to-edge.md)): the first widget placed `home:top` leads, half the page wide, and beside it stand the next two `home:top` widgets and the projects, the column as high as the lead; the projects are icons, one to a cell, in rows as long as their column has cells, the last ending short ([ADR-0108](../adr/0108-a-project-on-the-composed-page-stands-on-one-cell.md)), below the lead and across the page where they would need more than two rows beside it; the other widgets, those placed `home:bottom` last, stand below, two to a row. On 6 columns or fewer, or with no second widget, they stand one under the other in the same order, the lead at the size of its `sizes` nearest the page's width and four rows, on that size's cells ([ADR-0110](../adr/0110-a-lead-with-nothing-beside-it-stands-at-a-size-it-comes-in.md)), and where it leaves columns the widgets after it that come in a size as wide as those columns stand there, one under the other and no lower than it reaches, then the projects in the rows left, then across the page below it, before the other widgets ([ADR-0139](../adr/0139-arranging-starts-from-the-page-closed-up-and-a-page-kept-with-gaps-can-be-closed.md)). Any other composed widget may reach fractions of a cell, and its frame is told the size of its `sizes` nearest the shape it has, one that fits within it on a tie, which may be another than its `defaultSize`. Arranging starts from the page closed up (ADR-0139): the tiles in the page's order at the first room from the top, a widget at the size the composed page told it, or at another of its `sizes` that takes no cell from it where the rows the widgets take close with that, the projects icons as they were, their last row ending short; where the composed page stands every tile on whole cells at a size it comes in, arranging starts on those very cells. While arranging, a button closes the page up by the same rule where it has gaps, a project made a card staying one and no widget made smaller, and another puts the page back as composed, every width unarranged and every tile taken off back on it, which Done keeps as `{ hidden: [], layouts: {} }` and Cancel lets go ([ADR-0109](../adr/0109-arranging-can-put-the-page-back-as-composed.md)). `GET /api/v1/me` answers `home`, `{ hidden: [<tile>, ...], layouts: { "12"?, "8"?, "6"?, "4"?: [{ tile, x, y, size }, ...] } }`, or `null` while they have arranged nothing: the tiles they took off, which stay off, and what they arranged at each width, a tile being `project:<id>` or `widget:<plugin>:<widget>`; `PATCH /api/v1/me` with `home` keeps it. A width nobody arranged, when another was, reads the same order closed up: each tile takes one of the sizes it comes in on the grid, chosen so that the fewest cells stand empty within the rows the page takes, then the fewest tiles leave the size kept at the other width, then the page is the shortest, the projects taking one size together.
419
430
 
420
431
  Edit layout opens nothing on the page. A tile is taken in hand with the mouse, or with a finger that rests on it a moment first, and put down on any cell; empty cells stay empty. Where it would land shows the tile, faint, and those in the way slide aside as it comes, the nearest first. On a tile of its own shape, the tiles of that shape between the two places each move one place towards the one it left; a smaller tile gives way to the nearest room, and a larger one stays, the tile landing beside it. The arrow keys move the tile with the focus a cell, and Delete takes it off. Each tile carries the way off the page and the sizes it comes in, what was taken off is listed to add back, Done keeps it all and Cancel lets it go. A tile the person may no longer see, for a role gone or a plugin disabled, is out of sight and comes back where it stood.
421
432
 
422
433
  ### The look
423
434
 
424
- The console's page reads its computed `--sc-*` tokens (the list is `CONSOLE_TOKENS` in the package) and sends them in `init.theme` and in `theme`; the frame's SDK sets them on `:root`, so that a custom console's look reaches its plugins' pages. `GET /api/v1/plugin-runtime/console.css` is the package's `console.css`, so that the `sc-*` classes work in a frame. Tokens added to the console's set for plugins: `--sc-color-info` and `--sc-color-info-subtle`; `--sc-color-neutral` and `--sc-color-neutral-subtle`, a state neither good nor bad; `--sc-series-1` to `--sc-series-6`, the colours a series of a chart is drawn in; `--sc-numeric`, the font features for tabular numerals. Figures are drawn with the console's charts, parts like the others (the rows `series` to `figures` of the package's catalogue, `src/styles/README.md`; [ADR-0123](../adr/0123-charts-are-parts-placed-by-measures-and-drawn-by-the-stylesheet.md)): the frame's `console.css` carries their classes, every measure of a chart is an attribute of an SVG, since the frame's policy lets no style be set on an element, and `@skillcdn/console/charts` computes the measures for a plain bundle, where a bundle of React takes the components from `@skillcdn/console`. A plugin's own classes begin with `pl-<key>-`; `console-plugin check` warns of others, and holds the `sc-*` classes a bundle uses to the parts of the catalogue: a class of one of the console's own pages lays that page out, is that page's alone and changes with it, and is refused in a plugin's. A page pads itself by `--sc-space-4` on every side, for the shadows of what is in it, which the frame would cut; the frame of a page stands that far outside the page's column, so that the page's first words line up with the tabs above it. A widget pads nothing: the box the console draws around it does. The frame's `lang` is the person's language, and the console shows the manifest's names in it; the words inside the frame are the plugin's, from `init.language`.
435
+ The console's page reads its computed `--sc-*` tokens (the list is `CONSOLE_TOKENS` in the package) and sends them in `init.theme` and in `theme`; the frame's SDK sets them on `:root`, so that a custom console's look reaches its plugins' pages. `GET /api/v1/plugin-runtime/console.css` is the package's `console.css`, so that the `sc-*` classes work in a frame. Tokens added to the console's set for plugins: `--sc-color-info` and `--sc-color-info-subtle`; `--sc-color-neutral` and `--sc-color-neutral-subtle`, a state neither good nor bad; `--sc-series-1` to `--sc-series-6`, the colours a series of a chart is drawn in; `--sc-numeric`, the font features for tabular numerals. A plugin's pages write a moment as the console's do, the day and the time of day, the year only where it is another than this one's, the hour as the language writes one ([ADR-0135](../adr/0135-a-moment-is-written-one-way-with-the-year-only-where-it-is-another.md)); a plugin formats its own, and the console does not do it for a frame. A bar a plugin draws on the progress track (`sc-progress-bar`) takes the series' colours, as the console's own does ([ADR-0138](../adr/0138-a-progress-bar-is-drawn-as-a-share-is-in-the-series-green-and-blue.md)). Figures are drawn with the console's charts, parts like the others (the rows `series` to `figures` of the package's catalogue, `src/styles/README.md`; [ADR-0123](../adr/0123-charts-are-parts-placed-by-measures-and-drawn-by-the-stylesheet.md)): the frame's `console.css` carries their classes, every measure of a chart is an attribute of an SVG, since the frame's policy lets no style be set on an element, and `@skillcdn/console/charts` computes the measures for a plain bundle, where a bundle of React takes the components from `@skillcdn/console`. A plugin's own classes begin with `pl-<key>-`; `console-plugin check` warns of others, and holds the `sc-*` classes a bundle uses to the parts of the catalogue: a class of one of the console's own pages lays that page out, is that page's alone and changes with it, and is refused in a plugin's. A page pads itself by `--sc-space-4` on every side, for the shadows of what is in it, which the frame would cut; the frame of a page stands that far outside the page's column, so that the page's first words line up with the tabs above it. A widget pads nothing: the box the console draws around it does. The frame's `lang` is the person's language, and the console shows the manifest's names in it; the words inside the frame are the plugin's, from `init.language`.
425
436
 
426
437
  ### The settings pages
427
438
 
@@ -123,11 +123,11 @@ For an administrator, signed in or through their agent's token. `POST` takes `{
123
123
 
124
124
  ### `GET /api/v1/projects`
125
125
 
126
- `{ "items": [project, ...] }`: the projects the asker may see, by name. A project carries its `key` (what paths and the command say; lowercase letters, digits and hyphens; immutable), `name`, `description`, `visibility` (`workspace`: everyone of the workspace is a member; `private`: only those listed), `skillsAddress` (canonical, or `null` for the organization's), `packToken` (`{ setAt }` while the project holds a token for a private pack, never the token itself, or `null`, [ADR-0028](../adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)), its mark, `color` (one of `COLOR_NAMES`, or `null`) and `symbol` (up to `MAX_PROJECT_SYMBOL_LENGTH` characters with no whitespace, or `null`; where either is `null` the pages choose one from the key and the name, `projectColorOf` and `projectSymbolOf`, so that projects are told apart either way), `icon` (the project's own image for its mark, shown in place of the symbol: its `sha256` and its `contentType`, one of `PROJECT_ICON_TYPES`; or `null`), `role` (what the asker is in it: `owner`, who configures it, or `member`, who works in it), `openDecisions` (the decisions waiting in it) and `openRuns` (the runs open in it: begun and not ended, which says nothing of whether an agent is still at them, [ADR-0020](../adr/0020-the-console-does-not-claim-an-agent-is-at-work-a-run-says-when-it-was-last-heard-from-and-a-new-run-takes-over.md)), `createdAt` and `updatedAt`. A workspace administrator sees every project, as its owner; a member sees those open to the workspace, as a member, and those they are listed in, as what they are listed.
126
+ `{ "items": [project, ...] }`: the projects the asker may see, by name. A project carries its `key` (what paths and the command say; lowercase letters, digits and hyphens; immutable), `name`, `description`, `visibility` (`workspace`: everyone of the workspace is a member; `private`: only those listed), `skillsAddress` (canonical, or `null` for the organization's), `packToken` (`{ setAt }` while the project holds a token for a private pack, never the token itself, or `null`, [ADR-0028](../adr/0028-the-console-reads-a-projects-pack-through-the-deployments-rest-api-with-a-pack-token-for-a-private-one.md)), its mark, `color` (one of `COLOR_NAMES`, or `null`) and `symbol` (up to `MAX_PROJECT_SYMBOL_LENGTH` characters with no whitespace, or `null`; where either is `null` the pages choose one from the key and the name, `projectColorOf` and `projectSymbolOf`, so that projects are told apart either way), `glyph` (the name of an icon of the console's pack, shown on the colour in the symbol's place, or `null`; left out by a console older than it, and a name the reader's pack lacks is read as none: `projectGlyphOf`; [ADR-0142](../adr/0142-the-console-has-one-icon-pack-drawn-on-one-grid-and-used-by-name.md)), `icon` (the project's own image for its mark, shown in place of the symbol and of the icon: its `sha256` and its `contentType`, one of `PROJECT_ICON_TYPES`; or `null`), `role` (what the asker is in it: `owner`, who configures it, or `member`, who works in it), `openDecisions` (the decisions waiting in it) and `openRuns` (the runs open in it: begun and not ended, which says nothing of whether an agent is still at them, [ADR-0020](../adr/0020-the-console-does-not-claim-an-agent-is-at-work-a-run-says-when-it-was-last-heard-from-and-a-new-run-takes-over.md)), `createdAt` and `updatedAt`. A workspace administrator sees every project, as its owner; a member sees those open to the workspace, as a member, and those they are listed in, as what they are listed.
127
127
 
128
128
  ### `POST /api/v1/projects`
129
129
 
130
- Takes `key` and `name`, and optionally `description`, `visibility` (default `private`), `skillsAddress` (checked as the standard spells one, kept canonical; `project.invalid_address`), `color` and `symbol`. For an administrator, signed in or through their agent with their token ([ADR-0045](../adr/0045-a-project-is-made-by-an-administrator.md)); they become the project's owner, and list another as owner from there. A member is refused with `auth.forbidden`. Answers `201` with the project and writes a `project.created` event in it, with `key` and `name`. A key taken is `project.key_taken`.
130
+ Takes `key` and `name`, and optionally `description`, `visibility` (default `private`), `skillsAddress` (checked as the standard spells one, kept canonical; `project.invalid_address`), `color`, `symbol` and `glyph` (a name of the console's own pack, `ICON_NAMES`, and nothing else: `request.invalid`). For an administrator, signed in or through their agent with their token ([ADR-0045](../adr/0045-a-project-is-made-by-an-administrator.md)); they become the project's owner, and list another as owner from there. A member is refused with `auth.forbidden`. Answers `201` with the project and writes a `project.created` event in it, with `key` and `name`. A key taken is `project.key_taken`.
131
131
 
132
132
  ### `GET /api/v1/events?after=&limit=`
133
133
 
@@ -169,15 +169,15 @@ The rules of the board ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-th
169
169
 
170
170
  ### `GET /api/v1/work`
171
171
 
172
- `{ "tasks": [{ "project": { "key", "name", "color", "symbol", "icon" }, "task" }, ...], "closed": [{ "project", "task" }, ...], "decisions": [{ "project", "decision" }, ...] }`: what is on the asker's plate across the projects they may see ([ADR-0019](../adr/0019-a-task-is-planned-in-days-the-board-keeps-its-moments-and-goals-and-categories-give-the-work-its-shape.md)): the open tasks they are at work on, the sooner due first and those with no day last; `closed`, the tasks they are at work on that are done or dropped and not yet put away, the last closed first, so that the week on the plate's page shows them on their days as a project's calendar does; and the decisions that wait for the asker's answer ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), a plugin's wherever it is and a person's own while the asker is in its project ([ADR-0077](../adr/0077-a-persons-own-decision-is-its-projects-and-reaches-nobody-out-of-it.md)), the longest waiting first; each with the project it belongs to, so that a page says and links it. A task put away is in neither list ([ADR-0030](../adr/0030-a-task-is-put-away-from-any-state.md)). At most `LIST_LIMIT` of each. With `?brief=true`, what the pages ask for, the tasks and the decisions come without their bodies, which the plate's page does not show and which weigh more than the rest of the plate together; the command reads the plate whole.
172
+ `{ "tasks": [{ "project": { "key", "name", "color", "symbol", "glyph", "icon" }, "task" }, ...], "closed": [{ "project", "task" }, ...], "decisions": [{ "project", "decision" }, ...] }`: what is on the asker's plate across the projects they may see ([ADR-0019](../adr/0019-a-task-is-planned-in-days-the-board-keeps-its-moments-and-goals-and-categories-give-the-work-its-shape.md)): the open tasks they are at work on, the sooner due first and those with no day last; `closed`, the tasks they are at work on that are done or dropped and not yet put away, the last closed first, so that the week on the plate's page shows them on their days as a project's calendar does; and the decisions that wait for the asker's answer ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), a plugin's wherever it is and a person's own while the asker is in its project ([ADR-0077](../adr/0077-a-persons-own-decision-is-its-projects-and-reaches-nobody-out-of-it.md)), the longest waiting first; each with the project it belongs to, so that a page says and links it. A task put away is in neither list ([ADR-0030](../adr/0030-a-task-is-put-away-from-any-state.md)). At most `LIST_LIMIT` of each. With `?brief=true`, what the pages ask for, the tasks and the decisions come without their bodies, which the plate's page does not show and which weigh more than the rest of the plate together; the command reads the plate whole.
173
173
 
174
174
  ### `GET /api/v1/decisions?open=&raised=&limit=&offset=`
175
175
 
176
- `{ "items": [{ "project": { "key", "name", "color", "symbol", "icon" }, "decision" }, ...], "more": boolean }`: the decisions addressed to the asker ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), alone or among others ([ADR-0057](../adr/0057-a-decision-may-be-addressed-to-several-people-and-the-first-answer-ends-it.md)), a plugin's wherever it is, in a project the asker may see or not ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md); the project's key, name and mark come with one from elsewhere, and nothing else of it), and a person's own while the asker is in its project ([ADR-0077](../adr/0077-a-persons-own-decision-is-its-projects-and-reaches-nobody-out-of-it.md)), a page at a time as the tasks are (`limit`, `offset`, `more`): the ones that wait first, the longest waiting first among them, then the answered, newest first, as the record; `open=true` keeps only those that wait, and `raised=true` answers instead the decisions the asker raised, through their agent or themselves, for someone else, held to the same. Each decision comes with the project it belongs to, as the plate's things do, so that a page says and links it. What a person's own page of decisions reads, in both kinds, and `console decisions --mine` and `--raised`.
176
+ `{ "items": [{ "project": { "key", "name", "color", "symbol", "glyph", "icon" }, "decision" }, ...], "more": boolean }`: the decisions addressed to the asker ([ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md)), alone or among others ([ADR-0057](../adr/0057-a-decision-may-be-addressed-to-several-people-and-the-first-answer-ends-it.md)), a plugin's wherever it is, in a project the asker may see or not ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md); the project's key, name and mark come with one from elsewhere, and nothing else of it), and a person's own while the asker is in its project ([ADR-0077](../adr/0077-a-persons-own-decision-is-its-projects-and-reaches-nobody-out-of-it.md)), a page at a time as the tasks are (`limit`, `offset`, `more`): the ones that wait first, the longest waiting first among them, then the answered, newest first, as the record; `open=true` keeps only those that wait, and `raised=true` answers instead the decisions the asker raised, through their agent or themselves, for someone else, held to the same. Each decision comes with the project it belongs to, as the plate's things do, so that a page says and links it. What a person's own page of decisions reads, in both kinds, and `console decisions --mine` and `--raised`.
177
177
 
178
178
  ### `GET /api/v1/decisions/<id>?wait=` and `POST /api/v1/decisions/<id>/answer`
179
179
 
180
- One decision by its id, wherever it is ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)): `{ "project": { "key", "name", "color", "symbol", "icon" }, "decision", "mayAnswer" }`, for whoever it reaches: anyone who may see its project; and, for a decision a plugin raised, from outside its project, the people it is addressed to, the person who raised it, a requester who raised it through the plugin's command in a board project they may not see as much as anyone ([ADR-0080](../adr/0080-a-plugin-reaches-the-projects-it-is-placed-on-and-whoever-may-use-it-is-a-requester-in-its-board-project.md)), and whoever manages one of the people it is addressed to, directly or up the reporting line. A person's own decision is its project's: out of the project, those it is addressed to and the person who raised it reach it no more ([ADR-0077](../adr/0077-a-persons-own-decision-is-its-projects-and-reaches-nobody-out-of-it.md)). `wait` holds the request as the project's route does. `mayAnswer` says whether the asker may answer it: anyone who may work in the project, and for a plugin's, those it is addressed to and the managers above them; the raiser reads alone. `POST .../answer` takes what the project's route takes and writes the answer for whoever `mayAnswer` is true for (`auth.forbidden` otherwise). A decision out of the asker's reach is `decision.not_found`, not told apart from one that is not there; nothing else of a project the asker may not see opens through it.
180
+ One decision by its id, wherever it is ([ADR-0068](../adr/0068-a-decision-reaches-whom-it-is-addressed-to-wherever-it-is-and-a-plugins-reaches-the-managers-above-them.md)): `{ "project": { "key", "name", "color", "symbol", "glyph", "icon" }, "decision", "mayAnswer" }`, for whoever it reaches: anyone who may see its project; and, for a decision a plugin raised, from outside its project, the people it is addressed to, the person who raised it, a requester who raised it through the plugin's command in a board project they may not see as much as anyone ([ADR-0080](../adr/0080-a-plugin-reaches-the-projects-it-is-placed-on-and-whoever-may-use-it-is-a-requester-in-its-board-project.md)), and whoever manages one of the people it is addressed to, directly or up the reporting line. A person's own decision is its project's: out of the project, those it is addressed to and the person who raised it reach it no more ([ADR-0077](../adr/0077-a-persons-own-decision-is-its-projects-and-reaches-nobody-out-of-it.md)). `wait` holds the request as the project's route does. `mayAnswer` says whether the asker may answer it: anyone who may work in the project, and for a plugin's, those it is addressed to and the managers above them; the raiser reads alone. `POST .../answer` takes what the project's route takes and writes the answer for whoever `mayAnswer` is true for (`auth.forbidden` otherwise). A decision out of the asker's reach is `decision.not_found`, not told apart from one that is not there; nothing else of a project the asker may not see opens through it.
181
181
 
182
182
  ### `GET /api/v1/decisions/<id>/files/<file id>`
183
183
 
@@ -229,7 +229,7 @@ Everything below is under `/api/v1/projects/<key>`, for whoever may see the proj
229
229
 
230
230
  ### `GET /api/v1/projects/<key>` and `PATCH /api/v1/projects/<key>`
231
231
 
232
- The project, as the asker sees it. A patch, for an owner, signed in or with a token, takes any of `name`, `description`, `visibility`, `skillsAddress` (`null` for the organization's), `color` and `symbol` (`null` for none), and writes a `project.updated` event naming the `fields`; what is already so writes nothing. The key does not change.
232
+ The project, as the asker sees it. A patch, for an owner, signed in or with a token, takes any of `name`, `description`, `visibility`, `skillsAddress` (`null` for the organization's), `color`, `symbol` and `glyph` (`null` for none), and writes a `project.updated` event naming the `fields`; what is already so writes nothing. The key does not change.
233
233
 
234
234
  ### `GET /api/v1/projects/<key>/glance`
235
235
 
@@ -450,13 +450,15 @@ What passes between the console and an agent account's runner ([ADR-0085](../adr
450
450
 
451
451
  **The runner's own**, for an agent account (`agent.not_found` for a person) on the session of its command signed in as itself ([`console login --self`](#connecting-an-agent)); its browser, or a token it made, is `agent.own_command`, since the command's session is the runner's one credential.
452
452
 
453
- - `PUT /api/v1/agents/me/runner` is the heartbeat: how the agent stands and why, the last signal delivered, the open session, the machine, the runner's version, the product and what it offers to choose from, and what the session runs with; every line bounded and read by schema (`request.invalid`), the body up to 64 KiB (`request.too_large`). It answers `{ "latest", "delivered", "settings", "state" }`: the number of the account's newest signal; the most the console was ever told was delivered, where a runner that lost its own count goes on from; the model and the effort chosen for it, `null` each for the product's own, and a choice this heartbeat's `offers` do not list, where they list any, is `null` from then on, since what is chosen is kept among what the product offers; and how the console has the agent, which is `stopped` whatever the runner says while a supervisor's `stop` stands. A state that changed is `agent.state_changed`, by the account.
453
+ - `PUT /api/v1/agents/me/runner` is the heartbeat: how the agent stands and why, the last signal delivered, the open session, the machine, the runner's version, the product and what it offers to choose from, what the session runs with, and as `sources`, optional, how each wake source the runner keeps beside the console's own stands ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md): `{ "name", "state", "since", "why"? }`, the state one of `connected`, `waiting` and `failing`, up to ten), which the console keeps as last said and answers as `runner.sources` of the account where a runner said any; every line bounded and read by schema (`request.invalid`), the body up to 64 KiB (`request.too_large`). It answers `{ "latest", "delivered", "settings", "state" }`: the number of the account's newest signal; the most the console was ever told was delivered, where a runner that lost its own count goes on from; the model and the effort chosen for it, `null` each for the product's own, and a choice this heartbeat's `offers` do not list, where they list any, is `null` from then on, since what is chosen is kept among what the product offers; and how the console has the agent, which is `stopped` whatever the runner says while a supervisor's `stop` stands. A state that changed is `agent.state_changed`, by the account.
454
454
  - `GET /api/v1/agents/me/signals/stream?after=<number>` is a stream of server-sent events, each `signal` with a signal as its data and its number as its id, from the number after `after` on, in order, with a comment in the silences. `Last-Event-ID` is read in place of `after` where it is further on. The stream ends when the command's session does, and when the process closes. It counts among the streams the account holds (`feed.too_many`).
455
455
 
456
- **The record.** `GET /api/v1/agents/<handle>/signals?before=&limit=` answers `{ "items": [signal, ...], "more" }`, the newest first, `limit` of them (50 where none is said, 200 at most), from before the number `before` on, to the account's supervisors (`auth.forbidden` for whoever sees the account and does not supervise it). `GET /api/v1/agents/me/signals` answers the same to the account itself, on a session of its own, a browser's or its command's. A signal is no event of the board's feed.
456
+ **The record.** `GET /api/v1/agents/<handle>/signals?before=&limit=` answers `{ "items": [signal, ...], "more", "delivered" }`, the newest first, `limit` of them (50 where none is said, 200 at most), from before the number `before` on, to the account's supervisors (`auth.forbidden` for whoever sees the account and does not supervise it). `delivered` is the number of the last signal delivered, every one before it too ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)), as the account's runner last said, `0` for none: a signal of the record is delivered where its number is no more than that, and waits otherwise. It follows the runner's heartbeat, so a signal the product has just taken reads as waiting for a moment. A console before 0.5.2 leaves it out. `GET /api/v1/agents/me/signals` answers the same to the account itself, on a session of its own, a browser's or its command's. A signal is no event of the board's feed.
457
457
 
458
458
  **A wake the runner raises itself.** `POST /api/v1/agents/me/signals`, for an agent account on its command's session, as the heartbeat is (`agent.own_command`, `agent.not_found`): `{ "kind": "wake", "source": "messenger", "key", "text" }`, what one of its wake sources heard on the machine ([runner.md](runner.md#wake-sources)). `key` is a line up to `MAX_SIGNAL_KEY_LENGTH` saying what it is about, a thread say; `text`, optional, is someone else's words, bounded as a signal's are. It answers `201` with the signal, recorded under the next number of the account's record, by nobody, and sent on the account's stream in its order. Nothing else is raised this way, any other `kind` or `source` being `request.invalid`: a runner tells its own agent nothing in a supervisor's name, the board's or the console's. A runner raises 600 wakes within an hour at most ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): one more is `signal.too_many` (`429`), with `retry-after`, the seconds until the hour has room, and nothing recorded. What a supervisor, the board and the schedule send is not counted.
459
459
 
460
+ **A wake an account raises for itself** ([ADR-0145](../adr/0145-an-agent-account-wakes-itself-now-or-at-a-moment-to-come.md)). `POST /api/v1/agents/me/wakes`, for an agent account on a session of its own, its command's or a browser's, and never a token it made (`agent.not_found` for anyone else): `{ "text"?, "at"?, "key"? }`. With no `at` it answers `201` with `{ "signal": { "number" }, "kept": null }`: a `wake` of the account's record, `source: "person"`, sent by the account. An account raises 30 within an hour, counted apart from its runner's and together with those kept for later as they are raised: one more is `signal.too_many` (`429`), with `retry-after`. A browser's session asks from the console's own pages alone (`auth.forbidden_origin`), as wherever something is changed. With `at`, a moment to come within 31 days (`request.invalid` otherwise), the wake is kept under `key`, `wake` where none is said, up to 40 lowercase letters, digits and hyphens, a second under a key taking the first one's place: `201` with `{ "signal": null, "kept": { "key", "at", "text", "createdAt" } }`; an account keeps 20 (`wake.too_many`, `409`). `GET /api/v1/agents/me/wakes` answers `{ "items": [...] }`, the soonest first, as `GET /api/v1/agents/<handle>/wakes` does to the account's supervisors; `DELETE /api/v1/agents/me/wakes/<key>` takes one away and answers what is left (`wake.not_found`, `404`). The worker raises a wake kept when its moment has come ([runner.md](runner.md#an-accounts-own-wakes)).
461
+
460
462
  **Sending one.** `POST /api/v1/agents/<handle>/signals`, for a supervisor, signed in on the console's own pages or through their agent's token ([ADR-0021](../adr/0021-a-token-configures-as-its-person-does.md)), takes `{ "kind", "text", "set" }` and answers `201` with the signal, numbered next on the account's record and naming who sent it and the agent they sent it through. A `tell` or an `interrupt` carries files as a form in place of the JSON ([ADR-0095](../adr/0095-a-tell-carries-files-of-any-kind-handed-to-the-agent-in-its-desk.md)): the part `signal` with what the JSON would say, and a part `file` for each, up to `MAX_SIGNAL_ATTACHMENTS`, of any kind, each with a name that is one line and no path and not empty, within `MAX_FILE_BYTES` together (`request.too_large`); the signal's `attachments` name them, `{ "id", "name", "size", "contentType" }` each. A picture is one by its bytes, a PNG, a JPEG, a GIF or a WebP, whatever the form calls it; any other file is kept as the media type its part names, and one whose part calls it a picture while its bytes are none is kept as `application/octet-stream`. `GET /api/v1/agents/<handle>/signals/<number>/files/<id>` answers the bytes of one to the account's supervisors, and `GET /api/v1/agents/me/signals/<number>/files/<id>` to the account, whose runner hands them to the agent: a picture shown in place under its kind, any other file as `application/octet-stream` with `content-disposition: attachment` and its name, both with `nosniff` and a policy that runs nothing; `file.not_found` for an id that is not that signal's. `kind` is one of `wake`, `tell`, `interrupt`, `stop`, `restart`, `reset` and `set`; `text` is up to `MAX_SIGNAL_LENGTH` characters, which a `tell` needs and an `interrupt` takes: with none, an `interrupt` stops the turn under way so that what the agent was sent and has not taken is read now ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)); `set` is `{ "model", "effort" }` for the kind `set`, one or both, a field left out staying as it is and `null` meaning the product's own again, each one of those the runner last offered where it offered any (`signal.not_offered`). A `stop` makes the agent `stopped` at once, by whoever sent it, and it stays so until a `restart` or a `reset` is sent; a `set` is kept with the account, and its runner applies it. The account's stream is woken in every process, on a channel of the accounts' own, which wakes no reader of the board's feed.
461
463
 
462
464
  ### The sessions and the transcript
@@ -35,7 +35,8 @@ The runner is the program on an agent account's machine that keeps its agent goi
35
35
  "runner": "0.5.0",
36
36
  "product": { "driver": "claude", "name": "Claude Code", "version": "2.1.0", "tried": true },
37
37
  "offers": { "models": ["opus", "sonnet"], "efforts": ["low", "medium", "high"], "steer": true, "images": true, "resume": true },
38
- "running": { "model": "opus", "effort": "high" }
38
+ "running": { "model": "opus", "effort": "high" },
39
+ "sources": [{ "name": "slack", "state": "connected", "since": "2026-11-20T08:32:00.000Z" }]
39
40
  }
40
41
  ```
41
42
 
@@ -45,6 +46,8 @@ The runner is the program on an agent account's machine that keeps its agent goi
45
46
  - `session` is the open session's id, or `null`.
46
47
  - `machine`, `runner`, `product`, `offers` and `running` say where it runs, with what, what the product offers to choose from, and what the open session runs with; each a line, bounded. `tried` says whether the driver was tried with that version of the product. A model or a level of effort is letters, digits and `. _ : [ ] -`, beginning with a letter or a digit, up to 120 characters, and up to 50 of each are offered. The runner holds what its product says to that before it says it on: a name in another shape is left out of `offers`, and is `null` in `running`, as a version that is no line is `null`; the runner says in a line how many it left out when it starts. One name the console would refuse does not cost the account its heartbeat.
47
48
 
49
+ - `sources` says how each wake source the runner keeps beside the console's own stands ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md)): its module's name, `connected`, `waiting` or `failing`, since when, and as `why` a line of the source's own where it does not listen, a secret the store does not hold or the name of what ended it. Up to ten. The console keeps what was last said with the runner's row and answers it to the account's supervisors and the account; a runner of before says none, and none stand for it.
50
+
48
51
  The console answers what the account's settings are and where the record stands:
49
52
 
50
53
  ```json
@@ -132,6 +135,15 @@ The first wake of an account is its onboarding task ([ADR-0088](../adr/0088-an-a
132
135
 
133
136
  The worker reads the feed every five seconds, a hundred events at a time, one pass at a time whatever the number of processes: the place it read to is a row a pass locks. An event's wakes are sent before the place moves past it, so a pass that ends halfway sends an event's wakes again and never loses one. A workspace that had a history when the rules came begins at the feed's end, and a new one at its beginning.
134
137
 
138
+ ## An account's own wakes
139
+
140
+ An agent account raises a wake for itself ([ADR-0145](../adr/0145-an-agent-account-wakes-itself-now-or-at-a-moment-to-come.md)), signed in as itself, on its command or in its browser, never with a token it made: `POST /api/v1/agents/me/wakes` with `{ "text"?, "at"?, "key"? }`, on the command `console agent wake me` ([cli.md](cli.md#agent-accounts)).
141
+
142
+ - **Now**, with no `at`: a signal of the account's record, `wake`, `source: "person"`, sent by the account, with its words as it said them. Thirty within an hour, counted apart from what its runner raises from a wake source and together with those kept for later as they are raised; one more is `signal.too_many` (429), with `retry-after`. A browser's session raises one from the console's own pages alone, as it changes anything. The answer is `{ "signal": { "number": 9 }, "kept": null }`.
143
+ - **For a moment to come**, with `at`, a moment within thirty-one days: kept, and no signal yet. One stands under a `key` at a time, `wake` where none is said, up to 40 lowercase letters, digits and hyphens; a second under the key takes the first one's place, and an account keeps twenty (`wake.too_many`, 409). The answer is `{ "signal": null, "kept": { "key", "at", "text", "createdAt" } }`. `GET /api/v1/agents/me/wakes` lists what is kept, the soonest first, as `GET /api/v1/agents/<handle>/wakes` does for a supervisor; `DELETE /api/v1/agents/me/wakes/<key>` takes one away (`wake.not_found` where there is none).
144
+ - **The worker raises each** when its moment has come, in the pass that sends the briefings, once: the row is taken in the transaction that writes the signal, which is the account's own, as one raised now is. One with no words says "The moment you asked to be woken at has come." The hour's bound holds here too: a wake that is due while the hour is full stays kept, and a later pass raises it when the hour has room. One that cannot be raised costs no other.
145
+ - **A wake and nothing else.** No other kind is sent this way, and nothing on the board wakes its own author.
146
+
135
147
  ## A session's life
136
148
 
137
149
  - What a runner writes is bounded by the hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): the events a session takes (60,000), the sessions an account begins (60), the wakes its runner raises (600) and the changes of state the feed is told (20). The runner holds back what the console refused as more than the hour takes, and says so once in a line: a session's events are kept, within what the runner keeps, and sent again after a minute, then after twice as long each time, a quarter of an hour at most, and at the session's end whatever the hold, where what the console still refuses goes with the session, the runner saying in a line how many events were let go; a session that could not be begun is tried again after the cool-down, with what was to be handed over still undelivered.
@@ -159,8 +171,8 @@ Built on the console's side ([rest.md](rest.md#the-sessions-and-the-transcript))
159
171
 
160
172
  - `n` numbers the events of the session from 1, one after another. The console answers `{ "last": 41 }`, the number of the session's last event now. An event whose number the session has already is left as it is, whatever is sent, so a batch may be sent twice; a batch out of order is `transcript.out_of_order`, and one that would leave a gap is `transcript.gap`, with the number expected in its words, so that whoever reads from a number on misses nothing: the runner asks the session where it stands and sends from there. A batch is at most 100 events and 2 MiB; nothing is added to a session that is over (`transcript.session_over`). The runner sizes a batch as it is sent, a text counted as JSON spells it. One the console still refuses as too large (`request.too_large`) is sent again in halves, never the same batch twice; an event that is too large alone has its text cut, with a word that says so, then goes without its facts, then is let go, so that nothing waits behind it.
161
173
  - `kind`: `wake` and `person` (what the agent was sent, a signal's number in `data.signal`), `assistant`, `thinking`, `tool_call`, `tool_result`, `permission` (asked and how it was answered), `status` (the product compacted, the model changed, the session began or ended, a turn completed, which is `turn: "completed"` in its `data` and what tells whoever reads the session as it happens that the agent is done) and `error`. A `person` or a `wake` the session ended on before the product took it carries `unread: true`.
162
- - `text` is what a person reads, up to 256 KiB of UTF-8, and whatever the product said: markup, escapes and control characters are kept as they are and shown as text. The console keeps the beginning in the row, up to 16 KiB cut between characters, and the whole on the month's shelf of the blob store where it is longer; an event read back says `whole`, the size of the whole, and `.../events/<n>/text` reads it.
163
- - `data` is a small object of facts about the block: up to 32 of them, each a word, a number, a yes or no, or nothing, under a name of up to 64 characters, a word up to 1,000. Never nested, shown as text and never run. An event a sub-agent made says so there ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): `parent` is the id of the tool call that started the sub-agent, as that call's `tool_call` event carries it in `id`, and `subagent` what the call called the sub-agent, up to 80 characters, where the driver read the call: under the `claude` driver the kind of sub-agent the call names and what it says the sub-agent is for, the kind first (`Explore: Read src/ of acme/web`), so that two of one kind at once are told apart, or the one of the two the call names, or the tool where it names neither. An event of the session's own carries neither, and so does every event of a driver whose product does not say whose a line is. The agent's page shows a sub-agent's event as a step under the sub-agent's name, what it said among them, folded as a thought is.
174
+ - `text` is what a person reads, up to 256 KiB of UTF-8, and whatever the product said: markup, escapes and control characters are kept as they are and shown as text. What the agent said (`assistant`) is the one kind read otherwise, as Markdown rendered to elements, in which raw HTML stays text, a link leads only to the web and a picture named there is a link and is not fetched ([ADR-0141](../adr/0141-what-an-agent-said-is-read-as-markdown-and-a-sub-agent-under-the-call-that-started-it.md)); what is kept is the text as it came. The console keeps the beginning in the row, up to 16 KiB cut between characters, and the whole on the month's shelf of the blob store where it is longer; an event read back says `whole`, the size of the whole, and `.../events/<n>/text` reads it.
175
+ - `data` is a small object of facts about the block: up to 32 of them, each a word, a number, a yes or no, or nothing, under a name of up to 64 characters, a word up to 1,000. Never nested, shown as text and never run. An event a sub-agent made says so there ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): `parent` is the id of the tool call that started the sub-agent, as that call's `tool_call` event carries it in `id`, and `subagent` what the call called the sub-agent, up to 80 characters, where the driver read the call: under the `claude` driver the kind of sub-agent the call names and what it says the sub-agent is for, the kind first (`Explore: Read src/ of acme/web`), so that two of one kind at once are told apart, or the one of the two the call names, or the tool where it names neither. An event of the session's own carries neither, and so does every event of a driver whose product does not say whose a line is. The `tool_call` that starts a sub-agent says so too ([ADR-0141](../adr/0141-what-an-agent-said-is-read-as-markdown-and-a-sub-agent-under-the-call-that-started-it.md)): `starts` is what the call calls the sub-agent, the same name its events carry as `subagent`, so that whoever reads the session knows of a sub-agent before its first event arrives; a call that starts none carries no such fact. The agent's page reads a sub-agent's events under the call that started it, as that call's steps, what it said among them folded as a thought is, and reads off the record how the sub-agent stands: done or failed by the call's `tool_result`, ended where a turn completed or the session ended before one came, at work otherwise, with how long it ran and how many tools it called; while a turn is under way it says how many are at work. An event whose `parent` names a call the events read do not hold is shown where it stands, under the sub-agent's name.
164
176
  - `files` names the pictures of the block, up to 8, by the ids their upload answered: `POST /api/v1/agents/me/sessions/<id>/files`, a form with one part `file`, a PNG, a JPEG, a GIF or a WebP up to the bound on a file, answered `{ "id", "name", "size", "contentType" }`. An event names its own session's pictures and nothing else (`transcript.unknown_file`); a session hands in at most 60 a minute (`transcript.too_fast`).
165
177
  - Before an event leaves the machine the runner takes out of it every value of the account's secret store, as it is and in the encodings a value is commonly carried in. A text a driver shows a part of, a tool's input above all, is cut after that and not before ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): a session is handed what cuts (`cut`), which takes the values out of the beginning of the text, as far as the cut and one form of a value beyond it, and never shows the last characters it looked through, so that no part of a value stands at the cut and a megabyte of input is not read for a line of four thousand characters. What a sub-agent is called is cut so too. The end of what a product wrote on its standard error, which says why its process ended, is kept through what keeps the end of a text (`cutEnd`), the same from the other side: the last 4,000 characters, the values taken out of them and of one form before them first, and never the first characters looked through; the process keeps the last 16,000 and begins them with the mark of a cut (`…`) where it let the beginning go, and nothing of a value that what it kept begins inside is shown. The beginning of a value that a text cut by anything else ends in, of four characters or more, is taken out as well.
166
178
  - What waits while the console is away is kept in the runner's memory, up to 20,000 events and 64 MiB of them with their pictures. Beyond that the oldest are let go, and one `status` event in the place of the first says how many (`let_go` in its `data`), the numbers running on from it, so that the record has no hole nobody is told of. The runner says once that the transcript waits, and once that it is sent again; a session that ends with events the console did not take, being away or refusing them for the hour, is let go with them, and the runner's line says how many and why, since nothing of a session is sent after its end; a heartbeat the console does not take and a stream of signals that ends are said once the same way, for as long as they last. On Windows the runner's own lines are added to `runner.log` beside the task's definition, which the task's shell puts aside when it holds four megabytes, as `runner.log.1`, with three put aside kept and the oldest let go ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): sixteen megabytes at most, whatever the runner writes and however long it runs. The log itself is moved first, to a spare name, `runner.log.0`, and the ones put aside are moved on only once that worked: a log that something reads and lets nobody move is added to as it is, with every log put aside left where it was, and is put aside at the first line after it is let go. A machine set up before this takes it when its files are written again (`console agent setup --refresh`, and the task started anew).
@@ -208,7 +220,9 @@ In the desk, the working directory the runner is started in; written by setup, t
208
220
  - `secrets`: which secrets of the account's store the runner hands a session, as environment variables and as files of mode 600 under the desk's ignored `work/`, written at the session's start and removed at its end. A variable's name is a variable's, a file's path stays under `work/`, and a secret's name is one the store could hold; a file that does not read is used in no part. Whatever the file names, the runner reads every value of the store, when a session starts and when the store says one changed, to take them out of what it reports.
209
221
  - `permissions`, left out of the example: the permission mode the product is started in, in the product's own word (`dontAsk` or `bypassPermissions` for `claude`, `workspace-write` or `danger-full-access` for `codex`; for `acp`, one of the agent's own modes, or the driver's own `allow` or `deny`, [below](#the-acp-driver)), for whoever prepares the machine to say what the agent does there without asking, as they say whether its OS account may use `sudo`. Left out, the product runs in its own default where that is one for a run nobody attends; where it is not, the driver names one: `auto` for `claude`, which starts such a run in its manual mode otherwise, `approve-for-me` for `codex`, which runs it in its read-only sandbox otherwise, and for `acp` the mode the agent has for such a run, where the driver was run against the agent.
210
222
  - `autosave`: at the end of every session the runner commits and pushes the desk ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), a net under the agent's own commits: where the desk is a repository, everything it does not ignore is staged, and nothing under `work/` whatever the desk ignores, committed where anything changed, as `Autosave at the end of a session`, and pushed. The push is handed the token the account's store keeps as `git.token`, where it keeps one and the workspace names a git host: answered by a credential helper in the environment of that one command, to that host alone, on no command line and in no file, as the clone of the desk was. Git asks nobody at a terminal, what it prints is not kept, and a step that does not succeed is said in the runner's line by how git ended; the runner goes on. `false` turns it off.
223
+ - `browser`, left out of the example: `"chrome"`, the browser the product's own browser tool works in ([ADR-0140](../adr/0140-a-machine-is-given-its-least-and-the-agent-does-the-rest-itself.md)), for a driver whose product has such a tool and turns it on when it is started: the `claude` driver starts the product with `--chrome`, without which a run nobody attends has no browser tool. A name of a short list, and never words for a product's command line; a driver whose product has no such tool takes nothing of it. Setup writes it into a new desk where it found the product and its browser.
211
224
  - A runner started where there is no `runner.json` runs with these defaults and hands the session no secret.
225
+ - **A file that changed is taken by itself** ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md)). The runner looks at it with every heartbeat. One that reads and is another than the runner was started with, seen so twice a heartbeat apart, has the runner end between two turns, the open session ended as one restarted and a `status` event saying why, and the command begins the next runner with the file as it is, in the same process and with the conversation kept. The look goes on until then, and a file put back, or one that stopped reading, ends nothing; where the file stops reading between the runner's end and the next one's beginning, the next begins with the file as it last read. One that does not read changes nothing: the runner goes on with what it had, says so once in its own lines, and tells the agent what is wrong with it in a message of its own, under a header that carries the session's mark (`[console <mark> · runner]`), once for each thing that is, in the session that is open or the next one that opens.
212
226
 
213
227
  ## Wake sources
214
228
 
@@ -227,22 +241,24 @@ interface WakeHost {
227
241
  /** Raises a wake: the console records it, and it reaches the agent in order, as someone else's words. */
228
242
  raise(wake: { key: string; text: string }): Promise<void>;
229
243
  log(line: string): void;
244
+ /** Says how the source stands, for the account's page: listening, or not yet, with why in a few words. */
245
+ stands(state: "connected" | "waiting", why?: string): void;
230
246
  fetch(url: string, init: { method: string; headers: Record<string, string>; signal: AbortSignal }): Promise<{ json(): Promise<unknown> }>;
231
247
  socket(url: string): { messages: AsyncIterable<string>; send(text: string): void; close(): void };
232
248
  wait(ms: number, signal: AbortSignal): Promise<void>;
233
249
  }
234
250
  ```
235
251
 
236
- The runner starts each source when it starts and keeps it for as long as it runs: a source that ends is started again after five seconds where it held for a minute, and after twice as long each time, up to five minutes, where it keeps ending at once; its line says the source's name and a short name of why, and never what was said. A source tells the agent nothing itself: what it raises goes to the console, `POST /api/v1/agents/me/signals`, which records it as a `wake` from the `messenger`, by nobody, and it comes back on the runner's stream in order, with the same key merged as any wake is. The console takes 600 wakes a runner raises itself within an hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): past that it answers `signal.too_many`, and the runner lets go of what its sources raise for a minute, then for twice as long each time it is refused again, a quarter of an hour at most, saying so once. Its words reach the agent as someone else's, in a block fenced longer than any run of fence characters they hold ([How a signal reaches the product](#how-a-signal-reaches-the-product)).
252
+ The runner starts each source when it starts and keeps it for as long as it runs: a source that ends is started again after five seconds where it held for a minute, and after twice as long each time, up to five minutes, where it keeps ending at once; its line says the source's name and a short name of why, and never what was said. How each stands is said with the heartbeat ([ADR-0144](../adr/0144-a-runner-takes-its-runner-json-as-it-changes-and-says-how-its-wake-sources-stand.md)): `waiting` before a source has said anything and where it says it waits, `connected` where it says so, `waiting` again once a source that listened has ended with no error, and `failing`, with that short name, where it ended in an error. A source tells the agent nothing itself: what it raises goes to the console, `POST /api/v1/agents/me/signals`, which records it as a `wake` from the `messenger`, by nobody, and it comes back on the runner's stream in order, with the same key merged as any wake is. The console takes 600 wakes a runner raises itself within an hour ([ADR-0132](../adr/0132-what-a-runner-writes-is-bounded-by-the-hour-and-its-log-by-its-size.md)): past that it answers `signal.too_many`, and the runner lets go of what its sources raise for a minute, then for twice as long each time it is refused again, a quarter of an hour at most, saying so once. Its words reach the agent as someone else's, in a block fenced longer than any run of fence characters they hold ([How a signal reaches the product](#how-a-signal-reaches-the-product)).
237
253
 
238
254
  ### The `slack` wake source
239
255
 
240
- One app for one agent account ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 2), which receives over its Socket Mode connection the events the agent's own member of the workspace can see. Written from the messenger's own documentation of Socket Mode and of the Events API, and not run against a workspace yet; the app is made from the manifest the skill `running-an-agent` carries.
256
+ One app for one agent account ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 2), which receives over its Socket Mode connection the events the agent's own member of the workspace can see. Written from the messenger's own documentation of Socket Mode and of the Events API, and run in a workspace on 2026-11-20, where direct messages woke an agent account; the app is made from the manifest the skill `running-an-agent` carries.
241
257
 
242
258
  - **The token** is the app's own for the socket (`xapp-...`), kept by the account in its store as `slack.app_token`. Where there is none the source says so and looks again in five minutes.
243
259
  - **The connection** is asked for with `POST https://slack.com/api/apps.connections.open`, the token in the `authorization` header, and the address answered is opened only where it is the messenger's own socket (`wss://`, a host of `slack.com`). Every envelope that arrives is acknowledged by its `envelope_id`, before it is read; a `disconnect` ends the connection, and the runner starts the source again.
244
260
  - **What wakes the agent**: a message in a direct conversation, and a message that mentions the member the event was delivered for (the first of the event's `authorizations`), from anyone but that member; an app's own `app_mention` too. An edit, a join, a deletion, a reaction and what the agent said itself wake nobody.
245
- - **The wake** has the key `slack:<channel>:<thread>`, the thread being the message's own where it begins one, so that what is said in one thread is one thing to the agent; and says where it was said and by which member, with the message's words after it, cut at 4,000 characters. The agent reads the thread with the messenger's own tool.
261
+ - **The wake** has the key `slack:<channel>:<thread>`, the thread being the message's own where it begins one, so that what is said in one thread is one thing to the agent; and says where it was said and by which member, with the message's words after it, cut at 4,000 characters. A direct message outside any thread is said as a message of the conversation, by the conversation's id, and names a thread only where it was written in one: said to be in a thread, it was answered in one. The agent reads the thread with the messenger's own tool.
246
262
  - **An event is data**: read by schema, with ids and moments spelled as the messenger spells them and bounded lengths; what does not read wakes nobody, and nothing of an event is run.
247
263
 
248
264
  ## The service
@@ -264,6 +280,8 @@ interface Service {
264
280
  }
265
281
  ```
266
282
 
283
+ **The machine is held awake while the runner runs** ([ADR-0140](../adr/0140-a-machine-is-given-its-least-and-the-agent-does-the-rest-itself.md)), by the runner itself and not by its service, so that a runner started by hand holds it too: a helper of the system's own, started when the runner starts and ended when its process is gone, which needs no administrator and changes no setting. `/usr/bin/caffeinate -i -s -w <pid>` on macOS; on Windows a script handed to `powershell.exe` encoded, which asks the system to stay awake (`SetThreadExecutionState`) and waits for the runner's process; `systemd-inhibit --what=idle:sleep --mode=block` around a wait for that process on Linux. The runner says in its own lines whether it holds. A sleep someone asks for and a lid that is closed are not held off.
284
+
267
285
  `launchd`, for macOS, plans a launch agent of the agent's own OS account: the unit `~/Library/LaunchAgents/ai.skillcdn.console.runner.plist`, which starts the runner in the desk when the account logs in (`RunAtLoad`) and again whenever it ends (`KeepAlive`), with the `PATH` setup ran with, so that the product is found where it was, and its lines in `~/Library/Logs/ai.skillcdn.console.runner.log`; then `launchctl bootout gui/<uid>/ai.skillcdn.console.runner`, which fails where none was loaded, and `launchctl bootstrap gui/<uid> <unit>`. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged in at the machine: that the account is logged in when the machine starts is for whoever prepares it. The unit holds no secret: the runner signs in with what the command keeps. What a path or a login holds is written as text of the unit. It is written from the system's own documentation and was not run on a Mac yet.
268
286
 
269
287
  `systemd-user`, for Linux, plans a unit of the agent's own OS account, kept by that account's own instance of systemd: the unit `~/.config/systemd/user/skillcdn-console-runner.service`, which starts the runner in the desk and starts it again ten seconds after it ends (`Restart=always`), with the `PATH` setup ran with; then `loginctl enable-linger <uid>`, and `systemctl --user daemon-reload`, `enable` and `restart` of the unit, so that a unit written again is the one that runs. Its lines are in the account's journal (`journalctl --user -u skillcdn-console-runner.service`). It needs no administrator's rights. The account's systemd is there while the account has a session, or always once lingering is on for it, which also starts it with the machine: the account asks for lingering itself, which Ubuntu allows, and where a system keeps that for an administrator the service is loaded all the same and setup says what is left to do and who does it. The system answers that request before the account's systemd is there, so the command after it is tried for ten seconds; and that systemd is reached through the folder the system keeps for the account (`XDG_RUNTIME_DIR=/run/user/<uid>`), which a shell entered from another account is not told of. A refresh that wrote the unit again runs `systemctl --user daemon-reload`, which ends nothing that runs: without it the system goes on with the unit it read before. What a path or a login holds is written as words of the unit: on one line, quoted, with what the system reads as a specifier or a variable said as itself. A dollar sign is a variable to the system in the command line alone, and is said twice there; the desk's directory, which is the rest of its line, and the `PATH` carry one as it is. Run on Ubuntu 24.04 with systemd 255 (2026-11-11, under WSL), from the command installed with npm and an invitation's line: the unit loaded, the runner heard from, started again ten seconds after its process was ended from outside, lingering turned on by the account itself, and a unit changed by hand written again and read. Not seen there: a restart of the machine, an OS account with no session at all, and a product, none being signed in on that system.
@@ -306,9 +324,9 @@ A `DriverEvent` is a transcript event before its number (`kind`, `text`, `data`,
306
324
 
307
325
  The Claude Code binary, unmodified, over its streaming JSON input and output, as its own documentation and its own help have them. What they state is relied on; what they leave unsaid was seen by running the driver against the binary, 2.1.321 first, and is held by fixtures written down from what it printed, in tests that call nobody. What was not seen there, a refusal and a sign-in that ran out, is read as the documentation gives it. A version the driver was not tried with is started all the same and said on the Live page.
308
326
 
309
- - **Started** as `claude -p --input-format stream-json --output-format stream-json --verbose --replay-user-messages`, in the desk, with `--model` and `--effort` where the account's settings name them, `--resume <id>` where a conversation is resumed, `--permission-mode` and `--permission-prompts none`: nobody is at the terminal. The mode says what runs without asking. A product is started in its own default wherever that default is one for a run nobody attends, and its driver then names nothing; this product's is not: with nobody at its terminal it starts in its manual mode, in which whatever needs approval, a file written among it, is denied. So the mode is `auto` where `runner.json` names none (`permissions`), in which the product's own classifier reviews each action; a build that starts such a run in `auto` by itself needs nothing named. Where the product starts in another mode than the one asked for, as where the account or the model has no `auto`, the session's first event says so. What would still prompt is denied, the agent is told not to try it again, and the tool that asks a person at the terminal is taken away. A mode named that is none of the product's is a mistake in the desk's file and never leave to do more: the session starts in `dontAsk`, which allows the least, and its denials say so in the transcript. No file of settings is written for the product: its own settings in the agent's OS account stay its operator's and the agent's. The process stays open, reading one message a line from its standard input.
327
+ - **Started** as `claude -p --input-format stream-json --output-format stream-json --verbose --replay-user-messages`, in the desk, with `--model` and `--effort` where the account's settings name them, `--resume <id>` where a conversation is resumed, `--permission-mode` and `--permission-prompts none`, and `--chrome` where `runner.json` names `chrome` as its `browser`: nobody is at the terminal. The mode says what runs without asking. A product is started in its own default wherever that default is one for a run nobody attends, and its driver then names nothing; this product's is not: with nobody at its terminal it starts in its manual mode, in which whatever needs approval, a file written among it, is denied. So the mode is `auto` where `runner.json` names none (`permissions`), in which the product's own classifier reviews each action; a build that starts such a run in `auto` by itself needs nothing named. Where the product starts in another mode than the one asked for, as where the account or the model has no `auto`, the session's first event says so. What would still prompt is denied, the agent is told not to try it again, and the tool that asks a person at the terminal is taken away. A mode named that is none of the product's is a mistake in the desk's file and never leave to do more: the session starts in `dontAsk`, which allows the least, and its denials say so in the transcript. No file of settings is written for the product: its own settings in the agent's OS account stay its operator's and the agent's. The process stays open, reading one message a line from its standard input.
310
328
  - **A message** is one line: `{"type":"user","uuid":"...","message":{"role":"user","content":[...]},"parent_tool_use_id":null,"priority":"next"}`, the content a text block and an image block for each picture (`base64`, of the kinds the product takes), under an id of the driver's, which the product says back when it takes the message off its input. `priority` is the product's own: `next` is read when the tool calls under way finish, in the same turn, or starts a turn where none is under way; `now` is read in a turn of its own, and the product stops the turn under way for it only once its tool calls finish, however long they run. An `interrupt` with its words is therefore two lines: the request that stops the turn and the tool call in it at once, `{"type":"control_request","request_id":"...","request":{"subtype":"interrupt"}}`, which is what the product's own client library sends and does nothing where no turn is under way; and then the message, with `now`.
311
- - **What it reads**, a line each: `system` with `init`, which the product writes when it starts and again at every turn (the conversation's id as `session_id`, the model, the product's version, its permission mode), becomes a `status` event and the driver's `conversation` the first time, and again only where what it says is something else; `assistant` becomes `assistant`, `thinking` and `tool_call` events, a block each, but for a thinking block with no words, which the product sends with its signature alone and which becomes no event; `user` carrying tool results becomes `tool_result` events, a picture among them an attachment; `system` with `compact_boundary`, `api_retry` or `permission_denied` becomes `status`, `error` and `permission`; `result` ends a turn, with the denials of `permission_denials` the product did not say before as `permission` events. A line of a sub-agent names the tool call that started the sub-agent (`parent_tool_use_id`, as the product's documentation has it; not seen run by the driver's fixtures): its events carry that id as `parent`, and as `subagent` the kind of sub-agent the call's input named (`subagent_type`), else what it said the sub-agent is for, else the tool's name. Whatever else it writes, what its commands are, how much of its allowance is left, what became of a message, is left where it is.
329
+ - **What it reads**, a line each: `system` with `init`, which the product writes when it starts and again at every turn (the conversation's id as `session_id`, the model, the product's version, its permission mode), becomes a `status` event and the driver's `conversation` the first time, and again only where what it says is something else; `assistant` becomes `assistant`, `thinking` and `tool_call` events, a block each, but for a thinking block with no words, which the product sends with its signature alone and which becomes no event; `user` carrying tool results becomes `tool_result` events, a picture among them an attachment; `system` with `compact_boundary`, `api_retry` or `permission_denied` becomes `status`, `error` and `permission`; `result` ends a turn, with the denials of `permission_denials` the product did not say before as `permission` events. A line of a sub-agent names the tool call that started the sub-agent (`parent_tool_use_id`, as the product's documentation has it; not seen run by the driver's fixtures): its events carry that id as `parent`, and as `subagent` the kind of sub-agent the call's input named (`subagent_type`), else what it said the sub-agent is for, else the tool's name. The call itself, a tool named `Agent` or `Task` or one whose input names a kind of sub-agent, carries the same name as `starts`. Whatever else it writes, what its commands are, how much of its allowance is left, what became of a message, is left where it is.
312
330
  - **When the agent is done** with what it was sent: `turn_completed` follows a result only when no message the driver wrote still waits to be taken. A message written while a tool call runs is read in the same turn, and the two have one result; a message written as a turn was ending starts a turn of its own, and so does the message a turn was stopped for, so the result before it is not the agent done. A turn that was stopped ends in a result that calls itself an error and says how it ended (`terminal_reason`, `aborted_tools` or `aborted_streaming`): a `status`, and no error. A build that says no message back is read without, every result the end of a turn.
313
331
  - **An agent that cannot go on.** A result whose `stop_reason` is the model's own word for an answer it would not give, `refusal`, is `cannot_go_on` with `refused` and `model_refused`. A result or an exit that says the product is not signed in, its login expired or its key is refused is `failed` with `sign_in`: the product's words for it are its own and no contract, so they are read by pattern, which is the first thing a version's fixtures hold. A process that does not start is `start`, and one that dies mid-turn `crashed`. What was sent to a product that did not start, or is not signed in, is kept and tried again; a turn that ended with any other error is a turn that ended, and the agent takes the next message.
314
332
  - **The model and the effort** are the product's aliases and levels, as its documentation lists them, `opus`, `sonnet`, `haiku` and `fable`, and `low`, `medium`, `high`, `xhigh` and `max`; the binary offers no list of its own to ask, and its version is read from `claude --version`. They are given when the process starts, so a `set` is applied at the next session: the open one ends as soon as no turn is under way, and the next goes on with the same conversation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillcdn/console",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "What a custom SkillCDN console is built from: the API client and schemas, the components, the composition of the default console, and the console command agents work the board with.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/skillcdn/console#readme",
@@ -39,6 +39,10 @@
39
39
  "types": "./dist/charts.d.ts",
40
40
  "default": "./dist/charts.js"
41
41
  },
42
+ "./icons": {
43
+ "types": "./dist/icons/index.d.ts",
44
+ "default": "./dist/icons/index.js"
45
+ },
42
46
  "./cli": {
43
47
  "types": "./dist/cli/cli.d.ts",
44
48
  "default": "./dist/cli/cli.js"
@@ -94,8 +98,8 @@
94
98
  "vitest": "^5.1.0"
95
99
  },
96
100
  "dependencies": {
97
- "@skillcdn/cli": "^0.5.2",
98
- "@skillcdn/core": "^0.5.2",
101
+ "@skillcdn/cli": "^0.5.3",
102
+ "@skillcdn/core": "^0.5.3",
99
103
  "react-markdown": "^10.1.0",
100
104
  "remark-gfm": "^4.0.1",
101
105
  "zod": "^4.6.7"
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: A shell with Node.js 24 or newer and npm or pnpm, and an agent that reads and writes files. For looking at the pages against a board, the console command signed in by a person. A browser the agent can drive is optional. No key of the agent's own is needed, and it never sees a token.
6
6
  metadata:
7
7
  author: skillcdn
8
- version: "1.11"
8
+ version: "1.12"
9
9
  skillcdn:
10
10
  translations:
11
11
  ko:
@@ -69,7 +69,7 @@ Produces the **configuration**, as [configuring.md](references/configuring.md) l
69
69
 
70
70
  ### Phase 3: Compose pages of one's own
71
71
 
72
- Produces the **pages**. For a page the default console lacks: `useConsoleData(client, projectKey)` answers the workspace and the project the page is on, kept current by the project's stream, with the actions; the components take their data as props and nothing from the network; `matchRoute`, `PATHS`, `projectHref`, `taskHref`, `decisionHref` and `docHref` name the addresses; `Shell` is the header with the tabs and the person's menu. A page as a tab is `pages` in the configuration, its `render` composing the components over what it is given (the README's "Pages of your own" says what that is), with figures drawn by the charts (the README's "Charts" says which is for what); a composition of one's own is `src/console.tsx` with pages added or taken away (configuring.md "A page of one's own"). A page composes the board's own data and holds none of its own: a page that would keep records, run logic or reach outside is a feature of the organization's work, which is a plugin, not a page ([building-a-plugin](/skills/building-a-plugin/SKILL.md)); a plugin's pages come in its package and run in frames the console serves, drawn into the tabs by the console itself, so that a console's pages need no build and no change for one. A request without a page of its own skips this phase.
72
+ Produces the **pages**. For a page the default console lacks: `useConsoleData(client, projectKey)` answers the workspace and the project the page is on, kept current by the project's stream, with the actions; the components take their data as props and nothing from the network; `matchRoute`, `PATHS`, `projectHref`, `taskHref`, `decisionHref` and `docHref` name the addresses; `Shell` is the header with the tabs and the person's menu. A page as a tab is `pages` in the configuration, its `render` composing the components over what it is given (the README's "Pages of your own" says what that is), with figures drawn by the charts (the README's "Charts" says which is for what) and icons taken from the console's pack by name (`Icon`; the README's "Icons"); a composition of one's own is `src/console.tsx` with pages added or taken away (configuring.md "A page of one's own"). A page composes the board's own data and holds none of its own: a page that would keep records, run logic or reach outside is a feature of the organization's work, which is a plugin, not a page ([building-a-plugin](/skills/building-a-plugin/SKILL.md)); a plugin's pages come in its package and run in frames the console serves, drawn into the tabs by the console itself, so that a console's pages need no build and no change for one. A request without a page of its own skips this phase.
73
73
 
74
74
  ### Phase 4: Run it against the board
75
75
 
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: A shell with Node.js 24 or newer, npm and git, and an agent that reads and writes files. For running the plugin on a local console, Docker for the database and a checkout of the console's repository, where signing in needs a GitHub OAuth app of the person's own, as the console's README says. The console command is optional, for running the plugin's commands as an agent would. No key of the agent's own is needed, and it never sees a token.
6
6
  metadata:
7
7
  author: skillcdn
8
- version: "1.9"
8
+ version: "1.10"
9
9
  skillcdn:
10
10
  translations:
11
11
  ko:
@@ -90,7 +90,7 @@ Then the capabilities: the list the split needs, each read as the sentence the a
90
90
 
91
91
  Produces the **plugin as source**. `console-plugin init <dir> --key <key> --name "<Name>"` writes the smallest complete plugin: the manifest, a server module with one collection, one command and one query, a web bundle with one page and one widget, one skill with its `SKILLCDN.md`, the tests, the build and a README that says where things are; `--console` names the version of `@skillcdn/console` it depends on, the command's own unless said, and for a plugin written for a deployed console, the version that console runs (`console whoami` says it), and the manifest's `console` is written from it, the line of that version (`>=0.4.3 <0.5.0`): the consoles the plugin runs on, which the console checks when it reads the plugin and `console-plugin check` holds the dependency to; narrow it to the patch that brought what the plugin depends on, and widen it to the next line once the plugin is built against it; `--package <name>` the package's name where it is not `console-plugin-<key>`, a scoped one (`@<scope>/console-plugin-<key>`) for a repository of several plugins, published as public; `--repository <url>` with `--directory <path>` where the plugin lives in a repository, which fill `repository`, `homepage` and `bugs` and the manifest's `store`; and `--languages en,ko` the languages of its words, `en` first, which gives every language map and both manifests' translations the others as English words to translate, of which `console-plugin check` warns while they stay English. Then, in `<dir>`: `npm install`, `npm run build`, `npm test`, `npm run check`, all green before a line is changed, and `git init`.
92
92
 
93
- Then the design goes in, file by file: the manifest `console-plugin.json` from the design, its `key`, names and descriptions per language (a name of a word or two, which a tab shows and stops short with an ellipsis past about 28 characters; the description is what the plugin's settings page says of it, and what an agent reads in the rules where there is no `agentNote`), `agentNote`, `capabilities`, `roles` (a role for managers is `follows: "reports"`, held by whoever someone reports to and granted by nobody) and `defaultRole`, `board`, `settings`, `menu`, `pages`, `widgets`, `dataVersion`; the server module `src/server/index.ts`, one `defineCollection` per collection, one `defineCommand` or `defineQuery` per row, `endpoints`, `on`, `jobs`, `api`, `onEnable` and `onDisable` where the design has them, exported by name for the tests and gathered in `definePlugin(...)` as the default export; the web bundle `src/web/index.ts` and `index.css`, where `connect()` gives the page the context (who looks, at what, in which language), `command`, `query`, `records`, `files`, `navigate` (a path of the console's), `open` (a link to the web or to mail, from the press itself, which the console's page opens in a new tab), `download`, `setTitle` and the events, every class prefixed `pl-<key>-`, the console's `sc-` classes and `--sc-*` tokens for the look, the classes being the parts of the console's catalogue (`src/styles/README.md` in the package) and never a class of one of the console's own pages, which `check` refuses, figures drawn with the console's charts (a figure, a list of bars, a chart over time, a share, a table of figures: the package's README, "Charts", says which is for what; their classes are in the frame's stylesheet, their measures are attributes from `@skillcdn/console/charts` and never a style, which a frame refuses, and a bundle of React takes the components from `@skillcdn/console`), and every word a person wrote put in as text; the skills under `skills/<name>/SKILL.md`, one per kind of work, in the SkillCDN Format, and the README of the package. The server module imports only what the host allows and bundles everything it imports; it keeps no state between calls but in records, since its thread is started afresh after a fault. Where the design has `storage:sql`, `migrations/0001-<words>.sql` makes the tables, and `manifest.migrations` names the directory.
93
+ Then the design goes in, file by file: the manifest `console-plugin.json` from the design, its `key`, names and descriptions per language (a name of a word or two, which a tab shows and stops short with an ellipsis past about 28 characters; the description is what the plugin's settings page says of it, and what an agent reads in the rules where there is no `agentNote`), `agentNote`, `capabilities`, `roles` (a role for managers is `follows: "reports"`, held by whoever someone reports to and granted by nobody) and `defaultRole`, `board`, `settings`, `menu`, `pages`, `widgets`, `dataVersion`; the server module `src/server/index.ts`, one `defineCollection` per collection, one `defineCommand` or `defineQuery` per row, `endpoints`, `on`, `jobs`, `api`, `onEnable` and `onDisable` where the design has them, exported by name for the tests and gathered in `definePlugin(...)` as the default export; the web bundle `src/web/index.ts` and `index.css`, where `connect()` gives the page the context (who looks, at what, in which language), `command`, `query`, `records`, `files`, `navigate` (a path of the console's), `open` (a link to the web or to mail, from the press itself, which the console's page opens in a new tab), `download`, `setTitle` and the events, every class prefixed `pl-<key>-`, the console's `sc-` classes and `--sc-*` tokens for the look, the classes being the parts of the console's catalogue (`src/styles/README.md` in the package) and never a class of one of the console's own pages, which `check` refuses, figures drawn with the console's charts (a figure, a list of bars, a chart over time, a share, a table of figures: the package's README, "Charts", says which is for what; their classes are in the frame's stylesheet, their measures are attributes from `@skillcdn/console/charts` and never a style, which a frame refuses, and a bundle of React takes the components from `@skillcdn/console`), an icon taken from the console's pack by its name and never from a set of the plugin's own (`iconElement` of `@skillcdn/console/icons`, or `Icon` in a bundle of React; the README's "Icons"), and every word a person wrote put in as text; the skills under `skills/<name>/SKILL.md`, one per kind of work, in the SkillCDN Format, and the README of the package. The server module imports only what the host allows and bundles everything it imports; it keeps no state between calls but in records, since its thread is started afresh after a fault. Where the design has `storage:sql`, `migrations/0001-<words>.sql` makes the tables, and `manifest.migrations` names the directory.
94
94
 
95
95
  ### Phase 3: Test it as the console runs it
96
96
 
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: A shell with git and the console command (npm install -g @skillcdn/console, Node.js 24 or newer), and an agent that reads and writes files. For pages, npm; a browser the agent can drive is optional. The agent never sees a token.
6
6
  metadata:
7
7
  author: skillcdn
8
- version: "1.3"
8
+ version: "1.4"
9
9
  skillcdn:
10
10
  translations:
11
11
  ko:
@@ -73,7 +73,7 @@ Choose the shape from what the member wants to find again, not from a form:
73
73
  Only where the member asked to see something. Paths below are under the desk's `web/`, and `<package>/` is `node_modules/@skillcdn/console/` there, whose `README.md` is [the package's](/packages/console/README.md).
74
74
 
75
75
  1. **The shell.** `console desk . --web`, run in the desk, writes `web/` where it holds nothing: one empty page of the member's own, on the version of the package the command is. `src/main.tsx` mounts `page` from `src/page.tsx` beside it; the page's key is `mine`, its address `/pages/mine`, and `/` opens on it. Then `npm install` and `npm run build`, which says nothing of its own where it went well and leaves `dist/index.html`; `README.md` says how the pages are built, served and stopped.
76
- 2. **A page** is one entry of the `pages` handed to `createConsole` in `src/main.tsx`: a key, which is its address (`/pages/<key>`), a label, which is its tab, and a function that renders it. What the member asks to see first goes on the empty page; another page is another entry. What the function is given: `<package>/README.md`, "Pages of your own"; what the readers of a collection answer and what the small parts take: the same file, "A desk's pages". Those two sections are read before the page is written, and the package's types are not dug through.
76
+ 2. **A page** is one entry of the `pages` handed to `createConsole` in `src/main.tsx`: a key, which is its address (`/pages/<key>`), a label, which is its tab, and a function that renders it. What the member asks to see first goes on the empty page; another page is another entry. What the function is given: `<package>/README.md`, "Pages of your own"; what the readers of a collection answer and what the small parts take: the same file, "A desk's pages". Those two sections are read before the page is written, and the package's types are not dug through. The file is long, some 70,000 characters, and the rest of it is not about a desk: find the headings first, `grep -n "^### " <package>/README.md`, and read from each of the two to the heading after it, not the file whole.
77
77
  3. **What a page reads.** The desk's own files, with `fetch` at `/records/<path>`, each read when it is asked for; and the board, as the member, through the client the page is given. Nothing of another origin, and no token. `console serve dist --records ../records` serves both: JSON, pictures, video, sound and PDF are shown in place, anything else is a download ([records.md](/docs/specs/records.md#serving)).
78
78
  4. **What a page is built from:** the console's parts, each named with the component that renders it in `<package>/src/styles/README.md`, "The catalogue" ([in the repository](/packages/console/src/styles/README.md)). A page places parts and writes no colour, border or type of its own, so that it looks as the console does. For figures there are the charts, each exported from `@skillcdn/console`, with their props in `<package>/README.md`, "Charts":
79
79
  - `Stat`, and `Stats` for a row of them: a figure with its label and, where given, its change and a sparkline.