# RootHVN Summits parity and release contract

Summits are RootHVN's focused learning communities. The Replit cohort experience is the behavioral source; native Sngine Groups supply the proven post, membership, profile and social-graph infrastructure behind the RootHVN interface.

## Launch rule

The `cohorts` module remains `disabled` until the staging role, privacy and migration evidence below passes. Source checks, a styled page or an administrator preview are not production evidence. Paid access remains fail-closed until payment and refund acceptance is complete.

## Member experience

- Discover public and invite-only Summits; never disclose a private Summit to a non-member.
- See the trusted business Page host, member and post counts, access rule, price state and people the viewer follows.
- Save an eligible Summit without gaining membership or content access.
- Join a public Summit immediately or request approval according to its policy.
- Require an unexpired native invitation for invite-only and private Summits.
- Keep private and invite-only conversations unavailable until membership is active.
- Leave without deleting prior posts, then require the current access rule before rejoining.
- Open the native Sngine community only after active membership.
- When the global Community Feed is disabled, open only the native group linked to that exact enabled Summit. The host, active members and application administrators may use its focused discussion; global group discovery and unrelated groups remain unavailable.

## Host and moderator experience

- Create a Summit only for a Sngine Page the creator manages.
- Back every Summit with one native Sngine Group through `rh_cohort_sngine_links`; never duplicate posts or the social graph.
- Use public, invite-only or private discovery and open or approval-required joining.
- Invite an exact RootHVN username, view pending invitations and revoke an invitation.
- Approve or reject pending requests and record the actor, target, transition, reason and time.
- Edit the name, tagline, description and access rules while keeping the native group privacy synchronized.
- Audit every settings change with before/after data and an optional owner reason.
- Link or unlink approved RootHVN courses only while Courses is enabled.
- Keep free access as the only available launch state until paid acceptance passes.

## Privacy and safety boundaries

- A private Summit is absent from member discovery unless the viewer is active, the host or an application administrator performing preview.
- Invite-only and private join requests require a matching native Sngine invitation.
- Adult-only Summits are excluded for minors and Kids Mode. Adult-only status cannot be added after other members have joined.
- Recent posts are shown to non-members only for public Summits and only when Sngine marks the group post approved.
- Member, invitation and settings changes require RootHVN CSRF validation, a signed-in non-demo account and an enabled Summits module.
- The linked-group exception is fail-closed and non-transitive: it requires a published, non-deleted Summit, the exact `rh_cohort_sngine_links` group and authorized membership. It does not enable the global feed, group discovery, unrelated groups, generic group administration, Messaging, monetization or broader social navigation.
- Existing pre-Summit cohort rows remain untouched and unavailable until explicitly linked to a native group.
- Official RootHVN assets are used for fallbacks; the Summit interface does not generate replacement artwork.

## Migration and rollback boundaries

- Migration `0003_learning_engine.sql` is immutable after release and must retain its recorded checksum.
- Migration `0004_cohort_module.sql` adds only namespaced, repeatable tables plus the default-disabled module seed. It does not alter or delete an Sngine table.
- Disabling Summits leaves native groups and RootHVN audit history intact.
- A code rollback must not delete native groups, group posts, memberships or `rh_*` evidence.

## Required staging evidence

1. Fresh install and upgrade from a database with `0003` already recorded.
2. Member, moderator, Summit host, RootHVN administrator and canonical owner roles.
3. Public/open, public/approval, invite/open, invite/approval and private access combinations.
4. Direct URL and direct API attempts from a non-member, minor, Kids Mode account and demo account.
5. Invitation send, replay, revoke, accept, join replay, leave and rejoin paths.
6. Settings audit, membership audit and invitation audit row inspection.
7. Native group count, RootHVN count and shortcut consistency after every membership transition.
8. Course link/unlink with Courses enabled and fail-closed behavior with Courses disabled.
9. Narrow phone, tablet and desktop visual checks with long names and descriptions.
10. PHP lint, MariaDB/MySQL migration rehearsal, backup restore and code rollback rehearsal.

The module may be enabled only after this evidence is attached to the release acceptance report.

## Enabled-authority evidence

On staging, Courses and Summits were temporarily enabled together while Community Feed remained Disabled. A clean ordinary member received 403 for exact-current-value Summit settings, role change, course-link and public-event creation requests. The retained course instructor received 403 for foreign-Summit settings and course linking. The synthetic Sngine administrator reached the intentional same-state settings preview and received `changed:false`, creating no audit or content change.

Positive integration then linked the approved synthetic course to the private synthetic Summit. An active learner opened the course from the Summit, retained 100% progress, entered only the linked secret group, published and reloaded a disposable discussion, added a comment, and removed the complete disposable thread. This runtime pass found and repaired the prior hidden dependency on the global Community gate. It also found that Sngine's custom confirmation prevented the old unlink handler from issuing its request; the accessible two-step replacement successfully removed the temporary link and the absence persisted after reload. The canonical owner session was restored, Courses and Summits returned to audited Disabled, direct group access failed closed, and the course data remained available to owner preview.

## Privacy, minor and Kids Mode evidence

The retained staging Summit then passed a self-restoring role matrix through the production read model. The canonical owner passed private adult-only preview and the retained-member boundary. `rh_test_member_a` passed 5/5 active private-membership checks, including exact linked-group retention. Adult nonmember `rh_test_member_b` passed 6/6 public-preview, invite-only/private denial and Kids Mode adult-only exclusion checks. `rh_test_minor` passed 4/4 identity, general-Summit access, adult-only denial and adult-only discovery filtering checks.

All temporary visibility, adult-only and Kids preference changes ran inside rolled-back transactions. Cleanup restored the exact prior preference and audited module state, returned Summits to Disabled, removed the private manifest, restored the owner session and moved the temporary public verifier to cPanel trash. Its cache-bypassed URL returns HTTP 404.

## Invitation, count, audit and public-event evidence

The production Summit endpoint then passed a second self-restoring matrix with the canonical staging owner, the exact synthetic Summit host and `rh_test_member_b`. The member was invited, the exact invite replayed, the invite was revoked and reissued, and acceptance produced one active native and RootHVN membership. An exact invite-only join retry returned the existing membership without requiring a new invitation; this run found and repaired the earlier ordering defect that checked for a fresh invitation before recognizing an already-active member. Native Group and RootHVN counts both advanced by one, then returned to baseline after leave and leave replay.

The exact Summit host promoted the member to moderator, replayed the request, demoted the member and replayed again. The host also created one public Summit calendar event; an interrupted-client retry returned the same event and did not duplicate it. Final inspection proved two invited, one revoked and one accepted invitation audits plus active, role-transition and left membership audits. Cleanup deleted the exact event/key, disposable native membership/admin/shortcut/invite rows and new audits; restored the member's prior historical RootHVN membership row exactly; restored all module, Summit and group settings/counts; removed the private manifest; restored the canonical owner session; and moved the public verifier to cPanel trash. Its cache-bypassed URL returns HTTP 404.

## Signed-mobile evidence

The canonical RootHVN mobile router now exposes signed Summit discovery, detail and allowlisted mutation dispatch through Sngine's existing API authentication. It reuses the same Summit read model and mutation handler as the PWA. A self-restoring staging harness passed the combined 28/28 member/instructor/administrator Course/Summit matrix: Disabled returned 404 for every role; enabled discovery returned only permitted cards; the private retained Summit returned 404 to the unrelated member and instructor but loaded for the administrator; foreign settings and course-link attempts returned 403; an exact administrator settings preview returned `changed:false`; an unknown action returned 404; and the additional Course probe rejected a forged business host. The retained Summit hash and exact module state were unchanged, disposable API sessions were deleted in `finally`, and the removed harness URL returns RootHVN's 404.
