# WAOS City OS → WAOS V12 adoption

## Deferred two-pilot planning
Adopt [the two-pilot handoff](/waos-city-pilots.md): Les Saintes SOS FIRST, Vanuatu V21 Veranda SECOND, the same future owner-confirmed campaign control. Planning metadata is available in the mother City/Colibri catalog; no launch, private mission forwarding or WHO/UNDRR participation is established.

Run this work in the WAOS City OS project chat. Parent service readiness is not proof that City OS has adopted it.

## Existing City OS behavior to preserve and correct
- Preserve selected-city state, place QR export and city dashboard features.
- Current agent `fixRows` creates local `7007-*` labels, not cryptographic evidence. Retain legacy records but label them sample/local/unverified. Do not turn a fix into independent proof, a scan, a real repair or a Bitcoin anchor.
- QR v2 binds city ID, record ID, HTTPS destination and optionally the exact Stamper report digest. Integrity does not certify city authorization. Never put private GPS, session tokens or secrets in a QR.

## Server-only connection
- Parent: https://waos-v12.lovable.app
- Save the identical existing shared value as `WAOS_MARKET_SECRET` in City OS through its secure secret form. Never expose it in browser code, QR codes, logs, links or downloads.
- If the owner no longer has the value, coordinate replacement in the parent and ALL connected children; do not independently rotate one app.
- From authenticated City OS server functions, verify municipal roles stored in protected role records before calling the parent. A shared server token does not authenticate citizens or authorize an operator.
- POST JSON with `Authorization: Bearer <server environment value>`; parent responses are no-store. Handle 400/401/503; no browser calls or public forwarding proxy.

## Stamper service
`POST /api/public/city/stamper`
Body: `{city_id, record_id, link, source_text, process}`. All strings are bounded; process must contain identity, ownership, terms, privacy, payment, fulfilment, complaints and audit. Each has `{evidence, finding: "unknown"|"supported"|"concern"}`.
Response: `{city_id, record_id, report}`. Report includes canonicalPayload and SHA-256; process findings are reviewer-supplied. Store the exact returned report in City OS Cloud with append-only evidence history. No crawl, malware/reputation check or verified city identity is supplied. Bitcoin remains `not_submitted`; Stamper 7007 must submit and verify an OpenTimestamps proof binding these exact canonical bytes.

## Aladdin QR v2 service
`POST /api/public/city/qr`
Body: `{city_id, record_id, destination, evidence_sha256?}`. Destination must be public HTTPS without credential/secret flags. Evidence digest is optional lowercase SHA-256.
Response: `{payload, canonicalPayload, sha256, signatureVerified: false, assessment: "integrity_only", limitations}`.
Render `canonicalPayload` with the existing real QR library. Verify the SHA against the scanned bytes, then resolve records only through authenticated city access controls. A digest can be recomputed by anyone: no issuer signature is implied. Updating a record requires new evidence and a new envelope, not rewriting past proofs.

## Colibri boundaries
Use https://waos-v12.lovable.app/safety as a public same-origin sign-in destination in the parent; links do not share sessions. Family missions remain private; no secret-based mission export or automatic city-government visibility. No QR scan triggers SOS. Government access requires approved territory operators. Real rescue/mesh/SMS coverage requires supervised provider and device verification.

## Completion evidence
Verify an authenticated municipal user creates evidence, generates QR, scans it, compares the exact digest and reads the scoped Cloud record back; verify unauthorized users cannot read another city's records. Never seed demo trust or announce full integration until these checks pass.
## Observed City OS alert-intake gap — 19 November 2026
The child snapshot implements a shared-bearer worldwide full alert feed and upserts alert records. WAOS does not adopt that feed for private missions. Before connecting real Colibri missions, the editable City OS project must enforce consent and protected territory-operator permissions on reads/writes, minimize location/notes, and append events instead of rewriting history. Verify separate authorized and unauthorized users; receiving a record never means rescue dispatch. Do not ask the owner to re-enter an already stored shared credential.

## Municipality package — latest mother offering
The parent /city view exports a municipality package with territory dashboard, Colibri, photo/Stamper reports, Aladdin QR, V19 Trust and V21 patient-controlled claims. myctos.io is a proposed domain, not connected or published here. Pricing is unset. Adopt the package through protected territory roles, explicit mission consent and append-only evidence. Preserve the existing dashboard. Mother /stamp-test can produce a local photo report with exact-byte SHA and digest QR; device time is self-reported, Bitcoin not submitted, and the report is not a municipal signature or truth certificate. Do not forward private family missions with the shared reporting key.
