Testing strategy¶
Labstream uses layered validation. Fast, hermetic tests protect the codebase by default; live-server and physical-device checks are opt-in because they depend on private servers, credentials, network conditions, and hardware.
flowchart TD
accTitle: Validation lanes by change type
accDescr: Every change runs repository hygiene. Documentation changes also run strict site, link, and Mermaid checks; pure package changes run PMSKit tests; app-owned deterministic changes run hosted tests; runtime changes add the affected platform build and smoke. Private-server and hardware-only behavior use separate opt-in gates.
Change[Proposed change] --> Hygiene[Repository hygiene]
Change --> Kind{What owns the behavior?}
Kind --> Docs[Documentation or path]
Kind --> Pure[Pure PMSKit request, model, or policy]
Kind --> App[App-owned deterministic logic]
Kind --> Runtime[Platform runtime or UI]
Docs --> DocGate[Strict MkDocs, repository links, and Mermaid structure]
Pure --> Package[PMSKit package tests]
App --> Hosted[App-hosted tests on affected hosts]
Runtime --> Smoke[Affected platform build, install or host launch, logs, and smoke]
Change --> Private{Needs private server or physical behavior?}
Private --> Live[Opt-in live-server probe]
Private --> Device[Physical-device acceptance]
Required local checks¶
Run the canonical core validation commands before publishing code changes.
Production changes should also run focused tests from the owning layer. Pure request/model/policy
coverage belongs in PMSKit/Tests/PMSKitTests. App-owned deterministic coverage lives in
LabstreamTests/; the same sources are hosted by LabstreamTests on an iOS simulator,
LabstreamMacTests on macOS, and LabstreamTVTests on tvOS. Run the affected host(s), or all
three for shared app infrastructure, using the exact test-plan commands in Development setup.
The app suites are host-app unit tests. They do not replace the canonical install/launch/log/screenshot smoke, interactive UI checks, live-server probes, or physical-device acceptance.
The checked LabstreamTests, LabstreamMacTests, and LabstreamTVTests plans set
LABSTREAM_UNIT_TEST_HOST=1; in DEBUG builds AppLaunchMode.isUnitTestHost then keeps the Mobile,
Mac, and TV app scenes inert so hosted tests do not boot the real app. UI tests must set
app.launchEnvironment["LABSTREAM_UNIT_TEST_HOST"] = "0" explicitly, and any new test plan must
choose 1 or 0 deliberately; otherwise a UI test can silently drive an inert host app.
Downloads overhaul pin suites¶
Pure lifecycle, admission, cleanup, container, storage and presentation pins run in the hermetic
PMSKit suite. App-owned pins use LabstreamTests/ on the mobile host or LabstreamMacTests on
macOS; tvOS excludes the Downloads capability. There is still no visionOS-hosted target.
| Phase | Principal guards |
|---|---|
| P1 | BackgroundDownloadRangeOwnershipTests, startup admission/registry tests and backend route/source policy regressions. |
| P2 | DurableJournalCommitTests, DownloadCleanupIntentRunnerTests, CleanupRunnerManagerTests, CleanupAuthorityContractTests and cleanup ordering/journal tests. |
| P3a | DownloadLifecycleReducerTests, DownloadLifecycleStoreTests: finalization/relaunch, condemnation, exact ownership and recovery. |
| P3b | DownloadSchemaUpgradeTests: D1 paused partials, deletion barriers/capsules, durable notice and v4/v5 boundaries. |
| P4 | DownloadAdmissionCoordinatorTests, SeasonPlannerIntegrationTests, ServerPrepRunnerIntegrationTests, admission/prep policy tests. |
| P5 | P5SessionTransportTests, storage admission/estimate/source-size tests and season cap/fallback integration controls. |
| P6 | P6ContractTests, store resolution/I/O/load/inventory/artifact/reconcile/path-lease suites, manager persistence/rework/review suites and session wake/checkpoint/opaque-resume/lease suites. |
| P7 | P7OfflinePlaybackTests, subtitle/source-recovery, availability/return, MediaBrowser negotiation, row, joined-control and side-asset ordering suites; PMSKit P7 container/presentation/lifecycle tests. |
Use the no-simulator Mac hosted lane for deterministic app-level download checks:
scripts/native-test-matrix.py affected \
--changed-file Labstream/Capabilities/Downloads/Core/DownloadManager.swift \
--run --lane macos-hosted
Run one Xcode lane at a time; do not launch competing build/test processes. Keep the checked
manifest and normal test parallelism for the final combined gate. A focused serialized diagnostic
run can isolate deliberately held workers, but it is not a substitute for the full normal-parallel
hosted run. Fixtures must isolate coordinators/identities and acknowledge worker entry, commit or
recovery completion with bounded waits; do not widen heartbeat deadlines to hide ordering races.
Download file fixtures use @Suite(.downloadTestFiles) and
DownloadTestFiles.temporaryDirectory. Each test case owns a fresh root; fixture bases
must be children of that root so their hidden durable-authority siblings remain owned too.
Create stores with DownloadTestFiles.store so startup, artifact workers and index writes
are drained before removal, including stores created by detached probes. Use
DownloadTestFiles.manager to stop callbacks and admission work before draining its stores.
The scope awaits registered asynchronous cleanup before removing its exact root on success,
throw or early return. XCTest side-asset fixtures use DownloadFileTestCase, with an
instance-owned root and awaited teardown block for the same lifetime guarantee.
Register resource teardown with DownloadTestFiles.onCleanup before
throwing startup waits; do not rely on fixture deinit or launch an unawaited cleanup task.
This also keeps fixture debris out of the app temporary-directory range-stash sweep. No
host-wide temporary cleanup or macOS runner TMPDIR override is needed for these fixtures.
Current-store startup inventories its base and authority, then schedules interrupted
unsupported-root reclamation. That reclamation intentionally lists their parent to select only that root's exact pending quarantine and
retired-root prefix; range-body recovery lists its configured temp directory, while durable
held-range recovery lists the store base. These are distinct ownership boundaries.
Require terminal xcodebuild success and the result bundle, not merely a printed test summary. Expected known issues must be named explicitly. No hosted suite establishes live backend or physical-device acceptance.
Suspended-request integration regressions¶
Keep async ownership tests at the production publication boundary, not only in pure authority
helpers. SeasonPlannerIntegrationTests commits real durable season rows, holds a Plex metadata
response through an injected URLSession protocol, and deletes through DownloadManager before
releasing that response. It checks the reopened index, absent negotiation/transfer requests,
later admitted-row deletion, stale errors, pause refusal, and exactly-once unchanged admission.
The successful control observes the real background transfer request but does not deliver media.
ArtistDiscographyIntegrationTests calls the same provider-to-controller operation used by
Artist Play and Shuffle. A suspended provider covers backend/server changes, sign-out, newer
album/artist intent, stop, cancellation, and unchanged publication. An injected stream resolver
records which identifiers reach resolution without starting AVFoundation or network playback.
These are hermetic integration checks, not live playback or physical-device acceptance.
Native Apple matrix driver¶
scripts/native-test-matrix.py is the checked source of truth for compile/package smoke,
affected-platform, hosted/UI, and full planning. It does not perform the runtime
install/launch/log/screenshot smoke. Planning is side-effect free and is always the default:
# Compile/package smoke plan for all four app schemes plus hermetic PMSKit tests.
scripts/native-test-matrix.py smoke
# Plan from committed changes relative to main, or include local changes as well.
scripts/native-test-matrix.py affected --base main
scripts/native-test-matrix.py affected --base main --include-working-tree
# Plan one known path without consulting Git (useful in tooling and review automation).
scripts/native-test-matrix.py affected \
--changed-file Labstream/Platforms/tvOS/App/LabstreamTV.swift
# Full correctness, hosted, and exhaustive-TV plan. Missing simulator IDs and the current
# visionOS-hosted gap are reported as BLOCKED/PLANNED rather than silently omitted.
scripts/native-test-matrix.py full
The driver reads scripts/native-test-matrix.json. The current source topology is explicit:
Labstream/Shared/ selects all four app builds and every available hosted/UI suite;
Labstream/Capabilities/Downloads/ selects visionOS, mobile, and Mac but not tvOS; and each
Labstream/Platforms/<platform>/ root selects only its owning product lanes. A conservative
fallback still selects all app lanes for an unclassified path under Labstream/. Update the
manifest and its topology tests in the same change whenever target membership or an ownership
root changes. Git discovery includes deleted paths and both endpoints of renames, including
working-tree changes when requested; filenames are read with NUL delimiters.
duo-ui-smoke runs the mobile semantic fixture smoke on this worktree's iPhone Duo simulator
(--duo-sim-id, .simid-duo, folded outer display by default), plus player fixture checks:
the landscape lock follows the measured scene class (phone-class scenes lock, large scenes keep the
device orientation), the chrome envelope stays put across reveal and hide, and the DEBUG book pose
moves the control group into the trailing half. LabstreamMobileDuoUITests adds browse → detail
→ playback in folded portrait and both folded-landscape rotations (the DEBUG
--ui-testing-orientation route, because the Duo simulator ignores XCUIDevice.orientation),
asserting that content clears the measured vertical-bar column and the playhead advances.
mobile-ui-smoke also runs the lock check. Shared and mobile-platform paths select it alongside mobile-ui-smoke.
It proves the posture the simulator booted in only. scripts/duo-appresize.sh drives the
inner-size proxy by hand (launch [--pose book|tabletop|flat], start, set WxH, shot, stop):
--pose sets the DEBUG-only LABSTREAM_DEBUG_DUO_POSE override so book and tabletop layouts can
be captured against the pose seam. Those captures prove layout against the seam only. XCUITest
cannot observe an appResize session (it keeps reporting the outer-display window), so inner-size
and resize-during-playback runs are judged from screenshots and AppDiagnostics; a real
fold/unfold, Device Hub and physical-device checks remain open.
The bounded command and playback runners terminate their owned process group on timeout or cancellation. Cleanup waits for surviving descendants, not just the leader, before escalating; it never uses application-name or system-wide process matching.
After the matrix builds/tests selected for a runtime change, complete the canonical install/launch/log/screenshot smoke or the applicable named evidence runner. A successful matrix lane alone is not runtime evidence.
Execution is deliberately lane-at-a-time. The driver never provisions or boots a simulator, and
--run requires an exact --lane. A simulator-hosted lane additionally requires the ID recorded
for this worktree by worktree-sim.sh (.simid-iphone, .simid-duo or .simid-tvos) and
--allow-simulator, which is an assertion that the caller has acquired the repository's
one-simulator lease. The driver rejects an arbitrary simulator ID even when that simulator is
Booted. It also fails unless the owned simulator is already Booted and every other simulator is
Shutdown, so xcodebuild cannot silently boot an unleased device or run alongside another lane:
SIMID=$(scripts/worktree-sim.sh --platform tvos id)
xcrun simctl boot "$SIMID"
scripts/native-test-matrix.py affected \
--changed-file Labstream/Platforms/tvOS/App/LabstreamTV.swift \
--tvos-sim-id "$SIMID" --run --lane tvos-hosted --allow-simulator
xcrun simctl shutdown "$SIMID"
pmskit-correctness explicitly skips Live*ProbeTests; app-hosted lanes skip the Debug Plex
browse probe. Credentialless probe returns are readiness signals, not hermetic correctness
passes. Live probes remain separate opt-in commands. Timing benchmarks must likewise use a future
optimized benchmark target/lane and must not be added to smoke, affected, or ordinary hosted
correctness suites.
PerformanceAudit comparison gate¶
Release-parity PerformanceAudit runs use the manifest/raw/summary contract documented in
the scripts catalog. A comparison regenerates
every strict summary from its exact checksummed raw artifact, uses the closed phase/backend
correctness fields, freezes the minimum detectable effect from control-only evidence, and compares
seeded pairs through scripts/perf-compare.py. Warmup failures, missing/foreign spans, changed work
counts, reused run IDs, privacy-unsafe fields, invalid schedules, thermal/battery mismatch, storage
drift, or excessive pair gaps fail closed. Static inspection and unpaired timings are not
performance proof. Frozen-before-candidate timing remains operator-attested until the manifest
schema itself carries the frozen checksum.
Ordinary launch and Home/catalog/Search/artwork latency comparisons use a control-only
calibration freeze followed by separately collected seeded control/candidate pairs. A launch run
selects one closed attribution profile (runtime.composition, runtime.download_manager,
runtime.download_store, runtime.download_transport_construct, or
runtime.download_transport_submission) before capture. Browse artwork is admitted only for the
scoped library_first_poster span: one unique loaded AX image, one selected successful span, and at
least one successful fixture image response. That milestone does not claim that a viewport or every
poster loaded, nor does it establish a cache state.
Mac idle thresholds use a different two-run protocol. First complete one 1+5 paired pilot with
120-second arms, then run perf-idle-compare.py freeze on that result. The freeze derives thresholds
from the pilot's five measured control arms and binds their runner, manifests, control commit, and
product checksum. Record the printed threshold checksum before capturing a fresh, non-overlapping
1+5 paired verdict result with the same control product; only then run the idle comparison. Reusing
pilot evidence or comparison/order identities, or changing the control commit/product, fails closed.
The latency comparator's frozen MDE and pair-gap threshold are not idle thresholds: idle has
duration-normalized CPU/wakeup MDEs, and its start-gap tolerance must exceed the 120-second capture
window.
These paragraphs describe supported tooling and admission contracts, not completed measurements.
A planned, paused, or capture-only run remains insufficient_data until its required calibration,
fresh pairs, comparator output, and correctness/covariate gates all complete.
Shared data-plane contracts¶
Phase 2 data-plane changes have deterministic contracts at their owning layer: opaque browse
authority replacement and repository fencing; off-main Plex/Jellyfin/Emby decode witnesses;
bounded fail-fast/partial fan-out; catalog force/failure/cancellation behavior; metadata
fresh/stale/provenance/action admission and watched-patch ordering; progressive Home snapshots and
failed-key-only retry; page-flight waiter cancellation; incremental movie-version projection;
duplicate-preserving long-playlist paging; DecodedImage color/orientation/crop bridges; and
artwork joining, priority, downsampling, privacy, cache cost, and clear epochs.
These hosted/package checks are not all-target or live-backend acceptance. Shared source still requires the affected native matrix builds and isolated host/simulator smokes, and live Plex, Jellyfin, and Emby request behavior remains an opt-in credentialed gate where a hermetic fixture cannot establish server truth. Emby Home poster/rail corrections needing physical-device confirmation should be verified on a physical iPhone signed into Emby: check Recently Added TV Shows portrait art, a movie rail, and the episode Thumb/Backdrop fallback before closing the tracking issue.
visionOS hosted-test migration¶
There is no visionOS-hosted test target at this checkpoint. The matrix therefore includes a
non-executable visionos-hosted lane with a visible PLANNED result instead of implying coverage.
Use this migration sequence:
- Move request/model/wire-format and platform-independent playback decisions into PMSKit with hermetic package tests. Keep app-owned lifecycle, presentation ownership, and Cinema handoff policy in the app layer.
- Complete the platform source split so a vision test target can host only shared app-core plus narrow vision integration seams, without compiling mobile, TV, or Mac shell code by accident.
- Add
LabstreamVisionTests, a checked.xctestplan, and a concrete visionOS-simulator command to the existingvisionos-hostedmanifest lane. Start with window/Cinema handoff, scoped Now Playing, SharePlay attachment, and vision-only capability composition. - Keep physical Apple Vision Pro acceptance for media-plane rendering, spatial placement, and long Cinema transitions. Hosted tests and the simulator cannot promote those gates.
Do not create duplicate platform copies of pure policy merely to populate a hosted target. The strategy is a small vision integration suite over shared tested policy, not a second PMSKit suite.
Shared app-test support¶
LabstreamTests/TestSupport.swift owns the common temporary directory, locked box, continuation
gate, manual clock, and TestURLProtocolStub. The stub gives every session a uniquely routed
handler rather than replacing process-global state, so parallel tests remain isolated. New
deterministic app tests should use these helpers instead of adding file-local copies. Existing
local helpers can migrate when their own test files are touched; avoid a broad mechanical rewrite
that obscures safety-test changes.
CI checks¶
Woodpecker provides the repository's default public, portable CI surface:
.woodpecker/docs.ymlbuilds MkDocs strictly, runsscripts/check-doc-links.py --site-dir siteandscripts/check-docs-mermaid.py, and deploys the static site on relevant pushes tomain(or a manual run)..woodpecker/docs-pr.ymlperforms the same strict build, rendered-link check, and Mermaid structural check for pull requests without receiving a deployment key or running a deploy command..woodpecker/hygiene.ymlvalidates the macOS pipeline trust boundary withscripts/validate-macos-pipeline.py .woodpecker/macos.yml --default-branch main, then runsscripts/ci-hygiene.sh, including its Python tooling tests, on pushes, pull requests, and manual runs..woodpecker/pmskit.ymlruns PMSKit's credential-free Linux suite. Live probe tests are designed to skip when their opt-in environment is absent; the pipeline does not select them as live acceptance. XCTest and Swift Testing are separate invocations because their combined runner deadlocks under swift-corelibs-foundation; see that pipeline for the exact flags.
There is currently no enrolled macOS CI runner for Xcode app builds, app-hosted tests, simulator smoke, or host-Mac smoke, so those remain local validation gates and must not be inferred from portable CI. A separate native macOS CI lane is prepared for unsigned visionOS and iOS/iPadOS builds. It remains manual/main-only and cannot execute until the explicitly labelled physical runner is enrolled; fork pull requests are permanently outside that local-backend trust boundary.
Simulator checks¶
Use platform-specific worktree simulators and the exact-product procedures in Development setup:
- Before the first visionOS build or linked visionOS worktree, bootstrap the first visionOS simulator, then build the
Labstreamscheme. - iPhone/iPad-only work needs no visionOS bootstrap: build the universal
LabstreamMobilescheme withPLATFORM=iphoneorPLATFORM=ipad. - tvOS work uses a fresh worktree-owned simulator rather than the visionOS golden clone: build the streaming-only
LabstreamTVscheme and keep the download/offline absence gates enabled. - Every path must complete the observable smoke and shutdown. Linked-worktree simulators must also follow the closeout cleanup when the worktree is removed.
Simulator builds are useful for compile coverage, sign-in UI, settings, browse flows, compact/regular mobile shell regressions, TV focus/remote fixtures, and many download/playback routing checks. They are not a full substitute for headset playback, physical iPhone/iPad media-background behavior, cellular-transfer policy, PiP/AirPlay handoff, physical Apple TV Siri Remote/HDR/audio/HDMI and long-play behavior, or system search/Shortcuts invocation.
tvOS UI and evidence tiers¶
The affected-platform tier selects only the small deterministic TV UI smoke plan: launch plus the fixture-backed Home-to-detail remote journey. Exhaustive focus, keyboard, remote-scrub, auto-hide, and player-menu sweeps belong to the full/manual TV lane.
The DEBUG-only UIWindow.sendEvent evidence swizzle is never installed by default. Only launches
with --tv-input-evidence enable it; the exhaustive player UI fixture opts in explicitly. Ordinary
Debug launches, unit tests, and the small UI smoke plan therefore exercise the unswizzled event
path. Release builds still compile the recorder out entirely.
Named agent evidence runners¶
The native matrix is the selection/execution authority; the named runners are the evidence-bundle boundary for repeatable agent scenarios:
scripts/agent-mobile-run.sh iphone fixture-detail-semantic --allow-simulator
scripts/agent-mobile-run.sh ipad fixture-detail-semantic --allow-simulator
scripts/agent-tvos-run.sh fixture-home-semantic --allow-simulator
scripts/agent-tvos-run.sh fixture-player-basic --allow-simulator
scripts/agent-macos-run.sh fixture-detail
scripts/agent-sim-run.sh launch-fixture-home-passive --allow-simulator
The mobile, TV, and visionOS simulator runners refuse a foreign booted device and require
--allow-simulator as an explicit lease assertion. Invoke each only after acquiring the same
repository lease; they resolve the worktree-owned simulator and shut it down by default. The
platform runners' Xcode invocations have a platform-specific wall-clock bound, including
result-log finalization. Mobile and TV semantic scenarios retain XCTest attachments and result bundles in
addition to video, screenshots, logs, and run.json. macOS uses semantic Accessibility against an
isolated development identity. Xcode 27 Device Interaction does not support the visionOS
simulator, but XCUITest does: see visionOS XCUITest. Gaze, pinch-drag,
immersive, and hardware-only checks remain human/headset gates. Real backend credentials supplement
these fixture loops but are never a precondition for platform-loop closure.
visionOS XCUITest¶
Verified on 2026-11-05 with Xcode 27.1 and the visionOS 27.0 simulator: a LabstreamVisionUITests
UI-test bundle (in the Labstream scheme's LabstreamVisionUITests.xctestplan) launches
Labstream, reads the full accessibility tree (window content plus the ornament tab bar, whose
buttons carry SF Symbol identifiers such as house and rectangle.stack), finds a Home card by
its labstream.home.<rail>.<item> identifier, taps it with an element query, opens the detail
page, and taps Resume. The fixture smoke runs as the visionos-ui-smoke matrix lane:
SIMID=$(scripts/worktree-sim.sh --platform visionos id)
xcrun simctl boot "$SIMID"
scripts/native-test-matrix.py full --visionos-sim-id "$SIMID" --allow-simulator \
--run --lane visionos-ui-smoke
Limits found in the same run:
XCUIScreen.main.screenshot()andapp.screenshot()return a 1×1 image on the visionOS simulator. Capture the display from the host withsimctl io screenshotinstead. The tests'checkpoint("name")helper (UITestCheckpoint.swift, one identical copy per UI-test target) writesname.readyto the host directory inLABSTREAM_UI_CHECKPOINT_DIRand waits forname.done.scripts/ui-test-checkpoints.pyruns a test and captures each checkpoint.- There is no visionOS player fixture, and the browse fixture's media URL does not resolve, so the fixture smoke proves that Resume is delivered but not that playback starts. Real playback start is covered by the opt-in live-catalog test below.
- After a failed test, xcodebuild spends up to 10 minutes collecting simulator diagnostics; pass
-collect-test-diagnostics never(the matrix lane does). - XCUITest synthesizes element taps through the accessibility runtime. It does not exercise gaze hover, pinch-drag, immersive spaces, or Cinema, and coordinate clicking remains banned.
Live-catalog sign-in tests¶
LabstreamMobileLiveCatalogUITests (iPhone/iPad), LabstreamTVLiveCatalogUITests, and
LabstreamVisionLiveCatalogUITests sign in to the Jellyfin review server with username and
password, then go Home → Movies → Spring details → play. They pause at the home, library,
detail and playback checkpoints. They skip unless the runner environment has
LABSTREAM_LIVE_CATALOG_ALLOWED=1 and the private LABSTREAM_LIVE_AUTH_SERVER,
LABSTREAM_LIVE_AUTH_USERNAME and LABSTREAM_LIVE_AUTH_PASSWORD. Those values live only in the
gitignored scripts/app-review-live.env (template: scripts/app-review-live.env.example) or the
caller's environment, and reach the test as xcodebuild TEST_RUNNER_ variables. The tests never
sign out. On an app that is already signed in to another account they fail at the catalog check.
LabstreamMobileLiveDownloadQueueUITests uses the same configuration to check the Downloads
queue on iPhone against real transfers: it queues two of the catalog's films, pauses and resumes the
queue (including a download added behind Pause All and a mixed queue), changes the
simultaneous-downloads setting, then deletes the downloads and restores the default limit. It
holds at the added-while-paused, resumed-all, mixed, mixed-paused and mixed-resumed
checkpoints so the host can capture the rows and their posters. Two limits of the review catalog
shape it: the films are small, so the pause and resume steps use server-converted downloads
(which Jellyfin runs one at a time whatever the setting), and the limit itself is checked with
original files at 3, where both transfer together. Run it with
scripts/live-download-queue-check.py --allow-simulator, which redacts private values from the log. Simulator
evidence only; background transfers need a device.
XCUITest's activity log prints typed text, including the server address and username. On tvOS,
where the system keyboard types into the app, it also prints the password. Run the tests through
scripts/app-store-screenshots.py live drive, which redacts every private value from the
log it keeps and deletes the result bundle. See App Store screenshots.
With placeholder values (https://jellyfin.example.invalid), the sign-in form path was verified up to
Submit on the iPhone, Apple TV, and visionOS simulators on 2026-11-05. The test then failed, as
designed, waiting for Home. On macOS the same sign-in and
navigation run through the Accessibility driver's live mode (live drive on a macos session);
private values reach it only as environment variables, so nothing typed is logged.
Download transport fault probes¶
DEBUG builds can inject Plex download transport faults through an in-process URLProtocol
(--vp-probe-download-fault MODE, or --vp-probe-range-drop-after-bytes N for a single
connection drop). Drive them through the simulator-only entry point, which uses the visionOS
worktree simulator's existing Plex sign-in and writes logs under build/probes/plex-range-drop/:
Modes: connection-drop (default; --drop-after-bytes N), double-connection-drop,
validator-flip, 401-mid-train, write-failure, 416-restart, 200-replace,
held-body-pause (needs --pause-resume), held-body-delete (needs
--delete-during-transfer), held-body-relaunch (needs --relaunch-held), drain-pause (needs
--pause-only), and drain-delete (needs --delete-during-transfer). Run --help for the
remaining options. These probes need the simulator lease and are transport evidence only, not
physical background-transfer acceptance.
macOS host checks¶
macOS has no simulator lane; the repeatable host sweep (scripts/validate-macos-228.sh), its
coverage, and its limits are documented in macOS validation.
Bounded playback troubleshooting¶
The agent playback troubleshooting guide defines the versioned progress/report contract, the synthetic hosted-controller command, CUA-only semantic player checks, and separately admitted live scenarios. Start with the fixture; only use live probes with explicit admission and existing sign-in. Video encoding needs separate approval. Reported controller progress is not visible-frame or hardware evidence.
Optional live-server checks¶
Live probes are opt-in and must stay secret-gated. They validate real Plex/Jellyfin/Emby wire behavior without committing tokens, URLs, item IDs, media titles, or logs. Keep their env files gitignored and review generated output before sharing.
Physical-device checks¶
Use real hardware for behavior the simulator cannot prove reliably. Follow the canonical
Apple Vision Pro install or
iPhone/iPad install procedure first. Use Apple
Vision Pro for visionOS media-plane and immersive/Cinema checks; use physical iPhone/iPad hardware
for mobile background playback, PiP/AirPlay, cellular-transfer policy, Control Center/lock-screen
behavior, and App Intents/Spotlight invocation. Physical Apple TV is still required for Siri
Remote, HDR, HDMI, audio-route, and long-play cells in TVOS.md and the
manual validation checklist;
there is no deploy-tvos helper yet, so those cells stay open until a physical
deploy/acceptance path exists. Simulator evidence cannot close them.
- AVPlayer media-plane rendering, especially on Apple Vision Pro;
- immersive/Cinema presentation on visionOS;
- background, locked, off-head, and cellular download scheduling;
- audio route/interruption behavior;
- Spotlight, Shortcuts, and App Intents end-to-end;
- physical Apple TV remote, HDR/HDMI, and audio-route behavior (blocked until a deploy path exists).
For the Mac target, use a real signed-in host session for keyboard/fullscreen behavior, menu commands, system media keys, live playback, and download reconciliation. Keep that evidence labeled as pre-release acceptance rather than released-platform support.
Semantic AX performance captures have a narrower admission boundary: keep the interactive Mac session unlocked and available to the foreground, grant Accessibility trust to the invoking process, and allow the exact audit app PID to become active. The driver does not use coordinates, but it still cannot produce admissible Home, catalog, Search, or artwork evidence from a locked or background-only login session. Missing trust, failed activation, ambiguous selectors, or a lost PID fails the arm rather than becoming a timing sample.
When a headset-only bug is reproduced, collect a bounded bundle with
scripts/headset-evidence.sh before trying ad hoc log collection, then triage it first with
scripts/diagnostics-summarize.py <bundle> --auto-baseline. Read analysis/triage.md and
analysis/summary.json before raw artifacts; open only a named, bounded source window when those
summaries leave a specific causal question. For later pulls, review the baseline delta reported in
those summaries and analysis/novel-events.jsonl instead of re-reading whole diagnostic directories
or broad unified logs.
Private release media corpus¶
Synthetic codec, channel-layout and native-control regressions that need no media server are covered by Headless playback testing.
Use the private media corpus workflow to inventory observed codec/container/audio/subtitle combinations and choose bounded release cases. The metadata scanner is read-only, resumable, and requires gitignored output; its unit tests run in the existing repository-hygiene CI lane. It does not download media or prove playback support. Full live-library playback is not a per-commit requirement.
Backend-specific packaging, exact-source probe rules, frame-review and transition-evidence requirements, opt-in authentication, and future release-CI constraints are documented in Private media corpus testing.