CHRON-0008: Day Six (site) - Access Model, Founding Essay, and Public Preview Surfaces
What Happened
The site's shape changed on March 23, 2026, from a mostly open knowledge surface with improvised restrictions into a clearer editorial product with three tiers: public listening and preview surfaces, login-only research browsing, and paid tools. At the same time, the repo gained the first real "About" page: the revised What Happened Inside the Mysteries essay, rendered as a long-form reading experience with section navigation and a concept sidebar.
This work was distributed across agents. Claude Code revised the foundational
paper and extracted its concepts into the KB. Cursor built the /about page,
then expanded it with section imagery. Codex built the Clerk-first auth and
gating layer, added billing scaffolding, opened selected surfaces back to the
public, and tightened the site's navigation so the preview/public model reads
more clearly in the UI.
The result is a more legible public experience: visitors can see what the project is, hear core episodes, read the project log, move through timeline, imagery, and a filtered graph preview, and encounter the founding essay without needing an account. Deeper KB browsing and tool use now sit behind authentication, and chat remains reserved for paid membership or admin bypass.
Site Impact
- The site now has a proper
/aboutpage built around the founding essay rather than burying that document in the log feed - Clerk authentication now works locally and in configured environments, with admin bypass support for named accounts
- The public/private boundary is clearer: episodes, search, log, timeline, imagery, and graph preview are public; concepts, figures, sources, and deeper KB use require login; chat is paid
- The graph is no longer simply locked; signed-out visitors now get a real preview of concepts, figures, timelines, and episodes, but not source-book depth or KB search
- The project log, timeline, and imagery are public again, which makes the site feel more like a cultural publication and less like a sealed research console
- MCP is no longer casually open in production-by-default; if no
MCP_PUBLIC_API_KEYis set, local development remains easy but production is treated as closed - The desktop navigation now reads more calmly, with public/free Library items moved to the top of the menu and a less tool-like header hierarchy
Files and Commits
Access and gating:
site/proxy.tssite/app/layout.tsxsite/app/sign-in/[[...sign-in]]/page.tsxsite/app/sign-up/[[...sign-up]]/page.tsxsite/lib/auth-config.tssite/lib/access.tssite/lib/mcp-auth.tssite/app/api/chat/route.tssite/app/api/mcp/route.tssite/app/api/mcp/[transport]/route.tssite/app/api/kb/search/route.tssite/app/search/page.tsx
Membership and billing scaffolding:
site/app/membership/page.tsxsite/lib/stripe.tssite/lib/billing.tssite/app/api/billing/checkout/route.tssite/app/api/billing/portal/route.tssite/app/api/webhooks/stripe/route.ts
Founding essay and about surface:
project-log/chronicle/what-happened-inside-the-mysteries-v2.mdsite/app/about/page.tsxsite/app/about/EssayNav.tsx
Public preview and visibility changes:
site/app/log/page.tsxsite/app/log/[slug]/page.tsxsite/app/log/md/route.tssite/app/timeline/page.tsxsite/app/imagery/page.tsxsite/app/imagery/[id]/page.tsxsite/app/explore/page.tsxsite/app/explore/ExploreClient.tsxsite/lib/graph-data.tssite/app/llms.txt/route.ts
Navigation and presentation:
site/app/components/SiteNav.tsxsite/app/components/AuthControls.tsx
Relevant commits:
211115d- auth foundation and gated-preview model3f18189- auth, gating, and billing scaffolding pushed5dc603f- dynamic gated markdown route build fix23f0bc3- Clerk production runtime safety fix183a3dc- public project log and tighter MCP auth611a9d2- timeline opened to the public23a5442- imagery opened and graph preview made public3cf539d- revised foundational synthesis document8c21a66- paper concepts pushed into the KB58e59a7-/aboutpage with ToC and key conceptsea301c8- section imagery added to the essay page283d2ea- calmer top navigation hierarchy ondevelopment
Branch State
This was primarily a development-branch session. Some of the work had already
been promoted earlier, but the strongest shift in site identity — auth model,
public preview logic, and the founding essay as /about — now lives most
fully on development. The production branch main is behind that preview state
at the time of this entry.
Follow-Up
- Promote the
developmentbranch state tomainonce the current preview behavior is approved - Wire real Stripe environment values and test membership end to end
- Continue refining the homepage entry strip and favicon/brand surfaces so the new editorial identity matches the stronger information architecture
- Keep documenting whether future changes affect the public site immediately or
only the
developmentpreview