Start with the architecture overview, then the roadmap. Contracts live in shared/src/ (typechecked, tested) and db/migrations/0001_init.sql. The project’s front page is the README. These docs are also the project website, https://pathikdevani.github.io/linora/ (index.md is its landing page), built from this folder by .github/workflows/pages.yml.
packages/doc (doc model, rules, ScanBatch, StructIndex, formats)packages/enginepackages/editor, tool/command mappackages/sync-client, protocol behaviour, conflictsapps/realtime (gateway + room owners)/v1 API and apps/apiapps/docworker (queries, render, compaction)apps/mcpapps/web shell and panels| # | Decision | Status |
|—|—|—|
| 0001 | Monorepo: apps/ + packages/ + shared/ (npm workspaces) | Accepted (production build step amended by 0902) |
| 0002 | Layering and dependency rules | Accepted |
| 0003 | Headless doc core in typed arrays | Superseded by 0024 (layout/memory) |
| 0004 | Node ids, prop ids, parent-relative coordinates | Accepted |
| 0005 | Sync v1 with in-memory server docs | Superseded by 0019 |
| 0006 | Pages are the unit of sync, storage, loading | Accepted |
| 0007 | Binary wire format, batching, presence | Accepted (presence rules refined by 0203) |
| 0008 | Undo own transactions via inverse ops | Accepted |
| 0009 | Server stack | Superseded by 0020, 0021 |
| 0010 | Snapshots + structure + journal, out-of-process compaction | Accepted |
| 0011 | Authentication and authorization | Accepted (names updated by 0028) |
| 0012 | MCP as thin adapter over the API | Accepted |
| 0013 | Engine is a derived cache of the doc | Superseded by 0024 (phasing/memory) |
| 0014 | Bundled font, shared metrics | Accepted |
| 0015 | Testing, perf and load gates | Accepted |
| 0016 | Vanilla TS UI | Superseded by 0025 |
| 0017 | Future layout module (layout-feature branch is reference only) | Accepted |
| 0018 | Dev environment: Docker Postgres | Accepted |
| 0019 | Authoritative sequencer + 14 B/node structural index | Accepted |
| 0020 | Realtime: Node + uWS.js threads; 100k capacity | Accepted |
| 0021 | Service topology | Accepted |
| 0022 | API-first, one op pipeline, generated types | Accepted |
| 0023 | Security model | Accepted |
| 0024 | Single-copy client memory: doc columns are the render source | Accepted |
| 0025 | React for app UI; engine and canvas stay outside React | Accepted |
| 0026 | Product name: Linora; public repo github.com/pathikdevani/linora; website on GitHub Pages, no custom domain; the rename runs in steps | Accepted (public repo and website added by amendment; rename finished by 0028) |
| 0027 | Licence Apache-2.0 and DCO sign-off, no CLA; no paid or hosted offering for now | Accepted |
| 0028 | Internal names use linora with no compatibility code; migrations 0001-0005 reset once before 0.1.0 | Accepted |
| 0101 | RESTORE op and tombstones (undo of another client’s delete) | Accepted (DELETE’s inverse superseded by 0107) |
| 0102 | Document core storage details | Accepted |
| 0103 | Bulk geometry ops: TRANSFORM (relative translate) and SET_GEOMETRY | Accepted |
| 0104 | Run-length id map (memory E2, doc part) | Accepted |
| 0105 | Bounded queries: linear-time name regex, find/toSvg budgets, XML-safe text | Accepted |
| 0106 | NodeColumns paint views follow intern-table growth (fixes empty shapes after reload) | Accepted |
| 0107 | DELETE inverse: RESTORE blocks per parent, in sibling order (fast delete and undo of millions of nodes) | Accepted |
| 0201 | Realtime threads, rings, connection and send-buffer limits | Accepted |
| 0202 | Dedupe, retry floor and ordering guarantees | Accepted |
| 0203 | Presence interest management: per-recipient frames, viewport filtering, follow, idle suppression | Accepted |
| 0204 | Overload control: bounded backlogs, shed order, gateway-held retry floors with a probe, server-driven backoff | Accepted |
| 0205 | Owner memory and reads (byte logs, read lanes, batched lookups); drain over shared memory; access re-check | Accepted |
| 0301 | API request pipeline and caches | Accepted |
| 0302 | Browser CSRF and PAT restrictions | Accepted (names updated by 0028) |
| 0303 | HTTP op forwarding over writer connections | Accepted |
| 0304 | Doc-worker query proxy | Accepted |
| 0305 | Empty page snapshot written at page creation | Accepted |
| 0306 | Global rate limits: local buckets with periodic Postgres sync | Accepted |
| 0307 | List and revoke own sessions | Accepted |
| 0308 | S3-compatible blob store without an SDK (SigV4 on node:crypto) | Accepted |
| 0309 | Strict test mode: LINORA_REQUIRE_DB=1 turns environment skips into failures | Accepted |
| 0310 | Per-purpose token keys and least-privilege DB roles per tier (SR-07) | Accepted (names updated by 0028) |
| 0311 | Snapshot downloads revalidate (no-cache + ETag); the prod-like stack runs a large compactor | Accepted |
| 0312 | Compact soon after deletes: tail_deletes and a delete rule for large snapshots | Accepted |
| 0401 | Sync client rebase and settlement | Accepted |
| 0402 | React shell and panel bindings (engine DOM outside React, selector hook, deferred panels, framework-free FileController) | Accepted |
| 0403 | Web shell: app-level notices, continuous follow, reconnect triggers, CSRF cookie names, CSP | Accepted |
| 0404 | In-browser demo: a separate static Vite entry (npm run build:demo, relative base) on local in-memory pages (createLocalSession per page), no API, realtime or account code; @linorahq/shared marked side-effect free; served at https://pathikdevani.github.io/linora/demo/ | Accepted |
| 0410 | Sync settlement: rebase on removed ops, retire older batches, stale dedupe verdicts | Accepted |
| 0501 | Remote drag preview slots in a separate shader variant | Accepted |
| 0502 | The engine as a derived cache of the doc: paint-order positions, holes and tail layout | Accepted |
| 0503 | Deferred, budgeted chunk derivation (visible first, idle for the rest, widened bounds) | Accepted |
| 0504 | Chunk insertion instead of tail layouts (creates, moves, growth) | Accepted |
| 0505 | TRANSFORM baked on the GPU (transform feedback) | Accepted |
| 0506 | E2 engine memory: f32 chunk metadata, smaller scratch | Accepted |
| 0507 | Frame clipping by instance ranges and scissor (ED1 request; deferred) | Proposed |
| 0508 | Incremental marquee query: re-derive only the chunks the rect’s change reached | Accepted |
| 0520 | In-place text editing: hidden textarea, doc-side layout, one gesture per edit | Accepted |
| 0521 | Frames as screens: draw and drop into frames, labels, presets, layers drag and drop | Accepted |
| 0601 | MCP context economy: text-first results, short handles, budgeted outlines | Accepted |
| 0602 | MCP edits without a replica: top-key cache, value-checked undo, live change log | Accepted |
| 0603 | Hosted MCP capacity limits: id budget, body caps, session and call caps (SR-02, SR-06) | Accepted |
| 0604 | MCP joins pages through a configurable realtime origin (ws://edge:8080 in the prod-like stack); open_page waits at most 15 s | Accepted |
| 0701 | Doc workers: live follow with journal fallback, byte-accounted LRU | Accepted |
| 0702 | Query semantics and guards in doc workers | Accepted |
| 0703 | Compaction claims, tail counters, write order and retention | Accepted |
| 0704 | Query budgets, wall-clock guard and search admission (SR-01) | Accepted |
| 0705 | Tail counters: signed deltas, CAS saves, quiet reconcile | Accepted |
| 0706 | Large-page doc-worker pool | Accepted |
| 0801 | Load generator: raw-socket workers, ADR 0020 load model, payload timestamps | Accepted |
| 0802 | Load-test topology: Linux containers in one netns; acceptance on separate hosts | Accepted |
| 0803 | Realistic load profile for the 100k target; ADR 0020 mix kept as a stress profile | Accepted |
| 0901 | S3-compatible dev/CI store: Versity S3 Gateway (MinIO images gone) | Accepted |
| 0902 | Production servers run compiled JS (tsc emit to dist/, –no-strip-types) | Accepted |
| 0903 | Container images (one Dockerfile, distroless, non-root) and the prod-like compose | Accepted |
| 0904 | CI on GitHub Actions: check, strict tests, images + smoke, audit; manual bench | Accepted |
| 0905 | LAN mode for the prod-like stack (LINORA_PROD_LAN_HOSTS): realtime URL from the caller’s allowed origin, non-Secure cookies only on listed plain-HTTP LAN hosts, edge forwards Host and replaces X-Forwarded-For | Accepted |
| 0906 | Safe defaults and least privilege for self-hosters: production refuses the published dev secrets (LINORA_ALLOW_DEV_SECRETS=1 for tests), realtime gets only its keyrings, only the compactors write blobs, loopback metrics on edge-facing tiers, prod:env --force refuses while volumes exist | Accepted |
| 0907 | Dependency licence gate: tools/check-licenses.mjs over the lockfile allows MIT, ISC, BSD, 0BSD, Apache-2.0, MPL-2.0 and Unlicense, and fails copyleft, proprietary, missing or unknown licences (npm run check, CI) | Accepted |