Repository navigation
feat(home): publish 6h processing age limit - #24885
Conversation
Port the unpublished Home list projection and cache correction; cover the exact six-hour boundary without changing stored lifecycle state. Failure-Class: none
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
1 issue found across 20 files
Confidence score: 5/5
- The provenance in
2026-11-07-home-processing-age.mdpoints to a local workspace path and internal labels that repo readers can’t follow. Replace them with references they can access.
You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="backend/docs/listen_pusher_pipeline/changes/2026-11-07-home-processing-age.md">
<violation number="1" location="backend/docs/listen_pusher_pipeline/changes/2026-11-07-home-processing-age.md:8">
P3: The provenance here points to a local agent workspace path (`omi-workspace/.../bus.jsonl`) and to internal labels (`S5`, `lane/lchomeage`, `lead2`). Repo readers can't follow any of them. Replace them with the PR or ticket link and drop the person-specific governance line.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| conversations. At six hours the list projects `home_step=failed`; storage, status writers, | ||
| lifecycle, finalization, search and direct links remain unchanged. | ||
|
|
||
| S5 ports the unpublished `lane/lchomeage` implementation and its curation-test |
There was a problem hiding this comment.
P3: The provenance here points to a local agent workspace path (omi-workspace/.../bus.jsonl) and to internal labels (S5, lane/lchomeage, lead2). Repo readers can't follow any of them. Replace them with the PR or ticket link and drop the person-specific governance line.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/docs/listen_pusher_pipeline/changes/2026-11-07-home-processing-age.md, line 8:
<comment>The provenance here points to a local agent workspace path (`omi-workspace/.../bus.jsonl`) and to internal labels (`S5`, `lane/lchomeage`, `lead2`). Repo readers can't follow any of them. Replace them with the PR or ticket link and drop the person-specific governance line.</comment>
<file context>
@@ -0,0 +1,73 @@
+conversations. At six hours the list projects `home_step=failed`; storage, status writers,
+lifecycle, finalization, search and direct links remain unchanged.
+
+S5 ports the unpublished `lane/lchomeage` implementation and its curation-test
+correction onto current main. Source records: bus rows `6b0721` and `c36cb8` in
+`omi-workspace/data/run-2026-10-13-two-lane-nemotron/swarm/bus.jsonl`.
</file context>
| S5 ports the unpublished `lane/lchomeage` implementation and its curation-test | |
| UO-1107-01 ports the unpublished implementation and its curation-test correction onto main. Evidence: the PR that adds this note. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d1a7f7b812
ℹ️ 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".
| if anchor is None: | ||
| PROCESSING_AGE_TOTAL.labels(reason=HomeProcessingAgeReason.MISSING_TIMESTAMP).inc() |
There was a problem hiding this comment.
Instrument the missing-timestamp fail-open with shared telemetry
When a processing or merging row has neither a usable finished_at nor created_at, this branch bypasses the age bound and allows the row to remain Processing indefinitely. It increments only the domain-specific counter, so this degraded path is absent from the shared fallback telemetry. The New fallbacks rule in backend/AGENTS.md requires calling utils.observability.fallback.record_fallback; record this fail-open with an appropriate outcome, retaining the classification counter if useful.
AGENTS.md reference: backend/AGENTS.md:L322-L322
Useful? React with 👍 / 👎.
# Conflicts: # backend/deploy/runtime_env/prod.overlay.yaml # backend/routers/conversations.py # backend/tests/unit/test_homesettle.py # config/feature-flags.yaml
…b and macOS (stuck Processing rows) (#25013) _Requested by **David**_ (stuck Home rows; coordinator 412a48, lead2 1c9079) ## What changed and why #24885 (merged, live since the 16:28Z train) makes the server return `home_step=failed` for a conversation stuck in `processing`/`merging` past 6 hours, but its status stays `processing`. The clients still drew those rows from status, so they stayed "Processing…" on Home indefinitely (Luna FIX-FIRST on #24885). This PR makes every client honor the server projection: - **Mobile (Flutter):** a tracked id with `home_step=failed` leaves the local processing set and is never re-added by detail fetch, the websocket, page admission or cache restore. Explicit failure takes precedence over deferred/client-processing metadata. Activity's Needs-attention ledger is not fed by the 6h projection (it only gets finalization dead-letter rows), so the row stays on Home as an openable **"Omi couldn't finish"** row with Retry: no spinner, no polling. `homeStep` is carried across every whole-row replacement (calendar link/unlink, update, upsert, grouped/bridge replacement, search decode and pagination). - **Web:** failed rows lose the Processing badge and polling, stay openable as a non-processing tile, and pagination accounting is preserved. - **macOS:** decodes optional `home_step`. A failed row isn't shown as processing or "Stuck", detail replacement keeps the failed projection, and the no-cache detail race returns the current row instead of a stale seed. When `home_step` is absent (older servers), every client keeps its prior behavior exactly. ## Product invariants affected - INV-NAV-1 (desktop shell feature parity): the macOS change touches the conversations destination's state handling only. It keeps the same feature-complete Conversations owner and adds no shell-specific or reduced page. It changes processing-state presentation (failed rows aren't shown as Processing/Stuck), not navigation or routing. - A conversation is never unreachable on any client. - A failed row never shows Processing or polls; Retry is the only path back to processing. ## How it was verified - Flutter: 157 tests across the touched files (final round) plus the render test; `flutter analyze` clean on the touched files. - Web: full suite 1,024 tests + 6 smoke tests; typecheck and lint pass. - macOS: debug build and 109 focused Swift tests on an earlier round. The no-cache race regression is added; local execution was skipped under host load, so CI covers it. - Preflight: 44 checks. - Pushed from **m1-mac-studio** with the full pre-push hook, no skips (lead2 a82bf7). On m5 the Flutter/Dart SDK hangs at startup (syspolicyd), so the hook couldn't run there. - Independent Luna reviews: correctness SHIP (round 2), user-data/prod-safety SHIP (round 3 delta at 1a5e346). ## Tests Flutter `conversation_provider_processing_reconcile_test.dart`, `home_rows_test.dart`, `conversation_home_projection_replacement_test.dart`, `conversation_search_projection_decode_test.dart`, `conversation_summary_retry_row_test.dart`, `home_failed_processing_render_test.dart`; web `ConversationTile.homeStep.test.tsx`, `useConversations.test.tsx`; macOS `ConversationDisplayStateTests.swift`, `ConversationRepositoryTests.swift`. ## UI evidence Mobile (iOS), failed row: `.agent-artifacts/ui-evidence/lane-homestep-client/002-mobile-ios-home-failed-processing.png`  Web, failed tile without the Processing badge: `.agent-artifacts/ui-evidence/lane-homestep-client/001-web-home-processing-projection.png`  Manifest: `.agent-artifacts/ui-evidence/lane-homestep-client/evidence.json`. macOS: state logic only (no rendered change). ## Failure class (fixes) Failure-Class: none Rollback: revert the PR. With no client change, the server projection is ignored and rows behave as before #24885. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/25013?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/25013?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25013&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. -->
Requested by David
What changed and why
Publish the previously unpushed Home list contract: processing/merging rows project
home_step=failedat six hours, usingfinished_atthencreated_at. The default-on bound uses the existingHOME_STEP_PROJECTIONkill switch;HOME_PROCESSING_MAX_AGE_SECONDSadjusts the positive limit. List conditional responses cannot keep a stale step after time alone changes it.Source: dropped-work item S5; bus rows
6b0721(unpublished implementation and client limitation) andc36cb8(publication handoff) in the source run'sswarm/bus.jsonl. Ported only the unpublishedlane/lchomeageimplementation and curation correction onto current main, then added exact-boundary tests and corrected the unpublished reader fixture to supply its document ID. No stored status or processing lifecycle changes.This is the backend contract only. Flutter tracked-row reconciliation can still reinsert Processing rows, and macOS/web do not consume this step. A visible client fix is outside S5; no rendered-client acceptance is claimed.
Rollback: revert the commits in this PR, newest first. Operational kill switch:
HOME_STEP_PROJECTION=offomits the projection and age bound; no data migration is involved.Product invariants affected
INV-MEM-4: Home presentation remains a derived list view; it does not change memory promotion or stored state.
Line-Count-Exception: backend/routers/conversations.py | 2590 -> 2592 | Preserve all three independent time-dependent Home cache bypass conditions after merging main; the two added lines format the existing OR expression.
How it was verified
The normal
git push -u origin <branch>hook ran throughbin/omi-heavy run --wait 3600 --withBACKEND_PYTEST_WORKERS=1,OMI_CHECKS_JOBS=4, andBACKEND_UNIT_FILE_BUDGET_SECONDS=1800. No skip flags were used.scripts/pr-preflightpassed all 53 selected checks; backend type checking passed;backend/scripts/validate-backend-runtime-env.py --env dev --check-workflowsand--env prodpassed; OpenAPI compatibility and contract checks passed.BACKEND_UNIT_TEST_FILE_LISTselection ran throughbash backend/test.sh: 417 passed, including 24 exact six-hour boundary cases. File isolation and the standard CPU timing guard stayed enabled.git diff --checkand pinned staged Python formatting passed.Standalone
make preflight, the focused test command, andbackend/scripts/pre-deploy-check.shcould not start in the normal heavy pool because admission timed out. The normal push pool subsequently completed the shared preflight and all five changed unit files; the full standalone pre-deploy script was not run. A redundant queued reader rerun was stopped after the same file passed in the hook.No GCP tier or production access used. No deployment, live endpoint, physical client, or rendered UI verification performed.
Tests
backend/tests/unit/test_home_step.pyfreezes time one microsecond before, exactly at, and one microsecond after six hours for processing and merging, both fallback clocks, and titled/untitled rows. Existing ported tests cover invalid settings, runtime setting changes, missing/naive timestamps, curation, kill-switch rollback, indexed reads, API serialization, unchanged storage, and conditional list responses.The five unit files were
test_backend_runtime_env_validator.py(198),test_home_step.py(81),test_home_transcribing_hold.py(50),test_list_projection.py(57), andtest_verify_pusher_config_references.py(31), underbackend/tests/unit/.UI evidence
UI-Evidence: none -- backend list projection only; no rendered UI files changed. Known client acceptance limitation is documented above.
Failure class (fixes)
Failure-Class: none