Binding rules for the Clarity castle. This is a discovery document —
it does not replace Companion, Yawm, University, Amānah, or Craft, and it does not rewrite their navigation.
Room apps may be stricter; they may not be weaker.
These protect the user from “empty shell” upgrades and accidental hide-states. They bind Companion especially; other rooms should not regress them.
Visibility
§V1 — Mounted work must be seeable. Content that belongs on the active tab/path must not sit at display:none, zero height, or near-zero opacity because of a stray style or parent chain.
§V2 — Path lock ≠ hard wipe. Hiding sections for an educational path is allowed. Silently destroying markup, canvas, or media hosts is not.
§V3 — Media hosts stay dimensional. Meme stage/canvas and reflection media frames keep a real minimum height when their section is legitimately open.
§V4 — Details may open for access. Enrichment held in details elements may be opened by foundation scripts so the user can reach what the tab promises.
Richness
§R1 — Intro honesty. Section counts and pathway blurbs must match what the active path/tab actually offers — not a global maximum.
§R2 — Enrichment holds. Reflection / deep-hold / archive layers exist to preserve curated richness across deploys. An upgrade may refine them; it may not blank them without a named migration.
§R3 — Engines rehydrate. Tab HTML injected into the mount must re-run its scripts (Campus-style mount fortify). A pretty shell with dead engines is a failed deploy.
§R4 — Craft boundaries. Meme and heavy craft desks respect path governance and Craft’s media charter; they must not flash into Seeker-only views.
6. Companion foundation (Campus-grade)
University keeps a charter and ordered stages so progress is not a random pile of pages.
Companion keeps a foundation seal and layered modules so reminder work is not one fragile file.
Seal:data-companion-foundation-seal="v1" and data-clarity-room="companion" mark the shell.
Own asset graph: Companion lives under /companion/ + /companion/assets/ — not inside another room’s bundle.
Path governance: Seeker → New Muslim → Daily Muslim → Aspiring Daʿī are educational tracks, not ranks of īmān.
Mount fortify: tab mount re-inserts scripts and dispatches mount events so hydrators run.
Visibility foundation + hold-fix: protect richness after style/path races.
Integrity pass: cards outside the active path stay gated; vault/craft boundaries respected.
Archive layers: versioned archive/enrich modules may stack; newer layers refine, older layers are not deleted casually.
Operator note: offline pulls and deploys should ship the seal, shell, path governance, mount fortify, visibility foundation, and integrity modules together.
7. Upgrade & preserve rules
These rules bind the Port lobby and every room:
Companion, Yawm, University (Campus), Amānah, and Craft.
A deploy to one door must not erase another.
No upgrade may cause loss of work in place — on the Port or in any room.
Castle-wide
Additive first. Prefer new versioned files (*-v2.js / *-v2.css) over silent overwrite of foundation modules.
Room isolation. Deploying one room (or Port) must not require wiping another room’s HTML, assets, or service-worker bucket.
Cache honesty. Service worker and CDN query strings must deliver the new layer without purging unrelated room caches. Phase A buckets stay per-room: port · yawm · companion · campus · amana · craft · assets.
On-device user data. Path unlocks, notes, vault blobs, campus progress, and similar localStorage / IndexedDB keys are user data — rename only with read-migrate-write.
Rollback is a feature. Keep a prior asset version query or archive folder; prefer roll-forward or roll-back over “delete and hope.”
Empty shell is a defect. If a page or tab promises sections the user cannot open or see, the deploy fails §R1 / §V1 for that surface.
Port is not disposable chrome. The lobby (/) is the map of the castle. Upgrades may refine it; they must not strand users without working door links to all five rooms.
Per surface
Port — preserve five-door entry, educational disclaimers, and room-nav assets; do not fold room apps back into a single monolith without an explicit architecture decision.
Companion — never strip data-companion-foundation-seal without a major foundation bump; ship shell, mount fortify, path governance, visibility foundation, and integrity together.
Yawm — preserve today’s-portion modules and daily loop structure; do not clear the user’s day markers without migration.
University (Campus) — preserve charter limits and ordered stages; progress markers stay on-device study mirrors, not grades of īmān.
Amānah — never ship a change that exfiltrates vault passphrases or rewrites encrypted blobs without a versioned migrator; desk remains usable without unlock.
Craft — preserve media daʿwah charter (source discipline, scenery rules, educational stamp); studio state on-device is not to be wiped by a CSS-only deploy.
Stricter room rules are allowed. Weaker preserve rules are not.
8. Five rooms — boundaries
Companion Pathways · reminder · tools · RRRA
Yawm Today’s portion · daily loop · heart of the castle
University Ordered study · study mirror, not a grade of īmān
Amānah Trust desk · optional vault · not legal advice