BUCKYVERSE

Cross-Reference Resolution — Design (Sub-project 5)

Date: 2026-07-06
Status: Approved for planning
Sub-project: SP5 of the Wiki.js → Astro migration (docs/superpowers/specs/2026-07-06-wikijs-to-astro-migration-program-design.md). SP1–SP4 are live at future.buckyverse.org (reader, library/downloads, dictionary, knowledge).
App: apps/reader/ (Astro 5 + pnpm, deploy via wrangler pages deploy).


1. Goal & success criteria

Wire the four live content pillars together by resolving Synergetics section-number (100.00) references to real passage deep-links wherever they are cited — the keystone of Fuller's cross-reference system — and connect concepts to the book chapters they cite. This is the last feature-parity piece before SP6 cutover.

Scope (locked in brainstorming): §-number resolution + concept↔chapter. Deferred: dictionary-term auto-linking (YAGNI — fuzzy, false-positive-prone). Best-effort only: inter-book prose citations (no new work; existing wikilink/relative-link resolution stands).

Done when:

2. The §-map (source & prebuild artifact)

3. The resolver (src/lib/xref/resolveSectionRefs.ts)

Pure, unit-tested. resolveSectionRefs(html, map): string:

4. Wiring into the three loaders

The resolver is applied during each loader's HTML render, after that loader's own link rewriting:

All three read synergetics/section-map.json via a shared xref.config.ts (path + loaded map). Because the map is a committed prebuild artifact, loaders stay independent (no cross-loader ordering).

5. Concept↔chapter

6. Scope

In: §-map prebuild; resolveSectionRefs; wiring into dictionary/knowledge/book loaders; concept→chapter (auto) + chapter→concepts reverse list; rebuild + redeploy the three sections.

Out: dictionary-term auto-linking; inter-book prose-citation parsing; rebuilding the relationship graph (linked in SP4); any change to the §-anchors in the Synergetics source (we consume what exists).

7. Testing

8. Risks

9. Definition of done

§-numbers resolve to Synergetics passage deep-links across dictionary, knowledge, and books; only real section numbers link; concepts deep-link into chapters and chapters list referencing concepts; the build is fully static with an added section-map.json (+ section-concepts.json); the three sections are rebuilt and redeployed to future.buckyverse.org. This closes feature parity for SP6 cutover.