Repository navigation
feat(capture-timeline): S1 source-position evidence dark write - #19408
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d pin capture_evidence - Pre-register the real pure utils.capture_evidence module in the sync_v2/cloud_tasks stub harnesses (manual_speaker_assignments pattern); the pipeline's new module-scope import broke the file-path re-exec. - Pin Conversation.capture_evidence as server-authored, NOT projection-family (processing_state precedent): Field(exclude=True), never client-visible; projection-family would strip/delete the dark write itself. - Regenerate public docs/api-reference/openapi.json for the optional CaptureEvidenceLineage request contract.
2429096 to
05f5aec
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Monitor fix pass complete (rebased onto latest
Verification: the three previously-red checks now pass on the new head ( |
…d WAL sync Carry bounded source maps through decode, VAD, transcript persistence and multi-track assignment. Exercise the actual listen and sync paths with hermetic fixtures. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n rule Co-Authored-By: Claude Opus 5.5 <[email protected]>
…th transcript-span duration #19391 switched meeting_treatment_verdict to the transcript-span duration rule but left wall-window fixtures in test_meeting_treatment.py and test_chat_first_proactive_engine.py, red on origin/main and on this PR's shards. Extend the alignment begun in the previous commit: eligible fixtures now carry a five-minute transcript span, the too_short and insufficient_speech parametrizations vary the span/speech instead of the wall window, and expected verdicts assert the span-derived inputs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Monitor fix pass complete (head
Note for maintainers: |
Summary
Complete the default-off S1 capture evidence dark write. The phone now allocates a source frame ordinal and codec epoch once for each captured frame, carries that position on the ordered
/v4/listencontrol message and in the safety WAL, and sends a bounded versioned WAL-file map with/v2/sync-local-files. A separate client UUID remains stable across server conversation generations. Existing listen, sync and desktop persistence writes carry bounded evidence metadata; no new Firestore operation, grouping rule, user-facing read, or effect is added by S1.Findings that affect the design
recording_session_idbinding in fix(sync): bind safety WALs to live recording intervals #19424 remains the conversation-target mechanism; S1 does not infer that equal roots imply one scene.Follow-up boundary
The S0 recording-session binding in #19424 must land with its same-source grouping refusal intact before relying on live/WAL conversation targeting. It does not solve a WAL spanning a server silence rollover; that remains an S0 follow-up with a client/server generation bridge. This PR leaves all identity metadata dark and does not activate a production cohort. A later authorized sampled bake must measure coverage, incomplete/unknown receipts, Firestore reads/writes and bytes by source before expansion.
Verification
BACKEND_UNIT_TEST_FILE_LIST=/tmp/capture-evidence-s1-path-tests.txt bash backend/test.sh: 7 path-matrix, 43 developer/from-segments, and 182 sync-v2 tests passed.backend/test.shalso passed 44 sync cross-job assignment tests in a separate focused run.test_meeting_treatment.pyand 2test_chat_first_proactive_engine.pycases that fail identically in a cleanorigin/mainworktree at6b06db8403; the backend unit suite rollup inherits those failures. No S1 test failed in those shards. This is a verified main known-red, not a new S1 regression.flutter test --no-pub test/unit/local_wal_sync_test.dart test/unit/sync_upload_gate_test.dart test/services/sockets/transcription_service_byte_counting_test.dart: 64 passed with flag off. The dark-write build ran 48 focused WAL/socket tests successfully.TZ=UTC bash app/test.sh test/unit/sync_paced_backfill_backoff_test.dart: 138 capture-contract spine tests and 8 paced-backfill tests passed.bash app/scripts/analyze_ratchet.sh: passed with zero error-severity diagnostics after adding the optional upload argument to all six paced-backfill fakes.xcrun swift buildand focused lineage test passed before these backend/mobile additions. No device, live service, production data or sampled IO bake was used.Line count exceptions required by the repository gate
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 3812 -> 3838 | The four existing frame admission paths now share one capture-root allocator and the socket/WAL source unit.
Line-Count-Exception: app/lib/services/wals/local_wal_sync.dart | 1572 -> 1679 | The existing WAL frame, chunk, reload and upload owner carries a bounded source-position claim.
Line-Count-Exception: backend/database/conversations.py | 3099 -> 3102 | The existing transcript transaction writes the optional envelope in the same Firestore operation.
Line-Count-Exception: backend/routers/developer.py | 2569 -> 2620 | The existing from-segments intake validates original desktop lineage before storing it.
Line-Count-Exception: backend/routers/listen/receiver.py | 1694 -> 1714 | The existing binary receive loop binds and validates the ordered source-frame control.
Line-Count-Exception: backend/routers/sync.py | 2449 -> 2461 | The existing upload and Cloud Tasks paths forward an optional bounded source map.
Line-Count-Exception: backend/utils/sync/pipeline.py | 2678 -> 2825 | The existing decode, VAD, STT and assignment phases carry source positions without another write.
Line-Count-Exception: desktop/macos/Desktop/Sources/Services/APIClient/APIClient+Memories.swift | 1595 -> 1624 | The existing request encoder carries optional desktop lineage and preserves flag-off omission.
Product invariants affected
none
🤖 Generated with Claude Code