Skip to content

fix(attention): expire non-retryable items - #25028

Closed
Git-on-my-level wants to merge 4 commits into
mainfrom
lane/fableattention
Closed

Git-on-my-level wants to merge 4 commits into
mainfrom
lane/fableattention

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What changed and why

Fable audit class 11 (relay-cl1 ruling f6502a) identified permanently non-retryable recovery_structure_unavailable attention items. Either attention GET lazily expires those items seven days after creation, retaining the document with active=false, expired_at, and expiry_reason=non_retryable_ttl. The explicit permanent-reason set contains only recovery_structure_unavailable. Transient processing_failed, final_attempt_failed, and durable_attempts_exhausted items remain visible even when their stored retryable flag is false.

Expiry now re-reads the exact observed item state and Firestore update time in a transaction, validates the expiry predicate, and reads the common retry claim before writing. Concurrent item changes, deletion, running reprocess claims, and failed-claim retry repairs prevent stale expiry. The strict transaction tests exercise both orderings and verify a failed concurrent retry stays active. Legacy naive timestamps use UTC; ISO timestamps normalize to UTC; missing/invalid timestamps remain visible. The pending-work limit applies after resolution and expiry filtering.

The default-on PROCESSING_ATTENTION_NON_RETRYABLE_EXPIRY_ENABLED ops kill switch is wired into the runtime base (all four Cloud Run backend services and both GKE hosts) and matching dev/prod listen/pusher chart env. The composed runtime manifest and feature-flag registry are regenerated. Set the declared value to false and recompose to stop new expiry writes; already-expired items remain inactive. No client change is required. backend/docs/pending-work.md and the lifecycle contract describe these semantics.

Product invariants affected

  • INV-MEM-4: the runtime manifest change adds only attention expiry configuration; canonical memory consolidation and promotion authority retain their existing configuration. Attention expiry is distinct from Short-term memory disposition.

Tuning

  • NON_RETRYABLE_ITEM_TTL: before unbounded; after 7 days from created_at, only for class 11's recovery_structure_unavailable reason after retry reconciliation.
  • PROCESSING_ATTENTION_NON_RETRYABLE_EXPIRY_ENABLED: default on, declared in runtime/chart env; false disables new expiry writes.
  • Expiry is terminal. Filtered documents no longer consume the pending-work attention window; scanning continues until 100 surviving items or end of the active set. The windowed badge still caps surviving items at 100.

Pre-review dispositions

  • P1 stale GET expiry/retry race: transactional state/version fence plus common-claim read; strict interleaving and stale/deleted/version-change tests added.
  • P1 flag-budget merge drift: merged fresh origin/main, recomputed count == len(names), dated inventory, and moved the entry away from the top insertion hotspot. See merge order below.
  • P2 kill-switch wiring: runtime base, generated manifest, and four matching chart values updated; deployment snapshots carry the binding.
  • P2 permanent-only predicate: explicit recovery_structure_unavailable set, with all three transient failure reasons tested.
  • P2 naive timestamp: normalized to UTC; naive, ISO, missing, and invalid cases tested.
  • P2 badge short page: limit moved after filtering; three expired rows followed by two retained rows and the HTTP badge tested.
  • P2 retry-claim repair: legacy failed claim plus failed item retry state remains retryable, with no expiry write.
  • P2 docs contradiction: endpoint, TTL, retained terminal fields, rollback, and post-filter window contracts updated.

Merge order and conflicts

This fix batch merges fresh origin/main before editing; only conflicts with code already on main are resolved. No other open PR is merged into this branch.

How it was verified

  • Required focused runner: 856 passed, 1 deselected across four files (test_pending_work.py: 67, test_backend_runtime_env_validator.py: 206, test_flag_budget.py: 24, test_firestore_query_shapes.py: 559).
  • Hermetic backend/scripts/pre-deploy-check.sh: 511 passed, runtime/workflow/state validation passed.
  • OMI_PR_BODY_FILE=.agent-brief/pr25028-body.md BACKEND_UNIT_FILE_BUDGET_SECONDS=3600 make preflight: all 54 checks passed.
  • python3 scripts/check_feature_flag_registry.py: OK.
  • python3 .github/scripts/check_deployment_secret_boundary.py --base origin/main: passed.

Required tests run through backend/test.sh with BACKEND_UNIT_FILE_BUDGET_SECONDS=3600, file isolation and canonical timing guard, via omi-heavy, with cloud credentials unset. Selected files: test_pending_work.py, test_backend_runtime_env_validator.py, test_flag_budget.py, and test_firestore_query_shapes.py.

backend/scripts/pre-deploy-check.sh runs hermetically with the worktree venv; feature-flag registry and deployment-setting classification checks run locally. The single push completed with the full pre-push hook, OMI_PR_BODY_FILE, and the same file budget; the bounded pre-push gate passed. No production endpoint or GCP API is accessed. No deployed-behavior claim is made.

CI snapshot correction (second and final push)

GitHub backend shard 7/8 failed in test_rendered_dev_pusher_direct_bindings_match_source_contract because its exact literal snapshot omitted the newly wired switch. The runtime/chart values agree; the expected literal map needs the same binding. CI failure: https://github.com/BasedHardware/omi/actions/runs/42803845167/job/129787902147.

David approved publishing the existing one-line snapshot correction in commit 02e0f364a980e5e65676931199470daf949d9806 as push 2 of at most 2. Its complete test file was rerun through backend/test.sh with GCP credential variables unset: 31 passed. The approved second and final push completed with the normal pre-push hook and GCP credential variables unset; the bounded gate passed. The independent review below applies to the earlier head b5d77ad0010c10c687215253e9d7fa8afcd2e388; the driver will request the exact-head final Luna review.

Independent review

One independent Luna review of pushed head b5d77ad0010c10c687215253e9d7fa8afcd2e388 against 8141729fccd928b90d16b34c13bcc162fef01fa5 found no actionable P1/P2 findings and no unmet listed requirement. Review inspected the implementation, caller paths, tests, deployment declarations, metadata and supplied verification logs. The strict fixture covers transaction ordering and both interleavings; real Firestore contention/SDK retries were not exercised by this unit evidence.

UI evidence

UI-Evidence: none -- backend-only expiry on existing API reads; no client or UI change.

Failure class (fixes)

Failure-Class: FC-stale-selection-used-as-write-authority

@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-10T11:05:17.529428Z b5d77ad 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: b5d77ad001

ℹ️ 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".

item['retryable'] = True # Repair items made permanently non-retryable by the old ledger.
item['retry'] = {'state': operation['state'], 'operation_id': operation['operation_id']}
if expiry_enabled and expired_non_retryable(item, now):
if run_transactional(db, firestore.transactional(expire_in_transaction), snapshot, now):

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 Resolve the Firestore client explicitly for expiry transactions

The new expiry path passes the legacy global db proxy into run_transactional, contrary to the Database guidance in backend/AGENTS.md, which explicitly prohibits using that proxy in new code and requires call-time client resolution with an injectable firestore_client parameter. This extends the global-client dependency into the new persistence path, so its tests must replace module-global state instead of injecting the owning client. Resolve the client with get_firestore_client() at the call boundary and use that same client for the query references and expiry transaction.

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

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.
Git-on-my-level added a commit that referenced this pull request Nov 11, 2026
…25055) (#25070)

## What changed and why

Head: `672d873b5aa2322b1e47a112e5e57fe412e5d1e4`

Replacement for #25055 (which replaced #25028) on current `origin/main`
`7ebd8450b6e023474cfe3275cf3446b28f3a710f`, carrying the reviewed
attention-expiry patch plus the independent-review FIX-FIRST corrections
at `Earlier head:` `e1c309b3e047cbfb15933fb0d2246af8829cd459`.

Supersedes #25055 because that PR is at its two-push limit and its exact
head carries two independent-review FIX-FIRST findings. This replacement
starts a fresh branch from current main, carries the same reviewed
commits, and fixes both findings:

- **Scan bound (finding `77a43d`).** `list_items` no longer streams a
user's whole active attention collection. Each query is bounded to
`SCAN_LIMIT = 500` documents, and an optional `start_after` cursor lets
a caller start from a known document. Expiry transactions therefore run
only inside a bounded scan.
- **Zero limit (finding `34c935`).** `list_items(limit=0)` (and any
non-positive limit) returns an empty list before iterating or appending,
instead of returning one item.
- **Scan cursor (finding `3d2d9d`).** A full read now pages internally
on the last **scanned** document, not the last returned one, so
filtering (resolved or expired rows) cannot repeat a window or omit
later items. The 500-row query bound and the non-positive-limit early
return are unchanged.

Carried non-merge commits from the reviewed head:

- `329a8b8fa5d` — expiry predicate and initial tests.
- `3e0e6f98de1` — transaction fencing, tests, config, registry and
documentation.
- `7d75d6a5980` — pusher literal config snapshot.

The carried patch is otherwise behavior-identical: attention expiry,
banked/completed/live-debt guards, and the flag registry. No new product
behavior beyond the two fixes. No `.github/`, UI, credentials/IAM,
production data/config, or model changes.

### Test-only follow-up (push 3)

`1252bca525de` is a test-only assertion under the driver's third-push
allowance. The 620-item pagination regression previously ended its first
500-row page on an item that was returned, so a cursor based on the last
*returned* item would have passed it too. The test now resolves the last
document of the first page and asserts the second page's `start_after`
is that document, protecting the last-scanned cursor in
`processing_attention._scan_pages`. No product code changed.

### Firestore client seam (Codex P1 `4529060103`, lead2 `f66b9e`)

`672d873b5aa2` fixes the review finding that the new expiry path used
the legacy module-level `db` proxy, contrary to `backend/AGENTS.md`.
`items_ref`, `_scan_pages`, and `list_items` now resolve
`get_firestore_client()` at call time and expose an optional
keyword-only `firestore_client` parameter; the bounded scan, the
conversation/claim reads, and the expiry transaction use that single
resolved client. The new expiry tests inject `firestore_client` instead
of monkeypatching `store.db` (the module fixture now supplies the same
fake client through `get_firestore_client` so the unconverted
claim/finish helpers and HTTP route keep working). `db` remains only in
the unconverted claim/finish helpers and `pending_conversations`.
Pagination, cursor, and expiry-predicate behavior are unchanged; the
delta is 15 non-test changed lines in one file plus the test seam.
Merge-main resolutions under `1c606e` are unchanged from
`71aff3e888f4e`.

### Merge-main resolutions (lead2 `1c606e`)

This head is a merge-main resolution under lead2 `1c606e`.

`71aff3e888f4e` merges current `origin/main` (`a73632ce0ec9`, which
carries C2's operator-ledger census read from #25084) into the branch.
Six files conflicted, all additive on both sides and resolved by keeping
both: `config/feature-flags.yaml`,
`backend/tests/unit/test_verify_pusher_config_references.py`, and all
four `backend/charts` listen/pusher values (this PR's
`PROCESSING_ATTENTION_NON_RETRYABLE_EXPIRY_ENABLED` and main's
`SYNC_RECORD_COVERAGE_WAIT_MEMO`), plus
`backend/config/flag_budget.json`, where `count` is reconciled to
**271**, equal to the 271 names on the merged head.
`backend/tests/support/firestore_query_driver_registry.py` auto-merged
and was then checked against both parents: this PR's attention cursor
entries (`list_items` with `start_after`, `_scan_pages` covered-by) and
C2's census entries (`pipeline_ledger.iter_global_window`,
`pipeline_ledger.retention_start`,
`pipeline_ledger_census._capture_creates`,
`pipeline_ledger_census.census`) are both preserved, and the delta
against `origin/main` is exactly this PR's patch (19 files). No product
behavior changed; the reviewed patch is unchanged.

`Earlier head:` `5ad54d2f0d8f2` merged `origin/main` (`8fa2cbd36487b`,
the main-wide notes prompt-pin fix from #25108); that merge was clean
and `flag_budget.count` was 270 there.

`Earlier head:` `bf6efab1c7bf6` merged `origin/main` (`8659de6ee98d9`,
which carries the main-wide messaging flake fix from #25018) into the
branch, so the previously red messaging check ran against the fix. Five
files conflicted: `config/feature-flags.yaml` and both
`backend/charts/backend-listen` listen values (additive env/flag entries
on each side, kept both), `backend/config/flag_budget.json` (`count`
reconciled to 270, equal to the 270 names on the merged head), and
`backend/docs/pending-work.md` (narrative paragraphs from both sides
merged, keeping the `HOME_STEP_PROJECTION` text and the
bounded-attention text). No product behavior changed; the reviewed patch
is unchanged.

`Earlier head:` `047de1b18fb7` merged the prior `origin/main`
(`75dc53a81df7`) under the same ruling; its only conflict was
`config/feature-flags.yaml`.

## Product invariants affected

- INV-MEM-4: the runtime change only adds attention expiry
configuration; canonical memory consolidation and promotion authority
retain their existing configuration. Attention expiry is distinct from
Short-term memory disposition.

## Tuning and rollback

- `PROCESSING_ATTENTION_NON_RETRYABLE_EXPIRY_ENABLED`: default on.
Setting the declared value to `false` and recomposing runtime
configuration disables new expiry writes. All backend services and
matching listen/pusher charts carry the binding.
- `NON_RETRYABLE_ITEM_TTL`: seven days from `created_at`, exclusively
for `recovery_structure_unavailable` after retry reconciliation.
- `SCAN_LIMIT`: 500 active attention documents examined per query; a
full read pages internally on the last scanned document.
- Bundle kill switch: `HOME_STEP_PROJECTION` (existing, default on).
Turning it off is the L4 rollback.
- Rollback is the flag off; no data migration. Expiry is terminal:
already-expired documents remain inactive after disabling the switch,
and no automatic data restoration is claimed.
- L4 success metric: **no processing rows on past days**.

## Verification

Fresh checks of head `672d873b5aa2` on m5 through
`/Users/dazheng/workspace/omi/bin/omi-heavy run -- ...`, with GCP
credential environment variables unset and worktree-local Python 3.11
dependencies:

- Attention/pending-work set (13 files, including
`test_batch_pipeline_scheduler.py`): **360 passed** across the 13 files
run; `test_pending_work.py` alone: **76 passed**, including the
strengthened 620-item pagination regression and all expiry tests, now
with `firestore_client` injection.
- Full query-shape battery `test_firestore_query_shapes.py` (now
covering both driver sets): **572 passed**.
- Flag budget: **24 passed** (`flag_budget.count` 271 equals the 271
names on the merged head). `test_verify_pusher_config_references.py`:
**31 passed**. Runtime-env validator: **206 passed**. Notes
prompt-version node `test_llm_input_prompt_version.py`: **6 passed**
(including `test_prompt_sources_match_the_pinned_digest[notes]`).
Combined five-file run: **839 passed**.
- Normal full pre-push hook: **PASS**, 0 failures.
- The new cursor assertion was confirmed load-bearing: mutating
`_scan_pages` to advance on the second-to-last page item fails it with
`[None, 'item-0498'] != [None, 'item-0499']`.

Evidence is hermetic; real Firestore contention/SDK retries and deployed
behavior are not claimed.

## UI evidence

UI-Evidence: none -- backend-only expiry on existing API reads; no
client or UI change.

## Failure class

Failure-Class: FC-stale-selection-used-as-write-authority
kodjima33 added a commit that referenced this pull request Nov 21, 2026
## Problem

Activity "Needs attention" rows can only be retried or opened. Rows
whose recording has no transcript fail every retry, so they never leave.
#25353: one user has about 60 stuck rows back to Oct 19.

The backend already has `POST /v1/attention-items/{id}/dismiss`
(backend/routers/pending_work.py) and the app has
`dismissAttentionItem`, but nothing in app/lib called it.

Prod, read-only Firestore scan of `processing_attention_items` metadata
(2026-11-19 11:06 UTC): 10,536 active items, all
`conversation_summary_failed`, across 1,113 users. 347 users have 5+
active items, 114 have 5+ older than 7 days, and the largest account has
627.

## Change

- Swipe left on a server Needs attention row to dismiss it. The
background is neutral grey and says "Dismiss". There is no new button,
tab or setting.
- VoiceOver gets a "Dismiss" custom action on the same rows (the same
pattern as conversation screenshots). The existing `dismiss` string is
used, so no new copy.
- `PendingWorkStore.dismiss` (injected like `retry` / `markSeen`)
removes the row at once and calls the endpoint. If the request fails,
the row comes back in place with the existing quiet "Something went
wrong" line, and a 404 counts as already gone. A read that was already
running cannot bring the row back, and an ambiguous earlier retry keeps
its idempotency key.
- When an attention row goes away, Activity's projected failure row for
the same conversation would take its place ("Processing Failed"),
because an untitled, empty-transcript conversation classifies as failed
(backend/utils/conversations/home_step.py). The store now keeps
dismissed conversation ids in `attentionConversationIds` and saves them
on the device per account (newest 500), so a dismissed row also stays
gone after a relaunch.
- The saved dismissed list is per account
(`dismissedAttentionConversations.<uid>`). `reset()` (sign-out, account
switch) drops the in-memory copy, so the next account never hides or
re-saves the old one's ids.
- A new attention item for a dismissed conversation takes it off the
list, so a new failure shows again.
- Home's bell skips failed v3 conversations that Activity lists under an
attention row or hides after a dismiss, so the dot cannot stay lit with
nothing to open (activity_bell_button.dart).

Files: app/lib/services/pending_work/pending_work_store.dart,
app/lib/pages/activity/needs_attention_section.dart,
app/lib/pages/activity/activity_bell_button.dart, tests, changelog
fragment.

## Impact estimate

If dismiss ships, monthly churn goes 11.78% → 11.78% (effect
unmeasured).

- A = 11.78% subscriber churn, ACTUAL (runs/2026-11-19/metrics.json,
Stripe live, 347 ended / 2,946).
- Reach: 114 users with 5+ active items older than 7 days, 1,113 with
any active item. ACTUAL (prod Firestore metadata scan above, no user
content).
- Rate: there is no Omi comparable for "clearing stale error rows" and
no exposure event yet, so the churn effect is not modeled.

## Evidence

Simulator, lane sim.2, iPhone 17 Pro iOS 26.4, re-shot 2026-11-21
against main fa56be0. Both builds use the same seeded state: 5
failed-summary attention items, 3 left swipes, then a relaunch.


![before-after](https://raw.githubusercontent.com/BasedHardware/omi/f09fa23a31dd63d441f8171a38ab47b29a04b26b/.agent-artifacts/ui-evidence/mux-2026-11-19-dismiss-needs-attention/001-mobile-ios-activity-dismiss-before-after.png)

![dark](https://raw.githubusercontent.com/BasedHardware/omi/f09fa23a31dd63d441f8171a38ab47b29a04b26b/.agent-artifacts/ui-evidence/mux-2026-11-19-dismiss-needs-attention/002-mobile-ios-activity-dark-before-after.png)
![largest
text](https://raw.githubusercontent.com/BasedHardware/omi/f09fa23a31dd63d441f8171a38ab47b29a04b26b/.agent-artifacts/ui-evidence/mux-2026-11-19-dismiss-needs-attention/003-mobile-ios-activity-xxxl-before-after.png)

| check | main fa56be0 | this branch 8c3750f |
|---|---|---|
| Activity shows 5 rows | yes | yes |
| 1st swipe left | 5 | 4 |
| 2nd swipe | 5 | 3 |
| 3rd swipe | 5 | 2 |
| relaunch, reopen Activity | 5 | 2, no projected Processing Failed row
|
| dark | ok | same |
| largest text | rows already broken | same, not changed here |

Video (not in git): ~/mobile-ux-agent/runs/2026-11-19/p1/demo.mp4 and
demo.gif.

## At ship

- No flags, no new events.
- Read after a week: rerun the same metadata scan and compare active
items per user and users with 5+ items older than 7 days.

## Tests

- `flutter test` with pending_work_store_test (optimistic removal,
restore on failure, 404, read fence, relaunch persistence, failed
dismiss forgets the saved id, account switch neither hides nor re-saves
the old account's ids, a new failure shows again), pending_work_test
(swipe dismisses, VoiceOver custom action present), v3_outcomes_test (a
dismissed, still-failed conversation does not light the bell; fails
without the bell change), test/pages/activity, notes_attention,
needs_attention_capture, processing_today_render, home_v3,
sync_attention_evidence: 144 passed, after merging main fa56be0.
- check_mobile_ux_contract, check_mobile_ui_isolate, check_brand_ui:
clean. `dart analyze`: no issues.

## Not verified

- VoiceOver on a device. Only the widget test checks the custom action.
- Projected "Processing Failed" rows that never had an attention item
still have no dismiss. That was out of scope.
- Dismissed ids live on one device, per account. Another phone may still
show the projected failure row for a dismissed conversation.
- Largest text: the rows clip on main and on this branch alike (existing
bug, not fixed here).
- No "Clear all" and no backend expiry change; #25028 covers expiry.

## Product invariants affected

none

Failure-Class: none

UI-Evidence: see the images above
(.agent-artifacts/ui-evidence/mux-2026-11-19-dismiss-needs-attention)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/25783?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/25783?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25783&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

Copy link
Copy Markdown
Member Author

When this PR returns to the merge queue, please update its branch against current main and let backend CI run on the refreshed PR. Link the fresh test_pipeline_env_surface_holds_its_budget pass and the tested head or merge SHA in the merge handoff. The November 30 budget audit found overdue entries in this PR’s older GitHub merge ref, so the previous CI run does not establish coverage for the refreshed base.

Quality tracking and merge-ref audit

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Closing under the approved stale PR disposition. This conflicting branch has no confirmed current accumulation of non-retryable items. Reopen if an owner reproduces that accumulation on current main.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

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