Product decision
Decision (24 November 2026). Status: design approved by security and privacy review with implementation conditions; implementation in progress. Nothing here is enabled. Scope: Meet live transcription and AI notes. Parley stays off. This changes the transcript part of Mira host consent in meetings (“Effect of one opt-out”); room chat Mira, the host acceptance, the 18+ declaration and the join tick box are unchanged. Default: off. A deployment flag must be on, and then the host picks the capture mode per meeting. Host room capture stays available as the fallback mode.Architecture
The design adopts the participant self-capture contract (self_v1) whose
database half is already on main
(Self-capture read contract).
It ships the smallest application path that uses those contracts; the parts it
defers are listed under Release gates.
Flag and mode
MEET_AI_PER_SPEAKERis on only when it equalstrue, andMEET_AI_PER_SPEAKER_WORKSPACESis a server-side allowlist; an empty or unparseable value admits no workspace. Both are set on the Meet Worker (tuturuuu-meet) and the realtime Worker (tuturuuu-meet-realtime). The Meet Worker re-reads them at session start, stream open, chunk admission, dispatch and notes; the room refuses the per-speaker mode and every per-speaker command when its own copy is off. The uploader path also requiresMEETING_APP === 'meet'and a same-origin request. The existing kill switchMEET_AI_DISABLEDoverrides both.- The room Durable Object stores the capture mode per meeting
(
transcript.mode, host or co-host only). It refuses a mode change while a session is active or draining. - The existing
transcription-availabilitygate (kill switch, workspace gate, owner-bound 18+ declaration) and the room Mira acceptance apply unchanged before a session can start.
Session
When the flag allows it and the mode is Each person’s device, the host’s start request creates ameet_ai_sessions row with protocol = 'self_v1', a
fixed payer (billing_host_id = the host account and billing_ws_id = the
meeting workspace, as the session guard requires), a 3-hour capture deadline,
capture_state = 'active' and cost_cap_usd = 20. billing_ws_id records
which meeting the payer pays for; the AI credit workspace is derived, not
stored (see Billing).
The room records the session id, protocol and generation. For a self_v1
session the room refuses the client-writable transcription.state and
transcription.speaker commands.
Consent: one live fence, one legal record
The realtime Worker has no database credentials, so the two stores have fixed roles:- Live fence (room Durable Object). Per account (guests included): the transcript choice, the Mira choice, presence, and the current Mira acceptance revision. Every admission, the dispatch step and the persist step read it. Anything that ends a person’s eligibility (untick, Turn Mira off for me, leave, removal, heartbeat expiry, Mira turned off, a minor report, a notice bump) takes effect here first and at once.
- Legal record (
private.meet_ai_consents). Written only by the Meet Worker, which holds the server credential. Itsself_v1triggers derive the per-session consent revision, revoke live streams ondenyorwithdrawin the same transaction, and refuse chunk inserts and dispatch under an old revision.
(session, account). Endings append an entry to an ordered per-account
legal outbox in the room:
withdrawfor a consent ending: untick, Mira off for me, Mira turned off, minor report, notice bump.revokefor removal by the host or a co-host. It sets the session’s permanentupload_revoked_at.closefor leave or heartbeat expiry. It closes only the live capture stream, so a participant who reloads or rejoins can open a new stream under their current consent.
withdraw, revoke or close entry. It stays
bounded because each account may record at most 10 allow decisions per
session (new migration check; deny and withdraw are never capped), so it
holds at most 11 consent entries plus one stream entry per account.
A migration adds room_seq to private.meet_ai_consents and the revoke and
close RPCs for self_v1 sessions, with a unique (session_id, user_id, room_seq) key and a trigger that refuses any room_seq not greater than the
largest already recorded for that account. A duplicate drain of the same
entry is therefore a no-op, and a slower drain of an older entry can never land
after a newer decision. The Meet Worker treats “already recorded” as success
and acknowledges the entry.
Open stream (the client calls it when its live choice is Allow and a
self_v1 session is active):
openSelf.begin: the room checks the live fence, returns the pending outbox entries, bumps the choice epoch toE, and assigns the next room sequence number to the comingallow.- The Meet Worker writes the pending entries in order and acknowledges them.
- It appends
allowwith its room sequence number whenever the latest decision is notallow(always after awithdraw), giving revisionR; callsprivate.record_meet_ai_self_v1_admissionwith the room’s generation; and opens streamSwith a 60-second lease. openSelf.commit {E, R, S}: the room storesRandSonly if the epoch is stillE, the choice is still Allow and the acceptance is unchanged. Otherwise the room queues awithdrawwith a new, higher sequence number, and the Meet Worker writes it at once, which closesS.
R and S.
Drain points: every Meet Worker request that touches the room for the session
(open stream, chunk admission including refused ones, stop, finish, the
participant’s choice request). When the room ends, expires, turns Mira off or
removes someone with entries still pending, it arms one Durable Object alarm
that posts the outbox to a signed Meet Worker endpoint, at most 6 deliveries
with backoff, counting deliveries in storage and stopping when the outbox is
empty. A room restore keeps undrained outbox entries and the delivery count.
Capture safety never waits for a drain: the room refuses the account at once,
and the database refuses chunks on a stream whose lease has expired (a
migration adds that check). Each admitted chunk renews the lease; a capturing
client renews it every 30 seconds.
Upload contract
Uploads keep the routePOST /api/meet-ai/{wsId}/{meetingId}/chunks, which the
Cloudflare WAF exception covers on both Meet hosts. The server decides the
protocol from the session row, never from the request.
For a self_v1 session the request carries sessionId, streamId, id,
sequence, startSample, consentRevision and one audio part. A batch
header, a second part, or any client speaker, account or source field is
refused (400). A self_v1 uploader is not checked with the host-only
meetAiAccess(…, true); a dedicated uploader access check runs, in order,
before any limiter, credit, row or provider work:
- Authenticate with the Meet app session (target-app bound token); resolve the
meeting and workspace server-side; require
MEETING_APP === 'meet', a same-origin request andreadMeetTranscriptionAvailability(kill switch, workspace gate, 18+ declaration); refuse if the flag, allowlist, or (for the pilot) workspace membership fails. - Load the session by id and meeting (not by uploader); require
self_v1, non-nulluser_idandbilling_host_id,capture_state = 'active', ordrainingbefore its drain deadline, and an unexpired capture deadline. - Room authority (
transcription.authorizeSelfon the signed server channel): the session is the room’s session at the same generation; the uploader is admitted and present (not lobby, removed or expired); the Mira acceptance is current; their Mira choice is on and transcript choice is Allow; the stored legal revision equalsconsentRevision; and the per-account token bucket (burst 3, refill one per 10 seconds) has a token. The reply also returns any pending outbox entries, which the Worker writes before continuing. - Validate a canonical mono 16 kHz PCM16 WAV of at least 1 and at most 10 seconds (320,044 bytes, 350 KB request cap), derive duration from the byte count and re-wrap the PCM in a server-built header.
- Charge the Meet AI usage limiter (
ABUSE_GUARD,meetfamily) per uploader, meeting and workspace. Each chunk is charged at least 5 audio seconds, so short bursts cannot multiply calls. - Reserve cost and the chunk in one new service-role RPC: it locks the
session, re-checks non-null host and payer, refuses unless
cost_reserved_usd + cost_unknown_usd + cost_settled_usd + this chunk's maximum cost <= cost_cap_usd, adds the reservation, and inserts the chunk under the stream, account andconsentRevision. Theself_v1triggers refuse it without an unrevoked upload grant, a live stream and a currentallowat exactly that revision.
streamId is never a bearer capability: the database matches
(stream, session, account) to the authenticated uploader. One live stream per
account; opening a stream on a second device revokes the first.
In-flight fence
- Before dispatch. The server commits
dispatch_consent_revisionon the chunk in its own short transaction. The trigger refuses it if a withdraw has committed; the chunk is failed and never sent. It then re-runs the room check from step 3 (without spending a token); any refusal fails the chunk. - After the provider returns. It re-runs the room check and re-reads the
database consent state. If either no longer allows this account at this
revision, the text is discarded: it is never stored, returned or shown, and
the chunk is saved as
discarded. - In the database. A migration adds
discardedto the chunk status check and aBEFORE INSERT OR UPDATEtrigger onself_v1chunks. It refusescompletedunlessdispatch_consent_revisionis set and the account’s current decision isallowat that revision, and refuses any transcript text orusagesegment text on adiscardedchunk. Inserts are alwaysprocessing. It locks the admission rowFOR SHAREbefore reading the consent state, and never blocks an erasure update that clears text.
Billing
Every payer check, credit admission,beginAiStudioRun call and settlement for
a self_v1 chunk or notes run starts from the session’s (billing_host_id, billing_ws_id), never the uploader, the route workspace or client fields. The
AI credit workspace is derived for that pair on each dispatch by
requireMeetTranscriptPayer, exactly as for room capture: the Tuturuuu root
workspace for verified staff hosts, the meeting workspace for paid hosts. A host
who loses payer authority stops new dispatch. An uploader’s own credits and
daily counters never change; the uploader appears only as provenance.
Session cost counters are the spend ceiling, independent of the central
ledger. A known pre-dispatch failure releases its session reservation. After
dispatch, the measured cost moves it to cost_settled_usd. A timeout, abort,
provider error or missing usage after dispatch moves the full reservation to
cost_unknown_usd, even when the central run records zero credits on provider
error; it keeps counting against the cap after the central reservation expires
at 30 minutes. Only a proven no-dispatch failure is retried.
Capture quality on the client
- Capture taps only the local processed call microphone track. Before and after
every device or settings change the client requires
track.getSettings().echoCancellation === true; otherwise it does not capture. It never taps remote tracks, screen audio or Mira’s voice output. - Voice activity detection runs on 20 ms frames (energy above an adaptive noise floor, 300 ms hangover). A chunk flushes after 10 seconds or 2 seconds of silence, and is dropped if it holds under 1 second of speech. Silent and muted time advance the timeline but upload nothing.
- At most 60 seconds of pending audio per device, one upload in flight, no persistent audio queue. Audio buffered before Allow, or after any refusal, is dropped.
Merged transcript, notes and reads
- Reads of a
self_v1session go through the database contractslist_meet_ai_self_v1_segments,get_meet_ai_self_v1_notesandlist_meet_ai_self_v1_coverage, not the live room sharing used for room capture: own speech always; the host and workspace admins see everything; admitted participants see others only while the host shares. Names come from current profiles, never stored labels. - Segments are ordered by
(start_ms, account, stream, sequence). Overlapping speech stays as separate segments. - Notes for a
self_v1session are generated only from those segments, with the host payer, at most 3 provider attempts per session in total (notes_provider_attempts, including any regeneration after redaction), the existing 500,000-character bound and pagination over all segments. Each attempt incrementsnotes_provider_attemptsbefore dispatch, and a session with a null host or payer generates no notes. Notes never list anyone who did not contribute. - The room-capture paths refuse
self_v1sessions and read onlylegacyrows: the session read (GET /api/meet-ai/…), draft notes, notes generation, follow-up context, and the web and mobile post-call review route (GET /api/v1/workspaces/{wsId}/meetings/{meetingId}/review). The review route serves aself_v1session only through theself_v1contracts, so hidden, fenced, discarded and redacted content never appears there. - Coverage for guests and other non-account participants is a client-side label, not a database row.
Stop fence
The durable fence is the session’scapture_state, stop_generation and cost
counters in the database, mirrored by the room’s terminal state. Stop, room
end, kill switch, flag off, exhausted cap and deadline set the state first.
Every admission, the dispatch step and notes re-read it, so no new provider
call starts after a stop. Stop drains for at most 20 seconds for chunks
captured before the cutoff; a hard stop (kill switch, flag off, cap) drains
nothing.
Cost and operation bounds
N uploaders turn one host request stream into N. Every application-created operation is request-driven; this adds no cron, queue or scheduler.
Operation estimate, 50-person room, 60 minutes. At most 24 accounts can
contribute; the other 26 make no requests.
Today’s host capture makes about 360 batched requests per hour. Provider cost
follows speech seconds plus per-request prompt overhead, about USD 0.05 per
speaking hour of audio input; the USD 20 cap ends capture before any runaway.
Measured counts and a tested stop receipt go into the Cloudflare adoption
guidance before the flag is turned on.
Retention and erasure
self_v1 sessions follow the
transcript retention rules: a finite
purge_after of at most 365 days that can only move earlier, consent evidence
kept with RESTRICT, and an account fence that hides that person’s speech and
redacts the mixed notes for every reader. Raw audio is never stored.
Deleting an account soft-deletes public.users, so cascades do not run. Before
the flag is on anywhere, an account-deletion hook installs
private.meet_ai_account_fences for the account. Before the flag is on outside
the pilot workspace, the retention purge covers the admission, stream,
erasure-job and account-fence stores. Notice text does not promise per-person
erase or automated 365-day deletion until those exist.
Deleting a meeting keeps only the minimal consent proof defined in
Mira host consent: who chose
(account or guest id), when, the notice version, the consent hash, the
revision and the choice. That applies to per-speaker meetings too, through the
same proof store, never a second one. No per-speaker audio, transcript text or
room-sequence log (private.meet_ai_self_v1_room_ops) survives the deletion.
Proof is kept for 3 years after deletion, as the explicit exception to the
30-day workspace purge, and is then purged. Account erasure anonymizes the
“who” immediately. The canonical rule lives on the
Mira host consent page. Aligning
self_v1 erase with the proof store, reusing its schema, is a pilot gate (see
Release gates). The hashed consent text does not change.
Notice text (EN and VI)
The transcript notice and the Mira info panel say, in per-speaker meetings: In this meeting each person’s device transcribes only their own voice. If you turn Mira off, your voice is not captured and the others keep their transcript. Your voice can still be picked up by someone else’s microphone; using headphones helps. After an untick in a per-speaker meeting the participant sees Mira is off for you. Your voice is not transcribed; the transcript continues for others. instead of the room-capture “paused for everyone” message. Room-capture meetings keep today’s wording. All other required notice items stay, in English and Vietnamese. The notice version bumps, so every choice is asked again. The dark release keeps today’s Mira info panel and notice text unchanged, because changing the hashed notice text asks every participant again. The per-speaker wording ships only with the pilot: before the flag is turned on, the updated EN and VI text and its notice-version bump land together under a release-authority ACK (see Release gates).Release gates
Regression coverage (required)
- A participant who is off is never captured: the client starts no tap, and the server refuses their chunk at the room check and in the database.
- One opt-out leaves every other participant’s chunks accepted.
- A chunk naming another account or stream, a batch, a second part, a screen-audio part or a client speaker field is refused.
- A withdraw before dispatch fails the chunk without a provider call; a withdraw, Mira off or acceptance end during the provider call discards the text; the database refuses completed text under a stale revision.
- Duplicate and out-of-order outbox drains are no-ops; leave and heartbeat expiry close only the stream, and the person can reopen one after rejoining;
withdrawalways commits even after 10allowdecisions. Room-side endings reach the legal record through the outbox, in order, including after a refused admission and after the room ends; a pending entry never reopens capture; Withdraw then Allow before a drain yields withdraw then a fresh allow; an ending between open-stream begin and commit closes the new stream; an expired stream lease refuses chunks; removal setsupload_revoked_at. - A per-speaker session refuses room-mix chunks,
transcription.stateandtranscription.speaker; a room-capture session refuses per-speaker chunks; the mode cannot change during a session. - Flag off, allowlist miss, kill switch, stop, room end, deadline and exhausted cap refuse new admissions; no provider call starts after stop.
- Billing always starts from the session’s host pair (root workspace for staff hosts, meeting workspace for paid hosts); the uploader’s balance never changes; post-dispatch failures count as unknown cost against the cap; a session with a null host or payer starts no work.
- Guests, mobile and pilot non-members never upload and see the not-available state.
- The merged transcript orders by session time, uses current profile names, respects the
self_v1read rule and omits non-contributors from notes. - Limiter, token bucket, 5-second minimum charge and per-account caps refuse without database or provider work.
- EN and VI notice text matches this page.
- The room-capture session read, draft notes, notes, follow-up and post-call review paths refuse
self_v1sessions; the database refusescompletedchunks without a current dispatch revision and any text ondiscardedchunks, on insert and update.
Implementation conditions
- The room emits
withdrawonly on a transition out of Allow (plus at most one initialdeny) and coalesces pending stream entries per account, withrevokesupersedingclose, so the outbox stays within its bound. - One
last_room_seqwatermark per(session, account)covers consent rows and the revoke and close RPCs; an exact duplicateroom_seqreturns success before the ordering check. - The chunk guard enforces
lease_expires_at > now(),processingon insert, no text ondiscarded, a current dispatch revision oncompleted, and allows erasure updates that only clear text. - The uploader path loads the session after non-host authentication and branches on its protocol;
legacykeeps the host-only check. - Account-deletion fencing and outbox survival across room restore are verified before the pilot flag.