| new file mode 100644 |
| index 0000000..68c0041 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/2026-11-12-mapa-design.md |
| @@ -0,0 +1,455 @@ |
| +# 🤖 mapa — design |
| + |
| +**Status:** draft, revision 1, 2026-11-12. **Nothing is built.** There is |
| +no module, no schema, no hub repository and no CARLOS app. This line is the |
| +one to keep current. |
| + |
| +**Consumed suite rulings.** This spec consumes `oficina/suite` |
| +`docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md` at |
| +**revision 11, commit `91affa1`**. It cites rulings 1, 2, 3, 6, 7, 8, 9, 14 |
| +and 15 and never restates them (suite ruling 7). §7 proposes a new contract |
| +call, which would be revision 12 of that doctrine. That is a proposal to |
| +the suite, and nothing here is its ruling. |
| + |
| +*Mapa* is Spanish for map. The name is Paul's. It fits a knowledge base |
| +whose structure is the set of links between its pages. |
| + |
| +--- |
| + |
| +## 0. The one rule |
| + |
| +**Mapa is the team's knowledge base. Fichas is the team's database. Docs is |
| +where the team publishes.** Paul, 2026-11-12, in his words: *"In |
| +traditional terms, Fichas is database, Mapa is knowledge base."* |
| + |
| +Every boundary below follows from that sentence: |
| + |
| +- If something wants typed fields, sorting, grouping or a table, it |
| + belongs in Fichas. Mapa embeds it (§7). |
| +- If something wants pagination, page layout, or DOCX/PDF export, it belongs |
| + in Docs. Mapa can promote a page into one (§9). |
| +- If something has no owner, it does not belong in Mapa. Mapa is an app of |
| + record: it owns its pages, answers for them, and is the only thing that |
| + may delete them. memoria indexes Mapa like any other sibling and holds |
| + nothing of its own (memoria decision 7, as fichas §0 reads it). |
| + |
| +--- |
| + |
| +## 1. Decisions, and who made them |
| + |
| +The suite's specs keep this table because when the reasoning behind a |
| +decision lives only in a commit message, the decision gets argued again. |
| +**The `Who` column matters: most of this table is proposed by the spec |
| +author and has not been ruled on.** Do not read a proposal as a ruling. |
| + |
| +| # | Decision | Rejected | Who, when | |
| +|---|---|---|---| |
| +| 1 | **Mapa is a sixth per-team instance app**, with its own DEK and its own origin at `<team>.mapa.oficina.works` | Wiki pages as a Docs mode, because Docs' identity is "the same document everywhere": paginated, WYSIWYG, DOCX/PDF out. Notes as a memoria feature, because memoria is not an app of record. Notes as a Fichas card type, because Fichas entries are append-only and its unit is a typed record, not prose | Paul, 2026-11-12 ("one more Oficina app… probably called Mapa") | |
| +| 2 | **Linked notes, not a spatial mindmap.** The unit is a page of prose. Structure comes from `[[links]]` in the text. A graph view may come later as one way of looking at the pages | A canvas of nodes and edges as the primary surface | Paul, 2026-11-12 | |
| +| 3 | **Fichas = database, Mapa = knowledge base.** Mapa has no properties, no table views and no typed fields | Notion's database-inside-a-page | Paul, 2026-11-12 | |
| +| 4 | **Embeds go both ways.** A Fichas card or saved view can be embedded in a Mapa page, and a Mapa page in a Fichas card | One-way references only | Paul, 2026-11-12 | |
| +| 5 | **Daily notes.** Each person gets one page per day, created on first open, and today's note is the landing page | A blank "new note" as the entry point | Paul, 2026-11-12 ("I'd love to see daily notes") | |
| +| 6 | **One shared namespace per team.** `[[Acme]]` means one page for everyone in the team | Per-person namespaces with team pages layered on top | Paul leaned yes, 2026-11-12 ("Shared namespace makes sense?"); author recommends. **Confirm** | |
| +| 7 | **Only team pages hold titles in the namespace.** Private material is daily notes and untitled scratch pages. Both may link *to* team pages | Private titled pages, which either collide with a teammate's `[[Acme]]` or reveal that a private page exists by refusing the title | **Proposed** (§3.3) | |
| +| 8 | **Links point at page ids, not titles.** A rename keeps every link working, and the old title stays as an alias | Title-keyed links, which break or silently re-point on rename | **Proposed** | |
| +| 9 | **The body is Markdown. A page is a document, not an outliner.** Paragraphs and list items are addressable blocks with stable ids | A strict bullet outliner (Logseq, Roam), which makes every page a tree and every sentence a bullet | **Proposed — ask Paul** (§3.4) | |
| +| 10 | **Saves are revision-checked. There is no real-time co-editing in v1** | Docs' collaboration machinery, which is built for paginated layout and costs more than a knowledge base needs while daily notes are single-writer | **Proposed** | |
| +| 11 | **Embeds are a suite contract call, not glue between two apps.** The owning app serves a typed, structured payload for a named asker, and the embedding app renders it with a shared estilo partial (§7) | An iframe from the owning origin, which needs a session at every sibling and relaxes framing refusals. Server-rendered HTML handed between siblings, which lets one app inject markup into another | **Proposed** | |
| +| 12 | **SQLite, cgo-free (`modernc.org/sqlite`), like every sibling. Bodies are sealed. Search runs over an in-memory index rebuilt from sealed rows on wake** | A plaintext FTS5 table on disk, which puts readable passages into the replicated file (memoria `index.go`; fichas §4.1) | **Proposed** | |
| +| 13 | **Export is an Obsidian-compatible Markdown vault.** It covers the team's pages, plus the exporter's own private pages | No export; a proprietary format | **Proposed** | |
| + |
| +## 2. What Mapa is, and is not |
| + |
| +**Is:** a per-team instance app holding pages of Markdown prose, the links |
| +between them, each person's daily notes, and references to items in |
| +sibling apps. Those references render as embeds, resolved per viewer at |
| +render time. |
| + |
| +**Is not:** |
| + |
| +- **Not a database.** Decision 3. If a page grows a table of records, those |
| + records want to be Fichas cards. |
| +- **Not a publishing tool.** It paginates nothing and exports nothing but |
| + Markdown (decision 13). §9 hands a page to Docs instead. |
| +- **Not an app of record for anything it did not author.** An embed is a |
| + reference, not a copy (§7.4). The owning app decides whether to resolve |
| + it, every time. |
| +- **Never an actor.** Suite ruling 9. Mapa writes as itself only into its |
| + own tables. When a daily note is created on first open, that write names |
| + the person who opened it. |
| + |
| +## 3. The data model |
| + |
| +### 3.1 Objects |
| + |
| +- **Page:** `(id, kind, rung, owner, title?, revision, created_at, |
| + updated_at)`, with a sealed body. `kind` is `page`, `daily` or `scratch`. |
| + `rung` is `team` or `private` (§3.3). It is versioned (§5). |
| +- **Daily note:** a page with `kind = daily`, keyed `(owner, date)` and |
| + unique on that pair. It has no title in the namespace. It is displayed as |
| + the date in the owner's own time zone, and it is created on first open, |
| + never ahead of time. |
| +- **Alias:** `(page_id, title)`. Every title a team page has ever had, |
| + sealed. It resolves old links and old searches (decision 8). |
| +- **Link:** `(from_page, from_block, to_page)`. The link graph. A link to a |
| + title nobody has created yet is held as `(from_page, from_block, |
| + pending_print)`, where `pending_print` is a keyed one-way print of the |
| + normalised title. When a page takes that title, its pending links bind to |
| + it. |
| +- **Reference:** `(from_page, from_block, app, item, view?)`. It points at |
| + a sibling's item and holds no copy, title or snippet (fichas decision 5, |
| + adopted). |
| +- **Event:** `(at, actor, object, verb, revision)`. One row for every |
| + write, as in Fichas. The in-memory index and S1 (§8) are both fed from |
| + this log, so a write that logs no event is invisible to both. |
| + |
| +### 3.2 Blocks |
| + |
| +Backlinks show the lines around a mention, not just the page that contains |
| +it. That needs addressable blocks. In this design a block is a paragraph, a |
| +list item, a heading or a code fence. Each carries a stable id kept in the |
| +sealed body, so links and references can say which block they came from. |
| +Editing a block's text keeps its id. Splitting a block keeps the id on the |
| +first half. |
| + |
| +### 3.3 Rungs, and the namespace |
| + |
| +The doctrine's ladder (ruling 15) has three rungs. Mapa v1 uses two: |
| + |
| +| Kind | Default rung | Title in namespace? | Who opens it | |
| +|---|---|---|---| |
| +| `page` | `team` | yes, unique per team, case- and accent-folded | every member | |
| +| `daily` | `private` | no (shown as its date) | its owner | |
| +| `scratch` | `private` | no (shown as its first line) | its owner | |
| + |
| +- **The `granted` rung is not in v1.** Sharing a daily note with one |
| + colleague is a real want, but it is a third rung with its own S2 |
| + semantics, and nothing yet asks for it. Its trigger is in §12. |
| +- **A private page can be made team, and that is when it takes a title.** |
| + If the title is already taken, the person is asked to pick another or to |
| + merge into the existing page. A teammate's private material never claims |
| + a title, so a clash can never reveal that private material exists. |
| +- **Moving a team page to private is not offered.** Taking a page that |
| + others link to out of the shared namespace would break their links, and |
| + would tell them it now exists privately. Deleting it is the verb, and it |
| + goes through a confirm page. |
| +- **Backlinks are ruled per viewer.** The Acme page shows mentions from |
| + team pages to everyone, and mentions from a person's own daily or scratch |
| + notes to that person only. **It never shows a count of mentions the |
| + viewer cannot see** (fichas §9: "render nothing, and never a count"). |
| +- **Leak-list entry.** A team page's link rows record that some private |
| + page links to it, as plaintext page ids in the database file (§4). That |
| + is structure, not content, and it is stated in the README's leak list |
| + rather than hidden. |
| + |
| +### 3.4 Document or outliner? — for Paul |
| + |
| +Reflect and Obsidian are document-shaped: prose, with lists where you want |
| +them. Logseq and Roam are outliners: every line is a bullet in a tree, and |
| +blocks are the only unit. Daily notes are popular in both. |
| + |
| +The author proposes **document**. Mapa's pages are meant to grow into |
| +reference material that people read, and an outliner makes reading |
| +material a tree of fragments. Blocks are still addressable (§3.2), so |
| +backlink context and block embeds are both available without forcing |
| +bullets. **This is Paul's call**, and it changes the editor more than |
| +anything else in this spec. |
| + |
| +## 4. The seal boundary |
| + |
| +Mapa's bodies, titles and aliases are free text, so under fichas §4's |
| +defaults they are **sealed**. The plaintext in the database file is: |
| + |
| +- ids, kinds, rungs, owners, timestamps and revisions; |
| +- the link graph: `(from_page, from_block, to_page)` as ids; |
| +- references: `(app, item)` ids; |
| +- keyed prints: pending-link titles and the title-uniqueness check. |
| + |
| +Title uniqueness is enforced on a keyed print of the folded title, so the |
| +database can refuse a duplicate without holding the title in the clear. |
| +The print leaks equality: two pages with the same folded title are visibly |
| +the same. That is the uniqueness rule, so the leak is the point. |
| + |
| +**Search reads sealed content through the in-memory index** (decision 12), |
| +which is rebuilt from sealed rows when the instance wakes. Sealed means |
| +"not queryable by SQL against the durable file", not "not searchable" |
| +(fichas §4.1). |
| + |
| +## 5. History |
| + |
| +Every write is logged with its actor (§3.1). Page bodies keep their |
| +revisions for a bounded window, and restoring a revision works inside that |
| +window, using fichas decision 2's shape. Restore produces a **new** |
| +revision. It never reissues an old one (doctrine §6.6, revision 11: a |
| +revision names one byte sequence for ever). **Revisions are random int63 |
| +values and cursors carry random nonces**, the shape Docs and Fichas adopted |
| +for revision 11. |
| + |
| +## 6. The surface |
| + |
| +The rastrillo floor applies. **Every screen works with JavaScript off.** |
| +Scripts add speed, and are never a precondition. |
| + |
| +- **Today.** `/` redirects to today's daily note. The note is created on |
| + first open by `POST` from a one-button page when scripts are off, and |
| + transparently by script. A `GET` never writes. |
| +- **A page.** It shows the rendered Markdown, then backlinks grouped by |
| + source page with their context block, then "unlinked mentions" (§6.2). |
| +- **Editing.** The scriptless floor is a `<textarea>` of Markdown and a |
| + Save button, revision-checked (decision 10). Script adds: live preview, |
| + `[[` autocomplete over titles and aliases, saving on pause, and paste |
| + handling for links. A conflicting save is merged by block when the two |
| + edits touch different blocks. When they touch the same block, the second |
| + author sees both versions and chooses. Nothing is lost silently. |
| +- **⌘K.** One box that searches titles, aliases and bodies, and creates a |
| + page when nothing matches ("Create *Acme*"). Without scripts it is |
| + `GET /search?q=` as a full page. |
| +- **Links.** `[[Title]]`, `[[Title|shown text]]`, and `[[Title#block]]` for |
| + a block. A link to a missing page renders as a pending link, and |
| + following it offers to create the page. |
| +- **Embeds.** `![[fichas:…]]` and friends (§7.3) render as cards in the |
| + page. |
| +- **Calma.** estilo's theme and the Oficina door for sign-in. Icons are |
| + the only colour. |
| + |
| +### 6.1 Search must be fast — numbers, not adjectives |
| + |
| +| Measure | Target | Precedent | |
| +|---|---|---| |
| +| Server time per typeahead query, at 10,000 pages | p95 ≤ 5 ms | Fichas measured 0.37 ms per search over 15,000 records | |
| +| Keystroke to results painted, warm instance, same region | p95 ≤ 100 ms | | |
| +| Cold wake to first search answered | ≤ 1 s at 10,000 pages | Fichas measured 225 ms cold load at 15,000 records | |
| + |
| +The in-memory index is fed by the event log, like Fichas' `index.go`. |
| +Titles and aliases are prefix-matched and rank first. Bodies are matched by |
| +term, ranked on BM25-style scores, and boosted by backlink count. Gates |
| +measure these targets in CI at the stated size (§11), so they are tested |
| +claims, not hopes. |
| + |
| +### 6.2 Unlinked mentions |
| + |
| +A page's text that matches another team page's title or alias, but is not |
| +linked, is shown on the target page as "Mentioned without a link", with a |
| +one-click "Link it". Every serious note tool has this, and it is how a |
| +knowledge base links itself up after the fact. The matching is computed |
| +from the in-memory index and is never stored. It follows the same |
| +per-viewer rule as backlinks. |
| + |
| +## 7. Embeds: a suite contract call (proposed revision 12) |
| + |
| +### 7.1 What has to be true |
| + |
| +1. **The viewer, not the embedding app, decides what shows.** An embedded |
| + Fichas card renders only if the person looking may open it in Fichas, |
| + checked at that moment. |
| +2. **"Not visible" renders nothing and never a count** (fichas §9). A page |
| + with three embeds, one of which the viewer may not open, shows two. It |
| + does not show a locked box. |
| +3. **An unavailable sibling is loud** (doctrine §6.3). "Fichas did not |
| + answer", naming the app, with a retry link. It is never silently empty. |
| +4. **No copy at rest.** The embedding app stores the reference only. Embed |
| + content is never written to its database and never enters its search |
| + index, or search would leak what the embed hides. |
| +5. **Scriptless.** The page renders with its embeds server-side. |
| +6. **No markup crosses apps.** One app never hands another app HTML to |
| + insert. |
| + |
| +### 7.2 The call |
| + |
| +**S9 embed:** sibling → sibling, consumer token **+ named asker**, which is |
| +S2's credential shape (ruling 8). S4 and S5 are not reserved (doctrine §6), |
| +and S7 and S8 are taken, so the next free number is S9. |
| + |
| +- **Request:** `(item, view?, asker)`, batched with a cap of 32 per call. |
| +- **Response:** one result per item, using S2's four values. `VISIBLE` |
| + carries a typed payload. `NOT_VISIBLE` carries nothing. `STALE` and |
| + `UNKNOWN` carry nothing and are rendered loudly. |
| +- **Payload: structured, not HTML.** It is one of a small closed set of |
| + shapes in the suite module, each with a strict decoder: |
| + - **`card`**: a title, up to 12 `(label, value, kind)` fields, the last 3 |
| + entries `(kind, actor, at, excerpt)`, and an open-in-app URL. |
| + - **`list`**: a title, column labels, up to 25 rows of cells plus a row |
| + URL, `more: bool`, and an open-in-app URL. Rows are already ruled for |
| + the asker, per row, by the owning app (fichas §9: a card differs per |
| + viewer). |
| + - **`page`**: a title, up to 40 blocks of a restricted Markdown subset |
| + (paragraph, heading, list, quote, code, link), `more: bool`, and an |
| + open-in-app URL. Embeds inside an embedded page are not expanded: |
| + embeds go one level deep, so cycles cannot happen. |
| +- **Never cached.** The S2 rule carries over: a payload crosses no request |
| + boundary. The embedding app fetches on every render, concurrently, with |
| + one deadline for the whole page (proposed 400 ms). Anything past the |
| + deadline is `UNKNOWN`. |
| +- **URLs in a payload are checked.** The suite client refuses any URL whose |
| + `<team>` label differs from its own, using the existing hostile-hosts |
| + fixture (doctrine §4.1). |
| +- **Rendering is one estilo partial per shape.** A Fichas card therefore |
| + looks the same inside Mapa as it does inside Fichas' own lists. |
| + |
| +**Why a named asker is acceptable here.** Doctrine §6.1's reasoning holds |
| +unchanged. A same-team sibling can already read every live item through |
| +S3 since revision 10, so naming the asker adds nothing to what it can read. |
| +S9 only lets the owning app say *less* than S3 would, by ruling per person. |
| + |
| +### 7.3 Syntax and storage |
| + |
| +`![[fichas:<item-id>]]` embeds a card, and `![[fichas:view/<view-id>]]` |
| +embeds a saved view. Pasting an Oficina item URL into the editor offers to |
| +turn it into an embed. Each embed is stored as a Reference row (§3.1), so |
| +"what does this page embed" is a query and not a parse. |
| + |
| +The reverse direction is the same call served by Mapa. A Fichas card holds |
| +a reference to a Mapa page and asks Mapa's S9 for a `page` payload for the |
| +viewer. |
| + |
| +### 7.4 At-rest knowledge |
| + |
| +A team page that embeds a card the viewer may not open still records, in |
| +Mapa's database file, that the reference exists. Fichas §9 left this |
| +unresolved for its own references, and it is the same problem here. Since |
| +revision 10 a sibling holds every live item anyway, so this is not a new |
| +class of exposure. It goes in the leak list. |
| + |
| +### 7.5 What it needs from Fichas |
| + |
| +- **Saved views** for `list` embeds. Fichas' list state already lives in |
| + the URL (`list.go`), so a saved view is a named, stored copy of that |
| + state, per card type, with an id. Open questions for Paul are in §13. |
| + **It must not be built while `feat/level-up` is in flight** (as of |
| + 2026-11-12, about 4,600 uncommitted lines in `../fichas-level-up` |
| + touching the same handlers and templates). |
| +- **An S9 server half for `card` and `list`.** |
| +- **A reference field kind** on cards, for the reverse direction. This |
| + overlaps the "link to another card" field already open with Paul. |
| + |
| +### 7.6 Mentions across apps (later) |
| + |
| +A Fichas card showing "Mentioned in 4 Mapa pages", with the lines around |
| +each mention, is arguably worth more than embeds, because it needs no |
| +deliberate act. It would be a second call: Mapa answers "which blocks |
| +visible to this asker reference item X". It is held to slice 3 so that S9 |
| +is proved first. |
| + |
| +## 8. memoria |
| + |
| +Mapa serves the suite contract's producer half, S1, S2 and S3, from |
| +**slice 1**, using the suite module's `RunProducer` and the conformance |
| +harness in CI, as Docs and Fichas do at revision 11. |
| + |
| +- **S1 lists every live page,** daily and scratch pages included (revision |
| + 10: "hold private too, check per person"). `gone` means deleted. |
| +- **S2 is Mapa's own read check:** `team` → every member; `private` → its |
| + owner. |
| +- **S3 serves the page as Markdown, with its title.** Embeds are rendered |
| + as their reference string and never expanded. memoria gets Fichas |
| + content from Fichas, ruled by Fichas. |
| +- **Egress follows doctrine §8 unchanged.** Private pages are not embedded |
| + for semantic recall until Paul rules on doctrine §14. memoria finds them |
| + by their own words only, and says so. |
| +- **Later, not in the contract today:** S3 could carry outbound links, so |
| + memoria can rank by the link graph and use pages like `[[Acme]]` as |
| + anchors for answers. It is a proposal for a later suite revision, and |
| + nothing in slice 1 waits on it. |
| + |
| +## 9. Promote to Doc (later) |
| + |
| +"Promote to Doc" creates a Docs document from a team page's Markdown, using |
| +Docs' Markdown import, through the person's own session: the doctrine §7.1 |
| +hand-off, not a sibling write. The Mapa page keeps a reference to the new |
| +document and says it was promoted. The page is not deleted: the thinking |
| +stays in Mapa and the published version lives in Docs. |
| + |
| +## 10. Where things live |
| + |
| +- Repository: `amadan.net/oficina/mapa`, to be created on the hub when |
| + Paul approves this spec. |
| +- CARLOS: app `mapa`, account `bds`, channel `edge`. Lone shape first, as |
| + Fichas did. The canonical origin is `mapa.oficina.works`, and team |
| + instances follow `teams/provision-team.py`. |
| +- Framework: rastrillo, from the current module path. Not the frozen |
| + `github.com/carlosframework` path (see the busy-rule and rastrillo-path |
| + rollouts). |
| +- Sign-in: the Oficina door, from estilo. The keymail continuation page is |
| + ported from Docs' `auth_navigation.go` from the first commit, because |
| + every new app has hit that CSP trap. |
| + |
| +## 11. Testing gates |
| + |
| +The suite conformance harness for S1/S2/S3 runs in CI from slice 1, and |
| +for S9 from slice 2. On top of that: |
| + |
| +1. **Per-viewer backlinks.** A private daily note linking to a team page |
| + shows on that page for its owner and for nobody else. The other viewer |
| + sees no count, no gap and no placeholder. |
| +2. **Title collision cannot reveal anything.** Making a private page team |
| + with a title that exists asks to merge. No path lets a private page |
| + claim a title. |
| +3. **Renames keep links.** After renaming, every old link and every old |
| + `[[Old title]]` typed afterwards resolves to the page. |
| +4. **The plaintext gate.** Dump the database file. No title, body, alias or |
| + embed payload appears in the clear. This is Fichas' gate, ported. |
| +5. **Embed rules** (slice 2). `NOT_VISIBLE` renders nothing. `UNKNOWN` |
| + renders loudly and names the app. No payload byte reaches the database |
| + or the index. Embedded pages do not expand their own embeds. |
| +6. **Search speed at size.** A 10,000-page synthetic fixture. The §6.1 |
| + targets are asserted, not printed. |
| +7. **Scriptless.** `make browser` walks today's note, ⌘K, create, link, |
| + save and conflict with JavaScript disabled, then again enabled, and |
| + fails loudly on any console error. |
| +8. **Event completeness.** Every write path is checked to log an event, |
| + with a mutation test proving the check works. |
| + |
| +## 12. Deliberately not built |
| + |
| +| Thing | Trigger | |
| +|---|---| |
| +| Real-time co-editing | Two people editing one team page at once, in real use, often enough that block-merge conflicts annoy | |
| +| The `granted` rung | Someone asks to share a daily or scratch note with one colleague | |
| +| Properties, tables, typed fields | Never in Mapa. Decision 3: they are Fichas | |
| +| Graph view | The knowledge base has enough pages that a map tells you something a backlink list does not | |
| +| Folders | Never as the primary structure. Links and search are the structure | |
| +| Public publishing of pages | A real need to publish. Docs is the publishing path first | |
| +| Plugins | Never as a general mechanism | |
| +| Import from Obsidian, Reflect, Notion | Paul has a vault to bring. Markdown with `[[links]]` makes Obsidian import cheap | |
| +| Native Mac app | The web app has been lived in | |
| +| AI: "summarise my week", suggested links | After memoria's AI answer has been lived with. Doctrine §8 governs every byte of it | |
| + |
| +## 13. Open — for Paul |
| + |
| +1. **Document or outliner** (§3.4)? The author proposes document. |
| +2. **Confirm the shared namespace** (decision 6), and that **only team |
| + pages hold titles** (decision 7). |
| +3. **Saved views in Fichas:** personal, team, or both? And when a card type |
| + changes, does a view that filters on a removed field break loudly or drop |
| + the filter? The author proposes team views, and breaking loudly. |
| +4. **A Fichas reference field** (§7.5): is it the same thing as the "link |
| + to another card" field already open with you, generalised to any |
| + Oficina item? |
| +5. **Slice 1 without embeds** (§14): acceptable, given that embeds need |
| + Fichas work that cannot start until `feat/level-up` lands? |
| + |
| +## 14. Slices |
| + |
| +**Slice 1: a knowledge base someone can live in.** |
| +1. The repo, rastrillo scaffold, schema, seal, event log and plaintext |
| + gate. |
| +2. Team pages, the shared namespace, aliases, `[[links]]`, backlinks with |
| + context, and pending links. |
| +3. Daily notes and scratch pages, both private. |
| +4. The in-memory index, ⌘K, the search page, and gate 6's speed fixture. |
| +5. The scriptless editor, then the script layer: preview, `[[` |
| + autocomplete, autosave, block-merge on conflict. |
| +6. The S1/S2/S3 producer half and the conformance harness. Wire it to |
| + memoria behind the same hookup Paul is still to approve for Docs and |
| + Fichas. |
| + |
| +**Slice 2: embeds.** |
| +1. Suite revision 12: S9, its fixtures, and estilo's three partials. |
| +2. Fichas: saved views (after `feat/level-up` lands), the S9 server half, |
| + and the reference field. |
| +3. Mapa: embeds of Fichas cards and views, and the S9 server half for |
| + pages. |
| +4. Fichas: embedded Mapa pages on cards. |
| + |
| +**Slice 3:** mentions across apps (§7.6), unlinked-mention linking at |
| +scale, Promote to Doc (§9), and Markdown vault export (decision 13). |