Skip to content

SCA-4685: Bound conversation list reads and return the completed prefix - #26407

Merged
Git-on-my-level merged 10 commits into
mainfrom
agent/omi-control-owners-sol/38ba209107e0
Nov 27, 2026
Merged

Git-on-my-level merged 10 commits into
mainfrom
agent/omi-control-owners-sol/38ba209107e0

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

  • Bound the conversation list scan and row preparation to 24 seconds from request start. Allow up to two more seconds for membership projection, admissions, and redaction before returning the completed prefix.
  • Resume offset and cursor pagination before a row whose decode or correction-overlay read exhausted the budget. Set X-Omi-List-Truncated: true on a budget cut.
  • Keep the legacy read path available through OMI_LIST_PAGE_WALL_BUDGET_ENABLED=false.
  • Isolate abandoned list reads from prefix finalization, retain retryability when the first row or final projection runs out of budget, and record truncated fallback outcomes.
  • Keep an include-discarded row retryable when preparation exhausts the page budget before the first response row; Home exposes the existing explicit retry at the unchanged offset instead of auto-loading that offset repeatedly.

Verification

  • black --check, git diff --check, and the backend async blocker gate passed (0 selected findings).
  • Passed all five targeted backend unit files on M1 through bounded omi-heavy: test_home_hidden_run_pagination.py, test_list_read_budget_contract.py, test_fsr_wq4_cursor.py, test_conversation_archive_filter_contract.py, and test_conversations_v3_contract.py.
  • test_executors.py passed on M1 through bounded omi-heavy (36 tests).
  • python3 scripts/check_feature_flag_registry.py passed; the Firestore index guard passed on M1 through omi-heavy (639 query shape tests and 41 caller witness tests passed).
  • omi-heavy run --timeout 1200 -- bash test.sh tests/unit/test_home_hidden_run_pagination.py passed (41 tests).
  • omi-heavy run --timeout 900 -- flutter test test/providers/conversation_home_has_more_test.dart passed (8 tests).
  • After rollout, confirm the revision serves 100% and collect the aggregate 30-minute production readback specified in SCA-4685.

Line-Count-Exception: app/lib/providers/conversation_provider.dart | 2554 -> 2563 | Keep the no-progress retry state in the existing Home paging owner.
Line-Count-Exception: backend/database/conversations.py | 5538 -> 5610 | Keep the bounded pagination and row preparation changes together with their established reader contract.
Line-Count-Exception: backend/routers/conversations.py | 3365 -> 3499 | Keep the route's deadline, prefix handling, and response projection in the existing handler.
Failure-Class: FC-bounded-read-exceeds-request-budget
UI-Evidence: none -- This provider change reuses Home's existing failed-page retry UI; its visual treatment is unchanged.

Refs SCA-4685

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 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-27T07:28:42.413214Z 9616b1c 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: 7f052fe678

ℹ️ 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 thread backend/routers/conversations.py Resolved

@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: 893698af23

ℹ️ 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 thread backend/routers/conversations.py Resolved

@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: 8a1cb86b0e

ℹ️ 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 thread backend/database/conversations.py Resolved

@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: f6e3e656b8

ℹ️ 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 thread backend/database/conversations.py Resolved
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Conflict repair pushed to PR #26407 as a82be4db163be6169ebeda560f4eea3b4ab3b6eb, merging latest main (676e93ea12d9) into the existing PR head (f6e3e656b85c). This was a normal fast-forward push with no force option. GitHub reports the head as mergeable; required CI checks are queued/in progress.

Targeted list tests passed: 8 suites, 312 tests, run under bounded omi-heavy. The repository pre-push gate also passed.

Pipeline lab affected selected these 15 scenarios on this head (replay mode):

Scenario Result
audio_single_recording_finish ERROR: batch lane worker_FailedWork
finish_after_long_reconnect_gap PASS
finish_after_reconnect_late_transcript PASS
finish_after_second_close XFAIL (8/10 checks)
finish_cloud_audio_off PASS
finish_double_tap PASS
finish_next_opens_before_close PASS
finish_no_closed_recording PASS
finish_on_visible_conversation PASS
finish_privacy_refused_fast_finish PASS
finish_single_recording_fast PASS
finish_transcript_never_lands PASS
home_paging_past_hidden_runs PASS
speaker_owner_absent ERROR: batch lane worker_FailedWork
speaker_owner_and_person_finish ERROR: batch lane worker_FailedWork

All three errors report a RuntimeError at vad_windows (reason=unclassified). The 100% serving check and 30-minute production readback remain pending; this local run does not satisfy them. A fresh verdict should target the exact pushed head above.

@Git-on-my-level
Git-on-my-level merged commit 4335475 into main Nov 27, 2026
70 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/omi-control-owners-sol/38ba209107e0 branch November 27, 2026 13:42
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