Repository navigation
chore(rollout): admit S1 capture evidence on prod hosts and mobile release builds - #20645
Merged
Merged
Conversation
…lease builds Turns on CAPTURE_EVIDENCE_V1_DARK_WRITE on backend-listen, backend, backend-sync, backend-sync-backfill and backend-integration (dev and prod), and passes the matching dart-define to every mobile release build in codemagic.yaml. Completes the #20427 duplicate-transcription fix: sync uploads can now be trimmed by shared source-frame identity once a phone runs a build that sends it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Admits the S1 capture-evidence signal (
CAPTURE_EVIDENCE_V1_DARK_WRITE) end to end, which completes the duplicate-transcription fix from #20427. That fix trims safety-WAL frames the live socket already received, but only when both the phone and the server carry shared source-frame identity. Until now, every build and every host had that signal off.CAPTURE_EVIDENCE_V1_DARK_WRITE=trueon dev and prodbackend-listen(runtime env + Helm values),backend,backend-sync,backend-sync-backfillandbackend-integration. Pusher does not run the producer; it gets the same value as an inert co-host mirror, which the pusher co-host env-diff gate requires. Code default stays off.codemagic.yamlpasses--dart-define=CAPTURE_EVIDENCE_V1_DARK_WRITE=true. The macOS Flutter build is unchanged. Changingcodemagic.yamlalone does not trigger a build; the next mobile release carries the flag..github/scripts/fixtures/codemagic_workflow_contract/v1.jsonare updated for this edit, ascheck-release-process-guards.pyrequires; no workflow, trigger or credential changes.test_capture_evidence_admission.py) covers the composed declarations, the Helm value and every mobile release build. Red-proof: the test fails with thecodemagic.yamlhunk reverted.The backend ships first; older apps send no evidence, so the server records nothing new for them. Evidence piggybacks on existing writes; no new Firestore operations are added (
listen_pusher_pipeline.mdx, "S1 capture evidence dark write"). The trim itself remains gated bySYNC_WAL_AUDIO_COVERAGE_ENABLEDandSYNC_LINEAGE_RESOLVE_UID_ALLOWLIST.Rollback: set the flag to false on those five services. Clients then send evidence that the server ignores.
Failure class (fixes)
Failure-Class: FC-transcript-and-audio-on-independent-clocks
A sync upload and the live socket carry the same speech on independent clocks, so wall time cannot prove they overlap. S1 gives both paths a shared source-frame ordinal, and the server trims only frames it positively received.
Product invariants affected
codemagic.yamlmatches; only the mobileflutter build ipa/appbundleargument lists change. Desktop auth, signing and the signed-artifact smoke are untouched.codemagic.yamlmatches; the dart-define adds no API base URL, environment selector or backend routing. Every production-family artifact keeps the canonical production data plane.codemagic.yamlmatches; the macOS beta identity, bundle id and desktop workflows are byte-identical in meaning (the semantic digest changed only for the 4 mobile build scripts).backend/deploy/runtime_env.yamlmatches: it declares the S1 admission flag. Memory intake, consolidation, promotion and projections are untouched.Verification
flutter test --dart-define=CAPTURE_EVIDENCE_V1_DARK_WRITE=true test/services test/unitpasses: 2,259 tests, 1 skipped (the disabled-path group).backend/test.sh.🤖 Generated with Claude Code