Skip to content

fix(home): keep processing on today and route failed rows to Activity - #25024

Merged
Git-on-my-level merged 30 commits into
mainfrom
lane/processingtoday
Nov 11, 2026
Merged

Git-on-my-level merged 30 commits into
mainfrom
lane/processingtoday

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Home shows processing only on the current local day on mobile. Failed conversations stay off mobile Home, the web conversation gallery and macOS Conversations; Activity lists them with retry. Completion restores the normal conversation on its recorded day. Authority: David ff0427 item 4, relays 66d9fd / 9e09f1 / 714b03; prior renders approved by relay 718fe8.

The existing default-on HOME_STEP_PROJECTION switch confirms placement through enabled=true plus home_processing_today=true from pending-work. Missing/false fields, 404, failed reads and account changes restore the previous Home and pending consumers. Registry and pending-work contract cover every affected surface. Backend must ship before new clients can confirm placement.

Mobile applies the local recorded start day to grouped rows and local insertion, including captures crossing midnight. Open Home/Activity pages re-evaluate midnight, clock/timezone changes and resume. Home honors episode_id before the episode fetch, and ServerConversation parses/copies/caches episodeId. Activity merges pending, loaded, searched and episode failures, deduplicates ledger entries, redacts locked titles and retains retry after errors. Pending items optionally carry home_step to keep an expired today wait reachable. Classification deadlines and stored job state are unchanged. Pending reads three bounded single-field candidate sources (processing/merging, stamped transcription and summary debt); failed placement adds no further query.

Web uses an Activity tab inside /conversations; /home remains chat/tasks/goals. Native macOS uses its existing Memory hub Activity destination and excludes failed rows from its chronological spine to avoid duplicates. Web retry responses update list/search state and cache immediately, rejecting older in-flight reads, so completion survives refresh errors. All clients reuse existing conversation navigation and use general reprocess for legacy failed rows, fence duplicate retry requests and apply/refresh authoritative results. Web and native failures from loaded Home lists and searches retain Activity links across Home filters, and clear on completion, successful local deletion or account reset. Discovery remains bounded by loaded rows and the existing server window.

#25013 integration: wanted projection parsing/copying, list/detail/search reconciliation, terminal watcher stop, retry-response replacement and compatibility tests are retained. Its default failed-Home UI is dropped: confirmed failures appear only in Activity. The previous presentation remains available for kill-switch rollback. Integration order: #25037 reverted #25013 on main as d24d101; this branch then merged fresh main 35e63b5 in merge/re-land commit 474edfb. At that integration commit, the adapted #25013 source/test/changelog files exactly matched the pre-merge tested checkpoint 86b59df. There were no independent post-revert changes to those paths. Rejected Home screenshots were left removed. No landing-order dependency remains. No force push, PR merge or deploy by this agent.

Schema fix: main run 42812549326 failed test_inventory_openapi_route_response_decode_migration_complete after #25013 moved the generated search decode behind a Dart part helper. The API route now directly calls GeneratedSearchConversationsResponse.fromJson and passes the decoded result into the helper that preserves home_step. All 14 inventory tests pass again on the post-revert integrated tree; no assertion or allowlist is weakened.

Luna FIX-FIRST on 591c10f — fixed: macOS authoritative replacement now drops the previous failed Home projection when retry returns processing without home_step. Both replacement layers honor the incoming response; ordinary detail reads retain known failures and explicit failed projections remain failed. Regression covers failed stored/projected rows restarting as in-progress/processing/merging or completing, immediate removal from Activity-failed, Home admission and processing display. Mobile retry already clears its remembered failure id (detail retry opts out of retention); web list/search already replace whole objects and cache. New mobile/web regressions exercise omitted home_step, Activity removal, failed refresh and cache remount. No mobile/web production fix was necessary. Main was fetched; newer backend-only commits do not overlap this fix, so no additional merge was needed. Approved render PNGs are unchanged because no layout/copy/fixture changed.

Notes-only attention: cases 010/011/012 (relay-cl1 94a9ed / David 4ddd04)

Conversations whose notes failed while tasks/events were kept now appear once in Activity Needs attention on mobile, web and macOS. Re-run notes calls POST /v1/attention-items/{item_id}/retry, preserving the existing task/event models and destinations. Clients consume conversation_notes_failed_with_outputs; they do not infer eligibility from noise, overview absence or title provenance. Unknown kind strings remain readable without retry, even when retryable=true. Mobile bulk retry avoids the global endpoint when a non-legacy kind is present, so it cannot implicitly retry a displayed unknown kind.

Accepted in_progress/succeeded notes retries remove the item and suppress stale ledger/projected duplicates. 409, transport errors and failed-operation responses retain an error row. Busy state, account fences and read generations reject duplicate clicks and old callbacks; a genuinely new ledger generation or confirmed failed operation can surface again. The existing explicit pending-work confirmation gates new notes placement; off/missing/read failure keeps the rollback. Web/macOS also honor explicit server noise on Home without treating ordinary noise as Activity attention. No new flag, query, scheduler or history scan. Pipeline-driver's separate backend PR owns eligibility, discovery and notes-only side-effect isolation; this client change is safe before that kind ships.

Conflict resolution: merged main 7ebd845 (#25034) normally in 0bb9d47. home_step.py and the generated registry doc auto-merged. The feature-flags.yaml conflict keeps #25024's expanded HOME_STEP_PROJECTION entry and #25034's HOME_EMPTY_OUTPUT_NOISE entry exactly once, then regenerates the registry doc. #25034's overview OR section-body, banked receipt/live debt, curated-row and failure precedence guards remain intact, alongside today-only mobile processing and failed-only-on-Activity. Then merged fresh main 8a9f00b normally as c6013b4 after the addition commit 44d470e. This second merge was clean; no rebase or force push.

Addition-only non-test delta: +954 / -81 (1,035 changed lines across 119 non-test files; 205 added localization/generated lines) (excludes upstream merges, tests/e2e, UI evidence and render harness; includes source, config, docs and localizations/generated files). Verification: 181 focused Flutter tests, 112 native tests with PNG captures enabled, 190 affected backend tests and 14 schema-inventory tests pass; analyzer ratchet passes without baseline changes. Web typecheck, six smoke tests and all 1,054 Vitest tests pass. Integrated post-merge Home/pending-work/flag-budget/schema tests pass all 204 tests (190 + 14). Full preflight passes all 89 checks. The ONE normal full-hook push succeeded at 3840bee with the requested credential variables unset, OMI_PR_BODY_FILE, and BACKEND_UNIT_FILE_BUDGET_SECONDS=3600. All 89 shared checks, backend typecheck (zero errors), bounded backend units, OpenAPI compatibility, generated-client checks, Flutter generation/format checks and native Swift debug build passed. No force push or hook bypass.

Activity case Mobile Web macOS
010 mobile-ios case 010 web case 010 desktop-macos case 010
011 mobile-ios case 011 web case 011 desktop-macos case 011
012 mobile-ios case 012 web case 012 desktop-macos case 012

Luna FIX-FIRST at 3840bee: macOS retry idempotency

Fixed the missing Idempotency-Key on macOS attention-item retries. A per-item UUID lives in account-scoped memory, is reused after ambiguous transport errors, and is cleared after a confirmed operation (in_progress/succeeded/failed), a confirmed 409 not_retryable, or account reset. State-only 409 responses are recognized by the native HTTP error parser. Error rows remain reachable. Both notes-only and summary retries use the keyed endpoint. Mobile and web notes-only paths already send keys and retain ambiguous requests in memory; their existing API/store/hook tests were rerun. No UI, copy, fixtures or PNGs changed; the 3840bee render links below remain valid.

INV-AUTH-1: the bodyless POST helper keeps its existing owner-policy resolution, auth/BYOK header construction, owner validation and request execution. The new optional key only adds the Idempotency-Key header. Retry keys and late callbacks remain fenced by the ledger account session.

Validation for this follow-up: four new native HTTP/state regressions pass; the broader native run passed 185 tests with two render-only opt-in skips (187 executed). Mobile notes/pending-store tests pass 22/22; web attention API/hook tests pass 9/9. Desktop test-quality and diff checks pass. After removing forced unwraps from the HTTP fixture, the four new native regressions were reconfirmed and all 1,920 Swift files pass SwiftLint with zero violations. The remaining preflight checks passed; the full push hook reruns the complete manifest. One NDK installer process-group cleanup test flaked on this host, then passed in isolation (8/8) and the full rerun; its code is unchanged. Fresh fetch found no unseen feature-branch commits and GitHub reports MERGEABLE, so main was not merged. The ONE normal full-hook push succeeded at 6206927 (3840bee..6206927), with the requested credential variables unset, OMI_PR_BODY_FILE and BACKEND_UNIT_FILE_BUDGET_SECONDS=3600. All 90 selected shared preflight checks passed, followed by backend typecheck (zero errors), affected backend units, OpenAPI compatibility, Flutter generation/formatting and the native Swift debug build. No force, hook bypass or PR merge. GitHub confirms this head and reports MERGEABLE. CI checks show the current results.

Luna FIX-FIRST at 6206927 — web off-page retry reconciliation

Follow-up head: 51cbb86c011aeb6b79c13e6579e2fb7061220894. Hold: David’s render verdict is still required; do not merge.

Fixed. Conversation retries now acknowledge the account-scoped remembered-failure
cache directly when the authoritative response is non-failed, including processing
without home_step, or an explicit 409 {"state":"not_retryable"}. This works when
the conversation came from an earlier search and is absent from both current lists.
Old loaded object snapshots cannot immediately restore the cleared tile; a fresh
failure can be discovered again. Failed results, generic conflicts and transport
errors keep the failed tile and error. Kill-switch rollback keeps the old Home path.

The notes-only ledger calls the same reconciliation on accepted in-progress/succeeded
retries and explicit terminal conflicts. A terminal conflict clears its old projected
duplicate while the ledger item retains its error, as required by the attention
contract. Ambiguous errors keep their retry key; terminal acknowledgments clear it.
The HTTP error type preserves only the structured state needed to distinguish the
explicit terminal conflict from other 409 responses.

Mobile and macOS do not have the same successful-retry bug: mobile applies the result
to shared provider state even without a current list match; macOS Activity explicitly
remembers the authoritative replacement outside the repository's loaded query. Their
notes stores suppress accepted retries by conversation ID independent of loaded pages.
Added off-page regressions on both; no mobile/native production change was needed.
Existing notes acceptance, failure, deduplication and idempotency tests remain passing.

Validation: web type checking, six Bun smoke tests and 1,071 Vitest tests; 69 focused
Flutter tests; 70 native tests passed (72 executed, two opt-in PNG tests skipped).
New web coverage includes off-page processing/completed responses, explicit terminal
409, generic conflicts, failed/transport retries, notes-only acknowledgments and HTTP
state decoding. Full preflight passed all 90 checks (270.31s), including zero SwiftLint violations across 1,920 files. The one normal full-hook push succeeded (6206927cdf..51cbb86c01), with all 90 shared checks, backend type checking (0 errors), affected backend units, OpenAPI/generated Dart, Flutter generation/format and native debug build checks passing. No hooks were bypassed. CI for this head is tracked in the live PR checks; the render hold remains active. No layout, fixture or PNG changed; existing commit-pinned renders remain valid.
GitHub reported MERGEABLE after the fresh fetch, so main was not merged for this fix.
The PR remains unmerged and on hold for David's render verdict.

Failure-Class: new

The violated contract is reachable work with exactly one intended list placement. FC-home-processing-on-past-days records the shared local-day admission primitive and Home/Activity failure partition, with regression tests for midnight, rollback, episode ownership, completion, navigation and retry. Product invariants: INV-UI-1 / INV-UI-3 preserve existing components, Flutter localization and date formatting. INV-NAV-1 preserves one chat/composer and existing peer/detail navigation; the web Activity tab and native Activity section do not create a second chat.

Tuning: no pipeline capacity, concurrency, presentation-wait threshold or lifecycle-state changes. New flags: none. No CPU-guard adjustment. Source files remain under the repository line-count ratchet (existing grandfathered files checked normally).

Validation:

  • Notes-only attention addition on 3840bee: 181 focused Flutter tests, 112 native tests with renders enabled, 204 integrated backend tests, analyzer ratchet, web typecheck/six smoke/1,054 Vitest tests and all 89 preflight checks pass. All nine new Activity PNGs were inspected; one row per case with Re-run notes, no clipped text or missing fonts.
  • Luna retry follow-up: native tests passed (104 passed, one opt-in render skip), all 148 focused Flutter tests passed, and web typecheck + six smoke tests + 1,041 Vitest tests passed. make preflight passed all 88 checks. The ONE normal full-hook push succeeded at 09ec57b (no force or skipped hooks): all 88 shared checks, backend typecheck (zero errors), bounded backend unit tests, OpenAPI contract, Flutter generation/format checks, desktop flow lint and native Swift debug build passed. New tests cover retry to processing without home_step and immediate Activity-failed removal on all three clients.
  • 313 expanded Flutter tests for rows/Activity, pending state, episode ownership/model, account fencing and inherited fix(clients): honor the server's failed Home projection on mobile, web and macOS (stuck Processing rows) #25013 reconciliation/detail behavior. The 84-test search/reconciliation subset was rerun after the schema-route fix; analyzer ratchet passes.
  • 35 unit/widget tests in each of America/New_York, Pacific/Kiritimati and Pacific/Pago_Pago. These now run on ordinary PR CI and cover DST short/long days, UTC/local date boundaries and midnight rollover while both real pages are open.
  • 146 focused backend tests (pending work, Home classification, phase shadow readers), 14 schema/inventory tests, generated Dart wire-hardening check.
  • Web: bun run check passes typechecking, smoke suite and 1,039 Vitest tests. Regression covers exclusive failure placement, retry, rollback after read failure, and ignoring an older success after a newer failed read.
  • Native: 103 selected Swift tests pass, including projection decode/reconciliation, terminal watchers, exclusive placement, wire/read failures, retry double taps/errors, search-only reachability and account reset/late responses.
  • Web render fixture asserts Home/Activity/retry/rollback with external requests blocked; native real-component renders use injected dependencies. Post-revert schema/inventory regression passes all 14 tests; integrated preflight passes all 88 checks. The earlier normal full-hook push succeeded at 591c10f: shared preflight 88 checks, backend typecheck (zero errors), generated-client and Flutter generation/format checks, and native Swift debug build passed. Command used env -u GOOGLE_APPLICATION_CREDENTIALS -u CLOUDSDK_CONFIG -u CLOUDSDK_CORE_ACCOUNT, OMI_PR_BODY_FILE and BACKEND_UNIT_FILE_BUDGET_SECONDS=3600. No force push or hook bypass. Full platform suites remain CI authority.

UI-Evidence: tracked manifest at .agent-artifacts/ui-evidence/processingtoday/evidence.json; reproducible commands and limits in README.md in the same directory. Synthetic fixtures, no production data. Mobile captures the real ConversationsPage/ActivityPage using RepaintBoundary, iOS/SF Pro at 393×852 @3x. Web captures actual tabs/gallery/tiles and admission via hermetic Chromium at 1280×800 @2x. Native captures the actual SwiftUI components mounted in the two destinations via ImageRenderer, Aqua/SF at 720×420 @2x. Web/native are isolated component evidence, not a signed full-app session. All affected renders were regenerated.

Mobile state Before / rollback After
Home today Before Home today
Home past day Before Home past day
Activity older processing Before Activity older processing
Activity empty Before Activity empty
Episode before fetch Before Episode before fetch
Home failed row hidden Before Home failed row hidden
Activity failed row + retry Before Activity failed row + retry
Client Home without failed row Activity with retry
Web Home Activity
macOS Home Activity

Manifest, commands/limits, every pre-review disposition.

Open limits: no physical-device/signed-session QA or live account latency measurement on this headless host. Pending is capped; loaded/search/episode rows supplement it. Episode-only composition debt beyond the loaded episode range and legacy unstamped empty completed history require a separate bounded discovery API. Summary candidates retain capped earliest-due ordering. Catch-up/On the Way retain their existing through-notes-completion interpretation; summary debt may contribute recording duration after upload.

Pre-existing PCM guard: test_pusher_storage_pcm_saturation.py::test_50_sockets_plateau_refuse_without_ack_then_retry_once failed only its load-sensitive CPU-duration limit on the previously reviewed head; pre-review reproduced it on main. Owning log. The test, threshold, allowlist and pusher/storage implementation are untouched. New-head CI remains authoritative.

@mintlify

mintlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
omi 🟢 Ready View Preview Nov 10, 2026, 5:32 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T21:29:16.533629Z 6206927 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f99ecb6a48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

seen.add(snapshot.id)
row = snapshot.to_dict() or {}
excluded = bool(row.get('deleted') or row.get('is_deleted') or row.get('discarded'))
step = home_step.classify(row) if today_only and not excluded else None

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Classify pending captures using storage-aware transcript state

For completed batch captures awaiting transcription, this passes an unhydrated Firestore document to home_step.classify. Stored empty transcripts are nonempty compressed/encrypted blobs (database/conversations.py::_prepare_conversation_for_write), so transcribing_hold.applies treats them as existing transcripts and the classifier returns ready instead of transcribing. The new pending projection consequently excludes these captures even when their transcription deadline is still active, leaving older work absent from Activity unless its Home data happens to be loaded. Use a storage-aware classification path or hydrate the necessary transcript state before classifying.

AGENTS.md reference: backend/AGENTS.md:L180-L180

Useful? React with 👍 / 👎.

Comment on lines +70 to +72
return !attentionIds.contains(c.id) &&
(step == HomeStep.transcribing || step == HomeStep.writingNotes) &&
localHomeDay(c.startedAt ?? c.createdAt).isBefore(today);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve every member link when relocating a cross-midnight episode

When an episode starts yesterday, contains recordings started today, and is still awaiting composed notes, buildHomeRows dates its processing row using the episode start, so the new Home filter hides the entire episode. Although this function projects all its members into Activity processing entries, this final predicate drops the members started today. Those recordings therefore have no processing entry on either screen until the episode settles. Retain all member links for an episode relocated to Activity, or split its Home placement by member day.

Useful? React with 👍 / 👎.

Comment on lines +391 to +392
if len(page) < LIMIT or not owned_excluded:
break

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Prevent rejected debt candidates from starving active pending work

For an account with 100 older failed summary debts, the new summary_due_at > 0 query can repeatedly return only rejected candidates: dead_letter_conversation_updates retains the debt timestamp, while home_step.classify excludes those terminal rows. Because classification exclusions do not set owned_excluded, this branch stops without reaching newer completed conversations that still owe summaries, even when the response is empty. Repeated Activity refreshes cannot recover those entries, and the new Home placement hides their older processing rows. Keep terminal debt out of the candidate index or provide bounded cursor advancement past rejected candidates, rather than always reading the same prefix.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da955c8fe3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +264 to +266
if (processingTodayOnly) {
final today = localHomeDay(now ?? DateTime.now());
folded.removeWhere((row) => row.isProcessing && row.day != today);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve pagination when all loaded processing rows are hidden

If the first storage page consists entirely of older completed conversations with home_step: writing_notes (for example, a batch import awaiting summaries), this filter removes every displayed row without populating processingConversations. In conversations_page.dart, that selects the empty-state branch at lines 980–1000 instead of mounting the SliverList whose VisibilityDetector calls _requestMoreIfNeeded. Consequently, finished conversations on subsequent pages become unreachable through scrolling even though hasMoreConversations is true. Keep the pagination trigger mounted, or advance through hidden pages before showing the empty state.

Useful? React with 👍 / 👎.

Comment on lines +112 to +115
for (final c in byId.values) {
final id = c.episodeId;
if (id == null || id.isEmpty) continue;
final previous = owners[id];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate reconstructed episode owners on episode capability

For an account with existing episode-linked conversations, this loop reconstructs episode rows even when enabled is false: only the initial episodes map respects the flag. This bypasses EpisodeProvider.enabled when episodes are switched off or the client channel is not admitted. ConversationListItem._onTap then opens EpisodePage directly for these reconstructed owners, while backend/routers/episodes.py::_admitted rejects that client's episode reads and homeEpisodes stays empty, leaving the synthetic grouping without its authoritative episode content. Restrict ownership reconstruction to enabled episode clients so disabled clients retain the per-conversation UI.

Useful? React with 👍 / 👎.

Git-on-my-level added a commit that referenced this pull request Nov 10, 2026
…bile, web and macOS" (#25013) (#25037)

## What and why

Revert #25013 (merge commit 3ac8775). Main has been red since
11:52Z on decode_migration_complete after #25013, and David ruled at
11:53Z that failed rows must not appear on Home (failed items go only to
Activity). The client changes will be re-landed inside #25024.

Product invariants: none

Tests: the revert restores the pre-#25013 code

UI-Evidence: none -- revert of #25013 restores the prior UI

Failure-Class: none

Rollback: revert this revert

## Required gate records

The generated revert commit is unchanged. A separate commit adds only
the mobile and macOS changelog entries required by the full pre-push
hook.

Path-based invariant citation: INV-NAV-1 — this revert restores the
prior implementation without changing desktop navigation destinations.

Line-Count-Exception: app/lib/backend/http/api/conversations.dart | 1493
-> 1503 | Exact revert of #25013 restores the prior code; splitting it
would add unrelated implementation changes to this urgent revert

Line-Count-Exception: app/lib/providers/conversation_provider.dart |
2294 -> 2349 | Exact revert of #25013 restores the prior code; splitting
it would add unrelated implementation changes to this urgent revert


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/25037?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/25037?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25037&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. -->
@Git-on-my-level Git-on-my-level changed the title fix(home): keep processing on today and move older work to Activity fix(home): keep processing on today and route failed rows to Activity Nov 10, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Batched post-revert follow-up: 591c10fc9945d51441be2326961cbaf9bd915df7. Main revert #25037 is merged into this branch, and the adapted #25013 client changes are re-landed. Failed rows are hidden from Home and listed only in Activity with retry on mobile, web conversation gallery and macOS. No PR merge.

Post-integration schema/inventory: 14 passed. Integrated preflight: 88 checks passed. The single normal full-hook push succeeded, including native debug build; no force push or hook bypass. PCM CPU-duration guard is untouched.

Render state Before / rollback After
Mobile Home today Before After
Mobile Home past day Before After
Mobile Activity processing Before After
Mobile Activity empty Before After
Mobile episode ownership Before After
Mobile Home failure hidden Before After
Mobile Activity failure + retry Before After
Web Home failure hidden — After
Web Activity failure + retry — After
macOS Home failure hidden — After
macOS Activity failure + retry — After

All 18 render files and capture manifest · Commands and limits · Finding dispositions.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 591c10fc99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +325 to +329
const loaded =
selectedFolderId === FOLDER_ACTIVITY
? knownFailures.filter(
(row) => !isSearching || searchResults.some((match) => match.id === row.id),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep pagination reachable when Activity has no loaded failures

When the first conversation page contains no failures, selecting Activity makes this projection empty even if hasMore is true and older pages contain failed conversations. ConversationGallery is mounted only when dayGroups.length > 0, and its scroll handler is the only caller that advances pagination, so Activity displays “No failed conversations” without any way to discover those older failures. Fetch failure-specific pages or keep a pagination trigger available while the filtered projection is empty.

Useful? React with 👍 / 👎.

Comment on lines +327 to +329
? knownFailures.filter(
(row) => !isSearching || searchResults.some((match) => match.id === row.id),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply the selected date range to remembered Activity failures

After a failure has been loaded, selecting a different date range in Activity still shows that failure even when it falls outside the range. useActivityFailures deliberately retains rows across filter changes, but this branch filters that remembered collection only by search membership; the date-filtered conversations response cannot remove previously remembered rows, and buildTimelineDayGroups applies no additional date predicate. Apply the active date range to knownFailures before rendering so Activity respects the visible date controls.

Useful? React with 👍 / 👎.

Git-on-my-level added a commit that referenced this pull request Nov 10, 2026
#25034)

## Summary

- classify both terminal empty-output block reasons
(`empty_output_exhausted`,
`empty_output_lifetime_exhausted`) as the existing `home_step=noise`
state
regardless of `structured.title_provenance`, but only when the summary
has no
  overview or section body
- reuse `summary_delivery.present` so a title, action item, or event
cannot
masquerade as summary output; curated rows retain their existing
precedence
- a banked receipt (`summary_output_present` or `summary_completed_at`)
or a
live `summary_due_at` outranks a stale terminal reason, so a recovered
or
  re-opened row stays `ready`/`writing_notes` instead of disappearing
- add the default-on `HOME_EMPTY_OUTPUT_NOISE` kill switch, its
  registry/deployment classification, and a budget exception owned by
  `refactor-lead` with `review_by=2026-12-10`

Source: audit class 10 (2026-11-10), relay-cl1 ruling f6502a, lead
`refactor-lead`.

Failure-Class: FC-provisional-home-content-published-as-final

## Base and head

- Base: `origin/main` `35e63b5d701f94396cd166ef22db8df37aa947d4` (merged
  normally; no rebase, no force-push)
- Head: `c92dc8281539ab2a7a9f88db7e083fb60297f29a` (push 2/2)
- Diff against the merged base: 10 files, +149/-12; 58 non-test
additions.
The batch adds the receipt/debt guards, docstring, and expanded
regressions.

## Client impact

No Flutter change is needed.
`app/lib/pages/conversations/home_rows.dart`
already consumes `home_step=noise` and removes that row from default
Home. Its
status/title fallback is only for older servers where `home_step` is
absent. No
`app/` files changed.

## Kill switch, default, rollback

- `HOME_EMPTY_OUTPUT_NOISE` defaults on.
- `false`, `0`, `off`, or `no` restores the legacy `server_minimum`-only
  classification.
- `HOME_STEP_PROJECTION=off` remains the broader rollback that omits the
field.
- No deployment values change and no production data was read or
written.

## Metric

- No terminal empty-output row (both reasons, no overview/section body,
no
  banked receipt, no open debt) appears on default Home.
- No banked or re-opened row is hidden: `summary_output_present`,
`summary_completed_at`, or a live `summary_due_at` keeps the row visible
as
  `ready`/`writing_notes`.
- Curated, failed, dead-letter, upload-failed, BYOK and local-only rows
keep
  their existing precedence.

## Verification (measured on this head)

Credentials unset before every run (`GOOGLE_APPLICATION_CREDENTIALS`,
`GCP_AGENT_TIER`, `CLOUDSDK_CONFIG`, `CLOUDSDK_CORE_PROJECT`,
`CLOUDSDK_PYTHON`), via `bin/omi-heavy run --`:

- `tests/unit/test_home_step.py tests/unit/test_flag_budget.py
tests/unit/test_summary_delivery.py
tests/unit/test_summary_empty_recovery.py
tests/unit/test_list_projection.py
tests/unit/test_home_transcribing_hold.py`
  — **289 passed**
- `tests/unit/test_config_refactor_w6.py` — **157 passed**
- `python3 scripts/check_feature_flag_registry.py` — **OK**
- `python3 .github/scripts/check_deployment_secret_boundary.py --base
  origin/main` — **passed**
- `git diff --check` — **passed**
- `scripts/pr-preflight --lane local` — **42 checks passed**
- Normal full pre-push gate — **passed**, push accepted.
- Fresh exact-head GitHub workflow query (2026-11-10): all 13 returned
runs
completed successfully, including Backend Unit Tests, Backend Hermetic
E2E,
Backend Emulator Proofs, OpenAPI Contract, and Runtime Image Contracts.

New regressions cover: both receipt fields, open due debt, late re-open
(noise -> writing_notes/ready), both terminal reasons with the switch on
and
off, curated-row precedence, and output-present under the switch off.
The
missing-provenance cases are unchanged and still asserted.

## Merge-order notes

- `backend/config/flag_budget.json` `count` equals `len(names)` on this
head
(265 = main 264 + this flag). If corrected-base replacement #25055
(replacing #25028) or #25032 lands first, the merge
must set `count` to the actual `len(names)` on that merged head, not a
copied count.
- `config/feature-flags.yaml`: keep #25024's rewritten
`HOME_STEP_PROJECTION`
  line, then this `HOME_EMPTY_OUTPUT_NOISE` line, then
  `HOME_TRANSCRIPTION_PRESENTATION_GATE`.
- `backend/tests/unit/test_flag_budget.py`: keep every peer's
  `HELPER_KILL_SWITCHES` entry and `elif` branch alongside
  `HOME_EMPTY_OUTPUT_NOISE`.
- `backend/utils/conversations/home_step.py`: #25032 widens
`provisional` to
  include row-level `summary_title_provenance`; keep that and this
  `empty_output` block. The two are independent.
- #25020 is clean against this branch.

## Render evidence (blocker)

This is Home-visible behavior and no Flutter render has been produced
for this
head. Before merge, the driver must obtain renders for:

1. terminal reason + no overview/section body, provenance absent ->
hidden on
   Home, still findable in archive/search
2. same for the lifetime reason; kill switch off -> legacy
absent-provenance
   row visible again
3. banked output-present/completed receipt -> ready; open
`summary_due_at` ->
   Writing notes
4. overview or section body present, user-curated, and BYOK/local-only
-> stay
   visible as applicable
5. failed/dead-letter/upload-failed -> Activity Needs attention; no
failed row
   on Home
6. title/action-items/events only with no overview/section body ->
hidden with
no visible retry. This is the independent visibility review's case: the
row
is hidden and no automatic retry is surfaced, so David must accept that
   exact behavior.

Do not merge until fresh renders go to relay-cl1 and David acknowledges
them.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3840beec75

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +446 to +447
replaceConversation(updated);
replaceSearchConversation(updated);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update remembered Activity failures after a successful retry

When Activity displays a remembered failure that is no longer in the current conversation or search arrays—for example, an older failure retained after a refresh resets pagination—both replacement calls are no-ops because they only map existing rows. useActivityFailures therefore never receives the authoritative retry result, and the subsequent first-page refresh may also omit that conversation. The successfully recovered recording remains displayed as failed with an enabled Retry button, allowing unnecessary reprocessing. Apply the returned conversation directly to the remembered-failure collection as well.

Useful? React with 👍 / 👎.

Comment on lines +50 to +52
item.kind === notesFailureKind &&
item.conversation_id === ack.conversation &&
item.id !== id

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Clear accepted summary retries when a new generation fails

After successfully retrying a conversation_summary_failed item, a later failure for a new content/finalization revision of the same conversation remains hidden. Retries of both supported kinds enter accepted, but this cleanup recognizes replacement generations only for notesFailureKind. The backend generates a new item ID for each revision, so the operation-matching cleanup cannot remove the old acknowledgment either; the conversation-wide suppression then hides both the new ledger item and its projected failure until the store resets. Apply generation replacement handling to legacy summary failures too. The same notes-only restriction exists in macOS AttentionLedgerStore.refresh().

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6206927cdf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +46 to +48
if (row.homeStep == 'failed') {
_failedHomeProcessingIds.add(row.id);
} else if (_processingStateRevisionById[row.id] == revisionsAtStart[row.id]) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fence failed page projections against newer retry results

If a list refresh is already in flight when applyConversationReprocessResult accepts a restarted processing attempt, the older page can still return homeStep: 'failed'. This branch unconditionally restores the failure ID despite the retry having advanced _processingStateRevisionById. _reconcileProcessingConversations then drops the new processing row before reaching its revision guard, cancels its polling when it was the last row, and republishes the stale failure in Activity. Apply the per-conversation revision fence before accepting failed page or lifecycle projections, not only before clearing them.

Useful? React with 👍 / 👎.

Comment on lines +56 to +60
if (
item.retry.state === 'failed' &&
item.retry.operation_id === accepted.current.get(item.id)?.operation
)
accepted.current.delete(item.id);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Clear the retry key when refresh confirms operation failure

When a retry joins an already-running operation, the endpoint can return in_progress; if that operation subsequently fails, this refresh path removes its acknowledgment but retains its idempotency key in keys.current. The next enabled Retry click therefore replays the failed attempt instead of starting recovery: backend/database/processing_attention.py::claim_in_transaction returns the immutable keyed attempt before considering a new claim. Clear the corresponding key when the matching operation is confirmed failed so the next user action starts a fresh attempt rather than requiring an extra failed click.

Useful? React with 👍 / 👎.

MichaelC001 pushed a commit to MichaelC001/omi that referenced this pull request Nov 11, 2026
…bile, web and macOS" (BasedHardware#25013)

Main has been red since 11:52Z on decode_migration_complete after BasedHardware#25013, and David ruled at 11:53Z that failed rows must not appear on Home (failed items go only to Activity). The client changes will be re-landed inside BasedHardware#25024.

Failure-Class: none
@Git-on-my-level
Git-on-my-level merged commit b7b810f into main Nov 11, 2026
69 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/processingtoday branch November 11, 2026 03:47
Git-on-my-level added a commit that referenced this pull request Nov 11, 2026
…25041)

## What changed and why

A `batch_live_v1` capture used to have no episode for the whole
recording. The
server attached it only at audio close (`attach_closed_batch_capture`),
so Home
painted it as its own row for the capture duration and then folded it
into the
episode. Measured on one account: median 8.5 minutes, p90 50 minutes
standalone
(`data/run-2026-11-08-pipeline-refactor/findings-rowflash.md`).

- **Attach at admission.** `utils/episodes/batch_close.py` gains
  `attach_admitted_batch_capture`. It reuses the existing fenced
`service.attach_recorded` transaction (no new attach path). The recorded
start
is known at admission; the end is not, so the member joins with a
one-second
provisional window and `pending_transcription=True`. Home projects it as
  "Transcribing…" from its first appearance.
- **Two admission boundaries**, both metadata-only and fail-open:
`routers/listen/conversations.py` after a `server_batch_only`
conversation is
  created (the dominant class, off the request path), and
`routers/listen/preview_custody.py` when a local preview is promoted to
batch
custody. Both pass a clock-carrying row (the create payload / the full
claim
  row), not the eligibility-only `capture_snapshot`.
- **Close finalizes the end.** The existing audio-close attach now finds
the
member already owned, writes the real end, and never renews the pending
  deadline (`episode_batch_pending.read_patch` stamps once).
- **Deadline floor.** Admission floors
  `episode_transcription_deadline_at` at
`started + MAX_EPISODE_SECONDS + SLA_SECONDS`, so a capture longer than
the
  2h delivery SLA cannot project "Couldn't transcribe" while it is still
  recording. The close path still never renews the deadline.
- **Boundary move is atomic.** If the completed window belongs to a
different
occasion than the admission episode, the close attach re-places the
member
and removes the stale provisional membership in the same fenced
transaction
(`detach_from`). A failed attach leaves the member where it was; a
failed
detach leaves a duplicate, never an orphaned capture. `detach_recorded`
  refuses a live episode or the `episode_links/current` target.
- **Retry idempotency.** `episode_recorded_components.attach` treats a
replay of
the same provisional fact as the same span, so a repeated admission
attach
  does not bump the episode's `state_version`.
- **Kill switch.** `EPISODE_BATCH_ADMISSION_ATTACH_ENABLED`, default on.
Off
restores the pre-admission behaviour exactly: the capture stays
standalone and
joins at audio close. `EPISODE_BATCH_CLOSE_ATTACH_ENABLED` still governs
the
  close path.

New state and its exit: a provisionally attached member is bounded by
the
floored `episode_transcription_deadline_at` and the automatic "Couldn't
transcribe" terminal projection; the audio-close attach finalizes the
end, and
the transcript projection clears the pending presentation. A failed
admission
attach leaves the capture standalone and the finalize-time attach
remains the
repair path.

Server only. No app release; the client hardening rides #25024
separately.

## Product invariants affected

none

## How it was verified

- `backend/tests/unit/test_episode_batch_audio_close.py` (56 tests)
covers the
  new paths against `StrictFirestore` and the real fenced transaction:
- `test_admission_boundaries_pass_a_clock_carrying_row`: drives the real
    preview promotion and the real fresh-create path, then asserts a
provisional member exists. This is the regression guard for the inert
    admission attach.
  - `test_admission_deadline_survives_a_capture_longer_than_the_sla`: an
    8000-second capture still projects "Transcribing…" at close.
- `test_admission_attaches_a_provisional_member_before_audio_close`: the
capture is a member with a provisional end and a pending deadline before
    audio close, and Home projects "Transcribing…".
-
`test_audio_close_finalizes_the_admitted_end_without_renewing_the_deadline`:
the close keeps the admission owner, writes the real end, and leaves the
    deadline unchanged.
-
`test_boundary_move_moves_the_provisional_member_atomically_at_the_close_attach`:
the member leaves the admission episode and joins the episode the real
    window selects in one transaction.
- `test_detach_refuses_a_transcribed_member`: a projected member never
moves.
- `test_admission_kill_switch_off_restores_the_audio_close_attach`: off
leaves
    the capture standalone and the close attach still works.
- `test_admission_retry_does_not_attach_twice`: a replay adds no
membership
    and does not bump `state_version`.
- `test_late_admission_after_audio_close_cannot_undo_the_close_end`: the
    close attach commits first, then the delayed admission task returns
    `closed` without writing; the finalized end and `state_version` are
    unchanged and the member keeps its close-time episode.
- Full episode suite (`backend/tests/unit/test_episode_*.py`): 897
passed.
- Flag budget + registry contract (`test_flag_budget`, `test_omi_flags`,
  `test_graduated_flag_behavior`): 113 passed.
- Firestore query-shape guard (`test_firestore_query_shapes.py`): 572
passed.
- `scripts/check_feature_flag_registry.py`: OK.
- Full pre-push hook and preflight through `bin/omi-heavy`: see the
push.
- Not verified: live production attach latency and the fleet-wide
standalone
  window. The change is metadata-only and fail-open; the existing
`episode_batch_audio_close_attach` fallback telemetry covers a failed
attach.

## Tests

Feature: `backend/tests/unit/test_episode_batch_audio_close.py` covers
admission
attach, close finalize, boundary move and detach, the transcribed-member
refusal, the kill switch, and retry idempotency. The admission tests
fail on
`origin/main` because no admission attach exists.

## Failure class (fixes)

Failure-Class: FC-episode-membership-waits-for-enrichment

UI-Evidence: none -- backend-only membership timing; no client change

Line-Count-Exception: backend/utils/episodes/service.py | 2223 -> 2243 |
the admission attach threads the deadline floor, atomic detach and
closed-refusal outcome through the existing service signature

## Merge-main (2026-11-12)

Earlier head: `6a74b9f26cb4d4b08509222e5f57839bbcf79d78` (head reviewed
by the
11-11 fix batch; this batch's predecessor).

Earlier head: `3cd22f779a386d7c562a5400dfe2e2593fde5733` (merge of main
`7688c61a761d180a3b5fb6cd53c7ecd720e976dd` into the reviewed head).
Earlier head: `12af3a8e2b990ae172181bafc20e82950f66e944` (the reviewed
head;
first parent of the merge).
Branch: `lane/rowflash`. One push, no merge, no deploy.

`git merge origin/main` produced exactly one content conflict,
`backend/utils/episodes/batch_close.py`. Main's
`0e985a4ccd0` added a paid-work preservation hook on the audio-close
path
(`owner = service.attach_recorded(...)` then
`late_member.joined(uid, conversation_id, row, owner, c)`); this branch
had
rewritten the same function for admission attach plus close finalize.
Both
survive — the close attach writes the real end, the atomic boundary move
runs
inside the same transaction, and the placed owner is handed to
`late_member.joined` exactly once on the close path:

```python
        c = collaborators or service.Collaborators(firestore_client=conversations.db)
        moved_from = _moved_owner(uid, conversation_id, row, started, finished, c)
        owner = service.attach_recorded(
            uid,
            conversation_id,
            row,
            started,
            finished,
            c,
            pending_transcription=True,
            detach_from=moved_from,
        )
        late_member.joined(uid, conversation_id, row, owner, c)
        return 'attached'
```

The import became `from utils.episodes import service, late_member`.
`backend/docs/feature-flag-registry.md` and `config/feature-flags.yaml`
auto-merged; `scripts/check_feature_flag_registry.py` is OK and the
admission
row sits in alphabetical position, so the flag count still matches
`len(names)`.

## Fix batch (11-12)

Head: `b4e16433541f9ba3318ae5fbd4e50ef2b78b26ea`
Branch: `lane/rowflash`. One push, no merge, no deploy.

The delta review returned FIX-FIRST with one P1: a delayed admission
task
could overwrite the audio-close result. The admission attach now refuses
transactionally after the close has committed.

## Fix batch (11-11)

Both pre-reviews returned FIX-FIRST. This batch applies the agreed
blockers and
the cheap P2s in one push.

| Finding | Disposition |
|---|---|
| P0 — admission attach inert: both boundaries passed
`capture_snapshot`, which drops every clock, so `_admitted_start`
returned `None` and the attach returned `'skipped'`. | **Fixed.**
`conversations.py` passes `{**payload, **batch_record_capture}`;
`preview_custody.py` passes the full claim `row`. `capture_snapshot`
stays the minimal eligibility snapshot. New boundary test drives both
real call sites. |
| P1 — the 2h pending deadline is consumed by the capture, so a >2h
capture projects "Couldn't transcribe" while recording. | **Fixed.**
Admission floors the deadline at `started + MAX_EPISODE_SECONDS +
SLA_SECONDS`; the close path still stamps once and never renews. New
8000-second capture test. |
| P1 (merge risk) — the dirty resolution could drop
`late_member.joined`. | **Verified.** Called exactly once, on the close
path only, after the attach. |
| P2-1 — `detach_recorded` can mutate a live episode and break the live
writer's CAS. | **Fixed.** Refuses `status == 'live'` and the
`episode_links/current` target. |
| P2-3 — detach-then-attach is not atomic; a failed attach orphans the
capture. | **Fixed.** The close attach re-places the member and removes
the stale provisional membership in the same fenced transaction
(`detach_from`). A failed attach leaves the member in place. |
| P2-4 — the provisional start is the server arrival clock, not the
recorded start. | **Fixed by the P0 row.** `_admitted_start` already
prefers `server_batch_audio_start`; the full row now carries it when
present, and `started_at`/`created_at` otherwise. |
| P2-2 — `detach_recorded` leaves `recorded_end`/`closed_at`/compose
proof stale. | **Deferred.** The atomic move removes the stale
membership; recomputing the old episode's derived fields is a separate
change and does not affect the moved member. |
| P2-5 — test fixture fakes `recorded_candidates`; the boundary-move
test used a `live` episode production never creates. | **Deferred.** The
boundary-move fixture now uses the production closed/gap shape required
by P2-1; the `recorded_candidates` fake remains. |
| P2-6 — a 1-second provisional closed episode queues a throttled
compose per Home read. | **Deferred.** The composer returns `'waiting'`
for the pending member, so no paid work; the queue/read cost is a
follow-up. |
| Snapshot-vs-stored guard gap
(`is_locked`/`deferred`/`relevance_decision`). | **Deferred.** The hard
erasure fences are re-read in the membership transaction; the
metadata-only guard gap is unchanged. |
| P1 (delta) — a delayed admission task can overwrite the audio-close
result. | **Fixed.** The admission attach re-reads the member inside its
own transaction and returns `closed` with no writes once the archive is
closed or `server_batch_audio_end` is real; an admission replay of a
closed member is treated as already placed. New
`test_late_admission_after_audio_close_cannot_undo_the_close_end`. |

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/25041?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://cubic.dev/action/auto-fix/pr/BasedHardware/omi/25041?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25041&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. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant