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 2 approved and committed in 2e7e0be (Step 1 in dfda29e).

Concepts touched

  • Presentation slots: the editorial fallback becomes plain (Stage 1).

  • Deployment configuration: the default profile is plain, and zenmemes.com sets FORUM_SITE_ID (Stage 5).

  • Tour snapshot: offered only by profiles that turn it on (Stage 4).

  • Site profile: new entry docs/concepts/site_profile.md (Stage 5).

Completion Contract

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

  • End-to-end: with no setting, the home page, a thread, Tools, the manifest, the busy page and a push test say nothing about ZenMemes. They use Light/Dark, with no Zen strip and no tour. With zenmemes, the same pages match what main renders today.

  • Recovery: ./v3 status already shows FORUM_SITE_ID and its source. Setting it in the private config fixes a site that came up plain by mistake.

  • Deployment: the PR description's deploy checklist says to set FORUM_SITE_ID=zenmemes on zenmemes.com before Deploy now. The other servers already set their IDs (checked in Stage 5).

  • Release: PR opened. zenmemes.com acceptance after the deploy is Ilya's, and stays pending until he reports it.

Key Risks

  • High risk: zenmemes.com is deployed without FORUM_SITE_ID and turns plain. Accepted in Step 2. Mitigation: the PR checklist line and the recovery above; no code.

  • The test sweep hides a regression. About 117 test files mention zenmemes, and 59 already select it explicitly. Early validation: Stage 1 flips the default, then runs the smoke set and the profile tests to count failures before Stage 2 begins. Mitigation: a test that checks ZenMemes branding selects zenmemes; only tests about default behavior switch to plain.

  • ZenMemes rendering drifts. Mitigation: Stage 6 compares the key pages under zenmemes against main's output.

  • Literal leaks. Mitigation: a leak test in Stage 3 (case-insensitive "zen ?memes" across the plain outputs).

Stage 1

Estimate: 0.20

  • Goal: plain is a profile and the default; validation requires it.

  • Dependencies: none.

  • Expected changes:

    • SiteProfileRegistry: a plain entry. Display name plain, Light/Dark, the general permitted themes including Engagify, no page themes, no strip tags, no calendar zone, no app name. DEFAULT_SITE_ID becomes plain, and validation requires plain instead of zenmemes.

    • ProfilePresentationContent: a plain editorial entry, built from the existing generic copy (as qdb uses), with the neutral "Temporarily Busy" text. PresentationSlotRegistry: the editorial fallback becomes plain.

    • zenmemes is unchanged.

  • Verification approach: SiteProfileRegistryTest and PresentationProfileMatrixTest, updated for the new default and fallback. Then the smoke set, to count the default-dependent failures Stage 2 has to fix.

  • Estimate details: driver: copy choices for plain; uncertainty: low.

  • Risks or open questions: other profiles that leave editorial unset now get plain copy instead of ZenMemes copy. That's intended, and the matrix test shows it.

  • Canonical components/API contracts touched: SiteProfileRegistry::all()/active()/validate(), PresentationSlotRegistry::SLOTS, ProfilePresentationContent::EDITORIAL. No new registry.

Stage 2

Estimate: 0.30 Split candidate if Stage 1's count runs past about 40 failing files: Stage 2a for the PHP tests, 2b for the Python and browser tests.

  • Goal: the test suite reflects the new default.

  • Dependencies: Stage 1.

  • Expected changes: tests that relied on the implicit default either set FORUM_SITE_ID=zenmemes (or setProfilesForTesting) when they check ZenMemes behavior or branding, or assert plain when they check the default. Shared fixtures (tests/Support/*) get the same choice once, so individual tests don't repeat it.

  • Verification approach: the smoke set, the tests changed here, and every test Stage 1's run listed as failing. Not the full suite.

  • Estimate details: driver: count unknown until Stage 1; uncertainty: medium.

  • Risks or open questions:

    • Impact: a test silently switched to plain could stop covering ZenMemes features (Zen strip, Gloss defaults).

    • Early warning / validation: grep the changed tests for Zen strip, gloss or zenmemes assertions that now run under plain.

    • Mitigation: feature tests select zenmemes; never delete an assertion to make a test pass.

  • Canonical components/API contracts touched: existing test helpers in tests/Support/.

Stage 3

Estimate: 0.15

  • Goal: no ZenMemes literal reaches a plain site.

  • Dependencies: Stage 1.

  • Expected changes:

    • PushNotifier overflow title and PushApiController::TEST_PAYLOAD title take the active profile's app name (falling back to its display name), the same value BrowserRuntimeProfile uses for manifestName.

    • theme-engagify.js reads the site name from the page's existing apple-mobile-web-app-title meta instead of the literal.

    • Static public/manifest.webmanifest: if a route still serves it, make it neutral; otherwise leave it to the rendered manifest and record that in the summary.

    • A leak test renders the plain board, a thread, the manifest, the busy page and the push test payload and checks there's no "zen ?memes".

  • Verification approach: the new leak test, the push tests, and an Engagify page under plain and under zenmemes, viewed in a browser.

  • Estimate details: driver: tracing what serves the static manifest; uncertainty: low.

  • Risks or open questions: Engagify text says "ZenMemes" in three jokes; under zenmemes the visible text must stay the same.

  • Canonical components/API contracts touched: BrowserRuntimeProfile, BrowserRuntimeAssetRenderer::manifest(), layout meta apple-mobile-web-app-title.

Stage 4

Estimate: 0.10

  • Goal: the tour is ZenMemes-only.

  • Dependencies: Stage 1.

  • Expected changes: a profile field tour (default off; zenmemes on), checked by SiteProfileRegistry validation. When it's off, /assets/tour.html is not offered, the Tools tour card and refresh action are hidden, and ./v3 tour refresh says the active site has no tour.

  • Verification approach: the tour tests under both profiles; Tools viewed under plain.

  • Estimate details: driver: finding every tour entry point; uncertainty: low.

  • Risks or open questions: none material.

  • Canonical components/API contracts touched: Tour/TourFile, Tour/TourSnapshots, ToolsPageController tour section; same pattern as gettingStarted/musicSection.

Stage 5

Estimate: 0.10

  • Goal: docs and concepts match.

  • Dependencies: Stages 1–4.

  • Expected changes: docs/runbooks/production_deploy.md (profile list including plain and jetlag, plain as the default, a zenmemes.com cutover note), docs/reference/v3_cli.md and README where they name the default, a new concept site_profile.md with inventory links, updates to presentation slots and tour snapshot, and PF-20261030-F42's item file (Workflow, Evidence, Notes; Feedback: trailer). Confirm from the runbook and profiles which servers set their ID.

  • Verification approach: git diff --check, plus checking that links resolve.

  • Estimate details: driver: finding every "default is zenmemes" sentence; uncertainty: low.

  • Risks or open questions: none material.

  • Canonical components/API contracts touched: existing runbook and concept files.

Stage 6

Estimate: 0.10

  • Goal: acceptance through normal entry, then the PR.

  • Dependencies: Stages 1–5.

  • Expected changes: none to code. Record evidence in the Step 4 summary, then open the PR with the deploy checklist line and a checkout snippet.

  • Verification approach:

    • A fresh clone with ./v3 start: the home page, a thread, Tools, /manifest.webmanifest and the busy page, viewed in a browser under Light and Dark.

    • With FORUM_SITE_ID=zenmemes: the same pages diffed against main's HTML for the same data, with differences explained or fixed.

    • ./v3 status under both.

    • zenmemes.com replay: pending Ilya's deploy.

  • Estimate details: driver: setting up the before/after comparison; uncertainty: low.

  • Risks or open questions: the zenmemes.com replay can't happen before merge; it's recorded as pending, not passed.

  • Canonical components/API contracts touched: none new.

Study Checkpoint

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

  • Step 3 handoff: 0.85 projected total, reaffirmed from the Step 2 revision. Stage estimates are not additive. Not hours; no approval to advance.

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