Skip to content

test(sync): repair stale conversation fingerprint mocks - #24195

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/mainred24192
Oct 31, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/mainred24192

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

After #24192, four audio merge test cases still patched the router's fingerprint function. The job now checks freshness through sync_playback.conversation_merge_fingerprint, so those mocks no longer matched the payload and the job returned superseded before reaching the behavior under test.

Patch the helper at its current call site in the tombstone/upload-fence and destructive-deferral tests. Production code and every assertion are unchanged.

Validation:

  • Baseline: the four requested files reproduced 10 parametrized failures, with 110 passing tests.
  • Updated: all 120 tests pass across the same four files through backend/test.sh, file isolation, one worker, TZ=UTC, nice -n 19, and omi-heavy.
  • Searched backend/tests for all fingerprint references. The only remaining router fingerprint patch is in test_audio_merge_tasks.py, which also patches the new helper and uses the router patch for the separate artifact fingerprint.
  • make preflight, metadata validation, and git diff --check pass.

Failure-Class: none

Test fixture maintenance after a helper extraction; no production behavior change. Lead owns merge. No deploy needed.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-31T22:05:07.884129Z 855231d 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 390580f into main Oct 31, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/mainred24192 branch October 31, 2026 22:11
Git-on-my-level added a commit that referenced this pull request Oct 31, 2026
)

After 30 minutes, recordings whose tail or proof size cannot be
certified can transcribe retained audio with an explicit partial marker.
Complete seals, producer fences, audio custody, and hard-3 thresholds
are unchanged. Encrypted continuation plans use at most 128 siblings per
page and 300 seconds/256 references per unit, with 8,192-entry
source/coverage and 8 MiB plan bounds.

Every partial pass now fills only spans without existing text, including
the first generation. It preserves unannotated transcripts and edits
without correction metadata; overlap or ambiguous alignment keeps the
original text. Completed coordinators claim their hourly poll
transactionally before listing, so stale scheduler snapshots across
serving replicas do no storage I/O. They retire after 24 hours without
inventory change, retaining audio, coverage and partial status. A new
producer upload revision lets the existing repair pass reopen a retired
coordinator. Unsignalled storage-only arrivals after retirement need
separately authorized operator recovery.

Recorded BYOK policies are refused and counted at initial finish and
during late continuation. Discard and payer state are checked before
retained audio/plan reads and again at atomic intake. The CI fixes
classify the server-authored partial metadata, use a closed outcome
enum, omit the partial-only binding field from ordinary work so the
frozen pre-E1 constructor remains compatible, and correct the deadline
test's assumption that all eight requests must start before a 30 ms
timeout.

Validation: 496 unique backend cases across 14 focused files through
backend/test.sh under TZ=UTC and omi-heavy. The final
stage-policy/intake/partial selection passed 119 overlapping cases,
including the stale-scheduler poll fence. Strict Firestore transaction
and real staging/intake/worker fixtures cover preservation, hourly
scheduling, 24h retirement, producer-revision repair reopening, and
payer/discard races. All 22 donor-projection cases pass with stored
bindings decoded through their wire defaults. The hermetic
listen/core-flow e2e passed 15 cases; wrapped make preflight passed all
68 checks. These are local checks, not production acceptance. Optional
generated API wire metadata remains additive; UI behavior is unchanged.

Lead owns merge and all deploys. Keep
recordSealRules.partialEnabled=false while rolling pusher; require
rollout completion and an authoritative PodList count of zero old-image
instances, including terminating instances. Roll all CPU
admission/projection hosts and API, then worker/repair. Drain old or
enabled repair Jobs before enabling the existing partial switch for new
Jobs. No new rollout flag, workflow, production write or capacity added.
The paired collector patch remains lead-owned.

Two full-suite Flutter failures also receive test-only fixes: boot
preference cleanup waits for both getter-triggered quarantine records
and joins the journal before deleting its directory; phone-mic
safety-copy tests await the actual scheduled drain or durable
notification instead of 60/150 ms sleeps. A held-disk completer proves
the WAL remains in memory until I/O is released. The canonical targeted
app/test.sh run passed 138 protected spine tests plus all eight selected
Flutter cases, without a timeout increase or app behavior change.

The safe false negative where later complete proof does not upgrade a
partial row, and held pages waiting on the existing redrive path, remain
follow-ups per lead scope.

Includes the test-only shared-main fixture fix from #24195 at
855231d. After #24192 extracted the freshness helper, two test
files still patched the router function and returned superseded before
their upload-fence assertions. The patch targets the current helper and
changes no assertion or production behavior. Independent integration
validation passed all 120 cases across the four affected playback test
files.

Product invariants affected: none (repository selector).
UI-Evidence: none
Only generated wire DTOs change on clients; there is no UI behavior
change.
Failure-Class: new
Line-Count-Exception: backend/database/conversations.py | 4627 -> 4638 |
Preserve coordinator-owned partial receipts across stale processing
writes.
Line-Count-Exception: backend/utils/batch_pipeline/projection.py | 1716
-> 1717 | Carry partial continuation text-preservation authority into
the existing transactional assignment.
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