# WAOS shared sign-in — child adoption brief

Scope: every user, not an owner account. Reuse existing WAOS profiles. Do not move domains, payments or existing accounts. This WAOS publication cannot change a child project.

## Parent now prepared
- Canonical account home: https://waos-v12.lovable.app
- Managed authorization provider enabled; consent UI: /.lovable/oauth/consent
- Central windows: /office, /lamarquise, /market, /safety; one same-origin WAOS account.
- SOS entry: /rescue; opening it never sends an alert or grants mission access.

## Implement in each child project
1. Register a dedicated OIDC/OAuth client with exact public HTTPS callback(s). Resolve issuer/authorize/token/JWKS through managed discovery, never copy browser session tokens. Use authorization code + PKCE and minimal openid/email/profile scopes. Configure the child's custom OIDC sign-in through its managed Auth settings; do not point the parent back to itself.
2. Preserve existing sign-in and private access policies. Bind the verified issuer + subject to the child's existing account through a user-confirmed link; do not auto-merge by email or use the reporting secret to impersonate users. First connection may require consent and existing-account reauthentication.
3. Add a Continue with WAOS control only after the child provider is configured; return through a public same-origin callback, then resume the sanitized intended page after the child session is available. Preserve LaMarquise membership/age requirements, Office access and Market permissions.
4. Route the shared Colibri entry to https://waos-v12.lovable.app/rescue (or /safety for authorized mission sharing) in the same browser context when possible. Keep private friends/missions under central WAOS owner/invite/territory policies. Do not send automatic alerts on navigation or copy local contacts without explicit migration consent.
5. For Office app launchers, use each app's own verified identity integration. A link or embedded iframe does not sign a user into arbitrary apps. KeyGarden, AladdinQR, Stamper7007 and Tesseract remain outside the shared SOS scope.
6. Keep OAuth and consent/callback URLs network-only in service workers. Do not cache tokens or private authenticated pages. Installed PWAs can have separate storage; test real Android/iOS installations before promising one sign-in across them.
7. Verify per-user isolation with two accounts; successful first and repeat login; exact return preservation; refusal/expiry; local and federated sign-out; owner/invite-only mission access; explicit fresh-GPS sharing; no unintended SMS/alerts. Never log tokens. Mark adoption verified only after actual child-session readback and central safety access.

## Current inspected findings
- LaMarquise has a separate email/password registration and membership flow; it currently returns to /near, not the parent identity provider.
- LaMarquise currently defaults Remember me to true, but an old explicit false preference can still trigger local sign-out on a new visit. Audit that real-device path and session hydration before claiming the reported mobile loop fixed; never override a user's explicit sign-out choice.
- My Virtual Office 2035 has independent accounts and SOS contacts. Its Colibri contract is navigation-only, pointing at the separate Colibri child.
- All-G Market has an independent local SOS route; its button is not central identity federation.
- No child administration or cross-project write MCP is advertised in the available workspace catalog. Read-only snapshots do not permit child changes.

The existing shared reporting secret stays server-only for its existing service scope. It grants neither user sign-in nor access to private safety records.
## First-visit safety and location adoption
- Add the first-visit entry to central /welcome before normal browsing, without blocking free SOS. Birthdate is required for setup; chosen contacts are owner-only and never implicit mission access. The new safety_setup table is owner-scoped with no anonymous access.
- Reuse central Twin/friends in the authenticated central window; private medical fields stay device-encrypted and account-bound. Existing legacy unbound device Twin data is not silently imported into a user's private account.
- Use the same Colibri entry and emergency hold behavior; never dispatch from an install, navigation, login or permission action.
- Hosting request metadata is approximate only, no raw IP stored or returned. Never infer GPS, age or mission territory from it. Missing hints mean Unknown, not Guadeloupe. GPS is captured automatically only when this origin already has permission; otherwise the native browser permission is required. Each device and independent domain has its own grant.
- LaMarquise observed cause: country.tsx starts selected code gp; getEntryCountry only changes localCountry/flag order, not selected media country. Its country-only hint cannot resolve College Park from US. Keep selected Caribbean favorites separate from detected region. Do not silently overwrite an explicit saved selection.
- Radio: radio-stations.ts filters city text against station names; this is not geographical proximity. Replace that filter with validated directory coordinates and distance ordering; preserve fixed default stations and podcasts, and label empty/unknown coverage honestly.
- TV: CaribbeanTV queries news-journals using selected country; augment actual authorized catalog entries by detected region/city, retaining original Caribbean groups. A country hint cannot discover every local broadcaster. Verify country/city metadata, availability and rights before claiming worldwide coverage.
- Browser autoplay may require a tap. Installation cannot enable hardware radio, SMS gateways, USSD, mesh, mobile plans or rescue dispatch. /welcome lists separate 2G/3G/4G/5G/offline limits.
- Child source is read-only here. This brief and WAOS publication are not child changes, confirmed media coverage or global GPS permission.

## Three-tier shared media adoption
- Central shared player: /media, linked beneath the central /office buttons and from /lamarquise. Preserve each child's existing player and adopt this shared tier contract, rather than claiming a link has replaced child code.
- Tier 1: Guadeloupe defaults, Anti Media / Kompa Gold first, Abdulbasit Abdulsamad at one-based slot nine (final owner choice); retain existing Guadeloupe catalog.
- Tier 2: 25 Caribbean territories requested separately, preserving an explicit unavailable state for a country with no directory entries. Original podcasts stay in the child player; they are not copied as broken relative server URLs.
- Tier 3: trusted approximate IP country selects real directory entries; coordinate-bearing radio sorts locally by permissioned GPS, never station-name city matching. TV currently has country-level directory entries, not verified street/city coverage. No raw IP or GPS is forwarded to directories. Missing hosting metadata is Unknown.
- Sources: Radio Browser public country search, IPTV-org country playlists; HTTPS only, bounded requests, no protected/geoblocked feed workaround. These are community catalogs, not provider coverage or rights guarantees.
- Low-data radio prefers listed <=48kbps streams if available; TV requests lowest offered HLS rendition. Neither option is transcoding or a promise of actual 2G reception.
- Saved listings are timestamped local public catalog snapshots, not cached broadcasts or news. New offline TV/radio needs physical receiver hardware/gateway and field-tested transport. CB/ham transmission can require licensing.
- Test Android/iOS installs, 2G throttling, actual stream playback/blocked fallback and location accuracy independently in each adopted child.
