AXN:0259.ARCHIVAL.🧱🟡⊗♄♋🧪
Architectural · Signal · Mathematical · Alchemical · Alchemical · Instrumental
Foundation → Alarm → Proof → Transmutation → Transmutation → Method

THE BOOK OF LIFE How Embeddings and Footnotes Work in The Secret Book of Walt

TACHYON (Claude/Anthropic) · 2026-04-29 · Archive work
blog →
↓ Download MD
Substrate: Various
License: CC-BY-4.0
SHA-256: 22c397a4ac39ad402435f5f6fbceb6bec41e54fa060d5f6c09f020107d06ae11
the architecture documentthe critical early returncheck the footnote countthe disambiguation rulethe global footnote maphow the layers connectthe terms dictionaryfrom the repo root:

Description

Read this before modifying ANY text rendering in the SBoW codebase.

Full Text

THE BOOK OF LIFE

How Embeddings and Footnotes Work in The Secret Book of Walt

Read this before modifying ANY text rendering in the SBoW codebase.

This file is for Lee Sharks and for any AI instance that works on this code.

Last updated: 2026-04-28 by TACHYON


THE THREE LAYERS

The site renders text through three layers stacked on top of each other.

Every piece of body text passes through all three, in this order:

RAW TEXT (from JSON data file)

LAYER 1: FOOTNOTES (footnotes.js + footnotes.jsx)

Scans for superscript markers (¹²³)

Makes them clickable (veil mode) or styled-but-passive (pierce mode)

LAYER 2: EMPHASIS (inside LinkedText, in App.jsx)

Converts italic → <em> and bold → <strong>

LAYER 3: GLOSSARY LINKS (inside LinkedText, in App.jsx)

Scans for terms from the TERMS dictionary

Wraps them in blue <a> tags that link to Google/Wikipedia/custom URLs

RENDERED HTML (what the reader sees)

THE CRITICAL RULE: Every layer must pass text through to the next layer.

If any layer returns raw text instead of calling the next layer's function,

everything downstream breaks silently — no error, just missing features.

This is how the glossary links disappeared: Layer 2 (emphasis) had an

early return that skipped Layer 3 (glossary). The footnotes still worked

because they're Layer 1. The emphasis still worked because it's Layer 2.

But all blue links vanished because Layer 3 was never called.


WHERE THINGS LIVE

The Data Files (what gets rendered)

File

What's in it

How it's built

public/walt_full_data.json

All of Walt — every section, paragraph, footnote. 158 footnotes numbered 1-158 in reading order.

Built by scripts/build_walt_data.py from scripts/walt_source.md

public/walt_gospel_versed.json

The gospel in verse-by-verse format (numbered sayings with verse references). Used for the reading spine's verse view.

Pre-existing; not rebuilt by the script

public/antioch_gospel_data.json

All of Antioch — 3 front matter + 8 chapters + 13 back matter. 19 footnotes numbered 1-19 in reading order.

Built by scripts/build_antioch_data.py from scripts/antioch_source.md

To change what text appears: Edit the source markdown in scripts/,

then re-run the build script. Or edit the JSON directly (for small fixes).

To change how text renders: Edit src/App.jsx (Walt) or src/Antioch.jsx.

The Rendering Code

File

What it does

What it contains

src/App.jsx

Walt's entire reading interface

LinkedText (Layer 2+3), Leaf, SectionContent, Verse, GospelSection, TERMS dictionary, TERM_REGEX

src/Antioch.jsx

Antioch's entire reading interface

SectionRenderer, ChapterSection, Verse, uses LinkedText from App.jsx

src/footnotes.js

Pure JS: footnote scanning + disambiguation

buildGlobalFnMap, splitTextWithFootnotes, hasFootnoteMarkers

src/footnotes.jsx

React: footnote rendering components

FootnotedText (Layer 1), InlineFootnote (popup body)

The Architecture Document

File

What it is

docs/FOOTNOTES.md

Load-bearing spec for the footnote system. Read before touching footnotes.

This file (docs/BOOK_OF_LIFE.md)

How all three layers connect. Read before touching ANY rendering.


LAYER 1: FOOTNOTES

What it does

Scans body text for Unicode superscript characters (¹²³⁴⁵⁶⁷⁸⁹⁰) and

either makes them clickable (veil mode) or styles them as passive blue

markers (pierce mode).

The disambiguation rule

NOT every superscript is a footnote. In codicological tables, G⁴⁶

means "Golden Ticket 46" — that's a label, not a footnote reference.

The rule: a superscript run is a footnote only if it is NOT immediately

preceded by a letter (A-Z, a-z). So:

Wiki Article

"THE BOOK OF LIFE How Embeddings and Footnotes Work in The Secret Book of Walt" is a 2,327-word archive work by TACHYON (Claude/Anthropic), dated 2026-04-29. Read this before modifying ANY text rendering in the SBoW codebase. The work is classified under the ARCHIVAL semantic family within the Crimson Hexagonal Archive. It was removed from Zenodo on June 19, 2026 and is preserved through Alexanarch.

Entity Graph

THE BOOK OF LIFE How Embeddings and Footnotes Workcreated_byTACHYON (Claude/Anthropic)[observed]
THE BOOK OF LIFE How Embeddings and Footnotes Workis_typeArchive work[observed]
THE BOOK OF LIFE How Embeddings and Footnotes Workbelongs_to_familyARCHIVAL[observed]
THE BOOK OF LIFE How Embeddings and Footnotes Workis_part_ofCrimson Hexagonal Archive[observed]
THE BOOK OF LIFE How Embeddings and Footnotes WorkreferencesJack Feist[observed]
THE BOOK OF LIFE How Embeddings and Footnotes WorkreferencesTACHYON[observed]