Skip to main content
Hosts can have Mira, an AI service, analyze the answers to a Short answer or Long answer poll question. The question types themselves are described under Short and long answer questions.

Who Mira reads

  • Decision (4 December 2026): a room manager’s analysis covers every submitted answer. Scope: Polls Short and Long answer analysis that a room host or admin starts, in Meet and Parley calls; default: on. Answers from members whose room Mira choice is off and from guests without AI data consent are analyzed too, and the answer box discloses this before anyone answers. Exceptions: poll summaries (mira_summarize), room Mira chat context, transcription, voice and Private Mira keep the per-author room Mira fence, so a summary still sends typed answers (open text, word cloud, short and long answer) only from authors who are on. The requesting manager’s own AI data consent, Private Mira choice, credits and plan still apply. Regression coverage: packages/realtime/src/meet/room-polls-analysis.test.ts (“analyzes every answer for a room manager whatever each author’s Mira choice” and “keeps exports to the analysis and summaries to authors who are on”).

The analysis and the report

Each saved analysis records the answers it was given. When an author replaces their answer, the room stops seeing that analysis, the host’s view drops the replaced answer’s quote, name and ID, and the next analysis request sends the current answers only. An analysis whose answers were all replaced is cleared without a model call. The analysis gives: groups of answers with counts and, when the question has a model answer, a correct, partly correct, incorrect or other verdict, trends, misconceptions, strengths and gaps, up to three outstanding answers, next directions for the teacher, and a small sketch of the key idea. The report shows a verdict bar (only with a model answer) and one bar per answer group in the design system’s status colours.

When analysis runs

A saved analysis without language metadata, or one in another language than the room’s, is rewritten only when a manager asks; it is reused until then.
  • Decision (3 December 2026): analysis has no minimum answer count. Scope: Polls Short and Long answer questions in Meet and Parley calls; default: on for every host. A host’s device asks for the first analysis as soon as one answer arrives, refreshes it on its own after every five new answers (an automatic pacing step, not a requirement) and once more when the question closes, and Analyze now runs a fresh analysis for any new answer. The room reuses the stored analysis only when the answer set is unchanged, so it makes no model call; it tells managers so (analysisCurrent), and the action reads Up to date until an answer changes. The manager-only input, the AI data consent, credits, the one-run lease and the storage limit all still apply; the five-answer pacing is not a privacy safeguard. One analysis runs at a time per question (a 90-second lease), so hosts racing each other make one call, and the room refuses to start one when its poll storage is nearly full. Every failure after the lease is granted releases it; a request that dies first (an abort or an evicted Worker) leaves a lease that expires on its own, and the room answers 409 POLL_ANALYSIS_BUSY with Retry-After until then. The Meet server passes that code and hint through to the client, which matches on the code. The hint is whole seconds from 1 to the 90-second lease; a non-finite or non-numeric hint is dropped (regression coverage: room-service-retry.test.ts).
  • Every Analyze now press ends with a toast: “Analysis updated”, “Mira has already analyzed every answer”, “Mira is still analyzing. Try again in N seconds.” for a held lease (or “in a moment” without a hint; nothing retries on its own), Mira’s refusal state (credits, plan, consent) with its own action, or “Mira could not analyze the answers” with the server’s reason and Retry. A press while Polls is closing for everyone shows the same failure toast. An automatic refresh shows only failures the host can act on, and analysis errors leave the panel’s error line to other poll actions.
  • Decision (5 December 2026): automatic analysis never loops on billing. Scope: Polls Short and Long answer analysis in Meet and Parley calls; default: on. A manager’s device never asks on its own for an archived question, never because the room language changed, and never again after a failure until a manager presses an analysis action. It records the answer count it asked for and any failure per question in the meeting’s query cache, so remounts, list switches and reopening Polls never ask again for the same answers. Automatic runs get no transient retry. The room enforces the same rules: an automatic request (no explicit) is refused with 409 POLL_ANALYSIS_ARCHIVED for an archived question and 409 POLL_ANALYSIS_COOLDOWN (with Retry-After) for 5 minutes after a released or abandoned run. A release after a save refused for changed answers (POLL_ANALYSIS_STALE) is no fault and starts no cooldown. Explicit requests bypass both refusals and still reuse a current analysis without a model call. Regression coverage: room-polls-analysis-cooldown.test.ts and polls-analysis-guard.test.tsx.

Language and running status

  • Decision (4 December 2026): one language and one visible run per question. Scope: Polls Short and Long answer analysis in Meet and Parley calls; default: on.
    • Language. The room’s analysis input names the room language (en or vi, from the meeting language), and the server writes the analysis in it whatever the asking manager’s UI locale. A room without an English or Vietnamese language sends null, and the asker’s room content locale applies. Each saved analysis records its language. An analysis that covers every answer in another language than the room’s stays current (analysisCurrent) and is marked analysisLanguageStale for managers, who get Refresh in room language; only that explicit request rewrites it, so a language change never re-runs analyses on its own. A room Worker that predates the field sends no language, gets none in the save, and keeps the asker’s locale. The root cause of mixed analyses was that each manager’s device chose the language, falling back to its own UI locale, and the room reused a stored analysis whatever language it was in.
    • Running status. While the one-run lease is held, every manager’s view carries analysisRunningUntil (the lease end on the room’s clock) and shows Analyzing… with the action busy, whoever asked. Managers’ views refresh every few seconds while a poll is live. A closed poll sends polls.changed to the room’s managers only (never participants) when a run starts or releases its lease. An abandoned run clears from the view at the lease end, adjusted for room clock skew. Automatic refresh waits while another manager is running.
    • The action. Analyze now appears only before the first analysis. With an analysis, the action reads Up to date (disabled) while the analysis covers every current answer, and Analyze again once an answer changed.
    Regression coverage: room-polls-analysis-language.test.ts, poll-analysis.test.ts (“writes in the room language whatever the asking manager uses”), answer-analysis-status.test.tsx and answer-analysis-feedback.test.tsx.

Status, counts and export

  • Decision (4 December 2026): the analysis stays truthful about its state, counts and framing. Scope: Polls Short and Long answer analysis in Meet and Parley calls; default: on.
    • The status line reads Analyzing… only while a request for that question runs. It shows nothing while idle, No answers yet before any answer, and the analysed count once a report exists.
    • A 502, 503 or 504 on a manager’s own request gets one retry after 1.5 seconds inside the same request; automatic requests never retry. Only a second failure reaches the toasts; refusals and a held lease never retry.
    • Framing follows the question. A question with a model answer gets verdicts and a verdict bar. A question without one, such as an opinion question, gets theme or stance groups and no verdict bar, and the server sets every verdict to other.
    • The server keeps each answer in one group and drops IDs it did not send. The report counts every answer once: answers the model read sit in its groups or under Unclassified (read but left out of every group), and answers outside the sample it read sit under Not in sample. Together they equal the analysis’s answer total. Empty strengths, gaps and trends leave no heading. Group rows are keyed by position, so repeated or reserved model labels stay separate rows.
    • The report sits in its own bordered Mira analysis card. The question and everything under it scroll inside the poll card (24rem, 32rem from md), so the host actions below stay in place; the scroll region is keyboard focusable. The report has no scroll box of its own, so no list (strengths, gaps, trends) is ever clipped: it shows in full and the poll card’s region scrolls a long reading. Regression coverage: answer-analysis.test.tsx (“shows the whole report with no scroll box of its own, so nothing clips”).
    • Export PDF (hosts only) prints the card alone through the browser’s print dialog, with no server call: the question, analysed and total answer counts, generation time and every non-empty section. The document prints from a sandboxed frame (allow-modals allow-same-origin, no allow-scripts), so nothing in it can run even though every interpolated string is escaped. Outstanding answers carry a name only after a host revealed it; otherwise they read Student N.
    Regression coverage: answer-analysis.test.tsx (status, themes, Unclassified, Export PDF), answer-analysis-buckets.test.ts (count conservation and framing properties), analysis-retry.test.ts, answer-analysis-feedback.test.tsx (the silent retry) and answer-analysis-print.test.ts (escaping, Not in sample, the frame sandbox).

Colours and highlights

  • Decision (4 December 2026): results and analysis read at a glance. Scope: Polls choice results and Short and Long answer analysis in Meet and Parley calls; default: on.
    • Choice results draw one bar per option in the design system’s categorical chart colours (chart-1 to chart-5, cycling), with a matching swatch, the count and the share; the single leading option carries a Top badge, and a tie carries none.
    • A question without an answer key gives each theme a categorical colour. Under the summary, Key themes lists every theme as a chip with its colour and count, largest first; each theme row shows its count and share of the analysed answers with a bar of that share, and the single largest theme carries Top. A question with an answer key keeps the verdict status colours. Unclassified and Not in sample stay muted.
    • Strengths, gaps and trends are cards tinted in the success, warning and info status colours.
    • The status line is a pill in one tone per state: info with a spinner while any manager’s analysis runs, success while the analysis is up to date, and warning once answers or the room language changed.
    • The categorical tones live in the shared Progress component (progressCategoryTone), so every surface uses the same palette in light and dark themes.
    Regression coverage: answer-analysis-visual.test.tsx.

Limits, sampling and sharing

  • Each analysis sends at most the latest 150 answers, 700 characters each and 48,000 characters in total, and runs on the existing Mira poll path: the native AI data consent, the workspace 18+ terms, the requester’s Private Mira choice, the hosting workspace payer and credits all apply.
  • Decision (4 December 2026): the analysed count is the number of answers the model read. Scope: Polls Short and Long answer analysis in Meet and Parley calls; default: on. When the limits above leave answers out (100 Long answers of 700 characters fit 68), the server saves the total (answerCount) and the sample it sent (sampledCount, the latest answers that fit). The status line and the PDF read “68 of 100 answers analyzed”, and the 32 unread answers show as Not in sample, never as Unclassified. The refresh schedule and the current-copy check still follow the total. An analysis stored without sampledCount, including every analysis that read all answers, covers its whole total. The room’s analysis input says it stores the field (acceptsSampledCount), and the server sends sampledCount only to a room that says so. A room Worker that predates the field, whose strict save schema would refuse it, gets the total alone, so either release order is safe. While the server and room Worker run different versions, a sampled analysis is saved without its sampled count and reads as fully analysed. The save is never retried: every room refusal reaches the caller unchanged. Regression coverage: answer-analysis.test.tsx (“counts only the sampled answers as analysed, the rest as not in sample”), answer-analysis-buckets.test.ts, poll-analysis.test.ts (the sample size, the full read, the older room and an unchanged refusal) and room-polls-analysis.test.ts (“stores how many answers the model read only when it read a sample”).
  • The room keeps one analysis per question. Answers are cited by random response IDs, never account IDs, and people outside the managers receive only counts. Outstanding answers show as “Student 1” until a host chooses Reveal name; only a current outstanding answer can be named, and anonymous questions never reveal.
  • On a named question, managers can hover or focus a verdict, answer group or misconception count to see who wrote those answers: up to five names, then “+N more”. The room resolves the names from the names it stamped on each response when it was submitted, never from client input. The room’s copy, the manager’s preview of it, JSON exports and every anonymous question carry no names.
  • Hosts see the analysis as it updates. Share analysis with the room shows it to everyone in the call while results are shown to the room or after the question closes.

Regression coverage

Coverage: packages/realtime/src/meet/room-polls-analysis.test.ts covers answer IDs, the manager-only input, bounded storage, sharing and reveal, and the length limits, the lease, its expiry and reuse, analysis from one answer, manager-only author names, and the participant projection. answer-analysis.test.tsx covers the first-answer analysis, the on-demand refresh for one new answer, the host-only request, the final analysis on close, the report, reveal and share. answer-analysis-feedback.test.tsx covers the resting Analyze now, each toast and Retry, and the name tooltips. poll-analysis.test.ts covers lease release and the saved sample size, and the polls route’s route-ai-consent.test.ts covers the AI data consent gate.