@@ -12,15 +12,20 @@ source, and the phone is a resumable synchronization peer.
1212 frame and prevents later frames from overtaking it.
1313- Terminal SD failure may fall back to live BLE so simultaneous media failure
1414 does not force avoidable loss.
15- - Live preview is disabled in this demo. This avoids duplicating the same audio
16- through the live stream and subsequent ring drain until both paths share a
17- capture identity that the apps can deduplicate.
15+ - Live preview is read from the newest bounded SD-ring slice. The legacy audio
16+ notification path is disabled, so there is still exactly one source for each
17+ frame and no cross-transport deduplication guess.
18+ - After a reconnect, current audio is read first. The app repairs the newest
19+ uncovered interval on a separate durable lane and leaves old history alone
20+ unless the user explicitly starts a bounded sync.
1821- The existing bounded ring protocol remains the retrieval path: READ_BEGIN,
1922 exact sequence range, byte CRC, durable phone registration, then ADVANCE.
2023
21- The demo reports firmware ` 3.0.29 ` . It must not be published as a production
22- release. Flash it only onto the designated second CV1. Retain a hardware
23- recovery path because an older OTA image may be rejected as a downgrade.
24+ The public-candidate demo reports firmware ` 3.0.29 ` . The isolated diagnostic
25+ line reports ` 3.0.30+101 ` , adds a 12-hour sampled trace and cumulative counters,
26+ and is compiled into the ` codex/cv1-blackbox-diagnostics ` branch only. Neither
27+ line is a production release. Retain a hardware recovery path because an older
28+ OTA image may be rejected as a downgrade.
2429
2530## Build
2631
@@ -48,7 +53,7 @@ result.
48534 . Repeat with app force-stop, phone reboot, CV1 reboot, weak RF, and a one-hour
4954 backlog.
50555 . Compare recovered Opus frames against the reference timeline and the
51- firmware's start/end ring sequence.
56+ firmware's start/end ring sequence.
5257
5358Required outcomes:
5459
@@ -59,7 +64,55 @@ Required outcomes:
5964 recovered periods.
6065- Storage saturation or terminal media failure is explicit in diagnostics.
6166
62- This firmware intentionally sacrifices live transcription latency. Adding live
63- preview requires one monotonic capture identity stored with each frame and sent
64- in its BLE header, plus native Android/iOS deduplication before preview is
65- enabled.
67+ ## App contract
68+
69+ The storage-first firmware is only testable with an app that honors all of the
70+ following rules:
71+
72+ - never start the legacy live characteristic beside the SD-ring tail;
73+ - reconnect at the newest bounded ring head before repairing recent coverage;
74+ - preserve the active server conversation owner and preview across a transport
75+ replacement or process restart;
76+ - keep individual sequence WALs local and compact the completed lifecycle
77+ window into one canonical recording;
78+ - derive the canonical close from the server lifecycle in wall-clock time.
79+ Transcript offsets alone are invalid for this purpose because pendant VAD
80+ and disconnected intervals compress the audio clock;
81+ - run historical backlog only after an explicit user request. Charging is not
82+ authority to compete with live transcription.
83+
84+ The exact authenticated Android/iOS build and provisioning process is recorded
85+ in ` app/e2e/CV1_BLACKBOX_DEVICE_TESTING.md ` . Do not recreate Firebase files,
86+ bundle identifiers, or signing settings from memory.
87+
88+ ## Current physical evidence
89+
90+ The diagnostic firmware has been flashed over the app DFU path and remained
91+ recoverable. A 12-hour firmware export reported no storage rejection, packet
92+ drop, microphone, notification, or sync error; two link-setup errors recovered
93+ and the final link negotiated 15 ms, MTU 498, 2M PHY, and DLE 251.
94+
95+ On the Samsung Android fixture, a forced 23.6-second radio outage reconnected
96+ without app relaunch. The replacement tail read the current 25-record head in
97+ 1.9 seconds after app-level connection, then repaired the preceding 96-record
98+ gap. Live preview remained on the same owner. The same run exposed and fixed a
99+ wall-clock ownership defect: STT offsets closed the canonical source before
100+ speech captured after a recovered gap. The regression now uses the configured
101+ conversation-silence lifecycle edge for storage-authoritative close bounds.
102+ The corrected rerun compacted 27 ring WALs into one 69-second, 3,439-frame
103+ canonical file containing the before/offline/after markers in order.
104+
105+ On the iPhone fixture, process termination and relaunch preserved 5,342 frames
106+ across 46 ring fragments with no sequence gap and produced one 107-second
107+ canonical artifact. The production conversation contained the before,
108+ process-down, and recovered markers in order. The remaining negative first
109+ segment offset is a backend projection-origin defect, not firmware loss.
110+
111+ These are targeted reliability passes, not release qualification. The next
112+ gates are an overnight unplugged battery run, a user-authorized large backlog
113+ benchmark, a foreground/background/locked-screen matrix on both phones, and a
114+ wired fault-injection run once the JTAG adapter cable is available. The backend
115+ must also implement the app's existing ` transcript_mode=replace ` request
116+ atomically. Production currently appends the recovered canonical transcript to
117+ the original live segments, so audio durability passes while final transcript
118+ deduplication remains blocked outside this firmware/app branch.
0 commit comments