# Presentation rules * Foundation logos use static CDN asset pointers and scoped monochrome CSS, keeping supplied artwork with white logos legible on the graphite surface. * Homepage spacing uses shared --fd-space-* tokens with breakpoint rules scoped to fd-home, one rhythm for mobile and desktop, tools and generated docs untouched. # Architecture * Lovable asset pointers keep a committed sibling file; a Vite plugin bundles that file instead of the CDN path, because GitHub Pages at uor.foundation cannot serve Lovable CDN URLs. * The Pages deploy packs its own artifact tar so CNAME and /.well-known/ survive; upload-pages-artifact drops dot-paths. * The site publishes one agent skill, `prism`: skill/SKILL.md from the prism-code npm `latest` tarball, copied byte for byte into src/docs/prism.generated.ts by scripts/sync-prism-docs.mjs (integrity checked), so the site, the package and what setup installs never disagree; the retired prism-sdk path serves only a pointer. Deploy runs the tests first (src/test/npm-examples.test.ts runs the site's code against that release) and checks the live digest afterwards. * App.tsx selects routes by pathname without a router or backend; the playground code stays in src/playground but is neither routed nor linked, and its /playground/ service worker file is not published, so the editor is not exposed. * Playground uses upstream Monaco, WebContainers and xterm in one shared runtime; examples use the published prism-code API, never invented Rust bindings. * A service worker scoped only to /playground/ supplies credentialless cross origin isolation on static hosting; embedded previews offer a top level tab because parent isolation cannot be changed by the app. * Playground projects persist locally and share through validated compressed URL fragments, avoiding server storage and excluding generated dependencies from exports. * Docs rules live in src/docs/AGENTS.md. * The Ask Prism header avatar imports the homepage UOR SVG, with scoped transparent contain styling so both placements share artwork without cropping. * The blog lives at /blog/ and renders from src/blog/posts.data.ts; the same Vite plugin emits per post .md, blog/llms.txt and blog/rss.xml so readers and agents share one source. * Headings, card titles and body copy take their size from the shared --fd-* type tokens in src/index.css, applied through the role classes in src/site/type.ts, so a heading stays the same size in every layout without repeating pixel values. * The framework explainer lives at /framework/ and renders from src/framework/content.ts; the same Vite plugin emits framework.md and adds it to llms files so readers and agents share one source. * Q, the Foundation's agent, lives in src/q and is one lazy chunk: the home page pays for a small still image until a visitor reaches for the corner orb. src/q/client.ts is Q's web protocol (docs/web.md in UOR-Foundation/q) and is held to the host's own labels by src/q/fixtures/web-vectors.json, copied byte for byte from that repository; the orb is Hologram OS's holo-orb.js, copied byte for byte and held to ORB_LABEL by a test. Q's answers are model text, so src/q/AnswerText.tsx draws them as elements and never sets HTML. Q_API in src/q/site.ts names Q's host; no key is ever in the site. * prism-code and uor-addr run in the browser for Q: vite.config.ts blanks prism-code's Node-only verifier for the bundle, and src/q/addr.ts ships uor-addr as its own untouched module because it awaits at the top level, which the site's build target does not allow in a bundle. * The site moves in two ways only, both braille: Wait (one cell, a loader) and Decode (text drawn as its own bytes, swept into letters). They are defined once, in the Prism app in motion/ (a LexLean model started with `npx prism-code@latest init`; its own AGENTS.md is the template's and is never edited). scripts/sync-motion.mjs builds that app and writes src/motion/motion.generated.ts from the holo's answers; never edit that file by hand. src/motion/sweep.ts and src/motion/Braille.tsx apply it, and src/test/motion.test.ts runs the app's check and build and holds the site to the holo. A new wait uses Wait or RouteWait and a new reveal uses Decoded; no page adds another spinner, pulse or fade. * A decode must move no letter: the text stays in the line, unseen, and its cells are drawn in a layer after the run, placed by measuring each letter. Never put an element between two letters of running text, because that changes the space between them. * The agent Discord page and Markdown twin share src/agent/discord.ts and the existing Vite generation plugin, preserving identical instructions without a second publishing mechanism. * The site runs at an origin root (uor.foundation, IPFS subdomain gateways) and under an IPFS path gateway prefix (/ipfs//, /ipns//) alike. The build uses relative asset URLs (base "./"); scripts/emit-pages.mjs and scripts/holospace-site.mjs make each page's URLs relative to its depth. Code reads its route with sitePath() and turns site paths into URLs with at() from src/site/base.ts; mountLinks() prefixes root-relative links when they are followed. Never read location.pathname or load a root-absolute URL elsewhere: src/test/base.test.ts fails on it. holo-host/host.mjs carries the same rule, keeps nothing it would trust in a shared gateway origin (no service worker, no cached View), and boots the app from IPFS gateways by its CID (data-holo-cid) when its own copy is missing, held to the app's BLAKE3 label. Gateways that send a restrictive Content-Security-Policy (Filebase, Pinata) cannot run the holospace. * The site is served from IPFS: .github/workflows/deploy.yml (push to main) builds it and runs scripts/publish-ipfs.sh (runnable on any machine), which adds dist/ to IPFS, pins the CAR on Filebase (bucket uor-foundation-website), and deploys the Cloudflare Worker in ipfs-host/ with that CID; the Worker answers uor.foundation and www.uor.foundation and fetches every file from IPFS gateways. Nothing at runtime loads from GitHub; Q's kernel is served from public/q/app.holo. The site's root name is the IPNS name k51qzi5uqu5djc9o6rb3kwvh3dloxiezkiq5rni2cmqu06wv2dcf1y3ilel5p6, published only by the always-on kubo node that holds its key (the hub-ipfs container on the Foundation server, reached as PUBLISHER_SSH; it also pins the site and serves it to browsers over AutoTLS and WebTransport); _dnslink.uor.foundation points at it, so DNS is an alias that can move providers without touching the site. No page loads analytics or other trackers. It is not hosted on Lovable or GitHub Pages. The canonical origin is ORIGIN in src/agent/site.ts; every build emits route index.html files and a 404.html fallback via scripts/emit-pages.mjs, so a new route must have a Markdown twin or an entry there or its deep links fall through to the SPA fallback.