Inline verse publication

Maintenance ID: 0.1.00301.inline-verse-publication Date: 2026-12-01 Scope: scripts/filed-build.sh, scripts/filed-publish.sh, scripts/verse_publish_stage.py, scripts/verse_publication_check.py, scripts/test_verse_publish_stage.py, scripts/test_verse_publication_check.py, themes/cantilever/assets/cantilever.js, content/changelog.md. Issue #1066.

What changed

  • Retired standalone public haiku and limerick article routes without deleting or renaming the canonical verse records in content/.
  • Added a pre-render verse publication staging pass. It maps every verse ID to an explicit public path#fragment, prefers complete inline copies in lorelog and mascot hosts, and stages unmatched verse bodies under stable fallback anchors on the collection trunks.
  • Rewrites staged wiki links and generated trunk index destinations to the mapped host fragments while preserving source IDs, parents, and relations in the canonical tree. Staged relation edges that target retired verse entities are remapped to their public owner records; only impossible self-edges or duplicate edges are dropped.
  • Stages a Cloudflare Pages _redirects file mapping each canonical extensionless legacy /haikus/ID or /limericks/ID route to its replacement fragment destination, with dynamic trailing-slash normalizers and the static-rule cap checked. Pages' own canonicalization covers the legacy .html spellings without spending hundreds of additional static rules.
  • Extends the build gate with post-render checks for emitted HTML, search documents, sitemap entries, duplicate fragments, trunk links, mapped destination text, nonempty mapped search sections, stanza paragraph preservation, relation owner links, and redirect coverage.
  • Uses the same staged inline-publication input for the HTML artifact produced by scripts/filed-publish.sh; IR, RAG, and context exports continue to use the canonical source tree.
  • Teaches the Cantilever browser script to reveal ancestor <details> panels when navigation lands on a fragment inside one.

What was deliberately left alone

  • Canonical verse Markdown, record IDs, collection parents, tags, and relations were not edited. All routing mutations happen in dist/.stage-content after the canonical tree is copied.
  • Certified Boris HTML is not post-processed for verse routing. The only post-compile verse gate remains evidentiary validation.
  • Collection census totals were not changed; this was publication routing maintenance, not a change in the number of canonical archive records.

Verification performed

  • python3 scripts/test_verse_publish_stage.py — PASS.
  • python3 scripts/test_verse_publication_check.py — PASS.
  • ./scripts/filed-build.sh — PASS on the full archive, including graph audit, Boris compilation, verse publication certification, HTML ID audit, and publication evidence checks.
  • ./bin/validate_graph.sh — PASS.
  • ./scripts/filed-publish.sh — PASS.

Unresolved follow-up

  • Owner choice remains deterministic rather than editorially curated. Where the same complete verse appears in several published hosts, exact numeric Lorelog hosts and Lorelog-derived source evidence are preferred over mascot copies.
  • Boris semantic relations are graph edges between whole records and have no fragment field. Remapped relation slots therefore expose the mapped owner record (for fallback owners, the collection trunk) but cannot carry the exact #verse-... fragment without changing Boris itself.