Skip to content

chore(rollout): admit S1 capture evidence on prod hosts and mobile release builds - #20645

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/s1-capture-evidence-on
Oct 4, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/s1-capture-evidence-on

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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.

  • Backend: CAPTURE_EVIDENCE_V1_DARK_WRITE=true on dev and prod backend-listen (runtime env + Helm values), backend, backend-sync, backend-sync-backfill and backend-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.
  • Mobile: every iOS/Android release build in codemagic.yaml passes --dart-define=CAPTURE_EVIDENCE_V1_DARK_WRITE=true. The macOS Flutter build is unchanged. Changing codemagic.yaml alone does not trigger a build; the next mobile release carries the flag.
  • Codemagic contract: the reviewed digests in .github/scripts/fixtures/codemagic_workflow_contract/v1.json are updated for this edit, as check-release-process-guards.py requires; no workflow, trigger or credential changes.
  • Registry and classification are updated. A new pin test (test_capture_evidence_admission.py) covers the composed declarations, the Helm value and every mobile release build. Red-proof: the test fails with the codemagic.yaml hunk 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 by SYNC_WAL_AUDIO_COVERAGE_ENABLED and SYNC_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

  • INV-AUTH-1 — preserved. codemagic.yaml matches; only the mobile flutter build ipa/appbundle argument lists change. Desktop auth, signing and the signed-artifact smoke are untouched.
  • INV-DATA-1 — preserved. codemagic.yaml matches; the dart-define adds no API base URL, environment selector or backend routing. Every production-family artifact keeps the canonical production data plane.
  • INV-BETA-1 — preserved. codemagic.yaml matches; 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).
  • INV-MEM-4 — preserved. Only backend/deploy/runtime_env.yaml matches: 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/unit passes: 2,259 tests, 1 skipped (the disabled-path group).
  • Backend unit files touching runtime env, flags, the classification and capture evidence (45 files) pass through backend/test.sh.
  • Not yet verified in production.

🤖 Generated with Claude Code

Review in cubic

…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]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 15 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit 9bf89d3 into main Oct 4, 2026
61 of 63 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/s1-capture-evidence-on branch October 4, 2026 11:31
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