Files
OmniRoute/tests
diegosouzapw 4608f1f719 feat(db): fail-closed previous_response_id continuation for redacted video turns (#12150 P2b)
A continuation turn resolves previous_response_id back to the stored client
snapshot (responsesContinuationStore.ts). Since #12528 that snapshot has its
video transcript cues structurally redacted to [redacted-video-transcript]
before storage, so rehydrating it would forward the placeholder upstream as if
it were genuine history.

Mark such rows with a new call_logs.video_content_removed column (migration 173,
set from videoBridgeObserved via the call-log write path) and make
resolvePreviousResponseState fail closed on a marked row — the client resends
full history, exactly like a real previous_response_not_found. Default 0, so
every non-video request and continuation is byte-identical to before.

TDD: RED→GREEN for the store refusal, the saveCallLog persistence, and the
persistAttemptLogs ctx→row marker wiring.

Refs #12150, #12430 (items 1-2).
2026-09-04 03:47:42 -03:00
..