Recording and media verification
The recording and media verification system checks that captured media keeps its intended content and timing from recording through playback, editing, and export. It combines known media fixtures, an independent behavior model, real capture runs, crash tests, application recording contracts, and CI limits to catch content and reliability bugs without treating runner noise as product failure. See the parent page Build and release automation and the related Desktop build and distribution page.
Verification purpose
The framework protects the main media contracts across the engine and application boundary. It checks source frame identity, audio timing, timeline mapping, seek behavior, output format behavior, safe media transfer, and recovery after a process or muxer failure.
The checks use two kinds of evidence:
- Deterministic evidence comes from generated fixtures and fixed random seeds. It gives repeatable coverage for playback, seeks, edits, audio, codecs, exports, manifests, and storage rules.
- Runtime evidence comes from the real recording path. It checks capture clocks, device-like source delivery, platform encoders, system audio, worker completion, and the files left on disk after a crash.
Verification flow
The framework turns known source behavior into media, runs the product path, and compares the result with an independent expectation. Application checks add the same discipline at upload, storage, playback, and processing boundaries.
flowchart LR
A[Fixture or live stimulus] --> B[Recording, decode, edit, export, or transfer path]
B --> C[Decoded media and durable state]
A --> D[Source truth and timing log]
D --> E[Reference model or contract]
C --> F[Frame, audio, storage, and recovery oracles]
E --> F
F --> G[Strict case report]
G --> H[CI gate or performance decision]
Evidence sources
Marker media
Marker media makes each output item traceable. A video marker identifies its stream, recording segment, and source frame. An audio marker identifies its source and position. The reader reports damaged media as unreadable instead of guessing a different frame or sample, so compression and scaling errors remain visible.
References: crates/…/video_code.rs• L1-16 crates/…/audio_code.rs• L1-19 crates/…/codec.rs• L183-210 crates/…/codec.rs• L348-395
Generated fixtures
A fixture is a small project made for a test. Fixture specifications describe normal tracks and hard timing cases such as variable frame rate holds, camera jitter, late tracks, non-zero presentation times, and pause or resume segments. The framework can write these files directly for speed or pass synthetic sources through the real recording pipeline when recording behavior itself is under test. The generator version is part of the cache identity, so a change in generated output cannot reuse an older fixture.
The fixture cache is keyed by the specification and by the product sources that shape recorded output. Chaos fixtures use the same rule before they copy and damage fragmented Studio and Instant recordings. A change to recording, encoding, timestamp, audio, or related project code therefore creates new recorded evidence instead of reusing an old result.
References: crates/…/fixture.rs• L1-12 crates/…/fixture.rs• L31-32 crates/…/fixture.rs• L60-83 crates/…/fixture.rs• L211-225 crates/…/fixture.rs• L373-502 crates/…/pipeline.rs• L1-10 crates/…/pipeline.rs• L110-135 crates/…/fragments.rs• L31-38 crates/…/fragments.rs• L145-157
Source truth
Source truth is the record of what the generated or live pipeline actually wrote. The framework reads it back from decoded files rather than trusting only the fixture description. This prevents a recording loss from silently becoming the new expected result.
References: crates/…/fixture.rs• L505-594 crates/…/pipeline.rs• L583-596 crates/…/export.rs• L431-494
Behavioral models and oracles
Timeline model
The reference model is an independent description of the product's visible timeline. It maps output time to recording clips and source tracks while accounting for cuts, speed changes, transitions, track start alignment, camera visibility, holds, and frame boundaries. It is not the production mapping, so agreement tests can find errors in both playback and export paths.
References: crates/…/model.rs• L1-29 crates/…/model.rs• L119-126 crates/…/model.rs• L259-295 crates/…/model.rs• L372-481
Frame and audio oracles
An oracle is a checker that compares observed output with the model's expected behavior. The frame oracle classifies stale, future, wrong-segment, missing, unexpected, unreadable, and wrong-blend results. The audio checks match source markers, timing, level, channel placement, and audio-to-video sync. These classes tell an engineer whether the failure is content, timing, layout, or a test environment problem.
References: crates/…/oracle.rs• L9-31 crates/…/oracle.rs• L55-91 crates/…/oracle.rs• L203-475 crates/…/audio.rs• L1-15 crates/…/audio.rs• L163-232
Playback and seek behavior
Playback tests drive decoded frames both in order and in real time. They start at the beginning or middle of a project and cross holds, cuts, transitions, and backward jumps. Seek tests add random storms, keyframe edges, scrubbing in both directions, cold opens, and seeks into long holds. Every returned frame must match the model for that output position.
Application playback checks also validate that an Instant recording is not reported as ready until its manifest describes a complete and usable source. An intentionally silent recording remains playable. Missing initialization data, gaps, duplicate segments, invalid durations, and unfinished uploads remain incomplete. Browser embed checks cover the same playback boundary while a player loads asynchronously, starts, pauses, ends, and exposes caption tracks across MP4 and HLS sources. A signed MP4 source can also refresh once after an expired URL without losing the current playback position.
References: crates/…/playback.rs• L1-4 crates/…/playback.rs• L39-99 crates/…/playback.rs• L242-361 crates/…/seek.rs• L1-3 crates/…/seek.rs• L88-183 crates/…/seek.rs• L210-361 apps/…/segment-playlist-route.test.ts• L153-214 apps/…/segment-playlist-route.test.ts• L273-339 apps/…/share-player-expired-url.test.ts• L199-268 apps/…/share-player-server-source.test.ts• L256-319
Editing and export behavior
Editing tests compare the timeline mapping with a separate edit model over fixed grids, random times, and timeline edges. The model exercises valid user operations such as cuts, trims, speed changes, reordering, volume changes, transitions, and held frames. Seeded edit sequences are reduced to a smaller failing sequence when the mapping is wrong. Export tests then check complete output sequences across MP4, GIF, and MOV paths, output rates, decoders, transitions, camera rules, crop and color behavior, determinism, and audio.
Application checks extend this contract to transcript remapping, browser trimming, GIF and format conversion, audio preservation, and media-server processing. They check that edits use the source timeline and that a failed or replaced media operation cannot publish stale output. A real-recording regression compares sampled sequence-rendered frames with editor-reference frames at HD and 4K sizes, so a real project can expose differences that synthetic fixtures miss.
The media-server checks also cover optional hardware encoding. They verify supported GPU decode paths, stable output when a capture changes size, CPU fallback when hardware is unavailable, and cancellation without an unwanted retry. Recording verification proves full decode, source packet identity, track timing, and audio coverage, so a readable file with a damaged or shifted tail cannot pass as preserved media.
References: crates/…/mod.rs• L1-23 crates/…/mod.rs• L42-53 crates/…/mod.rs• L193-287 crates/…/mod.rs• L442-680 crates/…/mod.rs• L41-86 crates/…/mod.rs• L135-365 crates/…/editing.rs• L1-16 crates/…/editing.rs• L84-161 crates/…/export.rs• L30-47 crates/…/export.rs• L89-149 crates/…/export.rs• L823-862 crates/…/real_recording_regression.rs• L119-318 apps/…/edit-transcript-remap.test.ts• L314-468 apps/…/trimming-tool-audio.test.ts• L153-183 apps/…/media-format-converter.test.ts• L82-216 apps/…/recording-verification.integration.test.ts• L501-870 apps/…/nvenc-encoder.test.ts• L264-382
Recording and recovery coverage
Real capture behavior
The real-capture oracle runs the product's Studio and Instant recording paths on supported macOS and Windows desktop hosts with a separate stimulus process. The stimulus presents changing screen markers and can provide system-audio markers. Synthetic camera and microphone sources behave like device callbacks and record their hand-off timing. The result is checked against the same host clock that scheduled the sources.
Each source keeps timing and admission evidence for every hand-off. The oracle checks that source scheduling stays in its real-time band, treats a rejected hand-off or time spent inside the product feed as a product failure, and separates a source-thread or host stall from a recorder failure. A second observer watches the stimulus capture stream, so a capture-service stall or a starved stimulus can be retried as inconclusive instead of being reported as media loss. A repeated inconclusive run still fails.
The cases cover fragmented and regular Studio output, Instant output, window-only focus capture, start gates, late microphones, camera startup drops, silent or system-only audio, long holds, crash snapshots, and soak runs. The oracle also injects controlled frame faults into a completed recording to prove that it reports drops, freezes, stale frames, late tracks, coverage loss, and a lost picture after a hold. CI enables this self-check by default.
References: crates/…/recording.rs• L1-17 crates/…/recording.rs• L153-218 crates/…/recording.rs• L218-484 crates/…/recording.rs• L487-670 crates/…/recording.rs• L672-1160 crates/…/recording.rs• L1356-1636 crates/…/recording.rs• L1789-2218 crates/…/recording.rs• L2772-3067 crates/…/recording.rs• L3079-3657 crates/…/recording.rs• L3667-3945 crates/…/stimulus.rs• L1-11 crates/…/stimulus.rs• L53-115
Crash recovery behavior
Crash tests kill the recorder, the out-of-process muxer, or finalization at controlled points. They compare the recovered result with the frames handed to the pipeline and with the complete fragments that remain on disk. Recovery must keep complete fragments in order and at their capture times. Loss is allowed only at the newest incomplete tail within the fragment and in-flight limits.
The real-capture crash case snapshots a live fragmented Studio project and sends that snapshot through the same recovery path used after a crash. Recovery also handles startup state, manifests, orphan fragments, damaged fragments, respawn groups, pending temporary fragments, optional tracks, Instant output, persisted track start times, different track rates, and the choice between strict recovery and salvage. Strict recovery requires the known media and configuration to pass full validation. Supported legacy diagnostics can explain an omitted optional track, but a current failure cannot use that legacy path. Salvage can recover usable earlier segments when strict recovery refuses an interrupted later segment. It preserves the failure evidence in a recovery record and keeps a backup of the original inputs. A failed validation leaves raw inputs and metadata unchanged. A successful recovery produces playable output and preserves every track that the recovered metadata identifies.
Chaos probes copy a short Studio or Instant recording, apply controlled damage such as missing or truncated initialization data, missing or reordered fragments, bad manifests, and byte mutations, then judge recovery or finalization from the media left on disk. A successful product result must contain readable packets when usable input existed. Instant finalization also distinguishes a valid audio track from a legitimate video-only recording and does not replace an existing output when expected audio is missing or invalid.
References: crates/…/crash.rs• L1-21 crates/…/crash.rs• L642-706 crates/…/crash.rs• L900-1079 crates/…/crash.rs• L1094-1142 crates/…/recording.rs• L2361-2475 crates/…/recovery.rs• L1282-1401 crates/…/recovery.rs• L1403-1567 crates/…/recovery.rs• L1570-1688 crates/…/recovery.rs• L1847-2123 crates/…/recovery.rs• L2152-2371 crates/…/recovery.rs• L2378-2543 crates/…/fragments.rs• L252-380 crates/…/fragments.rs• L383-477 crates/…/fragments.rs• L487-554 crates/…/media_check.rs• L5-18 crates/…/media_check.rs• L79-93
Application media contracts
Application media contracts check that a recording remains safe and identifiable as it moves between the browser, web application, media server, and object storage. They cover upload progress, raw-input validation, signed playback and download, segment transfer, transcoding, thumbnails, previews, and published recording assets.
The contracts distinguish an incomplete source from a failed worker. They preserve original media when processing or storage work fails, cancel active work when its lease or request ends, and prevent stale worker results from completing a newer recording attempt. Published outputs are used for playback and duplication. Raw fragments and source inventories remain recovery data rather than accidental user-facing media.
The web boundary also checks access before playback, analytics, sharing, or download. Public links exclude restricted, password-protected, active-upload, and screenshot records. Download selection exposes only a published, non-empty result when the caller requests published media. Segment readiness rejects gaps and missing required initialization data while allowing a complete silent recording. Signed server-rendered playback and one controlled URL refresh keep authorized media usable without exposing unfinished sources.
References: apps/…/segment-playlist-route.test.ts• L153-214 apps/…/segment-playlist-route.test.ts• L273-339 apps/…/public-share-video.test.ts• L29-45 apps/…/video-download-info-published.test.ts• L135-198 apps/…/video-download-permissions.test.ts• L70-120 apps/…/videos-policy.test.ts• L47-80 apps/…/share-player-server-source.test.ts• L270-300 apps/…/share-player-expired-url.test.ts• L213-268 apps/…/storage-object-response-headers.test.ts• L1-45 apps/…/media-video.integration.test.ts• L117-319 apps/…/video.test.ts• L55-216
Media transfer behavior
Media transfer checks verify that remote media is downloaded completely and in the correct order before it enters a decoder or processing path. Ranged downloads use bounded concurrency when the source supports ranges and fall back to one stream when it does not. Range metadata, object identity, body size, cancellation, and byte totals must agree before the output is accepted.
Manifest materialization preserves signed resource access for HLS and DASH while rejecting local-file references. It selects options supported by the installed media tool and keeps unsupported manifest shapes on a safe fallback path. Storage access tests also keep private storage endpoints reachable only from the request context that can use them.
References: apps/…/parallel-download.test.ts• L97-309 apps/…/parallel-download-concurrency.test.ts• L18-121 apps/…/media-video.integration.test.ts• L734-1109 apps/…/media-video.integration.test.ts• L1418-1530 apps/…/s3-bucket-access.test.ts• L14-45
Media input safety
Media input policy limits what media tools can read before probing or conversion begins. It accepts normal media files while rejecting playlist-like or text containers, untrusted streaming hosts, and input schemes that could open unintended resources. The policy also removes credentials from child processes and gives rejected inputs a stable error class so unsafe input is not confused with ordinary media corruption.
References: apps/…/media-input-policy.test.ts• L37-220 apps/…/media-input-policy.test.ts• L223-310 apps/…/media-input-policy.test.ts• L312-426
Linux desktop reliability
The Linux desktop workflow checks the built desktop recorder on real desktop session shapes rather than only through unit tests. It covers GNOME and Hyprland portal flows, tray and shortcut controls, X11 display and area capture, camera formats, screenshots, editor imports and exports, GPU loss, OpenGL fallback, and niri-style DMA-BUF screencasts.
The workflow treats the desktop environment as part of the recording contract. It checks that capture finishes, output media exists, the app survives control and graphics changes, shared-memory capture falls back when needed, and the packaged AppImage does not leak its libraries into child programs. Logs and result files remain available as CI artifacts for failed runs.
References: .github/…/linux-desktop-reliability.yml• L1-21 .github/…/linux-desktop-reliability.yml• L72-147 .github/…/linux-desktop-reliability.yml• L154-225 .github/…/linux-desktop-reliability.yml• L307-331 .github/…/linux-desktop-reliability.yml• L359-471 .github/…/linux-desktop-reliability.yml• L510-555 .github/…/linux-desktop-reliability.yml• L557-625 crates/…/x11_shm_capture.rs• L176-220 crates/…/x11_shm_capture.rs• L260-416 crates/…/x11_shm_capture.rs• L440-617
CI execution and guardrails
Suite selection and tiers
The verification plan maps changed files to suites through the workspace dependency graph. It runs only suites that a change can affect, while changes to shared verification or CI control files select the needed broad coverage. The FAST tier is the normal pull request check. The FULL tier uses longer fixtures and more seeds for merge queue, nightly, or high-risk changes.
The platform matrix runs platform-specific checks where the related media stack exists. Shards split case IDs across jobs. The final gate checks both job results and a minimum number of executed cases, so a skipped or under-filled shard cannot look like a pass.
References: scripts/…/suites.json• L1-15 scripts/…/suites.json• L17-53 scripts/…/suites.json• L55-143 scripts/…/suites.json• L304-337 .github/…/engine-verify.yml• L3-14 .github/…/engine-verify.yml• L235-313 .github/…/engine-verify-os.yml• L1-10 .github/…/engine-verify-os.yml• L112-227
Strict failure expectations
Known failures use strict expected-failure entries. An entry must match the case, failure class, platform, and measured bounds. A new failure fails CI. A listed failure that disappears also fails CI until its entry is removed. This makes the verification set a living list of known defects rather than a permanent exception list.
The report also records cases that could not measure a dependent property. For example, missing audio makes sync unobserved rather than passing. Only wall-clock failures under a proven machine stall may become inconclusive and receive one retry. Frame identity, content, timestamps, and sync remain real failures.
References: crates/…/report.rs• L1-9 crates/…/report.rs• L60-68 crates/…/report.rs• L197-216 crates/…/report.rs• L392-523 crates/…/README.md• L70-95
Real-capture CI gate
The real-capture workflow scopes each change against the recording dependency closure before it starts a platform job. Out-of-scope changes pass without running capture. In-scope pull requests run the FAST tier by default, while high-risk or engine changes on a non-draft pull request use FULL coverage. Scheduled and manual runs can use FULL coverage with Blacksmith, hosted macOS, or both.
The gate exercises macOS capture and hosted Windows desktop capture. Blacksmith macOS provides a repeatable software-encoder path. Hosted macOS adds the hardware-encoder path used by real Macs. The setup prepares the GUI session, capture permissions, display, and audio device that the test needs. Windows runs in an interactive desktop session and allows the system-only audio case because the hosted runner has no audio endpoint.
Every planned platform job must pass. The final gate also checks the minimum case count for the selected tier unless a manual case filter is active. Reports, process samples, recordings, and crash snapshots remain available as artifacts when a job fails or when manual runs request them. System-audio checks run only when the selected runner has a usable and characterized audio path.
References: .github/…/verify-recording.yml• L1-29 .github/…/verify-recording.yml• L75-182 .github/…/verify-recording.yml• L298-342 .github/…/verify-recording.yml• L353-481
Application recording reliability gate
The application recording reliability workflow checks the contracts around recording ownership, media preservation, recovery, playback, editing, uploads, downloads, and media processing. It runs the focused web and media-server test set on pull requests and main-branch changes that touch the application, recording, database, web package, lockfile, or workflow paths. A cancelled in-progress run is replaced by the latest run for the same branch, and the job fails within a fixed time limit when a contract breaks.
At the media-server boundary, raw recording validation runs before conversion and distinguishes usable, damaged, truncated, audio-only, and fragmented inputs. It preserves the source and blocks upload when the input cannot be safely processed. If validation rejects a recording during an active transcode, the transcode is cancelled and the job reports an error. Application tests also check that response bodies, child processes, temporary files, and multipart uploads are cleaned up when work is cancelled or rejected.
The web side checks durable ownership and attempt identity across worker status, storage, playback, editing, transcription, sharing, and download. A completion is accepted only when it belongs to the current attempt and carries the expected proof. Transcript and edit checks keep original-timeline data separate from edited output. Published asset checks keep failed copies or deletions from becoming visible as successful operations.
References: .github/…/recording-reliability.yml• L1-30 .github/…/recording-reliability.yml• L32-63 apps/…/video-input-validation.integration.test.ts• L32-224 apps/…/process-guards.test.ts• L30-89 apps/…/agent-download-access.test.ts• L1-29 apps/…/video-download-info-published.test.ts• L135-198 apps/…/video-download-rpc.test.ts• L62-80 apps/…/share-cap-link-access.test.ts• L18-45 apps/…/videos-policy.test.ts• L47-80
Performance budgets
The performance budget compares base and head builds on one machine. It warms both builds, runs the workloads in alternating order, and uses paired median CPU time as the main signal. The current workloads cover basic export, long jitter-camera export, seek storms, and basic playback. A gated workload fails when CPU time is more than 25% slower in most pairs. Smaller CPU changes are warnings, and wall time is reported as a warning signal.
A separate scheduled performance suite runs a reference recording on macOS and Windows. It stores results and logs as artifacts and fails when the suite reports failed cases or errors. Focused application benchmarks measure long segment manifests, transcript remapping, API detail reads, share-page loads, and large-list loads when their opt-in guards are enabled. The media-server recording verifier also has an opt-in long-recording guard that bounds decode time and memory use while comparing packet-based verification with the full decode path.
References: scripts/…/perf-ab.py• L1-12 scripts/…/perf-ab.py• L24-40 scripts/…/perf-ab.py• L117-167 .github/…/perf-budget.yml• L1-5 .github/…/perf-budget.yml• L66-146 .github/…/performance-regressions.yml• L54-97 apps/…/segment-playback.test.ts• L297-330 apps/…/edit-transcript-remap.test.ts• L417-468 apps/…/recording-verification.integration.test.ts• L961-1060
Change checklist
When these files or sections are changed, remember to consider these:
- Change a fixture specification or generator: refresh its cache key or generator version so old media cannot satisfy new expectations.
- Change recording, muxing, timestamp, or audio source code: check both generated fixtures and fixtures recorded through the real pipeline.
- Change a timeline rule: update the independent model and the playback, seek, editing, and export contracts together.
- Change a marker format or reader: rerun codec robustness checks after scaling, compositing, blur, and lossy encode changes.
- Change a failure class or bound: keep the expectation entry aligned with the report metrics and remove entries when the defect is fixed.
- Change suite scope, case counts, runners, or tier skips: update the executed-case floor and platform support rules with the plan.
- Change a performance workload or limit: review paired base/head measurement and the required CI gate at the same time.
- Change recovery metadata, fragment validation, track discovery, salvage rules, or Instant finalization: check full media validation, successful finalization, track timing and rate preservation, legacy-diagnostic rules, and the no-mutation path for damaged or missing inputs.
- Change real-recording rendering or editor rendering: compare sampled frames from a real recording at each supported output size.
- Change desktop capture, portal setup, X11 shared-memory capture, or AppImage layout: keep GNOME, Hyprland, niri, X11 fallback, and packaged-child-process checks aligned.
- Change application recording ownership, storage, playback, sharing, download, or media processing contracts: keep the recording reliability workflow scope aligned with those paths.
- Change optional hardware encoder selection, fallback, or resize handling: check supported GPU paths, CPU fallback, cancellation, and stable output dimensions together.
- Change HLS or DASH materialization: preserve signed query data, reject local-file resources, and keep the installed media-tool capability path valid.
- Change ranged downloads or segment audio reads: keep range metadata, byte limits, part order, concurrency bounds, and stream cancellation aligned.
- Change media-client retry behavior: cancel discarded error bodies while leaving the final response body available to the caller.
- Change recording worker status or webhook handling: keep the job, generation, attempt, inventory proof, redirect policy, and terminal acknowledgement checks aligned.
- Change edit or transcript source selection: keep original-timeline transcription separate from edited media and verify remapping at timeline edges.
- Change published recording assets or duplication and deletion rules: keep canonical outputs separate from recovery sources and fence storage work before changing database state.
- Change media input policy or media-server routes: preserve protocol and format limits, trusted hosts, authentication, capacity checks, job status, cancellation, and upload-target contracts.
- Change preview or download access: keep canonical URLs, access policy, published-only selection, response headers, and password or membership checks consistent.
- Change packet-preservation or recording-source commitment rules: keep decoded content, packet timing, provider identity, manifest bytes, inventory readback, and source immutability checks aligned.
- Change real-capture source scheduling or feed admission: keep source timing evidence, ingress failures, host-stall attribution, and the one-retry inconclusive path aligned.
- Change the stimulus observer or injected-fault self-checks: preserve the distinction between capture-service loss and recorder loss, and keep each oracle fault mapped to its expected failure class.
- Change supported desktop capture platforms or audio-device rules: keep capture permissions, window or display selection, DPI behavior, and system-audio support rules aligned across the host matrix.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A decoder returns an older, newer, damaged, or wrong-segment frame | The frame oracle reports a content failure with the source-frame error | Independent markers and the reference timeline model |
| A fixture cache contains output from older recording code | A regression can hide behind stale recorded media | The recorded-fixture key includes product source content |
| A required audio or camera track is absent | Dependent sync checks are unobserved, not passed | Track-presence reporting and strict unsupported rules |
| A CI runner cannot provide a required platform device | The case fails as unsupported unless the platform rule allowlists it | Platform support entries and the required-support setting |
| The runner stops scheduling the test process | Wall-clock playback or timeout results can be inconclusive once | The starvation sentinel and one retry; content failures are never excused |
| A listed expected failure disappears | CI reports XPASS and requires removal of the stale entry | Strict expectation settlement |
| Recovery drops a complete fragment, an interior frame, or a known track | Recovered output is incomplete, reordered, or missing source media | Full media validation, physical-fragment comparison, and track checks |
| Recovery accepts damaged input or mutates it before validation finishes | The recording can become falsely complete or lose its only recoverable source | Raw-input snapshots, validation before mutation, and original-segment backups |
| A pending temporary fragment is truncated | Finalization can include invalid bytes or lose a valid tail | Temporary-fragment validation and quarantine markers |
| Strict recovery sees a current failed required-track diagnostic | A usable earlier segment is refused instead of being silently treated as complete | Separate strict and salvage paths with versioned legacy-diagnostic rules |
| Salvage cannot validate the retained display media | Recovery fails without replacing the raw recording or its failure evidence | Full retained-media validation and no-mutation checks |
| Instant finalization receives missing or invalid expected audio | An existing playable output can be replaced by an incomplete result | Required-audio validation and atomic no-replacement behavior |
| Base and head performance cases do not run the same work | The timing comparison is not valid | Paired outcome checks before applying the performance budget |
| A planned capture job fails or runs too few cases | The required recording check fails even when another platform passes | The workflow gate checks every planned runner and the tier case floor |
| Linux portal, X11, or graphics setup differs from the tested session | Desktop capture can fail or produce wrong bounds while unit tests pass | GNOME, Hyprland, niri, X11 fallback, and AppImage integration jobs |
| A real recording renders different frames from the editor reference | Export output can diverge from the editor for real projects | Sampled frame comparisons at HD and 4K resolutions |
| A segment manifest is marked complete with a gap or invalid duration | Playback can report a partial source as ready | Schema validation and agreement with the serialized readiness check |
| A signed URL expires during playback | A valid viewer sees a permanent media error | One authorized URL refresh followed by a real media error |
| A published-only download points to an active, empty, or raw source | An unfinished or private source can become a user download | Published-state, object-size, and access checks before signing |
| A ranged response has false or oversized range data | The downloaded file can be corrupt or the process can write beyond its planned part | Range validation, bounded body reads, and one-stream fallback |
| A signed HLS or DASH manifest contains a local-file resource | A remote conversion can read an unintended local path | Resource protocol validation before materialization |
| An input looks like a video but contains a playlist or uses an untrusted streaming host | A media tool can read nested resources or unsafe network targets | Content checks, protocol and format whitelists, trusted-host checks, and policy errors |
| A media request arrives without valid auth, fields, or available capacity | The server can start unsafe work or overload the host | Route validation, secret checks, and capacity rejection before download or processing |
| A worker completion belongs to an old attempt | A stale recording can be published | Immutable attempt proof and exact completion acknowledgement |
| A media operation is cancelled after spawning a child process or starting an upload | Work can continue, retry, or leave temporary output behind | Abort propagation, process cleanup, multipart cleanup, and no-retry cancellation rules |
| Original media is unavailable during edit transcript backfill | Edited media can be mistaken for the source timeline | Original-source access is required before transcription or storage writes |
| A published asset copy or deletion fails after partial storage work | A duplicate can be visible without all assets or a source can be lost | Ownership fences, conditional copies, rollback cleanup, and source preservation |
| Packet bytes match but a recording has shifted timestamps, changed duration, or incomplete audio coverage | A remux can look readable while changing the source timeline or content | Full decode, packet proof, timing evidence, and required-track coverage checks |
| A synthetic source hand-off is rejected or the product feed holds the source | Frames or samples are lost and a capture device failure is hidden as runner noise | Per-source admission traces and product-versus-source lateness attribution |
| The stimulus is starved or every capture client stops receiving frames | Recorded gaps cannot prove a recorder defect | Independent stimulus logs, a compositor-stall check, one retry, and a final environment failure |
| An injected drop, freeze, stale frame, or timing fault is not reported | The real run can pass while its oracle is blind | Per-run self-checks with expected failure classes |
| Window-only capture includes an occluding window or wrong bounds | A focused recording leaks unrelated content or has invalid edges | Focus stimulus, window-only capture, pixel leak checks, and size checks |
Key files
| File | Why to read it |
|---|---|
| crates/…/README.md | Short guide to the suite, local commands, tiers, expectations, and CI behavior |
| crates/…/fixture.rs | Fixture concepts, cache behavior, and source-truth rules |
| crates/…/mod.rs | Shared fixture loading, decoder selection, export checks, and playback harness |
| crates/…/mod.rs | Random edit operations, shrinkable failures, and the independent time model |
| crates/…/pipeline.rs | Recorded Studio and Instant fixture behavior through product pipelines |
| crates/…/model.rs | Independent timeline behavior used by playback and export checks |
| crates/…/oracle.rs | Frame expectation types and mismatch classes |
| crates/…/report.rs | Case results, strict expectations, unsupported cases, and starvation handling |
| crates/…/recording.rs | Real capture cases, host-clock source evidence, environment attribution, recovery snapshots, and oracle self-checks |
| crates/…/playback.rs | Offline and real-time playback checks |
| crates/…/seek.rs | Seek, scrub, keyframe, hold, and cold-open checks |
| crates/…/editing.rs | Seeded timeline mapping and export checks for edit sequences |
| crates/…/export.rs | Frame, audio, format, layout, color, and determinism checks |
| crates/…/crash.rs | Muxer failure, physical fragment, recovery, and loss-bound checks |
| crates/…/fragments.rs | Controlled fragment damage, recovery probes, Instant finalization, and seeded mutations |
| crates/…/media_check.rs | Packet-level judgment of files and fragment directories left by a pipeline |
| crates/…/recovery.rs | On-disk recovery, strict and salvage paths, Instant finalization, full validation, track preservation, and no-mutation checks |
| crates/…/x11_shm_capture.rs | X11 pixels, crop bounds, shared-memory lifetime, fallback, resize, and leak checks |
| crates/…/codec.rs | Video and audio marker robustness through codecs and transforms |
| crates/…/real_recording_regression.rs | Real-recording frame agreement between sequence export and editor-reference rendering |
| apps/…/recording-verification.integration.test.ts | Packet preservation, complete decode, timing evidence, malformed media rejection, and bounded long-recording verification |
| apps/…/media-video.integration.test.ts | Media processing, manifest conversion, codec normalization, upload cancellation, and cleanup behavior |
| apps/…/media-input-policy.test.ts | Safe media-tool inputs, trusted streaming sources, content checks, and policy errors |
| apps/…/parallel-download.test.ts | Ranged download validation, fallback, byte safety, and abort behavior |
| apps/…/nvenc-encoder.test.ts | Hardware codec selection, fallback, cancellation, GPU decode, resize behavior, and encoder status |
| apps/…/segment-playlist-route.test.ts | Instant manifest readiness, early playback, gaps, silent recordings, and playlist state |
| apps/…/video-download-info-published.test.ts | Published download selection and protection from active or empty sources |
| apps/…/videos-policy.test.ts | Recording view access across public, member, grant, password, and link rules |
| apps/…/share-player-server-source.test.ts | Server-rendered signed playback and hydration behavior |
| apps/…/share-player-expired-url.test.ts | Authorized playback URL refresh after expiry |
| apps/…/video-download-rpc.test.ts | Authenticated download RPC and access gate behavior |
| .github/…/linux-desktop-reliability.yml | Linux desktop session matrix, capture scenarios, packaged-app checks, and artifacts |
| .github/…/verify-recording.yml | Real-capture CI scope, platform jobs, environment setup, and required gate |
| .github/…/recording-reliability.yml | Application-level recording contract checks and their change scope |
| scripts/…/suites.json | Suite scope, platforms, tier case floors, skips, and unsupported cases |
| .github/…/engine-verify.yml | Main engine verification plan, matrix, and required gate |
| scripts/…/perf-ab.py | Paired base/head workload and threshold rules |