Repository navigation
Add a private production-path transcript quality scorecard - #23435
Git-on-my-level wants to merge 13 commits into
Conversation
Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep decoded capture durations and persisted overlapping groups honest, use the shared conversation speaker allocator, verify model reference provenance, and add held-out enrollment diagnostics. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Count allocated conversation voice IDs across unit scopes, and reject mismatched source crops or model locks before WER. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Validate original source, crop, configuration and payload hashes without changing inference output or requiring a centroid enrichment implementation. Failure-Class: FC-independent-owner-voice-accepts Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preserve original inference identity while rerunning persisted projection, without repeating private audio inference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep the unit CPU guard focused on the exercised behavior while preserving the production projection calls. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The exact guarded runner now passes all 19 evaluator tests without changing duration budgets or exercised projection behavior. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Use the external evaluation environment in the runnable command, matching the private-artifact and runtime-image guidance. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Use fixed synthetic tool output and verify the complete invocation so CI never depends on a personal decision-mill installation. Real local task generation retains the authoritative installed tool. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3cc60f473a
ℹ️ 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".
| settings = { | ||
| 'device': device, | ||
| 'dtype': dtype, | ||
| 'packages': model_versions, | ||
| 'model_batch_size': 1, | ||
| 'provider_config': asdict(provider_config()), |
There was a problem hiding this comment.
Include effective worker switches in the inference cache key
When rerunning a corpus with a different BATCH_PIPELINE_SHORT_SPEECH_SINGLE_ENABLED or BATCH_PIPELINE_DIARIZE_SPEECH_ONLY_ENABLED value, the cache key remains unchanged because neither switch is included in provider_config(). However, PipelineWorker reads these switches directly to select its diarization behavior (backend/diarizer/batch_pipeline.py, including the short-region branch at line 933). Consequently, an existing cache bypasses inference and reports results from the previous policy as evidence for the new run. Capture these effective switches in the settings used for cache keys and archive configuration verification.
Useful? React with 👍 / 👎.
| prep = module('prep_speaker_task') | ||
| viewer = module('build_viewer') | ||
| cluster_tool = module('cluster_speaker_task') |
There was a problem hiding this comment.
Avoid mutating the module registry during test collection
During pytest collection, these calls execute module(), which assigns each loaded script into sys.modules without restoring the previous entries. This violates the explicit test-isolation rule in backend/AGENTS.md: tests must not mutate sys.modules at module scope. Wrapping the assignment in a helper does not change when it executes. Import the scripts through their existing scripts.diarization_eval package instead, or use fixture-scoped isolation that restores the registry.
AGENTS.md reference: backend/AGENTS.md:L224-L224
Useful? React with 👍 / 👎.
Retain original archive identities with explicit switch evidence and use package imports for isolated viewer tests. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move the optional injected keyword-only arguments before the existing publish argument. Defaults, callers and execution behavior stay the same. The reviewed candidate combines cleanly with current main without importing its changes. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
…peaker IDs (#23364) (#23381) Fix live/offline transcript overlap without collapsing different unidentified voices or renumbering a committed scoped voice on replay. - Reuse known identities only for new legacy sync scopes; persisted scope bindings and batch acoustic/manual authority win. - Join anonymous live windows only for the same persisted scoped voice. Fuzzy matches require compatible duration and a unique live occurrence, preserving genuine repeated speech. Validation: combined integration of #23435/#23461/#23463 plus this branch passed 143 focused backend tests, backend typecheck (0 errors), and 56 unchanged Flutter speaker/playback mapping and widget tests. PCM/Firestore integration tests use synthetic audio and real assignment/receipts; fake player I/O does not qualify native audible playback. Standalone and preflight evidence is recorded below. Draft: exact-head GitHub CI is unverified (Code Review requires GitHub reconnection). The private frozen audio, speaker truth, enrollment and model receipts used by #23461/#23463 are absent here; last measured speaker-quality gates still fail. These safety fixes do not establish model accuracy or Mike's recovery. No deployment or customer-data changes. Related quality work remains #23461 and #23463; backend merge and deployment are still required. Failure-Class: FC-offline-merge-clock-offset-dup Refs #23364 Refs #22755 Keep #23364 open for the wider quality and released-build acceptance; this overlap fix alone does not close Mike’s complete report. Combined runtime verification: all 87 tests in `backend/tests/integration/test_batch_pipeline_projection_firestore.py` passed on loopback Firestore 1.21.0 (Python 3.11.15). This includes chronological ordering, competing transactions, restart/replay, manual and privacy authority, multipart PCM seeks and the real HTTP sync-status boundary. Four original failures reproduced on unchanged main c10d3ca; fixture fixes retain existing contracts rather than altering production retry or quality rules. Standalone branch verification: 63 allocator/sync safety tests through backend/test.sh and 37 replay-tool tests passed. Pinned Python 3.11.15 backend typecheck: 0 errors. Reproduction commands (from the repository root, after `make setup`; loopback emulator only): ```sh printf '%s\n' tests/unit/test_stt_speaker_identity.py tests/unit/test_safety_wal_dual_write.py > /tmp/mike-tests.txt BACKEND_UNIT_TEST_FILE_LIST=/tmp/mike-tests.txt BACKEND_PYTEST_WORKERS=2 bash backend/test.sh PYTHONPATH=backend backend/.venv/bin/python -m pytest backend/tests/unit/test_sync_live_dedupe_replay_tool.py -q (cd backend && PYTHON=.venv/bin/python bash scripts/typecheck.sh) OMI_PR_BODY_FILE=/path/to/this-pr-body.md make preflight ``` Local manifest preflight: 32 selected checks passed. The failure-class history ratchet reports a local shallow-history skip, so its full-history CI verdict remains unqualified. No Release Eligibility or remote CI pass is claimed. Published head: bf45fc2; normal bounded pre-push gate passed.
|
Folding batch (2026-11-04): this branch's tip was merged into the survivor PR #24477 ( |
|
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:
Before your next PR, please skim:
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! |
The local scorecard runs pinned production batch adapters, projection and the conversation speaker allocator with private filesystem storage. It scores persisted transcript names and turns against fixed hand-labelled word clocks, with no fitted identity mapping. The local admission duration uses decoded PCM while the frozen crop and reference-word denominator stay unchanged. Cache and reference checks bind source audio, crops, model revisions, dependencies, decoding settings and seven resolved worker switches. Archive reuse rejects absent or mismatched switch evidence; historical receipts keep their original hashed settings and keys. Viewer tests use normal package imports without collection-time module registry mutation.
Five-recording CPU FP32 baseline: automatic owner/enrolled identity 0/4,415 words (0%); strict all-word identity 0/10,541 (0%); wrong-name plus false-owner 0%; Hungarian 1:1 oracle diagnostic 91.1%. Truth/output speaker counts are 2/6, 2/10, 2/27, 5/25 and 3/51, including separately allocated persisted gap voices. The engineering gate FAILS; missing compatible batch centroids leaves naming anonymous. Parakeet WER against a pinned large-v3 model reference is 32.2%; this measures model disagreement, not human WER. Against the same model reference, faster-whisper base disagreement is 66.9% and MLX Whisper-base disagreement is 47.3%; both engines completed all five identical crops. Faster-whisper base ran CPU int8; MLX Whisper base and large-v3 ran locally on Metal FP16. The held-out enrollment-rich baseline remains anonymous and is diagnostic only. Non-English: NOT EVALUATED.
The production adapters use CPU FP32 with shipping checkpoint revisions; serving still enforces one CUDA GPU and BF16 ASR. An integrity audit verified all 10 cached community-1 repository files against canonical public metadata, including all five referenced model/config assets. Download authorization and runtime equivalence remain distinct claims. A blinded local review builder uses real persisted output, balanced A/B sides, archived reference turns with a strict <2-second join, audio and free notes; it refuses fabricated or missing comparisons and preserves judgments.
Validation: focused evaluator/assignment suites plus a 20-test archive/reference/runner suite, independent code review, and all 32 final local preflight checks passed. All five persisted baseline projections were re-scored with verified model references and immutable inference receipts. Historical receipts predate capture of seven worker switches; those values remain UNKNOWN, so these measured historical outputs are not qualified as compatible current inference caches. The hardened loader blocks their reuse rather than guessing launch settings. The push gate runs on the final commit. Review regressions passed 36 exact guarded tests. Historical head be939b8 had terminal green CI; two earlier full-suite shards had passed assertions but exceeded the existing wall budget. Current-head CI is recorded separately below. Filesystem assignment does not qualify Firestore transactions or rendered app playback. No production account reads, deployment, or private audio transfer. Verified archive reuse retains all five original inference identities, explicitly labels original provider configuration as reconstructed from the original launch, and reruns the corrected allocator/projection. The original dev-operator use was dev-cluster inventory only; no GPU resource was created. The resumed implementation used no GCP tier.
Product invariants affected
none
Failure-Class: none
Current follow-up
e7a2144f63edonly relocates optional keyword-only constructor arguments before the existing publish argument. Defaults, callers and execution behavior are unchanged. Independently verified preimages, hashes and restricted AST equivalence match the measured baseline; a read-only merge-tree simulation is clean against observed main4ff21eaf085bd21a93a7986666a663e5c7491eb9. No main implementation was imported and no merge, rebase or force push occurred. Normal all-hook publication completed successfully at e7a2144. All 32 local preflight checks, full backend typecheck (zero errors), dedicated runtime image closure, selected unit gate and formatting passed. Automatic PR CI for this head is terminal PASS on e7a2144: all six backend shards, guardrails, CI tier resolution and aggregate suite passed. At the 2026-10-24 09:55 UTC terminal backend qualification snapshot, the complete rollup had 56 successful/skipped checks and no failed or pending checks. Subsequent description edits may register metadata checks; they do not change the tested source.. Prior-head checks remain historical evidence only. The PR workflow tested synthetic merge fa9a767 (e7a2144 into 0fcd283); its checks are associated with the stated PR head, and do not establish pure branch-tree or future-main runtime equivalence. Original quality results and historical provenance limits remain unchanged.🤖 Generated with Claude Code