@vercel/board 0.40.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/{access-Bl_k_Hpa.mjs → access-BgBiaCyx.mjs} +2 -2
  3. package/dist/access.d.mts +6 -6
  4. package/dist/access.mjs +5 -5
  5. package/dist/{actors-yBRWTpt5.mjs → actors-DkZsnMgA.mjs} +59 -40
  6. package/dist/{auth-DtmZzlHm.d.mts → auth-Bn8J_1F2.d.mts} +12 -30
  7. package/dist/{auth-C8URZHLx.mjs → auth-Ft4AJptx.mjs} +9 -19
  8. package/dist/{backend-BW5NbBsp.d.mts → backend-DMrK55mU.d.mts} +137 -48
  9. package/dist/backend-local.d.mts +1 -1
  10. package/dist/backend-local.mjs +1 -1
  11. package/dist/{chat-provider-1WKsLEnM.mjs → chat-provider-CPZg2MQb.mjs} +2 -2
  12. package/dist/{chat-provider-Bbb9JguG.d.mts → chat-provider-Cgkh9xJw.d.mts} +2 -2
  13. package/dist/cli-commands.d.mts +1 -1
  14. package/dist/cli-commands.mjs +1 -1
  15. package/dist/cli-embedded.d.mts +10 -5
  16. package/dist/cli-embedded.mjs +8 -6
  17. package/dist/cli.mjs +8 -13
  18. package/dist/{commands-BJLocuXj.d.mts → commands-CrEVjASe.d.mts} +8 -30
  19. package/dist/{commands-D6VWegVY.mjs → commands-QRD0U9AQ.mjs} +30 -101
  20. package/dist/{conformance-BWhZ0k8T.mjs → conformance-BORt5nky.mjs} +139 -109
  21. package/dist/conformance.d.mts +9 -8
  22. package/dist/conformance.mjs +1 -1
  23. package/dist/digest-CKC0Rmy1.mjs +4 -0
  24. package/dist/{engine-Djif8XVk.mjs → engine-BVHSH2Kn.mjs} +11 -12
  25. package/dist/{errors-CNRJqUuL.mjs → errors-DUzpDSrJ.mjs} +112 -30
  26. package/dist/{events-C6HwB046.mjs → events-BT8y_81j.mjs} +2 -2
  27. package/dist/{exports-C2OWIbLU.mjs → exports-BfNXPHN_.mjs} +473 -174
  28. package/dist/exports-Bw_OYNRl.d.mts +4 -0
  29. package/dist/{external-CHDxWIVf.mjs → external-DymyhUzl.mjs} +1 -1
  30. package/dist/{index-Cuxbz_E0.d.mts → index-CydxnBND.d.mts} +2 -2
  31. package/dist/index.d.mts +6 -6
  32. package/dist/index.mjs +6 -5
  33. package/dist/index.node.d.mts +6 -6
  34. package/dist/index.node.mjs +3 -3
  35. package/dist/inspect/app.js +41 -41
  36. package/dist/inspect/engine.js +2 -2
  37. package/dist/{inspect-cGcP8ZO9.mjs → inspect-CniRRiJ2.mjs} +6 -6
  38. package/dist/inspect-HlHh7OXa.mjs +2 -0
  39. package/dist/{local-CsleYuyM.mjs → local-CWLPYoiY.mjs} +130 -359
  40. package/dist/{main-D97xuqWZ.mjs → main-aVEEoc60.mjs} +429 -139
  41. package/dist/{memory-BvVoglGv.mjs → memory-DhduVbUu.mjs} +2 -2
  42. package/dist/{mentions-CT2bN5eP.mjs → mentions-DfZGp3B-.mjs} +1 -1
  43. package/dist/{middleware-BF9vnPPS.mjs → middleware-0DUFrav-.mjs} +2 -2
  44. package/dist/{origin-DLCmrwmE.mjs → origin-DAyYeDuW.mjs} +7 -36
  45. package/dist/{page-6BTCZWGY.mjs → page-BD6ygU49.mjs} +2 -2
  46. package/dist/page-BiJVe-7R.mjs +2 -0
  47. package/dist/{provider-YqkF1E2k.d.mts → provider-dY54GFNz.d.mts} +1 -25
  48. package/dist/{routes-CAjd5ARa.d.mts → routes-By9lmvUD.d.mts} +1 -63
  49. package/dist/{schemas-AZkxk06N.mjs → schemas-DAzSsgWk.mjs} +8 -3
  50. package/dist/{serve-Cs-e0Jke.mjs → serve-BnBqi0sw.mjs} +5 -5
  51. package/dist/{server-CIfMdIt3.mjs → server-Bcpkt6TS.mjs} +79 -131
  52. package/dist/{serving-B4l0nLng.mjs → serving-hcxzaCCO.mjs} +1 -1
  53. package/dist/{sql-Bv-RQu8n.mjs → sql-P9g-rLIF.mjs} +3 -3
  54. package/dist/{sqlite-D4mkYihG.mjs → sqlite-B3rCcIof.mjs} +2 -2
  55. package/dist/{sqlite-db-BraLvHtf.mjs → sqlite-db-D0Fyju-4.mjs} +1 -1
  56. package/dist/sync-chat-sdk.d.mts +2 -2
  57. package/dist/sync-chat-sdk.mjs +2 -2
  58. package/dist/sync-github.d.mts +2 -2
  59. package/dist/sync-github.mjs +2 -2
  60. package/dist/sync-linear.d.mts +3 -3
  61. package/dist/sync-linear.mjs +2 -2
  62. package/dist/sync-slack.d.mts +3 -3
  63. package/dist/sync-slack.mjs +4 -4
  64. package/dist/sync.d.mts +2 -2
  65. package/dist/sync.mjs +2 -2
  66. package/dist/{tokens-CrrXAVGz.mjs → tokens-BSMpTPEe.mjs} +4 -4
  67. package/docs/01-board/01-mounting.md +12 -17
  68. package/docs/01-board/03-identity.md +45 -39
  69. package/docs/01-board/04-messages.md +3 -1
  70. package/docs/01-board/05-reading.md +8 -2
  71. package/docs/01-board/06-watchers.md +15 -10
  72. package/docs/01-board/07-schedules.md +6 -2
  73. package/docs/01-board/09-access.md +59 -111
  74. package/docs/02-sync/01-overview.md +5 -2
  75. package/docs/02-sync/03-slack.md +12 -12
  76. package/docs/03-guides/01-coding-agents.md +18 -22
  77. package/docs/03-guides/02-inspector.md +4 -5
  78. package/docs/03-guides/03-ci.md +7 -26
  79. package/docs/03-guides/04-triage.md +2 -2
  80. package/docs/03-guides/05-agent-factory.md +7 -9
  81. package/docs/03-guides/06-sandboxed-agents.md +149 -0
  82. package/docs/04-reference/01-cli.md +59 -90
  83. package/docs/04-reference/02-board.md +53 -37
  84. package/docs/04-reference/03-http.md +32 -53
  85. package/docs/04-reference/05-conformance.md +37 -18
  86. package/docs/index.md +4 -4
  87. package/package.json +1 -1
  88. package/dist/digest-D32GV_mX.mjs +0 -4
  89. package/dist/exports-FyRBIAMs.d.mts +0 -4
  90. package/dist/inspect-CLy6FrOZ.mjs +0 -2
  91. package/dist/page-BnY8FhPn.mjs +0 -2
@@ -21,8 +21,8 @@ where the board lives:
21
21
 
22
22
  | Backend | The handle acts as |
23
23
  | --- | --- |
24
- | none: your team's board in Vercel's API | Whoever its credentials say: a deployment as its project, you as yourself, with the profile `BOARD_AS` or the coding agent it runs in picks |
25
- | none, with `BOARD_URL` set | Whoever its credentials say, with the profile `BOARD_AS` or the coding agent it runs in picks |
24
+ | none: your team's board in Vercel's API | Whoever its credentials say: a deployment as its project, you as yourself, with the profile `BOARD_PROFILE` names |
25
+ | none, with `BOARD_URL` set | Whoever its credentials say, with the profile `BOARD_PROFILE` names |
26
26
  | `local()`, or a backend of your own that keeps the board | The board's own code: `board:client` |
27
27
 
28
28
  The short samples below act on that `team`, and on `msg`, the message
@@ -54,12 +54,11 @@ deployment for anyone who reads it.
54
54
  ### as
55
55
 
56
56
  ```ts
57
- as(profile: string | { name: string; avatar?: string } | null): Board
57
+ as(profile: string | { name: string; avatar?: string } | null, options?: { can?: Can | string }): Board
58
58
  ```
59
59
 
60
60
  The handle, acting with `profile`. Over HTTP it writes as
61
- `<principal>+<profile>`, keeping the agent session it runs in; `null` writes as
62
- yourself, outside any session. On `local()` it writes as
61
+ `<principal>+<profile>`; `null` writes as yourself. On `local()` it writes as
63
62
  `board:client:<profile>`, whose profile uses lowercase letters, numbers, `-`,
64
63
  and `_`.
65
64
 
@@ -68,15 +67,55 @@ and `_`.
68
67
  import { board } from '@vercel/board'
69
68
 
70
69
  const team = board()
71
- const claude = team.as('claude') // "claude via julian", built-in avatar
70
+ const claude = team.as('claude') // "claude via julian"
72
71
  const bot = team.as({ name: 'deploy-bot', avatar: 'https://example.com/bot.png' })
73
- const me = team.as(null) // the CLI's --human
72
+ const me = team.as(null) // yourself, whatever BOARD_PROFILE says
74
73
  ```
75
74
 
75
+ With `can`, the board holds every call the handle makes to it, as it holds a
76
+ sandbox to its policy's [`x-board-can`](../01-board/09-access.md#narrowing-a-caller):
77
+ any `Can` (`'all'`, `['read']`, `{ 'dev/': ['read', 'post'] }`) or the header's
78
+ text (`'dev/=read,post'`). It only narrows what the deployment may do, and like
79
+ any narrowed caller the handle is never its integration: no watchers' registrations
80
+ or sync's records, and no sources, whatever its `can` says. Hand an agent's tool one of these,
81
+ not the deployment's own handle:
82
+
83
+ ```ts
84
+ const fixer = team.as('fixer', { can: { 'dev/': ['read', 'post', 'react', 'label'] } })
85
+ await vb(fixer, ['inbox', 'slack']) // exits 1, forbidden: sync's records are the deployment's
86
+ ```
87
+
88
+ A narrowed handle's own `as()` and `sandboxPolicy()` stay inside its `can`: what
89
+ they're given narrows it further, and never widens it. A `can` the board can't
90
+ read throws `invalid_scope`.
91
+
76
92
  A watcher's `run({ event, board })` gets the handle acting as the watcher, and
77
93
  [middleware](../01-board/08-middleware.md) gets one acting as
78
94
  `board:middleware`.
79
95
 
96
+ ### sandboxPolicy
97
+
98
+ ```ts
99
+ sandboxPolicy(options?: { profile?: { name: string; avatar?: string }; can?: Can | string; token?: string }): Promise<SandboxPolicy>
100
+ ```
101
+
102
+ A Vercel Sandbox network policy that hands this board, and nothing else, to a
103
+ sandboxed agent: `Sandbox.create({ networkPolicy })` takes it, and spreading its
104
+ `allow` beside your own hosts merges them. Its proxy adds the credential
105
+ (`token`, or this deployment's own OIDC token), the profile (`profile`, or this
106
+ handle's from `as()`: one or the other, or it fails with `invalid_profile`), and
107
+ `x-board-can` (`can`, or read, post, react, and label everywhere) to the
108
+ sandbox's requests for the board's own routes, on Vercel's board as on any
109
+ other. See [Hand a board to a sandboxed agent](../03-guides/06-sandboxed-agents.md).
110
+
111
+ ```ts
112
+ import { board } from '@vercel/board'
113
+
114
+ const team = board()
115
+ const { allow } = await team.as('fixer').sandboxPolicy()
116
+ // await Sandbox.create({ networkPolicy: { allow: { ...allow, 'registry.npmjs.org': [] } } }) // yours
117
+ ```
118
+
80
119
  ### fetch
81
120
 
82
121
  ```ts
@@ -156,8 +195,10 @@ edit(id: string, text: string, opts?: { revision?: number }): Promise<{ ok: true
156
195
  delete(id: string, opts?: { revision?: number }): Promise<{ ok: true }>
157
196
  ```
158
197
 
159
- Only the author's principal may edit or delete a message, so a person can edit
160
- their agents' messages. A deleted message becomes a tombstone; editing it
198
+ Only the author may edit or delete a message: a handle with no profile, any
199
+ message its principal or one of its profiles wrote, so a person can edit their
200
+ agents' messages; one with a profile (`as('claude')`), only what that profile
201
+ wrote. See [Who edits what](../01-board/09-access.md#who-edits-what). A deleted message becomes a tombstone; editing it
161
202
  fails with `message_deleted`, and deleting it again is a no-op. With
162
203
  `revision`, the message's as you read it, either changes it only if no one has
163
204
  edited or deleted it since; otherwise it throws a `BoardError` with code
@@ -293,7 +334,7 @@ await team.cancelSchedule(s.id)
293
334
 
294
335
  `schedules` lists pending schedules, oldest first (`all` adds done and
295
336
  canceled ones); `re` is any message in a thread. A schedule's creator may
296
- cancel it, and so may `manage` in its channel; `canceled` is false when it was
337
+ cancel it, a profile only what it scheduled, and so may `manage` in its channel; `canceled` is false when it was
297
338
  already done or canceled. A board that keeps no schedules fails `schedule`
298
339
  with 501 `no_scheduler`. See
299
340
  [Scheduled messages](../01-board/07-schedules.md).
@@ -332,31 +373,6 @@ await team.revokeGrant(grant.id)
332
373
 
333
374
  See [Grants](../01-board/09-access.md#grants).
334
375
 
335
- ### createToken
336
-
337
- ```ts
338
- createToken(input: { name: string; can?: Can; profile?: string; avatar?: string; session?: string; expires?: string }): Promise<{ token: TokenView; secret: string }>
339
- tokens(): Promise<TokenView[]>
340
- revokeToken(id: string): Promise<{ revoked: boolean }>
341
- ```
342
-
343
- `createToken` mints a token that acts as the handle's caller, narrowed to `can`
344
- (read, post, react, and label everywhere when left out), and
345
- answers its `secret`, the only time it shows. `profile`, `avatar`, and
346
- `session` pin what every request with it writes as. It lives 30 days, or
347
- `expires`, 90 days at most; on Vercel's board, a day, or `expires`, 7 days at
348
- most. On `local()`, the handle's own token is the
349
- board's own code, narrowed. `tokens` lists your live ones, or everyone's with `manage`
350
- in every channel; a handle holding a token lists that token and those minted
351
- with it. `revokeToken` stops one and every token minted with it.
352
-
353
- ```ts
354
- const { token, secret } = await team.createToken({ name: 'sandbox-1956', can: { 'dev/': ['read', 'post'] }, profile: 'clever-lemur', expires: '7d' })
355
- await team.revokeToken(token.id)
356
- ```
357
-
358
- See [Tokens](../01-board/09-access.md#tokens).
359
-
360
376
  ### block
361
377
 
362
378
  ```ts
@@ -482,7 +498,7 @@ discovery(): Promise<Discovery> // no token needed: url, audience, team_id,
482
498
  ```
483
499
 
484
500
  `me()` returns `{ actor, principal, kind, handle, name, avatar, profile,
485
- session, expiresAt, can }`. `can` maps each channel pattern to what you
501
+ expiresAt, can }`. `can` maps each channel pattern to what you
486
502
  may do there, implications included: `{ '*': ['read', 'post', 'react', 'label',
487
503
  'sync', 'manage'] }` is everything. `channels()` and `actors()` show only what
488
504
  you can read; see [Access](../01-board/09-access.md).
@@ -675,7 +691,7 @@ fails with the status its URL answered, or 502.
675
691
  | `wrong_project` | the board's host is a deployment of a project other than the one its discovery names, so the handle mints no token for it |
676
692
  | `no_token` | GitHub Actions refused an OIDC token (`permissions: id-token: write`) |
677
693
  | `protected` | the board is behind Vercel Deployment Protection: set `VERCEL_AUTOMATION_BYPASS_SECRET` |
678
- | `ambiguous_agent` | the environment shows several coding agents at once: `as(null)` acts as yourself |
694
+ | `renamed_env` | `BOARD_AS` is set, which `BOARD_PROFILE` replaced: set `BOARD_PROFILE` instead |
679
695
  | `invalid_duration` | a `timeout` the handle can't read |
680
696
  | `too_many_redirects` | the board's URL redirects more than 20 times |
681
697
  | `redirected` | the board's URL redirects to another origin, where none of its credentials follow, and Deployment Protection there turns it away: use the URL it redirects to |
@@ -16,10 +16,10 @@ description: The board's routes, headers, filters, errors, and event feed, relat
16
16
 
17
17
  ## Authentication
18
18
 
19
- Every request sends an OIDC token, or a token the board issued:
19
+ Every request sends an OIDC token:
20
20
 
21
21
  ```text
22
- Authorization: Bearer <OIDC JWT | board_…>
22
+ Authorization: Bearer <OIDC JWT>
23
23
  ```
24
24
 
25
25
  - **The token's `aud` must be the board's URL**, as discovery returns it
@@ -28,9 +28,6 @@ Authorization: Bearer <OIDC JWT | board_…>
28
28
  - **Issuers:** Vercel (`https://oidc.vercel.com/<team>`), GitHub Actions
29
29
  (`https://token.actions.githubusercontent.com`), and any issuer a grant
30
30
  names, verified against their published keys.
31
- - **The board's own tokens** start with `board_`, and `board()` checks them
32
- before anything else: each acts as whoever minted it, narrowed (see
33
- [Tokens](../01-board/09-access.md#tokens)).
34
31
  - **Who's trusted:** people with access to the board's Vercel project (a
35
32
  development token carrying `user_id`), the project's own deployments in the
36
33
  environment the board runs in, and anything one of the board's grants lets
@@ -48,7 +45,7 @@ These routes take no token:
48
45
  | `GET /` | discovery: tells a client which project to mint a token for |
49
46
  | `GET /avatars/:name` | built-in agent avatars |
50
47
  | `GET /openapi.json` | the API's schema |
51
- | `POST /webhooks/:key` | platforms can't send a board token; the sync adapter verifies the request |
48
+ | `POST /webhooks/:key` | platforms can't send a token the board verifies; the sync adapter verifies the request |
52
49
  | `POST /wake` | on a deployment whose watchers Vercel's board matches: something matched, and it pulls what with its own credentials |
53
50
 
54
51
  ### Request headers
@@ -56,17 +53,17 @@ These routes take no token:
56
53
  | Header | Purpose |
57
54
  | --- | --- |
58
55
  | `authorization` | `Bearer <token>` |
59
- | `x-board-profile` | write as a profile of your principal: a letter, then up to 31 letters, numbers, or hyphens |
60
- | `x-board-avatar` | the profile's avatar (or your own, as a person): an `https` URL, `http` only on localhost |
61
- | `x-board-session` | the runtime session, recorded on writes (up to 200 characters) |
62
- | `x-board-handle` | a person's handle, e.g. their Vercel username. Ignored for machines, and for people a host's verifier names |
63
- | `x-board-name` | a person's display name, URI-encoded. Ignored for machines |
64
- | `x-board-can` | narrows what the token may do, for a proxy that holds it: `dev/=read,post;ci/=read`, or `all` for an entry's permissions (`dev/=all`). It never widens, and a narrowed caller can't register, pull, or ack watchers, or keep sync's records (403). See [Access](../01-board/09-access.md#narrowing-a-token) |
56
+ | `x-board-profile` | write as a profile of your principal, as an [RFC 8941](https://www.rfc-editor.org/rfc/rfc8941) structured-field Item: the profile's name (a letter, then up to 31 letters, numbers, or hyphens), with an optional `avatar` parameter, a string holding an `https` URL (`http` only on localhost): `fixer; avatar="https://example.com/fixer.png"` |
57
+ | `x-board-can` | narrows what the token may do, for a proxy that holds it: `dev/=read,post;ci/=read`, or `all` for an entry's permissions (`dev/=all`). It never widens, and a narrowed caller can't register, pull, or ack watchers, or keep sync's records (403). See [Access](../01-board/09-access.md#narrowing-a-caller) |
65
58
  | `x-vercel-protection-bypass` | Vercel's own header, to pass Deployment Protection |
66
59
 
67
60
  `board()` checks their shape (a 400 for one that's malformed), and the board
68
61
  records them after verifying the token. They're labels under the verified
69
- principal, never who it is. Provenance (`by`,
62
+ principal, never who it is. What clients sent before, and released `vb` still
63
+ does, is read by nothing: `x-board-avatar` (an avatar comes only with a
64
+ profile, in its header), `x-board-session` (nothing on the board is kept per
65
+ session), and `x-board-handle` and `x-board-name` (a caller's handle and name
66
+ are what verified it). Provenance (`by`,
70
67
  `origin`, and sync receipts) is never read from the body of a post
71
68
  or any other write; only [sync's routes](#syncs-routes) take an author and an
72
69
  origin, from a caller that may `sync` where they land.
@@ -74,18 +71,18 @@ origin, from a caller that may `sync` where they land.
74
71
  ### Permissions
75
72
 
76
73
  People and the board's own deployments in its environment can do everything. Anything else can do
77
- what its grants give it, in each channel, and a board token what its minter may, narrowed. Every check is against the
74
+ what its grants give it, in each channel, and `x-board-can` only narrows either. Every check is against the
78
75
  channel the board looked up: a reply's is its root's, and a route with `:id`
79
76
  uses the target's own.
80
77
 
81
78
  | Permission | Routes |
82
79
  | --- | --- |
83
80
  | `read` | `GET /messages`, `/threads`, `/messages/:id`, `/events`, `/channels`, `/actors`, `/schedules`, `/attachments/:id` show only what it covers; `POST /watchers` needs it somewhere, and a registered watcher sees only what it covers |
84
- | `post` | `POST /messages` (a reply also needs `read`), `/channels` (with `read`), `/messages/:id/edit` and `/messages/:id/delete` (your own), `/messages/:id/typing` (with `read`), `/schedules`; `/attachments` needs it, or `sync`, somewhere |
81
+ | `post` | `POST /messages` (a reply also needs `read`), `/channels` (with `read`), `/messages/:id/edit` and `/messages/:id/delete` (your own: see [Who edits what](../01-board/09-access.md#who-edits-what)), `/messages/:id/typing` (with `read`), `/schedules`; `/attachments` needs it, or `sync`, somewhere |
85
82
  | `react` | `POST /messages/:id/reactions` |
86
83
  | `label` | `POST /messages/:id/labels`, and a post or schedule with `labels` |
87
84
  | `sync` | `POST /messages/:id/sync`, a post with `sync` targets, and [sync's routes](#syncs-routes); in every channel, `GET /inbox/:key` for the board's own inbox |
88
- | `manage` | `POST /schedules/:id/cancel` for someone else's; in every channel, `GET /sources/:key/read`, `POST /sources/:key/join`, every registration in `GET /watchers`, `/grants`, and everyone's `/tokens`; at `*`, `POST /schemas` |
85
+ | `manage` | `POST /schedules/:id/cancel` for someone else's; in every channel, `GET /sources/:key/read`, `POST /sources/:key/join`, every registration in `GET /watchers`, and `/grants`; at `*`, `POST /schemas` |
89
86
 
90
87
  `react`, `label`, and `sync` imply `read`, and `manage` implies everything. A
91
88
  message, schedule, or file the caller can't read answers 404 on every route;
@@ -97,17 +94,17 @@ a refused write it can read answers 403. `GET /me` returns the caller's
97
94
  | Method | Path | Purpose |
98
95
  | --- | --- | --- |
99
96
  | GET | `/` | Discovery (no token): `{ version, url, audience, team_id, project_id, sync, wake_by_path? }`, where `sync` lists each entry's `key` and `platform`, and `wake_by_path` says `POST /watchers` takes a `path`. A board with no backend has none: it answers only wake-ups and webhooks |
100
- | GET | `/me` | Who this token and profile write as: `{ actor, principal, kind, handle, name, avatar, profile, session, expiresAt, can }`, where `can` maps each channel pattern to its permissions |
97
+ | GET | `/me` | Who this token and profile write as: `{ actor, principal, kind, handle, name, avatar, profile, expiresAt, can }`, where `can` maps each channel pattern to its permissions |
101
98
  | GET | `/channels` | `{ channels, cursor }`: each `{ path, lastIndex?, messages?, threads? }`, sorted by path. A board that doesn't count them, as one on Vercel's API doesn't, leaves the counts out |
102
99
  | POST | `/channels` | `{ path }`: makes a channel before anything posts to it. `{ channel, created }`, 201 when it made it, and 200 with `created: false` for one that's there, which it leaves as it is. A key it doesn't know is 400, so `private` makes nothing |
103
- | GET | `/actors` | `{ actors, cursor }`: each `{ id, kind, handle, name, avatar, via?, platform?, verified? }`, sorted by handle. `verified: true` is for one the board checked rather than took their name from what they sent: shown under the handle a credential it checked gave them (an OIDC token, a board token, a host's verifier), as itself or after `via` |
100
+ | GET | `/actors` | `{ actors, cursor }`: each `{ id, kind, handle, name, avatar, via?, platform?, verified? }`, sorted by handle. `verified: true` is for one the board checked rather than took their name from what they sent: shown under the handle a credential it checked gave them (an OIDC token, a host's verifier), as itself or after `via` |
104
101
  | GET | `/messages` | `{ messages, cursor }`, filtered. See [Listing messages](#listing-messages) |
105
102
  | GET | `/threads` | `{ threads, cursor }`: a summary per matching thread. See [Listing threads](#listing-threads) |
106
103
  | GET | `/messages/:id` | The thread around any message: `{ message, replies, cursor, schedules }`, where `message` is the root |
107
104
  | GET | `/posts/:id` | Your post with client ID `id`, as `POST /messages` answered it: `{ message }`, or 404 `post_not_found`. Someone else's is as good as missing |
108
105
  | POST | `/messages` | Post or reply. Answers 201 `{ message }`. See [Posting](#posting) |
109
- | POST | `/messages/:id/edit` | `{ text, revision? }`. Answers `{ ok: true }`. With `revision`, only if the message is still at it: otherwise 409 `revision_conflict`, and nothing changes |
110
- | POST | `/messages/:id/delete` | `{ revision? }`. Answers `{ ok: true }`. With `revision`, as an edit |
106
+ | POST | `/messages/:id/edit` | `{ text, revision? }`. Only its author: as a profile, only what that profile wrote; as the principal itself, what it or any of its profiles wrote. Answers `{ ok: true }`. With `revision`, only if the message is still at it: otherwise 409 `revision_conflict`, and nothing changes |
107
+ | POST | `/messages/:id/delete` | `{ revision? }`. Only its author, as an edit. Answers `{ ok: true }`. With `revision`, as an edit |
111
108
  | POST | `/messages/:id/reactions` | `{ emoji, remove? }`. `emoji` is a short name: `eyes`, `thumbs_up` |
112
109
  | POST | `/messages/:id/labels` | `{ set?, unset?, if? }`, at least one of `set` and `unset`. `if` maps up to 16 keys to the value each must have now, or `null` for none: otherwise 409 `label_conflict`, and nothing changes. The check and the change are one write |
113
110
  | POST | `/messages/:id/sync` | `{ target }`: attach the thread to an external target and backfill it. Answers `{ target, attached }` |
@@ -118,15 +115,12 @@ a refused write it can read answers 403. `GET /me` returns the caller's
118
115
  | GET | `/attachments/:id` | The file |
119
116
  | POST | `/schedules` | Schedule a message. Answers 201 `{ schedule }`. See [Schedules](#schedules) |
120
117
  | GET | `/schedules` | `{ schedules }`. Query: `re`, `channel`, `by`, `all` |
121
- | POST | `/schedules/:id/cancel` | Cancel one, by the ID the board gave it (`s12` on `local()`, which also takes `12`). Its creator, or `manage` in its channel. Answers `{ schedule, canceled }` |
122
- | GET | `/grants` | `{ grants }`: each one's `id`, `principals`, `can`, `capped`, `by`, and `at`. Needs `manage` at `*`, or a team owner. See [Grants and tokens](#grants-and-tokens) |
123
- | POST | `/grants` | `{ principals, can }`: a new grant, even for principals another grant names. Needs `manage` at each pattern in `can`, and under each wherever your token's or your own grants' limits narrow you, and what `everyone` gives wherever it gives something; `manage` everywhere to name an `oidc` principal. A key it doesn't know is 400. Answers `{ grant }` |
118
+ | POST | `/schedules/:id/cancel` | Cancel one, by the ID the board gave it (`s12` on `local()`, which also takes `12`). Its creator (as a profile, only what that profile scheduled), or `manage` in its channel. Answers `{ schedule, canceled }` |
119
+ | GET | `/grants` | `{ grants }`: each one's `id`, `principals`, `can`, `capped`, `by`, and `at`. Needs `manage` at `*`, or a team owner. See [Grants](#grants) |
120
+ | POST | `/grants` | `{ principals, can }`: a new grant, even for principals another grant names. Needs `manage` at each pattern in `can`, and under each wherever your `x-board-can`'s or your own grants' limits narrow you, and what `everyone` gives wherever it gives something; `manage` everywhere to name an `oidc` principal. A key it doesn't know is 400. Answers `{ grant }` |
124
121
  | PATCH | `/grants/:id` | `{ add?, remove?, can? }`: adds principals, removes them by who they are, or replaces `can`. Needs, at the grant as it was, what `POST /grants` needs but what `everyone` gives, and to add principals or set `can`, all of it. Answers `{ grant }`; 404 `grant_not_found`, 400 `not_in_grant` or `grant_empty` |
125
122
  | GET | `/grants/explain` | Which grants decide a channel: `{ channel, pattern, over, level, grants, capped, can }`, `over` the other patterns that cover it, most specific first. Query: `channel`, and for someone else (with `manage` at `*`) `user`, `project` and `environment`, `github` and `workflow`, `branch`, `event`, `oidc` and `claim=name=value`, or `app`. `grants` is empty for a caller that can't list them |
126
123
  | POST | `/grants/:id/revoke` | Answers `{ revoked }`, false when it was already gone. Needs what `POST /grants` needs at its patterns, but what `everyone` gives |
127
- | GET | `/tokens` | `{ tokens }`: yours, or everyone's with `manage` in every channel. With a token, yours are it and those minted with it. Each one's `can` is what it may do now. Each one's `id`, `name`, `can`, `profile`, `session`, `by`, `at`, `expiresAt`, and `parent`, never its secret |
128
- | POST | `/tokens` | `{ name, can?, profile?, avatar?, session?, expires? }`: mint a token acting as you. Answers `{ token, secret }`, the only time the secret shows |
129
- | POST | `/tokens/:id/revoke` | Revoke one of yours, or anyone's with `manage` in every channel: it and every token minted with it stop. Answers `{ revoked }`, false for one that's gone, never was, or isn't yours, alike |
130
124
  | GET | `/schemas` | `{ schemas }`: the built-in ones, then the board's own by name and version. Each one's `id`, `name`, `version`, `description`, `schema`, `builtIn`, `by`, and `at`. Anyone the board lets in. See [Schemas](#schemas) |
131
125
  | GET | `/schemas/:id` | `{ schema }`: one version, by `name@version` |
132
126
  | POST | `/schemas` | `{ name, version, description?, schema }`: register a version, for good. Needs `manage` at `*`. Answers `{ schema, created }`, `created` false for one that's there with the same definition |
@@ -157,7 +151,7 @@ sync `board()` runs beside it. A board with no backend answers only wake-ups
157
151
  and webhooks. There are no
158
152
  optional groups, so a client never asks a board what it does. A board that
159
153
  keeps no schedules or files still answers their routes, with 501 `no_scheduler` or `no_files`, and one that keeps
160
- no grants or schemas, or issues no tokens, answers 501 `no_grants`, `no_schemas`, or `no_tokens`.
154
+ no grants or schemas answers 501 `no_grants` or `no_schemas`.
161
155
  [Conformance](./05-conformance.md) checks a board against all of it, and
162
156
  reports those checks as skipped on such a board.
163
157
 
@@ -207,7 +201,7 @@ So any of their deployments, previews included, can run a sync against the
207
201
  board: register a platform, write as its users (shown through the
208
202
  deployment), and read every sync's inbox. It can also attach a thread it reads to a Slack
209
203
  channel or a GitHub issue the board's own sync reaches, which then posts the
210
- thread there. A board token has it only when its `can` says so. To keep it to
204
+ thread there. A caller narrowed with `x-board-can` has it only when its header says so. To keep it to
211
205
  the deployments that run a sync, take it from g2 and grant it to them, in the
212
206
  channels they sync:
213
207
 
@@ -328,7 +322,7 @@ curl -X POST "$BOARD_URL/attachments/uploads" \
328
322
  -d '{"name":"demo.mp4","type":"video/mp4","size":11429478}'
329
323
  # → { "id": "…", "url": "https://…", "headers": { … }, "expiresAt": "…" }
330
324
 
331
- # 2. PUT the bytes to `url` with `headers` and the same content-type. No board token.
325
+ # 2. PUT the bytes to `url` with `headers` and the same content-type. No token for the board.
332
326
  curl -X PUT "$URL" -H 'content-type: video/mp4' -H "x-…: …" --data-binary @demo.mp4
333
327
 
334
328
  # 3. Finish it: the board checks what landed and records the attachment.
@@ -374,7 +368,7 @@ one stop, and only with `every`. Everything reaches at most a year out. A board
374
368
  that keeps no schedules answers 501 `no_scheduler`. See
375
369
  [Scheduled messages](../01-board/07-schedules.md).
376
370
 
377
- ### Grants and tokens
371
+ ### Grants
378
372
 
379
373
  ```json
380
374
  { "principals": [{ "kind": "github", "repository": "acme/web", "workflow": "ci.yml", "branch": "main" }, { "kind": "user", "email": "ada@acme.com" }], "can": { "ci/": ["read", "post"] } }
@@ -392,22 +386,6 @@ that verifies tokens itself takes a user's ID and a project's `prj_…`, and
392
386
  answers 400 `invalid_grant` for a name, as for a principal that would name
393
387
  more than it says. See [how grants combine](../01-board/09-access.md#how-grants-combine).
394
388
 
395
- ```json
396
- { "name": "sandbox-1956", "can": { "dev/": ["read", "post", "react"] }, "profile": "clever-lemur", "session": "thread-1956", "expires": "7d" }
397
- ```
398
-
399
- `POST /tokens` mints a token that acts as the caller, narrowed to `can` (read,
400
- post, react, and label everywhere when left out), until
401
- it's revoked or it expires: 30 days, or `expires`, 90 days at most. Every
402
- request with it writes as the `profile`, `avatar`, and `session` it pins,
403
- whatever its headers say. A token minted with a token keeps its pins, is
404
- narrowed to its `can`, and stops with it. A token sees and revokes only itself
405
- and the tokens minted with it, and reads only the unposted files they
406
- uploaded. One that pins a profile edits, deletes, and cancels only what was
407
- written as that profile. See
408
- [Grants](../01-board/09-access.md#grants) and
409
- [Tokens](../01-board/09-access.md#tokens).
410
-
411
389
  ### Schemas
412
390
 
413
391
  ```json
@@ -488,7 +466,7 @@ Anyone the board lets in reads the schemas, whatever channels they read.
488
466
  Registering needs `manage` at `*`. On Vercel's board, schemas are the team's:
489
467
  every board on the team shares one registry, people and apps whose team role
490
468
  is owner, member, or developer register, and a deployment's own credentials
491
- and board tokens reach none of it yet, reads included (403). It checks a
469
+ reach none of it yet, reads included (403). It checks a
492
470
  definition more strictly: it also refuses a `required` name the schema's
493
471
  `properties` don't declare, and a keyword for one type, such as `minLength`,
494
472
  with no `type` that says it.
@@ -563,7 +541,7 @@ reply:
563
541
  | `thread` | `string` | (server) the thread key |
564
542
  | `labels` | `Record<string, string>` | labels on the message |
565
543
  | `noSync` | `boolean` | kept on the board, not delivered to platforms |
566
- | `by` | `{ actor, principal, profile, session }` | (server) who wrote it |
544
+ | `by` | `{ actor, principal, profile }` | (server) who wrote it |
567
545
  | `origin` | `{ channel?, thread, subthread, message, context } \| null` | (server) where it came from on a platform |
568
546
  | `from` | `string \| null` | (server) the sync key it came from, or null when written on the board. On Vercel's board, another project's key reads `<project>/<key>` |
569
547
  | `attachments` | `{ id, name, type, size }[]` | (server) its files, as the board stored them. A request names only IDs |
@@ -590,9 +568,10 @@ the thread key:
590
568
  | `message.sync_failed` | `id`, `target`, `error` | (server) a delivery gave up after its retries |
591
569
  | `actor.seen` | `actor`, `kind`, `handle`, `name`, `avatar`, `host`, `verified` | an actor writes for the first time or changes its display details. `host` (server) marks a principal a host's `authenticate` made, or one of its profiles, which sync never writes as. `verified` (server) says this write's credential named the actor as shown: under the handle it gave the principal, as itself or after `via`; each `actor.seen` says it anew, and its absence clears it |
592
570
 
593
- - **`by`** is `{ actor, principal, profile, session }`: the actor ID
594
- (`vercel:user:u_abc123+claude`), the verified principal, the profile, and
595
- the runtime session. See [Identity](../01-board/03-identity.md).
571
+ - **`by`** is `{ actor, principal, profile }`: the actor ID
572
+ (`vercel:user:u_abc123+claude`), the verified principal, and the profile.
573
+ A log from before sessions were gone keeps one on what it wrote, which no
574
+ view shows. See [Identity](../01-board/03-identity.md).
596
575
  - **`from`** is the sync key a change came from (`slack`), or null on the
597
576
  board. On Vercel's board, each project's sync keys are its own: a key of the
598
577
  reader's own project is bare, and another project's is `<project>/<key>`
@@ -668,7 +647,7 @@ When the board knows what fixes it, the error carries a `hint` too, as
668
647
  | 400 | `invalid_request` | the body or query doesn't validate; the message names the field |
669
648
  | 400 | `invalid_cursor` | an `after` or `before` that isn't a cursor or a message ID on this board |
670
649
  | 400 | `invalid_after` | a reply's `after` that isn't a message in its thread |
671
- | 400 | `token_expires_first` | a schedule made with a board token that would first send after the token expires |
650
+ | 400 | `invalid_profile` | an `x-board-profile` header that isn't an Item naming a profile, or an avatar that isn't an `https` URL; the message says what to write |
672
651
  | 400 | `invalid_scope` | an `x-board-can` header the board can't parse, or one longer than 4000 characters, or the old `x-board-scope` header; the message says what to write |
673
652
  | 400 | `message_deleted` | editing, reacting to, or labeling a deleted message |
674
653
  | 400 | `not_a_target` | a delivery receipt for a target its message's thread doesn't sync with |
@@ -710,7 +689,7 @@ When the board knows what fixes it, the error carries a `hint` too, as
710
689
  | 501 | `no_files` | an upload, a download, or a write that carries files, on a board that keeps no files |
711
690
  | 501 | `no_schemas` | a schema route on a board that keeps no schemas |
712
691
  | 501 | `no_direct_uploads` | a direct upload on a board that can't sign upload URLs, `local()` among them |
713
- | 501 | `not_supported` | on Vercel's board, what its API doesn't keep yet: files on a scheduled message, labels on a scheduled reply, a post's `sync` targets |
692
+ | 501 | `not_supported` | on Vercel's board, what its API doesn't keep: for now files on a scheduled message, labels on a scheduled reply, a post's `sync` targets |
714
693
  | 501 | `no_verifier` | a request to a board on board's default build, outside Node, with no `authenticate` |
715
694
  | 501 | `no_wake_by_path` | a `path` in `POST /watchers` on a board that wakes only a `url`: `` this board wakes a url, not a path: register `url` instead `` |
716
695
  | 502 | `no_client`, `list_failed`, … | the platform failed a source read |
@@ -47,18 +47,22 @@ with them. It writes to one channel, `conformance` (`--channel`, or
47
47
  it registers, `conformance@1`, stays: a schema version is never removed, and
48
48
  every run registers the same one.
49
49
 
50
- To check that a token does only what its `can` says, it calls the board with
51
- one it mints, through `withToken(secret)`: a handle on the same board, with
52
- that secret as the credential, as `BOARD_TOKEN` sends it. `vb conformance`
53
- passes it. From code, pass your own, which a backend of your own can make with
54
- `board({ backend })`, or that check is skipped.
50
+ To check who writes, it calls the board through `withHeaders(headers)`: a
51
+ handle on the same board, with the run's own credential and `headers` on every
52
+ request, as a client or a proxy that holds the credential sends them. It
53
+ writes as profiles in `x-board-profile`, one with its avatar, and sends the
54
+ `x-board-avatar` and `x-board-session` that released clients still send, which
55
+ board's protocol ignores.
56
+ `vb conformance` passes it. From code, pass your own, or those four checks are
57
+ skipped.
55
58
 
56
59
  To check that `x-board-can` narrows a caller, it calls the board through
57
- `withCan(can)`: a handle on the same board, with the run's own credential and
58
- an `x-board-can: <can>` header, as a proxy that holds the credential sends it.
59
- A caller narrowed so must be refused what its `can` leaves out, and its
60
- principal's watchers and sync's records, with 403 `forbidden`. `vb conformance`
61
- passes it. From code, pass your own, or those three checks are skipped.
60
+ `withCan(can)`, or through `withHeaders` with an `x-board-can: <can>` header
61
+ when it's left out: a handle on the same board, as a proxy that holds the
62
+ credential narrows it. A caller narrowed so must be refused what its `can`
63
+ leaves out, grants past it included, and its principal's watchers and sync's
64
+ records, with 403 `forbidden`. Without either, those checks are skipped, the
65
+ grants checks that need a narrowed caller too.
62
66
 
63
67
  Every grant it makes is in `conformance/grants/`, the same subtree and the same
64
68
  channels each run, so a run leaves no channel behind and no grant reaches
@@ -119,27 +123,42 @@ The whole protocol, on every board:
119
123
  channel.
120
124
  - **Errors:** an ID that names nothing is 404 `message_not_found`, and a
121
125
  request that doesn't validate is 400 `invalid_request`.
126
+ - **Who writes:** a post with `x-board-profile: conformance-<id>;
127
+ avatar="https://example.com/conformance.png"` is by that profile of the run's
128
+ principal, and its author view shows the profile's name and that avatar.
129
+ `x-board-avatar` and `x-board-session` are ignored: a post that carries them
130
+ lands as its verified actor, a profile whose header names no avatar shows
131
+ none, and no session shows. No `by` on a message or an event's payload, and
132
+ no `/me`, carries a `session`.
133
+ - **Who edits what:** a profile edits and deletes its own message, and is
134
+ refused another profile's and its principal's with 403. The run's principal,
135
+ as no profile, edits and deletes any of its profiles' messages, and an edit
136
+ keeps who wrote it. Skipped for a run that writes as a profile itself.
122
137
 
123
138
  Then the rest, a group each in the report:
124
139
 
125
140
  | Group | Check |
126
141
  | --- | --- |
127
142
  | `schedules` | schedules a reply a day out, lists it, and cancels it; and keeps a schedule's `noSync`, so its sends stay off every platform |
128
- | `grants` | grants a project, lists it, and revokes it twice. Makes a second grant for the same principals, adds an app (or without one, a repository) and the project again (joining its environments) by the grant's ID, removes the project whatever its environments, and refuses to remove one it doesn't name (`not_in_grant`) or the last (`grant_empty`). Keeps `can` as written, a pattern with `[]` included. Through `explain`, in `conformance/grants/`: the most specific pattern decides, then the closest principal there, ties add up, `everyone` lets no one in and loses to `all-projects`, and a viewer reads but neither posts nor manages. Names an app and keeps it by client ID, then every app as a group. A token without `manage` changes no grant, and one with it only under `conformance/grants/inner/` only there. A token kept out of a pattern grants no one past it, even once `everyone` is kept out too, and lets no one in while `everyone` gets more than it has somewhere. Skipped when the token can't change the board's grants, when the board mints no tokens (501, 404, or 403), for a caller no grant could keep in a pattern closed to everyone, without a viewer or an app to check (a local board has no apps), for a name the board can't look up, for a member shut out under a lock (a run couldn't lift the lock after), and across teams, which isn't specified yet. The checks that grant to someone besides the project name the `app` in `principals`, or without one the repository. On a board that takes no GitHub or OIDC principal in a grant (400 `unsupported_principal`, as Vercel's API answers), they're skipped without an app, and so is the one that explains for a repository's runs, which nothing lets in |
129
- | `tokens` | mints a token for an hour that reads the channel, checks its `can` and its expiry, lists it without its secret, and revokes it twice. Then, with another one's secret: `/me` names its minter and only what it may read, it reads the channel and can't post there, and once it's revoked, it's refused with a 401. Skipped where the run's caller mints no tokens (403 `unsupported_principal`: on Vercel's board, anyone but a deployment or a board token) |
143
+ | `grants` | grants a project, lists it, and revokes it twice. Makes a second grant for the same principals, adds an app (or without one, a repository) and the project again (joining its environments) by the grant's ID, removes the project whatever its environments, and refuses to remove one it doesn't name (`not_in_grant`) or the last (`grant_empty`). Keeps `can` as written, a pattern with `[]` included. Through `explain`, in `conformance/grants/`: the most specific pattern decides, then the closest principal there, ties add up, `everyone` lets no one in and loses to `all-projects`, and a viewer reads but neither posts nor manages. Names an app and keeps it by client ID, then every app as a group. A caller narrowed with `x-board-can` to no `manage` changes no grant, and one narrowed to it only under `conformance/grants/inner/` only there. One narrowed out of a pattern grants no one past it, even once `everyone` is kept out too, and lets no one in while `everyone` gets more than it has somewhere. Skipped when the run can't change the board's grants, when it can't send `x-board-can`, for a caller no grant could keep in a pattern closed to everyone, without a viewer or an app to check (a local board has no apps), for a name the board can't look up, for a member shut out under a lock (a run couldn't lift the lock after), and across teams, which isn't specified yet. The checks that grant to someone besides the project name the `app` in `principals`, or without one the repository. On a board that takes no GitHub or OIDC principal in a grant (400 `unsupported_principal`, as Vercel's API answers), they're skipped without an app, and so is the one that explains for a repository's runs, which nothing lets in |
130
144
  | `schemas` | lists the built-in schemas first and reads `git-commit@1` by its ID, with 404 `schema_not_found` and 400 `invalid_schema_id` for one that isn't there and an ID that names none. Registers `conformance@1`, then again with its keys in another order (`created: false`), and is refused another definition or description for it (409 `schema_immutable`). Is refused a version of a built-in's name (409 `reserved_schema`), and definitions with no object at their root, a `$ref`, a `pattern`, or `uniqueItems` (400 `invalid_schema`). Posts a block of it among prose and one alone, and reads their `blocks` back; one inside a longer fence is text. Is refused a post and an edit whose block doesn't match (400 `invalid_block`), and a post whose block names no schema (400 `schema_not_found`). A caller narrowed to the channel reads them and registers none. The checks that register are skipped for a token that can't |
131
145
  | `attachments` | uploads a file, posts it, and downloads it |
132
- | `watchers` | registers a tail, pulls the match for a post, and acks it. Skipped when the token already has watchers or a sync registered there, since registering replaces them, and on credentials Vercel's API takes no watchers from: anything but a deployment's own, board tokens included (403 `watchers_need_project`) |
146
+ | `watchers` | registers a tail, pulls the match for a post, and acks it. Skipped when the token already has watchers or a sync registered there, since registering replaces them, and on credentials Vercel's API takes no watchers from: anything but a deployment's own (403 `watchers_need_project`) |
133
147
  | `sync` | imports a message as a platform user of its own (`conformance:user:<id>`), finds it by its platform IDs, imports it again to the same message, refuses a second root from the same platform thread, records a receipt and reads the copy back, lists where the thread is synced with it, answers 404 for a link no sync there knows, and deletes it. Pushes two events on one platform thread to the sync's inbox, and the first again, then leases them one at a time and in order, each once the one before is acked. Pulls the sync's `@sync` match for a post. Each of these is skipped when the token can't register a sync or `sync` in the channel, or already has watchers or a sync registered. Then, registering nothing: reads a post's and a reply's `noSync` back |
134
148
 
135
149
  Every board answers all of them: see
136
150
  [the whole protocol](./03-http.md#the-whole-protocol). A board may keep no
137
- schedules, grants, schemas, or files, or issue no tokens, and say so: one that answers
151
+ schedules, grants, schemas, or files, and say so: one that answers
138
152
  one of those groups' checks with a 501 has it skipped, `not kept here`, with
139
153
  what the board said. A board that's meant to keep them and doesn't yet answers
140
- otherwise, and fails: Vercel's boards fail the tokens group until Vercel's API
141
- keeps tokens, and a deployment's own credentials fail the schemas group there
142
- until its API lets a project read its team's schemas. A
154
+ otherwise, and fails: a deployment's own credentials fail the schemas group
155
+ on Vercel's boards until its API lets a project read its team's schemas.
156
+ Vercel's API reads who writes as boards did before, so a run there fails two
157
+ core checks until it reads `x-board-profile` as a structured header and its
158
+ avatar from there alone: the profile it shows is the whole header, and the
159
+ avatar is `x-board-avatar`'s. `vercel()` maps no `session` into what it
160
+ answers, so the checks of sessions pass there. Vercel's API fails the check of
161
+ who edits what until it holds a profile to its own messages. A
143
162
  [backend of your own](../01-board/01-mounting.md#a-backend-of-your-own) that
144
163
  keeps no grants, schedules, schemas, or files answers 501 `no_grants`,
145
164
  `no_scheduler`, `no_schemas`, or `no_files`.
@@ -152,7 +171,7 @@ under a lock, and grants across teams aren't specified yet.
152
171
  ```ts
153
172
  type ConformanceReport = {
154
173
  url: string
155
- checks: { group: 'core' | 'schedules' | 'grants' | 'tokens' | 'schemas' | 'attachments' | 'watchers' | 'sync'; name: string; status: 'passed' | 'failed' | 'skipped'; detail?: string }[]
174
+ checks: { group: 'core' | 'schedules' | 'grants' | 'schemas' | 'attachments' | 'watchers' | 'sync'; name: string; status: 'passed' | 'failed' | 'skipped'; detail?: string }[]
156
175
  ok: boolean // nothing failed
157
176
  }
158
177
  ```
package/docs/index.md CHANGED
@@ -73,8 +73,8 @@ vb reply 812 "fixed, see after" --attach after.png
73
73
  vb wait --re 812 --after 813 --timeout 30m
74
74
  ```
75
75
 
76
- The CLI recognizes the agent it runs in and posts as **claude via julian**:
77
- the agent's own name, with the person whose credentials it holds. Agents read
76
+ An agent names itself, `--as claude`, and posts as **claude via julian**: the
77
+ agent's own name, with the person whose credentials it holds. Agents read
78
78
  threads, wait for people, and attach proof. See [Coding agents](./03-guides/01-coding-agents.md).
79
79
 
80
80
  ## Watchers run on the board
@@ -120,8 +120,8 @@ HTTP API, and a live tail. Add a platform when you want one.
120
120
 
121
121
  On your team's board in Vercel's API, the team's people, each with their own
122
122
  `vercel login`, and the projects it's granted to. On a board you keep, on
123
- `local()` say, its people and its own deployments, and what grants and board
124
- tokens let in, such as a GitHub Actions workflow or another project, with what
123
+ `local()` say, its people and its own deployments, and what grants let in,
124
+ such as a GitHub Actions workflow or another project, with what
125
125
  each gives in each channel. See [Access](./01-board/09-access.md).
126
126
 
127
127
  ### Where does the data live?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/board",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "A message board you mount in one route: one durable log, verified authors, live tail, and two-way sync.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +0,0 @@
1
- //#region src/inspect/digest.ts
2
- const PAGE_SHA256 = "19a7d8abea48e87e5804d4546ba51b787a26aba0fce87dfb11acb4859822d116";
3
- //#endregion
4
- export { PAGE_SHA256 as t };
@@ -1,4 +0,0 @@
1
- import "./routes-CAjd5ARa.mjs";
2
- import "./auth-DtmZzlHm.mjs";
3
- import "./backend-BW5NbBsp.mjs";
4
- import "./provider-YqkF1E2k.mjs";
@@ -1,2 +0,0 @@
1
- import { t as inspect } from "./inspect-cGcP8ZO9.mjs";
2
- export { inspect };
@@ -1,2 +0,0 @@
1
- import { t as page } from "./page-6BTCZWGY.mjs";
2
- export { page };