Skip to content

Add a private production-path transcript quality scorecard - #23435

Closed
Git-on-my-level wants to merge 13 commits into
mainfrom
local-quality-scorecard-20261023
Closed

Git-on-my-level wants to merge 13 commits into
mainfrom
local-quality-scorecard-20261023

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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 e7a2144f63ed only 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 main 4ff21eaf085bd21a93a7986666a663e5c7491eb9. 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

Git-on-my-level and others added 8 commits October 23, 2026 15:13
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]>
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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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 🔄 Running since 2026-10-24T02:43:55.376848Z be939b8 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.

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]>

@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: 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".

Comment on lines +195 to +200
settings = {
'device': device,
'dtype': dtype,
'packages': model_versions,
'model_batch_size': 1,
'provider_config': asdict(provider_config()),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +22 to +24
prep = module('prep_speaker_task')
viewer = module('build_viewer')
cluster_tool = module('cluster_speaker_task')

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 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 👍 / 👎.

Git-on-my-level and others added 2 commits October 24, 2026 09:35
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]>
Git-on-my-level added a commit that referenced this pull request Oct 27, 2026
…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.
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Folding batch (2026-11-04): this branch's tip was merged into the survivor PR #24477 (feat/cv1-release-safety), which now carries origin/main plus all sixteen folded branches; pushed as 88c7ec5. Both sides' conflict intents were preserved (main's evolved implementations win where a successor of the same intent had already landed). Closing here so the batch lives on one PR. Reopen if something you need is missing from the survivor.

@github-actions

github-actions Bot commented Nov 4, 2026

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