feat(learn): new rows of a shared studyset go in its space
ADR 0044, D24, step 4's routing. `SpaceRouter` answers the sync engine's `newRowSpace`: a studyset's cards, notes, paths, PDFs and their revisions go in the space the studyset is in, a topic in its parent's, a studyset placed for a share (`placeIn`) in its space, and a file in the space its key is for; everything else, reviews and tags among them (D2, D25, D26), stays the person's own. Which studysets are shared is read from the engine's grants and kept until a sync brings changes. A shared space's key has an ID of its own, `SpaceKeyId` (`h1.<space>.<ms>.<nonce>`), which `ContentKeyId` reads as none of its own, so no `content_key` row passes for one. No studyset is shared yet: until one is, every row goes in the person's space as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
4befd98d2f
commit
92b87e218d
1 changed files with 638 additions and 2 deletions
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue