parley.tuturuuu.com app retires behind permanent redirects once Meet covers
every Parley route. Both halves ship behind flags that default to off.
What Parley does that Meet lacks
Activity design
The activity is a registry entry (live-parley) in
packages/meet-core/src/features/call/tools/registry.ts, so it opens in a
stage pane like Q&A or Icebreaker and follows the same rules for who may browse
the hub (roomTools.canUse, or room activity runners for workspace co-hosts).
State lives in the room’s existing live-activities state on the Meet realtime
Durable Object and travels over the existing activity.read /
activity.command channel. The room is the authority:
parley.presentsets or clears the scenario. Only people who run room activities (canMeetRealtimeRunActivities) may send it. The room issues a freshscenarioIdand drops every role claim each time.parley.claimtakes or releases one human-controlled role. Any admitted participant may send it. It names thescenarioIdon their screen, so a claim made for an earlier scenario is refused. One role per person, and one person per role.- The room snapshot carries the public scenario fields and the claims. Nothing private enters the room: role briefs, AI instructions, the rubric and references never leave the server.
GET /api/meet-call/[meetingId]/parley-scenarios,
which requires the meeting’s host or room activity runner and hasParleyAccess
for the signed-in account. It returns at most 100 published scenarios through
listScenarios, which already blanks role briefs. Presenting copies only the
title, category, briefing and role names into the room. A host can already
broadcast free text through Icebreaker, so presenting a briefing adds no new
trust.
Rate limits and size limits are the live-activities ones: one shared action
budget per account per minute, a 112 KiB view and a 256 KiB stored state.
No new Cloudflare operation type is introduced; each command is one Durable
Object message, as for every other activity.
Flags
Turn on the realtime flag in a release that deploys the realtime Worker before
the Meet app. A room that runs older code refuses
parley.* commands as
malformed, so the panel shows its outdated-version notice instead of failing
silently.
Data and permission mapping
Slice 2 must replace the
parleySession && MEETING_APP !== 'parley' refusals in
call-access.ts and meeting-ai/server/access.ts with a Parley-access check
for scenario meetings, so existing Parley rooms open in Meet with the same
admission rule they have today.
Redirect map
apps/parley/src/meet-redirect.ts maps each Parley page to Meet. The locale
prefix (/en, /vi) and the query string carry over, and room codes stay
unchanged because both apps encode the same meeting ids. Every redirect is a
308. Authentication callbacks, /api/*, /login, /verify-token and
/access-denied are never redirected, so in-flight sessions and API clients
keep working until the Worker retires.
Do not turn
PARLEY_MEET_REDIRECT on before slice 2 lets Meet open Parley
sessions and slice 3 moves review: room and review links would otherwise land
on Meet’s refusal. Browsers cache 308 responses, so a premature switch cannot
be undone for visitors who already followed it.
Retirement steps
List only; each step needs the release authority and stays out of this change.- Enable
MEET_LIVE_PARLEY_ENABLEDafter slice 2, deploy realtime then Meet. - Set
PARLEY_MEET_REDIRECT=onfor thetuturuuu-parleyWorker and verify every row of the redirect map on the deployed Worker. - After a redirect-only period, replace the Parley Worker with a minimal
redirect Worker or a Cloudflare redirect rule for
parley.tuturuuu.com. - Remove the
tuturuuu-parleyWorker, itsNEXT_INC_CACHE_R2_BUCKET(tuturuuu-parley-cache), theMEETING_AI_PROVIDERservice binding and theMEET_LIVEDurable Object reference totuturuuu-meet. - Keep the
parley.tuturuuu.comcustom domain and DNS record while redirects serve traffic; remove them only after traffic is negligible. - Remove
parley-cloudflare.yaml,parley-offline-diagnostic.yaml, thedeploy-parley-cloudflarejob invercel-production.yaml, and the Parley entries intuturuuu.ci.ts. - Remove the
parleyentries inpackages/utils/src/internal-domain-entries.tsand the central auth registry, thenapps/parley. - Keep
private.parley_*tables and the access list; Meet reads them.
Risks
- Meet admitting Parley sessions (slice 2) widens Meet’s runtime to scenario
meetings. The admission rule must stay
hasParleyAccessplus room admission. - Mira behavior keys on
MEETING_APP === 'parley'today. Until it keys on the meeting, a Parley scenario in Meet runs Mira with Meet instructions and search. - The room snapshot holds public scenario text up to the 112 KiB view limit; a
very long briefing reports
activity_fullinstead of truncating. - Redirects are permanent. Stage them only after the Meet targets work.
- Parley-specific CI holds in
tuturuuu.ci.tsremain until retirement.
live-parley.test.ts (room authority, flags and stale
claims), parley-panel.test.tsx (presenting, claiming and refusals),
parley-scenarios/route.test.ts (flag, host and Parley-access checks, public
fields and the 100-item bound), registry.test.ts (flagged registration),
meet-redirect.test.ts (redirect map) and apps/parley/src/proxy.test.ts
(flag off by default, 308 before authentication, callbacks kept).