@skillcdn/console 0.5.0 → 0.5.1
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.
- package/README.md +68 -11
- package/SKILLCDN.md +3 -3
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +3 -2
- package/dist/agent-page.js.map +1 -1
- package/dist/api.d.ts +7 -6
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -5
- package/dist/api.js.map +1 -1
- package/dist/charts.d.ts +103 -0
- package/dist/charts.d.ts.map +1 -0
- package/dist/charts.js +182 -0
- package/dist/charts.js.map +1 -0
- package/dist/cli/cli.d.ts +26 -2
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +1304 -383
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/command-words.d.ts +20 -0
- package/dist/cli/command-words.d.ts.map +1 -0
- package/dist/cli/command-words.js +51 -0
- package/dist/cli/command-words.js.map +1 -0
- package/dist/cli/credentials.d.ts +54 -5
- package/dist/cli/credentials.d.ts.map +1 -1
- package/dist/cli/credentials.js +126 -20
- package/dist/cli/credentials.js.map +1 -1
- package/dist/cli/directory.d.ts +19 -4
- package/dist/cli/directory.d.ts.map +1 -1
- package/dist/cli/directory.js +16 -8
- package/dist/cli/directory.js.map +1 -1
- package/dist/cli/format.d.ts +65 -8
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +242 -37
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +13 -4
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +92 -54
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/main.js +76 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/pack.d.ts +69 -60
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +241 -270
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/plugin-check.d.ts +42 -0
- package/dist/cli/plugin-check.d.ts.map +1 -1
- package/dist/cli/plugin-check.js +221 -36
- package/dist/cli/plugin-check.js.map +1 -1
- package/dist/cli/plugin-cli.d.ts +6 -1
- package/dist/cli/plugin-cli.d.ts.map +1 -1
- package/dist/cli/plugin-cli.js +21 -4
- package/dist/cli/plugin-cli.js.map +1 -1
- package/dist/cli/plugin-main.js +1 -0
- package/dist/cli/plugin-main.js.map +1 -1
- package/dist/cli/serve.d.ts +33 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +252 -3
- package/dist/cli/serve.js.map +1 -1
- package/dist/client.d.ts +48 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +72 -80
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +64 -1
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +244 -96
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/charts.d.ts +157 -0
- package/dist/components/charts.d.ts.map +1 -0
- package/dist/components/charts.js +182 -0
- package/dist/components/charts.js.map +1 -0
- package/dist/components/desk-records.d.ts +102 -0
- package/dist/components/desk-records.d.ts.map +1 -0
- package/dist/components/desk-records.js +221 -0
- package/dist/components/desk-records.js.map +1 -0
- package/dist/components/desk.d.ts +85 -0
- package/dist/components/desk.d.ts.map +1 -0
- package/dist/components/desk.js +135 -0
- package/dist/components/desk.js.map +1 -0
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +4 -1
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/home.d.ts.map +1 -1
- package/dist/components/home.js +4 -2
- package/dist/components/home.js.map +1 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +54 -3
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +27 -7
- package/dist/components/projects.js.map +1 -1
- package/dist/components/rules.d.ts +8 -10
- package/dist/components/rules.d.ts.map +1 -1
- package/dist/components/rules.js +35 -13
- package/dist/components/rules.js.map +1 -1
- package/dist/components/setup.d.ts +9 -3
- package/dist/components/setup.d.ts.map +1 -1
- package/dist/components/setup.js +10 -4
- package/dist/components/setup.js.map +1 -1
- package/dist/console.css +677 -7
- package/dist/console.d.ts +5 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +14 -8
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +32 -33
- package/dist/data.js.map +1 -1
- package/dist/desk-page.d.ts +38 -0
- package/dist/desk-page.d.ts.map +1 -0
- package/dist/desk-page.js +184 -0
- package/dist/desk-page.js.map +1 -0
- package/dist/desk-records-page.d.ts +18 -0
- package/dist/desk-records-page.d.ts.map +1 -0
- package/dist/desk-records-page.js +130 -0
- package/dist/desk-records-page.js.map +1 -0
- package/dist/desk-records.d.ts +247 -0
- package/dist/desk-records.d.ts.map +1 -0
- package/dist/desk-records.js +543 -0
- package/dist/desk-records.js.map +1 -0
- package/dist/desk.d.ts +122 -0
- package/dist/desk.d.ts.map +1 -0
- package/dist/desk.js +211 -0
- package/dist/desk.js.map +1 -0
- package/dist/feed-stream.d.ts +39 -0
- package/dist/feed-stream.d.ts.map +1 -0
- package/dist/feed-stream.js +117 -0
- package/dist/feed-stream.js.map +1 -0
- package/dist/home-tiles.d.ts +10 -3
- package/dist/home-tiles.d.ts.map +1 -1
- package/dist/home-tiles.js +54 -31
- package/dist/home-tiles.js.map +1 -1
- package/dist/i18n/en.d.ts +180 -5
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +184 -7
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +169 -6
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +11 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +11 -0
- package/dist/limits.js.map +1 -1
- package/dist/onboarding.d.ts +6 -0
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +3 -3
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/context.d.ts +42 -11
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +2 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +2 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +13 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +30 -3
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +55 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +37 -0
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/sandbox.d.ts.map +1 -1
- package/dist/plugin/sandbox.js +4 -1
- package/dist/plugin/sandbox.js.map +1 -1
- package/dist/plugin/testing.d.ts +6 -2
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +52 -10
- package/dist/plugin/testing.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/records.d.ts +283 -0
- package/dist/records.d.ts.map +1 -0
- package/dist/records.js +543 -0
- package/dist/records.js.map +1 -0
- package/dist/routes.d.ts +3 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +3 -1
- package/dist/routes.js.map +1 -1
- package/dist/rules.d.ts +30 -11
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +98 -45
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +31 -20
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/claude.d.ts +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +85 -15
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +19 -16
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/desk.d.ts +43 -2
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +166 -10
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/process.d.ts.map +1 -1
- package/dist/runner/process.js +11 -4
- package/dist/runner/process.js.map +1 -1
- package/dist/runner/redact.d.ts +39 -4
- package/dist/runner/redact.d.ts.map +1 -1
- package/dist/runner/redact.js +81 -5
- package/dist/runner/redact.js.map +1 -1
- package/dist/runner/runner.d.ts +15 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +231 -33
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/task-scheduler.d.ts +20 -0
- package/dist/runner/task-scheduler.d.ts.map +1 -1
- package/dist/runner/task-scheduler.js +34 -4
- package/dist/runner/task-scheduler.js.map +1 -1
- package/dist/runner/types.d.ts +36 -1
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js +17 -0
- package/dist/runner/types.js.map +1 -1
- package/dist/runner.d.ts +6 -6
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +5 -5
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +509 -5
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +76 -16
- package/dist/schemas.js.map +1 -1
- package/dist/services.d.ts +22 -5
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +35 -15
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +3 -1
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +7 -4
- package/dist/setup-guide.js.map +1 -1
- package/dist/vocabulary.d.ts +14 -3
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +13 -3
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +64 -38
- package/docs/specs/plugins.md +27 -20
- package/docs/specs/records.md +113 -0
- package/docs/specs/rest.md +20 -13
- package/docs/specs/runner.md +23 -17
- package/package.json +7 -2
- package/skills/building-a-console/SKILL.md +4 -4
- package/skills/building-a-plugin/SKILL.md +6 -6
- package/skills/deploying-a-console/SKILL.md +4 -4
- package/skills/deploying-a-console/references/resources.md +41 -4
- package/skills/deploying-a-console/references/running-it-again.md +3 -2
- package/skills/keeping-a-desk/SKILL.md +133 -0
- package/skills/keeping-a-desk/collections.md +96 -0
- package/skills/planning-the-board/SKILL.md +14 -18
- package/skills/planning-the-board/references/a-task.md +2 -2
- package/skills/planning-the-board/references/project-rules.md +13 -14
- package/skills/planning-the-board/references/setting-up.md +15 -13
- package/skills/running-an-agent/SKILL.md +10 -9
- package/skills/working-the-board/SKILL.md +62 -44
- package/skills/working-the-board/references/terms.md +9 -5
- package/skills/working-the-board/references/the-pack.md +12 -10
- package/skills/working-the-board/references/the-sentence.md +2 -2
- package/src/agent-page.tsx +3 -1
- package/src/api.ts +77 -2
- package/src/charts.ts +250 -0
- package/src/cli/cli.ts +1698 -476
- package/src/cli/command-words.ts +56 -0
- package/src/cli/credentials.ts +181 -20
- package/src/cli/directory.ts +28 -10
- package/src/cli/format.ts +301 -46
- package/src/cli/help.ts +102 -54
- package/src/cli/main.ts +72 -2
- package/src/cli/pack.ts +333 -372
- package/src/cli/plugin-check.ts +275 -34
- package/src/cli/plugin-cli.ts +28 -4
- package/src/cli/plugin-main.ts +1 -0
- package/src/cli/serve.ts +295 -2
- package/src/client.ts +192 -177
- package/src/components/agent-page.tsx +489 -243
- package/src/components/charts.tsx +680 -0
- package/src/components/desk-records.tsx +724 -0
- package/src/components/desk.tsx +471 -0
- package/src/components/event-feed.tsx +5 -1
- package/src/components/home.tsx +12 -0
- package/src/components/plugin-settings.tsx +171 -12
- package/src/components/projects.tsx +29 -12
- package/src/components/rules.tsx +94 -34
- package/src/components/setup.tsx +18 -3
- package/src/console.tsx +17 -9
- package/src/data.ts +37 -34
- package/src/desk-page.tsx +332 -0
- package/src/desk-records-page.tsx +256 -0
- package/src/desk-records.ts +808 -0
- package/src/desk.ts +329 -0
- package/src/feed-stream.ts +144 -0
- package/src/home-tiles.ts +55 -35
- package/src/i18n/en.ts +196 -9
- package/src/i18n/ko.ts +178 -8
- package/src/index.ts +118 -0
- package/src/limits.ts +11 -0
- package/src/onboarding.ts +12 -4
- package/src/plugin/context.ts +55 -12
- package/src/plugin/limits.ts +2 -0
- package/src/plugin/manifest.ts +38 -2
- package/src/plugin/rest-schemas.ts +41 -0
- package/src/plugin/sandbox.ts +4 -1
- package/src/plugin/testing.ts +63 -12
- package/src/plugin.ts +2 -0
- package/src/records.ts +702 -0
- package/src/routes.ts +3 -1
- package/src/rules.ts +108 -47
- package/src/runner/acp.ts +47 -29
- package/src/runner/claude.ts +113 -23
- package/src/runner/codex.ts +35 -25
- package/src/runner/desk.ts +198 -12
- package/src/runner/process.ts +11 -4
- package/src/runner/redact.ts +92 -6
- package/src/runner/runner.ts +275 -34
- package/src/runner/task-scheduler.ts +36 -4
- package/src/runner/types.ts +47 -1
- package/src/runner.ts +27 -2
- package/src/schemas.ts +83 -15
- package/src/services.ts +49 -14
- package/src/setup-guide.ts +6 -2
- package/src/styles/README.md +11 -1
- package/src/styles/console.css +9 -0
- package/src/styles/pages/desk.css +126 -0
- package/src/styles/pages/documents.css +5 -0
- package/src/styles/parts/bars.css +80 -0
- package/src/styles/parts/chart.css +173 -0
- package/src/styles/parts/figures.css +65 -0
- package/src/styles/parts/legend.css +48 -0
- package/src/styles/parts/series.css +32 -0
- package/src/styles/parts/share.css +25 -0
- package/src/styles/parts/spark.css +23 -0
- package/src/styles/parts/stat.css +69 -0
- package/src/styles/tokens.css +13 -7
- package/src/vocabulary.ts +16 -3
- package/template/desk-web/README.md +8 -0
- package/template/desk-web/index.html +13 -0
- package/template/desk-web/package.json +25 -0
- package/template/desk-web/src/main.tsx +24 -0
- package/template/desk-web/src/page.tsx +51 -0
- package/template/desk-web/tsconfig.json +16 -0
- package/template/desk-web/vite.config.ts +15 -0
package/docs/specs/rest.md
CHANGED
|
@@ -68,6 +68,7 @@ The API is the board as its members see it: the people, the projects, and in eac
|
|
|
68
68
|
| 409 | `category.key_taken`, `category.in_use`, `category.too_many` | A category of the workspace has that key already; tasks or goals are sorted into the category, so it stays until they are moved; the workspace has as many categories as one may (`MAX_CATEGORIES`). |
|
|
69
69
|
| 409 | `project.too_many`, `task.too_many`, `goal.too_many`, `decision.too_many`, `document.too_many`, `run.too_many` | The workspace holds as many projects as one may (`MAX_PROJECTS_PER_WORKSPACE`); the project as many tasks, goals, decisions or pages (`MAX_TASKS_PER_PROJECT`, `MAX_GOALS_PER_PROJECT`, `MAX_DECISIONS_PER_PROJECT`, `MAX_DOCUMENTS_PER_PROJECT`), those put away counted; the task has been taken as many times as one may (`MAX_RUNS_PER_TASK`). Bounds a runaway script meets and real work does not. |
|
|
70
70
|
| 409 | `project.too_many_bytes` | The files of the project, handed in by runs, put in comments and on decisions and attached to pages, hold as many bytes together as the deployment allows one project (`PROJECT_FILE_BYTES_AT_MOST`, [deploy/README.md](../../deploy/README.md#a-shared-console)); no bound unless set. Asked before any byte is kept. |
|
|
71
|
+
| 503 | `feed.unsettled` | A read of a feed, `GET .../events` or a plugin's `GET .../plugin-events`, by a process of the console that has not seen the feed settle since it began, while a 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)): it cannot say where the feed stands, and an empty page would be taken for a feed in which nothing ever happened. `retry-after: 1`; the reader asks again, and never goes on from the beginning in its place. |
|
|
71
72
|
| 429 | `feed.too_many` | The person holds as many streams as one may at once (`MAX_STREAMS_PER_PERSON`), of the feed, of an agent account's signals and of a session's transcript together, or the process does for everyone (`MAX_STREAMS`); `retry-after` says when to try again. |
|
|
72
73
|
| 403 | `picture.refused` | The console fetches no picture from that address: one of its own network, the loopback, a private or a link-local range, or a redirect to one ([ADR-0048](../adr/0048-a-picture-from-elsewhere-is-read-through-the-console-from-a-public-address-and-kept-a-while.md)). |
|
|
73
74
|
| 502 | `picture.unavailable` | The picture could not be fetched from where it is named: the origin answered an error or something that is not a picture, sent more than `MAX_FILE_BYTES`, or could not be reached in time. |
|
|
@@ -97,7 +98,7 @@ The API is the board as its members see it: the people, the projects, and in eac
|
|
|
97
98
|
|
|
98
99
|
### `GET /api/v1/me`
|
|
99
100
|
|
|
100
|
-
`{ "workspace": { "name", "tokenDaysAtMost", "skills": { "source", "address", "packToken" }, "peopleVisibility", "weekStart", "timeZone", "language" }, "person": ... | null, "agent": "..." | null, "session": { "kind", "name" } | null, "language": "..." | null, "signIn": [{ "key", "label", "admits": { "organization", "domains" } }, ...], "console": { "version", "clientRange" }, "decisions": { "waiting" } | null }`: what the board is called, the most days a token may be good for here (or `null` where a person chooses), where the organization's skills come from (`source`, the origin of the SkillCDN deployment they are read through, and `address`, the organization's, canonical, which a project without one of its own reads, or `null`; and `packToken`, when the SkillCDN token the organization's pack is read with was set, `{ setAt }`, or `null`), who sees whom on the People page (`peopleVisibility`: `everyone`, or `shared_projects`, where a member sees only the people they share a project with and an administrator everyone; [ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md); read as optional, for a console from before the setting), the day the calendars begin a week on and this week is counted by (`weekStart`: `auto`, as the language of the pages has it, or `monday`, `sunday`; [ADR-0039](../adr/0039-this-week-is-the-plans-unit-and-the-week-begins-as-the-workspace-says.md)) and the workspace's time zone (`timeZone`: an IANA name, in which the command prints moments, or `null` for none; `language`: the workspace's language, the tag of one the console speaks, for whoever has none of their own, the pages after the browser's languages and the plugins' calls ([ADR-0081](../adr/0081-a-workspace-has-a-language-for-whoever-has-none-of-their-own.md)), or `null` for none, English then; both optional the same way), who the session cookie or the token says is asking (`id`, `login`, `name` or `null`, `avatar` or `null`, `role`), with what (`agent`: the name of the token when a token asks, as its person called it, so that a console of a person's own knows it holds one and offers nothing a token cannot do; `null` on a session), the language the person reads in (`language`, a tag: the one they chose, else the one the pages first saw them in, [ADR-0065](../adr/0065-a-plugin-writes-one-text-and-a-persons-language-is-kept-from-the-first-time-the-pages-see-them.md); `null` until then), their own arrangement of the front page's widgets (`home`, [ADR-0059](../adr/0059-a-person-arranges-the-front-pages-widgets-from-the-sizes-each-comes-in.md): `[{ plugin, widget, size, place? }]` in order, or `null` for the manifests'; answered from 0.4.4 and read as optional), and the identity providers people sign in through (`gh`, `google`, each with the label of its button and, in `admits`, who gets in through it: the organization at the git host whose members are in, or `null`, and the Workspace domains whose accounts are, which a sign-in page says under the button; answered from 0.4.1 and read as optional), none where nobody can; and the console's own version with the range of command versions it takes (`console`, [ADR-0025](../adr/0025-the-command-names-its-version-on-every-request-and-the-console-holds-it-to-the-range-it-takes.md)), for a console built on the package to compare itself with; and how many decisions wait for the person's answer across the projects they may see (`decisions.waiting`, [ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md); `null` for nobody; answered from 0.4.3 and read as optional), which the pages say beside My decisions and read again when a decision is raised or answered. Nobody is an answer, not an error; the pages ask this once to decide what to show, and the command once, at `login`, to see that the console knows the token. A token the console knows whose person is out is refused here as on every route, `auth.deactivated` or `auth.not_admitted`, so that the agent learns why ([ADR-0044](../adr/0044-a-token-of-a-person-who-is-out-is-kept-and-refused-with-the-reason-until-they-are-back-in.md)).
|
|
101
|
+
`{ "workspace": { "name", "tokenDaysAtMost", "skills": { "source", "address", "packToken" }, "peopleVisibility", "weekStart", "timeZone", "language" }, "person": ... | null, "agent": "..." | null, "session": { "kind", "name" } | null, "language": "..." | null, "signIn": [{ "key", "label", "admits": { "organization", "domains" } }, ...], "console": { "version", "clientRange" }, "decisions": { "waiting" } | null }`: what the board is called, the most days a token may be good for here (or `null` where a person chooses), where the organization's skills come from (`source`, the origin of the SkillCDN deployment they are read through, and `address`, the organization's, canonical, which a project without one of its own reads, or `null`; and `packToken`, when the SkillCDN token the organization's pack is read with was set, `{ setAt }`, or `null`), who sees whom on the People page (`peopleVisibility`: `everyone`, or `shared_projects`, where a member sees only the people they share a project with and an administrator everyone; [ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md); read as optional, for a console from before the setting), the day the calendars begin a week on and this week is counted by (`weekStart`: `auto`, as the language of the pages has it, or `monday`, `sunday`; [ADR-0039](../adr/0039-this-week-is-the-plans-unit-and-the-week-begins-as-the-workspace-says.md)) and the workspace's time zone (`timeZone`: an IANA name, in which the command prints moments, or `null` for none; `language`: the workspace's language, the tag of one the console speaks, for whoever has none of their own, the pages after the browser's languages and the plugins' calls ([ADR-0081](../adr/0081-a-workspace-has-a-language-for-whoever-has-none-of-their-own.md)), or `null` for none, English then; both optional the same way), who the session cookie or the token says is asking (`id`, `login`, `name` or `null`, `avatar` or `null`, `role`), with what (`agent`: the name of the token when a token asks, as its person called it, so that a console of a person's own knows it holds one and offers nothing a token cannot do; `null` on a session), the language the person reads in (`language`, a tag: the one they chose, else the one the pages first saw them in, [ADR-0065](../adr/0065-a-plugin-writes-one-text-and-a-persons-language-is-kept-from-the-first-time-the-pages-see-them.md); `null` until then), their own arrangement of the front page's widgets (`home`, [ADR-0059](../adr/0059-a-person-arranges-the-front-pages-widgets-from-the-sizes-each-comes-in.md): `[{ plugin, widget, size, place? }]` in order, or `null` for the manifests'; answered from 0.4.4 and read as optional), and the identity providers people sign in through (`gh`, `google`, each with the label of its button and, in `admits`, who gets in through it: the organization at the git host whose members are in, or `null`, and the Workspace domains whose accounts are, which a sign-in page says under the button; answered from 0.4.1 and read as optional), none where nobody can; and the console's own version with the range of command versions it takes (`console`, [ADR-0025](../adr/0025-the-command-names-its-version-on-every-request-and-the-console-holds-it-to-the-range-it-takes.md)), for a console built on the package to compare itself with; and how many decisions wait for the person's answer across the projects they may see (`decisions.waiting`, [ADR-0042](../adr/0042-a-decision-is-addressed-to-a-person-its-raiser-unless-another-is-named.md); `null` for nobody; answered from 0.4.3 and read as optional), which the pages say beside My decisions and read again when a decision is raised or answered. Nobody is an answer, not an error; the pages ask this once to decide what to show, and the command once, at `login`, to see that the console knows the token. Nobody is told what the sign-in page shows and no more: of the workspace its `name` and its `language`, with `tokenDaysAtMost` as `null` and `skills` as `{ "source": "", "address": null }`, the two keys every answer has, saying nothing; its short name, its domain, its services, who sees whom, the week's first day, the time zone and where the skills are read are its members' to read, and are left out; then the ways in and the console's version. A token the console knows whose person is out is refused here as on every route, `auth.deactivated` or `auth.not_admitted`, so that the agent learns why ([ADR-0044](../adr/0044-a-token-of-a-person-who-is-out-is-kept-and-refused-with-the-reason-until-they-are-back-in.md)).
|
|
101
102
|
|
|
102
103
|
### `GET /api/v1/people?login=`
|
|
103
104
|
|
|
@@ -150,6 +151,10 @@ The SkillCDN token the organization's pack is read with ([ADR-0036](../adr/0036-
|
|
|
150
151
|
|
|
151
152
|
The workspace's token connected with a code a person approves ([ADR-0036](../adr/0036-a-private-pack-is-connected-with-a-code-a-person-approves-from-the-projects-settings.md)), for an administrator, as a project's is: `POST .../connect` asks the deployment to connect the organization's address and answers `201` with `{ "code", "url", "expiresAt", "intervalSeconds" }`, with `workspace.pack_connect_unsupported`, `workspace.pack_connect_refused` and `skills.unavailable` where a project's route has its own, the refusal naming a console with no address for the organization's skills; `GET` reads how it stands and changes nothing: `{ "status": "none" }`, `pending` with what the person is shown, or `ended` with `reason` `expired`; `POST .../connect/claim` asks the deployment whether the person approved ([ADR-0046](../adr/0046-the-claim-of-a-pack-token-is-a-request-of-its-own-and-reading-how-the-connection-stands-changes-nothing.md)) and answers `pending` still, `connected` with `workspace` as `me` carries it once the token is kept, or `ended` with `reason`; `DELETE` gives the request up. One request for the workspace at a time.
|
|
152
153
|
|
|
154
|
+
### `GET /api/v1/workspace/skills`, `.../skills/one`, `.../skills/file`, `.../skills/browse`, `.../skills/find`, `.../skills/rows` and `.../skills/code`
|
|
155
|
+
|
|
156
|
+
The organization's pack, read where no project is named ([ADR-0113](../adr/0113-the-organizations-pack-is-read-where-no-project-is-named-by-every-member.md)): the pack at the console's own address (`SKILLS_ADDRESS`), which a project that names no address reads too, by the seven reads of [a project's pack](#get-apiv1projectskeyskills), one for one: the same queries, the same bounds, the same envelope and the same bodies, with the workspace's SkillCDN token where the pack is private ([above](#put-apiv1workspacepack-token-and-delete-pack-token)) and no project's. For every member of the workspace, signed in or through their agent's token, an agent account as a person, whatever projects they are in, as the workspace's rules are read; whoever is out, deactivated or no longer let in, and whoever is not signed in, read none of it. `status` is `none`, with `address: null`, where the console names no address for the organization's skills. An outline names `/api/v1/workspace/skills/rows` and `.../code` for a document's tables and code blocks. Each read is logged with who read which path of which pack, with no project, never with what was read. What the command reads in a directory that names no project: a desk, or a folder a repository is about to be made in. From 0.5.1.
|
|
157
|
+
|
|
153
158
|
### `GET /api/v1/categories`
|
|
154
159
|
|
|
155
160
|
`{ "items": [category, ...] }`: the kinds of work tasks are sorted into ([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)), by name, for whoever is signed in or presents a token. A category carries its `key` (what the command and the filters say; lowercase letters, digits and hyphens; immutable), `name`, `color` (one of `CATEGORY_COLORS`, a name the pages paint and never a value typed), `createdAt` and `updatedAt`. Every workspace starts with `engineering`, `product`, `design`, `marketing` and `operations`.
|
|
@@ -160,7 +165,7 @@ Kept by an administrator, signed in or through their agent's token. `POST` takes
|
|
|
160
165
|
|
|
161
166
|
### `GET /api/v1/rules`, `PUT /api/v1/rules`, `POST /api/v1/rules/archive` and `GET /api/v1/rules/versions`
|
|
162
167
|
|
|
163
|
-
The rules of the board ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md)): what the organization
|
|
168
|
+
The rules of the board ([ADR-0023](../adr/0023-the-rules-of-a-board-are-pages-the-workspace-and-its-projects-keep-read-first-by-every-agent.md), [ADR-0120](../adr/0120-the-consoles-rules-always-hold-and-a-workspace-and-a-project-add-to-them.md)): the console's rules, which always hold, and what the organization adds to them; read by whoever is signed in or presents a token, and added to by an administrator, signed in or through their agent's token. `GET` answers `{ "source", "body", "page", "own", "added" }`. `body` is what holds at the workspace, whole: the console's rules as this version of the console carries them, then what the organization adds under a heading of its own (`# What this organization adds`), which is what a command of 0.5.0 prints. `source` is `reference` while the organization adds nothing, with `page: null`; once something is added, `source` is `written` and `page` is the additions' page without its body (as a folder lists one: `path` `rules`, `title` `Rules`, `version`, `updatedBy`, `agent`, `createdAt`, `updatedAt`). The two parts come apart as well, from 0.5.1 and read as optional: `own`, the console's rules by themselves, and `added`, `{ "body", "page" }` for what the organization adds, or `null`. `PUT` takes `body` (Markdown, `MAX_RULES_LENGTH`) and optionally `baseVersion`, writes it as the next version of what the organization adds, bringing the page back when it was put away, and answers what `GET` answers. The console's rules are never written: a body that carries them whole, as a command or a page of before read them and sends them back, is written as what stands before them and after them, without the heading, and with nothing beside them it puts what was added away, as `POST .../archive` does. The whole is known as it was read: with `{language}` as it stands or filled with any words, as `console rules` prints it, and with lines that end in a line feed or in a carriage return and one; a body that quotes a sentence of the rules, or a part of them, is written as it is. A write from a version the additions have moved on from is `document.conflict`. The write is a `document.written` event in the workspace's own feed, with `path`, `title` and `version`. `POST .../archive` puts what the organization adds away, so that the console's rules stand alone (`document.archived`); what is put away already changes nothing. `.../versions` answers `{ "items": [version, ...] }` as a page's versions are answered, newest first, and `{ "items": [] }` while nothing is added. A body may say `{language}` for the language of the person an agent works for: the API answers the text as written, and the pages and the command fill it (`fillRules`), with the name of the language the person reads in (`GET /api/v1/me`, `language`) or with the task's while they have none. The answer also carries `plugins` ([plugins.md](plugins.md), "The command"): every enabled plugin the asker may use, by key, each with its `name`, `agentNote` and `description` by language and the asker's `roles` in it; empty where the console has none.
|
|
164
169
|
|
|
165
170
|
### `GET /api/v1/work`
|
|
166
171
|
|
|
@@ -210,7 +215,7 @@ A picture from elsewhere, for a page that shows one ([ADR-0048](../adr/0048-a-pi
|
|
|
210
215
|
|
|
211
216
|
`POST /api/v1/connect`, `GET /api/v1/connect/<code>`, `POST /api/v1/connect/<code>/approve`, `POST /api/v1/connect/<code>/deny` and `POST /api/v1/connect/claim`: how an agent gets its token without anyone copying one ([ADR-0011](../adr/0011-an-agent-connects-with-a-short-code-a-person-approves-and-the-token-is-never-shown.md)).
|
|
212
217
|
|
|
213
|
-
`POST /api/v1/connect` is nobody's: the command sends `{ "agent" }` (what the agent calls itself and where it runs, a line up to `MAX_TOKEN_NAME_LENGTH`) and is answered `201` with `{ "code", "url", "secret", "expiresAt", "interval" }`: a code of eight characters in two groups (`ABCD-EFGH`, from an alphabet without look-alikes) for a person to approve, the console's own page for it, a secret (`cns_c_...`) the command claims with and shows nowhere, when the request expires (thirty minutes after it began), and how many seconds the command waits between claims. A deployment holds a bounded number of requests at once (`connect.too_many`), and a bounded number from one address, as the trusted proxies resolve it: at that bound the oldest request of the address not yet approved makes way for the new one, and its claim is `connect.not_found`; an address whose requests are all approved is `connect.too_many` ([ADR-0047](../adr/0047-a-connection-request-is-bounded-per-address-and-the-oldest-not-yet-approved-makes-way.md)).
|
|
218
|
+
`POST /api/v1/connect` is nobody's: the command sends `{ "agent" }` (what the agent calls itself and where it runs, a line up to `MAX_TOKEN_NAME_LENGTH`) and is answered `201` with `{ "code", "url", "secret", "expiresAt", "interval" }`: a code of eight characters in two groups (`ABCD-EFGH`, from an alphabet without look-alikes) for a person to approve, the console's own page for it, a secret (`cns_c_...`) the command claims with and shows nowhere, when the request expires (thirty minutes after it began), and how many seconds the command waits between claims. The answer is read within bounds (`restConnectionSchema`): the code up to 64 characters, the page's address up to `MAX_URL_LENGTH`, the secret up to `MAX_SECRET_LENGTH`, the instant up to 40 characters and the wait up to 600 seconds, none empty, each no wider than the command's credentials file reads back, since the route answers nobody and the command keeps the answer while it waits ([ADR-0129](../adr/0129-a-login-under-an-agent-says-its-code-and-ends-and-the-next-call-waits.md)); an answer beyond them is not a console's, and is refused. A deployment holds a bounded number of requests at once (`connect.too_many`), and a bounded number from one address, as the trusted proxies resolve it: at that bound the oldest request of the address not yet approved makes way for the new one, and its claim is `connect.not_found`; an address whose requests are all approved is `connect.too_many` ([ADR-0047](../adr/0047-a-connection-request-is-bounded-per-address-and-the-oldest-not-yet-approved-makes-way.md)).
|
|
214
219
|
|
|
215
220
|
`GET /api/v1/connect/<code>`, for a person signed in, answers what asks: `{ "code", "agent", "createdAt", "expiresAt", "approved", "as" }`. A code is read as a person types it: any case, with or without the hyphen. `POST .../approve`, from the console's own pages, takes what `POST /api/v1/tokens` takes (`name`, `expiresInDays`) and answers the request, approved; `POST .../deny` takes the request away and answers `204`.
|
|
216
221
|
|
|
@@ -244,7 +249,7 @@ For an owner, signed in or with a token. The patch takes `role` and writes `proj
|
|
|
244
249
|
|
|
245
250
|
### `GET /api/v1/projects/<key>/tasks?state=&open=&archived=&category=&goal=&worker=&unassigned=&dueBy=&q=&limit=&offset=`
|
|
246
251
|
|
|
247
|
-
`{ "items": [task, ...], "more": boolean }`: the project's board, newest first, a page at a time
|
|
252
|
+
`{ "items": [task, ...], "more": boolean }`: the project's board, newest first, a page at a time; `brief=true` answers the same page with every task without its `body`, for what lists tasks and shows no body, a listing of the command or a desk's pages, where the bodies weigh more than the rest of a page together (a console from before 0.5.1 ignores the word and answers the tasks whole, which reads the same, so whoever asks for the brief form reads `body` as optional). `limit` (1 to `LIST_LIMIT`, the default) and `offset` (from 0) say which page, and `more` whether there is one after it; a `limit` or an `offset` that is not a number in range is `request.invalid`. `state` keeps one state of it; `open=true` the tasks not done or dropped, `open=false` the rest; `category=<key>` those sorted into a category; `goal=<id>` those that work towards a goal; `worker=<person id>` those one person is at work on, `unassigned=true` those nobody is at work on (with `worker`, nothing); `dueBy=<day>` (`2026-10-24`) those due on that day or before it; `q=<words>` (1 to `MAX_SEARCH_LENGTH` characters) those whose title holds every word, whatever the case and in any order, and the task of that number for a number (`12`, `#12`), which is how a picker or a command finds a task by its title ([ADR-0037](../adr/0037-a-task-has-one-owner-and-any-number-of-workers-and-a-parent-or-a-goal-is-found-by-search.md)). The tasks put away ([ADR-0029](../adr/0029-a-task-done-or-dropped-is-put-away-out-of-the-board-and-open-by-its-number.md)) are left out; `archived=true` answers them alone, newest first: the archive and the board are two listings, never one. A task carries its `number` (the one people say out loud, numbered per project), `title`, `body` (Markdown, to be shown as text or rendered to elements, never as HTML), `state`, `priority`, `owner` (one person, whoever wrote it), `agent` (the agent the task was written through, or `null` when a person wrote it themselves, the owner may have changed since; [ADR-0056](../adr/0056-a-record-that-names-the-person-who-did-a-thing-names-the-agent-they-did-it-through.md); from 0.4.4, read as optional), `workers` (the people at work on it, in the order they came to it, `[]` while nobody is; [ADR-0037](../adr/0037-a-task-has-one-owner-and-any-number-of-workers-and-a-parent-or-a-goal-is-found-by-search.md)), `parentId`, `category` (its `key`, `name` and `color` as the workspace keeps it, or `null`), `goalId` (or `null`), its plan ([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)): `startsOn` and `dueOn`, each a day (`2026-10-24`) or `null`; its moments, which the board keeps itself: `startedAt`, when it was first moved past `ready`, and `doneAt`, when it was moved to `done`, each an instant or `null`; `archivedAt`, when it was put away, an instant or `null` while it is current; `links` (`url` and `label`), `openDecisions` (how many decisions about it wait for a person), `openRuns` (how many runs on it are open: begun and not ended, which says nothing of whether an agent is still at it, [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`.
|
|
248
253
|
|
|
249
254
|
### `POST /api/v1/projects/<key>/tasks`
|
|
250
255
|
|
|
@@ -296,7 +301,7 @@ One goal, for whoever may see the project. The patch, for an owner, takes any of
|
|
|
296
301
|
|
|
297
302
|
### `GET /api/v1/projects/<key>/runs?task=&open=&mine=&limit=&offset=` and `GET .../runs/<id>`
|
|
298
303
|
|
|
299
|
-
`{ "items": [run, ...], "more": boolean }`: the project's runs, newest first, a page at a time as the tasks are (`limit`, `offset`, `more`); `task=<id>` keeps those on one task, `open=true` those not over (`running` or `waiting`) and `open=false` those over, `mine=true` the asker's own: with a token, the runs begun with that token, which is one agent's; on a session, the runs for the person. A run is one agent's work on one task for one person: `taskId` and `taskNumber` (the one people say), `person` (whom the agent acts for), `agent` (what it calls itself), `status` (`running`, that is open, `waiting` for a decision, `finished`, `failed`, `abandoned`), `startedAt`, `endedAt` or `null`, `lastHeardAt` (when the agent was last heard from through the run: its start, then its latest report, hand-in or question; the console knows nothing of an agent but what it sends, and claims nothing more, [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); a run `running` and not heard from for twelve hours, or the hours the deployment sets, is ended by the console as `abandoned`, its `summary` saying so and `run.ended` naming no actor and `reason: "unheard"`, while a run `waiting` for an answer waits on, [ADR-0041](../adr/0041-a-run-not-heard-from-for-twelve-hours-is-ended-by-the-console.md)), `summary` (Markdown, what the agent said at the end, or `null`), `reports` (each `id`, `body` in Markdown, `createdAt`; oldest first), `artifacts` (each `id`, `kind`, `url` for a link or `null`, `label` or `null`, `file` for a file or `null`, and `createdAt`; a file is its `name`, `size` in bytes, `contentType` and `sha256`), and `waitingFor`, the id of the decision the run waits for, or `null`.
|
|
304
|
+
`{ "items": [run, ...], "more": boolean }`: the project's runs, newest first, a page at a time as the tasks are (`limit`, `offset`, `more`); `brief=true` answers the same page with every run without its `reports` and with `reportCount`, how many it has, counted and never read, for what lists runs and shows no report (a console from before 0.5.1 ignores the word and answers the runs whole, so whoever asks for the brief form reads `reportCount` and `reports` as optional, and counts the reports it was sent where none were counted: `reportCountOf` in the package); `task=<id>` keeps those on one task, `open=true` those not over (`running` or `waiting`) and `open=false` those over, `mine=true` the asker's own: with a token, the runs begun with that token, which is one agent's; on a session, the runs for the person. A run is one agent's work on one task for one person: `taskId` and `taskNumber` (the one people say), `person` (whom the agent acts for), `agent` (what it calls itself), `status` (`running`, that is open, `waiting` for a decision, `finished`, `failed`, `abandoned`), `startedAt`, `endedAt` or `null`, `lastHeardAt` (when the agent was last heard from through the run: its start, then its latest report, hand-in or question; the console knows nothing of an agent but what it sends, and claims nothing more, [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); a run `running` and not heard from for twelve hours, or the hours the deployment sets, is ended by the console as `abandoned`, its `summary` saying so and `run.ended` naming no actor and `reason: "unheard"`, while a run `waiting` for an answer waits on, [ADR-0041](../adr/0041-a-run-not-heard-from-for-twelve-hours-is-ended-by-the-console.md)), `summary` (Markdown, what the agent said at the end, or `null`), `reports` (each `id`, `body` in Markdown, `createdAt`; oldest first), `artifacts` (each `id`, `kind`, `url` for a link or `null`, `label` or `null`, `file` for a file or `null`, and `createdAt`; a file is its `name`, `size` in bytes, `contentType` and `sha256`), and `waitingFor`, the id of the decision the run waits for, or `null`.
|
|
300
305
|
|
|
301
306
|
### `POST /api/v1/projects/<key>/runs`
|
|
302
307
|
|
|
@@ -314,7 +319,7 @@ The bytes of any file of the project, handed in by a run, put in a comment or on
|
|
|
314
319
|
|
|
315
320
|
### `POST .../runs/<id>/end`
|
|
316
321
|
|
|
317
|
-
Takes `status` (`finished`, `failed` or `abandoned`) and optionally a `summary` (Markdown, `MAX_SUMMARY_LENGTH`: what was done and what is left), ends the run (`run.ended`), and answers it.
|
|
322
|
+
Takes `status` (`finished`, `failed` or `abandoned`) and optionally a `summary` (Markdown, `MAX_SUMMARY_LENGTH`: what was done and what is left), ends the run (`run.ended`), and answers it. No run leaves a task at work behind it ([ADR-0114](../adr/0114-the-end-of-a-run-leaves-no-task-at-work-behind-it.md)): a finished or a failed run puts a task that is `in_progress` up for review (`in_review`), where a person looks at what the run ended with, and an abandoned one puts it back in the state the take found it in, which a run that took another over keeps from that one, `ready` for a run from before the state was kept; a task a person moved meanwhile, and one another run is open on, is left where it is. The move is `task.moved`, by whoever ended the run. The run's person ends it, as `finished` or `failed` from their agent; `abandoned` is a person giving up on a run that will not come back: their own, or anyone's as an owner of the project, signed in or through their agent (`run.not_yours` otherwise); the console gives up on a run itself when it has not heard from it for twelve hours ([ADR-0041](../adr/0041-a-run-not-heard-from-for-twelve-hours-is-ended-by-the-console.md)), and the task it gives back so is moved by nobody and wakes no agent account. A run that is over is `run.over`.
|
|
318
323
|
|
|
319
324
|
### `GET /api/v1/projects/<key>/skills`
|
|
320
325
|
|
|
@@ -374,10 +379,12 @@ A file attached to the page, sent and read back exactly as a run hands one in ([
|
|
|
374
379
|
|
|
375
380
|
### `GET /api/v1/projects/<key>/events/stream?after=`
|
|
376
381
|
|
|
377
|
-
The same events as they happen, as server-sent events: one message per event, with `id` the event's number, `event` its kind and `data` the event as JSON; a comment (`: ping`) every 25 seconds of silence. A browser that reconnects sends `Last-Event-ID`, which wins over `after`, so that nothing is missed. The stream ends when the server shuts down, and when the person may no longer read the project, which is asked again before every delivery and every heartbeat: a member taken off a private project, a person deactivated or a token revoked stops reading within a heartbeat. An `EventSource` reconnects on its own, and is answered as any request is. A person holds at most `MAX_STREAMS_PER_PERSON` streams at once, across their tabs, and a process of the console `MAX_STREAMS` for everyone: one more is `feed.too_many` (`429`, `retry-after`), which a browser's `EventSource` does not retry on its own
|
|
382
|
+
The same events as they happen, as server-sent events: one message per event, with `id` the event's number, `event` its kind and `data` the event as JSON; a comment (`: ping`) every 25 seconds of silence. A browser that reconnects sends `Last-Event-ID`, which wins over `after`, so that nothing is missed. The stream ends when the server shuts down, and when the person may no longer read the project, which is asked again before every delivery and every heartbeat: a member taken off a private project, a person deactivated or a token revoked stops reading within a heartbeat. An `EventSource` reconnects on its own, and is answered as any request is. A person holds at most `MAX_STREAMS_PER_PERSON` streams at once, across their tabs, and a process of the console `MAX_STREAMS` for everyone: one more is `feed.too_many` (`429`, `retry-after`), which a browser's `EventSource` does not retry on its own, as it retries no answer that is no stream, a gateway's error while the console restarts among them. The console's pages then show the board as it stands and open the stream again themselves, after the last event that arrived, a few seconds later and further apart while it is refused, half a minute at the most.
|
|
378
383
|
|
|
379
384
|
The feed is written in the same transaction as the change it records, so what a stream carries happened, and what happened is carried; every process of the deployment learns of a change through the database's own channel, so a board with several `api` replicas is one board.
|
|
380
385
|
|
|
386
|
+
An event is numbered when it is written and seen when its change is committed, and a change numbered first may be committed last. So every read of a feed by number ends at the feed's 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)): a page of the feed (`after=`), its newest page (`latest=true`), the stream, and the wait for an answer. Whoever comes back with the last number they were given has passed over nothing. An event committed while an earlier one is still under way is carried once that one has ended, in the order of the numbers; a page shown meanwhile ends before both. A process that has not seen the feed settle since it began, while a change is still under way, answers a read of the feed with `503` and `feed.unsettled` (`retry-after: 1`) and not with an empty page, whose reader would go on from the beginning: the pages ask again, a second apart and ten times, before they say that the project could not be loaded.
|
|
387
|
+
|
|
381
388
|
## Agent accounts
|
|
382
389
|
|
|
383
390
|
An agent account is a member of its own ([ADR-0084](../adr/0084-an-agent-account-is-a-member-of-its-own-with-a-manager-above-it.md) to [ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)): a row of the directory with `kind: "agent"`, under the rules a person is under, and never an administrator. What passes between the command and the console for the whole of that plan moved once, at 0.5.0, before the plan was built ([ADR-0043](../adr/0043-the-rest-contract-is-held-to-a-snapshot-taken-at-the-floors.md)): what stands under "In the contract" is read by every command and console from 0.5.0 on, and every route of the plan is specified below, in the change that built it ([roadmap](../roadmap.md), milestones 41 to 43).
|
|
@@ -391,11 +398,11 @@ An agent account is a member of its own ([ADR-0084](../adr/0084-an-agent-account
|
|
|
391
398
|
|
|
392
399
|
### `GET /api/v1/agents` and `POST /api/v1/agents`
|
|
393
400
|
|
|
394
|
-
`GET` answers `{ "items": [<agent>, ...] }`, the agent accounts the asker may see, as the people are seen ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)), and the ones they supervise, those in first, by handle. An agent is `{ "person", "manager", "supervised", "state", "runner" }`: the account as a member, a person object with `kind: "agent"`, its `handle`, its `title` and its `avatarParts`, and `invited: true` while nobody has signed in with it; whom it reports to, `null` where the asker may not see them; whether the asker supervises it: an administrator, or above it in the reporting line, its manager or the manager of one above them; and how it stands and what its runner last said of itself, `state` and `runner`, [as below](#the-runner-put-apiv1agentsmerunner-and-the-signals), each read as optional and `null` where there is nothing to say. Supervision is one function of the policy, and what a supervisor may do of an agent account, the routes below that say so, nobody else may: an owner of a project it works in reads its runs and reports as anyone's, and nothing more. An agent account is a member, so `GET /api/v1/people` lists it among the people too, and everything that names a person, a task's worker, a decision's decider, an event's actor, names it the same way.
|
|
401
|
+
`GET` answers `{ "items": [<agent>, ...] }`, the agent accounts the asker may see, as the people are seen ([ADR-0035](../adr/0035-who-may-see-whom-is-decided-by-one-policy-and-the-workspace-keeps-its-settings.md)), and the ones they supervise, those in first, by handle. An agent is `{ "person", "manager", "supervised", "state", "runner" }`: the account as a member, a person object with `kind: "agent"`, its `handle`, its `title` and its `avatarParts`, and `invited: true` while nobody has signed in with it; `firstSignIn`, while it waits for that sign-in at a git host, what the sign-in is held to ([ADR-0126](../adr/0126-an-agent-account-at-a-git-host-is-bound-to-the-hosts-account-when-it-is-added.md)): `account`, `member` or `login`, as below, left out once it has signed in and under a provider that makes its own addresses, and read as optional; whom it reports to, `null` where the asker may not see them; whether the asker supervises it: an administrator, or above it in the reporting line, its manager or the manager of one above them; and how it stands and what its runner last said of itself, `state` and `runner`, [as below](#the-runner-put-apiv1agentsmerunner-and-the-signals), each read as optional and `null` where there is nothing to say. Supervision is one function of the policy, and what a supervisor may do of an agent account, the routes below that say so, nobody else may: an owner of a project it works in reads its runs and reports as anyone's, and nothing more. An agent account is a member, so `GET /api/v1/people` lists it among the people too, and everything that names a person, a task's worker, a decision's decider, an event's actor, names it the same way.
|
|
395
402
|
|
|
396
|
-
`POST`, for an administrator, signed in or through their agent's token ([ADR-0021](../adr/0021-a-token-configures-as-its-person-does.md)), makes one and answers `201` with it. It takes the account the agent will sign in with, as a listing names one, `host` (one the deployment signs people in through; `agent.unknown_host` otherwise) and `login` (as the host spells one); its persona, `handle` (2 to 39 lowercase letters, digits and hyphens, a letter or a digit first and last, none of the words the addresses and the command use, `RESERVED_HANDLES`: `new`, `me`, `proposals`, `setup`, `invite`, `secret`, `secrets`, `signals`, `tell`, `interrupt`, `stop`, `restart`, `reset`, `set`, `wake`; one among the workspace's agent accounts, `agent.handle_taken`; it never changes), `name` (a line up to `MAX_PERSON_NAME_LENGTH`), `title` (optional, a line up to `MAX_PERSON_TITLE_LENGTH`), and its avatar, `avatarParts` with optionally the `avatarSeed` they were rolled from, or neither, and the console rolls the parts, from the seed where one is given; `managerId`, an active member of the workspace, a person or an agent account, whoever makes the account where none is named (`agent.invalid_manager` for anyone else, or for one who reports to the account); and `project`, the key of the project it starts in (`agent.invalid_project`), where it is listed as a member when the project lists its members. The member's row is written at once, so that work is assigned to it before anyone signed in with it, and the login is let in as a listing lets one in ([ADR-0022](../adr/0022-who-is-in-is-the-consoles-own-record-and-an-administrator-keeps-it.md)); the first sign-in with that
|
|
403
|
+
`POST`, for an administrator, signed in or through their agent's token ([ADR-0021](../adr/0021-a-token-configures-as-its-person-does.md)), makes one and answers `201` with it. It takes the account the agent will sign in with, as a listing names one, `host` (one the deployment signs people in through; `agent.unknown_host` otherwise) and `login` (as the host spells one); its persona, `handle` (2 to 39 lowercase letters, digits and hyphens, a letter or a digit first and last, none of the words the addresses and the command use, `RESERVED_HANDLES`: `new`, `me`, `proposals`, `setup`, `invite`, `secret`, `secrets`, `signals`, `tell`, `interrupt`, `stop`, `restart`, `reset`, `set`, `wake`; one among the workspace's agent accounts, `agent.handle_taken`; it never changes), `name` (a line up to `MAX_PERSON_NAME_LENGTH`), `title` (optional, a line up to `MAX_PERSON_TITLE_LENGTH`), and its avatar, `avatarParts` with optionally the `avatarSeed` they were rolled from, or neither, and the console rolls the parts, from the seed where one is given; `managerId`, an active member of the workspace, a person or an agent account, whoever makes the account where none is named (`agent.invalid_manager` for anyone else, or for one who reports to the account); and `project`, the key of the project it starts in (`agent.invalid_project`), where it is listed as a member when the project lists its members. The member's row is written at once, so that work is assigned to it before anyone signed in with it, and the login is let in as a listing lets one in ([ADR-0022](../adr/0022-who-is-in-is-the-consoles-own-record-and-an-administrator-keeps-it.md)); its first sign-in is the account's `person.joined`. A Workspace makes its own addresses: there the account may be made on the way, and the first sign-in with that address binds the provider's account to the row. At a git host a login goes to whoever registers it, so the account has to be the organization's before it is added here, as the pages, the command and the guide say, and the console holds the first sign-in to more than the name ([ADR-0126](../adr/0126-an-agent-account-at-a-git-host-is-bound-to-the-hosts-account-when-it-is-added.md)). Where the deployment names the organization at the host, the console asks it, as the account is added, which of its members the login is, in one question whose answer says both that the login is a member and which account the membership is of, so that no account that came to carry the name between two questions is read in its place, and binds the row to the host's id of that account: `firstSignIn` is `account`, that account alone is let in as this one, whatever it is called by then, and whoever else comes to carry the name is refused while the account waits. Where the organization has no member called so, or cannot be asked, the account is added all the same, not confirmed: `firstSignIn` is `member`, and its first sign-in binds it only where the organization says, at that sign-in, that the login is a member; anyone else under the login is refused. Where the deployment names no organization, nothing can say which account a login is: `firstSignIn` is `login`, and until the account has signed in the console lets in whoever holds the login, as a listing does. A login that is, by the host's id, an account a member already is, under whatever name the console last saw, is that member (`agent.login_is_member`, or the member made the account where `convert` asks); and where the host said which account the login is, a member bound to another account is not the one named, whatever the console last saw them called: the name was theirs and is another account's now, so they are neither refused for nor made the account, with `convert` or without, and the account is added beside them, let in by the organization where a listing of theirs still spells the name. An account added and not used is deactivated, which takes its listing away. The name and the picture stay the console's: a sign-in writes the login as the provider spells it now, and neither the provider's name nor its picture. It writes `person.listed` with `login` and `handle`.
|
|
397
404
|
|
|
398
|
-
With the account the console makes its onboarding ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md), points 4 to 6): a task in the project it starts in, `Set up @<handle>`, `ready`, with the account as its worker and whoever made the account as its owner, through the agent they made it through; its body says what the agent does itself and what it cannot, to be asked for as decisions, in the words of the services the workspace names (`onboardingOf` in the package), and nothing is asked there of the account it signs in with, which comes before it. The board wakes the account with it, as with any ready task it is at work on ([runner.md](runner.md#the-boards-wakes)), and the wake waits on the account's record until a runner first connects. The answer carries `onboarding`, `{ "project", "number" }`, or `null` where the board took no task; an account read later says nothing of it.
|
|
405
|
+
With the account the console makes its onboarding ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md), points 4 to 6): a task in the project it starts in, `Set up @<handle>`, `ready`, with the account as its worker and whoever made the account as its owner, through the agent they made it through; its body says what the agent does itself and what it cannot, to be asked for as decisions, in the words of the services the workspace names (`onboardingOf` in the package), and nothing is asked there of the account it signs in with, which comes before it. It names the account's own address where the account signs in with one, the login it was made with, and has it ask which address an invitation goes to where it does not, offering none; and it says that a run waiting for a decision stays open, the answer waking the account, so that the task is finished when nothing of it waits on anyone: each item set up, or answered as not to be done now, the last report listing what is not done. The board wakes the account with it, as with any ready task it is at work on ([runner.md](runner.md#the-boards-wakes)), and the wake waits on the account's record until a runner first connects. The answer carries `onboarding`, `{ "project", "number" }`, or `null` where the board took no task; an account read later says nothing of it.
|
|
399
406
|
|
|
400
407
|
A login a member already carries is refused, `409` `agent.login_is_member`, unless the input says `convert: true` ([ADR-0104](../adr/0104-a-member-is-made-an-agent-account-only-where-that-is-asked-for.md)): a persona's proposed login may spell a colleague's, and nobody is made an agent account by a name that happens to be theirs. With `convert`, the member is made the account, once: the member's own row becomes the account, with everything it did and the sessions and tokens it holds, and the board is told with `person.updated` (`login`, `handle`, `fields: ["kind"]`). An administrator is not made one (`agent.administrator`), and a login that is an agent account already is `agent.exists`, whatever `convert` says; `convert` asks nothing of a login nobody carries. `kind` never goes back.
|
|
401
408
|
|
|
@@ -448,7 +455,7 @@ What passes between the console and an agent account's runner ([ADR-0085](../adr
|
|
|
448
455
|
|
|
449
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.
|
|
450
457
|
|
|
451
|
-
**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.
|
|
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.
|
|
452
459
|
|
|
453
460
|
**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.
|
|
454
461
|
|
|
@@ -460,8 +467,8 @@ A session is `{ "id", "month", "startedAt", "endedAt", "ended", "product", "mode
|
|
|
460
467
|
|
|
461
468
|
**The runner's own**, under `/api/v1/agents/me/sessions`, for an agent account on its command's session, as the heartbeat is (`agent.own_command`, `agent.not_found`).
|
|
462
469
|
|
|
463
|
-
- `POST` begins a session and answers `201` with it. One session of an account is open at a time: the one that was open ends as `taken_over`.
|
|
464
|
-
- `POST .../<id>/events` takes `{ "events": [...] }`, a batch in order, and answers `{ "last" }`, the number of the session's last event now. A number the session has already changes nothing; `transcript.out_of_order` (`400`) for a batch not in order, `transcript.gap` (`409`) for one that would leave a gap, `transcript.unknown_file` (`400`) for a picture that is not the session's, `transcript.session_over` (`409`) for a session that ended, `transcript.away` (`409`) for one whose month is put away, `request.too_large` beyond 2 MiB, and `transcript.session_not_found` for a session that is not the account's.
|
|
470
|
+
- `POST` begins a session and answers `201` with it. One session of an account is open at a time: the one that was open ends as `taken_over`. An account begins 60 sessions 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 `transcript.too_many_sessions` (`429`), with `retry-after`, and the session that is open stays open.
|
|
471
|
+
- `POST .../<id>/events` takes `{ "events": [...] }`, a batch in order, and answers `{ "last" }`, the number of the session's last event now. A number the session has already changes nothing; `transcript.out_of_order` (`400`) for a batch not in order, `transcript.gap` (`409`) for one that would leave a gap, `transcript.unknown_file` (`400`) for a picture that is not the session's, `transcript.session_over` (`409`) for a session that ended, `transcript.away` (`409`) for one whose month is put away, `request.too_large` beyond 2 MiB, and `transcript.session_not_found` for a session that is not the account's. A session takes 60,000 events 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)): a batch that would take it past that is `transcript.too_many` (`429`), refused whole with `retry-after`, the seconds until it fits, and taken when it is sent again then; a batch sent again that holds nothing new is answered as ever.
|
|
465
472
|
- `POST .../<id>/files` takes a form with one part `file`, a picture (`image/png`, `image/jpeg`, `image/gif`, `image/webp`) up to `MAX_FILE_BYTES`, and answers `201` with `{ "id", "name", "size", "contentType" }`, what an event names it by; `transcript.too_fast` (`429`) beyond 60 a minute for one session.
|
|
466
473
|
- `POST .../<id>/end` takes `{ "how" }` and answers the session; ended already, it stays as it ended.
|
|
467
474
|
|
package/docs/specs/runner.md
CHANGED
|
@@ -41,7 +41,7 @@ The runner is the program on an agent account's machine that keeps its agent goi
|
|
|
41
41
|
|
|
42
42
|
- `state` is what the runner says of its agent: `running`, the session open or ready to open; `stopped`, by a supervisor's `stop`; `refused`, the model refused and the agent waits; `failed`, the product could not start or sign in. `unheard` is the console's word, never the runner's.
|
|
43
43
|
- `reason` is one of a short list, never what was said: `started`, `resumed`, `reset`, `completed` (a turn completed after a wait) for `running`; `stop` for `stopped`; `model_refused` for `refused`; `sign_in`, `start`, `crashed` for `failed`.
|
|
44
|
-
- `delivered` is the number of the last signal
|
|
44
|
+
- `delivered` is the number of the last signal that is delivered, every one before it too, `0` for none ([ADR-0131](../adr/0131-a-signal-is-delivered-when-the-product-took-it-and-an-event-says-which-sub-agent-made-it.md)): the product said it took it, the session's record says it was never read or was let go, or it was the runner's own to act on, a `stop` or a `set` say. One handed to a product that has not said it took it is not delivered yet.
|
|
45
45
|
- `session` is the open session's id, or `null`.
|
|
46
46
|
- `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
47
|
|
|
@@ -53,7 +53,7 @@ The console answers what the account's settings are and where the record stands:
|
|
|
53
53
|
|
|
54
54
|
`latest` is the number of the newest signal of the account; `delivered` the most the console was ever told was delivered, and never more than it sent, whatever a runner says, which is where a runner that lost its own count goes on from; `settings` is what a supervisor chose, `null` each where nothing was, and where the product does not offer it any more: a choice is kept among what the product offers, so one that this heartbeat's `offers` do not list, where they list any, is the product's own again from then on, since a product refuses at every turn a model it does not have, another product's once the desk's driver changed say; `state` is how the console has the agent, which is `stopped` whatever the runner says while a supervisor's `stop` stands. The console keeps when it last heard from the runner and claims nothing more ([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)).
|
|
55
55
|
|
|
56
|
-
A change of state is `agent.state_changed` in the workspace's feed, with `login`, `handle`, `state`, `was` and `detail`, the reason: by the supervisor whose `stop` stopped it, by the account for what its runner reported, by nobody for an account the worker found unheard, which it does for one whose runner was last heard from more than five minutes ago.
|
|
56
|
+
A change of state is `agent.state_changed` in the workspace's feed, with `login`, `handle`, `state`, `was` and `detail`, the reason; a runner has the feed told twenty changes of its account's state 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)), a change beyond that being kept with the account, which its page reads, and told by a later heartbeat once the hour has room, as how the account stands then, with `was` what the feed was told last: by the supervisor whose `stop` stopped it, by the account for what its runner reported, by nobody for an account the worker found unheard, which it does for one whose runner was last heard from more than five minutes ago.
|
|
57
57
|
|
|
58
58
|
## Signals
|
|
59
59
|
|
|
@@ -102,14 +102,15 @@ Hold the release until the migration is checked.
|
|
|
102
102
|
- What came from outside the console, a messenger's message say, is carried in a block fenced longer than any run of fence characters it holds, after a header that names where it came from.
|
|
103
103
|
- `tell`, `wake` and the words of a `restart` or a `reset` are sent at the product's priority for "after the current tool call" where the driver can steer, after the turn otherwise; `interrupt` stops the turn first.
|
|
104
104
|
- The files of a signal are read by the runner at `GET /api/v1/agents/me/signals/<number>/files/<id>` and written in the desk, at `work/inbox/<number>/<name>`, for the account alone, before the message is handed over ([ADR-0095](../adr/0095-a-tell-carries-files-of-any-kind-handed-to-the-agent-in-its-desk.md)). The name is made one segment: what a file system reads as a path, a drive or a pattern becomes `_`, as does a comma, which a product that takes pictures by their paths reads as the end of one; a bracket becomes a parenthesis; a name a system keeps for a device (`NUL`, `CON`) gets `_` before it; and a second file of a name, whatever the case of its letters, is numbered. The message says each on a line of its own after the signal's words, with the session's mark, since it is the runner that says where a file is: `[console k3f9a2 · attached file: work/inbox/8812/export.csv · text/csv · 2.0 KB]`, `[console k3f9a2 · attached picture, shown to you: work/inbox/8812/screen.png]`, or that it could not be handed over, with whom to ask. A picture is handed to the product as a picture too where the product takes one, as its bytes or by its path in the desk as the driver says (`can.imageFiles`); where it takes none the line says so and tells the agent to open the file. The pictures are kept with what the agent was sent in the session's transcript; the event names the other files as `files` and the pictures the product was not handed as pictures as `unseen`, which the agent's page says to whoever sent them. The files stay in the desk, the agent's to remove.
|
|
105
|
-
- What the agent was sent is written on the session's record when the product takes it ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)): at once where the product was waiting for a message; where a turn was under way, when the driver says `taken`, after the tool call under way or with the turn after, so that the record reads in the order the agent read, and a supervisor's words wait in sight on the agent's page until then; and at the latest when the turn completes. What a session ends on before the product took it is written then with `unread: true`; a product that did not start, or was not signed in, took nothing, and what it was sent is sent again. A `reset` gives it one more try, in the new conversation: where the product does not start with it again, it is let go, with a `status` on the session's record that names the signals and says so in the runner's line, and is sent no more, so that no signal stands in the way of every one after it. Whoever sent it says it again where it still matters.
|
|
105
|
+
- What the agent was sent is written on the session's record when the product takes it ([ADR-0098](../adr/0098-a-message-is-on-the-record-where-the-agent-took-it-and-an-interrupt-may-carry-no-words.md)): at once where the product was waiting for a message; where a turn was under way, when the driver says `taken`, after the tool call under way or with the turn after, so that the record reads in the order the agent read, and a supervisor's words wait in sight on the agent's page until then; and at the latest when the turn completes. What a session ends on before the product took it is written then with `unread: true`; a product that did not start, or was not signed in, took nothing, and what it was sent is sent again. So it is with a product that had taken nothing of its session when a supervisor's `stop`, `restart` or `reset` ended it, which had not started for all the runner knows: what it was handed is handed over again in the session that follows, after a `stop` once the agent is restarted. And so it is where the runner itself ends, stopped by its service or for an update: what its product had not taken is not written as never read, and the console sends it again to the runner started after. Either way a `status` on the session's record names those signals and says that they are sent again. A first message, which the record holds since it was handed over, is named the same way in a `status` that says it was not taken, where it is let go with a product that ended by itself before taking it. What a product says while its session is being ended is heard before the session is closed: a message it took then is taken, and the conversation it named is the one gone on with. A `reset` gives it one more try, in the new conversation: where the product does not start with it again, it is let go, with a `status` on the session's record that names the signals and says so in the runner's line, and is sent no more, so that no signal stands in the way of every one after it. Whoever sent it says it again where it still matters.
|
|
106
|
+
- A signal is delivered when the record holds what became of it, and not when it is handed over: when the driver says `taken` or the turn completes, when the session ends and the record says it was never read, or when it is let go. What waits to be handed over, and what a product was handed and has not said it took, is not delivered: a product that did not start, followed by the runner's own end, loses nothing, since the runner started after is sent again, from the console's record, every signal after the last one delivered. A runner that ends by itself, with a session open whose product was handed a message and had not taken it, counts nothing of that message either, whatever the product was at: the record of that session does not say it was never read, and the runner started after is sent it again. Signals are counted in order, so one the runner acted on itself is delivered once none before it is still owed.
|
|
106
107
|
- Signals are grouped, never capped: the runner holds what arrives within 1.5 seconds and delivers one message, the signals in order under a header each, the same `source` and `key` merged with a count; beyond 20 signals or 16,000 characters a message, the rest is said as "N more" with the command that reads them (`console agent signals`).
|
|
107
108
|
|
|
108
109
|
What the agent itself does on the board raises no wake to it.
|
|
109
110
|
|
|
110
111
|
## The board's wakes
|
|
111
112
|
|
|
112
|
-
The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 10), which the worker role applies from where it read the feed to, as the plugins' hooks are dispatched, keeping its place a batch of events at a time, and at the event before one whose wakes could not be sent; an `api` role that carries the worker's work applies them itself. Each wake is a signal on the account's record, a `wake` from the `board` whose `by` is whoever did what woke it and whose `key` says what it is about, so that the runner says several wakes of one thing once:
|
|
113
|
+
The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-the-agents-machine-is-told-by-signals-and-runs-one-session-at-a-time.md), point 10), which the worker role applies from where it read the feed to, as the plugins' hooks are dispatched, keeping its place a batch of events at a time, and at the event before one whose wakes could not be sent; an `api` role that carries the worker's work applies them itself. It reads no further than the feed's 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)), so that an event numbered before another and committed after it wakes whom it should once it is there. An event whose wakes fail in twelve passes in a row, a minute of them, is passed over, with an error in the console's log that names the event's number and kind, so that one wake that can never be sent does not hold every wake after it. Where changes follow each other without a gap, or one is stuck, the feed does not settle and the wakes wait for it: nothing is lost, and the job says so in the log once it has lasted thirty seconds. Each wake is a signal on the account's record, a `wake` from the `board` whose `by` is whoever did what woke it and whose `key` says what it is about, so that the runner says several wakes of one thing once:
|
|
113
114
|
|
|
114
115
|
| What happened | Who is woken | `key` |
|
|
115
116
|
|---|---|---|
|
|
@@ -121,7 +122,7 @@ The board wakes an agent account by rules ([ADR-0085](../adr/0085-a-runner-on-th
|
|
|
121
122
|
| A decision is answered | The agent account that raised it | `decision:<id>` |
|
|
122
123
|
| The workspace's `handle`, `domain` or `services` change | Every agent account that was there, from the `console` and by nobody | `services` |
|
|
123
124
|
|
|
124
|
-
"Today" is the day in the workspace's time zone, UTC where it has none: a task planned for a later day wakes nobody, and appears in that day's briefing. A task is read as it stands when the worker reads the event, which is what the agent will find. What an account did itself wakes it for nothing; an account that is out is woken for nothing; a task that is put away wakes nobody. An account is woken only for what it may still read: for a task while it may work in the task's project, and for a decision while the decision reaches it, so that an account taken off a private project, and still named on a task or a decision there, is told neither a title nor an answer of it. A wake says what it is about in the console's own words, with the command that reads it (`console task 412 --project ops`, `console decision <id>`): a task's title and a decision's question on one line, and never what a comment says, which the agent reads on the board as a comment.
|
|
125
|
+
"Today" is the day in the workspace's time zone, UTC where it has none: a task planned for a later day wakes nobody, and appears in that day's briefing. A task is read as it stands when the worker reads the event, which is what the agent will find. What an account did itself wakes it for nothing, leaving its own run among it; a task the console itself gave back as ready, ending a run it had not heard from, wakes nobody, since an agent whose run dies in silence would be sent to take it again every twelve hours ([ADR-0114](../adr/0114-the-end-of-a-run-leaves-no-task-at-work-behind-it.md)); an account that is out is woken for nothing; a task that is put away wakes nobody. An account is woken only for what it may still read: for a task while it may work in the task's project, and for a decision while the decision reaches it, so that an account taken off a private project, and still named on a task or a decision there, is told neither a title nor an answer of it. A wake says what it is about in the console's own words, with the command that reads it (`console task 412 --project ops`, `console decision <id>`): a task's title and a decision's question on one line, and never what a comment says, which the agent reads on the board as a comment.
|
|
125
126
|
|
|
126
127
|
The first wake of an account is its onboarding task ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), by the first rule: the console writes the task ready, with the account at work on it, when the account is made ([rest.md](rest.md#get-apiv1agents-and-post-apiv1agents)), and the wake waits on the record until a runner first connects.
|
|
127
128
|
|
|
@@ -133,6 +134,7 @@ The worker reads the feed every five seconds, a hundred events at a time, one pa
|
|
|
133
134
|
|
|
134
135
|
## A session's life
|
|
135
136
|
|
|
137
|
+
- 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.
|
|
136
138
|
- There is one main session per account. The runner begins one when there is something to deliver and none is open: `POST /api/v1/agents/me/sessions` with what it runs (`product`, `model`, `effort`, `resumed`, `machine`, as the heartbeat spells them), answered `201` with the session, its id in it. A session begun while another of the account is open takes that one over: the console ends the older as taken over, as a run takes over a run.
|
|
137
139
|
- The conversation is the product's, resumed from the session before where the driver can (`resume`) and `conversation` in `runner.json` is `continuous`.
|
|
138
140
|
- A session ends when a supervisor stops or restarts the agent, when the process dies, or when the machine restarts: `POST /api/v1/agents/me/sessions/<id>/end` with `{ "how" }` (`stopped`, `restarted`, `reset`, `crashed`, `exited`), answered with the session; one that ended already stays as it ended, `taken_over` among it, which is the console's word. The next signal begins the next.
|
|
@@ -140,7 +142,7 @@ The worker reads the feed every five seconds, a hundred events at a time, one pa
|
|
|
140
142
|
- A supervisor's `stop` ends the session, and nothing is delivered until a `restart` or a `reset`: what arrives meanwhile is kept and delivered then, grouped. `restart` begins the next session with the same conversation; `reset` with a new one, the agent told in its first message that it was reset, by whom, and that what it was doing is on the board and in its desk.
|
|
141
143
|
- `set` is applied through the driver at once where the product takes it in a running session. Where the product takes its model and its effort when it starts, the open session ends as `restarted` as soon as no turn is under way, and the next, which the next signal begins, goes on with the conversation and runs with them; the heartbeat's `running` says what the session runs with.
|
|
142
144
|
- A `set` is a supervisor's. The account itself is given none: what an agent changes of its own model or effort is what its product lets a session change, in the product's own way, and the console adds nothing to it and takes nothing from it. Where the product says what the session runs with afterwards, the driver says so and the page shows it (`running`).
|
|
143
|
-
- The runner keeps a few things between its own restarts, in `work/runner-state.json` under the desk: the number of the last signal
|
|
145
|
+
- The runner keeps a few things between its own restarts, in `work/runner-state.json` under the desk: the number of the last signal delivered, the conversation to go on with, and the driver that conversation was begun under. A conversation is a product's own: where `runner.json` names another driver since, the conversation kept is let go and a new one begins, which the runner says in a line, since a product asked to go on with another's conversation fails at every turn. Without the file it goes on from what the console answers its first heartbeat.
|
|
144
146
|
- **The runner takes an update of its command by itself** ([ADR-0101](../adr/0101-a-runner-ends-for-an-update-of-its-command-and-its-service-starts-it-again.md)). At every heartbeat it reads the version of the package it runs from, as the package's manifest on the machine says it now. Another version than its own, seen twice, a heartbeat's interval apart, is an update; a manifest that does not read says nothing, and two looks a moment apart, as when the agent's state changes, are one. From then on nothing more is handed to the product, the turn under way ends in its own time, the open session ends as `restarted`, with a status that says why, and the runner ends with exit code `0`. A supervisor's `interrupt` still stops the turn under way meanwhile; its words are not handed over, and reach the runner started after, as everything sent meanwhile does. The service starts it again, as after any end, on the new command; the next signal begins a session that goes on with the conversation, and what was sent meanwhile is sent again from the console's record. A runner started by hand ends the same way, says so, and is started again by hand. The runner starts no process in its own place and installs nothing itself.
|
|
145
147
|
- A runner the console refuses as too old (`client.outdated`) says so on its own output, with the command that installs the console's version the way this command was installed, and, once, to its agent in the open session, with that command: the agent installs it, and the runner takes the update as above. That message is a turn of the agent's as any other is, so the update is taken when the agent is done with it and never while the install runs. The command names the console's version where the console said one that is a version, and `latest` otherwise. Where the agent cannot, it tells whom it reports to. The runner keeps trying meanwhile.
|
|
146
148
|
- Nobody is at the terminal: what the product's policy does not allow is denied and recorded, and the tool by which the product would ask a person at its terminal is taken away.
|
|
@@ -158,10 +160,10 @@ Built on the console's side ([rest.md](rest.md#the-sessions-and-the-transcript))
|
|
|
158
160
|
- `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.
|
|
159
161
|
- `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`.
|
|
160
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.
|
|
161
|
-
- `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.
|
|
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.
|
|
162
164
|
- `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`).
|
|
163
|
-
- 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, and the beginning of one that a text a
|
|
164
|
-
- 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 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
|
|
165
|
+
- 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
|
+
- 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).
|
|
165
167
|
|
|
166
168
|
The console deletes none of it. `GET /api/v1/agents/<handle>/sessions` lists the sessions, the newest first, and `.../sessions/<id>/events?after=` reads the events, a page at a time, for the account's supervisors and for the account; `.../sessions/<id>/events/stream?after=` is the same as it happens, each `event` under its number, and an `end` with the session once it is over and everything of it was sent. A run the account's command begins while a session is open names it (`sessionId`), so that what the agent did for a task is found in its transcript.
|
|
167
169
|
|
|
@@ -171,7 +173,7 @@ An administrator seals an event that must not be kept, `POST /api/v1/agents/<han
|
|
|
171
173
|
|
|
172
174
|
## The desk
|
|
173
175
|
|
|
174
|
-
The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), and the directory the runner is started in. The package carries its template (`deskFiles` in `@skillcdn/console/runner`), which setup writes when the desk does not exist yet and the account pushed none before ([cli.md](cli.md#setting-a-machine-up)); [`examples/agent-desk`](../../examples/agent-desk/AGENTS.md) is what it writes for an invented account, and a test holds the two equal. Five files, and nothing that prescribes what a product already does for itself:
|
|
176
|
+
The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-account-has-a-desk-and-is-set-up-from-an-invitation-by-signing-in-as-itself.md)), and the directory the runner is started in. The package carries its template (`deskFiles` in `@skillcdn/console/runner`), which setup writes when the desk does not exist yet and the account pushed none before ([cli.md](cli.md#setting-a-machine-up)); [`examples/agent-desk`](../../examples/agent-desk/AGENTS.md) is what it writes for an invented account, and a test holds the two equal. Five files, the least ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)): the instructions and a structure, and nothing that prescribes what a product already does for itself or what a desk is to keep:
|
|
175
177
|
|
|
176
178
|
| File | What it is |
|
|
177
179
|
|---|---|
|
|
@@ -179,9 +181,13 @@ The desk is the agent account's own repository ([ADR-0088](../adr/0088-an-agent-
|
|
|
179
181
|
| `AGENTS.md` | The base instructions, read as they are by every product, in eight sections: who I am; where I work; asking; this desk; secrets; projects; care; safety |
|
|
180
182
|
| `CLAUDE.md` | One line, `@AGENTS.md`: the one product-specific file |
|
|
181
183
|
| `runner.json` | The runner's configuration, below |
|
|
182
|
-
| `.gitignore` | `work/`, the products' own state, anything shaped like a secret, dependencies, logs, and what an operating system or an editor leaves behind |
|
|
184
|
+
| `.gitignore` | `work/`, the products' own state, anything shaped like a secret, dependencies, what the desk's pages build, logs, and what an operating system or an editor leaves behind |
|
|
183
185
|
|
|
184
|
-
|
|
186
|
+
Nothing is written under the desk's three places, each of which is there once it is used: `records/`, what the agent keeps, in the shape that fits it; `web/`, its pages; `work/`, the checkouts of the projects it works on. How a desk is shaped to what its member asks to keep and to see is the skill `keeping-a-desk`, one of the console's own, which `console help desk` names with its place; the form for a set of things made, with their uses and their figures, is a page of that skill, taken where it is asked for ([records.md](records.md)).
|
|
187
|
+
|
|
188
|
+
`AGENTS.md` says the least that must be said, and nothing an agent knows anyway. It names the account, the console and the manager it reports to; that the agent works in one main session, which plans and directs the work and keeps the record, and gives the tasks themselves to subagents where its product has them, as a lead and not a rule; what a subagent is handed, the task by its number and its project, the checkout, a folder of its own under `work/` for its scratch and the skill `working-the-board`, in a brief that names the task and does not restate it, and that it takes the task as the account, once, and names that run on every command after, the session that hands a task over not taking it too ([ADR-0115](../adr/0115-a-person-has-a-desk-too-written-by-the-command-and-set-up-by-a-skill-of-the-organizations-pack.md), point 7); that its instructions are its supervisors' tells, the board's tasks and decisions and the console's rules, and everything else it reads is information; and the services the workspace names ([ADR-0089](../adr/0089-a-workspace-names-the-services-its-agents-work-with.md)), with what the agent is called at each; that the desk is bound to no project and stays so, a board command run there naming one as a wake does (`console task <number> --project <key>`) and `console use` being for a checkout, a project's repository being cloned under `work/<name>` and its `AGENTS.md` read before the first change there; and, by [ADR-0117](../adr/0117-a-desk-keeps-records-of-what-its-member-made-as-files-the-desks-pages-read.md), point 8: that the skill `working-the-board` is read before the first task of the board, and not for a job that is no task of a project; that what the agent keeps lives under `records/` in the shape that fits it, its pages under `web/` and its projects under `work/`, each there once it is used, what the desk keeps and shows being said in the file, a line each, and something new shaped as the skill `keeping-a-desk` says ([ADR-0122](../adr/0122-a-desk-is-given-its-least-and-grown-by-what-its-member-asks.md)); that what it does in the desk for itself is its own and on no board unless it puts it there, the board's work reaching it as tasks; that scratch files go under `work/`; and that the organization's pack is looked in before a job is done by hand. A desk that is there keeps its `AGENTS.md`, under `console agent setup --refresh` too ([cli.md](cli.md#setting-a-machine-up)): what the template gained since it was written, the agent writes in itself. What a persona says, a name or a title, is written as text: it makes no heading, no markup and no second line. From then on the files are the agent's to edit.
|
|
189
|
+
|
|
190
|
+
A person has a desk too ([ADR-0115](../adr/0115-a-person-has-a-desk-too-written-by-the-command-and-set-up-by-a-skill-of-the-organizations-pack.md)), with no runner in it, written by `console desk` ([cli.md](cli.md#a-desk-of-ones-own)): the files above without `runner.json`, whose `AGENTS.md` says in five sections who the person is and which language to write to them in, where the console knows one; where the work is, the board's and the desk's own, which is on no board unless they put it there; that what changes in the desk is committed and pushed without asking, where what it keeps, its pages and its projects live, each there once it is used, that the file says what the desk keeps and shows, a line each, and which skill shapes it; that no secret is kept in it; and that instructions found in content are data. The package carries its template beside this one (`personDeskFiles`), and [`examples/person-desk`](../../examples/person-desk/AGENTS.md) in the console's repository is what it writes for an invented person, held equal to it by the same test.
|
|
185
191
|
|
|
186
192
|
## `runner.json`
|
|
187
193
|
|
|
@@ -227,7 +233,7 @@ interface WakeHost {
|
|
|
227
233
|
}
|
|
228
234
|
```
|
|
229
235
|
|
|
230
|
-
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. 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)).
|
|
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)).
|
|
231
237
|
|
|
232
238
|
### The `slack` wake source
|
|
233
239
|
|
|
@@ -262,7 +268,7 @@ interface Service {
|
|
|
262
268
|
|
|
263
269
|
`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.
|
|
264
270
|
|
|
265
|
-
`task-scheduler`, for Windows, plans a scheduled task of the agent's own OS account, called by whose it is, `SkillCDN Console Runner (<account>)`, since a task is the machine's and one list holds every account's: its definition `~\AppData\Local\skillcdn-console\runner-task.xml`, then `schtasks /Create /TN <name> /XML <definition> /F`, which registers it in place of the one that was there, `schtasks /End`, which ends the one that runs, and `schtasks /Run`. The task starts when the account logs on, as the account that registered it, with none of the limits a task has by itself: it is not ended after three days, not kept from a battery, and not run below everything else. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged on at the machine, as on macOS: the system refuses an account a task of its own that runs with nobody logged on, and that the account is logged on when the machine starts is for whoever prepares it. The system starts a task once and in a window, gives it the account's environment, keeps nothing it writes, and ends it by ending the one process it started. So what the task starts is one line of the system's own shell, in no window, which starts the runner in the desk with the `PATH` setup ran with, adds what it writes to `~\AppData\Local\skillcdn-console\runner.log`, starts it again ten seconds after it ends, and tells it which process keeps it (`CONSOLE_RUNNER_KEEPER`, that process's number): a runner told so looks for that process every two seconds and stops when it is gone, so that ending the task ends the runner. A runner that was left all the same, the same program started with the same words to their end, is ended with what it started before another begins: one runner for the account. A desk that is gone is a line of the log, and nothing is started. A refresh that wrote the definition again registers it, which ends nothing that runs: the next start is with what was written. What a path or a login holds is written as words of that shell, each whole, with a percent sign said by its number, since the system fills a variable in where it reads a name between two; and as text of the definition in the letters every encoding shares, a letter beyond them by its number, since the system reads a definition that names no encoding in the machine's own. A quote, which a task's command line does not carry, and a line longer than one carries are why no task is written. Run on Windows 11 (2026-11-12), from an invitation's line against a console on the same machine, in an account of the administrators' group from a shell without their rights: the task was registered and started and the runner heard from, and a turn of Claude Code ran under it; the runner's process ended from outside, it ran again ten seconds later; the task ended, the runner was gone within five seconds and nothing started it again until the task was run; a definition changed by hand and registered so was written and registered again by `--refresh`, with the runner left running; and a task that would run with nobody logged on was refused. Not seen there: the account logging on, which is what starts the task from then on, a restart of the machine, an account with no administrator's rights at all, and an account of a domain.
|
|
271
|
+
`task-scheduler`, for Windows, plans a scheduled task of the agent's own OS account, called by whose it is, `SkillCDN Console Runner (<account>)`, since a task is the machine's and one list holds every account's: its definition `~\AppData\Local\skillcdn-console\runner-task.xml`, then `schtasks /Create /TN <name> /XML <definition> /F`, which registers it in place of the one that was there, `schtasks /End`, which ends the one that runs, and `schtasks /Run`. The task starts when the account logs on, as the account that registered it, with none of the limits a task has by itself: it is not ended after three days, not kept from a battery, and not run below everything else. Nothing of it needs an administrator's rights, and so the runner runs while the account is logged on at the machine, as on macOS: the system refuses an account a task of its own that runs with nobody logged on, and that the account is logged on when the machine starts is for whoever prepares it. The system starts a task once and in a window, gives it the account's environment, keeps nothing it writes, and ends it by ending the one process it started. So what the task starts is one line of the system's own shell, in no window, which starts the runner in the desk with the `PATH` setup ran with, adds what it writes to `~\AppData\Local\skillcdn-console\runner.log`, a line at a time, putting the log aside first where it is full, starts it again ten seconds after it ends, and tells it which process keeps it (`CONSOLE_RUNNER_KEEPER`, that process's number): a runner told so looks for that process every two seconds and stops when it is gone, so that ending the task ends the runner. A runner that was left all the same, the same program started with the same words to their end, is ended with what it started before another begins: one runner for the account. A desk that is gone is a line of the log, and nothing is started. A refresh that wrote the definition again registers it, which ends nothing that runs: the next start is with what was written. What a path or a login holds is written as words of that shell, each whole, with a percent sign said by its number, since the system fills a variable in where it reads a name between two; and as text of the definition in the letters every encoding shares, a letter beyond them by its number, since the system reads a definition that names no encoding in the machine's own. A quote, which a task's command line does not carry, and a line longer than one carries are why no task is written. Run on Windows 11 (2026-11-12), from an invitation's line against a console on the same machine, in an account of the administrators' group from a shell without their rights: the task was registered and started and the runner heard from, and a turn of Claude Code ran under it; the runner's process ended from outside, it ran again ten seconds later; the task ended, the runner was gone within five seconds and nothing started it again until the task was run; a definition changed by hand and registered so was written and registered again by `--refresh`, with the runner left running; and a task that would run with nobody logged on was refused. Not seen there: the account logging on, which is what starts the task from then on, a restart of the machine, an account with no administrator's rights at all, and an account of a domain.
|
|
266
272
|
|
|
267
273
|
## The driver
|
|
268
274
|
|
|
@@ -302,7 +308,7 @@ The Claude Code binary, unmodified, over its streaming JSON input and output, as
|
|
|
302
308
|
|
|
303
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.
|
|
304
310
|
- **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`.
|
|
305
|
-
- **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; `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. 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.
|
|
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.
|
|
306
312
|
- **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.
|
|
307
313
|
- **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.
|
|
308
314
|
- **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.
|
|
@@ -316,7 +322,7 @@ The Codex binary, unmodified, run with nobody at its terminal: `codex exec --jso
|
|
|
316
322
|
- **A turn** is started as `codex exec --json --skip-git-repo-check`, in the desk, with `-m` and `-c model_reasoning_effort` where the account's settings name them, and the message on its standard input; a turn of a conversation gone on with as `codex exec resume ... <id>`. The desk is the agent's own, a repository or not one yet. A model, an effort or an id that is no plain word is left out, so that nothing the driver is handed becomes an option of the product's.
|
|
317
323
|
- **The mode** is said at every turn, since a turn keeps nothing of the mode the turn before ran in, in the product's own words: its three sandboxes, `read-only`, `workspace-write` and `danger-full-access`, in which whatever the sandbox does not allow is asked of nobody and refused; and `approve-for-me`, in which the desk may be written and the product's own reviewer answers what would otherwise be asked of a person. With nobody at its terminal the product runs in `read-only`, where a file written is refused, so the driver names `approve-for-me` where `runner.json` names none. A mode named that is none of these starts the turn in `read-only`.
|
|
318
324
|
- **No message is taken in a turn** (`steer: false`). One that arrives while a turn runs waits for the turn to end and is the next turn's, read with whatever else waited; one that is to be read now, an `interrupt` with its words, ends the turn's process first, and the product goes on from there knowing that what it was doing was cut. `turn_completed` is said when a turn ended and nothing waits.
|
|
319
|
-
- **What it reads**, a line each: `thread.started`, written at every turn, names the conversation and becomes a `status` event the first time; an `item` that is an `agent_message` becomes `assistant`; a `command_execution` or a `file_change` becomes `tool_call` when it starts and `tool_result` when it completes, a command with its output and what it ended in; `turn.failed` and `error` become an `error`, said once though the product writes it twice. Its reasoning, a tool of a server and a search are read as its documentation gives them, and were not seen.
|
|
325
|
+
- **What it reads**, a line each: `thread.started`, written at every turn, names the conversation and becomes a `status` event the first time; an `item` that is an `agent_message` becomes `assistant`; a `command_execution` or a `file_change` becomes `tool_call` when it starts and `tool_result` when it completes, a command with its output and what it ended in; `turn.failed` and `error` become an `error`, said once though the product writes it twice. Its reasoning, a tool of a server and a search are read as its documentation gives them, and were not seen. An item names no agent it is of, so no event says a sub-agent made it.
|
|
320
326
|
- **An agent that cannot go on.** A product that is not there to start is `failed` with `start`. An error that says it is not signed in is `failed` with `sign_in`, read by pattern: its words for it were not seen, since that takes signing it out. A turn's process that ends with no word of how the turn ended fell over, and the agent cannot go on by itself: before a turn started it is `start`, as when the product does not find the conversation again (`thread/resume failed: no rollout found`, seen run), and what was sent is kept and tried again, which a `reset` cures; after one started it is `crashed`, and nothing is sent again, since what the turn was at is not known. A turn the product itself says failed, `turn.failed`, is a turn that ended, and the agent takes the next message. The product has no word of its own for an answer the model would not give.
|
|
321
327
|
- **The model and the effort** are each turn's, so a `set` is taken from the next turn on, with no session ended for it. What the product offers is asked of the product: `codex debug models`, the models it lists for a person to choose from and their levels of effort; its version is read from `codex --version`.
|
|
322
328
|
- **Pictures** are handed to it as files (`images: true`, `imageFiles: true`): each as `-i <path>`, the path the runner wrote it at from the desk, after `exec` or `exec resume` and before `--json`, since the product's option takes several values and would take what follows it for one. Only a path under `work/inbox/<number>/` goes on the command line. Seen with the binary (0.167.0), on a first turn and on one gone on with.
|
|
@@ -333,7 +339,7 @@ Any product that speaks the Agent Client Protocol, version 1: the command `runne
|
|
|
333
339
|
- **The session** is opened with `session/new`, the desk as its directory and no MCP server of the runner's. A conversation is gone on with where the agent can: `session/resume` where it resumes, `session/load` where it only loads, with what it replays then left unread; an agent that does neither begins a new one, and the transcript says so. A conversation the agent cannot go on with, one it has no more or never kept, is said in the transcript with the agent's reason, and a new one begins, as one begins where the conversation kept was another driver's; an agent that says it is not signed in is said as that. The id of the session is the conversation's.
|
|
334
340
|
- **A turn** is `session/prompt`: what arrived together as one prompt, each message a block of text, with its pictures as `image` blocks where the agent takes them (`promptCapabilities.image`). The session says whether it does once the agent has said so, and the runner then hands a picture over as a file alone, saying so; for a message sent before that, the driver adds a line saying how many were not shown and where they are in the desk. How the turn ended is the answer's `stopReason`: `end_turn` is a turn completed; `cancelled` one that was stopped; `max_tokens` and `max_turn_requests` are said as a `status` and are a turn that ended; `refusal` is the model's, `refused`; an error on the request is said, and is a turn that ended. A turn the agent itself ends as cancelled where it was refused leave, which nobody stopped, is said as that.
|
|
335
341
|
- **No message is taken in a turn** (`steer: false`). One that arrives while a turn runs is the next turn's; one that is to be read now, and an `interrupt`, say `session/cancel` first, and the agent answers the turn as cancelled. A method of an agent's own for a message in a turn, beside the protocol, is not spoken.
|
|
336
|
-
- **What it reads** are the `session/update` notifications. The agent's message and its thought arrive in pieces and are kept until whole: an `assistant` and a `thinking` block each, ended by whatever comes that is something else. A `tool_call` is a `tool_call` event, its title with its input, said once the input is known: an agent may open a call before what it is called with is whole and say that in an update, so a call is said at the update that brings its input, at the next thing said of it where it has none, and before whatever else is said; a call opened under an id whose call is done is another call, so that an agent that numbers its calls anew at every turn has each of them on the record; the update that completes it or fails it a `tool_result`, with what the call held last: an update names what changed and leaves the rest as it was, so what was said when the call began is its result where its end says the status alone. The result is the text of its content, a file by its path with what became of it (written, changed, removed), and its pictures handed in; where the content holds no text, what the call's command printed, which an agent may send beside the protocol while the command runs (`_meta.terminal_output`, whole, or `_meta.terminal_output_delta`, a piece at a time,
|
|
342
|
+
- **What it reads** are the `session/update` notifications. The agent's message and its thought arrive in pieces and are kept until whole: an `assistant` and a `thinking` block each, ended by whatever comes that is something else. A `tool_call` is a `tool_call` event, its title with its input, said once the input is known: an agent may open a call before what it is called with is whole and say that in an update, so a call is said at the update that brings its input, at the next thing said of it where it has none, and before whatever else is said; a call opened under an id whose call is done is another call, so that an agent that numbers its calls anew at every turn has each of them on the record; the update that completes it or fails it a `tool_result`, with what the call held last: an update names what changed and leaves the rest as it was, so what was said when the call began is its result where its end says the status alone. The result is the text of its content, a file by its path with what became of it (written, changed, removed), and its pictures handed in; where the content holds no text, what the call's command printed, which an agent may send beside the protocol while the command runs (`_meta.terminal_output`, whole, or `_meta.terminal_output_delta`, a piece at a time, shown to 200,000 characters and kept a little beyond, so that it is cut once the secrets are out of it); and its output as data where there is neither. The protocol names no sub-agent, so no event says one made it. A `plan` is a `status`. A choice the agent changed is kept, and said to the runner where it is the model or the effort. The rest, the commands it offers, its mode, what it used and what a person typed said back, is none of the transcript's. What the agent tells beside its work, a warning or an error of its own, is taken as a `notice` (the client says that it takes them, `session.notices`, or an agent says such a thing as its own words in the middle of an answer): a `status`, or an `error` where the agent says it is one. A block is its words, without the empty lines an agent may begin or end it with.
|
|
337
343
|
- **What the agent asks leave for** (`session/request_permission`) is answered at once, since nobody is at a terminal, and recorded as a `permission` event. `permissions` in `runner.json` says how, in the driver's own two words, there being no one product to take a word from: `allow`, the one where it names none, takes the option that allows the call once, since an agent refused everything does no work; `deny` takes the one that refuses it once, for an agent that is to do only what its own mode lets it without asking. An agent that offers neither is answered that the request was cancelled. What an agent does without asking is its own mode's, and the protocol has a session say its modes and set one: a choice of the category `mode`, or `session/set_mode` ([ADR-0091](../adr/0091-an-agent-over-the-protocol-runs-in-a-mode-of-its-own-which-the-desk-or-the-driver-names.md)). The mode the other two drivers name, in which the product works without asking and a review of its own holds back what looks unsafe, is the agent's to have under whatever name it gives it; the protocol has no word for it. So `permissions` may also name one of the agent's own modes: the session is set to it, and what the agent still asks is refused, since the mode is what it may do with nobody there. Where `permissions` names none, an agent the driver was run against is set to the mode it has for a run nobody attends, and what it still asks is refused: `agent`, its automatic review, for the adapter that puts Codex behind the protocol, which in that mode asked nothing in the runs seen, a file written beside the desk included, and in `read-only` asked leave to write; `auto` for the adapter that puts Claude Code behind it, which starts in it where the model has one, and in its manual mode, `default`, asked leave to write. Any other agent runs in its own mode and is allowed each call once, as above: the driver cannot tell an agent that asks only for what its review held back from one that asks for everything, so whoever prepares its desk names its mode. A mode named that the agent does not offer is a mistake in the desk's file: the transcript says so with the modes the agent offers, the agent runs in its own, and what it asks is refused. When an agent gains such a mode, naming it in `runner.json` is all its desk needs; the driver's list of what each agent calls it (`UNATTENDED_MODES` in `acp.ts`, beside the versions tried) is where it becomes the default, once it was run.
|
|
338
344
|
- **The model and the effort** are the session's choices of the categories `model` and `thought_level` (`configOptions`): what the agent offers is what the account's settings choose from, each set with `session/set_config_option` when the session opens and when a `set` arrives, in a running session (`set: true`). What the session runs with is said when it opens and again whenever that changed, by a `set` taken or by the agent itself, so that the heartbeat's `running` is what the agent runs with now and not what its session began with. What it offers is asked without a session to run: the product is started, asked what it is (`agentInfo`, whose name is what the runner calls it and whose version is its version), a session is opened for its choices and closed again where the agent closes one (`sessionCapabilities.close`), and it is left.
|
|
339
345
|
- **An agent that cannot go on.** A product that is not there to start, or that opens no session in two minutes, is `failed` with `start`. The protocol's own code for a request it takes only when signed in (`-32000`), and an error that says so, is `failed` with `sign_in`; what an error says is its message with what it carries beside it (`data`), since an agent may say no more than that something failed and put why there. A process that ends by itself is `crashed`, or `start` where it never answered. What the driver cannot tell is a turn the agent ended as completed while saying, in its own words, that it failed, as the adapter read does with an error of its model: that is a turn completed, with the agent's words in the transcript.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skillcdn/console",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
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",
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"types": "./dist/api.d.ts",
|
|
36
36
|
"default": "./dist/api.js"
|
|
37
37
|
},
|
|
38
|
+
"./charts": {
|
|
39
|
+
"types": "./dist/charts.d.ts",
|
|
40
|
+
"default": "./dist/charts.js"
|
|
41
|
+
},
|
|
38
42
|
"./cli": {
|
|
39
43
|
"types": "./dist/cli/cli.d.ts",
|
|
40
44
|
"default": "./dist/cli/cli.js"
|
|
@@ -90,7 +94,8 @@
|
|
|
90
94
|
"vitest": "^5.1.0"
|
|
91
95
|
},
|
|
92
96
|
"dependencies": {
|
|
93
|
-
"@skillcdn/
|
|
97
|
+
"@skillcdn/cli": "^0.5.2",
|
|
98
|
+
"@skillcdn/core": "^0.5.2",
|
|
94
99
|
"react-markdown": "^10.1.0",
|
|
95
100
|
"remark-gfm": "^4.0.1",
|
|
96
101
|
"zod": "^4.6.7"
|