Skip to content

SCA-3682: Restore backend release eligibility registry checks - #26188

Merged
Git-on-my-level merged 1 commit into
mainfrom
agent/m1-studio-codex-sol/8d5740e1570b
Nov 24, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
agent/m1-studio-codex-sol/8d5740e1570b

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What changed and why

Restore the feature-flag registry check for backend Release Eligibility. Main c7185f1df2d4 fails on the expired indexed-list graduation. The other three rows produce lifecycle warnings. Shipping disposition · Release Eligibility run

  • Reopen OMI_INDEXED_LIST_READS_ENABLED as pending and undecided. Its DEC-BTR-002 ramp requires both indexes READY, a 5% canary for 24 hours, and 100% serving readback before code removal. The registry requires the historical review date plus one extension to set the effective review and ramp deadline to December 1.
  • Classify WhatsApp registration and backfill UID sequencing as default-off configuration switches. Classify WAL audio coverage as a default-on operational kill switch. The schema requires retained rows to use terminal keep and omit the rollout review date. The two sync rows were previously recorded as with_legacy/off. Their plan C retirement notes remain in the registry.
  • Regenerate the registry reference. Runtime values, code reads and deploy manifests are unchanged.

Rollback by reverting this PR. Shipping owns the integration and sync release decisions on the first eligible main SHA.

Product invariants affected

None.

How it was verified

  • python3 scripts/check_feature_flag_registry.py --as-of 2026-11-24 passed with the rendered reference included.
  • make preflight passed all 20 selected checks, including the registry fixtures.
  • git diff --check HEAD^ HEAD passed.

Tests

Existing registry and renderer checks cover the metadata changes.

UI evidence

UI-Evidence: none

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T02:30:56.019442Z 2972b48 PR opened
ℹ️ 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

Copy link
Copy Markdown
Member Author

Independent panel review at 2972b48db161a399be4222330a265d3792ec440f (omi-panel review-20261124t030349-36f6; luna and glm-flash completed, deepseek returned empty): REVIEW: SHIP. Two non-blocking findings for the author to triage: F1 (minor) the rendered ramp table shows the stored ramp.done_by 2026-11-16 although the extension makes the effective deadline 2026-12-01; F2 (nit) the three relabeled rows drop review_by without a "previous review_by" note, unlike OMI_IMESSAGE_CONTACT_CARD. Details on SCA-4084.

@Git-on-my-level
Git-on-my-level merged commit c4bb578 into main Nov 24, 2026
67 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-sol/8d5740e1570b branch November 24, 2026 03:23
Git-on-my-level added a commit that referenced this pull request Nov 24, 2026
… a fast first transcript (#26192)

## What changed and why

SCA-3024. On conversations v3, a manual finish (Finish, End, Wrap Up or
a pendant double-tap) often never produced a summary on Home, and when
it did the wait was minutes.

The branch's first commit is #26188's registry fix (merged
2026-11-24T03:23Z), carried so the pre-push preflight could pass before
that merge; its content is already on main.

### 1. The manual end was lost (on by default)

Mobile captures are server-batch-only: when the user finishes, the
recording has audio and no transcript. The finalization worker closes it
through `complete_server_batch_capture` and never reaches the transcript
path that calls `changed(manual_end=True)`. The batch transcript then
landed as ordinary speech, so the window waited for five minutes of
silence plus the lock delay, stayed live while the pendant kept
recording, and a short window was hidden from Home because it carried no
manual end.

The terminal transaction now stores `v3_manual_end_requested` when the
finalization job's trigger is `client_finalize`. Record admission, which
knows the recording's batch units, promotes it to `v3_manual_end` for a
single-unit recording. Several units project one at a time, and a cut on
the first projection would lock a partial window, so those keep today's
timers unless part 2 takes them.

Evidence, owner account only, metadata only, `ro-prod`,
2026-11-24T02:28Z: of the 11 most recent manual finishes of v3
recordings, 9 took the `server_batch_capture` branch and none of those
carried `v3_manual_end`; most of their derived rows were `home_hidden`.
The 2 that had a live transcript carried the marker and were visible.

### 2. First transcript ahead of the batch pipeline (default: empty
cohort)

Even with the marker, the transcript arrives late. On the owner
account's last four manual finishes the GPU result was ready 26 to 43 s
after the finish request, and it was delivered to the conversation at 95
to 474 s. The time is in ordered merge and projection discovery (see
`2026-11-14-record-post-seal-latency.md`).

After record admission commits for a manually ended v3 recording,
`utils/conversations/v3/fast_finish.py` transcribes every unit once
through the prerecorded provider for the recording's language, stores
the cut, and writes the result with `update_conversation_segments`. That
write marks the recording pending and wakes reconcile, so notes start at
once. The batch record projection still owns the canonical transcript
and replaces these segments inside each unit span. The writer refuses
the fast write once `record_projection_revision` is set, and the row is
re-read just before the write so a delete, discard or lock during the
provider call wins.

Skipped: recordings over 20 minutes, partial records, custom STT,
locked, discarded and private rows. Every failure is counted and
swallowed; admission's result never depends on the pass.

Review history, all fixed on this head:
- An independent review before the first push: cold cohort cache on the
event loop, partial-window lock on multi-unit records, the pass starting
before admission committed, no re-fence before the write, speaker
numbering shifted by provisional rows, shared reference dicts.
- omi-panel review-20261124t032703-97e6 at `be07005537` (FIX-FIRST, 15
findings, 14 accepted): the row is re-read before any audio is sent to
the provider; a multi-unit recording is cut only after the
whole-recording transcript is written; provisional edge padding is at
most 2 s and stays inside each unit; at most 8 units per pass and two
passes at a time; the new metric families are allowlisted on the
backend-integration scrape; the legacy `force_process` job shape counts
as a user finish; promotion requires `finished_at`.
- Release review at `be07005537` (VERDICT: FIX): eligibility is decided
on a decoded row, because stored segments are compressed even when
empty; the pass goes through the shared consent and funding gate
(`sync_admission`, lane `batch`) before any provider spend.
- Batch-custody objection: the hook runs only when the intake answered
`batch` for this binding's own job.
- omi-panel review-20261124t044029-343b at `c406738c5b` (FIX-FIRST, 3
findings, all accepted): the provisional write judges the stored row
inside its transaction; a single-unit cut promoted after speech landed
leaves the recording pending; an undecodable stored transcript is never
treated as empty.
- Goal-owner ruling on SCA-4084 (05:43Z), the account opt-out finding:
the pass asks the batch privacy fence (`tx.check_privacy` at the
generation admission was granted under) before any audio is read and
again at the provider boundary, and fails closed on a refusal, an error
or a missing check (outcome `privacy_blocked`).

## Cost

- Part 1: one extra field on a write that already happens, plus one read
and one write at admission to promote a single-unit recording.
- Part 2, per manual finish of an admitted owner: one provider
transcription of the recording, one more download of its retained audio,
one transcript write and one reconcile wake that would otherwise happen
later. No new polling, timer or scan.

## Rollout and rollback

- `CONVERSATIONS_V3_BATCH_MANUAL_END` defaults to on. Off (on `backend`)
restores the previous behavior for later finishes.
- `CONVERSATIONS_V3_FAST_FINISH` defaults to `cohort`: members of the
runtime rollout cohort `v3-fast-finish`, which is empty until someone is
added with `scripts/rollout_cohort.py --add` (no roll). Ramp: the owner
account first, for a production readback of finish to summary seconds;
then `on` for every v3 owner. Clean metric:
`omi_conversations_v3_fast_finish_total` written share with
`provider_error` and `write_error` near zero, no rise in v3 rewrites or
blocked reconciles, provider spend per manual finish. Expander: Goal:
Pipeline owner with David. Done by 2026-12-01. `off` stops new passes.

## How it was verified

- `test_server_batch_completion.py`,
`test_conversations_v3_fast_finish.py` and
`test_background_task_ratchet.py`: 122 passed. They cover the request
marker, promotion, the kill switch, the gate, eligibility, audio layout
with gaps, timestamps on the recording clock, the re-fence, every
failure outcome, single versus multi-unit handling and a retried
admission.
- Every unit file that exercises `admit_recording` or
`complete_server_batch_capture`, plus the new file: all passed. The full
pre-push preflight, including the backend unit suite, passed at
`c406738c5bf`.

No production deploy or serving readback yet. The provider call and the
replacement by the batch projection have not been exercised against real
services; the owner-cohort step exists to do that.

## Product invariants affected

- INV-DATA-1
- INV-CAP-1

Failure-Class: none

Line-Count-Exception: backend/database/conversation_finalization_jobs.py
| 3724 -> 3750 | The manual-end request is written inside the existing
terminal transaction that closes an audio-only capture, so it commits
with the status change.
Line-Count-Exception: backend/database/conversations.py | 5504 -> 5515 |
The provisional transcript write must judge the stored row and the batch
privacy fence inside the existing segment-write transaction; one
optional predicate and one optional guard on that writer.
Line-Count-Exception: backend/database/conversations_v3.py | 1466 ->
1500 | The manual-end promotion is a v3 recording marker write beside
mark_pending, which owns the same fields.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Git-on-my-level added a commit that referenced this pull request Nov 27, 2026
…goes red (#26203)

Multica: SCA-4137.

## What changed and why

[omi#26188](#26188) restored
Release Eligibility after an expired feature flag made the registry
check fail. The checker had already emitted warnings naming the owner,
but those warnings had no dedicated place to track action.

- Run the existing checker daily at 00:11 UTC. A newly approaching
deadline enters its three-day window at 00:00 UTC, so the first
scheduled scan is 71 hours and 49 minutes before it can fail main.
- Publish the checker’s warnings in one GitHub issue with the recorded
owner, deadline type, due date, break date, and the choices to ramp,
retire, or add one eligible extension. The issue links the registry and
is reused across runs.
- Run on a schedule only. The existing registry checker, flag rows, and
required PR checks retain their behavior.

## Product invariants affected

None.

## How it was verified

- The registry fixture produces a warning with a multiword owner and
exact dates three UTC days before the break date. The next scan adds a
second flag by updating the issue created by the first scan, even after
its title changes.
- `actionlint .github/workflows/feature-flag-deadlines.yml`
- `make preflight`
- `git diff --check origin/main...HEAD`

The hosted schedule will become eligible to run after merge.

## UI evidence

UI-Evidence: none


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/26203?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/26203?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26203&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 added a commit that referenced this pull request Nov 29, 2026
## Scope

Backport [#26103](#26103)
(`34831db99152f11ddca1dacdca1bf3df360d55e1`) onto
`96f06315ca05f0d55c3cc9b84bfcb0bff877ca22`. Both digests observed
serving under `96f0631` came from that SHA. [Production build-only
run](https://github.com/BasedHardware/omi/actions/runs/44975352162) ·
[Production backend-sync
build](https://github.com/BasedHardware/omi/actions/runs/44992934744)

-
`sha256:b6fbdcb78a6a33f3d3c82ea7048fa71b052e458b24881b33f6f86bbd08f79171`,
18 ready pods at readback.
-
`sha256:33b5f757e93dc60cf8ebc017b944b236a49c959a1d6016a039b0ac4529de7d20`,
12 ready pods at readback. The registry currently resolves `96f0631` to
this digest.

One additional commit takes the `OMI_INDEXED_LIST_READS_ENABLED`
registry row from
[#26188](#26188) and
regenerates its reference at the release base's existing as-of date. The
base's expired graduation blocks the required pre-push check. This
changes registry metadata only and carries zero additional runtime
dependencies.

Automatic empty-generation teardown retains `chunks`, `audio`, and
`raw-live`. It inventories retained object versions read-only and logs
the count or inventory error type. The approved logging follow-ups hash
owner and conversation IDs in both new events. The purge ERROR uses
fixed reason codes and generation counts. The shared
`StoragePrefixPurgeBlocked` message also carries a fixed reason code and
generation counts. Its typed object map stays available for aggregation.
Existing merge cleanup and durable erasure can render the exception
without including stored object identities. The conversations router is
the only router in the diff.

## Explicit erasure compared with `96f0631`

- The serving base aborts at the first prefix delete failure. #26103
tolerates object-not-found and stale-generation races in the six non-WAL
conversation prefixes, then relists to verify the result. For protected
generations still present, it collects the hold results and continues
deleting eligible objects from the rest of those prefixes. A permission,
bucket, unverified-only, or strict WAL failure still aborts immediately.
No per-object deletion precondition is weakened.
- Bucket order comes from a set, so neither version guarantees which
bucket runs first. The base reaches each bucket's WAL only after that
bucket's preceding prefixes succeed. #26103 still interleaves WAL with
each bucket's prefixes. A WAL sweep from an earlier bucket can therefore
finish before a hold is discovered in a later bucket, as it could on the
base. Once a protected-prefix result is collected, the shared guard
skips WAL for the current and every subsequent bucket. Any WAL sweep
that runs still uses the strict generation and metageneration
preconditions and stops on the first failure.
- On `96f0631`, a protected-prefix failure aborts before any
private-sync sweeps that have yet to run. #26103 still runs the
private-sync `raw-sync` and `raw-mobile-batch` sweeps for blobs whose
metadata links them to the conversation when execution reaches that
bucket, even after a protected-prefix result. It then raises the
aggregate unless an intervening failure aborts sooner. This permits
additional partial erasure of linked originals while the protected
generations remain. Shipping explicitly accepted this ordering for
explicit erasure on SCA-4091. Both logging follow-ups preserve it.
- The accepted-erasure runner still calls the strict purge directly and
propagates failures for durable retry. Post-response conversation
deletion logs typed prefix failures once. The separate account wipe
retains its fail-fast path and its existing hold checks.

## Verification

- `omi-heavy run -- bash backend/test.sh` with the 10 unit files changed
by #26103: 491 passed, 1 Firestore emulator test skipped. The new
regression test checks `str(error)` and `sanitize(str(error))`, the
rendering used by the durable erasure task.
- `omi-heavy run -- bash backend/test.sh
test_conversation_lifecycle_contract.py
test_listen_lifecycle_rollover_isolation.py
test_live_capture_lifecycle.py`: 52 passed.
- Pre-push passed, including all 45 selected shared preflight checks,
backend type checking, and the hook-selected backend tests.
- `git diff --check 96f0631 HEAD` passed. The SCA-2533 commit's stable
patch ID matches the upstream merge’s first-parent diff.

## Image and release

The backend Dockerfile is `backend/Dockerfile`. The production
`build-only` path requires main ancestry and a successful Release
Eligibility **push** run on `main` for the exact carrier SHA. A
tree-neutral merge would establish ancestry and generate proof for the
merge commit. A manual workflow dispatch on the carrier cannot produce
the exact-SHA main push receipt. Shipping withdrew the tree-neutral
route and referred branch-specific build admission and exact-head proof
to David. Publication remains blocked pending that ruling. The listen
Helm workflow consumes an already-published tag in production and its
forward deploy updates the NEG exporter as well. The production handoff
is the approved, image-only listen Deployment patch after full review
and Shipping GO. The inverse is `96f0631`.

Review requires omi-panel plus an Owners batch-custody check at the
exact head. Release readback covers listen 5xx and route 2xx at 10 and
30 minutes, and zero post-roll events in Error Reporting group
`COq2w_fF6o7I3gE`.

Failure-Class: FC-audio-cleanup-before-durable-custody
Line-Count-Exception: backend/routers/conversations.py | 3080 -> 3101 |
Report typed audio-prefix failures with hashed IDs and bounded outcome
metadata while preserving durable erasure retries.
Line-Count-Exception: backend/utils/other/storage.py | 2775 -> 2803 |
Keep inventory, protected-generation aggregation, and the
original-custody WAL sweep with the conversation storage functions.
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