Bot-crawlable public pages: 1. Renderer
Done 2026-11-07 per the plan (all three revisions). lisp/public-pages.lisp (new, registered in data-ui.asd between backend and rest; 3bmd + tables + code-blocks on :depends-on, mdg/md-ext/mdt/mdc nicknames): eligibility (public-type-p / public-types, gated on :guest-allowed + type-level guest read, excluding base / built-in / internal / joiner / rollup / user-setting / tree / scoped types), the :view-form projection with the second sanitizing filter (public-view-field-keys) and the separate timestamp query (record-timestamps, view-result's conversion), guest reads (guest-records / guest-record, eligibility inside the helpers), titles and descriptions (identity, markdown first line, 200-char word-boundary cut), the full HTML document grammar (inline stylesheet from the SPA's light-theme values, site-chrome with defaults, meta line, markdown fields, image figures, scalar dl with Yes/No and :precision, FK links via the sibling ids, M2M runs, the declared :children region with the omitted-sort default), the AST-level Markdown walker (markdown-html / md-node-html, one URL policy, raw HTML as escaped text, entity pass-through regex, fenced blocks with language-<lang> classes), plain text (plain-markdown-text), structured data (OG, article: times, JSON-LD through string-keyed yason with \u003c), RSS 2.0 feed, sitemap with lastmod, the full XML 1.0 Char sanitizer (xml-safe-string), and PUBLIC_ORIGIN (*public-origin* in data-ui.lisp, valid-public-origin here; profile env + expose/unexpose rewrite + deploy template). Deviations from the plan, all forced by the fixture the plan specifies: (1) a third backend.lisp edit beyond the two permitted — db-value must treat the compiler-injected :default :null as SQL NULL in the scalar arms, without which the fixture's nullable :featured / :rating / :api-key cannot be inserted at all (boolean bound "null" 22P02, integer bound 'false', password crashed); (2) the :boolean 4b pin reads nil, not :null, at be-rec (aggregate-values' value-or-nil collapses :null for every nullable column type — the invariant that matters, NULL no longer reading :true, holds and is pinned); (3) execute-write-to skips a :null value (full-data's absent spelling) — the db-value fix otherwise made the seed's write-through insert a NULL ratings row, breaking be-update-no-partial-write (nil, the explicit clear, still writes NULL). Two pre-existing helpers bugs fixed in passing (tests/helpers.lisp, both hit by the new fixture): th-make-directory's be-id call was missing its user argument; th-make-file's error format string had an unclosed ~(. Fixture models/test/public-pages-test.lisp (from blog-test, own :post-tags joiner, :links / :mine / :private / :notes / :folders negatives, synthesized :moderate-status) and the renderer pins live in tests/public-pages-tests.lisp (run-public-pages-tests seeded group + run-public-pages-empty-tests unseeded group, both in run-tests). Docs: model-reference "Public pages" section, deployment/cli PUBLIC<sub>ORIGIN</sub>. Live probe (REPL image): normal post + 25 comments 0.22s, 200-post index 0.70s, feed-50 0.17s, sitemap-411-urls 0.66s, 400-paragraph stress post 0.83s — no memo needed at blog scale.
Plan: 01-renderer.org
- Slot
- 5200
- Status
- 60 Done
- Tags
- mvp, backend, frontend
- Contributors
- Donnie