qdb Platform Docs Download

Repository source: docs/plans/plain_default_site/plain_default_site_step1_solution_assessment.md

Feature plan: Step 1 · Step 2 · Step 3 · Step 4

Debug mode: enabled

Effort study: railspike-effort / v3/plain_default_site; cycle ledger. Standing P2 enrollment.

Extended estimates: enabled

Cycle estimate: 0.90

Original Query

"i'd like to restructure v3 to where zenmemes is another site id, and there is a default "plain" site with none of the zenmemes branding, please (also, no zenmemes stuff in default install)" (Ilya, 2026-11-30)

Understood Intent

A fresh ./v3 start, or any server with no FORUM_SITE_ID, should look like an unbranded v3 board. ZenMemes becomes one site profile among chouse, qdb, mitrapclub and jetlag, chosen by FORUM_SITE_ID=zenmemes, the same way those are.

Today zenmemes is the hard-wired default in SiteProfileRegistry (DEFAULT_SITE_ID, and validation requires it). It is also the fallback for the editorial presentation slot, and the one browser namespace whose static HTML root has no suffix. ZenMemes material reaches a default install through these:

SurfaceWhere
Name, app name "ZenMemes", Gloss/Gloss Dark auto themes, Eastern calendarprofile entry
Editorial copy: invitation reasons, build example, "Meme Oven Is Busy"ProfilePresentationContent, also the slot fallback
Page theme pinned to a zenmemes.com thread; Zen strip #zen #memeprofile entry
Manifest "Zenmemes Offline Reading", push titles "ZenMemes"manifest.webmanifest, PushNotifier, PushApiController
Engagify jokes ("Enjoying ZenMemes?")theme-engagify.js
Tour essays, zenmemes.com as the known import sourceresources/tour.txt, resources/known_instances.txt
Legacy zenmemes-theme storage key, unsuffixed state/static_htmllayout.php, PresentationPathResolver

Problem Statement

v3 can't be installed as a neutral board: ZenMemes is the default profile, and its copy and assets are what every install shows.

Concepts touched

Solution Options

Option A: Add a plain profile as the default; ZenMemes keeps its profile entry

Estimate: 0.90 Driver: about 117 test files that assume the default is zenmemes. Uncertainty: medium, from how many of them check branding rather than behavior.

plain becomes DEFAULT_SITE_ID, with neutral copy (the generic editorial text qdb and boston already use), Light/Dark, no page themes, no Zen strip tags, no Eastern calendar. Everything in the table moves under the zenmemes profile, or reads the active site's name instead of the word ZenMemes (manifest, push titles, Engagify). zenmemes.com, and Ilya's local clones, set FORUM_SITE_ID=zenmemes.

  • Pros: one cycle, uses the existing profile machinery, and other sites stop inheriting ZenMemes fallbacks.

  • Cons: ZenMemes code and copy still ship in every checkout; they're just not shown. The cutover can rebrand zenmemes.com if the setting isn't in place first.

Option B: Option A, plus per-site folders, so a default install carries only plain

Estimate: 1.60 Driver: a new loader for profiles, copy and assets kept as Key: value files. Uncertainty: high, since every profile and asset path moves.

Each site gets sites/<id>/: profile, editorial copy, favicon/icons, known instances, tour. The code ships sites/plain/ only; sites/zenmemes/ lives in the repo as one optional pack (or in a separate repo), loaded when FORUM_SITE_ID names it.

  • Pros: literally no ZenMemes material in a default install; a new site is a folder, not a PHP edit.

  • Cons: about twice the work, above 1.0, so an epic. Moving chouse, qdb, mitrapclub and jetlag too is more churn for no visible change.

Option C: Keep zenmemes as the code default; new installs write FORUM_SITE_ID=plain

Estimate: 0.45 Driver: the plain profile plus a ./v3 start first-run write. Uncertainty: low.

Add the same plain profile, but have new local installs and the import page record FORUM_SITE_ID=plain in the private config. Existing servers with no setting stay ZenMemes.

  • Pros: no cutover risk for zenmemes.com.

  • Cons: the default is still ZenMemes, so a server set up by hand still comes out branded. It doesn't do what you asked.

Recommendation

Option A now, as cycle plain_default_site. It delivers what you'll see: a fresh install is plain and zenmemes.com looks unchanged. If you then want ZenMemes material out of the checkout itself, Option B is a follow-up epic built on A's profile split; I'd write an epic checklist only if you ask.

Cutover risk (any option but C): zenmemes.com shows ZenMemes today because it sets nothing. Before this is deployed there, its private config needs FORUM_SITE_ID=zenmemes, or the next "Deploy now" turns it plain. Step 2 settles the guard; my suggestion is that the Deploy page refuses an update that would change the shown profile while FORUM_SITE_ID is unset, with a one-line fix in the message. The browser namespace stays zenmemes for zenmemes.com (so saved preferences and the offline cache survive), and plain gets its own.

Decisions for you:

  1. Is the known import source (zenmemes.com on the local start page) "zenmemes stuff"? My suggestion: keep it in plain for now, since it's how a local install gets content. Otherwise local installs start empty.

  2. Tour essays: zenmemes only, with plain showing no tour?

  3. Engagify: keep it in plain, with its jokes naming the active site?

Vertical-slice viability: ./v3 start on a fresh clone shows a plain board, with no ZenMemes name, app name, copy, strip or themes. FORUM_SITE_ID=zenmemes ./v3 start looks like zenmemes.com does today.

— Claude · 2026-11-30 UTC · Model: claude-opus-5-5

Revised Direction

From Ilya, 2026-11-30:

  • Option A for this cycle. Option B is saved for a later round, not this one.

  • Cutover plan accepted: zenmemes.com sets FORUM_SITE_ID=zenmemes before the deploy, and the Deploy page guards the change.

  • Known import source: no answer yet, so it stays as suggested (zenmemes.com stays offered on the plain local start page).

  • Tour essays: zenmemes only; plain shows no tour.

  • Engagify: stays permitted in plain, with its jokes naming the active site. Ilya questions this, so it can be reopened in the Option B round.

  • Profile name: still open. Ilya asked for something better than "plain". He asked to weigh web precedents such as about:blank. Candidates: default (nginx sites-available/default, Apache 000-default: the site served when nothing else matches, which is this profile's exact role; but ./v3 status already says "default" for an unset value); stark (Drupal's bare core theme, kept to show the unstyled baseline); example (RFC 2606 example.com, though it reads as a demo); blank (about:blank is an empty document, which a working board isn't). The ID shows in FORUM_SITE_ID, the static HTML folder and browser storage keys. Decided at approval: keep plain for now.

— Revised by Claude · 2026-11-30 UTC · Model: claude-opus-5-5

Enhancement Requests

None yet. Related item: PF-20261030-F42 (busy page copy without hardcoded branding), which Option A covers for the default.

Study Checkpoint

2026-11-30T05:40Z; scope v1; starting revision aa95b4cf; R1 (hashes not re-verified); P2 standing enrollment. Claude, single exposed rater. Intake written after the inspection above, so not pristine.

  • Intake and Step 1 handoff: 0.90 projected total, Option A (Option B 1.60, Option C 0.45; not additive). Not hours or measured labor; no approval to advance.

  • Ledger update pending, with the planning commit.