dorfteich/apps/collab/src
Claude Opus 4.8 9d288b2ad0
All checks were successful
CD / Build and push images (push) Successful in 3m4s
CI / Lint, typecheck, test (push) Successful in 2m27s
CI / Auth e2e pack (push) Successful in 3m6s
CI / Build container images (push) Has been skipped
CD / Deploy to Test (push) Successful in 9s
CD / Smoke tests against Test (push) Successful in 1m16s
CD / Promote to Int (push) Successful in 11s
Wire real permissions into collab tokens and revocation (#53)
Live editing now obeys the same rules as REST: the collab-token mode comes
from the shared grant resolution, anonymous visitors can join public pages,
and revoking write access flips a running session to read-only within
seconds.

- Anonymous public tokens: `GET /pages/:id/collab-token` is `@Public()` but
  still permission-guarded, so a logged-out visitor gets an `ro` token where
  a `public` grant makes the page readable (404 otherwise). The token's
  `userId` is nullable (shared schema + collab context) for anonymous
  subjects.
- Prompt revocation: the pond-level NOTIFY (#39) now also fires on label
  tree/assignment changes (LabelsService move/remove/assign/unassign), and
  the collab server closes the *actual* WebSocket instead of only sending an
  application-level close message. Hocuspocus' `closeConnections` leaves the
  socket open so the client only re-checks on its ~30s message timeout;
  `closeDocumentConnections` drops the socket so the client reconnects and
  re-authenticates with a freshly-resolved token at once — the "within
  seconds" downgrade the milestone promises.
- Tests: the #52 fixture matrix gains anonymous cases (public grant → `ro`,
  none → 404); a collab db test proves an editor downgraded to reader goes
  read-only on reconnect (its post-downgrade edits no longer reach a peer);
  a new browser `collab-permissions` pack covers the read-only participant
  and the live downgrade end to end (new plain `fixture-editor` account).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EwZ4jR4KFAPvpjWevfUGX1
2026-07-09 18:48:42 +02:00
..
testing Add collab document persistence hooks and content-cache refresh (#35) 2026-07-08 17:06:41 +02:00
access-listener.db.test.ts Wire real permissions into collab tokens and revocation (#53) 2026-07-09 18:48:42 +02:00
access-listener.test.ts Add permission-revocation handling for live and offline sessions (#39) 2026-07-09 07:01:46 +02:00
access-listener.ts Add permission-revocation handling for live and offline sessions (#39) 2026-07-09 07:01:46 +02:00
auth.test.ts Add collab document persistence hooks and content-cache refresh (#35) 2026-07-08 17:06:41 +02:00
db.ts Add collaboration server skeleton (Hocuspocus) with health, container, and CI/CD (#33) 2026-07-08 14:53:44 +02:00
health.test.ts Add collaboration server skeleton (Hocuspocus) with health, container, and CI/CD (#33) 2026-07-08 14:53:44 +02:00
health.ts Add collaboration server skeleton (Hocuspocus) with health, container, and CI/CD (#33) 2026-07-08 14:53:44 +02:00
index.ts Wire real permissions into collab tokens and revocation (#53) 2026-07-09 18:48:42 +02:00
logger.ts Add collaboration server skeleton (Hocuspocus) with health, container, and CI/CD (#33) 2026-07-08 14:53:44 +02:00
persistence.db.test.ts Add wikilink index, backlinks API, and phantom resolution (#47) 2026-07-09 12:54:10 +02:00
persistence.test.ts Add collab document persistence hooks and content-cache refresh (#35) 2026-07-08 17:06:41 +02:00
persistence.ts Add SearchProvider interface with PostgreSQL FTS (#49) 2026-07-09 13:25:05 +02:00
restore-listener.db.test.ts Add version history UI: list, view, diff, restore (#42) 2026-07-09 08:53:42 +02:00
restore-listener.ts Add version history UI: list, view, diff, restore (#42) 2026-07-09 08:53:42 +02:00
server.test.ts Add collab document persistence hooks and content-cache refresh (#35) 2026-07-08 17:06:41 +02:00
server.ts Wire real permissions into collab tokens and revocation (#53) 2026-07-09 18:48:42 +02:00
session-registry.db.test.ts Add Yjs update-log compaction job (#40) 2026-07-09 08:15:55 +02:00
session-registry.ts Add Yjs update-log compaction job (#40) 2026-07-09 08:15:55 +02:00
version-store.db.test.ts Add version snapshots: automatic, named, thinning (#41) 2026-07-09 08:37:07 +02:00
version-store.ts Add version snapshots: automatic, named, thinning (#41) 2026-07-09 08:37:07 +02:00
yjs-content.ts Add wikilink index, backlinks API, and phantom resolution (#47) 2026-07-09 12:54:10 +02:00