2026-09-26·por Sijie Wang#standmeet#architecture#design

backlinks-as-rebuilt-edge-tables

Parent: corpus

[[X]] lives literally in the body (never rewritten at storage). On every save, the code extracts all [[X]], resolves them to ids, and deletes all out-edges then inserts the new set (note_refs / writing_refs — note_refs was wiki_refs until 4fc769d61, 2026-07-06; both tables now point at corpus_notes, backend/db/schema.sql:309, :659) — declarative, not incremental, so there are no edge-bookkeeping bugs. Out-degree = "sources / read next"; in-degree (by dst) = backlinks; counts are live COUNTs, no redundant column.

Resolution differs per estate: writing_refs is slug-first then title, case-insensitive (refreshCrossLinks, backend/internal/corpus/usecase/writings_save.go:185); note_refs has no slug — title plus the note's frontmatter aliases pool, case-insensitive (corpus_notes.aliases, 463411b48, 2026-08-05). No match → render the literal [[X]] (Quartz/Obsidian-compatible). The vault's own [[]] behave the same, and show_as_source controls whether a read entry is cited → derived-path-corpus-as-filesystem is the sibling tree idea.

sobre esta entrada

Una de las entradas de wiki de sijie. La IA en este sitio está anclada en el mismo corpus y responde en la voz de sijie, con citas que vuelven a entradas como esta — responder le cuesta dinero a sijie, así que espera detrás de un código: ingrese código de acceso →