Problem
PR #1380 (keyline) builds the sidebar from Card embeds alone, starting at the Home. Paths keep defining URLs and breadcrumbs, but they no longer place anything in the sidebar. ListDocuments doesn't change: document counts on a keyline build match production. What changes is that a page only appears in the sidebar if its parent has a Card for it, and most existing sites never added those Cards.
We tested 7 live sites on 2026-11-24 with a read-only script that replays keyline's rule on each site's published content. Its results match what a keyline build shows on all 7:
seedteamtalks.hyper.media, seed.hyper.media, xlavapies.com and lunaticoin.blog show only Home and "No pages in navigation".
seed.horacioh.com reaches 1 page, delibera.ethosfera.org 2 and gabo.es 13.
Editors will read this as lost content, even though every document is still listed in All Documents and Sub documents. Both sit in the "…" menu, where few people look.
Most hidden documents are hidden by design, because a query already lists them: 2,237 of seedteamtalks' 2,246 and 264 of xlavapies' 266. What's left is small but real: pages that lived in a path hierarchy without a Card from their parent, like horacio's Projects and its weekly reviews, gabo.es's Hypertext reading list, or ethosfera's Feed.
Keyline is ready to merge, and it shouldn't ship without a way back.
Related: New Space Browser, Library or All Documents Design, All Documents - directory.
Solution
No one's content changes automatically. Two rule changes bring back the top-level sections of several sites with no edits, and editors get a guided way to put the remaining pages back where their paths had them.
What the sidebar shows
Sidebar rows come from two sources, in page order:
Cards that follow the latest version, as in keyline today.
The source document of each Query block. The Home's query over Writing's children makes Writing a row. Query results never become rows.
A query whose source is its own page adds nothing. Collections, and pages like Podcasts or Community, don't expand, because their own query already lists their children.
Both query modes count ("Children" and "AllDescendants"). Each source gives one row, merged with any Card for the same document. Loops stop as they do for Cards.
Header navigation, inline links and Content embeds still don't count.
A Home that is a Collection (seedteamtalks) or lists its own children (seed.hyper.media) has an empty tree by design.
Navigation status
Editors see one of four statuses for each document on the All Documents page:
Status | Meaning | Action |
|---|---|---|
In navigation | The sidebar reaches it. | none |
Listed by a query | A page above it lists its own children with a query: a Collection, or a page like Podcasts. | none |
Not in navigation | It has a path parent, but no Card or query leads to it. | Add to navigation, or restore all |
Excluded | Private documents, agents, triggers, moved documents. | none |
The status is computed from the space listing that All Documents already loads, which on keyline carries each document's navigation targets. No document content is loaded, and only published versions count.
Restoring navigation
Editors can use "Add to navigation" on any "Not in navigation" row, select rows in bulk with the existing (currently hidden) checkboxes, or use "Restore navigation from paths" for all of them at once.
The Card goes into the page's nearest existing path ancestor. If that ancestor isn't in navigation either, its missing Cards are added too, up to the first ancestor that is.
New Cards are appended at the end of the page, sorted A–Z by title.
A Card already pinned to an old version gets &l in place instead of a duplicate. A page that already has a latest Card is skipped. Inline links and Content embeds don't block an explicit add.
Each parent page gets one change, through the existing durable worker on desktop and web, which handles retries and the parent's open drafts. The automatic Card added when a new page is first published stays as it is.
A confirmation dialog lists every page that will change and the Cards each one gets. Any page can be unticked.
Sidebar entry point
An "All documents" entry for everyone: an icon next to + in the Documents header (recommended), or the first row of the list. See the open decisions.
When the Home has no navigation rows, the empty state says the pages still exist and links to All Documents.
The sidebar shows no counts, so it still never loads the whole space listing (5 MB on seedteamtalks).
Sketches
All sketches use real pages from the sites above.
Sidebar entry point on seed.horacioh.com. With query sources counted, the Home's two queries add Short Posts and Writing, and its Card adds Resources. All three are Collections, so none of them expand.

Empty by design on seedteamtalks.hyper.media, whose Home is a Collection. The empty state explains that the pages are still there.

All Documents, editor view. It adds a summary bar, status tabs, a Navigation column with a "Goes in" hint taken from the path, checkboxes, and a row action. Readers see today's page unchanged. The Authors, Citations and Comments columns stay; they're left out here only to fit.

Adding one page whose parents are missing. The dialog lists the whole chain it will add.

Restore navigation from paths on seed.horacioh.com, and on gabo.es, where pinned Cards are updated in place.

After restoring seed.horacioh.com. The sidebar matches the old path tree, and the Home page gained two Cards at the end.

Results on the 7 sites

Site | Documents | Sidebar today on keyline | With query sources | After restoring | Restoring adds |
|---|---|---|---|---|---|
67 | 1 | 3 | 17 | 13 Cards in 2 pages | |
76 | 2 | 20 | 46 | 24 Cards in 7 pages | |
80 | 0 | 3 | 8 | 5 Cards in 2 pages | |
266 | 0 | 2 | 2 | nothing | |
164 | 13 | 13 | 50 | 24 Cards and 6 pinned Cards updated, in 9 pages | |
115 | 0 | 0 | 0 | nothing, empty by design | |
2,246 | 0 | 0 | 0 | nothing, empty by design |
Every document outside the sidebar is either listed by a query (hidden by design) or excluded. Across the 7 sites, a full restore adds 66 Cards and updates 6 pinned ones, in 20 pages, and no page ends up listing the same children twice.
System changes
Backend: the indexer's navigation list also includes query sources. A new indexed flag says whether a page's own query lists its children. A migration reindexes keyline dev builds; production already reindexes when it upgrades to keyline.
Shared code: the client-side fallback mirrors the backend rule. A helper computes statuses and restore plans, a planner adds Cards without the publish worker's skip rules, and a batched worker operation publishes one change per page.
UI: All Documents gets the summary bar, statuses, filter, actions and confirmation. The sidebar gets the entry point and the empty state.
Docs: sidebar-navigation.md describes the new rule and the way back.
User stories
As an editor whose sidebar went empty after the update, I can see right away that my pages still exist, and open All Documents in one click.
As an editor, I can see which pages are missing from the sidebar, why, and where their path says they belong.
As an editor, I can restore the structure my paths had in one confirmed step, and I see every page that will change before anything is published.
As an editor, I can put back a single page, and its missing parents come with it.
As a reader, I see no new statuses or actions, and an empty sidebar always tells me where the pages are.
Open decisions
Entry point: an icon next to + (recommended: no extra row, and the empty state carries a labelled link), or the first row of the list (easier to discover, but pushes Home down).
Order of restored Cards: A–Z matches the old sidebar, but reads oddly on the page for a dated series. Horacio's weekly reviews come out as July 1–7, July 22–28, July 8–14, then June and May. Newest first is the alternative.
Keyline's author has to agree to query sources as rows, the new flag, and explicit adds that skip the publish worker's rules.
Scope
One PR stacked on keyline and targeting it, so #1380 never ships without the way back. The phases, in dependency order:
Rule and data (backend): query sources in the navigation list, the "lists its own children" flag and the reindex migration. Depends on keyline; everything else depends on it.
Status and restore logic (shared code): the status helper, the restore planner and the batched worker operation on desktop and web. Depends on phase 1.
UI: All Documents for editors, plus the sidebar entry point and empty state. The actions depend on phase 2; the entry point and empty state only need phase 1.
Docs and verification: the sidebar navigation docs, Go and TypeScript tests, and before and after screenshots on a test space.
Timeframe: the team sets it when scheduling. It has to land before keyline is released.
Rabbit Holes
Drag and drop, onto All Documents rows or into the sidebar. It helps place a page under a different parent, but explicit actions cover the migration.
Counting the header navigation as sidebar rows.
Live "not in navigation" counts or badges in the sidebar. They would need the full space listing or a new server endpoint.
Hiding the "Could not load page" row when a query's source has no document. None of the 7 sites has one.
A "Convert to Cards" action for Collection Homes like seedteamtalks.
Smarter or manual ordering of restored Cards.
Navigation for private documents inside private parents.
Opting out pages created by automations, such as ethosfera's Feed run logs. Editors can untick them for now.
Checking whether keyline's new permission checks change which documents get indexed. Counts match production on these 7 sites, but it hasn't been tested directly.
No Gos
No automatic content changes when a site upgrades.
No changes to paths, ListDocuments, breadcrumbs, or create and move destinations.
No Cards for private documents, agents or triggers.
Collections and pages that list their own children never expand in the sidebar.
No navigation statuses or restore actions for readers.
The sidebar never loads the whole space listing.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime