---
title: "Domain context"
description: "Core domain terms and tenancy boundaries in Trestle."
sidebar:
  order: 2
---


**Trestle** (`trestle.komputa.io`) is a collaborative infinite thinking board and `.xmind`-compatible mind-mapping workspace with native desktop clients (Linux, Windows, macOS), a WebAssembly browser client, a lightweight HTML/TS Web Frontdoor & Phone Companion, a self-hosted multi-tenant sync service, and a local MCP server.

## Ubiquitous Language

| Term | Meaning |
|---|---|
| **Workspace** | The tenant isolation boundary. Every board/map, member role, invite, share link, comment, live op, and snapshot belongs to exactly one Workspace, enforced by Postgres Row-Level Security (RLS) and application query filters. |
| **Member** | A verified user belonging to a Workspace with a role (`Admin`, `Edit`, `Comment`, `View`). No hardcoded global admin bypasses workspace membership. |
| **Board / Map** | A persisted document inside a Workspace. Serialized as an immutable `Workbook` (`.trestle` hybrid format or lossless `.xmind`) containing one or more `Sheet`s combining a Mind Map tree and a `BoardLayer` of whiteboard elements. |
| **Sheet** | One infinite 2D surface inside a `Workbook` (defaulting to `Sheet 1`, `Sheet 2`, …), carrying an optional visible Mind Map (`IBranchLayout` positioned at `MindMapOriginX/Y`) and a z-ordered `BoardLayer` rendered through one shared `Scene`. |
| **Topic** | A node in a Sheet's Mind Map tree, addressed by `TopicId`, carrying structured facets (title, notes, links, markers, labels, images, styling). |
| **BoardLayer / CanvasElement** | The freeform whiteboard layer on a `Sheet`: `BoardShape` (rect, rounded rect, ellipse, diamond, triangle, text — filled or outline-only), `StickyNote`, `InkStroke`, `Connector` (Straight, Curved, Elbow with snapped `ElementRef` / `TopicRef` / `FreePoint` anchors and inline labels), `BoardFrame`, and `BoardImage`. Elements with `ZIndex < 0` paint behind the Mind Map; `ZIndex >= 0` paint in front. |
| **Edit / BoardEdit / Change** | Pure immutable data describing Mind Map (`Edit`) or whiteboard (`BoardEdit`) mutations grouped into atomic changes committed through `IDocumentSession`. Undo swaps immutable `Workbook` snapshots. |
| **Room** | The live co-editing session (`MapRoom`) for an open cloud Board, sequencing `EditWire` v2 and `BoardWire` v3 ops plus ephemeral cursors/strokes over SignalR and periodically persisting snapshots. |
| **Share Link** | A revocable, board-scoped token granting either anonymous read-only viewing (`View`) or named guest live co-editing (`Edit`) strictly for one board, with instant socket disconnect on revoke. |
| **Device Session** | A revocable Bearer session for a paired desktop client, established via a short-lived one-time pairing code or QR payload (`trestle://pair?...`). Revoking a device disconnects its active live sockets immediately. |
| **Invite** | A copyable single-use workspace invitation link (optionally emailed) that binds an invited person to a Workspace and role. |
| **Residue** | Unknown `.xmind` JSON fields and ZIP entries preserved internally by the codec so round-tripping third-party `.xmind` files loses nothing. |

## Security & Privacy Boundary

- **Honest role-isolated server:** Data is stored in Postgres with strict Workspace-level isolation (Postgres RLS + verified caller context). It is **not** zero-knowledge end-to-end encrypted; `docs/operations/data-note.md` states plainly what the server can read, where backups live, and how deletion works.
- **No silent exfiltration:** Client workspaces are never auto-exported to operator personal cloud storage.
- **No external homelab leakage:** External desktop/web clients never hardcode private LAN endpoints or operator secret tooling.
