Repository source: docs/plans/mit_rap_club_website/mit_rap_club_website_step3_development_plan.md
Completion Contract
Normal entry:
FORUM_SITE_ID=mitrapclubis set and the app root is loaded.End-to-end outcome: branded board (new theme) loads; about page tells the club's story and links to YouTube/Instagram/Facebook; composer starts a thread; existing thread/reply behavior is unaffected.
Required recovery: unset or unknown
FORUM_SITE_IDstill falls back to thezenmemesprofile — no regression to existing profiles.Deployment/external verification: out of scope for this plan (carried from Step 2's risk decision). This covers only the application-level profile/theme/content and its test coverage; standing up a real hosted
mitrapclubinstance (vhost, DNS, separate repo/DB roots) is a follow-up feature.Release condition:
./v3 testpasses in full, including the profile-iteration tests (SiteProfileRegistryTest,LocalAppSmokeTest's per-profile loop) now coveringmitrapclub.
Key Risks
High risk: Theme/branding may not land the intended cypher aesthetic (usability). Early validation: visual review against
cypherposium.comafter Stage 1. Mitigation: ship a clean baseline theme; treat polish as iterative.Browser-namespace or permitted-theme collision when registering the new profile. Early validation:
./v3 testafter Stage 4 (existing validation tests fail loudly on collisions). Mitigation: confirmmitrapclubis unique againstzenmemes/chouse/qdbbefore writing the entry.Touching
templates/pages/about.phpfor social links could regress chouse'sshowHackableSectionbranch. Early validation: full smoke-test profile loop re-run after Stage 5. Mitigation: keep the new block strictly additive and conditional on data presence.Deployment/hosting is explicitly out of scope here (see Completion Contract) — called out so it isn't mistaken for unfinished work.
Stage 1
Goal: introduce a new
mitrapclubtheme.Dependencies: none.
Expected changes:
ThemeRegistry::all()gains one entry:{name: 'mitrapclub', label, mode}.New stylesheet
public/assets/theme-mitrapclub.css, authored following the existingtheme-chouse.css/theme-qdb.cssvariable pattern (not forked from either).
Verification approach: existing theme tests continue passing; visual check of the new stylesheet in a browser.
Risks or open questions:
Impact: aesthetic may miss the cypher/grassroots tone from Step 1's inspiration.
Early warning / validation: compare rendered page against
cypherposium.combefore Step 4 closes.Mitigation: ship a clean baseline now; iterate visually afterward.
Canonical components/API contracts touched:
ThemeRegistry::all().
Stage 2
Goal: register
mitrapclubas a valid choice for theeditorialandbrandedStylesheetpresentation slots.Dependencies: Stage 1 (the theme name referenced by
brandedStylesheetmust exist).Expected changes:
PresentationSlotRegistry::SLOTS['editorial']['choices']andSLOTS['brandedStylesheet']['choices']each gain'mitrapclub'.Verification approach: existing slot-resolution/validation tests still pass for
zenmemes/chouse/qdb(no behavior change for them).Risks or open questions: none material.
Canonical components/API contracts touched:
PresentationSlotRegistry::SLOTS.
Stage 3
Goal: add club-specific editorial copy.
Dependencies: Stage 2 (slot choice must exist for
editorial()resolution).Expected changes:
ProfilePresentationContent::EDITORIALgains a'mitrapclub'key withcommunityHeading/communityParagraphsdescribing the club (cyphers, the CMS/W rap-theory programming context from Step 1 research) plusdocsIntro/architectureTitle/architectureDescription/busy*copy matching the existing shape.Verification approach: render
about()/platformDocs()/busy()for the new key and confirm no errors; existing presentation-content tests unaffected.Risks or open questions:
Impact: the fixed, generic intro sentence in
about()("is a small forum for people who want...") still won't read as club-specific.Early warning / validation: visible on first render of the about page.
Mitigation: accepted for v1 per Step 2's resolution — the real description lives in the new
communityParagraphs, not the fixed intro.
Canonical components/API contracts touched:
ProfilePresentationContent::EDITORIAL,about(),platformDocs(),busy().
Stage 4
Goal: register the
mitrapclubsite profile.Dependencies: Stages 1–3 (theme, slot choices, editorial key must already exist for validation to pass).
Expected changes:
SiteProfileRegistry::all()gains'mitrapclub' => {name, displayName, defaultTheme: 'mitrapclub', permittedThemes: existing list + 'mitrapclub', browserNamespace: 'mitrapclub', editorialContentKey: 'mitrapclub', enabledExperienceKeys: ['forum'], composerPrompt: <club-specific prompt>, presentationSlots: {navigation: 'forum', boardCard: 'thread', compose: 'thread', about: 'default', editorial: 'mitrapclub', brandedStylesheet: 'mitrapclub'}}.Verification approach:
./v3 test, specificallySiteProfileRegistryTest(testAllProfilesHaveRequiredFields,testActiveHonorsRegisteredOverrides, duplicate/unsafe-identifier checks).Risks or open questions:
Impact: browser-namespace collision with an existing profile.
Early warning / validation: the existing duplicate-namespace test fails immediately on the next test run.
Mitigation:
mitrapclubis already distinct fromzenmemes/chouse/qdb; confirm again before committing.
Canonical components/API contracts touched:
SiteProfileRegistry::all().
Stage 5
Goal: surface standing links to the club's YouTube, Instagram, and Facebook.
Dependencies: Stage 3 (link data lives alongside the editorial content, not hardcoded in a template).
Expected changes:
Extend the
mitrapclubabout-page content (from Stage 3's data) with the three social URLs.templates/pages/about.phprenders an optional "find us" list only when that data is present — additive, so other profiles render unchanged.
Verification approach: render
mitrapclub's about page and confirm the three links appear; re-renderzenmemes/chouse/qdbabout pages and confirm no markup change.Risks or open questions:
Impact: a change to
about.phpcould regress chouse'sshowHackableSectionbranch.Early warning / validation: re-run the full profile-loop smoke test after this stage.
Mitigation: keep the new block strictly additive and gated on data presence.
Canonical components/API contracts touched:
ProfilePresentationContent::about(),templates/pages/about.php.
Stage 6
Goal: confirm no regression and full profile-regression coverage for the new profile.
Dependencies: Stages 1–5.
Expected changes: none — verification-only.
ProfileRegressionContract::all()andLocalAppSmokeTest's profile-switch/profile loop pick upmitrapclubautomatically since both iterateSiteProfileRegistry::all().Verification approach: run
./v3 test(full suite) and confirmSiteProfileRegistryTest, theLocalAppSmokeTestprofile-loop assertions, and presentation-content tests all pass withmitrapclubincluded.Risks or open questions:
Impact: profile iteration could surface an unanticipated interaction (e.g., an offline-cache key collision).
Early warning / validation: this stage's test run.
Mitigation: fix forward within this stage before Step 4 is considered done.
Canonical components/API contracts touched:
tests/Support/ProfileRegressionContract.php,tests/LocalAppSmokeTest.php,tests/SiteProfileRegistryTest.php(all read-only / exercised, not modified).
Waiting for "Approved Step 3" before branching and starting Step 4.