ARBI
Documents / docs/evidence/media-audit.md

Media audit software evidence

Scope: #56, ADR-0015. This records isolated software/native-host behavior, with no installed camera, relay, carrier or human viewing measurement.

Native PostgreSQL tests create two independently authorized viewers with one producer, ingest signed immutable accounting windows, then ingest signed delivery summaries. Each viewer retains its original actor/history/downstream interval and references the same upstream window; the garden usage reader counts that window once. Cross-viewer references fail. A duplicate signed report is acknowledged without another audit or usage row. Explicit end and abandoned-viewer timeout preserve partial coverage, a duration upper bound, null playback duration and unobserved remote stop.

Still fixtures use the actual Blob signing SDK against an owned loopback object/signing service. They check required grant/audit state before GET signing, independent human view/download grants, URL replay after revocation until expiry, signing failure with original-grant correlation, and no invented delivery event from a GET/cache response. Required metadata/audit failure returns no capability and cannot call GET signing. Native SQL checks guard actor changes, deletion and revocation reversal; legacy grants remain unchanged. In-memory source fixtures explicitly opt into test-only schema behavior and do not prove WAL durability; ordinary fsync-off audit is rejected.

Recording contract fixtures cover six future hook purposes, verify current Gredice recording denial even with engineer/update-admin roles, and reject fabricated successful recording/access events. No recording permission or runtime was enabled.

Run configuration: the issue-56 worktree extends live authority revision 82cd3888158407d317e5c62e1562bd82374f8be0. Checks run in an isolated Linux x64 workspace with Node 24.19.0, pnpm 11.5.2, native PostgreSQL 18.4 (fsync/synchronous commit on), fresh test keys/databases, synthetic sources and an owned loopback signing/object server. Codex performs automated implementation/checks; the PR review and exact-head GitHub CI records provide the separate review trail. No physical equipment or qualified physical reviewer participated. Final check results are recorded in the issue PR.

Local validation on 2026-10-11: the full dashboard source run passed 85 checks with 15 native-only skips. The final affected-media run passed 17 checks, including the added post-signing resource-change case. All 65 native PostgreSQL checks and 17 Chromium integration checks passed. Dashboard lint/type checking, production build, ordinary/preview HTTP denial checks, Markdown links and diff whitespace passed. The final browser build runs on the merged live-authority baseline 9ad3032468a386a03b7d083bf84733c10c6f5b24 plus this PR's media audit changes.

Residual visibility limits: signed URLs cannot observe replay/cache hits or recall delivered bytes; signaling/connection reports do not prove first frames or watching. Real direct/TURN/provider meters, camera resource arbitration, physical startup and carrier bill reconciliation remain separate gates. No missing observation is represented as zero or a known stop.