# RootHVN staging-to-production handoff

Status date: 2026-11-29 (Asia/Manila)

## Release decision

RootHVN is **not yet approved for production publication**. The current code and
staging database remain a recoverable acceptance environment. Do not copy the
staging database, synthetic identities, temporary course/Summit fixtures or
cPanel trash into production.

The intended product is a complete utility-and-social super app. Utility-first
launch means the private utility home opens first and the owner initially keeps
Community, Messaging, Courses and Summits switched off. It does **not** mean
those systems are discarded. Each accepted module is independently enabled,
maintained or disabled; switching it off preserves its rows, protected media,
membership links and audit history.

## Current launch-safe staging state

- Enabled: Today, Calendar, Planning, Notebook, Habits, Focus, Notifications and the guarded Publishing creator hub.
- Disabled with data preserved: Community Feed, Messaging, Courses, Summits and
  Event sign-ups.
- Activation-locked until their own acceptance is complete: Botanica and Payments.
- Publishing enables articles and, while Community is enabled, Pages and Roots. Live broadcasting and developer tools remain separately closed.
- Growth Tracker is retired and is not a module or styling dependency.
- The canonical `webdevk` module-management session is restored.
- No production deployment, real-account promotion or production-data change
  was performed.

## Verified super-app behavior

- Owner/admin module switches are audited and non-destructive; ordinary members
  and instructors cannot manage them.
- The utility home survives social enable/disable cycles and remains the stable
  signed-in destination.
- Community passed an ordinary-member post, comment and reaction lifecycle,
  followed by complete fixture cleanup.
- Messaging passed independent member-to-member send, receipt, unread state and
  deletion while Community stayed disabled.
- Teachers can build structured courses with modules, lessons, activities,
  quizzes, flashcards, protected media, review invalidation and an
  instructor-only workbook.
- Learners passed discovery, enrollment, lesson, flashcard, quiz and 100%
  progress on the retained synthetic course.
- The full teacher-to-learner flashcard lifecycle passed on staging: create,
  edit, persistence, exact reorder, stale-version conflict, review
  invalidation/reapproval, learner reveal, delete and clean baseline restore.
  Courses worked independently while Community stayed off, then returned to
  audited Disabled without deleting course data.
- A separate native Sngine administrator review passed: `rh_test_admin`
  approved the clean retained course, and a temporary read-only verifier
  matched the exact pending-to-approved audit row and unchanged original card.
  A second verifier forced the exact notification adapter to throw and proved
  the course state, version and audit count stayed unchanged. All temporary
  verifier paths were removed and returned HTTP 404 before Courses returned to
  audited Disabled.
- Summits passed invitation, approval, roles, privacy/revocation, linked-course
  learning and private native-group discussion while global Community stayed
  disabled.
- Protected course material passed hostile-type rejection, replacement
  quarantine, private delivery, byte ranges, invalid ranges and unenrolled
  cross-account denial.
- Reminders passed schedule, update, reload persistence, cancel and exact
  cleanup on staging HTTPS.
- The signed-in mobile Calendar now fits Sunday through Saturday in one fixed
  seven-column grid with no horizontal page, card or grid overflow. The bottom
  navigation remains fixed and form controls retain a 16px minimum to prevent
  iPhone focus zoom.
- Members have a private, revocable, read-only Apple/Google/ICS calendar
  subscription option. Only the token hash is stored; the readable link is
  shown only at creation/replacement and was not created during acceptance.
- Alert choices are account-scoped, default off and separated into Calendar,
  agenda, Habits, Notebook, Courses/Summits and Community. Permission is never
  requested without a member gesture, and the UI does not claim closed-app
  background push.
- Offline/server replay passed duplicate-create idempotency, current update,
  stale-version conflict preservation, delete replay and residue-free cleanup.
- Offline recipe-to-grocery conversion passed the real dependent queue path:
  save version 2, one private three-row list, duplicate replay idempotency,
  stale client-2/server-3 conflict protection and exact residue-free cleanup.
- Notebook persistence now passes signed staging save, exact replay, stale
  revision conflict protection, host-side size/page/point limits and exact
  restoration of the pre-test notebook.
- The production profile-calendar projection passed a rollback-only host test:
  anonymous received public only, a follower received public plus followers,
  private descriptions/identifiers stayed absent and no fixture row persisted.
- Event sign-ups passed switch-off denial, owner denial, one-time join/cancel,
  duplicate idempotency, aggregate/current-viewer projection, past-event and
  blocked-relationship denials, identity privacy and exact cleanup; the module
  finished audited Disabled.
- Habit isolation passed direct hostile update/archive/restore/delete/check/
  uncheck attempts from a second account, bootstrap read isolation, unchanged
  owner-row verification and residue-free cleanup.
- Kids Mode passed setup, enable, PIN change, old-PIN rejection, disable,
  re-enable and the complete five-failure lockout boundary. The safe bootstrap
  exposed status only, browser offline stores retained no PIN/lock data, exact
  prior preference absence was restored and the public verifier was removed.
- Course access passed owner preview, active and completed enrollment,
  preview-only unenrolled access, adult-only minor denial, Kids Mode denial,
  Kids-safe access and filtered discovery. All three disposable courses were
  deleted, prior Kids/module state was restored and the verifier was removed.
- All eight approved botanical profile colors persisted through the real
  control, rendered as exact escaped public profile accents and reset cleanly
  to Default.
- The hand-authored Today surface now has retained phone, tablet and desktop
  layout evidence; the tablet breakpoint showed the full hierarchy and no
  horizontal overflow.
- Source regressions currently pass across the utility, social, learning,
  module-gate, PWA, media, migration and mobile-route contracts.

The detailed evidence is retained in `RELEASE_ACCEPTANCE.md`,
`COURSES_PARITY.md` and `SUMMITS_PARITY.md`.

## Mandatory gates still open

### Physical-device and signed-session gates

1. On a physical iPhone, install from Safari, close the app completely, enable
   airplane mode, cold-open it and verify the explicit active account restores
   without exposing another account; then reconnect and repeat the already
   passing local create/update/delete queue-drain matrix on the installed app.
2. Grant notification permission on each claimed platform and prove schedule,
   reschedule, cancel and cleanup. RootHVN does not claim background web push;
   device alerts are only claimed while the installed app is active.
   Create a disposable private calendar subscription, confirm Apple/Google or
   another ICS client refreshes it, then revoke it and confirm refresh fails.
3. Sign out and switch between two temporary accounts on the installed client;
   confirm the active offline pointer is cleared and private snapshots never
   cross accounts.
4. Play a protected MP4 and caption track through Safari/PWA byte ranges.
5. Exercise the 350 ms Calendar hold gesture and all eight highlighters on a
   touch device.
6. Visually accept Today at phone, tablet and desktop widths and verify the
   self-hosted Fraunces/Montserrat typography offline.

### Host and rollback gates

Staging code backup, rollback, forward recovery, 127/127 byte comparison and
34/34 host PHP lint now pass. Before publication:

1. Create fresh pre-cutover **production** code and database backups, record
   both checksums and restore them into a disposable target. A backup that was
   not restored is not release evidence.
2. Compare the production target to the final external candidate attestation
   after the allowlisted copy; never rely only on cPanel's extraction message.
3. Rehearse migration recovery from the verified production backup and preserve all legacy
   safety tables. Never edit an applied migration checksum or drop namespaced
   tables to make old code load.

### Remaining product and security acceptance

- The final web-session matrix passed private bootstrap isolation plus foreign
  item, subtask, habit, reminder and module-mutation denials, malformed and
  expired-session fail-closed behavior, valid CSRF and exact cleanup.
- The rendered profile-calendar replay passed for a real anonymous viewer and
  follower, including the Calendar/Planning-disabled state, zero retained marker
  rows and removal of the public verifier to HTTP 404.
- Retained Summit owner/member/privacy, minor and Kids Mode access boundaries
  passed with transaction rollback, exact module/preference restoration and
  public-verifier removal to HTTP 404.
- Course-to-calendar and explicit course-sharing integrations passed against
  the production endpoint: deterministic calendar retry produced one private
  item, unconfirmed sharing produced nothing, exact consent replay produced one
  friends-only post, and cleanup restored all module states with zero residue.
- The retained Summit passed invitation/replay/revocation, invite-only
  join/replay, native/RootHVN count synchronization, moderator role replay,
  one public-event replay, leave replay and complete invitation/membership/role
  audit inspection. Cleanup restored its exact historical membership row,
  module states, settings and counts; the temporary verifier now returns 404.
- MP4/WebVTT validation, private finalization, authorized range/caption delivery,
  unenrolled and raw-path denial, forced transaction/file rollback and exact
  cleanup passed against staging HTTPS.
- Signed-mobile Course/Summit routes are implemented through the canonical read
  models and mutation handlers. Their 28/28 disabled/enabled, privacy,
  representative authority and forged-business-host matrix passed; physical-device
  client use remains a release gate.
- Repeat a short production smoke of sign-in, profile, notifications and the
  six enabled utilities after the explicit publication step; the exact staging
  candidate already passed its utility-first and retained native regression.

Payments and paid access remain fail-closed until signed webhooks, idempotent
settlement, refund reconciliation, entitlement revocation and payout behavior
have their own staging evidence. A utility-first release must not silently
present unfinished paid enrollment as working.

## Cutover order after every gate passes

1. Freeze the exact release archive, manifest and checksum.
2. Take and verify production code/database backups.
3. Apply only allowlisted files; preserve configuration, licenses, uploads and
   private course media.
4. Run host lint, extension checks and migration verification before enabling a
   new module.
5. Keep Community, Messaging, Courses, Summits, Event sign-ups and Payments off
   for the initial utility-first public opening.
6. Smoke-test sign-in and the six enabled utilities with a temporary account.
7. Enable an accepted social/learning module only through the audited owner
   switch, one module at a time, with rollback ready.

Publication requires the user's explicit `Publish RootHVN` instruction after
the acceptance record is complete. Until then, all work remains staging-only.
