Skip to content

fix(images): restore parakeet and batch-worker dependency closures after #23335 - #23355

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix-parakeet-policy-closure
Oct 22, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix-parakeet-policy-closure

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Urgent fix for two runtime-image dependency closures that #23335 (wave 1 of the capture/speaker/notes refactor)
broke. Nothing rolled: the gcp_parakeet prod build failed its closure probe, and prod Parakeet is unchanged.

What broke

  1. parakeet: parakeet/transcribe.py and speaker_math.py now import the checkout shim omi_speaker_policy,
    which re-exports utils.speakers.policy. The Dockerfile copies utils/speakers/policy.py over the shim
    (the NeMo image owns the top-level utils), the same pattern as omi_logging_config. But the closure probe
    still counted utils.speakers.policy as an installed dependency:
    AssertionError: missing installed dependency modules: utils.speakers.policy, ... (run 39861808906).
  2. batch-pipeline-worker (would fail on its next build): utils/batch_pipeline/retry_policy.py imported
    utils.sync.retry_hygiene, whose sync-only dispatch helper lazily imports utils.cloud_tasks. That puts
    google.cloud.tasks_v2 in the GPU worker's closure, and google-cloud-tasks is not in
    pylock.batch-pipeline.toml.

Fix

  • backend/runtime_images.json: a dependency_probe_exclusions entry for utils.speakers.policy on the parakeet
    contract, with the same reason as the existing utils.logging_config entry. The image's copy of policy.py
    imports only the standard library.
  • New utils/capture/retry_cap.py: the dependency-free retry-cap core (RetryCap, retry_cap, observe,
    MODE, DECISIONS). utils/sync/retry_hygiene.py re-exports it and keeps the sync dispatch helpers.
    utils/batch_pipeline/retry_policy.py imports the core. No behavior change.

Verification

  • Every image's static closure (third_party_dependency_modules) was compared before (f6021c0^1) and after:
    • parakeet no longer lists utils.speakers.policy;
    • batch-pipeline-worker gains only fastapi and protobuf, both in its lockfile;
    • no other image's closure changed (19 images: pusher, desktop-backend, llm-gateway and the rest).
  • tests/unit/test_runtime_image_contracts.py plus every test touching retry_hygiene, retry_policy or the
    retry-cap code: 505 passed.

Failure-Class: FC-runtime-image-boundary

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…ter #23335

- parakeet: exclude utils.speakers.policy from the dependency probe; the
  image copies policy.py over the omi_speaker_policy shim (same as
  omi_logging_config), and it imports only the standard library
- batch-pipeline-worker: move the retry-cap core into a dependency-free
  utils/capture/retry_cap.py so the GPU worker no longer reaches Cloud Tasks

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T22:34:15.929895Z 2d3ec70 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
Git-on-my-level merged commit 81270c6 into main Oct 22, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix-parakeet-policy-closure branch October 22, 2026 22:43
Git-on-my-level added a commit that referenced this pull request Oct 23, 2026
…/actions/vocabulary, MCP read-API correctness (shadow by default) (#23358)

## What and why

Integrate wave 2 of capture, speaker evidence and notes against the
reviewed wave-1 authority. This is a branch-only handoff: no PR, merge
to main, runtime cohort, deployment or production data access. All
implementation commits use the requested co-author trailer.

- Wave 1: merged origin/refactor-integration first (2ca1c67); main
had not absorbed #23335 at intake. Its verified merge f6021c0 landed
at 2026-10-22 20:39:40Z and is now merged here.
- V1 speakers: 4c368cc. Participant hints and bounded
compatible-cluster reduction, explicit channel/near-field/voice anchors,
ambiguity-preserving people matching and enrollment quality. Applied
speakers-live-name-hook.patch. Reconciled the newer wave-1 abstention
contract: preserve unresolved identity while allowing compatible count
consolidation.
- V2 media/noise: 1519a9a. Applied media-consumer-integration.patch.
Classify before notes, keep media/noise history with deterministic
minima, suppress memory/task/recap derivation through one shared helper,
and persist terminal intelligence suppression for replay. Explicit
restore/reprocessing clears the exclusion and marker. Shared live/sync
hallucination admission remains cohort-only.
- V3 cross-device: a05a1f8. Completed-capture shared-speech
reconciliation and exact-key coverage aliases reuse the ledger and
capture-group writer. Originals and audio remain; unique secondary
speech remains visible. Streaming partial-window suppression and
automatic secondary-socket dispatch remain unimplemented.
- M MCP: 34d47d3. Correct filtered memory candidates, bounded
default lists, fair batch budgets/continuations, whole-window screen
aggregates, truthful counters/stubs, call metadata, provenance and
explicit timezones. Additive read correctness is on by default, as
authorized in lane M. Omitted timezone retains released UTC behavior.
- V4 calls/recaps/actions/vocabulary: d4509d3.
Completed-local-day/grace-period recaps, durable states and rollback
recovery, positive-evidence call metadata, owner-involved commitments
and bounded Soniox vocabulary. Applied calls-boundary-integration.patch
and calls-prompt-integration.patch, including authenticated agent
identity and cohort-sensitive notes cache identity. Automatic stale task
mutation remains partial: its producer-bound reference and canonical
CAS/reminder adapter do not exist in this lane. Older screen/desktop
producers still need explicit joined-controls evidence.

## Defaults, flags and ramp

SPEAKER_EVIDENCE_MODE, MEDIA_NOISE_MODE, CAPTURE_COVERAGE_MODE,
NOTES_PACKET_V2_MODE, EPISODE_BOUNDARIES_MODE, LIFECYCLE_V2_MODE,
CALLS_RECAP_MODE, ACTION_ITEMS_V2_MODE and STT_VOCAB_MODE remain shadow.
No serve cohort is configured. Existing client flags remain off/unknown.
Costly shadow database writers use refactor_modes.shadow_sampled:
CAPTURE_COVERAGE_MODE_SHADOW_PERCENT,
SPEAKER_EVIDENCE_MODE_SHADOW_PERCENT and
EPISODE_BOUNDARIES_MODE_SHADOW_PERCENT, each default 5.
STT_VOCAB_MODE_SHADOW_PERCENT samples source reads at default 1. Serve
cohorts always write and zero disables sampled writes. All bindings are
declared and the registry regenerated. Invalid percentages keep the
bounded default. V4 phone/calendar boundary publication is serve-only
under CALLS_RECAP_MODE; shadow projects the evidence locally without
authority writes. No CALLS_RECAP_MODE_SHADOW_PERCENT binding is needed
for this serve-only choice. On-demand recaps explicitly bypass scheduled
grace; all scheduling/backfill keeps the completed-day grace.

Owner dazheng, by 2026-10-26: synthetic integrated acceptance, reviewed
runtime digest pilot, then 1% -> 5% -> 25% -> 100%, one full lookback
window per step. Keep modes shadow while configuring sampled serve
cohorts; mode serve is the 100% stage. Align producer/consumer runtime
cohorts (especially speaker/boundary evidence with media and calls) so
sampling does not make serving evidence unavailable. No expansion until
manual/identity violations, false folds, lost unique speech/custody,
false owner-call/media exclusions, genuine-speech drops and duplicate
recap deliveries remain zero. Inspect speaker count/anchor/agreement
metrics, omi_media_noise_shadow_total (especially repeated_sentence
admission receipts), cross-device duplicate/examined lines, coverage
admits/seconds, sync failures/latency and vendor spend. No paid
duplicate generation/transcription in shadow. Rollback modes to off and
clear runtime cohorts; durable lifecycle obligations still reconcile.
Persisted groups/classifications are non-destructive and may need
restore/reprocess after rollback. Budget cohort entry for one
regeneration per fingerprint-less legacy day inside the seven-day
lookback (subject to the existing per-run backfill cap); retained IDs
and delivery receipts prevent duplicate notifications. No serve cohort
was enabled for this work.

## Review disposition

| Review finding | Status | Resolution / reason |
| --- | --- | --- |
| V1 #1 nullable speaker | Done | Never project a null cluster speaker
into a numbered segment; production-seam regression. |
| V1 #2 count metrics | Done | Producer and observer share a
voice/channel partition helper; channel splits are not reductions. |
| V1 #3 learning state quality vs stale fence | Skipped | Requires
changing the transactional publication result and learning-state
contract, beyond a mechanical fix. Existing bounded quality counter
distinguishes rejection; track before serve ramp. Enrollment and
unpublished-blob cleanup remain protected. |
| V1 #4 live name-only guard | Done | Supplied patch applied before
text-only lookup/create/map mutation. |
| V1 #5 count cues | Skipped | No threshold change without audited
acceptance data. Acoustic thresholds, cannot-links and abstention
retained; count hints cannot force incompatible voices together. |
| V2 H1 dormant consumers | Done | Patch applied; real
processing/persistence, replay, all four consumer boundaries and
restore/reprocess exercised. |
| V2 M2 genuine foreign repetition | Skipped | No evidence supports
changing the threshold here. Zero serve cohort; pilot must audit
repeated_sentence receipts before expansion. Audio custody remains
intact. |
| V2 M3 shadow reads | Skipped | Production volume validation is outside
the no-prod-reads scope. Reads are bounded; no second paid call or
shadow media-edge write. Sampled speaker/boundary writers bound
mutations; serving pilots need aligned producer coverage. |
| V2 L1 collapsed metric checks | Done | Explicit conversation bucket
and strict unknown-check rejection with regression. |
| V2 L2 admission naming | Skipped | Distinct module namespaces, no
shared caller or behavior collision; avoid unrelated public rename. |
| V2 L3 sync hook size | Done | Existing no-content settlement needs a
small hook, covered by tests and line-count metadata. |
| V2 L4 fixtures | Done | Minimal request-authority and timeline fixture
updates retained. |
| V3 dead distinct_streams return | Done | Removed unreachable duplicate
condition; unknown devices abstain. |
| V3 shadow lane label | Done | Compare accepts explicit lane; V3 does
not emit an L1 fold observation. |
| V3 serve query transaction cost | Skipped | No query semantics change
without runtime evidence. Bounded alias validation reads remain; watch
sync latency/failures before expansion. |
| M P1 default memory failure | Done | Default lists use released-size
bounded reads, return data and explicit incomplete coverage; filtered
incomplete windows still error. |
| M P2 read amplification | Done | Physical-read regression pins bounded
default source batch. |
| M P3.1 aggregate cursor | Done | Ignore stale aggregate cursor and
explain whole-window behavior. |
| M P3.2 timestamps | Done | Released strings retained unless offset
format/timezone is requested. |
| M P3.3 calendar-day stub pagination | Skipped | Intentional
bounded-date contract; an old in-flight cursor may shift across
deployment. No historical rewrite or invented failure cause. |
| M P3.4 retired/private helpers | Done | Dead collector/branch/imports
removed; shared adapters public with migrated callers. |
| M P3.5 duplicate-ID progress | Done | Absolute occurrence cursor with
regression. |
| V4 HIGH boundary authority write | Done | Parent ruling wins: both
phone record and calendar ingest are serve-only under the calls cohort.
Shadow uses local evidence; the regression holds
EPISODE_BOUNDARIES_MODE=serve and proves a non-cohort user produces no
authority write. |
| V4 MEDIUM on-demand grace | Done | Explicit user_initiated plumbing
from generate_daily_summary_on_demand bypasses grace; scheduler/backfill
do not set it. Partial-day and post-midnight grace tests exercise the
actual producer. |
| V4 MEDIUM STT uid | Done | Both legacy initial/reconnect calls and the
managed Soniox leg pass authenticated request uid. Removed get_byok_uid
fallback; real managed config and legacy call seams are tested. |
| V4 MEDIUM vague_social / incident 09 | Done | Named counterpart plus a
concrete place/time retains owner-alias commitments, including catch up
with Matt in NYC. Fourteen incident/negative cases cover missing
feedback, CV review, Deepgram check, invitation/Drive, unrelated customs
purchase and bogus hiking. Promisor/provenance authority remains intact.
|
| V4 LOW legacy-day regeneration cost | Done | Budgeted in the ramp
above; no serve cohort enabled. |
| V4 LOW dead constants | Done | Removed six unused lane constants.
Actual shared cohort bindings now live in and are consumed by
refactor_modes._COHORT_ENVS; no env behavior changes. |
| V4 LOW stripped comments | Done | Restored explanatory shared model,
finalizer, notifications and Soniox comments/docstrings; public recap
docs distinguish legacy order and serving revision/state behavior. |
| V4 LOW inverted / expired parity labels | Done | Found vocabulary
emits agree; absent expired evidence compares the retained durable call
projection. Regression assertions pin both labels. |
| Integrator runtime-image closure | Done | All 19 contracts compared
using third_party_dependency_modules against origin/main; zero added
third-party modules. Incorporated PR #23355 branch and added GPU
closure/shim regressions. |

## Conflicts and shared contracts

Resolved person_pool.py by retaining incoming quality checks and wave-1
type annotation; duplicate_capture.py retains both lifecycle serving and
cross-device imports. Generated artifacts are regenerated from
generators, not resolved by hand. ContentKind has one literal definition
shared by stored/create models and policy; request classification stays
hidden/server-authored. BoundaryKind includes media_playback once.
Participant count and owner anchor live only in SpeakerEvidence. Call
fields are additive optional Conversation metadata; explicit boundary
proof survives canonical normalization and wire round trips. V4
persisted stubs pass through M with null generated_at. Media/noise-only
days report not_generated rather than falsely saying no recordings;
actual empty days keep no_recordings. Both one-shot and agentic prompt
mounts are exercised in off/shadow/serve.

The pipeline guide records integration, sampling, call/recap/prompt
contracts, replay and pending socket semantics. The developer storage
guide explains original-recording retention and unknown/remote metadata
without publishing rollout controls. Dead-code analyzer regenerated its
baseline without new suppressions; the allowlist tool deliberately never
auto-edits allowlists. Existing evaluator-only exceptions remain, and
imported wave-1 contract scaffolds have no stale allowlist entries.

## Runtime image closure audit (fix pass)

Merged fresh origin/main at 81270c6
after #23355 landed. It merged without conflicts and leaves exactly the
same source tree as fix commit ed2c034. Before #23355 landed, also
merged origin/fix-parakeet-policy-closure at
2d3ec70; its remote branch was deleted
after merge. No unseen remote integration commits were overwritten.

The audit independently executes each revision's
backend/scripts/runtime_image_contracts.py
third_party_dependency_modules(contract) over every registered contract
(including lazy imports), without importing application code or reading
production. There are **zero added and zero removed third-party probe
targets across all 19 images** against the final main base; no new
lockfile/requirements package is needed.

| Runtime image | Added third-party modules | Removed probe targets |
| --- | --- | --- |
| backend-api | None | None |
| backend-workers | None | None |
| backend-realtime | None | None |
| backend-gateway | None | None |
| backend-pusher | None | None |
| backend | None | None |
| desktop-backend | None | None |
| pusher | None | None |
| models | None | None |
| memory-maintenance-job | None | None |
| x-connector-sync-job | None | None |
| frame-request-retention-job | None | None |
| day3-reengagement-email-job | None | None |
| notifications-job | None | None |
| diarizer | None | None |
| batch-pipeline-worker | None | None |
| parakeet | None | None |
| nllb-translation | None | None |
| plugins | None | None |

The earlier comparison against pre-#23355 main
4499deb had zero additions in all
images; the only removals were batch-pipeline-worker: fastapi.Request,
google.api_core.exceptions.AlreadyExists, google.cloud.tasks_v2,
google.protobuf, google.protobuf.duration_pb2 and
google.protobuf.timestamp_pb2; and parakeet: utils.speakers.policy plus
its BATCH_CLUSTER/PARAKEET_CLUSTER attribute candidates. Those are the
intended #23355 repairs, now present on both sides of the final
comparison.

Batch retry policy imports the dependency-light utils.capture.retry_cap
core, avoiding utils.sync.retry_hygiene -> utils.cloud_tasks.
Dockerfile-overwritten first-party shims are explicitly excluded from
checkout dependency probes: parakeet excludes utils.logging_config and
utils.speakers.policy; diarizer excludes omi_logging,
utils.logging_config and utils.stt.diarization_turns; nllb-translation
excludes omi_logging. The copied implementations are
standard-library-only. Full-backend/pusher copies use their real source
modules rather than checkout shims. Four new regressions verify the
three shim contracts and the batch worker's separation from Cloud Tasks.
Full final JSON evidence: image-closure-diff.json; earlier comparison:
image-closure-diff-pre23355.json; reproducible script:
audit-image-closure.py.

## Additional integration findings

- Done: M's successful-row timestamp fallback incorrectly gave persisted
V4 pending/failed/empty/not-generated stubs a creation-based
generated_at. The read adapter now preserves null; five direct
regressions, four actual producer-to-reader cases and a real REST smoke
cover it.
- Done: V4 used no_recordings after filtering a nonempty media-only day,
contradicting M's true recording count. That state is now not_generated,
with actual shared-policy generation regression; true empty-day behavior
is unchanged.
- Done: wave-1 abstention must preserve labels while V1 independently
consolidates compatible count clusters. Processing now keeps that
separation and null-speaker protection.
- Done: hermetic Firestore readiness fixture now includes the new MCP
query registry dependency in its copied control checkout; readiness
behavior and index enforcement remain unchanged.
- Done: whole-backend reason-label ratchet identified three new dynamic
label sites. Media/call metrics now expose closed normalization at the
label call, and person voice rejection uses a central three-reason enum
with an unknown fallback. The guard/debt list is unchanged; a new
regression prevents unbounded quality labels.
- Done: omit an empty speaker energy header so inactive cache
serialization remains byte-identical to the existing format; populated
energy metadata still round-trips. Whole-suite cache parity regressions
and four explicit cache tests cover both contracts.
- Done: isolated legacy fixtures retain real pure policies/metric owners
before package stubs, initialize media admission state, execute call
metadata in explicit off mode, and stub new profile/screen reads. Usage
tests supply eligible recordings and target the retained legacy budget
entrypoint; task response assertions include additive source without
exposing lifecycle fields. Historical telemetry byte parity runs with
speaker evidence off, while active energy cache reload has a separate
regression. Voice-pool retention fixtures use compatible, normalized
samples; V1 rejection guards remain intact.

## Validation

Pre-V4 combined validation on ec9bd4f6695: **2,725 passed across 97
focused backend files**, 15 standard marker deselections, no skips. Real
live name gating, media processing/persistence/restore, replay, recap
consumers and V4/M stub timestamps have integrated regressions.
Repository preflight: **65 selected checks passed**; metadata
validation: five passed. Separate CI slow guardrails: **2,049 passed**,
1,342 deselected (all 25 manifest files). Flutter
capture/labels/Home/parity: **86 passed, 5 existing skips**. Swift
capture/group/decoder suites: **33 passed**. Actual loopback
REST/JSON-RPC smoke: **nine passed**, external connects blocked and
synthetic stores only; server stopped. Full backend Pyright: **zero
errors**, existing warning debt retained.
App-client/public/integration-public OpenAPI and all
Dart/Swift/TypeScript generators completed; dead-code baseline
regeneration made no suppressions or tracked changes.

Final whole-backend selection: **2,244 runnable files**, **48,510
passed**, 84 skipped and 2,120 deselected by the standard marker policy.
It ran once and reported 496 failed cases plus nine setup errors across
**14 files**. Those exposed the cache header/metric-label contracts and
isolated fixture dependencies described above. All 14 failed files are
repaired: the final 15-file scoped selection passed **860 tests**,
followed by **94 passed** in the workflow fixture after its missing
module copy was added (**954 green scoped tests across 16 files**,
including the new cache and quality-label regressions). The whole suite
was not rerun. Logs: integration-full-backend.log,
integration-failed-files-final.log and integration-workflow-repair.log
in this brief directory.

Post-V4 validation also passed: full Pyright zero errors; all 25 CI
slow-guardrail files 2,049 passed/1,342 deselected; Flutter 86
passed/five skips; Swift 33 passed; loopback HTTP smoke nine passed.
Repository preflight passed 65 checks after the cache repair; metadata
passed five checks. V4/shared composition passed all 13 cases and
latest-main FinOps selection passed 113 tests across six files.
Regenerated OpenAPI and Dart/Swift/TS artifacts are current. All backend
suites use nice -n 10, the worktree-local Python 3.11 environment and
BACKEND_UNIT_TEST_FILE_LIST through omi-heavy. The normal pre-push gate
**passed** on pushed head **9fc0e7118efd407b933b7f7e1417cbfe0e958529**:
65 preflight checks, full Pyright (zero errors), runtime source closure,
the bounded 40-file backend selection, generated OpenAPI/Dart/Swift
artifacts and the native Swift build. No hook was bypassed. The remote
wave2-integration ref was verified equal to that head after the push.
GitHub reports a completed/skipped Mintlify check and no commit status
checks; this branch-only handoff does not claim full PR CI.

No production reads, api.omi.me calls, user content, cloud changes,
device claims or deployment. GCP tier: none. Local validation is not
full PR CI or production acceptance; no PR is authorized.

## Fix-pass verification

The 16-file focused selection passed 475 tests. After adding four
runtime-image regression cases, its image-contract file passed all 66
tests (the original 62 plus four new), giving **479 distinct focused
cases green across the 16 files**. Full Pyright passed with zero errors
(48,941 non-blocking warnings). Logs: fix-pass-focused-tests.log,
fix-pass-image-tests.log and fix-pass-pyright.log. The whole backend
suite was not rerun. No Flutter or Swift source changed in this pass;
the normal pre-push gate still performs its configured native/generated
validation.

The full metadata/preflight run passed 65 checks in 250.84 seconds
(fix-pass-metadata.log). The subsequent merge of main is
source-identical: both source trees are
33f6033. Current fix-pass head is
58d4c61. The normal pre-push gate
passed on 58d4c61: 65 preflight checks
(189.64 seconds), full Pyright zero errors, runtime source closure, the
bounded 40-file backend selection, OpenAPI/generated-client checks and
native Swift build/checks. The fast-forward push 9fc0e71 ->
58d4c61 completed, and git ls-remote verified that exact full SHA at
refs/heads/wave2-integration on 2026-10-22 23:15:18Z. Working tree is
clean. GitHub reported zero commit statuses and zero check runs at
verification; no full PR CI claim is made. No approval or hook bypass
was used. Log: fix-pass-push.log. Final saved handoff metadata
revalidation passed five checks (fix-pass-metadata-final.log).

## Owner-replay fixes (wave-1 code, found by the offline replay)

- Episode boundaries: screen-meeting contexts carry the shared sentinel
id `screen-activity`, so every screen window hashed to one
boundary-signal identity (a later window was rejected as an immutable
start change; batches collapsed). `context_signal` now drops that
sentinel and screen-source ids, so each window keys by its own start.
Behind `EPISODE_BOUNDARIES_MODE` (shadow writes are sampled). Test:
`test_distinct_screen_windows_get_distinct_identities`.
- Contact spelling: a contact the user created by hand (no voice labels
yet) was excluded from trusted spellings, so a correct contact name
never reached the notes prompt. `is_user_created` is written only by the
user create and rename paths (automatic detection never creates people),
so it now counts as stored user evidence. This intentionally applies to
the legacy prompt too: it only adds names the user typed.

- Shadow cost: the media/noise classifier
(`relevance_media.classify_for_processing`) and cross-device reconcile
(`coverage_crossdevice.reconcile`) read Firestore per finalize. Their
shadow now runs for a 5% uid sample (`MEDIA_NOISE_MODE_SHADOW_PERCENT`,
`CAPTURE_COVERAGE_MODE_SHADOW_PERCENT`) via
`refactor_modes.shadow_sampled`; serve cohorts always run. Found by the
default-inertness audit.

## Risks and remaining work

Precision-first speaker/media and whole-secondary alignment can abstain
or retain duplicates. Missing SNR/confidence uses deterministic
source/duration order. V3 live secondary receipt dispatch and
partial-window suppression require durable frame alignment; only exact
committed aliases may release custody. No historical memory/task/recap
repair. MCP indexes are declared but not deployed; fallback and
bounded-window uncertainty remain explicit. Historical watching
intervals and past recap failure causes cannot be reconstructed. Runtime
TTL activation and all serve ramps remain separately scoped operator
work. V4 screen/desktop positive-proof production and automatic stale
task mutation remain partial; the supplied backend boundary and both
notes prompt hooks are integrated.

Invariant-Impact: INV-AUTH-1, INV-MEM-1, INV-MEM-3, INV-MEM-4,
INV-MEM-5, INV-CAP-1, INV-TASK-2. Auth/privacy and canonical memory/task
authorities are preserved; capture custody requires exact durable proof.
No unsupported attribution becomes an owner claim.

Failure-Class: FC-split-mutation-authority
V3 lane classification: FC-same-speech-captured-twice-surfaces-twice
M lane classification: FC-raw-page-limit-before-visibility-filter
Failure-Class-Guard: backend/tests/unit/test_cross_device_coverage.py
Failure-Class-Guard: backend/tests/unit/test_wave2_media_integration.py
Failure-Class-Guard: backend/tests/unit/test_mcp_read_correctness.py

Wave 1 client evidence is retained in this integration; V2 adds no UI
source:
![Shadow
Home](https://raw.githubusercontent.com/BasedHardware/omi/5d66b99f2460e1a591d87df7323789244180f7ca/.agent-artifacts/ui-evidence/refactor-l5-clients/001-mobile-ios-home-shadow.png)
![Serve
Home](https://raw.githubusercontent.com/BasedHardware/omi/5d66b99f2460e1a591d87df7323789244180f7ca/.agent-artifacts/ui-evidence/refactor-l5-clients/002-mobile-ios-home-serve.png)



Line-Count-Exception: backend/database/users.py | 2496 -> 2507 | Small
authority integration hooks; substantive policy lives in focused owning
modules.
Line-Count-Exception: backend/routers/listen/receiver.py | 2780 -> 2782
| Thread authenticated request identity into the two existing Soniox
call sites; vocabulary policy stays in its owning module.
Line-Count-Exception: backend/routers/listen/transcripts.py | 1648 ->
1655 | Small authority integration hooks; substantive policy lives in
focused owning modules.
Line-Count-Exception:
backend/utils/conversations/process_conversation.py | 3212 -> 3233 |
Small authority integration hooks; substantive policy lives in focused
owning modules.
Line-Count-Exception: backend/utils/conversations/speaker_resolution.py
| 1560 -> 1564 | Small authority integration hooks; substantive policy
lives in focused owning modules.
Line-Count-Exception: backend/utils/sync/pipeline.py | 3657 -> 3671 |
Small authority integration hooks; substantive policy lives in focused
owning modules.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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