qdb Platform Docs Download

Repository source: docs/plans/plain_default_site/plain_default_site_step2_feature_description.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.85

Step 1 approved and committed in dfda29e.

Problem

A v3 install with no FORUM_SITE_ID is ZenMemes: its name, app name, copy, Gloss themes, Zen strip, pinned page theme and tour. Nobody can run an unbranded v3 board, and every other profile inherits ZenMemes fallbacks.

Correction to the Step 1 cutover plan

Step 1 proposed that the Deploy page refuse an update that would change the shown profile. That can't protect the cutover itself, because the deploy that brings this change in runs the old Deploy code. A remembered profile was considered and dropped (Ilya, 2026-11-30): he sets FORUM_SITE_ID=zenmemes on zenmemes.com and his clones himself, or fixes it if it breaks. No cutover code ships.

Concepts touched

  • Presentation slots: the editorial fallback becomes neutral (changed).

  • Deployment configuration: zenmemes.com must now name its profile (changed, docs only).

  • Site profile: new inventory entry. A named set of branding and per-site settings chosen by FORUM_SITE_ID, with plain as the default.

User stories

  • As someone installing v3, I want ./v3 start to give me an unbranded board, so that it's mine from the first page.

  • As the zenmemes.com operator, I want one setting, FORUM_SITE_ID=zenmemes, to keep zenmemes.com exactly as it looks today.

  • As an operator of another profile, I want my site to stop picking up ZenMemes copy wherever my profile is silent.

Core requirements

  1. plain is the default profile. It uses neutral copy, Light/Dark, no page themes, no Zen strip tags, no tour, no app name beyond its display name, and the server's time zone for the calendar.

  2. zenmemes keeps everything it shows today: Gloss/Gloss Dark, the Engagify page theme, the Zen strip, copy, tour, app name "ZenMemes" and the Eastern calendar. Its browser namespace and unsuffixed static HTML folder stay too, so preferences, saved keys and the offline cache survive.

  3. No ZenMemes wording outside the zenmemes profile reaches a plain site: the manifest, push titles, Engagify's jokes and busy copy name the active site. Engagify stays permitted in plain (Ilya questions this; reopen in the per-site-folders round). zenmemes.com stays offered as the import source on the local start page. resources/known_instances.txt is the start of a future pre-provided list of common providers, zenmemes.com included, so it stays provider-neutral in plain rather than becoming ZenMemes-only.

  4. Profile validation requires plain rather than zenmemes. The other profiles stop falling back to ZenMemes copy.

Delivery scope

Application change, including the tests that assume zenmemes is the default and the docs that name the default profile (production deploy runbook, CLI reference, README).

Completion boundary

  • Normal entry: ./v3 start on a fresh clone; Deploy now on zenmemes.com.

  • End-to-end: the fresh clone shows a plain board; with FORUM_SITE_ID=zenmemes, zenmemes.com and a local clone look as they do today.

  • Recovery: if an install comes up plain by mistake, ./v3 status already shows FORUM_SITE_ID and its source; setting it fixes it.

  • Release: merged; the PR description's deploy checklist says to set FORUM_SITE_ID=zenmemes on zenmemes.com before Deploy now.

Known user or environment

zenmemes.com on DreamHost, deployed with Deploy now; it sets no FORUM_SITE_ID today. Accepted risk: if the setting isn't in place, the deploy turns it plain. Ilya's recovery: ./v3 private-config edit over SSH to add FORUM_SITE_ID=zenmemes, then reload. Evidence: the home page shows the Zen memes, the Gloss theme and the name zenmemes, and ./v3 status says FORUM_SITE_ID: zenmemes (private file ...).

Risks

  1. zenmemes.com deployed without the setting. Impact: a plain zenmemes.com until it's fixed. Accepted by Ilya; mitigation is the PR checklist line and the recovery above.

  2. About 117 test files assume zenmemes. Impact: a large diff that hides real regressions. Mitigation: tests that check ZenMemes branding select zenmemes explicitly; only default-behavior tests move to plain.

  3. Fallback leaks. Impact: medium; other profiles change wording. Mitigation: a test that renders the plain board, manifest, busy page and push payload and finds no "zen memes" (case-insensitive) in them.

  4. chouse, qdb, mitrapclub and jetlag servers. Each already sets FORUM_SITE_ID, so they're unaffected; Step 3 confirms this against the runbook.

Shared component inventory

  • SiteProfileRegistry (profiles, default, validation): extended with plain and a new default. No new registry.

  • ProfilePresentationContent and PresentationSlotRegistry: add a plain editorial entry from the existing generic copy, which becomes the fallback.

  • BrowserRuntimeProfile, BrowserRuntimeAssetRenderer: the manifest already comes from the profile, so it's reused as is. The static public/manifest.webmanifest is checked for stale ZenMemes text.

  • PresentationPathResolver: the unsuffixed folder stays keyed to the zenmemes namespace.

  • DeploymentSettings::source() and scripts/status.php: reused unchanged; they already report FORUM_SITE_ID and its source.

  • Tour/TourFile, Import/KnownInstances: the tour is gated by profile; known instances are unchanged.

  • PushNotifier, PushApiController, theme-engagify.js: read the site name from the existing profile data instead of a literal.

User flow

  1. A new operator clones v3 and runs ./v3 start: a plain board.

  2. Ilya adds FORUM_SITE_ID=zenmemes to zenmemes.com's private config, then presses Deploy now: the site looks unchanged.

Success criteria

  • A fresh clone's pages, manifest, busy page and push test contain no "ZenMemes" or "Zen memes" text, show Light/Dark, and have no Zen strip or tour.

  • With FORUM_SITE_ID=zenmemes, zenmemes.com and a clone render identically to before (spot-checked: home, a thread, Tools, manifest).

  • The smoke set and changed tests pass. Every test that used to rely on the zenmemes default either selects it explicitly or checks plain.

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

— Revised by Claude · 2026-11-30 UTC · Model: claude-opus-5-5: import sources framed as a future provider list; remembered profile and its reminder dropped at Ilya's request.

Enhancement Requests

  • Remembered profile and reminder (2026-11-30): proposed, then dropped by Ilya. Only the PR checklist line remains.

  • Pre-provided list of common import providers (Ilya, 2026-11-30): future work. This cycle only keeps known_instances.txt neutral so it can grow into that list.

Also: PF-20261030-F42 (busy page copy without hardcoded branding) is covered by requirement 3.

Study Checkpoint

2026-11-30T06:10Z; scope v1; R1 (hashes not re-verified); Claude, single exposed rater.

  • Step 2 handoff: 1.00 projected total, up from 0.90. Reason: new understanding (remembered profile needed).

  • Revision 2026-11-30T06:20Z, scope v1 → v2: 0.85, down from 1.00. Reason: changed scope; Ilya dropped the remembered profile and the Deploy page guard. Same rater and exposure. Not hours; no approval to advance.