Repository navigation
fix(mobile): a tutorial question sent by the 15 s timeout moves the tutorial on - #20806
Conversation
Git-on-my-level
left a comment
There was a problem hiding this comment.
Reviewed against #20786 — nice, tight fix. File-by-file:
app/lib/providers/device_onboarding_provider.dart—onQuestionAutoSubmitted()replicates the second-press transition in_handleStep1Buttonexactly (voiceSessionActive = false; questionSent = true; notifyListeners()) and is triple-guarded (isOnboardingActive,currentStep == askQuestionStep,voiceSessionActive), so it no-ops anywhere outside the tutorial question step.app/lib/services/capture/capture_controller.dart— the hook fires only underif (autoSubmitted)in_endVoiceCommandSession. Checked all callers: only the 15 s timeout timer passesautoSubmitted: true; the manual second-press path and legacy long-press release keep the defaultfalse, so the intended flows are unchanged. Null-awaredeviceOnboardingProvider?.keeps it safe when unset.app/test/providers/omi_button_actions_controller_test.dart— the new test drives the real capture hook (endVoiceCommandSessionForTesting(..., autoSubmitted: true)) after one press plus voice bytes and assertssendCount == 1,voiceSessionActive == false,questionSent == true, which pins the exact regression.app/changelog/unreleased/20261006-tutorial-timeout-question.json— accurate user-facing copy.
Edge cases check out: a late timeout racing a second press can't double-fire (the session is nulled and the provider requires voiceSessionActive == true), and a pre-existing capture session started before the tutorial can't misfire the hook because provider-side voiceSessionActive is only set by the step-1 first press.
Checks that ran (Formatting, Hygiene, Backend Hermetic Merge Gate, Mobile Release Eligibility) all pass; the mobile Dart/Android jobs were path-skipped. The locally reported flutter test runs weren't re-executed on the review box, but the diff is small enough that static verification covers it.
Thanks for the thorough PR description with the simulator before/after — that made verification straightforward.
This review was written by an AI reviewing on behalf of the maintainers. Please double-check important details before merging.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
Keep the verified 13151 port on all four managed Cloud Run services in dev and prod. Reject omitted Redis port bindings before deploy and prove the port reaches the deploy renderer. Failure-Class: FC-runtime-binding-contract
Auto-generated: consolidates unreleased changelog fragments into v0.12.463 and regenerates CHANGELOG.json.
…render (BasedHardware#21123) The gate only accepted repo-relative paths, which GitHub shows as broken images in PR descriptions, and rejected the raw.githubusercontent URL form that renders. Accept URLs pinned to a commit SHA (not branch names); the tracked-file and manifest requirements are unchanged. Co-authored-by: Claude Opus 5.5 <[email protected]>
…radation (BasedHardware#21111) ## Summary Completed conversation-finalization replays skipped the processing bundle and therefore never emitted summary vectors; terminal intelligence suppression also skipped indexing. Persistence-loss vector dispatch could resurrect deleted rows or overwrite a smart-merge winner. Production diagnosis: `/Users/dazheng/workspace/omi/data/run-2026-10-10-chat-stale-data/FINDINGS.md` (private coordinator evidence; not committed). - Restore persistence-loss returns to zero canonical side effects. Write summary vectors in the finalizer's winning fanout-claim stage, after donor handling, for structured, visible, non-discarded rows, including completed replays and terminal intelligence suppression. JIT deferral does not suppress indexing; FIRST_OPEN_EFFECTS stays folder+apps only with no vector receipts. Keep eager callers' existing vector flow and metadata-only refresh semantics. - Add a dry-run-by-default, per-user summary-vector repair and operator runbook. Selection is completed, visible, nonempty summaries since August 1 2026, newest-first, capped at 500 by default; apply tracks created/updated/errors and stops above a 10% batch error budget. Boolean write receipts distinguish missing provider configuration from successful writes; provider exceptions retain their existing propagation behavior. Visibility is rechecked around writes, with deletion cleanup matching the transcript-chunk analog. Cost sign-off covers fresh embeddings plus the existing metadata-extraction LLM calls and filter-catalog writes inside save_structured_vector. - Configure lazy Typesense connection timeout with `TYPESENSE_CONNECTION_TIMEOUT_SECONDS` (default 5 seconds, valid 1–30). An opt-in keyword-helper error signal lets the chat tool disclose semantic-only degradation without changing successful output or other callers' fail-open behavior. Recency questions require a small, undated newest-first `get_conversations_tool` read; search time spans are similarity matches. - Export bounded, idle-zero summary-vector and search-path counters. Add one collapsed “Conversation search freshness” row with an instant success-percentage stat and a 5-minute-rate search outcome timeseries on Omi Core Features; document its inventory. No alerts or chart environment changes. ## Validation - Existing worktree-local Python 3.11 lane venv used (`make lane-backend` already completed). - Focused process/finalizer/first-open/backfill/search/dashboard-budget/vector suites: 260 passed across 15 files, including deleted/discarded/unstructured claim regressions. - `bash scripts/typecheck.sh`: 0 errors; existing warnings remain. - `OMI_PR_BODY_FILE=/tmp/chat-vector-pr-body.md make preflight`: 36 checks passed on `ea58756408af6ba15487d4f82ef52a870f85a383` in 119.52s (UV cache redirected to `/tmp/chat-vector-uv-cache`; shared Git temporary objects required sandbox escalation). The shallow-history failure-class guard reports its documented skip. - Dashboard JSON validation: all 72 panel IDs unique; success denominator includes only success+error; multi-process aggregation is explicit in the search panel description. - `scripts/pr-preflight --metadata-only --pr-body-file /tmp/chat-vector-pr-body.md`: 4 checks passed. `process_conversation.py` remeasured at 3,472 lines. - `OMI_PR_BODY_FILE=/tmp/chat-vector-pr-body.md git push fork lane/chat-vector-fix`: bounded pre-push gate passed, including repeated 36-check preflight, zero-error typecheck, 16-image source closure, pinned formatting, and 212 tests across 9 changed unit files. The selector's 1,704-file full backend request exceeds the local hook cap; this is not a full backend-suite claim. - Remote PR head verified after push: `ea58756408af6ba15487d4f82ef52a870f85a383`. Remote CI is separate from the completed local gates. - Hermetic tests execute the real JIT coordinator and finalizer together, covering claimed/fenced/completed fanout, completed-row replay, terminal intelligence suppression, persistence loss, metadata-only refresh, and both recency prompt sources. No production calls, backfill apply, deployment, merge, workflow or chart environment changes. ## Product invariants affected - INV-MEM-4: summary vectors remain derived conversation projections; canonical memory promotion authority is unchanged. - INV-TASK-2: automatic task capture and task mutation behavior remain unchanged. Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3448 -> 3472 | Retain bounded vector outcomes and eager-call dispatch beside processing; durable job indexing runs behind its winning fanout claim. Line-Count-Exception: backend/utils/llm/chat.py | 1502 -> 1504 | Add the approved recency contract directly to existing retrieval guidance without prompt restructuring. Failure-Class: FC-split-mutation-authority
…cess (BasedHardware#21121) ## Problem 1. Labeling speakers in a conversation's transcript regenerated the whole summary after almost every label. The 4 s quiet period fired whenever the reader paused to read, so "Reprocessing conversation…" and the "Labeled as X · Labeled 1 line · Voice not learned yet" card kept churning while they were relabeling many speakers. 2. Some transcript lines rendered **centered**, for example short replies like "Maybe" or "No." inside a turn. 3. Labeling was one line at a time: tapping a name labeled only that line unless the reader ticked "Also tag later speech". ## Design ### Labeling pass (draft session), in `ConversationDetailProvider` - Every label from the transcript tab, and the new **Select** entry, starts a pass on the open conversation (`beginSpeakerLabelingSession`). A bar above the transcript shows "Labeled N lines" with Undo, Select and Done. - **During a pass, nothing regenerates.** `_scheduleAutomaticSpeakerSummaryRefresh` returns early for the pass's conversation, so pauses between labels no longer trigger a reprocess. The "Update summary with new names" action is hidden while the pass is open, because Done does the same job. - **The pass ends with at most one regeneration:** - **Done** regenerates immediately. If a save is still in flight, it regenerates as soon as that save is acknowledged (`_confirmedSpeakerLabelingSessionIds`). - **Leaving the page** auto-confirms through the existing exit path (`_finishSpeakerLabelingSession` → `_regenerateSpeakerSummaryAfterExit`). - **Backgrounding the app** (`AppLifecycleState.paused`) is treated like Done, so the result lands on the page if the reader returns. - **Switching conversations** uses the existing flush. - Ending a pass that is already over is a no-op. A pass that changed nothing regenerates nothing. Labeling after Done starts a new pass. Any other regeneration also ends the pass. - Page-scoped end calls take the page's conversation id, so a detail page underneath another one cannot end the top page's pass. - **Undo** steps back through this pass's actions. It restores each line's previous label locally and saves it again, grouped per original label (lines from one action can carry different labels; "no label" is `person_id: null`). It runs on the same save queue and generation/rollback machinery. If the restore save fails, the lines roll forward to what the server still has. - The outcome card ("Labeled as X · voice learning") no longer appears after each label. It waits until Done and then shows the last person tagged. - The 4 s quiet-period path is still there for any assignment made without a pass. All existing quiet-period tests are unchanged. ### Persistence is unchanged Every label still saves immediately through `assignBulkConversationTranscriptSegments`, with the existing optimistic edit, save queue, generation checks and rollback. The pass only controls when the summary regenerates and how much feedback appears. No backend or API changes. ### Centered-line fix (`app/lib/widgets/transcript.dart`) - **Root cause (`transcript.dart:876`, default `Column` centering):** `ListView.builder` wrapped every segment after the first in `Column(mainAxisSize: min, children: [SizedBox(height: 4), child])`. A `Column` centers its children by default and gives them loose width. A detail line that starts a turn contains the full-width name `Row`, so it filled the width and looked left-aligned. A line that does *not* start a turn (no name row) and is shorter than the viewport shrank to its text width and was centered. - That explains why the bug was intermittent and why it only hit short continuation lines. `textAlign` was already `left`; the problem was the wrapper's alignment, not the text's. - The wrapper has existed since 79441c4. It became visible when the detail view moved to un-bubbled `_buildDetailLine` lines; bubble lines are full-width `Row`s. - **Fix:** the separator is now `Padding(top: 4)`. Every line gets the same tight width as line 0. ### Easier labeling - **Multi-select.** A **Select** button sits next to the "Transcript · N speakers" heading, and there is also one in the pass bar. In selection mode every line shows a check circle, and tapping anywhere on a line toggles it. The bar reads "N selected" with Cancel and Name Speaker. One `startSpeakerAssignment` call labels all selected lines. - **Quick picker** (`speaker_quick_picker.dart`). Chips assign with one tap, with no Save step. Order: people already named in this conversation (most lines first), then most recently used (`speakerLabelLastUsedMs`), then alphabetical. "You" and "Add Person" (inline name field) are always there, plus search above 10 people. - **Turn-level labeling (per voice).** Tapping a speaker's name in the detail transcript now opens the sheet with "Also tag later speech" **on** (`defaultApplyToSpeaker: true`). One Save names every line of that voice, through the existing speakerId bulk path. The sheet lists those lines so the reader can uncheck any. ## Deviations from the brief (and why) - **Long-press does not enter selection mode.** Long-press on transcript words already selects text for copying, and `app/docs/ux-contract.md` §4 says multi-select is a "Select" entry, not the long-press itself. Selection mode starts from **Select** instead. - **The bar sits at the top, not the bottom.** The bottom of the detail page already holds the pinned Ask Omi / playback bar. - **No first-run tip yet, and no new l10n keys.** The session that wrote this could not run `scripts/l10n.py`, `flutter gen-l10n` or any Flutter command, and generated l10n files must never be edited by hand. All UI strings therefore reuse existing keys: `done`, `undo`, `cancel`, `selectOption`, `nameSpeakerTitle`, `selectedCount`, `speakerLabelLinesLabeled`, `addPerson`, `you`, `enterPersonsName`, `searchPeople`, `save`. - Translations for a `speakerLabelingSessionTip` key ("Tip: label all speakers, then tap Done to update the summary once.") are ready in all 49 locales. Wiring it up is: one `l10n.py add`, a `SharedPreferencesUtil().speakerLabelingTipShown` check (getter/setter already added), and one `Text` in `SpeakerLabelingSessionBar`. - **Backgrounding is treated as Done, not as a page exit.** The page is still alive, so the regenerated summary should land on it rather than be discarded the way the exit path discards it. It is still one regeneration per pass. ## Known limitations - **The first-run tip is deferred.** It needs a new l10n key; see above. - **Long-press still selects text.** It does not enter selection mode; **Select** does. ## Tests - `test/providers/speaker_summary_refresh_test.dart`, new group "labeling pass" (10 tests): - pauses never regenerate, and Done regenerates once - Done, leave and dispose together still give a single regeneration - an empty pass regenerates nothing - Done while a save is in flight regenerates once, after it lands - leaving the page auto-confirms once, and only for its own conversation - a page underneath cannot end the top page's pass - labeling after Done starts a new pass with its own regeneration - switching conversations flushes the pass - Undo restores and re-saves mixed labels - a failed Undo rolls forward - a failed save leaves nothing to undo - `test/widgets/speaker_labeling_session_test.dart`: - alignment regression: short lines between long ones share the long line's left edge, and `textAlign` is left - Select → toggle 2 lines → quick picker → a single save of `a,c` → "Labeled 2 lines" → no regeneration during a 10 s pause → Done → exactly 1 regeneration, then the outcome card - selection mode toggles lines instead of opening the name sheet; Cancel works; Done after no changes regenerates nothing - Undo in the bar - quick-picker ordering - The visual audit `speaker_labels.dart` is updated: the checkbox is now on by default, and Done comes before the outcome card. - **Widget-test fixture note:** the "labeling pass" widget fixtures are built inside each test body, not in `setUp`. The provider's save queue starts from a completed `Future.value()`. If that future is created outside the `testWidgets` fake-async zone, `await`ing it resumes on the real microtask queue. `tester.pump` never drains that queue, so the first save only ran after the test body had finished. This was a test-harness artifact, not a product bug: in the app, the provider and its futures share one zone. - **Run locally:** `flutter test test/providers/speaker_summary_refresh_test.dart test/widgets/speaker_labeling_session_test.dart test/widgets/transcript_test.dart test/widgets/transcript_heading_test.dart test/widgets/name_speaker_sheet_test.dart` passed, 94/94. -⚠️ **Not run locally:** `flutter analyze` and `make preflight` were blocked by the session's permission mode. Watch the Dart analyze lane. ## Review fixes 1. **A sync-bridge ID change no longer ends the open pass.** Before, when a label save on a v5 sync-donor ID refreshed into the survivor, only the summary-refresh state moved to the survivor ID. The pass stayed on the donor ID, so the bar disappeared, Done, background and exit did nothing, and the summary never regenerated. - Both bridge paths (the post-save refresh and the rejection response) now go through one `_adoptBridgedConversation`. It moves everything to the survivor ID: `_labelingSessionId`, the confirmed and ended pass sets, `_automaticSpeakerSummaryRefreshIds` and `_speakerSummaryConversationId`. The undo stack is keyed by segment, so it carries over unchanged. - The page still holds the donor ID. Page-scoped `confirmSpeakerLabelingSession` and `leaveSpeakerLabelingSession` calls now resolve that ID through `_bridgedConversationIds`. The page's own Done, background and exit still end its pass, and a page underneath still can't. The aliases are cleared when the provider switches to another conversation. - The post-drain scheduling in `_finishSpeakerSave` also resolves through the bridge. A Done or exit pressed while the bridging save was still in flight now regenerates the survivor once. 2. **A partly failed multi-label Undo leaves local labels matching the server.** Chosen option: **paint local state to match the server** rather than sending a compensating save. Groups that saved stay undone; only the lines whose group did not save roll forward to the labels the server still has. The failure is reported the same way as before (`undoLastSpeakerLabel` returns false). - Why: a compensating save can also fail, which brings back the same divergence. Painting what the server actually acknowledged keeps local equal to server in every end state, with no extra request. - New tests in `speaker_summary_refresh_test.dart`: - a partial Undo failure, asserting local labels equal a fake server's labels line by line - a bridge mid-pass keeps the pass active (bar, count, Undo), the donor-ID Done regenerates the survivor exactly once, and a page underneath can't end it - Done or leave while the bridging save is in flight regenerates the survivor once 🤖 Generated with [Claude Code](https://claude.com/claude-code) Line-Count-Exception: app/lib/backend/preferences.dart | 1500 -> 1505 | adds the speakerLabelingTipShown preference flag alongside the existing preference accessors; splitting the file for 5 lines would fragment related storage accessors Line-Count-Exception: app/lib/pages/conversation_detail/conversation_detail_provider.dart | 1293 -> 1514 | the labeling-pass session state machine (session lifecycle, bridge adoption, undo groups, deferred reprocess scheduling) is one cohesive provider concern; splitting it across files would scatter the generation/rollback invariants this PR is careful to keep together UI-Evidence: none -- behavior-level changes (session bar, picker sheet, alignment) verified by widget tests comparing rendered line positions; no emulator capture available in this environment. Failure-Class: none
…#21126) ## Product invariants affected - INV-MEM-4 — runtime_env.yaml and the rendered registry must match their composed sources: regenerated by compose after adding `CONVERSATION_RELEVANCE_JEV_RESCUE: shadow` to the five prod processing hosts. ## What Sets `CONVERSATION_RELEVANCE_JEV_RESCUE=shadow` in the prod overlay (all five processing hosts: gke backend-listen, gke pusher, cloud_run backend/backend-sync/backend-sync-backfill) and the listen/pusher prod chart values, then regenerates `runtime_env.yaml`. Shadow mode scores R03/R08 rule discards and emits `omi_conversation_relevance_rescue_total{mode,rule,outcome}` without changing any serialized decision. Authorized by David 2026-10-09 ("Let's flip rescue to shadow mode on prod"). The offline pilot (benchmarks/jev-vs-rules) was approved the same day; production scoring stays reversible by a one-line revert. ## Tests - `test_backend_runtime_env_validator.py` + `test_verify_pusher_config_references.py`: 189 passed. - compose_runtime_env.py regenerated runtime_env.yaml (5 host blocks). <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/21126?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
…asedHardware#21129) ## Product invariants affected - INV-DATA-1 — the two production deploy workflows are production-family routing authorities; this change keeps their admission semantics byte-for-byte (object-exists-and-is-commit), only swapping a git-2.54-broken expression for a version-proof equivalent. ## What `git cat-file -e "<full-40-hex-sha>^{commit}"` regressed in git 2.54 (runner image roll): peeling `^{commit}` off a full SHA now fails with "Not a valid object name"/"ambiguous argument", while abbreviated SHAs and bare full SHAs still resolve. This broke every `workflow_dispatch` prod deploy that validates a merge-commit `release_sha` (first hit: run 38040612226 at 2026-10-10T09:15Z, reproducible twice; also plausibly the standing pusher qualification blocker). Repro on a clean clone of this repo with git 2.54: `git rev-parse "<full-sha>^{commit}"` fails; `<abbrev>^{commit}` and bare `<full-sha>` succeed; the commit object is present in the pack. Fix replaces the two full-SHA peel sites (gcp_backend.yml release_sha admission, gcp_backend_pusher.yml qualification-source admission) with a version-proof object-type check (`git cat-file -t "$SHA" = commit`). Identical admission semantics: object must exist and be a commit. The listen lane peels a short tag input, which still works, and is left alone. Failure-Class: new ## Tests - Local repro of both replacement checks against main HEAD (3d20bec): commit type resolves. - `bash -n` on the edited step bodies. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/21129?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Declare Redis ports so a deploy restores the reviewed binding rather than relying on inherited Cloud Run configuration. Dev backend fell back to 6379 after its undeclared 13151 binding disappeared. ## Changes - Declare `REDIS_DB_PORT=13151` on backend, backend-integration, backend-sync and backend-sync-backfill in the base and explicitly in the dev overlay; regenerate runtime_env.yaml with compose_runtime_env.py. Read-only live checks confirm 13151 on all four services in both environments, so deploying this PR preserves current behavior. - Reject missing, empty, provisional or invalid Redis ports on these four services, and require a port wherever a Cloud Run service/job or desktop-backend declares REDIS_DB_HOST. Validate the corresponding Helm binding for GKE services with a declared host. - Assert the port reaches the actual deployment env renderer for every managed service/environment pair; add validator mutations and update the existing deployed-state fixture. ## Incident evidence and scope The first observed missing binding was dev revision `backend-03418-fb2` at 2026-10-09 10:15:56Z. Both preceding revisions checked had 13151. [Auto-deploy run 37914815339](https://github.com/BasedHardware/omi/actions/runs/37914815339) subsequently deployed `backend-2cfa871-37914815339-1` using `--update-env-vars` (merge), not replacement. Its rendered input did not declare the port, so it could not restore the earlier omission. COULD NOT DETERMINE the actor or mutation that created the 10:15 revision from the authorized service/revision metadata reads. Inventory also confirms legacy dev Cloud Run backend-listen and pusher use 10797 (no corresponding prod Cloud Run services), and dev/prod plugins use 13151. These separate deployment paths are outside the four-service runtime manifest; they are unchanged. The currently managed GKE listen/pusher ports already live in Helm. This PR does not migrate deployment ownership. No feature flags or application behavior change. No secrets or account data were read. Deployment applies to the four managed Cloud Run services; no pusher/listen image or backfill is required. ## Validation - Regression before fix: `24 failed, 2 passed`; eight failures demonstrate the missing port in actual deploy-renderer output. - Focused suites after fix: `27 passed`, `49 passed`, `161 passed` (237 tests). - Runtime composition check and dev/prod manifest admission passed. All four full backend CI shards executed (1,706 files); shards 1 and 3 passed. Shards 2 and 4 each hit an unrelated transient timing failure (announcement CPU 1.20s against 1.00s; Soniox 100ms queue wait). Both files passed isolated retries with the original limits, one worker and a fresh TMPDIR: `5 passed in 5.36s` and `24 passed in 4.76s`. No allowlist or limit changes. Main's subsequent changelog and PR-evidence checker commits are merged. Focused tests re-passed (237 tests); local preflight passed all 35 selected checks. The normal push hook rechecks the final merge head. ## Declarations and review risks Failure-Class: FC-runtime-binding-contract Invariant: INV-MEM-4 — runtime bindings preserve canonical promotion authority; all memory capability/rollout settings and mutation paths are unchanged. GUARD CHANGED: backend/scripts/runtime_env_validation/manifest.py now rejects omitted Redis ports. Regression mutations still reject real violations; no guard bypass or exemption was added. The existing failure-class artifact list now names this reusable guard and its tests. Review risks: confirm 13151 remains the desired Redis database for each managed service; verify consumers use the composed env renderer; review the explicit four-service requirement when adding another Cloud Run service. Exact causality of the earlier 10:15 configuration mutation remains undetermined. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/21127?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/21127?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F21127&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
…rdware#21115) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * test: allow full-route contract timing * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
* feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * feat: add Telegram and Linq messaging adapters * test: allow full-route contract timing * test: register messaging retry helper in prompt harness * test: isolate messaging imports in backend unit harnesses * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
Auto-generated: consolidates unreleased changelog fragments into v0.12.464 and regenerates CHANGELOG.json.
…sedHardware#21115) (BasedHardware#21118) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * test: allow full-route contract timing * feat(app): chat apps screens for connecting Telegram and iMessage Adds the flag-gated Chat apps surface on Integrations: connect Telegram through a one-time t.me deep link, connect iMessage by texting a one-time code, manage a link (show its chats in the app, disconnect), the WhatsApp waitlist, the free-plan upsell, and a read-only history of a chat app's sessions. Uses only the Stage A /v1/messaging routes through a typed executeApi client. The mobile-chat-apps PostHog flag fails closed; existing links keep the entry reachable for disconnect. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> * feat: use minted link targets and real chat-app switches Prefer the link-proof deep link and address, show a Telegram username when the link has one, and turn voice notes and private memories into per-link switches. Co-authored-by: Cursor <[email protected]> * fix: keep the Messages brand-color exceptions on the color lines The formatter had moved the allow comments off the hex literals, so the mobile UI contract counted them as new colors. Co-authored-by: Cursor <[email protected]> * fix: keep Messages brand colors on one allowed line The UI contract only honors an allow comment on the same line as Color(0x). Co-authored-by: Cursor <[email protected]> * fix: open minted chat-app links through the public launcher The connect sheets were calling test-only helpers, which the analyzer ratchet rejects. Co-authored-by: Cursor <[email protected]> * chore(l10n): restore main's ARB key order after the restack merge The three-way ARB merge re-serialized every locale in a different key order, turning 102 new strings into a ~560k-line diff. Keep main's order and append the new keys, as scripts/l10n.py does; regenerate gen-l10n output. Content is unchanged: only the chat-apps keys are added. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]>
…dware#21135) ## What Adds `scripts/fleet_backfill_summary_vectors.py`: a retry-safe fleet driver for the per-user `backfill_summary_vectors.py` operator tool, plus `--all-users` enumeration from `conversation_finalization_jobs` (created_at ascending, uid+created_at projection only). ## Why The chat-vector freshness repair (BasedHardware#21111) fixed new conversations; the pre-repair backlog needs the per-user backfill run for every affected account. Doing that by hand for ~27.6k uids is error-prone; the driver adds durable per-uid state (atomic tmp+rename), resume-on-rerun, failed-uid quarantine with `--retry-failed`, and a 10%-per-batch error budget inherited from the per-user script. ## Cost/execution notes - Dry-run by default; `--apply` refuses without a configured vector index. - Per conversation: one embedding + the existing metadata-extraction LLM call. Fleet-scale cost was estimated at ~$40-230 for 50k-300k conversations before execution is authorized. - Designed to run inside the production backend environment (Cloud Run job or an attended operator shell); no secrets are read by this repo change. ## Tests - Offline behavioral test of the driver: dry-run totals, resume skips done uids, error-budget stop marks the uid failed and continues, `--retry-failed` recovers only failed uids (writes verified per uid). - `tests/unit/test_backfill_summary_vectors.py` still green (16 passed). - `--all-users` enumeration verified against an independent REST enumeration of `conversation_finalization_jobs` since 2026-08-25 (27,595 vs 27,596, +1 from boundary drift; missing=0). Failure-Class: none <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/21135?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
BasedHardware#21137) * fix(backend): project readable dream evidence within token budgets * fix(backend): preserve dream evidence depth during admission
…asedHardware#21033) * fix: preserve UTF-8 conversation exports through legacy stdio Declare the exporter input and progress-output encoding independently of the host locale. Cover file and BOM stdin input through the real entry point under ASCII and CP1252 streams. * fix: normalize Markdown export PR files to LF
BasedHardware#21357) A Monitoring IAM gap (HTTP 403) in the dead-man step blocked the Grafana WAL rollout in prod run 38344425582. Run it after Helm so it still fails closed without holding the monitoring stack deploy hostage. Failure-Class: FC-batch-fault-domain-head-of-line-poison Co-authored-by: Claude Opus 5.5 <[email protected]>
BasedHardware#21358) Co-authored-by: Claude Opus 5.5 <[email protected]>
…asedHardware#21365) * feat(monitoring): make Telegram pages actionable and batch warnings Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(monitoring): keep real silence links and point GPU/egress pages at their dashboards Grafana silence URLs for our rules are 256-341 characters, so the 200-character cap dropped every one. Parakeet GPU and Cloud Run egress rules linked to log dashboards that do not show the firing series. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…1353) Fix a deterministic false short-window refusal in live speaker matching: full received PCM spans lost their last sample when epoch-time subtraction was truncated back to bytes. In a receiver-capture/send-proof-to-FIFO-runner reproduction, exactly 2+2+1 seconds of audio produced one extraction and no owner comparison. Preserving the stored span's integer end now delivers all five seconds, three initial queries and an owner decision under the existing policy. One shared byte-window primitive corrects exact full-span ends for both extraction and physical byte proof. Interior endpoints retain the existing PCM16 floor; actual gaps, eviction and unavailable/unplaced capture windows remain refused. Transient restored-sample metadata stays inside the existing bytes contract; provider timestamps, stored transcript/audio fields, wire formats, thresholds/margins, manual veto, contention, authority/stale-generation fences, FIFO/proven-rejector behavior and recovery ledger are unchanged. The new omi_speaker_id_pcm_windows_restored_total{reason="full_span_rounding"} counts selected candidate windows whose true received PCM reaches their current extraction floor while the old floored byte count on those selected windows would not. It is emitted before quota admission; it counts neither GPU reservations nor unique voices, owner comparisons, or recognition gains. The single preinitialized closed reason adds one total series (the shared runtime metrics endpoint suppresses created series). No IDs or content are metric labels or new log fields. Recovery's newer pool uses the caller's same floor for this observation, avoiding an insufficient-new-pool/fallback count. Existing BasedHardware#21181/BasedHardware#21235/BasedHardware#21298/BasedHardware#21222 telemetry stays compatible. Production read-only evidence: source main b8076ba, primary listen 6ef38cd; current one-hour aggregate counters show ~34.7k Soniox outside-send refusals, ~20.4k explicitly wire-race-unplaceable intervals, ~7.85k short-window matcher exits. The dominant placement refusals are intentionally fail-closed under an uncertain reported finalize clock. This PR repairs the independent physical-window defect; it does not clamp untrusted provider timestamps, enlarge the ring, alter flags or claim those Soniox intervals are newly placeable. All reads used server-side Prometheus sums plus whitelisted deployment metadata, no account transcripts/audio/embeddings/log rows, no api.omi.me, no deployment or merge. Request bounds remain twelve initial attempts, at most eighteen with already-approved eligible recovery, 16 tasks and ten seconds of PCM/query, all through the unchanged 16-token socket burst and 240/hour refill. Maximum GPU calls cannot rise beyond those bounds; realized calls can rise as false minimum refusals disappear (the five-second test spends 3 versus 1), or fall if an owner accepts earlier and stops retrying. Failures still spend. Production owner uplift is unmeasured; this is not a forecast that recovers the unplaced cohort. After deployment compare restored candidate windows, short exits, actual reservations/comparisons and owner accepts per conversation; owner_identified excluding single-speaker vs comparable-volume same-hour prior-day baselines, plus failures/contention/GPU. Validation: new test suite 19 cases (four additional cases after the broader run) and broader 29-file matcher/capture/recovery/authority suite 778 cases pass through credential-stripped backend/test.sh. Before the fix all six complete-span/rate cases plus the real runner failed. Canonical make setup provisioned this worktree's Python 3.11 environment and refreshed the branch to then-current main. Committed head 2c6f61b passed 32/32 exact-head make preflight in 491.18s and relevant run-unit-ci shard 2/6 passed 5,398 cases across 293 selected files, with zero typecheck errors. Normal push hooks passed, including 32/32 preflight (546.30s), zero-error typecheck, runtime closure, changed-file tests and OpenAPI compatibility. Exact-head GitHub Actions are terminal green: all 12 workflow runs succeeded; all six backend shards, guardrails, E2E/gauntlet and security passed. The first guardrail attempt passed all 2,040 tests then exceeded its 10-minute total job limit during wrap-up; rerunning only that job and its dependent aggregator succeeded on unchanged head, without any timeout/allowlist or source change. The external Cubic check is neutral because its monthly quota is exhausted; no automated review completion is claimed. No skip hatch or force-push. Failure-Class: new FC-audio-ring-full-span-rounding-loss records integer whole-span delivery and physical-proof parity with real-runner and gap/partial/eviction guards. The shared byte-window primitive removes the repeated arithmetic cause; this is same-clock quantization, not the existing independent-clock failure class. No existing registry definition or validator changes. ## Product invariants affected none Reviewer risks: realistic epoch-end correction changes a tiny portion of the PCM and can move a query across an existing evidence floor; actual utilization/timing can change inside unchanged caps. The candidate counter is a comparison against old flooring on currently selected windows, not a historical counterfactual of all scheduler/evidence states or causal recognition saved. Dominant unplaced refusals remain; current diagnostics cannot identify what share of production short exits are true short utterances vs physical truncation vs this rounding defect. New direct regression cases use synthetic audio and mocked embeddings; production identity accuracy is not established. No release/deployment is authorized by this PR. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/21353?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/21353?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F21353&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
…first queues (BasedHardware#21359) * refactor(queues): retire unused projection and automatic chat queues Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): align retired index inventory contract Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): update remaining field mode count Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): align cleanup imports and service guide Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(firestore): count the retired projection_repairs field override Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…edHardware#21366) * feat(monitoring): gate alert admission with historical backtests Add read-only condition-chain replay, offline inventory lint and synthetic state tests. Remove the retired proactive rule, repair endpoint readiness telemetry and zero-initialize invalid-request counters. Failure-Class: FC-alert-never-provably-fired Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(monitoring): record absent-rule proof and pause admission holds Record the full 28-rule production backtest: 19 deploy candidates, eight paused fixes and one retired-rule deletion. Bound replay requests by day, preserve explicit admission holds and block unpausing without review. Failure-Class: FC-alert-never-provably-fired Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(monitoring): key alert-lint debt on firing semantics, not routing The legacy-debt baseline fingerprinted the whole rule, so the fleet-wide notification timing change (BasedHardware#21365) voided every baseline and failed the offline admission gate. Fingerprint only condition/data/for/noData/execErr. Failure-Class: FC-batch-fault-domain-head-of-line-poison Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…asedHardware#21368) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback
…1375) * feat: add dark bounded locked-content recovery at quota reset * refactor: share bounded unlock batches without growing domain modules * test: cover bounded unlock query shapes and atomic failure resume * feat: invalidate enforcement cache after reset recovery * docs: keep reset recovery routing within backend guide budget * docs: shorten reset recovery guide route * refactor: expose token-fenced lease release and narrow optional request
…the rules (BasedHardware#21374) Grafana rejects __dashboardUid__ without __panelId__ (HTTP 400), which blocked the live rollout of BasedHardware#21365 for 38 rules. Dashboard-only links now use a dashboard_url annotation that the Telegram template falls back to. Failure-Class: FC-alert-never-provably-fired Co-authored-by: Claude Opus 5.5 <[email protected]>
…re#21356) * feat(billing): add fixture-only ladder price dry-run tooling * fix(billing): validate dry-run ladder registrations and fixtures
…ware#21361) * feat(subscription): add dark period-scoped at-cap choice contract * feat(subscription): declare at-cap choice route policies * feat(subscription): keep choice metadata independent of BYOK validation * feat(subscription): export at-cap choice app-client schema * feat(subscription): regenerate at-cap choice client contracts * fix: type budget-choice contracts and address review findings * refactor: split Dart wire schema catalog from generator * docs: record internal-only budget choice wire generation
BasedHardware#21370) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * refactor(billing): extract pure Stripe entitlement state machine * refactor(billing): narrow resolved projection types * refactor(billing): freeze stale preservation before the Stripe lookup * billing: address state-machine review guards and effects
…Hardware#21371) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * refactor(billing): extract pure Stripe entitlement state machine * refactor(billing): narrow resolved projection types * refactor(billing): freeze stale preservation before the Stripe lookup * feat(billing): add read-only subscription drift reconciler * test(billing): distinguish organization payment grants from subscription drift * billing: address state-machine review guards and effects * billing: correct reconciliation uncertainty and legacy grants
BasedHardware#21351) * feat(billing): add shadow price-keyed entitlement versions * refactor(billing): expose versions through the catalog facade * fix(billing): type the generated entitlement projection * fix(billing): retain trialing and unknown-price legacy entitlements * fix(billing): retain inactive paid shadow entitlements through period end
Auto-generated: consolidates unreleased changelog fragments into v0.12.478 and regenerates CHANGELOG.json.
…onboarding (BasedHardware#20798) Every signed-in launch runs the primary-language setup, and when neither the phone nor the server has a language it opened the required (undismissable) language sheet. A relaunch mid-onboarding therefore covered whichever step onboarding resumed on, consent included, on top of onboarding's own language step. Keep the server sync, but only show the required sheet once onboarding is complete. setupUserPrimaryLanguage takes an optional fetch so the prompt can be tested without the network. Fixes BasedHardware#20788
…#21352) * feat(billing): add shadow price-keyed entitlement versions * refactor(billing): expose versions through the catalog facade * fix(billing): type the generated entitlement projection * feat(billing): pin loaded input rate card v1 in shadow * fix(billing): retain trialing and unknown-price legacy entitlements * fix(billing): price routed Free speech and incomplete Gemini usage accurately * docs(billing): align shadow usage guide with reviewed Free routing basis * fix(billing): retain inactive paid shadow entitlements through period end * fix(billing): preserve realtime reasoning and incomplete usage pricing --------- Co-authored-by: Cursor <[email protected]>
…return to the summary (BasedHardware#20805) On "You're All Set", tapping "Ask Omi a Question" reopened the question step on "Processing your question..." forever: questionSent was still true, but the recreated step had no answer and only listened for new messages. Finishing any reopened step also walked through every later step again, power cycle included, instead of returning to the summary. The reopened question step now shows the answer the provider already has (with Continue), and a step reopened from the summary returns there when finished. Fixes BasedHardware#20787
Keep the 15s timeout advance alongside the empty-question recovery that landed on main. Co-authored-by: Cursor <[email protected]>
…#21363) * fix: keep Anthropic BYOK notes from failing conversation processing The notes worker-loop clone only accepted ChatOpenAI, so a provider-switched Anthropic key raised TypeError and the conversation returned HTTP 500. Co-authored-by: Cursor <[email protected]> * fix: keep conversation notes when the model leaves quotes unescaped JsonOutputParser drops the whole summary when a notes completion quotes a phrase inside a JSON string. Co-authored-by: Cursor <[email protected]> * fix: stop reporting rejected chat files as server errors A provider 4xx on a chat attachment is a typed client outcome. Logging it with a traceback made Cloud Error Reporting group chat_file.py:150 as an outage. Co-authored-by: Cursor <[email protected]> * fix: let isolated file-tool tests catch provider file rejections The sanitization loader stubs chat_file, so the new typed catch needs a real exception class there or the import fails. Co-authored-by: Cursor <[email protected]> * fix: preserve full PCM span ends for live owner matching * fix(monitoring): reconcile the Grafana dead-man after the Helm rollout (#21357) A Monitoring IAM gap (HTTP 403) in the dead-man step blocked the Grafana WAL rollout in prod run 38344425582. Run it after Helm so it still fails closed without holding the monitoring stack deploy hostage. Failure-Class: FC-batch-fault-domain-head-of-line-poison Co-authored-by: Claude Opus 5.5 <[email protected]> * harden(mobile): validate storefront actions and legacy upsell eligibility * feat(mobile): add flagged contextual storefront sheet and upsell moments * test(mobile): capture storefront and contextual upsell UI states * harden(mobile): declare storefront gates with registry conventions * test(mobile): make storefront actions and evidence independent of test fonts * test(mobile): scroll management action fully into the test viewport * perf(monitoring): trim unused kubelet series and successful probe logs (#21358) Co-authored-by: Claude Opus 5.5 <[email protected]> * feat(monitoring): make Telegram pages actionable and batch warnings (#21365) * feat(monitoring): make Telegram pages actionable and batch warnings Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(monitoring): keep real silence links and point GPU/egress pages at their dashboards Grafana silence URLs for our rules are 256-341 characters, so the 200-character cap dropped every one. Parakeet GPU and Cloud Run egress rules linked to log dashboards that do not show the firing series. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * feat(mobile): apply paywall design review and compact budget nudge * feat(mobile): group legacy comparisons using backend presentation identity * refactor(queues): retire unused projection-repair and automatic chat-first queues (#21359) * refactor(queues): retire unused projection and automatic chat queues Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): align retired index inventory contract Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): update remaining field mode count Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): align cleanup imports and service guide Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(firestore): count the retired projection_repairs field override Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * test(mobile): verify paywall fold in the real draggable sheet * feat(monitoring): gate alert admission with historical backtests (#21366) * feat(monitoring): gate alert admission with historical backtests Add read-only condition-chain replay, offline inventory lint and synthetic state tests. Remove the retired proactive rule, repair endpoint readiness telemetry and zero-initialize invalid-request counters. Failure-Class: FC-alert-never-provably-fired Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(monitoring): record absent-rule proof and pause admission holds Record the full 28-rule production backtest: 19 deploy candidates, eight paused fixes and one retired-rule deletion. Bound replay requests by day, preserve explicit admission holds and block unpausing without review. Failure-Class: FC-alert-never-provably-fired Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(monitoring): key alert-lint debt on firing semantics, not routing The legacy-debt baseline fingerprinted the whole rule, so the fleet-wide notification timing change (#21365) voided every baseline and failed the offline admission gate. Fingerprint only condition/data/for/noData/execErr. Failure-Class: FC-batch-fault-domain-head-of-line-poison Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * test(billing): audit and characterize Stripe entitlement ingestion (#21368) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * feat: dark reset recovery for already-locked content (#21375) * feat: add dark bounded locked-content recovery at quota reset * refactor: share bounded unlock batches without growing domain modules * test: cover bounded unlock query shapes and atomic failure resume * feat: invalidate enforcement cache after reset recovery * docs: keep reset recovery routing within backend guide budget * docs: shorten reset recovery guide route * refactor: expose token-fenced lease release and narrow optional request * fix(monitoring): pair dashboard links with panels so Grafana accepts the rules (#21374) Grafana rejects __dashboardUid__ without __panelId__ (HTTP 400), which blocked the live rollout of #21365 for 38 rules. Dashboard-only links now use a dashboard_url annotation that the Telegram template falls back to. Failure-Class: FC-alert-never-provably-fired Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(mobile): protect legacy prices and desktop entitlements in storefront Failure-Class: none * feat(billing): fixture-only ladder Stripe price proposal (#21356) * feat(billing): add fixture-only ladder price dry-run tooling * fix(billing): validate dry-run ladder registrations and fixtures * feat(subscription): add dark at-cap choice foundation (W4) (#21361) * feat(subscription): add dark period-scoped at-cap choice contract * feat(subscription): declare at-cap choice route policies * feat(subscription): keep choice metadata independent of BYOK validation * feat(subscription): export at-cap choice app-client schema * feat(subscription): regenerate at-cap choice client contracts * fix: type budget-choice contracts and address review findings * refactor: split Dart wire schema catalog from generator * docs: record internal-only budget choice wire generation * refactor(billing): extract the legacy Stripe entitlement state machine (#21370) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * refactor(billing): extract pure Stripe entitlement state machine * refactor(billing): narrow resolved projection types * refactor(billing): freeze stale preservation before the Stripe lookup * billing: address state-machine review guards and effects * feat(billing): add read-only subscription drift reconciliation (#21371) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * refactor(billing): extract pure Stripe entitlement state machine * refactor(billing): narrow resolved projection types * refactor(billing): freeze stale preservation before the Stripe lookup * feat(billing): add read-only subscription drift reconciler * test(billing): distinguish organization payment grants from subscription drift * billing: address state-machine review guards and effects * billing: correct reconciliation uncertainty and legacy grants * feat(billing): shadow entitlement versions with legacy golden contract (#21351) * feat(billing): add shadow price-keyed entitlement versions * refactor(billing): expose versions through the catalog facade * fix(billing): type the generated entitlement projection * fix(billing): retain trialing and unknown-price legacy entitlements * fix(billing): retain inactive paid shadow entitlements through period end * fix(mobile): keep storefront checkout on the upward ladder Annual subscribers could buy their own monthly price, Architect could move onto Pro, and a scheduled cancellation had no resubscribe path. Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.478 * fix(mobile): don't open the required language picker over unfinished onboarding (#20798) Every signed-in launch runs the primary-language setup, and when neither the phone nor the server has a language it opened the required (undismissable) language sheet. A relaunch mid-onboarding therefore covered whichever step onboarding resumed on, consent included, on top of onboarding's own language step. Keep the server sync, but only show the required sheet once onboarding is complete. setupUserPrimaryLanguage takes an optional fetch so the prompt can be tested without the network. Fixes #20788 * feat(billing): pin loaded input rate card v1 in shadow (#21352) * feat(billing): add shadow price-keyed entitlement versions * refactor(billing): expose versions through the catalog facade * fix(billing): type the generated entitlement projection * feat(billing): pin loaded input rate card v1 in shadow * fix(billing): retain trialing and unknown-price legacy entitlements * fix(billing): price routed Free speech and incomplete Gemini usage accurately * docs(billing): align shadow usage guide with reviewed Free routing basis * fix(billing): retain inactive paid shadow entitlements through period end * fix(billing): preserve realtime reasoning and incomplete usage pricing --------- Co-authored-by: Cursor <[email protected]> * fix(mobile): pendant tutorial summary rows reopen a working step and return to the summary (#20805) On "You're All Set", tapping "Ask Omi a Question" reopened the question step on "Processing your question..." forever: questionSent was still true, but the recreated step had no answer and only listened for new messages. Finishing any reopened step also walked through every later step again, power cycle included, instead of returning to the summary. The reopened question step now shows the answer the provider already has (with Continue), and a step reopened from the summary returns there when finished. Fixes #20787 * feat(mobile): render the plans sheet from storefront schema v2 The copy deck owns the strings, and the client rejects any payload that is not schema_version 2. Co-authored-by: Cursor <[email protected]> * feat(billing): dark unified storefront presentation contract (#21367) * feat(billing): add dark versioned unified storefront contract * refactor(codegen): extract storefront and goals schema-group metadata * chore(mobile): record internal storefront wire contract * test(billing): reuse payment router for byte-identity cases * feat(billing): recommend storefront tier from opening context * chore(codegen): refresh storefront context projections * fix(billing): block lower storefront offers for legacy subscribers * fix(mobile): a tutorial question sent by the 15 s timeout moves the tutorial on (#20806) * fix(backend): declare Cloud Run Redis ports in runtime config Keep the verified 13151 port on all four managed Cloud Run services in dev and prod. Reject omitted Redis port bindings before deploy and prove the port reaches the deploy renderer. Failure-Class: FC-runtime-binding-contract * chore: consolidate changelog for v0.12.463 * ci: accept commit-pinned image URLs as UI evidence so PR screenshots render (#21123) The gate only accepted repo-relative paths, which GitHub shows as broken images in PR descriptions, and rejected the raw.githubusercontent URL form that renders. Accept URLs pinned to a commit SHA (not branch names); the tracked-file and manifest requirements are unchanged. Co-authored-by: Claude Opus 5.5 <[email protected]> * chore(app): add unreleased changelog fragment for batch speaker labeling * chore(backend): enable keep-rescue shadow mode on prod * fix(ci): stop peeling full-SHA revs; git 2.54 broke <sha>^{commit} * feat: add messaging channel foundation and shared chat turns (#21115) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * test: allow full-route contract timing * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * feat: add Telegram and Linq iMessage adapters (#21116) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * feat: add Telegram and Linq messaging adapters * test: allow full-route contract timing * test: register messaging retry helper in prompt harness * test: isolate messaging imports in backend unit harnesses * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.464 * feat(app): Chat apps screens for Telegram and iMessage (stacked on #21115) (#21118) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * test: allow full-route contract timing * feat(app): chat apps screens for connecting Telegram and iMessage Adds the flag-gated Chat apps surface on Integrations: connect Telegram through a one-time t.me deep link, connect iMessage by texting a one-time code, manage a link (show its chats in the app, disconnect), the WhatsApp waitlist, the free-plan upsell, and a read-only history of a chat app's sessions. Uses only the Stage A /v1/messaging routes through a typed executeApi client. The mobile-chat-apps PostHog flag fails closed; existing links keep the entry reachable for disconnect. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> * feat: use minted link targets and real chat-app switches Prefer the link-proof deep link and address, show a Telegram username when the link has one, and turn voice notes and private memories into per-link switches. Co-authored-by: Cursor <[email protected]> * fix: keep the Messages brand-color exceptions on the color lines The formatter had moved the allow comments off the hex literals, so the mobile UI contract counted them as new colors. Co-authored-by: Cursor <[email protected]> * fix: keep Messages brand colors on one allowed line The UI contract only honors an allow comment on the same line as Color(0x). Co-authored-by: Cursor <[email protected]> * fix: open minted chat-app links through the public launcher The connect sheets were calling test-only helpers, which the analyzer ratchet rejects. Co-authored-by: Cursor <[email protected]> * chore(l10n): restore main's ARB key order after the restack merge The three-way ARB merge re-serialized every locale in a different key order, turning 102 new strings into a ~560k-line diff. Keep main's order and append the new keys, as scripts/l10n.py does; regenerate gen-l10n output. Content is unchanged: only the chat-apps keys are added. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]> * feat(backend): fleet driver for the summary-vector backfill * chore(backend): rename driver batch variable * feat(backend): mirror fleet backfill state to Firestore for cross-execution resume * feat(backend): index summaries on re-finalization of completed fanouts * fix(backend): give Dream models readable evidence within token budgets (#21137) * fix(backend): project readable dream evidence within token budgets * fix(backend): preserve dream evidence depth during admission * feat(backend): harden fleet driver resume state * fix(cli): keep conversation Markdown export UTF-8 under legacy stdio (#21033) * fix: preserve UTF-8 conversation exports through legacy stdio Declare the exporter input and progress-output encoding independently of the host locale. Cover file and BOM stdin input through the real entry point under ASCII and CP1252 streams. * fix: normalize Markdown export PR files to LF * fix(onboarding): reset pendant tutorial question step on empty or no-speech press (#21069) Pressing the pendant button twice without speaking, or asking something Omi's server reports as no speech, left SinglePressStep stuck on "Processing your question..." forever: DeviceOnboardingProvider set questionSent=true on the second press and nothing ever reset it. Wire CaptureController's existing emptyFrames drop and onNoSpeech callback to DeviceOnboardingProvider.onVoiceQuestionFailed(), which resets the step and shows the existing voiceQuestionNoSpeech retry hint instead of spinning indefinitely. fixes #20789 * Fix desktop goal type enum decoding (#21091) * feat(backend): per-uid shard writes and bounded mirror state * feat(messaging): enable David-only prod channels for all paid plans (#21138) * chore: consolidate changelog for v0.12.465 * feat(backend): omit empty mirror maps and skip writes after failed reads * chore: regenerate desktop Swift OpenAPI DTOs * fix: preserve owner identity when repair lacks evidence * fix: preserve unresolved identity across a mixed voice * fix: improve dream triage recall with synthetic eval (#21145) Failure-Class: none * test(backend): completed-fanout summary indexing expectations * chore: keep main's generated Swift DTOs (GoalType normalization) * fix(desktop): generate the tolerant enum decoder that #21091 hand-wrote (#21149) #21091 taught the GoalType decoder in OmiApi.generated.swift to accept a Python-qualified value ("GoalType.scale") by editing the generated file, but generate_swift_openapi_types.py still emitted the old decoder, so `generate_swift_openapi_types.py --check` (the openapi-contract workflow and the pre-push hook) now fails on main for anyone who touches the API. The generator now emits that decoder for every generated string enum: an exact raw-value match first, so a value that itself contained a dot would keep its meaning (none of the 160 enums in the app-client spec has one today), then the last dotted component, then _unknown. OmiApi.generated.swift is regenerated from the generator, and GoalType decodes exactly as #21091 intended. Failure-Class: none * docs(onboarding): add an Omi for Mac user guide to the public docs corpus (#21147) The backend chat agent's product-info tool (get_omi_product_info_tool) recursively reads docs/doc content from GitHub, and the corpus had no macOS desktop user guide, so mobile/wearable chat could not answer desktop how-to questions such as enabling Only Meetings. This page mirrors the product guide shipped inside the Mac app (ProductKnowledge resources, #21081) and is registered in docs.json Get Started. * chore: consolidate changelog for v0.12.466 * fix(dream): tolerate invalid plan items and bound failed-record retries (#21154) * fix(dream): retain valid plan items and bound failed-record retries * perf(dream): reuse static fields for validation diagnostics * feat(app): phone battery sample v2 — self-contained intervals + schema delivery fix (#21152) * feat(app): phone battery sample v2 — self-contained drain intervals * fix(app): reject clock-corrupted phone battery intervals * fix(app): suspend-inclusive monotonic reference for Android battery intervals * feat(app): pendant audio-loss integrity — unresolved outages + per-day provenance (#21151) * feat(app): credible audio-loss accounting — persist unresolved outages, per-day provenance * fix(app): fence durable audio evidence and reconcile daily outage exposure * fix(app): rekey OmiDeviceHealthStore pbxproj entries to unique UUIDs * test(app): gate depends_on_21152 delivery tests out of shared CI runs * fix(app): buffer BLE outage writes when SharedPreferences binding is absent * test(app): enable depends_on_21152 delivery tests after #21152 merge * fix(dream): repair titles and protect multilingual feedback (#21160) * fix(dream): repair conversation headings and protect multilingual feedback * test(dream): account for explicit empty summary headers in queue excerpts * fix(dream): enforce deterministic summary and feedback guardrails (#21161) * fix(dream): enforce deterministic summary and feedback guardrails Failure-Class: FC-generated-presentation-contract-bypass * fix(dream): withhold feedback until privacy checks settle Failure-Class: FC-generated-presentation-contract-bypass * fix(dream): drop non-failure feedback deterministically Failure-Class: FC-generated-presentation-contract-bypass * fix(dream): guard task evidence, spelling targets and vocabulary noise (#21164) * fix(dream): guard task evidence, spelling targets and vocabulary noise * fix(dream): narrow validated task timestamps for type checking * fix: clip embeddings gateway inputs that OpenAI rejects with 400 Sync backfill posted raw transcript batches to /v1/embeddings. Empty strings, NUL bytes, and over-long inputs make the gateway return 400, which httpx raises from _models.py:829. Co-authored-by: Cursor <[email protected]> * fix: drop redundant str check in embeddings batching Pyright rejects the isinstance guard because the batch items are already strings. Co-authored-by: Cursor <[email protected]> * feat(backend): switch the dream agent to on for the owner allowlist (#21171) Owner-authorized promotion from shadow to on. Adds REVIEW_SURFACE_MODE=on on backend-sync, where passes run, because mode=on admission requires it. Canary leases stay forced to shadow. Co-authored-by: Claude Opus 5.5 <[email protected]> * feat(backend): name identified people in general conversation titles (#3602) (#20646) * feat(backend): name identified people in general conversation titles (#3602) Notes v2 already binds speaker clusters to people through hard evidence (voice profile / tagged person), but the general (non-meeting) notes path never asked for those names in the title and never said which bound name is the account owner, so titles rarely named who the conversation was with. - SpeakerMap: the cluster->name map now also records the owner's clusters and words spoken per cluster. It stays a plain mapping for every caller and the rendered spk lines (shared prefix bytes) are unchanged. - ConversationPromptPrefix.title_people / owner_names: non-owner people who said at least 10% of the words, most-spoken first, plus the owner's name. A bare mapping (owner unknown) names nobody. Rich meeting notes keep their roster rules and get neither. - utils/llm/conversation_title_people.py: a static TITLE block inserted before the parser schema (cacheable, general path only, same pattern as rich_static_instructions) and a volatile PEOPLE IN THIS CONVERSATION block: name the one or two central people, never the account owner, never an unlisted or invented name. - Presentation contract: a title that names none of the identified people is led by them ("Sarah Chen: Q2 Budget Review"), language-neutral, at most two names within 70 characters, never inventing a title or a name. Each repair is counted on omi_conversation_note_presentation_total (static_repair / title_people_lead). * test(backend): preload conversation_title_people in isolated conversation_processing loads test_conversation_structure_timezone and test_action_item_date_validation stub utils.llm as an empty package and load each pure helper that conversation_processing imports from its file. The new title module was missing from that list, so both files failed at collection in CI. * feat(backend): name title people only from scoped voice and tag bindings Review follow-ups for #3602: - SpeakerMap now carries per (speaker_id_scope, speaker_id) cluster evidence. Merged transcripts reuse ids across scopes, so an id whose clusters disagree about who is speaking (two people, or a person and the owner) names nobody. The rendered spk lines are unchanged. - Title people come only from voice/tag bindings, never from a calendar name bound by elimination, so a guessed owner cluster cannot be named. - Names in Thai, kana, CJK and Hangul match without word boundaries, a Latin name next to an unspaced script still matches, and a surname of three or more characters counts as a mention. - Names are stripped before comparison and before leading a title, and MAX_LED_TITLE_CHARACTERS is renamed TWO_NAME_LEAD_MAX_CHARACTERS: it only decides when the second name is dropped. * feat(backend): keep the owner out of titles without a voice match Second review round for #3602: - The owner line comes from the real profile name whenever one exists, with or without an is_user cluster, and a person record matching the owner's name or first name is treated as the owner. - Talk share is speech time (word count only when no segment has a duration), so names in unspaced scripts reach the share threshold. - Inflected mentions (Peters, Сарой, Anną) count as naming the person; titles and names are NFC-normalized and curly apostrophes match. - A conflicting speaker id is dropped on its own instead of silencing the whole conversation, and a person named like a speaker placeholder is never a title person. - The note presentation contract label is now v2: the title lead adds a static repair reason. * feat(backend): a bare name stem is not a mention of the person The inflection rule matched a name's stem with an empty suffix, so "and" counted as naming Andy, "the" as Theo and "Joe" as Joel, and the title was never led. Inflected forms now need a real suffix: a name plus up to four letters, or, for a name ending in a vowel, its stem plus up to four. Tests pin the bare-stem negatives, zero speech time for negative or untimed segments, and that the owner's name stays out of the static prompt. * feat(backend): keep title names one line, from real talk, and free of what presentation strips - A conversation with no speech time and no words names nobody: a share of nothing is no evidence of who spoke. - Person and owner names reach the prompt as one line of plain text, so a stored name with a line break or control character cannot add a prompt line. - The title lead skips a name holding a speaker placeholder or a transcript ID: it runs after presentation sanitization and must not bring either back. - Pin the two-name lead to exactly TWO_NAME_LEAD_MAX_CHARACTERS. * feat(backend): keep model titles that already name people A title that already names any of the identified people is kept as written, however many it names. The prompt asks for the one or two most central people, and it stays the control for how many names appear: a deterministic repair cannot remove names from the model's prose without rewriting it, replacing the title loses its topic, and the name matcher's inflection rule reads ordinary words as names ("Annual" for Anna, "General" for Gene), so a count would rewrite titles that name no one extra. The repair still leads a title that names nobody. Tests pin that titles naming three listed people, and titles whose words only look like names, come back unchanged, and that a title naming nobody is still led. The test pinning the two-name threshold is renamed to say what it asserts. * test(backend): pin the general-path TITLE prompt bytes in the flag-off fixture Review asked for the flag-off fixture to carry the general-path prompt with its TITLE block. The previous commit built that expectation from the production helper, so a change to the TITLE wording would still pass. The fixture now has a general_static entry holding the literal general-path static prompt, TITLE block included, and test_actual_flag_off_request_uses_pinned_prompts compares the real request against it. legacy_static stays pinned to main's base bytes, and test_flag_off_prompt_bytes_pinned_to_base checks that general_static is legacy_static with only the TITLE block inserted before the schema. * fix(backend): normalize title identities in the shaped notes writer Normalize owner and tagged-person identities to NFC before casefolding and combining scoped talk shares. Keep display spellings unchanged, and cover owner exclusion through the real speaker map, prompt builder, and notes writer. Port the reviewed title prompt and deterministic lead to current shaped-only notes after rebasing upstream, preserving general-only behavior and the one-turn model budget. Failure-Class: none * feat: remove carried-speaker banner and keep inline correction * feat: limit capture storage banner to disk admission failures * feat: remove home header sync button * chore: add banner cleanup mobile changelog * docs(desktop): track the Silence Notifications setting UI evidence Main's UI-evidence check needs a tracked screenshot for changed UI source. Copy the existing settings screenshot from the docs-assets branch unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: keep owner and Omi labels out of inline correction * fix: limit live speaker correction buttons to turn starts * chore: include banner cleanup in both mobile store notes * feat(dream): require Review for risky agent edits (#21176) * feat(dream): require Review for risky agent edits * refactor(dream): share typed entity evidence reads * test(dream): exercise a guarded spelling proposal in transport fixture * feat(review): version agent proposal wire contract for released clients * docs(review): declare v2 route authentication and rate limits * chore(api): regenerate TypeScript clients for Review v2 * chore(api): regenerate Swift operations for Review v2 * test(dream): fence tiered writers in shadow sweep regression * fix: attribute live speaker budget blocks and schedule voices fairly * chore: consolidate changelog for v0.12.467 * test: exercise profile retries through the coalescing speaker queue * fix(messaging): restore Linq replies and release failed turns (#21172) * fix(messaging): repair Linq send envelope and failed turn cleanup * fix(messaging): initialize failure sink before worker handling * fix(messaging): fence cancelled executor work during cleanup * fix(messaging): log cancelled worker fencing * fix(messaging): match fixture provider host exactly * fix(messaging): preserve delivered replies and drain typed fallbacks * fix(messaging): release settled turn failures without sticking the chat A finished turn that raised CancelledError, and a failed deferred reentry, kept the surface lease after the work had unwound, so the next message could not run. Retain the lease only while the worker task is still cancelling, and fence a failed deferred reentry with an event so a retry does not run the turn again. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * feat(app): show Dream suggestions in Review with Apply / Dismiss (#21183) * feat(dream): require Review for risky agent edits * refactor(dream): share typed entity evidence reads * test(dream): exercise a guarded spelling proposal in transport fixture * feat(review): version agent proposal wire contract for released clients * docs(review): declare v2 route authentication and rate limits * chore(api): regenerate TypeScript clients for Review v2 * chore(api): regenerate Swift operations for Review v2 * test(dream): fence tiered writers in shadow sweep regression * feat(app): show Dream suggestions in Review with Apply and Dismiss Review now reads the v2 queue, which adds Dream's agent_proposal items: closing or retiring tasks, merging people or memories, and memory or entity-summary edits that need the owner's consent. Cards show the question and Dream's reason; the sheet shows current vs suggested text. A 409 means the evidence changed, so the item stays gone with a clear message. Ten new strings in all 49 locales via scripts/l10n.py. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(app): changelog fragment for Dream suggestions in Review Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(debug-logs): serialize DebugLogManager appends to prevent interleaved lines (#21178) * fix(diagnostics): include error detail and stack in RingStorageSync failure log (#21180) * fix(sync): emit reconcile_completed_empty telemetry for empty job completions (#21182) * fix(debug-logs): serialize DebugLogManager appends to prevent interleaved lines * fix(sync): emit reconcile_completed_empty telemetry for empty job completions * fix: preserve coalesced ranges and serialize numeric speaker work * chore: consolidate changelog for v1.0.561 * test: retain the real speaker queue in teaching persistence coverage * fix: stop channel settings test pinning a wall-clock date The UTC+14 CI shard rolled to Oct 11 before the fixture's Oct 10 date could render as 'Connected Oct 10, 2026' in its own local midnight window. Assert the sentence shape (textContaining 'Connected') instead of a hardcoded formatted date, matching how the product renders linkedAt via OmiDateFormat. * perf(ci): compile generated Swift PRs and scope Siri advisory (#21186) * perf(ci): compile generated Swift PRs and scope Siri advisory * docs(ci): mark desktop CI changes as internal * test(ci): keep generated notification DTOs on compile-only PR lane * fix(channels): order replies, scope Undo, and anchor reminders to message time (#21175) * fix(channels): keep chat responsive and scope undo to action receipts Failure-Class: new * refactor(channels): load surface prompts at the shared mount boundary * refactor(channels): make lease and receipt state contracts explicit * fix(channels): preserve revocation and bound receipt retention Failure-Class: new * fix(channels): admit replies FIFO and anchor reminders to message time Failure-Class: new * refactor(channels): keep inbox index requirements in their owning module Failure-Class: new * fix(channels): preserve Telegram provider message timestamps Failure-Class: new * refactor(channels): narrow settled lease state after merge * fix(channels): bound provider clocks and stop lease-miss wake spins Linq reminders used processing time, and a busy surface lease requeued the inbox head and woke it again. Provider stamps are now bounded, a past relative reminder stays a missed phone reminder, and channel memory search uses the same empty-result wording as memory reads. Failure-Class: new Co-authored-by: Cursor <[email protected]> * fix(channels): accept only real ints for relative reminders The annotated isinstance check failed pyright and blocked the push. Runtime still rejects bools and non-integers from the model. Failure-Class: new Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.468 * test(desktop): await the decided outcome in notification speech race tests The race tests inferred the outcome from isSpeaking after twenty yields. The playback service now reports where an audience-gated one-shot ended up (played, fell back to the system voice, withheld, or dropped as stale) at the point it is decided, and the tests await that. New cases cover a player failure whose fallback is re-checked, a stopped synthesis that finishes late, and a private room that still hears the notification. Only audience-gated one-shots report; other speech is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(hygiene): exclude vendored tokenizer vocabulary from deferred-work markers (#21153) A false positive surfaced by #20746, which vendors a BERT WordPiece vocabulary as part of an on-device router. Line 20579 is the token "hack", between "##illy" and "plaintiff", and the check read it as deferred work: FAIL: new deferred-work markers must reference a tracking issue (#123 or URL). - app/android/app/src/main/assets/vocab.txt:20579: hack Why it happens: comment_fragment() treats a line whose first word matches MARKER_RE as a comment fragment even with no comment syntax. That is deliberate for a line that is just "TODO", but in a 30,522-row data file a bare token that happens to start with a marker word is data, not a comment. Exactly one line of 30,522 is affected. Why the fix is an exclusion rather than a change to the PR: the file cannot be edited. Its line index is the token id, so removing or reordering a row silently renumbers every token after it and changes what the tokenizer produces. Editing the vendored asset to satisfy a linter would trade a false positive for a real correctness bug. This restores behaviour the check already documents -- --raw exists precisely so that generated and vendored files are excluded by default, and the exclusion set simply had no entry for vendored plain-text data. A glob over src/main/assets would generalise further; a specific path is narrower and easier to review, so this takes the narrow one and leaves the call to @Git-on-my-level. Verified by running the real script, both directions: before: FAIL app/android/app/src/main/assets/vocab.txt:20579: hack after: OK and the check is not weakened -- a "// HACK:" and a "// TODO:" with no issue reference in normal source are both still flagged, while "// TODO: ... (#123)" is still accepted. Co-authored-by: palontologist <[email protected]> * fix(backend): drop a conversation's task search vectors when a cascade delete removes them (#15950) Isolate the Pinecone batch deletion in a try/except block and run reminder cancellation before vector cleanup to guarantee that vector failures do not abort the delete or skip cancelling task reminders. Co-authored-by: kduailabs <[email protected]> * fix: recover exhausted speaker voices from bounded fresh PCM * fix: preserve fresh audio watermark across ring replacement * docs: clarify recovery proof lifecycle and type audio helpers * test: patch WAV encoding at its owning speaker audio module * fix(sync): bound mobile job polls, follow active content owners, stop mislabeling edge throttles (#21206) * fix(sync): bound mobile job polls and follow active content owners Failure-Class: new * fix(sync): recover expired owners and requeue retained phone audio Failure-Class: FC-event-wakes-bypass-request-cadence * fix(sync): generate declared owner and poll hint response decoders Declare additive sync conflict and status cadence fields in OpenAPI and regenerate the app wire contract. Decode conflict responses and project status metadata through generated types, retaining compatibility with omitted optional fields. Failure-Class: FC-event-wakes-bypass-request-cadence * fix(sync): advance replay clocks through job poll deadlines Keep terminal-state and retry-budget assertions intact while making replay time match the bounded polling contract. Reset shared test state and prove immediate restored-job admission, deferred upload hints, and singleton isolation. Failure-Class: FC-event-wakes-bypass-request-cadence * test(desktop): compare PTT and card surfaces like with like in notch sizing test testHoldingPushToTalkAgainstAMountedCardKeepsTheCardSurface compared the exact PTT surface size plus glow outsets with the mounted card's window frame. AppKit snaps window frames to whole points, so on a display with a fractional notch inset (37.5pt) the card's 197.5pt request lands as a 198pt frame and the assertion fails by 0.5pt, while the panel itself never shrinks. Compare the PTT surface with the card's own surface size instead; the check still fails when the PTT surface drops the mounted card. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: reserve fresh recovery phrases and enforce tranche allowance * refactor: keep matcher within the existing size ratchet * fix(ios): memories fetch 503/429 no longer reported as fatal — retry + graceful degradation (#21226) * fix(ios): memories fetch failures are recoverable — retry with backoff, non-fatal reporting * fix(ios): bound memories retries by caller deadline and cancel on disposal * fix: make owner recognition refusals attributable * test: await queue matcher completions before asserting owner recovery * feat(macos): continue MCP marketplace installs into connection setup (#20962) * feat(macos): continue marketplace installs into connection setup * test(macos): record marketplace setup and large-text evidence * fix(macos): refresh committed installs after setup dismissal * test(macos): record clean-head marketplace replay * fix(backend): memories fetch resilience — bounded retry, admission cap, structured 503 telemetry (#21227) * fix(backend): memories fetch resilience — bounded retry, structured 503 telemetry * fix(backend): cap memories retry admission and preserve probe state * fix: gate every memory read attempt through global admission * feat(backend): route Dream spelling fixes to Review until they are grounded (#21232) * feat(backend): route Dream spelling fixes to Review until they are grounded Prod Dream passes no longer auto-apply spelling edits; they become Review suggestions. Titles, overviews and vocabulary still auto-apply. Spelling returns to auto once the agent must cite supporting context. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(backend): allow the Dream auto-apply override in the prod env contract Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * docs(backend): C025 runbook — regionalize syncing-local to us-central1 Cost ledger card C025: prod syncing-local is multi-region, paying replication for <=8-minute staging blobs (+$46/day WoW). Runbook covers replacement bucket provisioning, intake pause + job drain (queued raw audio can outlive 8 min), 15-min signed-URL cache waitout, env flip in all four chart values, rollback, and old-bucket deletion gates. * fix: bound diagnostic writes and update observation regression guards * fix: narrow optional observer in diagnostic flush * perf(memory): hydrate graph references instead of scanning the corpus C008 cut 1+2: KG traversal hydration now reads only distinct edge-referenced memory IDs in 500-doc batches (existing authoritative by-ID seam) instead of two full memory_items corpus streams. 18k-doc scan -> 6 point reads in test. Eligibility recheck, citation-time privacy check, probe labels preserved. Privacy-critical exhaustive scans deliberately left unbounded (see report). * test(memory): keep scan-guard test under the 0.30s timing guard 18k-item corpus reproduced the prod-scale scan but ran 0.33s against test.sh's 0.30s per-test budget; 1.5k preserves the property (scan would still enumerate the corpus; by-ID path reads 6 docs). * test(memory): shrink batching test to 550 IDs under the timing guard Batching/dup property preserved (500+50, dedupe before batching); the implementation dedupes requested IDs first, so expected batches update to [500, 50]. * test: isolate memory read admission between hermetic e2e cases * fix(backend): per-UID ceiling on sync job status polling C024: prod poll volume stepped to 40M req/day (85% this route). Cap = 40 polls/UID/20s via existing atomic Redis reservation, independent of RATE_LIMIT_BOOST; 429 + Retry-After: 20 before job lookup; fail-open on Redis outage with fallback telemetry; two counters added. Shipped Dart poller cadence (<=18 req/min/instance) never hits the cap. * test: cover diagnostics exemption and isolate synthetic cursor admission * test: exhaust hydration budget after read admission * chore: consolidate changelog for v0.12.469 * fix(app): fully-charged notification — require on-charger dwell + fresh battery reading (#21233) * fix(app): fully-charged notification requires on-charger dwell and fresh battery reading A cached 100% from before plug-in was enough to fire the fully-charged notification on the charging edge. Require a continuous on-charger dwell and a battery sample timestamped after that edge. Co-authored-by: Cursor <[email protected]> * chore(app): add changelog fragment for the fully-charged notification fix Co-authored-by: Cursor <[email protected]> * fix(app): scope fully-charged alerts per device and dwell on monotonic time A provider-wide alert flag suppressed the next pendant, and wall-clock dwell could be skipped by moving the phone clock. Mismatch logging now waits until the notification permission check has passed. Co-authored-by: Cursor <[email protected]> * fix(app): keep device provider under the line-count ratchet The fully-charged presentation path had pushed the file past 1500 lines. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * test(memory): isolate the cursor suite from the shared read-admission allowance #21227's process-wide RetryAllowance (8 tokens, 1/s refill) exhausts deterministically when the cursor suite pages thousands of rows in under a second. Fresh allowance per test + burst 64 via the existing env knob. * fix(backend): first read admission gates on time headroom, not document headroom #21227 regression: with an exhausted ListReadBudget document allowance (max_documents spent), _headroom returns 0.0 and first-attempt admission raises 503 Memory read admission exhausted — but an exhausted document budget is a normal truncated page in the list-budget contract (the charge path flags budget.truncated downstream). Restores truncated-page behavior; the retry path keeps the full budget-aware headroom check. * test(e2e): isolate the hermetic harness from the shared read-admission allowance Same mechanism as the cursor suite: 113 in-process tests exhaust the 8-token process-wide RetryAllowance and shed legitimate bursts as 503 Memory read admission exhausted. Burst 64 + fresh allowance in the e2e conftest; full harness green locally (126 passed, 3 skipped, 2 xfailed). * feat: expose deterministic Dream summary eligibility (#21236) * docs(backend): close the review blockers in the C025 cutover runbook Grok review (read-only) found two blockers in the no-copy drain: Firestore sync_backfill_pending docs carry raw_blob_paths and survive a Cloud Tasks + Redis drain (expire as sync_staged_audio_expired post-flip); failed/partial backfill jobs keep staged blobs and recover_dev_failed_sync_backfill.py resolves paths against the current bucket env. Runbook now requires the sequencer queue drained + recoverable failed/partial jobs finished or copied before the flip, accounts chat voice-message staging in the URL-cache clock, and documents the backfill clone-order hazard. * Fix closed-generation diagnostic persistence and log kinds * feat: chat edit receipts with undo, and h.omi.me item links (#21234) * feat(app): render chat edit receipts with undo Decode the new `editReceipt` chat content block (camelCase and snake_case) and render it as a chip in the memory/task family: an existing icon per kind, the summary, a tap that opens the conversation, memory, task or person, and a compact Undo while the server allows it. Undo calls POST /v1/chat/receipts/{id}/undo, treats already_undone as success, and reports failure through OmiFeedback. Unknown kinds keep their summary and undo but have no destination. Also parse h.omi.me singular item links (conversation/task/memory) into the Home routes that already open them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: open h.omi.me item links in the app, content-free web fallback https://h.omi.me/conversation/<id>, /task/<id> and /memory/<id> (singular; the plural /conversations/ and /tasks/ public share pages are unchanged): - iOS AASA and Android app-link intent filters claim the three paths, and the Flutter link handler routes them into Home. - Without the app, h.omi.me serves a minimal Omi page: "Open in the Omi App", App Store / Google Play, and a web sign-in handoff. It never reads the item; preview metadata is generic Omi only and noindex. - web/app login honours a same-origin `next` (and protected pages pass it), so the handoff lands on /conversations?id=<id> (tasks and memories land on their list pages; web/app has no single-item routes for them). Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: UI evidence for edit receipts and item-link fallback; absolute title The fallback page's title is now exactly "Omi" (the root template made it "Omi | Omi"). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(app): treat refused receipt undo as terminal Match the backend undo contract: `unavailable` (window closed or ambiguous inverse), 404 and 409 report the failure and remove Undo instead of showing a false "Undone" or inviting a retry that cannot succeed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(app): changelog entry for chat edit receipts and item links Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): keep a refused receipt undo from coming back A rebuild from the original message dropped the terminal undo state, and the caption row overflowed once text scale grew past the fixed 32px line. Co-authored-by: Cursor <[email protected]> * fix(web): reject sign-in return paths that normalize off-site `/.//evil.example` and a percent-encoded double slash passed the prefix check and became a protocol-relative URL after the browser parsed them. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]> * feat(chat): rich channel replies and shared edit receipts (#21240) * feat(chat): publish shared edit receipt and owner undo contract * feat(chat): render channel markdown and share audited edit tools * docs(chat): clarify client integration and memory undo limits * fix(chat): sanitize task snapshot failures before writes * fix(memory): distinguish canonical audit keys in source inventory * fix(chat): type shared edits and verify injected tool config * fix(chat): align receipt summaries with native UI cards * fix(chat): fence edits and persist undo in message history * test(chat): cover receipt lookup query and record UI integration * fix(chat): keep receipt message queries at database authority * fix(chat): preserve protected notes across repeated corrections * fix(chat): decode correction notes in manual speaker responses * fix(chat): drop unsafe channel links and leftover citation markers Fullwidth and footnote markers were still delivered, and non-https destinations survived as text or hrefs. Record the desktop proxy and non-ledger memory undo limits that are not contained fixes. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.470 * fix(ci): rebalance backend unit shards and synchronize fairness test (#21259) * Retrieve bounded Dream neighbourhoods with target and context roles (#21237) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * test: migrate Dream canary and report retrieval fixtures * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): initialize the per-pass control cache before dispatch * test(dream): migrate report fixtures to cached reads * test(dream): validate Typesense bindings and preserve upstream app bytes * fix(ci): distribute the growing backend suite across six shards * chore(ci): refresh measured six-shard runner cost forecast * chore(ci): record measured fanout cost in aggregate forecast caps * fix(ci): run metadata preflight for Dream stack bases * chore(dream): extract shared CI changes into standalone PR * fix(dream): reclaim unused context budget and diagnose retrieval (#21263) * fix(dream): reclaim unused context capacity and report retrieval paths * fix(dream): type diagnostics and keep vector availability checks local * fix(dream): bound reclaimed targets and retain unavailable queue liveness * fix(dream): settle permanent misses and bound transient retries and reads * fix(dream): retain user-authored titles in retrieval queries * chore: consolidate changelog for v0.12.471 * fix(dream): run ordinary-text search and retrieve non-target neighbours (#21275) * fix(dream): search ordinary speech and exclude temporal targets * fix(dream): exclude pending targets and bound query matching * fix(dream): read section evidence and reserve a context slice * test(dream): bind verified reader and stop redundant budget probes * perf(dream): avoid duplicate triage and schema sizing * fix(dream): expire unreadable speech and inspect oldest available refs * fix: restore live matcher FIFO scheduling and query cadence * Require independent support for Dream spelling auto-apply (#21238) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * feat: require independent support for Dream spelling auto-apply * harden: type Dream dry-run diagnostic fields * test: ground the synthetic Dream transport spelling fixture * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * test: inject synthetic turns into Dream edit-budget regression * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): prevent vocabulary laundering and preserve capped questions * fix(dream): initialize the per-pass control cache before dispatch * test(dream): migrate report fixtures to cached reads * test(dream): use authored vocabulary and cached report fixtures * fix(dream): require resolvable independent support chains * test(dream): validate Typesense bindings and preserve upstream app bytes * test(dream): make legacy agent support explicitly user authored * fix(dream): defer capped spelling targets until UTC reset * test(dream): witness deferred completion query branches * fix(ci): distribute the growing backend suite across six shards * chore(ci): refresh measured six-shard runner cost forecast * chore(ci): record measured fanout cost in aggregate forecast caps * fix(ci): run metadata preflight for Dream stack bases * chore(dream): extract shared CI changes into standalone PR * Sample older Dream cleanup targets with relevance and review cooldowns (#21239) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * feat: require independent support for Dream spelling auto-apply * harden: type Dream dry-run diagnostic fields * feat: seed bounded older Dream cleanup with review cooldowns * test: ground the synthetic Dream transport spelling fixture * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * test: isolate Dream report backfill and review metadata * harden: count dirty Dream targets in source diagnostics * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: bootstrap legacy Dream cleanup and bound cooldown reads * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * test: inject synthetic turns into Dream edit-budget regression * test: inject synthetic turns into Dream edit-budget regression * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): prevent vocabulary laundering and preserve capped questions * fix(dream): initialize the per-pass control cache before dispatch * fix(dream): bound idle cleanup admission and historical sampling * test(dream): migrate report fixtures to cached reads * test(dream): use authored vocabulary and cached report fixtures * fix(dream): return idle without run history and update admission fixtures * fix(dream): require resolvable independent support chains * test(dream): validate Typesense bindings and preserve upstream app bytes * test(dream): make legacy agent support explicitly user authored * test(dream): supply dirty versions to legacy admission fixtures * fix(dream): defer capped spelling targets until UTC reset * fix(dream): sample real record ID spaces and honor seed deferrals * test(dream): witness deferred completion query branches * fix(ci): distribute the growing backend suite across six shards * chore(ci): refresh measured six-shard runner cost forecast * chore(ci): record measured fanout cost in aggregate forecast caps * fix(ci): run metadata preflight for Dream stack bases * test(ci): await completed speaker matches in fairness regression * chore(dream): extract shared CI changes into standalone PR * chore(dream): move speaker fairness regression fix to CI PR * chore: consolidate changelog for v0.12.472 * Schedule Dream fairly within shared reserved background capacity (#21241) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * feat: require independent support for Dream spelling auto-apply * harden: type Dream dry-run diagnostic fields * feat: seed bounded older Dream cleanup with review cooldowns * test: ground the synthetic Dream transport spelling fixture * feat: schedule Dream fairly within reserved background capacity * test: migrate Dream canary and report retrieval fixtures * test: exercise full Dream fixtures through reserved admission * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * test: isolate Dream report backfill and review metadata * test: isolate manual Dream report from stochastic backfill * harden: count dirty Dream targets in source diagnostics * harden: retain dirty source counts through scheduling * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: retain actionable Dream spelling answers and canonical provenance * fix: bootstrap legacy Dream cleanup and bound cooldown reads * fix: bootstrap legacy Dream cleanup and bound cooldown reads * fix: report Dream capacity waits as retryable manual responses * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: refresh Dream subscription priority and release declined slots * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * test: inject synthetic turns into Dream edit-budget regression * test: inject synthetic turns into Dream edit-budget regression * test: inject synthetic turns into Dream edit-budget regression * harden: project only current plan fields for Dream scheduling * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): prevent vocabulary laundering and preserve capped questions * fix(dream): initialize the per-pass control cache before dispatch * fix(dream): bound idle cleanup admission and historical sampling * test(dream): migrate report fixtures to cached reads * test(dream): use authored vocabulary and cached report fixtures * fix(dream): return idle without run history and update admission fixtures * fix(dream): require resolvable independent support chains * fix(dream): isolate scheduler failures and preserve capacity-wait rotation * test(dream): validate Typesense bindings and preserve upstream app bytes * test(dream): include explicit reservation scope in runtime fixtures * chore(dream): classify reservation evidence project co…
…ign (#21354) * feat(mobile): define presentation-only storefront contract * feat(mobile): bind storefront contract to exact checkout price * chore(mobile): record internal storefront contract change * feat(mobile): add flagged contextual paywall sheet and upsell moments (#21363) * fix: keep Anthropic BYOK notes from failing conversation processing The notes worker-loop clone only accepted ChatOpenAI, so a provider-switched Anthropic key raised TypeError and the conversation returned HTTP 500. Co-authored-by: Cursor <[email protected]> * fix: keep conversation notes when the model leaves quotes unescaped JsonOutputParser drops the whole summary when a notes completion quotes a phrase inside a JSON string. Co-authored-by: Cursor <[email protected]> * fix: stop reporting rejected chat files as server errors A provider 4xx on a chat attachment is a typed client outcome. Logging it with a traceback made Cloud Error Reporting group chat_file.py:150 as an outage. Co-authored-by: Cursor <[email protected]> * fix: let isolated file-tool tests catch provider file rejections The sanitization loader stubs chat_file, so the new typed catch needs a real exception class there or the import fails. Co-authored-by: Cursor <[email protected]> * fix: preserve full PCM span ends for live owner matching * fix(monitoring): reconcile the Grafana dead-man after the Helm rollout (#21357) A Monitoring IAM gap (HTTP 403) in the dead-man step blocked the Grafana WAL rollout in prod run 38344425582. Run it after Helm so it still fails closed without holding the monitoring stack deploy hostage. Failure-Class: FC-batch-fault-domain-head-of-line-poison Co-authored-by: Claude Opus 5.5 <[email protected]> * harden(mobile): validate storefront actions and legacy upsell eligibility * feat(mobile): add flagged contextual storefront sheet and upsell moments * test(mobile): capture storefront and contextual upsell UI states * harden(mobile): declare storefront gates with registry conventions * test(mobile): make storefront actions and evidence independent of test fonts * test(mobile): scroll management action fully into the test viewport * perf(monitoring): trim unused kubelet series and successful probe logs (#21358) Co-authored-by: Claude Opus 5.5 <[email protected]> * feat(monitoring): make Telegram pages actionable and batch warnings (#21365) * feat(monitoring): make Telegram pages actionable and batch warnings Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(monitoring): keep real silence links and point GPU/egress pages at their dashboards Grafana silence URLs for our rules are 256-341 characters, so the 200-character cap dropped every one. Parakeet GPU and Cloud Run egress rules linked to log dashboards that do not show the firing series. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * feat(mobile): apply paywall design review and compact budget nudge * feat(mobile): group legacy comparisons using backend presentation identity * refactor(queues): retire unused projection-repair and automatic chat-first queues (#21359) * refactor(queues): retire unused projection and automatic chat queues Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): align retired index inventory contract Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): update remaining field mode count Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(queues): align cleanup imports and service guide Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(firestore): count the retired projection_repairs field override Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * test(mobile): verify paywall fold in the real draggable sheet * feat(monitoring): gate alert admission with historical backtests (#21366) * feat(monitoring): gate alert admission with historical backtests Add read-only condition-chain replay, offline inventory lint and synthetic state tests. Remove the retired proactive rule, repair endpoint readiness telemetry and zero-initialize invalid-request counters. Failure-Class: FC-alert-never-provably-fired Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(monitoring): record absent-rule proof and pause admission holds Record the full 28-rule production backtest: 19 deploy candidates, eight paused fixes and one retired-rule deletion. Bound replay requests by day, preserve explicit admission holds and block unpausing without review. Failure-Class: FC-alert-never-provably-fired Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(monitoring): key alert-lint debt on firing semantics, not routing The legacy-debt baseline fingerprinted the whole rule, so the fleet-wide notification timing change (#21365) voided every baseline and failed the offline admission gate. Fingerprint only condition/data/for/noData/execErr. Failure-Class: FC-batch-fault-domain-head-of-line-poison Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * test(billing): audit and characterize Stripe entitlement ingestion (#21368) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * feat: dark reset recovery for already-locked content (#21375) * feat: add dark bounded locked-content recovery at quota reset * refactor: share bounded unlock batches without growing domain modules * test: cover bounded unlock query shapes and atomic failure resume * feat: invalidate enforcement cache after reset recovery * docs: keep reset recovery routing within backend guide budget * docs: shorten reset recovery guide route * refactor: expose token-fenced lease release and narrow optional request * fix(monitoring): pair dashboard links with panels so Grafana accepts the rules (#21374) Grafana rejects __dashboardUid__ without __panelId__ (HTTP 400), which blocked the live rollout of #21365 for 38 rules. Dashboard-only links now use a dashboard_url annotation that the Telegram template falls back to. Failure-Class: FC-alert-never-provably-fired Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(mobile): protect legacy prices and desktop entitlements in storefront Failure-Class: none * feat(billing): fixture-only ladder Stripe price proposal (#21356) * feat(billing): add fixture-only ladder price dry-run tooling * fix(billing): validate dry-run ladder registrations and fixtures * feat(subscription): add dark at-cap choice foundation (W4) (#21361) * feat(subscription): add dark period-scoped at-cap choice contract * feat(subscription): declare at-cap choice route policies * feat(subscription): keep choice metadata independent of BYOK validation * feat(subscription): export at-cap choice app-client schema * feat(subscription): regenerate at-cap choice client contracts * fix: type budget-choice contracts and address review findings * refactor: split Dart wire schema catalog from generator * docs: record internal-only budget choice wire generation * refactor(billing): extract the legacy Stripe entitlement state machine (#21370) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * refactor(billing): extract pure Stripe entitlement state machine * refactor(billing): narrow resolved projection types * refactor(billing): freeze stale preservation before the Stripe lookup * billing: address state-machine review guards and effects * feat(billing): add read-only subscription drift reconciliation (#21371) * test(billing): characterize Stripe entitlement ingestion before extraction * test(billing): characterize the one-pass stale guard across a clock rollback * refactor(billing): extract pure Stripe entitlement state machine * refactor(billing): narrow resolved projection types * refactor(billing): freeze stale preservation before the Stripe lookup * feat(billing): add read-only subscription drift reconciler * test(billing): distinguish organization payment grants from subscription drift * billing: address state-machine review guards and effects * billing: correct reconciliation uncertainty and legacy grants * feat(billing): shadow entitlement versions with legacy golden contract (#21351) * feat(billing): add shadow price-keyed entitlement versions * refactor(billing): expose versions through the catalog facade * fix(billing): type the generated entitlement projection * fix(billing): retain trialing and unknown-price legacy entitlements * fix(billing): retain inactive paid shadow entitlements through period end * fix(mobile): keep storefront checkout on the upward ladder Annual subscribers could buy their own monthly price, Architect could move onto Pro, and a scheduled cancellation had no resubscribe path. Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.478 * fix(mobile): don't open the required language picker over unfinished onboarding (#20798) Every signed-in launch runs the primary-language setup, and when neither the phone nor the server has a language it opened the required (undismissable) language sheet. A relaunch mid-onboarding therefore covered whichever step onboarding resumed on, consent included, on top of onboarding's own language step. Keep the server sync, but only show the required sheet once onboarding is complete. setupUserPrimaryLanguage takes an optional fetch so the prompt can be tested without the network. Fixes #20788 * feat(billing): pin loaded input rate card v1 in shadow (#21352) * feat(billing): add shadow price-keyed entitlement versions * refactor(billing): expose versions through the catalog facade * fix(billing): type the generated entitlement projection * feat(billing): pin loaded input rate card v1 in shadow * fix(billing): retain trialing and unknown-price legacy entitlements * fix(billing): price routed Free speech and incomplete Gemini usage accurately * docs(billing): align shadow usage guide with reviewed Free routing basis * fix(billing): retain inactive paid shadow entitlements through period end * fix(billing): preserve realtime reasoning and incomplete usage pricing --------- Co-authored-by: Cursor <[email protected]> * fix(mobile): pendant tutorial summary rows reopen a working step and return to the summary (#20805) On "You're All Set", tapping "Ask Omi a Question" reopened the question step on "Processing your question..." forever: questionSent was still true, but the recreated step had no answer and only listened for new messages. Finishing any reopened step also walked through every later step again, power cycle included, instead of returning to the summary. The reopened question step now shows the answer the provider already has (with Continue), and a step reopened from the summary returns there when finished. Fixes #20787 * feat(mobile): render the plans sheet from storefront schema v2 The copy deck owns the strings, and the client rejects any payload that is not schema_version 2. Co-authored-by: Cursor <[email protected]> * feat(billing): dark unified storefront presentation contract (#21367) * feat(billing): add dark versioned unified storefront contract * refactor(codegen): extract storefront and goals schema-group metadata * chore(mobile): record internal storefront wire contract * test(billing): reuse payment router for byte-identity cases * feat(billing): recommend storefront tier from opening context * chore(codegen): refresh storefront context projections * fix(billing): block lower storefront offers for legacy subscribers * fix(mobile): a tutorial question sent by the 15 s timeout moves the tutorial on (#20806) * fix(backend): declare Cloud Run Redis ports in runtime config Keep the verified 13151 port on all four managed Cloud Run services in dev and prod. Reject omitted Redis port bindings before deploy and prove the port reaches the deploy renderer. Failure-Class: FC-runtime-binding-contract * chore: consolidate changelog for v0.12.463 * ci: accept commit-pinned image URLs as UI evidence so PR screenshots render (#21123) The gate only accepted repo-relative paths, which GitHub shows as broken images in PR descriptions, and rejected the raw.githubusercontent URL form that renders. Accept URLs pinned to a commit SHA (not branch names); the tracked-file and manifest requirements are unchanged. Co-authored-by: Claude Opus 5.5 <[email protected]> * chore(app): add unreleased changelog fragment for batch speaker labeling * chore(backend): enable keep-rescue shadow mode on prod * fix(ci): stop peeling full-SHA revs; git 2.54 broke <sha>^{commit} * feat: add messaging channel foundation and shared chat turns (#21115) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * test: allow full-route contract timing * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * feat: add Telegram and Linq iMessage adapters (#21116) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * feat: add Telegram and Linq messaging adapters * test: allow full-route contract timing * test: register messaging retry helper in prompt harness * test: isolate messaging imports in backend unit harnesses * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.464 * feat(app): Chat apps screens for Telegram and iMessage (stacked on #21115) (#21118) * feat: add channel-neutral messaging turn foundation and contract harness * chore: regenerate messaging link client contracts * feat: harden messaging admission and cross-surface continuity * chore: record internal messaging wire contract change * refactor: make messaging async storage boundaries explicit * refactor: type the shared chat turn boundary * refactor: retain outbound send classification type * test: fix messaging foundation CI harnesses * test: allow full-route contract timing * feat(app): chat apps screens for connecting Telegram and iMessage Adds the flag-gated Chat apps surface on Integrations: connect Telegram through a one-time t.me deep link, connect iMessage by texting a one-time code, manage a link (show its chats in the app, disconnect), the WhatsApp waitlist, the free-plan upsell, and a read-only history of a chat app's sessions. Uses only the Stage A /v1/messaging routes through a typed executeApi client. The mobile-chat-apps PostHog flag fails closed; existing links keep the entry reachable for disconnect. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: expose link targets and keep private memories off channel retrieval Mint returns the configured deep link and address, sessions carry their channel fields, and channel turns drop private and restricted memories before they reach the model. Co-authored-by: Cursor <[email protected]> * fix: read the private-memory filter from the surface runtime The chat turn already installs that runtime for the whole turn, so the oversized agent file does not need another copy of the flag. Co-authored-by: Cursor <[email protected]> * feat: use minted link targets and real chat-app switches Prefer the link-proof deep link and address, show a Telegram username when the link has one, and turn voice notes and private memories into per-link switches. Co-authored-by: Cursor <[email protected]> * fix: keep the Messages brand-color exceptions on the color lines The formatter had moved the allow comments off the hex literals, so the mobile UI contract counted them as new colors. Co-authored-by: Cursor <[email protected]> * fix: keep Messages brand colors on one allowed line The UI contract only honors an allow comment on the same line as Color(0x). Co-authored-by: Cursor <[email protected]> * fix: open minted chat-app links through the public launcher The connect sheets were calling test-only helpers, which the analyzer ratchet rejects. Co-authored-by: Cursor <[email protected]> * chore(l10n): restore main's ARB key order after the restack merge The three-way ARB merge re-serialized every locale in a different key order, turning 102 new strings into a ~560k-line diff. Keep main's order and append the new keys, as scripts/l10n.py does; regenerate gen-l10n output. Content is unchanged: only the chat-apps keys are added. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]> * feat(backend): fleet driver for the summary-vector backfill * chore(backend): rename driver batch variable * feat(backend): mirror fleet backfill state to Firestore for cross-execution resume * feat(backend): index summaries on re-finalization of completed fanouts * fix(backend): give Dream models readable evidence within token budgets (#21137) * fix(backend): project readable dream evidence within token budgets * fix(backend): preserve dream evidence depth during admission * feat(backend): harden fleet driver resume state * fix(cli): keep conversation Markdown export UTF-8 under legacy stdio (#21033) * fix: preserve UTF-8 conversation exports through legacy stdio Declare the exporter input and progress-output encoding independently of the host locale. Cover file and BOM stdin input through the real entry point under ASCII and CP1252 streams. * fix: normalize Markdown export PR files to LF * fix(onboarding): reset pendant tutorial question step on empty or no-speech press (#21069) Pressing the pendant button twice without speaking, or asking something Omi's server reports as no speech, left SinglePressStep stuck on "Processing your question..." forever: DeviceOnboardingProvider set questionSent=true on the second press and nothing ever reset it. Wire CaptureController's existing emptyFrames drop and onNoSpeech callback to DeviceOnboardingProvider.onVoiceQuestionFailed(), which resets the step and shows the existing voiceQuestionNoSpeech retry hint instead of spinning indefinitely. fixes #20789 * Fix desktop goal type enum decoding (#21091) * feat(backend): per-uid shard writes and bounded mirror state * feat(messaging): enable David-only prod channels for all paid plans (#21138) * chore: consolidate changelog for v0.12.465 * feat(backend): omit empty mirror maps and skip writes after failed reads * chore: regenerate desktop Swift OpenAPI DTOs * fix: preserve owner identity when repair lacks evidence * fix: preserve unresolved identity across a mixed voice * fix: improve dream triage recall with synthetic eval (#21145) Failure-Class: none * test(backend): completed-fanout summary indexing expectations * chore: keep main's generated Swift DTOs (GoalType normalization) * fix(desktop): generate the tolerant enum decoder that #21091 hand-wrote (#21149) #21091 taught the GoalType decoder in OmiApi.generated.swift to accept a Python-qualified value ("GoalType.scale") by editing the generated file, but generate_swift_openapi_types.py still emitted the old decoder, so `generate_swift_openapi_types.py --check` (the openapi-contract workflow and the pre-push hook) now fails on main for anyone who touches the API. The generator now emits that decoder for every generated string enum: an exact raw-value match first, so a value that itself contained a dot would keep its meaning (none of the 160 enums in the app-client spec has one today), then the last dotted component, then _unknown. OmiApi.generated.swift is regenerated from the generator, and GoalType decodes exactly as #21091 intended. Failure-Class: none * docs(onboarding): add an Omi for Mac user guide to the public docs corpus (#21147) The backend chat agent's product-info tool (get_omi_product_info_tool) recursively reads docs/doc content from GitHub, and the corpus had no macOS desktop user guide, so mobile/wearable chat could not answer desktop how-to questions such as enabling Only Meetings. This page mirrors the product guide shipped inside the Mac app (ProductKnowledge resources, #21081) and is registered in docs.json Get Started. * chore: consolidate changelog for v0.12.466 * fix(dream): tolerate invalid plan items and bound failed-record retries (#21154) * fix(dream): retain valid plan items and bound failed-record retries * perf(dream): reuse static fields for validation diagnostics * feat(app): phone battery sample v2 — self-contained intervals + schema delivery fix (#21152) * feat(app): phone battery sample v2 — self-contained drain intervals * fix(app): reject clock-corrupted phone battery intervals * fix(app): suspend-inclusive monotonic reference for Android battery intervals * feat(app): pendant audio-loss integrity — unresolved outages + per-day provenance (#21151) * feat(app): credible audio-loss accounting — persist unresolved outages, per-day provenance * fix(app): fence durable audio evidence and reconcile daily outage exposure * fix(app): rekey OmiDeviceHealthStore pbxproj entries to unique UUIDs * test(app): gate depends_on_21152 delivery tests out of shared CI runs * fix(app): buffer BLE outage writes when SharedPreferences binding is absent * test(app): enable depends_on_21152 delivery tests after #21152 merge * fix(dream): repair titles and protect multilingual feedback (#21160) * fix(dream): repair conversation headings and protect multilingual feedback * test(dream): account for explicit empty summary headers in queue excerpts * fix(dream): enforce deterministic summary and feedback guardrails (#21161) * fix(dream): enforce deterministic summary and feedback guardrails Failure-Class: FC-generated-presentation-contract-bypass * fix(dream): withhold feedback until privacy checks settle Failure-Class: FC-generated-presentation-contract-bypass * fix(dream): drop non-failure feedback deterministically Failure-Class: FC-generated-presentation-contract-bypass * fix(dream): guard task evidence, spelling targets and vocabulary noise (#21164) * fix(dream): guard task evidence, spelling targets and vocabulary noise * fix(dream): narrow validated task timestamps for type checking * fix: clip embeddings gateway inputs that OpenAI rejects with 400 Sync backfill posted raw transcript batches to /v1/embeddings. Empty strings, NUL bytes, and over-long inputs make the gateway return 400, which httpx raises from _models.py:829. Co-authored-by: Cursor <[email protected]> * fix: drop redundant str check in embeddings batching Pyright rejects the isinstance guard because the batch items are already strings. Co-authored-by: Cursor <[email protected]> * feat(backend): switch the dream agent to on for the owner allowlist (#21171) Owner-authorized promotion from shadow to on. Adds REVIEW_SURFACE_MODE=on on backend-sync, where passes run, because mode=on admission requires it. Canary leases stay forced to shadow. Co-authored-by: Claude Opus 5.5 <[email protected]> * feat(backend): name identified people in general conversation titles (#3602) (#20646) * feat(backend): name identified people in general conversation titles (#3602) Notes v2 already binds speaker clusters to people through hard evidence (voice profile / tagged person), but the general (non-meeting) notes path never asked for those names in the title and never said which bound name is the account owner, so titles rarely named who the conversation was with. - SpeakerMap: the cluster->name map now also records the owner's clusters and words spoken per cluster. It stays a plain mapping for every caller and the rendered spk lines (shared prefix bytes) are unchanged. - ConversationPromptPrefix.title_people / owner_names: non-owner people who said at least 10% of the words, most-spoken first, plus the owner's name. A bare mapping (owner unknown) names nobody. Rich meeting notes keep their roster rules and get neither. - utils/llm/conversation_title_people.py: a static TITLE block inserted before the parser schema (cacheable, general path only, same pattern as rich_static_instructions) and a volatile PEOPLE IN THIS CONVERSATION block: name the one or two central people, never the account owner, never an unlisted or invented name. - Presentation contract: a title that names none of the identified people is led by them ("Sarah Chen: Q2 Budget Review"), language-neutral, at most two names within 70 characters, never inventing a title or a name. Each repair is counted on omi_conversation_note_presentation_total (static_repair / title_people_lead). * test(backend): preload conversation_title_people in isolated conversation_processing loads test_conversation_structure_timezone and test_action_item_date_validation stub utils.llm as an empty package and load each pure helper that conversation_processing imports from its file. The new title module was missing from that list, so both files failed at collection in CI. * feat(backend): name title people only from scoped voice and tag bindings Review follow-ups for #3602: - SpeakerMap now carries per (speaker_id_scope, speaker_id) cluster evidence. Merged transcripts reuse ids across scopes, so an id whose clusters disagree about who is speaking (two people, or a person and the owner) names nobody. The rendered spk lines are unchanged. - Title people come only from voice/tag bindings, never from a calendar name bound by elimination, so a guessed owner cluster cannot be named. - Names in Thai, kana, CJK and Hangul match without word boundaries, a Latin name next to an unspaced script still matches, and a surname of three or more characters counts as a mention. - Names are stripped before comparison and before leading a title, and MAX_LED_TITLE_CHARACTERS is renamed TWO_NAME_LEAD_MAX_CHARACTERS: it only decides when the second name is dropped. * feat(backend): keep the owner out of titles without a voice match Second review round for #3602: - The owner line comes from the real profile name whenever one exists, with or without an is_user cluster, and a person record matching the owner's name or first name is treated as the owner. - Talk share is speech time (word count only when no segment has a duration), so names in unspaced scripts reach the share threshold. - Inflected mentions (Peters, Сарой, Anną) count as naming the person; titles and names are NFC-normalized and curly apostrophes match. - A conflicting speaker id is dropped on its own instead of silencing the whole conversation, and a person named like a speaker placeholder is never a title person. - The note presentation contract label is now v2: the title lead adds a static repair reason. * feat(backend): a bare name stem is not a mention of the person The inflection rule matched a name's stem with an empty suffix, so "and" counted as naming Andy, "the" as Theo and "Joe" as Joel, and the title was never led. Inflected forms now need a real suffix: a name plus up to four letters, or, for a name ending in a vowel, its stem plus up to four. Tests pin the bare-stem negatives, zero speech time for negative or untimed segments, and that the owner's name stays out of the static prompt. * feat(backend): keep title names one line, from real talk, and free of what presentation strips - A conversation with no speech time and no words names nobody: a share of nothing is no evidence of who spoke. - Person and owner names reach the prompt as one line of plain text, so a stored name with a line break or control character cannot add a prompt line. - The title lead skips a name holding a speaker placeholder or a transcript ID: it runs after presentation sanitization and must not bring either back. - Pin the two-name lead to exactly TWO_NAME_LEAD_MAX_CHARACTERS. * feat(backend): keep model titles that already name people A title that already names any of the identified people is kept as written, however many it names. The prompt asks for the one or two most central people, and it stays the control for how many names appear: a deterministic repair cannot remove names from the model's prose without rewriting it, replacing the title loses its topic, and the name matcher's inflection rule reads ordinary words as names ("Annual" for Anna, "General" for Gene), so a count would rewrite titles that name no one extra. The repair still leads a title that names nobody. Tests pin that titles naming three listed people, and titles whose words only look like names, come back unchanged, and that a title naming nobody is still led. The test pinning the two-name threshold is renamed to say what it asserts. * test(backend): pin the general-path TITLE prompt bytes in the flag-off fixture Review asked for the flag-off fixture to carry the general-path prompt with its TITLE block. The previous commit built that expectation from the production helper, so a change to the TITLE wording would still pass. The fixture now has a general_static entry holding the literal general-path static prompt, TITLE block included, and test_actual_flag_off_request_uses_pinned_prompts compares the real request against it. legacy_static stays pinned to main's base bytes, and test_flag_off_prompt_bytes_pinned_to_base checks that general_static is legacy_static with only the TITLE block inserted before the schema. * fix(backend): normalize title identities in the shaped notes writer Normalize owner and tagged-person identities to NFC before casefolding and combining scoped talk shares. Keep display spellings unchanged, and cover owner exclusion through the real speaker map, prompt builder, and notes writer. Port the reviewed title prompt and deterministic lead to current shaped-only notes after rebasing upstream, preserving general-only behavior and the one-turn model budget. Failure-Class: none * feat: remove carried-speaker banner and keep inline correction * feat: limit capture storage banner to disk admission failures * feat: remove home header sync button * chore: add banner cleanup mobile changelog * docs(desktop): track the Silence Notifications setting UI evidence Main's UI-evidence check needs a tracked screenshot for changed UI source. Copy the existing settings screenshot from the docs-assets branch unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: keep owner and Omi labels out of inline correction * fix: limit live speaker correction buttons to turn starts * chore: include banner cleanup in both mobile store notes * feat(dream): require Review for risky agent edits (#21176) * feat(dream): require Review for risky agent edits * refactor(dream): share typed entity evidence reads * test(dream): exercise a guarded spelling proposal in transport fixture * feat(review): version agent proposal wire contract for released clients * docs(review): declare v2 route authentication and rate limits * chore(api): regenerate TypeScript clients for Review v2 * chore(api): regenerate Swift operations for Review v2 * test(dream): fence tiered writers in shadow sweep regression * fix: attribute live speaker budget blocks and schedule voices fairly * chore: consolidate changelog for v0.12.467 * test: exercise profile retries through the coalescing speaker queue * fix(messaging): restore Linq replies and release failed turns (#21172) * fix(messaging): repair Linq send envelope and failed turn cleanup * fix(messaging): initialize failure sink before worker handling * fix(messaging): fence cancelled executor work during cleanup * fix(messaging): log cancelled worker fencing * fix(messaging): match fixture provider host exactly * fix(messaging): preserve delivered replies and drain typed fallbacks * fix(messaging): release settled turn failures without sticking the chat A finished turn that raised CancelledError, and a failed deferred reentry, kept the surface lease after the work had unwound, so the next message could not run. Retain the lease only while the worker task is still cancelling, and fence a failed deferred reentry with an event so a retry does not run the turn again. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * feat(app): show Dream suggestions in Review with Apply / Dismiss (#21183) * feat(dream): require Review for risky agent edits * refactor(dream): share typed entity evidence reads * test(dream): exercise a guarded spelling proposal in transport fixture * feat(review): version agent proposal wire contract for released clients * docs(review): declare v2 route authentication and rate limits * chore(api): regenerate TypeScript clients for Review v2 * chore(api): regenerate Swift operations for Review v2 * test(dream): fence tiered writers in shadow sweep regression * feat(app): show Dream suggestions in Review with Apply and Dismiss Review now reads the v2 queue, which adds Dream's agent_proposal items: closing or retiring tasks, merging people or memories, and memory or entity-summary edits that need the owner's consent. Cards show the question and Dream's reason; the sheet shows current vs suggested text. A 409 means the evidence changed, so the item stays gone with a clear message. Ten new strings in all 49 locales via scripts/l10n.py. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(app): changelog fragment for Dream suggestions in Review Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(debug-logs): serialize DebugLogManager appends to prevent interleaved lines (#21178) * fix(diagnostics): include error detail and stack in RingStorageSync failure log (#21180) * fix(sync): emit reconcile_completed_empty telemetry for empty job completions (#21182) * fix(debug-logs): serialize DebugLogManager appends to prevent interleaved lines * fix(sync): emit reconcile_completed_empty telemetry for empty job completions * fix: preserve coalesced ranges and serialize numeric speaker work * chore: consolidate changelog for v1.0.561 * test: retain the real speaker queue in teaching persistence coverage * fix: stop channel settings test pinning a wall-clock date The UTC+14 CI shard rolled to Oct 11 before the fixture's Oct 10 date could render as 'Connected Oct 10, 2026' in its own local midnight window. Assert the sentence shape (textContaining 'Connected') instead of a hardcoded formatted date, matching how the product renders linkedAt via OmiDateFormat. * perf(ci): compile generated Swift PRs and scope Siri advisory (#21186) * perf(ci): compile generated Swift PRs and scope Siri advisory * docs(ci): mark desktop CI changes as internal * test(ci): keep generated notification DTOs on compile-only PR lane * fix(channels): order replies, scope Undo, and anchor reminders to message time (#21175) * fix(channels): keep chat responsive and scope undo to action receipts Failure-Class: new * refactor(channels): load surface prompts at the shared mount boundary * refactor(channels): make lease and receipt state contracts explicit * fix(channels): preserve revocation and bound receipt retention Failure-Class: new * fix(channels): admit replies FIFO and anchor reminders to message time Failure-Class: new * refactor(channels): keep inbox index requirements in their owning module Failure-Class: new * fix(channels): preserve Telegram provider message timestamps Failure-Class: new * refactor(channels): narrow settled lease state after merge * fix(channels): bound provider clocks and stop lease-miss wake spins Linq reminders used processing time, and a busy surface lease requeued the inbox head and woke it again. Provider stamps are now bounded, a past relative reminder stays a missed phone reminder, and channel memory search uses the same empty-result wording as memory reads. Failure-Class: new Co-authored-by: Cursor <[email protected]> * fix(channels): accept only real ints for relative reminders The annotated isinstance check failed pyright and blocked the push. Runtime still rejects bools and non-integers from the model. Failure-Class: new Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.468 * test(desktop): await the decided outcome in notification speech race tests The race tests inferred the outcome from isSpeaking after twenty yields. The playback service now reports where an audience-gated one-shot ended up (played, fell back to the system voice, withheld, or dropped as stale) at the point it is decided, and the tests await that. New cases cover a player failure whose fallback is re-checked, a stopped synthesis that finishes late, and a private room that still hears the notification. Only audience-gated one-shots report; other speech is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(hygiene): exclude vendored tokenizer vocabulary from deferred-work markers (#21153) A false positive surfaced by #20746, which vendors a BERT WordPiece vocabulary as part of an on-device router. Line 20579 is the token "hack", between "##illy" and "plaintiff", and the check read it as deferred work: FAIL: new deferred-work markers must reference a tracking issue (#123 or URL). - app/android/app/src/main/assets/vocab.txt:20579: hack Why it happens: comment_fragment() treats a line whose first word matches MARKER_RE as a comment fragment even with no comment syntax. That is deliberate for a line that is just "TODO", but in a 30,522-row data file a bare token that happens to start with a marker word is data, not a comment. Exactly one line of 30,522 is affected. Why the fix is an exclusion rather than a change to the PR: the file cannot be edited. Its line index is the token id, so removing or reordering a row silently renumbers every token after it and changes what the tokenizer produces. Editing the vendored asset to satisfy a linter would trade a false positive for a real correctness bug. This restores behaviour the check already documents -- --raw exists precisely so that generated and vendored files are excluded by default, and the exclusion set simply had no entry for vendored plain-text data. A glob over src/main/assets would generalise further; a specific path is narrower and easier to review, so this takes the narrow one and leaves the call to @Git-on-my-level. Verified by running the real script, both directions: before: FAIL app/android/app/src/main/assets/vocab.txt:20579: hack after: OK and the check is not weakened -- a "// HACK:" and a "// TODO:" with no issue reference in normal source are both still flagged, while "// TODO: ... (#123)" is still accepted. Co-authored-by: palontologist <[email protected]> * fix(backend): drop a conversation's task search vectors when a cascade delete removes them (#15950) Isolate the Pinecone batch deletion in a try/except block and run reminder cancellation before vector cleanup to guarantee that vector failures do not abort the delete or skip cancelling task reminders. Co-authored-by: kduailabs <[email protected]> * fix: recover exhausted speaker voices from bounded fresh PCM * fix: preserve fresh audio watermark across ring replacement * docs: clarify recovery proof lifecycle and type audio helpers * test: patch WAV encoding at its owning speaker audio module * fix(sync): bound mobile job polls, follow active content owners, stop mislabeling edge throttles (#21206) * fix(sync): bound mobile job polls and follow active content owners Failure-Class: new * fix(sync): recover expired owners and requeue retained phone audio Failure-Class: FC-event-wakes-bypass-request-cadence * fix(sync): generate declared owner and poll hint response decoders Declare additive sync conflict and status cadence fields in OpenAPI and regenerate the app wire contract. Decode conflict responses and project status metadata through generated types, retaining compatibility with omitted optional fields. Failure-Class: FC-event-wakes-bypass-request-cadence * fix(sync): advance replay clocks through job poll deadlines Keep terminal-state and retry-budget assertions intact while making replay time match the bounded polling contract. Reset shared test state and prove immediate restored-job admission, deferred upload hints, and singleton isolation. Failure-Class: FC-event-wakes-bypass-request-cadence * test(desktop): compare PTT and card surfaces like with like in notch sizing test testHoldingPushToTalkAgainstAMountedCardKeepsTheCardSurface compared the exact PTT surface size plus glow outsets with the mounted card's window frame. AppKit snaps window frames to whole points, so on a display with a fractional notch inset (37.5pt) the card's 197.5pt request lands as a 198pt frame and the assertion fails by 0.5pt, while the panel itself never shrinks. Compare the PTT surface with the card's own surface size instead; the check still fails when the PTT surface drops the mounted card. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: reserve fresh recovery phrases and enforce tranche allowance * refactor: keep matcher within the existing size ratchet * fix(ios): memories fetch 503/429 no longer reported as fatal — retry + graceful degradation (#21226) * fix(ios): memories fetch failures are recoverable — retry with backoff, non-fatal reporting * fix(ios): bound memories retries by caller deadline and cancel on disposal * fix: make owner recognition refusals attributable * test: await queue matcher completions before asserting owner recovery * feat(macos): continue MCP marketplace installs into connection setup (#20962) * feat(macos): continue marketplace installs into connection setup * test(macos): record marketplace setup and large-text evidence * fix(macos): refresh committed installs after setup dismissal * test(macos): record clean-head marketplace replay * fix(backend): memories fetch resilience — bounded retry, admission cap, structured 503 telemetry (#21227) * fix(backend): memories fetch resilience — bounded retry, structured 503 telemetry * fix(backend): cap memories retry admission and preserve probe state * fix: gate every memory read attempt through global admission * feat(backend): route Dream spelling fixes to Review until they are grounded (#21232) * feat(backend): route Dream spelling fixes to Review until they are grounded Prod Dream passes no longer auto-apply spelling edits; they become Review suggestions. Titles, overviews and vocabulary still auto-apply. Spelling returns to auto once the agent must cite supporting context. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(backend): allow the Dream auto-apply override in the prod env contract Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> * docs(backend): C025 runbook — regionalize syncing-local to us-central1 Cost ledger card C025: prod syncing-local is multi-region, paying replication for <=8-minute staging blobs (+$46/day WoW). Runbook covers replacement bucket provisioning, intake pause + job drain (queued raw audio can outlive 8 min), 15-min signed-URL cache waitout, env flip in all four chart values, rollback, and old-bucket deletion gates. * fix: bound diagnostic writes and update observation regression guards * fix: narrow optional observer in diagnostic flush * perf(memory): hydrate graph references instead of scanning the corpus C008 cut 1+2: KG traversal hydration now reads only distinct edge-referenced memory IDs in 500-doc batches (existing authoritative by-ID seam) instead of two full memory_items corpus streams. 18k-doc scan -> 6 point reads in test. Eligibility recheck, citation-time privacy check, probe labels preserved. Privacy-critical exhaustive scans deliberately left unbounded (see report). * test(memory): keep scan-guard test under the 0.30s timing guard 18k-item corpus reproduced the prod-scale scan but ran 0.33s against test.sh's 0.30s per-test budget; 1.5k preserves the property (scan would still enumerate the corpus; by-ID path reads 6 docs). * test(memory): shrink batching test to 550 IDs under the timing guard Batching/dup property preserved (500+50, dedupe before batching); the implementation dedupes requested IDs first, so expected batches update to [500, 50]. * test: isolate memory read admission between hermetic e2e cases * fix(backend): per-UID ceiling on sync job status polling C024: prod poll volume stepped to 40M req/day (85% this route). Cap = 40 polls/UID/20s via existing atomic Redis reservation, independent of RATE_LIMIT_BOOST; 429 + Retry-After: 20 before job lookup; fail-open on Redis outage with fallback telemetry; two counters added. Shipped Dart poller cadence (<=18 req/min/instance) never hits the cap. * test: cover diagnostics exemption and isolate synthetic cursor admission * test: exhaust hydration budget after read admission * chore: consolidate changelog for v0.12.469 * fix(app): fully-charged notification — require on-charger dwell + fresh battery reading (#21233) * fix(app): fully-charged notification requires on-charger dwell and fresh battery reading A cached 100% from before plug-in was enough to fire the fully-charged notification on the charging edge. Require a continuous on-charger dwell and a battery sample timestamped after that edge. Co-authored-by: Cursor <[email protected]> * chore(app): add changelog fragment for the fully-charged notification fix Co-authored-by: Cursor <[email protected]> * fix(app): scope fully-charged alerts per device and dwell on monotonic time A provider-wide alert flag suppressed the next pendant, and wall-clock dwell could be skipped by moving the phone clock. Mismatch logging now waits until the notification permission check has passed. Co-authored-by: Cursor <[email protected]> * fix(app): keep device provider under the line-count ratchet The fully-charged presentation path had pushed the file past 1500 lines. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * test(memory): isolate the cursor suite from the shared read-admission allowance #21227's process-wide RetryAllowance (8 tokens, 1/s refill) exhausts deterministically when the cursor suite pages thousands of rows in under a second. Fresh allowance per test + burst 64 via the existing env knob. * fix(backend): first read admission gates on time headroom, not document headroom #21227 regression: with an exhausted ListReadBudget document allowance (max_documents spent), _headroom returns 0.0 and first-attempt admission raises 503 Memory read admission exhausted — but an exhausted document budget is a normal truncated page in the list-budget contract (the charge path flags budget.truncated downstream). Restores truncated-page behavior; the retry path keeps the full budget-aware headroom check. * test(e2e): isolate the hermetic harness from the shared read-admission allowance Same mechanism as the cursor suite: 113 in-process tests exhaust the 8-token process-wide RetryAllowance and shed legitimate bursts as 503 Memory read admission exhausted. Burst 64 + fresh allowance in the e2e conftest; full harness green locally (126 passed, 3 skipped, 2 xfailed). * feat: expose deterministic Dream summary eligibility (#21236) * docs(backend): close the review blockers in the C025 cutover runbook Grok review (read-only) found two blockers in the no-copy drain: Firestore sync_backfill_pending docs carry raw_blob_paths and survive a Cloud Tasks + Redis drain (expire as sync_staged_audio_expired post-flip); failed/partial backfill jobs keep staged blobs and recover_dev_failed_sync_backfill.py resolves paths against the current bucket env. Runbook now requires the sequencer queue drained + recoverable failed/partial jobs finished or copied before the flip, accounts chat voice-message staging in the URL-cache clock, and documents the backfill clone-order hazard. * Fix closed-generation diagnostic persistence and log kinds * feat: chat edit receipts with undo, and h.omi.me item links (#21234) * feat(app): render chat edit receipts with undo Decode the new `editReceipt` chat content block (camelCase and snake_case) and render it as a chip in the memory/task family: an existing icon per kind, the summary, a tap that opens the conversation, memory, task or person, and a compact Undo while the server allows it. Undo calls POST /v1/chat/receipts/{id}/undo, treats already_undone as success, and reports failure through OmiFeedback. Unknown kinds keep their summary and undo but have no destination. Also parse h.omi.me singular item links (conversation/task/memory) into the Home routes that already open them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: open h.omi.me item links in the app, content-free web fallback https://h.omi.me/conversation/<id>, /task/<id> and /memory/<id> (singular; the plural /conversations/ and /tasks/ public share pages are unchanged): - iOS AASA and Android app-link intent filters claim the three paths, and the Flutter link handler routes them into Home. - Without the app, h.omi.me serves a minimal Omi page: "Open in the Omi App", App Store / Google Play, and a web sign-in handoff. It never reads the item; preview metadata is generic Omi only and noindex. - web/app login honours a same-origin `next` (and protected pages pass it), so the handoff lands on /conversations?id=<id> (tasks and memories land on their list pages; web/app has no single-item routes for them). Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: UI evidence for edit receipts and item-link fallback; absolute title The fallback page's title is now exactly "Omi" (the root template made it "Omi | Omi"). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(app): treat refused receipt undo as terminal Match the backend undo contract: `unavailable` (window closed or ambiguous inverse), 404 and 409 report the failure and remove Undo instead of showing a false "Undone" or inviting a retry that cannot succeed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(app): changelog entry for chat edit receipts and item links Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): keep a refused receipt undo from coming back A rebuild from the original message dropped the terminal undo state, and the caption row overflowed once text scale grew past the fixed 32px line. Co-authored-by: Cursor <[email protected]> * fix(web): reject sign-in return paths that normalize off-site `/.//evil.example` and a percent-encoded double slash passed the prefix check and became a protocol-relative URL after the browser parsed them. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Cursor <[email protected]> * feat(chat): rich channel replies and shared edit receipts (#21240) * feat(chat): publish shared edit receipt and owner undo contract * feat(chat): render channel markdown and share audited edit tools * docs(chat): clarify client integration and memory undo limits * fix(chat): sanitize task snapshot failures before writes * fix(memory): distinguish canonical audit keys in source inventory * fix(chat): type shared edits and verify injected tool config * fix(chat): align receipt summaries with native UI cards * fix(chat): fence edits and persist undo in message history * test(chat): cover receipt lookup query and record UI integration * fix(chat): keep receipt message queries at database authority * fix(chat): preserve protected notes across repeated corrections * fix(chat): decode correction notes in manual speaker responses * fix(chat): drop unsafe channel links and leftover citation markers Fullwidth and footnote markers were still delivered, and non-https destinations survived as text or hrefs. Record the desktop proxy and non-ledger memory undo limits that are not contained fixes. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> * chore: consolidate changelog for v0.12.470 * fix(ci): rebalance backend unit shards and synchronize fairness test (#21259) * Retrieve bounded Dream neighbourhoods with target and context roles (#21237) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * test: migrate Dream canary and report retrieval fixtures * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): initialize the per-pass control cache before dispatch * test(dream): migrate report fixtures to cached reads * test(dream): validate Typesense bindings and preserve upstream app bytes * fix(ci): distribute the growing backend suite across six shards * chore(ci): refresh measured six-shard runner cost forecast * chore(ci): record measured fanout cost in aggregate forecast caps * fix(ci): run metadata preflight for Dream stack bases * chore(dream): extract shared CI changes into standalone PR * fix(dream): reclaim unused context budget and diagnose retrieval (#21263) * fix(dream): reclaim unused context capacity and report retrieval paths * fix(dream): type diagnostics and keep vector availability checks local * fix(dream): bound reclaimed targets and retain unavailable queue liveness * fix(dream): settle permanent misses and bound transient retries and reads * fix(dream): retain user-authored titles in retrieval queries * chore: consolidate changelog for v0.12.471 * fix(dream): run ordinary-text search and retrieve non-target neighbours (#21275) * fix(dream): search ordinary speech and exclude temporal targets * fix(dream): exclude pending targets and bound query matching * fix(dream): read section evidence and reserve a context slice * test(dream): bind verified reader and stop redundant budget probes * perf(dream): avoid duplicate triage and schema sizing * fix(dream): expire unreadable speech and inspect oldest available refs * fix: restore live matcher FIFO scheduling and query cadence * Require independent support for Dream spelling auto-apply (#21238) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * feat: require independent support for Dream spelling auto-apply * harden: type Dream dry-run diagnostic fields * test: ground the synthetic Dream transport spelling fixture * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * test: inject synthetic turns into Dream edit-budget regression * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): prevent vocabulary laundering and preserve capped questions * fix(dream): initialize the per-pass control cache before dispatch * test(dream): migrate report fixtures to cached reads * test(dream): use authored vocabulary and cached report fixtures * fix(dream): require resolvable independent support chains * test(dream): validate Typesense bindings and preserve upstream app bytes * test(dream): make legacy agent support explicitly user authored * fix(dream): defer capped spelling targets until UTC reset * test(dream): witness deferred completion query branches * fix(ci): distribute the growing backend suite across six shards * chore(ci): refresh measured six-shard runner cost forecast * chore(ci): record measured fanout cost in aggregate forecast caps * fix(ci): run metadata preflight for Dream stack bases * chore(dream): extract shared CI changes into standalone PR * Sample older Dream cleanup targets with relevance and review cooldowns (#21239) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * feat: require independent support for Dream spelling auto-apply * harden: type Dream dry-run diagnostic fields * feat: seed bounded older Dream cleanup with review cooldowns * test: ground the synthetic Dream transport spelling fixture * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * test: isolate Dream report backfill and review metadata * harden: count dirty Dream targets in source diagnostics * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: bootstrap legacy Dream cleanup and bound cooldown reads * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * test: inject synthetic turns into Dream edit-budget regression * test: inject synthetic turns into Dream edit-budget regression * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): prevent vocabulary laundering and preserve capped questions * fix(dream): initialize the per-pass control cache before dispatch * fix(dream): bound idle cleanup admission and historical sampling * test(dream): migrate report fixtures to cached reads * test(dream): use authored vocabulary and cached report fixtures * fix(dream): return idle without run history and update admission fixtures * fix(dream): require resolvable independent support chains * test(dream): validate Typesense bindings and preserve upstream app bytes * test(dream): make legacy agent support explicitly user authored * test(dream): supply dirty versions to legacy admission fixtures * fix(dream): defer capped spelling targets until UTC reset * fix(dream): sample real record ID spaces and honor seed deferrals * test(dream): witness deferred completion query branches * fix(ci): distribute the growing backend suite across six shards * chore(ci): refresh measured six-shard runner cost forecast * chore(ci): record measured fanout cost in aggregate forecast caps * fix(ci): run metadata preflight for Dream stack bases * test(ci): await completed speaker matches in fairness regression * chore(dream): extract shared CI changes into standalone PR * chore(dream): move speaker fairness regression fix to CI PR * chore: consolidate changelog for v0.12.472 * Schedule Dream fairly within shared reserved background capacity (#21241) * feat: expose deterministic Dream summary eligibility * feat: retrieve bounded Dream target neighbourhoods * feat: require independent support for Dream spelling auto-apply * harden: type Dream dry-run diagnostic fields * feat: seed bounded older Dream cleanup with review cooldowns * test: ground the synthetic Dream transport spelling fixture * feat: schedule Dream fairly within reserved background capacity * test: migrate Dream canary and report retrieval fixtures * test: exercise full Dream fixtures through reserved admission * test: migrate Dream canary and report retrieval fixtures * test: migrate Dream canary and report retrieval fixtures * test: isolate Dream report backfill and review metadata * test: isolate manual Dream report from stochastic backfill * harden: count dirty Dream targets in source diagnostics * harden: retain dirty source counts through scheduling * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * harden: enforce Dream context and speech admission contracts * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: wire Dream retrieval providers and isolate embedding work * fix: wire Dream retrieval providers and isolate embedding work * fix: retain actionable Dream spelling answers and canonical provenance * fix: retain actionable Dream spelling answers and canonical provenance * fix: bootstrap legacy Dream cleanup and bound cooldown reads * fix: bootstrap legacy Dream cleanup and bound cooldown reads * fix: report Dream capacity waits as retryable manual responses * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: refresh Dream subscription priority and release declined slots * fix: atomically admit new Dream spelling cards without wasting edit budget * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * fix: retrieve nearest Dream context without photos and preserve vocabulary matches * test: inject synthetic turns into Dream edit-budget regression * test: inject synthetic turns into Dream edit-budget regression * test: inject synthetic turns into Dream edit-budget regression * harden: project only current plan fields for Dream scheduling * fix(dream): deduplicate context reads and tolerate unavailable search * fix(dream): prevent vocabulary laundering and preserve capped questions * fix(dream): initialize the per-pass control cache before dispatch * fix(dream): bound idle cleanup admission and historical sampling * test(dream): migrate report fixtures to cached reads * test(dream): use authored vocabulary and cached report fixtures * fix(dream): return idle without run history and update admission fixtures * fix(dream): require resolvable independent support chains * fix(d…
…23466) ## Problem and behavior The pendant tutorial's question step can wait forever even when the voice endpoint answered: it watches the main chat list, but pendant replies correctly stay out of an open past/persona/fresh chat. Unrelated AI messages can instead complete the step. Busy/quota, codec, file-save, transport, timeout and incomplete responses also lack a terminal tutorial outcome. No-speech handling can additionally wait indefinitely for a Bluetooth failure vibration. Return this request's typed answer/failure through the existing MessageProvider → production external-actions adapter → capture → tutorial pipeline. The question/answer displays independently of chat selection, failures return to a localized press/retry prompt, and raw ignored/overlapping presses cannot invent a Listening session. Step/attempt guards reject results after exit/restart. The voice response stream has a total deadline so heartbeats cannot strand it. Best-effort failure vibration cannot block completion or retry. Refs #23385. Keep the customer incident open for validation on the released app. Related diagnostic-only report: #23384; a shared customer does not establish a shared cause. Earlier tutorial fixes #20806, #21069 and #20805 are already on main; they do not cover these gaps. Their store release has not been independently verified here. ## Review follow-up (2026-10-24) - **The voice deadline no longer waits for upstream cleanup.** `_voiceReplyWithDeadline` awaited `StreamIterator.cancel` in its `finally`. The production stream is an async-generator chain over the HTTP body, so with a stalled body the cancel waited for the next chunk, and the tutorial question stayed busy past its timeout. The deadline now completes an abort that `sendVoiceMessageStreamServer` passes into `makeMultipartStreamingApiCall`'s existing abortable-request trigger. It settles immediately without awaiting the cancel and reads nothing the request produces afterwards. - Regressions in `message_provider_voice_deadline_test.dart`, using the real `MessageProvider`, `sendVoiceMessageStreamServer` and `makeMultipartStreamingApiCall` with a synthetic transport: a stalled body settles within the bound, the request's abort trigger fires, and late output is not shown (fails with the awaited cancel restored). Stalled headers also settle, and the next question is admitted rather than dropped as busy. - Evidence on `c5849dbc52`: the new deadline tests, the existing MessageProvider voice tests and the tutorial question flow pass (27 tests); analyzer ratchet passed. No simulator or hardware run for this change; no live provider. ## Verification and risk **Current-head readiness checked 2026-10-25:** required Mobile Release Eligibility and all applicable remote checks pass on `c5849dbc527e5a47177d50814dfdc6043f284254`. The historical wider local run and its Limitless timing failure are retained below for transparency; it is not claimed as a full-suite pass. - Targeted production-provider/widget flow with synthetic voice input: `cd app && flutter test test/widgets/pendant_tutorial_question_flow_test.dart` (main/past/persona/fresh chat; no speech; quota/busy; file/codec/network failure; incomplete/deadline; retry; unrelated traffic; stale response; auto-submit). - **49 targeted checks passed**, including the tutorial provider/revisit/button-controller, voice-message suites and a held-Bluetooth-haptic recovery regression (`97e8215a38`). - **iOS simulator functional flow verified** on a dedicated iPhone 16 Pro / iOS 26.5 simulator through agent-flutter: press/listen/submit, own question+answer, Continue, no-speech, connection failure, retry and automatic submission. A reused native debug host (without its data container) loaded the current Dart fixture by Flutter attach/hot restart; this is software integration evidence, not fresh native binary certification, physical BLE or live-provider acceptance. Reproduce with `flutter run --flavor dev -d <iOS-simulator> -t integration_test/pendant_tutorial_capture.dart` then agent-flutter. The automated integration entrypoint is `integration_test/pendant_tutorial_question_test.dart`. - **Analyzer ratchet passed; focused hermetic journeys passed 12/12; bounded pre-push/preflight and generated-output checks passed** on `97e8215a38d1fe5124ef3e216410503fa6f1f0fe`. The historical failure-class ratchet explicitly skipped for shallow history; full-history CI must enforce it. No check was bypassed. - The broader app run hit an unchanged Limitless wall-clock watchdog test (`limitless_golden_test.dart:901`); a focused rerun reproduced its missing late timer writes. Both test and production connector match pinned main exactly. The run was stopped at 4,628 passed / seven skipped / one failed after reproducing that failure; it is incomplete. This is disclosed, not waived or reported green. Exact-head remote CI subsequently passed, as recorded in the readiness update. Normal application outcome/state handling: no native BLE, firmware, recording custody, backend endpoint or authentication contract changes. Fixtures supply synthetic button/audio/codec and voice responses; they do not establish real radio delivery or Andrea's exact cause. A real pendant/customer retest on the released build remains incident follow-up. Keep existing recordings and settings; no reinstall/reset/recovery mutation is part of the fix. Remaining rollout after verification: merge and signed mobile app release. **No backend deployment required.** Failure-Class: new ## Product invariants affected - INV-CAP-1: voice-question result/admission handling does not change BLE subscription, WAL capture or durable audio custody. Existing live capture continues throughout the tutorial. UI-Evidence: none -- Existing layout retained. Dedicated iOS simulator functional verification and local before/answer/failure screenshots were inspected; synthetic fixture and reproducible entrypoint are documented above. No public screenshot attachment is claimed. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/23466?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23466?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23466&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-off-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-off-auto-fix-light.svg"><img alt="Turn off auto-fix" src="https://www.cubic.dev/buttons/turn-off-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. --> ## Maintainer readiness verification (2026-10-25) - Reviewed final source diff on `c5849dbc527e5a47177d50814dfdc6043f284254`; clean merge-tree against current main `225d7cef7a2eafdbab1c4bd25f81f945454d6d12`. - Fresh targeted run: `cd app && /opt/homebrew/share/flutter/bin/flutter test --no-pub --concurrency 1 --reporter expanded test/providers/message_provider_voice_deadline_test.dart test/providers/message_provider_voice_test.dart test/widgets/pendant_tutorial_question_flow_test.dart test/providers/omi_button_actions_controller_test.dart test/widgets/device_onboarding_question_revisit_test.dart` — 44 tests passed, including stalled headers/body, abort, ignored late output and admission of the next question. Synthetic transport, no live provider or physical BLE claim. - Required Mobile Release Eligibility passes. At readiness, remote checks show 27 successful, 18 appropriately skipped, none pending/failing. Dart analysis/tests, seeded journeys, Android compile/JVM/emulator, hygiene and formatting succeeded. Skipped iOS compile is not represented as a fresh iOS build; reuse the documented simulator evidence for the unchanged tutorial flow. - No backend runtime source changes; main backend automatic-deploy scope is a no-op for this PR. No release workflow, store rollout or deployment is requested or dispatched. A signed mobile release and customer confirmation remain separate follow-up; #23385 is referenced, not automatically closed.
TL;DR: In the pendant tutorial's "Ask Omi a Question" step, pressing once and waiting now works: when capture's 15 s voice-command timeout sends the question, the tutorial moves to "Processing…" and then shows Omi's answer with Continue, instead of staying on "Listening…" and ignoring the answer. Capture tells the tutorial about the timeout submission, the same transition the second press makes. Mobile only, no backend change, no new copy. Simulator before/after (real capture controller and its real 15 s timer) below. Closes #20786.
What changed and why
DeviceOnboardingProvidermarks the question as sent only on a second button press, andSinglePressStepignores chat until then.CaptureController._endVoiceCommandSession(autoSubmitted: true)(the 15 s timeout) submitted the question without telling the tutorial. It now calls the newDeviceOnboardingProvider.onQuestionAutoSubmitted(); that method only acts while the tutorial is active, on the question step, while listening, and does exactly what the second press does (voiceSessionActive = false,questionSent = true).Closes #20786
Product invariants affected
The 15s timeout path still submits the captured voice-command bytes. This change only tells the pendant tutorial that the existing auto-submit happened, so the step can leave "Listening…". It does not close, fence, or discard pendant audio.
How it was verified
flutter test test/providers/omi_button_actions_controller_test.dart: 14 passed. Without the capture call, the new test fails (voiceSessionActivestays true).flutter test test/services/capture/ test/providers/omi_button_actions_controller_test.dart test/providers/capture_provider_test.dart: 343 passed.CaptureProviderattached to the realDeviceOnboardingProvider, renders the realSinglePressStep, sends one pendant press and some audio, and waits for capture's real 15 s timer; a fake server answers in chat when the question is submitted.main(7d85fb5):submittedToServer=1 stillListening=true answerShown=false continueShown=falsesubmittedToServer=1 questionSent=true answerShown=true continueShown=trueLeft: one press, speaking. Middle:
mainafter the timeout (the question was sent and answered). Right: this branch.scripts/pr-preflight --base upstream/main --lane local: passed.make mobile-verify ARGS="fast --paths app/lib/services/capture/capture_controller.dart app/lib/providers/device_onboarding_provider.dart": 23/23 hermetic journeys passed.Tests
app/test/providers/omi_button_actions_controller_test.dart: "a tutorial question sent by the 15 s timeout moves the tutorial on (#20786)" drives the realCaptureProviderthrough one press, audio and a timeout-ended session, and asserts the question is submitted and the tutorial state advances.Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4077 -> 4078 | one call so a timeout-submitted question reaches the pendant tutorial (#20786)
Failure class (fixes)
Failure-Class: none
UI-Evidence: none -- simulator shots are already in this body on the contributor's pr-assets branch; this merge only keeps that logic beside main's empty-question recovery