@prplkane/roundtable 0.6.6 → 0.7.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.
package/SECURITY.md CHANGED
@@ -1,318 +1,324 @@
1
- # Security
2
-
3
- Roundtable runs a loopback server on your machine. Live debates use the vendor CLIs,
4
- AgentLink ACP profiles or API endpoints you explicitly configure; demo mode uses
5
- scripted replies.
6
-
7
- ## Data and execution
8
-
9
- - **ACP profiles are trusted local executables, not sandboxes.** Roundtable launches
10
- the installed AgentLink with a validated saved profile name. Executable overrides
11
- come only from the server's environment, never review JSON. Each turn creates a
12
- fresh ACP v1 session in a separate seat directory, advertises no client tools and
13
- supplies no MCP servers. Permission requests are denied; filesystem/terminal
14
- callbacks and reported tool activity stop the seat. The client binds the session
15
- ID while receiving `session/new`, before processing any following frame, and
16
- rejects foreign-session updates. Agents can still have their own built-in tools,
17
- permissions, customizations and billing configuration. Use a
18
- profile with those tools disabled and explicitly accept limited isolation. This
19
- does not acknowledge a vendor's terms or guarantee its sandbox. Inherited API keys
20
- are filtered as for direct CLIs, but AgentLink profile settings can add them back.
21
- ACP output, including stderr, is bounded to 8 MiB per call. Roundtable sends
22
- `session/cancel` on interruption and closes the connection, with process-tree
23
- termination after a bounded grace period. Already-orphaned Windows descendants
24
- are not guaranteed to be contained. Tokens are unknown unless valid optional
25
- end-turn counters are reported; existing seat/vendor budget rules still apply.
26
-
27
- - **No telemetry or analytics service.** Usage statistics describe your own agents' calls in
28
- Roundtable. They are calculated and stored on your machine; Roundtable sends no usage
29
- statistics, review text or diagnostic logs to its developers. Live reviews still send the
30
- required prompts to your selected providers, whose data handling is separate.
31
- - **CLI login files stay with the CLI.** Roundtable does not read or copy those files. It runs each vendor's
32
- own CLI (`claude`, `codex`, `agy`) as a child process, and that CLI does its own login the way
33
- it does in your terminal. A test asserts that no source file names a credential file or copies
34
- one. A second account ("login profile") is an empty directory under the OS user-data folder
35
- (`%USERPROFILE%\.roundtable\homes\<profile>\<vendor>`, `~/Library/Application Support/roundtable/...`,
36
- `~/.local/share/roundtable/...`) that you log into yourself once; Roundtable only points the
37
- CLI at it through the variable the CLI documents.
38
- - **Billing: the subscription, unless you say otherwise.** The child's environment is yours minus
39
- Claude Code session variables, parent Codex app routing/session variables and API-key variables (`ANTHROPIC_API_KEY`,
40
- `OPENAI_API_KEY`, `GEMINI_API_KEY` and the like), so a key left in your shell cannot move a
41
- debate onto pay-per-token. Set `ROUNDTABLE_API_BILLING=1` to pass them through on purpose.
42
- - **Budget caps check admission, including retries.** Each provider attempt is checked against
43
- reported usage, calls already in flight, and the projected next call. Seat calls leave room
44
- for a projected verdict; a fallback chairman is checked against its own vendor's cap.
45
- Missing or unusable token counts block further calls to that vendor under a vendor token cap,
46
- including after a restart; already dispatched calls may finish. Discussion seats also have an
47
- automatic cap of 400,000 tokens per review (60,000 for optional personas). Missing or partial
48
- usage blocks further calls for that seat. The explanation identifies a recorded timeout or
49
- interruption without treating missing usage as zero or measured cap exhaustion. The chairman
50
- follows the vendor budget.
51
- Unknown usage and partial totals are labelled, and reported dollar costs are kept separately.
52
- These checks use estimates and available usage reports, not a provider-enforced billing
53
- ceiling: a call already running can consume more than projected.
54
- A flushed dispatch record is saved before each call. After an interruption, a dispatch
55
- without its matching result is unknown usage and cannot silently reset a capped review.
56
- - **An API endpoint seat is the one case where Roundtable itself sends a request.** You name a
57
- base URL, a model and the *name* of the environment variable holding the key (never the key;
58
- a pasted key is refused on shape). At call time the key is read from the environment you
59
- started Roundtable from and sent as a bearer to that URL only, with redirects refused. It is
60
- not deliberately added to transcripts, logs or the board. Endpoint response and error text
61
- can be displayed and recorded. Known credential echoes are redacted from decoded replies
62
- and error excerpts before recording; deliberately encoded copies may evade this filter.
63
- Existing records are not rewritten. Use an endpoint you trust with the credential.
64
- Plain `http` is accepted for local names and private IP literals; a hosted
65
- API must be `https`. A DNS name starting with a private-address prefix, such as
66
- `10.api.example.com`, is still a hosted name and requires HTTPS. Local names rely on your
67
- network's name resolution. Endpoint responses are limited to **1 MiB of decoded body bytes**,
68
- including compressed and error responses; an oversized response is cancelled and fails the
69
- call without a network retry. Preflight sends no probe to the endpoint, even on an authenticated
70
- refresh; the first real call checks the connection. Such a seat bills the endpoint's account,
71
- and its card says `API · pay-per-token`.
72
- - **Cancellation:** Stop cancels this review's owned CLI processes and local endpoint requests,
73
- including an active chairman. It prevents new rounds, retries, fallback calls and automatic
74
- synthesis. Saved replies and reported usage remain. A provider may already have processed a
75
- dispatched request; cancelling locally does not guarantee a billing reversal upstream.
76
- Server shutdown interrupts active reviews without recording human Stop or starting synthesis.
77
- Event streams close; settled calls retain reported spending before exit. Unsettled dispatches
78
- remain unknown on restart. Saved discussions offer Resume, or Write if discussion had ended.
79
- Finish with verdict is a separate action: it cancels unfinished discussion calls, then permits
80
- the chairman under the existing budget and time limits. It requires a completed, usable round.
81
- - **Network:** the browser loads the board, styles and fonts locally; it does not fetch a remote
82
- font stylesheet. Live provider traffic is the CLIs' own traffic and the endpoint traffic
83
- above. Roundtable leaves VPN, proxy and system DNS configuration unchanged; provider
84
- availability and regional connectivity remain external requirements. The server listens on
85
- `127.0.0.1`. A debate sends its notes and relevant replies to the
86
- selected providers. Stateless mode limits the context Roundtable resends; it does not control
87
- provider logging or retention.
88
- - **On disk:** history defaults to the OS user-data folder, outside the checkout, with separate
89
- `live` and `demo` directories. `ROUNDTABLE_DEBATES_DIR` overrides that location. Each holds one folder per debate with the transcript (field notes, replies,
90
- your notes, usage figures), `field-notes.md` and `verdict.md`; plus the calibration and pool
91
- figures. Live diagnostic working files use the same data folder. Legacy checkout data
92
- folders remain gitignored. A CLI's full raw output is kept in memory during
93
- a call; selected replies, errors and usage are recorded. Copy the entire data folder while
94
- the server is stopped to back it up. Exported records and CLI login profiles live separately.
95
- The browser also retains field notes, seat choices, limits, chairman settings and budgets in
96
- local storage for that address. Clearing browser data removes those preferences, not server
97
- records. They can contain private context; use a browser profile you trust.
98
- - **History cleanup:** Delete and Clear include finished and interrupted sessions.
99
- Authenticated requests recheck that none are running or waiting for input. A data-folder
100
- lock prevents two servers from sharing the same writable history.
101
- Cleanup refuses linked directories and nested links. It saves `_usage.json` before removing
102
- transcripts, recovery backups and seat working files. This file keeps usage counters and model
103
- identifiers under hashed session IDs, without titles, prompts, replies, notes or account paths.
104
- Exports, quota calibration and provider records are not deleted. This is ordinary file deletion,
105
- not secure erasure; backups, browser preferences and provider histories are separate.
106
- - **Transcript recovery:** reads never change the transcript. Before appending after an
107
- incomplete final line, Roundtable saves the exact original as `transcript.recovery-<id>.jsonl`
108
- beside it and atomically replaces the transcript with its complete prefix and a recovery
109
- notice. Backups contain the same private debate data and belong in your backup/deletion
110
- policy. Corrupt completed lines block resume and export until restored from a backup.
111
- A storage failure cancels and settles active turns before exposing Resume or a missing
112
- verdict. Repair the storage problem first; recovery never retries a provider call on its own.
113
- Resuming an interrupted discussion creates fresh provider sessions because old threads can
114
- contain unsaved work. Completed rounds and saved notes supply their context; all prior spend
115
- remains in the ledger. Cancelling synthesis preserves the discussion's original stop cause.
116
- - **Local settings:** unreadable calibration or pool JSON is logged and preserved. Restore the
117
- file and restart before saving changes; writes use temporary files and atomic replacement.
118
- - **Provider output:** reply and verdict normalization uses linear scans, including Markdown
119
- decorations and optional persona filtering. Browser rendering still treats this as text.
120
- Later prompts quote replies and notes in records with application-assigned provenance;
121
- duplicate contract headers fail validation. This improves attribution but does not guarantee
122
- a model will resist instructions embedded in quoted content. Model output never grants approval.
123
- - **Diagnostic logs:** `_diagnostics/` in the data folder holds at most two 256 KiB files.
124
- Entries use fixed error/action categories, reference IDs, timestamps, provider names,
125
- runtime versions, fixed field names, seat numbers and source locations. No raw messages,
126
- prompts, replies, titles, URLs, account/model identifiers, credentials or personal paths are
127
- copied into these logs.
128
- Failed calls also retain bounded timing, byte/event counts, exit outcomes and a fixed last
129
- stage such as waiting, reasoning or completion. These observations cannot establish an
130
- upstream service's cause. Complete usage received before a timeout still counts; missing
131
- usage remains unknown. No automatic timeout retry is added.
132
- Browser reports and downloads require the same launch token and origin checks as writes;
133
- reports accept only known categories and bounded numbers. Logging is limited to 120 entries
134
- per minute. A tab can retain up to 20 sanitized events in session storage until delivered;
135
- closing it can discard pending events. Logs stay local until you choose to share a download.
136
- Transcripts, terminal output and provider logs have their own data handling described above.
137
- - **Copy result:** an explicit browser action copies the readable conclusion and questions to
138
- the system clipboard. Review text is still private content; the clipboard may be visible to
139
- other applications or managed by your OS clipboard history. No server write or model call is
140
- made. If access is blocked, the board offers selected text for manual copying.
141
- - **Agent client:** `roundtable agent` connects only to a numeric loopback port. It reads the
142
- page's launch token into memory for authenticated writes, refuses redirects and does not
143
- print or persist the token. Setup checks and state reads make no model call. Start, answers,
144
- resume and verdict requests can make calls under the same budgets and limits as the board.
145
- Writes are never automatically retried. JSON output contains private review content; treat
146
- request files, answer files and saved command output like transcripts.
147
- Attended response windows continue automatically after the configured interval. A timeout
148
- records unanswered questions; it is not a human note, acceptance or a supplied fact. Reading
149
- state never extends the window. The authenticated `hold` action grants a bounded extension
150
- within the overall wall clock, and stale-round answers and extensions are refused. Browser
151
- drafts are never submitted by a timer. Agent snapshots provide a question handoff and answer
152
- template; the host agent is responsible for presenting the questions and collecting replies.
153
- Research snapshots project known fields only: fixed failure descriptions, bounded progress
154
- and validated source records. Raw CLI error text remains in board/transcript details, not
155
- the agent snapshot; saved older failures receive the same projection.
156
- Notes sent by the client carry `source: agent`; board notes default to `source: human`.
157
- This is declared attribution, not an authenticated identity or proof of human approval.
158
- It grants no extra permissions. Legacy notes without a source retain their original label.
159
- - **Assistant setup and MCP:** `roundtable setup` explicitly installs user-scoped MCP entries
160
- and the Roundtable skill for the selected hosts. It makes no model call and is never run
161
- by an npm installation hook. Unrelated settings are preserved; edited or unmanaged
162
- Roundtable entries are refused. A local receipt stores paths and hashes, not configuration
163
- contents or credentials. Updates and removal check those hashes before changing files.
164
- Missing owned files can be repaired or removed; existing edited files remain protected.
165
- Setup honors Codex and Claude profile overrides and checks the stored Node executable.
166
- Terminal branding is limited to interactive help and foreground board startup; MCP and
167
- JSON command output contain no decoration.
168
- The stdio MCP adapter exposes the JSON client's review actions, not a general shell or
169
- filesystem tool. It validates inputs, bounds protocol messages and uses the same loopback
170
- token and server validation. No acceptance or export action is exposed. Setup, discovery
171
- and guide reads make no model call; review actions follow the existing budgets and consent
172
- rules. Connecting AGY as a host does not grant consent to use AGY as a provider.
173
- On demand it starts a hidden board that survives a disconnected MCP client, preserving
174
- running reviews and answer timers. Cancelling an MCP request only stops that client read
175
- or write attempt; a write might already have reached the server. Read state before retrying,
176
- and use Stop to cancel an actual review. No uncertain write is automatically retried.
177
- Health reads check API/package version, mode and any explicit data directory before reuse;
178
- temporary readiness failures have a bounded retry window. The authenticated server
179
- stop/restart command requires a matching launch instance and refuses active reviews or
180
- concurrent writes. It does not automatically stop an old board during an update.
181
- MCP results contain private review text visible to the invoking assistant and its host.
182
- - **Antigravity can put your Google account at risk.** Google's Antigravity FAQ says wrapping
183
- `agy` inside third-party applications is not supported under consumer plans, and that
184
- third-party access violates its Terms of Service and can lead to suspension or termination
185
- of the account. Roundtable runs `agy -p` as a third-party application and cannot tell which
186
- plan a login is on. So nothing is sent to `agy`, a call or a background read of its model
187
- list, quota or credits, until the person acknowledges this: once on the board, recorded in
188
- the data folder (`_terms.json`, only by the board page itself, never by the agent client),
189
- or per agent request with `acknowledgeTermsRisk: true`. A live server refuses an Antigravity
190
- seat, chairman or searcher without it, and the adapter refuses the call. `doctor` needs
191
- `--acknowledge-terms-risk`. This is separate from the isolation consent below.
192
- - **Tool restrictions depend on the installed CLI.** Claude uses safe mode, an empty tool
193
- list, no MCP servers, MCP tools removed by name and no permission prompts. Codex ignores user configuration and rules,
194
- uses strict configuration, a read-only sandbox, no MCP servers, no web search and disabled
195
- tool features. These flags require a compatible CLI; unsupported options fail without a
196
- weaker fallback. Antigravity uses session-only deny rules for documented file, command,
197
- URL and MCP tools. Its web search has no permission rule and cannot be denied, so the guard
198
- below stops a seat at its first reported tool step, search included. Its shared
199
- customizations and MCP discovery cannot be disabled either, so live
200
- Antigravity calls require explicit consent: on the board, choosing Antigravity on a card that
201
- states the limitation; in an agent request, `allowLimitedIsolation: true`. The server refuses
202
- Antigravity without it. No saved provider
203
- settings are changed. All prompts use stdin, not the process command line.
204
- The mandatory guard terminates an owned CLI when a prohibited tool event is reported,
205
- stops that seat for the review, retains known or unknown spending and excludes its answer
206
- from later prompts. It applies to repairs, recovery, API tool replies and the chairman;
207
- `strictTools: false` is refused and cannot disable it in old records. Streams are bounded
208
- to 8 MiB combined stdout/stderr and a pending event to 1 MiB. Invalid, incomplete or oversized
209
- streams stop the seat for the review, discard its session and retain reported spending.
210
- Codex warning/error items are diagnostics, not tool activity; unknown item types still fail
211
- closed. A failed turn is rejected immediately. After a validated answer, completion event
212
- and token counts, a Codex process that does not exit within one second is terminated and its
213
- result preserved. Output and tool checks continue until termination. No retry is made for
214
- that completed call, and a truncated tail or subsequent prohibited tool still rejects it.
215
- Codex telemetry exports, analytics, shell snapshots and unlimited connection retries are
216
- disabled per call; shared CLI settings and login files are not changed.
217
- Each Codex call also names a provider entry of its own that points at the same ChatGPT
218
- backend and uses the same login, so the reply streams over WebSocket with an idle limit
219
- derived from the call limit ((limit − 15 s) ÷ 3, between 10 s and 300 s) and at most two
220
- reconnects, or, at low effort (or none or minimal), 15 s and at most five reconnects. Over
221
- WebSocket that limit runs from the moment the request is sent, so a response the backend never
222
- starts is caught too; a WebSocket that does not open within 10 s, or whose reconnects run out,
223
- falls back to HTTPS, where such a wait has no limit short of the call limit. Codex runs with its
224
- stream-retry warnings on (`RUST_LOG`), so its error output holds one line per retry, which
225
- Roundtable counts; those lines carry turn ids and the error text, not prompts or replies.
226
- The built-in provider exposes no idle or reconnect setting, and the CLI's documented
227
- stream-idle default, 300 s, equals the default call limit, so its own recovery could never run
228
- before Roundtable ended the call. Every key is in the CLI's configuration reference; that a
229
- custom provider may use the ChatGPT login is demonstrated, not documented. A CLI that refuses
230
- it is expected to fail the call with an authentication error, which marks the pool down for
231
- the review; one that ignores it is expected to fall back to the built-in provider. A reconnect
232
- starts the answer again, and the interrupted attempt's tokens may be charged by the provider
233
- without appearing in the reported usage; more reconnects can mean more such attempts.
234
- Roundtable's overall call limit remains the final bound.
235
- Codex also receives a short review-specific base prompt through a uniquely created temporary
236
- file, removed after the call. It contains no field notes or personal context. The tool flags,
237
- read-only sandbox and reported-tool guard apply independently of these instructions.
238
- Detection can arrive after an operation has started and cannot undo it. Undisclosed remote
239
- actions are not observable. These are provider restrictions and detection, not an OS
240
- security sandbox supplied by Roundtable. Flags are in `src/adapters/config.js`.
241
- - **Optional web research has a separate policy.** Explicit research consent starts one fresh
242
- call on the chosen searcher's CLI with only its web search allowed; other tool restrictions
243
- remain. Codex turns on live `web_search`; Claude gets `WebSearch` as its only tool, approved
244
- for that call; Antigravity, whose search cannot be switched off or on, keeps its deny rules,
245
- and any reported tool other than `search_web` stops the call. API endpoints cannot search. Only the
246
- displayed search query goes into that call. The board initially fills it from the decision
247
- question and options; Custom query lets the person edit it. Other field notes and discussion
248
- answers are excluded. Search terms and visited pages are handled by the provider, so review
249
- the query for private details. The local wall clock,
250
- output limits and reported search-operation limit are enforced. One reported operation can
251
- contain multiple queries/page visits, and an excess operation may already have started when
252
- its event arrives. This is not a provider-enforced search or billing ceiling. Research
253
- spending joins the review's vendor budget and is shown separately from discussion seats.
254
- Up to eight source URLs, dates and excerpts are saved as provider-supplied, unverified data;
255
- all returned records are validated before repeated normalized URLs are combined into one
256
- citation. The first title/date are retained and distinct excerpts are appended only when
257
- their complete combined text fits the 1,200-character limit. The raw eight-record limit
258
- still applies; malformed duplicates cannot bypass validation. No repair call is made.
259
- Every seat and the chairman receives that same bundle. Source text cannot authorize tools
260
- or human decisions. Failed or interrupted research stops before discussion and is never
261
- automatically rerun, with one exception: a Codex searcher call that makes no progress for 40
262
- seconds is stopped and started once more within the same time limit, and both attempts are
263
- recorded. That retry is a fresh call with its own search-operation limit, so one research
264
- step can run up to twice the configured count. Completed evidence is reused without
265
- fetching it again. Ordinary
266
- discussion and verdict calls always retain the no-tools policy.
267
-
268
- ## The local HTTP boundary
269
-
270
- This is a trusted personal-machine application. Other local users and processes can read the
271
- board and its launch token; loopback is not OS-user authentication. A trusted local client can
272
- select available server environment variables as endpoint credentials and choose destinations.
273
- Do not run it as a shared-host service or under an account with greater authority than its user.
274
-
275
- A page from any site can try to reach `localhost`. So every request must name this server in
276
- `Host`, and a present `Origin` must be this server's page; every request that changes anything
277
- is `POST`, `application/json`, at most 256 KB, and must carry the launch token printed on the
278
- server's startup line (the served page gets it in a meta tag). Every field is typed and bounded
279
- (`src/validate.js`). Exports write only into files Roundtable wrote (a signature in the record's
280
- front matter, a marked region in the index) and refuse the home directory and filesystem roots.
281
- Protected-directory checks resolve symlinks and junctions. Record and index destinations must
282
- be regular files or absent; temporary files are created exclusively before atomic replacement.
283
- POSIX replacements preserve existing permission bits; new exports use `0666` filtered by the
284
- process umask. Choose a private export directory or restrictive umask for private decisions.
285
- Every response carries a Content-Security-Policy that lets only this server's own scripts run in
286
- the page, keeps fetches and the event stream same-origin, forbids framing, and disables content
287
- sniffing, so a reply that slipped past the board's escaping could not read the launch token.
288
-
289
- Preflight `GET` reads cached status only, including when `fresh` is present in the query. Missing
290
- snapshots say not checked; expired snapshots are labelled stale. CLI status and quota refreshes
291
- require authenticated `POST`. Concurrent refreshes share work per pool, with at most two pool
292
- checks running and twelve running or queued in total. Requests beyond that limit receive a busy
293
- status. Results are cached for one minute; forced refreshes have a five-second cooldown per pool.
294
- The cache retains at most 64 completed snapshots. These bounds cover preflight refresh work;
295
- startup catalogue/quota reads and debate calls have their own existing timeouts and controls.
296
-
297
- Claude and Antigravity usage reads must be proven free of model work. A proven-free answer
298
- without limits leaves quota unknown or retains the last figure; the next normal refresh can
299
- try again. An answer that is not proven free, or a timeout, still disables that reader until
300
- restart. No additional retry or polling loop is started.
301
-
302
- The browser waits up to 15 seconds for ordinary setup/history and action requests. It never
303
- automatically retries a failed write, since a lost response can hide an action already accepted
304
- by the server. This timeout is not a cancellation of a debate or provider call. Pending action
305
- buttons prevent duplicate submissions in that page; they are not a server-side idempotency
306
- guarantee. The launch token remains required for every write, including retries initiated by
307
- the user. Resume notes supplied before the first complete round are also private transcript
308
- data and are included in subsequent prompts, replay and exports.
309
-
310
- The read-only event stream acknowledges reconnects immediately, including when no events
311
- were missed. Reconnecting or replaying a board does not dispatch provider calls.
312
-
313
- ## Reporting
314
-
315
- Use [private vulnerability reporting](https://github.com/prplkane/roundtable/security/advisories/new).
316
- Include the affected version and steps to reproduce the problem. Do not attach credentials,
317
- login files or real debate contents. If private reporting is unavailable, use the contact
318
- method listed on the [maintainer's profile](https://github.com/prplkane).
1
+ # Security
2
+
3
+ Roundtable runs a loopback server on your machine. Codex, Claude and Antigravity seats use the selected AgentLink profiles by default.
4
+ The authenticated profile list returns saved names, provider identifiers and model/effort defaults. Listing profiles
5
+ does not launch a bridge. Direct CLI connections and API endpoints can be selected explicitly.
6
+ Demo mode uses scripted replies.
7
+
8
+ ## Data and execution
9
+
10
+ - **ACP profiles are trusted local executables, not sandboxes.** Roundtable launches
11
+ the installed AgentLink with a validated saved profile name. Executable overrides
12
+ come only from the server's environment, never review JSON. Each turn creates a
13
+ fresh ACP v1 session in a separate seat directory, advertises no client tools and
14
+ supplies no MCP servers. Permission requests are denied; filesystem/terminal
15
+ callbacks and reported tool activity stop the seat. The client binds the session
16
+ ID while receiving `session/new`, before processing any following frame, and
17
+ rejects foreign-session updates. Agents can still have their own built-in tools,
18
+ permissions, customizations and billing configuration. Use a
19
+ profile with those tools disabled and explicitly accept limited isolation. This
20
+ does not acknowledge a vendor's terms or guarantee its sandbox. Inherited API keys
21
+ are filtered as for direct CLIs, but AgentLink profile settings can add them back.
22
+ Loading models uses AgentLink's read-only `models` command. Its inspector opens a
23
+ temporary session in an empty directory, refuses client operations and sends no prompt.
24
+ Roundtable checks explicit review pins using its own ACP v1 session before the review.
25
+ ACP output, including stderr, is bounded to 8 MiB per call. Roundtable sends
26
+ `session/cancel` on interruption and closes the connection, with process-tree
27
+ termination after a bounded grace period. Already-orphaned Windows descendants
28
+ are not guaranteed to be contained. Tokens are unknown unless valid optional
29
+ end-turn counters are reported; existing seat/vendor budget rules still apply.
30
+
31
+ - **No telemetry or analytics service.** Usage statistics describe your own agents' calls in
32
+ Roundtable. They are calculated and stored on your machine; Roundtable sends no usage
33
+ statistics, review text or diagnostic logs to its developers. Live reviews still send the
34
+ required prompts to your selected providers, whose data handling is separate.
35
+ - **CLI login files stay with the CLI.** Roundtable does not read or copy those files. It runs each vendor's
36
+ own CLI (`claude`, `codex`, `agy`) as a child process, and that CLI does its own login the way
37
+ it does in your terminal. A test asserts that no source file names a credential file or copies
38
+ one. A second account ("login profile") is an empty directory under the OS user-data folder
39
+ (`%USERPROFILE%\.roundtable\homes\<profile>\<vendor>`, `~/Library/Application Support/roundtable/...`,
40
+ `~/.local/share/roundtable/...`) that you log into yourself once; Roundtable only points the
41
+ CLI at it through the variable the CLI documents.
42
+ - **Billing: the subscription, unless you say otherwise.** The child's environment is yours minus
43
+ Claude Code session variables, parent Codex app routing/session variables and API-key variables (`ANTHROPIC_API_KEY`,
44
+ `OPENAI_API_KEY`, `GEMINI_API_KEY` and the like), so a key left in your shell cannot move a
45
+ debate onto pay-per-token. Set `ROUNDTABLE_API_BILLING=1` to pass them through on purpose.
46
+ - **Budget caps check admission, including retries.** Each provider attempt is checked against
47
+ reported usage, calls already in flight, and the projected next call. Seat calls leave room
48
+ for a projected verdict; a fallback chairman is checked against its own vendor's cap.
49
+ Missing or unusable token counts block further calls to that vendor under a vendor token cap,
50
+ including after a restart; already dispatched calls may finish. Discussion seats also have an
51
+ automatic cap of 400,000 tokens per review (60,000 for optional personas). Missing or partial
52
+ usage blocks further calls for that seat. The explanation identifies a recorded timeout or
53
+ interruption without treating missing usage as zero or measured cap exhaustion. The chairman
54
+ follows the vendor budget.
55
+ Unknown usage and partial totals are labelled, and reported dollar costs are kept separately.
56
+ These checks use estimates and available usage reports, not a provider-enforced billing
57
+ ceiling: a call already running can consume more than projected.
58
+ A flushed dispatch record is saved before each call. After an interruption, a dispatch
59
+ without its matching result is unknown usage and cannot silently reset a capped review.
60
+ - **An API endpoint seat is the one case where Roundtable itself sends a request.** You name a
61
+ base URL, a model and the *name* of the environment variable holding the key (never the key;
62
+ a pasted key is refused on shape). At call time the key is read from the environment you
63
+ started Roundtable from and sent as a bearer to that URL only, with redirects refused. It is
64
+ not deliberately added to transcripts, logs or the board. Endpoint response and error text
65
+ can be displayed and recorded. Known credential echoes are redacted from decoded replies
66
+ and error excerpts before recording; deliberately encoded copies may evade this filter.
67
+ Existing records are not rewritten. Use an endpoint you trust with the credential.
68
+ Plain `http` is accepted for local names and private IP literals; a hosted
69
+ API must be `https`. A DNS name starting with a private-address prefix, such as
70
+ `10.api.example.com`, is still a hosted name and requires HTTPS. Local names rely on your
71
+ network's name resolution. Endpoint responses are limited to **1 MiB of decoded body bytes**,
72
+ including compressed and error responses; an oversized response is cancelled and fails the
73
+ call without a network retry. Preflight sends no probe to the endpoint, even on an authenticated
74
+ refresh; the first real call checks the connection. Such a seat bills the endpoint's account,
75
+ and its card says `API · pay-per-token`.
76
+ - **Cancellation:** Stop cancels this review's owned CLI processes and local endpoint requests,
77
+ including an active chairman. It prevents new rounds, retries, fallback calls and automatic
78
+ synthesis. Saved replies and reported usage remain. A provider may already have processed a
79
+ dispatched request; cancelling locally does not guarantee a billing reversal upstream.
80
+ Server shutdown interrupts active reviews without recording human Stop or starting synthesis.
81
+ Event streams close; settled calls retain reported spending before exit. Unsettled dispatches
82
+ remain unknown on restart. Saved discussions offer Resume, or Write if discussion had ended.
83
+ Finish with verdict is a separate action: it cancels unfinished discussion calls, then permits
84
+ the chairman under the existing budget and time limits. It requires a completed, usable round.
85
+ - **Network:** the browser loads the board, styles and fonts locally; it does not fetch a remote
86
+ font stylesheet. Live provider traffic is the CLIs' own traffic and the endpoint traffic
87
+ above. Roundtable leaves VPN, proxy and system DNS configuration unchanged; provider
88
+ availability and regional connectivity remain external requirements. The server listens on
89
+ `127.0.0.1`. A debate sends its notes and relevant replies to the
90
+ selected providers. Stateless mode limits the context Roundtable resends; it does not control
91
+ provider logging or retention.
92
+ - **On disk:** history defaults to the OS user-data folder, outside the checkout, with separate
93
+ `live` and `demo` directories. `ROUNDTABLE_DEBATES_DIR` overrides that location. Each holds one folder per debate with the transcript (field notes, replies,
94
+ your notes, usage figures), `field-notes.md` and `verdict.md`; plus the calibration and pool
95
+ figures. Live diagnostic working files use the same data folder. Legacy checkout data
96
+ folders remain gitignored. A CLI's full raw output is kept in memory during
97
+ a call; selected replies, errors and usage are recorded. Copy the entire data folder while
98
+ the server is stopped to back it up. Exported records and CLI login profiles live separately.
99
+ The browser also retains field notes, seat choices, limits, chairman settings and budgets in
100
+ local storage for that address. Clearing browser data removes those preferences, not server
101
+ records. They can contain private context; use a browser profile you trust.
102
+ - **History cleanup:** Delete and Clear include finished and interrupted sessions.
103
+ Authenticated requests recheck that none are running or waiting for input. A data-folder
104
+ lock prevents two servers from sharing the same writable history.
105
+ Cleanup refuses linked directories and nested links. It saves `_usage.json` before removing
106
+ transcripts, recovery backups and seat working files. This file keeps usage counters and model
107
+ identifiers under hashed session IDs, without titles, prompts, replies, notes or account paths.
108
+ Exports, quota calibration and provider records are not deleted. This is ordinary file deletion,
109
+ not secure erasure; backups, browser preferences and provider histories are separate.
110
+ - **Transcript recovery:** reads never change the transcript. Before appending after an
111
+ incomplete final line, Roundtable saves the exact original as `transcript.recovery-<id>.jsonl`
112
+ beside it and atomically replaces the transcript with its complete prefix and a recovery
113
+ notice. Backups contain the same private debate data and belong in your backup/deletion
114
+ policy. Corrupt completed lines block resume and export until restored from a backup.
115
+ A storage failure cancels and settles active turns before exposing Resume or a missing
116
+ verdict. Repair the storage problem first; recovery never retries a provider call on its own.
117
+ Resuming an interrupted discussion creates fresh provider sessions because old threads can
118
+ contain unsaved work. Completed rounds and saved notes supply their context; all prior spend
119
+ remains in the ledger. Cancelling synthesis preserves the discussion's original stop cause.
120
+ - **Local settings:** unreadable calibration or pool JSON is logged and preserved. Restore the
121
+ file and restart before saving changes; writes use temporary files and atomic replacement.
122
+ - **Provider output:** reply and verdict normalization uses linear scans, including Markdown
123
+ decorations and optional persona filtering. Browser rendering still treats this as text.
124
+ Later prompts quote replies and notes in records with application-assigned provenance;
125
+ duplicate contract headers fail validation. This improves attribution but does not guarantee
126
+ a model will resist instructions embedded in quoted content. Model output never grants approval.
127
+ - **Diagnostic logs:** `_diagnostics/` in the data folder holds at most two 256 KiB files.
128
+ Entries use fixed error/action categories, reference IDs, timestamps, provider names,
129
+ runtime versions, fixed field names, seat numbers and source locations. No raw messages,
130
+ prompts, replies, titles, URLs, account/model identifiers, credentials or personal paths are
131
+ copied into these logs.
132
+ Failed calls also retain bounded timing, byte/event counts, exit outcomes and a fixed last
133
+ stage such as waiting, reasoning or completion. These observations cannot establish an
134
+ upstream service's cause. Complete usage received before a timeout still counts; missing
135
+ usage remains unknown. No automatic timeout retry is added.
136
+ Browser reports and downloads require the same launch token and origin checks as writes;
137
+ reports accept only known categories and bounded numbers. Logging is limited to 120 entries
138
+ per minute. A tab can retain up to 20 sanitized events in session storage until delivered;
139
+ closing it can discard pending events. Logs stay local until you choose to share a download.
140
+ Transcripts, terminal output and provider logs have their own data handling described above.
141
+ - **Copy result:** an explicit browser action copies the readable conclusion and questions to
142
+ the system clipboard. Review text is still private content; the clipboard may be visible to
143
+ other applications or managed by your OS clipboard history. No server write or model call is
144
+ made. If access is blocked, the board offers selected text for manual copying.
145
+ - **Agent client:** `roundtable agent` connects only to a numeric loopback port. It reads the
146
+ page's launch token into memory for authenticated writes, refuses redirects and does not
147
+ print or persist the token. Setup checks and state reads make no model call. Start, answers,
148
+ resume and verdict requests can make calls under the same budgets and limits as the board.
149
+ Writes are never automatically retried. JSON output contains private review content; treat
150
+ request files, answer files and saved command output like transcripts.
151
+ Attended response windows continue automatically after the configured interval. A timeout
152
+ records unanswered questions; it is not a human note, acceptance or a supplied fact. Reading
153
+ state never extends the window. The authenticated `hold` action grants a bounded extension
154
+ within the overall wall clock, and stale-round answers and extensions are refused. Browser
155
+ drafts are never submitted by a timer. Agent snapshots provide a question handoff and answer
156
+ template; the host agent is responsible for presenting the questions and collecting replies.
157
+ Research snapshots project known fields only: fixed failure descriptions, bounded progress
158
+ and validated source records. Raw CLI error text remains in board/transcript details, not
159
+ the agent snapshot; saved older failures receive the same projection.
160
+ Notes sent by the client carry `source: agent`; board notes default to `source: human`.
161
+ This is declared attribution, not an authenticated identity or proof of human approval.
162
+ It grants no extra permissions. Legacy notes without a source retain their original label.
163
+ - **Assistant setup and MCP:** `roundtable setup` explicitly installs user-scoped MCP entries
164
+ and the Roundtable skill for the selected hosts. It makes no model call and is never run
165
+ by an npm installation hook. Unrelated settings are preserved; edited or unmanaged
166
+ Roundtable entries are refused. A local receipt stores paths and hashes, not configuration
167
+ contents or credentials. Updates and removal check those hashes before changing files.
168
+ Missing owned files can be repaired or removed; existing edited files remain protected.
169
+ Setup honors Codex and Claude profile overrides and checks the stored Node executable.
170
+ Terminal branding is limited to interactive help and foreground board startup; MCP and
171
+ JSON command output contain no decoration.
172
+ The stdio MCP adapter exposes the JSON client's review actions, not a general shell or
173
+ filesystem tool. It validates inputs, bounds protocol messages and uses the same loopback
174
+ token and server validation. No acceptance or export action is exposed. Setup, discovery
175
+ and guide reads make no model call; review actions follow the existing budgets and consent
176
+ rules. Connecting AGY as a host does not grant consent to use AGY as a provider.
177
+ On demand it starts a hidden board that survives a disconnected MCP client, preserving
178
+ running reviews and answer timers. Cancelling an MCP request only stops that client read
179
+ or write attempt; a write might already have reached the server. Read state before retrying,
180
+ and use Stop to cancel an actual review. No uncertain write is automatically retried.
181
+ Health reads check API/package version, mode and any explicit data directory before reuse;
182
+ temporary readiness failures have a bounded retry window. The authenticated server
183
+ stop/restart command requires a matching launch instance and refuses active reviews or
184
+ concurrent writes. It does not automatically stop an old board during an update.
185
+ MCP results contain private review text visible to the invoking assistant and its host.
186
+ - **Antigravity can put your Google account at risk.** Google's Antigravity FAQ says wrapping
187
+ `agy` inside third-party applications is not supported under consumer plans, and that
188
+ third-party access violates its Terms of Service and can lead to suspension or termination
189
+ of the account. Roundtable runs `agy -p` as a third-party application and cannot tell which
190
+ plan a login is on. So nothing is sent to `agy`, a call or a background read of its model
191
+ list, quota or credits, until the person acknowledges this: once on the board, recorded in
192
+ the data folder (`_terms.json`, only by the board page itself, never by the agent client),
193
+ or per agent request with `acknowledgeTermsRisk: true`. A live server refuses an Antigravity
194
+ seat, chairman or searcher without it, and the adapter refuses the call. `doctor` needs
195
+ `--acknowledge-terms-risk`. This is separate from the isolation consent below.
196
+ - **Tool restrictions depend on the installed CLI.** Claude uses safe mode, an empty tool
197
+ list, no MCP servers, MCP tools removed by name and no permission prompts. Codex ignores user configuration and rules,
198
+ uses strict configuration, a read-only sandbox, no MCP servers, no web search and disabled
199
+ tool features. These flags require a compatible CLI; unsupported options fail without a
200
+ weaker fallback. Antigravity uses session-only deny rules for documented file, command,
201
+ URL and MCP tools. Its web search has no permission rule and cannot be denied, so the guard
202
+ below stops a seat at its first reported tool step, search included. Its shared
203
+ customizations and MCP discovery cannot be disabled either, so live
204
+ Antigravity calls require explicit consent: on the board, choosing Antigravity on a card that
205
+ states the limitation; in an agent request, `allowLimitedIsolation: true`. The server refuses
206
+ Antigravity without it. No saved provider
207
+ settings are changed. All prompts use stdin, not the process command line.
208
+ The mandatory guard terminates an owned CLI when a prohibited tool event is reported,
209
+ stops that seat for the review, retains known or unknown spending and excludes its answer
210
+ from later prompts. It applies to repairs, recovery, API tool replies and the chairman;
211
+ `strictTools: false` is refused and cannot disable it in old records. Streams are bounded
212
+ to 8 MiB combined stdout/stderr and a pending event to 1 MiB. Invalid, incomplete or oversized
213
+ streams stop the seat for the review, discard its session and retain reported spending.
214
+ Codex warning/error items are diagnostics, not tool activity; unknown item types still fail
215
+ closed. A failed turn is rejected immediately. After a validated answer, completion event
216
+ and token counts, a Codex process that does not exit within one second is terminated and its
217
+ result preserved. Output and tool checks continue until termination. No retry is made for
218
+ that completed call, and a truncated tail or subsequent prohibited tool still rejects it.
219
+ Codex telemetry exports, analytics, shell snapshots and unlimited connection retries are
220
+ disabled per call; shared CLI settings and login files are not changed.
221
+ Each Codex call also names a provider entry of its own that points at the same ChatGPT
222
+ backend and uses the same login, so the reply streams over WebSocket with an idle limit
223
+ derived from the call limit ((limit − 15 s) ÷ 3, between 10 s and 300 s) and at most two
224
+ reconnects, or, at low effort (or none or minimal), 15 s and at most five reconnects. Over
225
+ WebSocket that limit runs from the moment the request is sent, so a response the backend never
226
+ starts is caught too; a WebSocket that does not open within 10 s, or whose reconnects run out,
227
+ falls back to HTTPS, where such a wait has no limit short of the call limit. Codex runs with its
228
+ stream-retry warnings on (`RUST_LOG`), so its error output holds one line per retry, which
229
+ Roundtable counts; those lines carry turn ids and the error text, not prompts or replies.
230
+ The built-in provider exposes no idle or reconnect setting, and the CLI's documented
231
+ stream-idle default, 300 s, equals the default call limit, so its own recovery could never run
232
+ before Roundtable ended the call. Every key is in the CLI's configuration reference; that a
233
+ custom provider may use the ChatGPT login is demonstrated, not documented. A CLI that refuses
234
+ it is expected to fail the call with an authentication error, which marks the pool down for
235
+ the review; one that ignores it is expected to fall back to the built-in provider. A reconnect
236
+ starts the answer again, and the interrupted attempt's tokens may be charged by the provider
237
+ without appearing in the reported usage; more reconnects can mean more such attempts.
238
+ Roundtable's overall call limit remains the final bound.
239
+ Codex also receives a short review-specific base prompt through a uniquely created temporary
240
+ file, removed after the call. It contains no field notes or personal context. The tool flags,
241
+ read-only sandbox and reported-tool guard apply independently of these instructions.
242
+ Detection can arrive after an operation has started and cannot undo it. Undisclosed remote
243
+ actions are not observable. These are provider restrictions and detection, not an OS
244
+ security sandbox supplied by Roundtable. Flags are in `src/adapters/config.js`.
245
+ - **Optional web research has a separate policy.** Explicit research consent starts one fresh
246
+ call on the chosen searcher's CLI with only its web search allowed; other tool restrictions
247
+ remain. Codex turns on live `web_search`; Claude gets `WebSearch` as its only tool, approved
248
+ for that call; Antigravity, whose search cannot be switched off or on, keeps its deny rules,
249
+ and any reported tool other than `search_web` stops the call. API endpoints cannot search. Only the
250
+ displayed search query goes into that call. The board initially fills it from the decision
251
+ question and options; Custom query lets the person edit it. Other field notes and discussion
252
+ answers are excluded. Search terms and visited pages are handled by the provider, so review
253
+ the query for private details. The local wall clock,
254
+ output limits and reported search-operation limit are enforced. One reported operation can
255
+ contain multiple queries/page visits, and an excess operation may already have started when
256
+ its event arrives. This is not a provider-enforced search or billing ceiling. Research
257
+ spending joins the review's vendor budget and is shown separately from discussion seats.
258
+ Up to eight source URLs, dates and excerpts are saved as provider-supplied, unverified data;
259
+ all returned records are validated before repeated normalized URLs are combined into one
260
+ citation. The first title/date are retained and distinct excerpts are appended only when
261
+ their complete combined text fits the 1,200-character limit. The raw eight-record limit
262
+ still applies; malformed duplicates cannot bypass validation. No repair call is made.
263
+ Every seat and the chairman receives that same bundle. Source text cannot authorize tools
264
+ or human decisions. Failed or interrupted research stops before discussion and is never
265
+ automatically rerun, with one exception: a Codex searcher call that makes no progress for 40
266
+ seconds is stopped and started once more within the same time limit, and both attempts are
267
+ recorded. That retry is a fresh call with its own search-operation limit, so one research
268
+ step can run up to twice the configured count. Completed evidence is reused without
269
+ fetching it again. Ordinary
270
+ discussion and verdict calls always retain the no-tools policy.
271
+
272
+ ## The local HTTP boundary
273
+
274
+ This is a trusted personal-machine application. Other local users and processes can read the
275
+ board and its launch token; loopback is not OS-user authentication. A trusted local client can
276
+ select available server environment variables as endpoint credentials and choose destinations.
277
+ Do not run it as a shared-host service or under an account with greater authority than its user.
278
+
279
+ A page from any site can try to reach `localhost`. So every request must name this server in
280
+ `Host`, and a present `Origin` must be this server's page; every request that changes anything
281
+ is `POST`, `application/json`, at most 256 KB, and must carry the launch token printed on the
282
+ server's startup line (the served page gets it in a meta tag). Every field is typed and bounded
283
+ (`src/validate.js`). Exports write only into files Roundtable wrote (a signature in the record's
284
+ front matter, a marked region in the index) and refuse the home directory and filesystem roots.
285
+ Protected-directory checks resolve symlinks and junctions. Record and index destinations must
286
+ be regular files or absent; temporary files are created exclusively before atomic replacement.
287
+ POSIX replacements preserve existing permission bits; new exports use `0666` filtered by the
288
+ process umask. Choose a private export directory or restrictive umask for private decisions.
289
+ Every response carries a Content-Security-Policy that lets only this server's own scripts run in
290
+ the page, keeps fetches and the event stream same-origin, forbids framing, and disables content
291
+ sniffing, so a reply that slipped past the board's escaping could not read the launch token.
292
+
293
+ Preflight `GET` reads cached status only, including when `fresh` is present in the query. Missing
294
+ snapshots say not checked; expired snapshots are labelled stale. Unrecognized login-status
295
+ output leaves sign-in unconfirmed. A confirmed sign-out skips the account quota read.
296
+ Review estimates use local usage history or defaults and remain available offline. CLI status and quota refreshes
297
+ require authenticated `POST`. Concurrent refreshes share work per pool, with at most two pool
298
+ checks running and twelve running or queued in total. Requests beyond that limit receive a busy
299
+ status. Results are cached for one minute; forced refreshes have a five-second cooldown per pool.
300
+ The cache retains at most 64 completed snapshots. These bounds cover preflight refresh work;
301
+ startup catalogue/quota reads and debate calls have their own existing timeouts and controls.
302
+
303
+ Claude and Antigravity usage reads must be proven free of model work. A proven-free answer
304
+ without limits leaves quota unknown or retains the last figure; the next normal refresh can
305
+ try again. An answer that is not proven free, or a timeout, still disables that reader until
306
+ restart. No additional retry or polling loop is started.
307
+
308
+ The browser waits up to 15 seconds for ordinary setup/history and action requests. It never
309
+ automatically retries a failed write, since a lost response can hide an action already accepted
310
+ by the server. This timeout is not a cancellation of a debate or provider call. Pending action
311
+ buttons prevent duplicate submissions in that page; they are not a server-side idempotency
312
+ guarantee. The launch token remains required for every write, including retries initiated by
313
+ the user. Resume notes supplied before the first complete round are also private transcript
314
+ data and are included in subsequent prompts, replay and exports.
315
+
316
+ The read-only event stream acknowledges reconnects immediately, including when no events
317
+ were missed. Reconnecting or replaying a board does not dispatch provider calls.
318
+
319
+ ## Reporting
320
+
321
+ Use [private vulnerability reporting](https://github.com/prplkane/roundtable/security/advisories/new).
322
+ Include the affected version and steps to reproduce the problem. Do not attach credentials,
323
+ login files or real debate contents. If private reporting is unavailable, use the contact
324
+ method listed on the [maintainer's profile](https://github.com/prplkane).