Skip to content

docs(design): tole-desktop, local and remote over the same serve API - #966

Merged
ajianaz merged 2 commits into
developfrom
docs/desktop-local-remote
Nov 19, 2026
Merged

ajianaz merged 2 commits into
developfrom
docs/desktop-local-remote

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds docs/desktop-design.md, the design note asked for in #949 (step 7 of #941), and links it from the README and docs/epics.md.

Why

The desktop client (#527) must work against a local and a remote tole serve through the same routes. Two questions in #949 are not decided (how a remote desktop reaches the server, and the local transport). The note lays out the contract, the gaps and every open decision with a recommended default. It does not decide anything: all of D1 to D11 are marked open for the owner.

Changes

Testing

  • Docs only; no code was built or run. The author read the code and docs for every route and claim.
  • Independent review: a separate read-only agent, given only the note and the code, checked it. No numeric limit, route or auth claim was wrong (32 connections, 8 SSE streams, 1 MiB body, 10 MiB upload, 10 auth failures a minute, 900 s approval expiry, 15 s heartbeat, deadlines, loopback default and bind rule, token order and constant-time compare, and the full route table). It also verified two claims the author could not: a dropped POST /prompt connection does not cancel the turn (no code watches the socket; this is an absence, still without a test), and the token-file reader checks no mode or owner. It raised eight wording points, all applied in the second commit: "locked" decision became "recorded owner statement"; the token-file mode check is stated as a fact; "credentials are never logged" is marked not audited; "Destructive tools are unreachable through serve" is softened to what the threat model says; /resume is corrected to POST /sessions {"resume": id}; a connection over the cap gets no response; and the webhook routes have their own gate.
  • Not verifiable from code: issue numbers and the quotes from epic: one assembly for every face (finish #525, the drift behind #536) #941, docs(design): tole-desktop, local and remote over the same serve API #949 and epic: gateway — Telegram (then Discord) over tole serve, in a separate repository #910 (issue text), and the Design canvas, which is not in the repo.

Parent: #941. Issue: #949.

…949)

A design note for the desktop client: the serve routes it needs and the gaps (#572, #574), a local and a remote flow, failure modes, threat-model rows and a table of decisions that are all open for the owner.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

Say the owner statement is recorded, not locked; state that the token file is
not checked for mode or owner; mark log hygiene as not audited; soften the
Destructive claim to what the threat model says; correct the resume route;
note that a connection over the cap gets no response and that webhook routes
have their own gate.
@ajianaz
ajianaz merged commit 74b2fa5 into develop Nov 19, 2026
23 checks passed
@ajianaz
ajianaz deleted the docs/desktop-local-remote branch November 20, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant