Skip to content

feat(home): publish 6h processing age limit - #24885

Merged
Git-on-my-level merged 4 commits into
mainfrom
claude/dropped-home-processing-age-limit
Nov 9, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
claude/dropped-home-processing-age-limit

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Requested by David

What changed and why

Publish the previously unpushed Home list contract: processing/merging rows project home_step=failed at six hours, using finished_at then created_at. The default-on bound uses the existing HOME_STEP_PROJECTION kill switch; HOME_PROCESSING_MAX_AGE_SECONDS adjusts 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) and c36cb8 (publication handoff) in the source run's swarm/bus.jsonl. Ported only the unpublished lane/lchomeage implementation 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=off omits 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 through bin/omi-heavy run --wait 3600 -- with BACKEND_PYTEST_WORKERS=1, OMI_CHECKS_JOBS=4, and BACKEND_UNIT_FILE_BUDGET_SECONDS=1800. No skip flags were used.

  • Static / contract: shared scripts/pr-preflight passed all 53 selected checks; backend type checking passed; backend/scripts/validate-backend-runtime-env.py --env dev --check-workflows and --env prod passed; OpenAPI compatibility and contract checks passed.
  • Unit: the hook's five-file BACKEND_UNIT_TEST_FILE_LIST selection ran through bash backend/test.sh: 417 passed, including 24 exact six-hour boundary cases. File isolation and the standard CPU timing guard stayed enabled.
  • Hygiene: git diff --check and pinned staged Python formatting passed.

Standalone make preflight, the focused test command, and backend/scripts/pre-deploy-check.sh could 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.py freezes 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), and test_verify_pusher_config_references.py (31), under backend/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

View guided diff Turn on auto-fix

Port the unpublished Home list projection and cache correction; cover the exact six-hour boundary without changing stored lifecycle state.

Failure-Class: none
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 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-09T11:48:52.488400Z 53af4ed 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.

@Git-on-my-level Git-on-my-level self-assigned this Nov 7, 2026

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 20 files

Confidence score: 5/5

  • The provenance in 2026-11-07-home-processing-age.md points 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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>
Suggested change
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.

@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: 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".

Comment on lines +88 to +89
if anchor is None:
PROCESSING_AGE_TOTAL.labels(reason=HomeProcessingAgeReason.MISSING_TIMESTAMP).inc()

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 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
@Git-on-my-level
Git-on-my-level merged commit 0c58303 into main Nov 9, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the claude/dropped-home-processing-age-limit branch November 9, 2026 12:29
Git-on-my-level added a commit that referenced this pull request Nov 10, 2026
…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`

![Mobile failed Home
row](https://raw.githubusercontent.com/BasedHardware/omi/1a5e346b03c3e2bef379175b4579cbfb55295556/.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`

![Web failed
tile](https://raw.githubusercontent.com/BasedHardware/omi/1a5e346b03c3e2bef379175b4579cbfb55295556/.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. -->
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