test(platform-runtime): cover Apple perf capture and runner transport branches

Merged
TH
8d ago
+366-1

Summary

Burns down the five 0%-coverage CRAP findings from #3416 by testing the Apple branches through the perf-capture host and the Apple runner screen-recording transport entry points (xctrace start with template derivation and the no-identity reclaim, descriptor cleanup/reattach across every managed-process outcome, each malformed apple descriptor body at the decode boundary, and the live-session / stale-lease branches of local runner inspection). Two test files changed; no production code or exports changed.

FunctionBeforeAfter
perf-capture-host.ts:388 isApplePerfCapture728
perf-capture-host.ts:208 cleanupApplePerfCaptureDescriptor567
perf-capture-host.ts:56 startApplePerfCapture426
perf-capture-host.ts:226 inspectApplePerfCaptureDescriptor305
screen-recording-apple-runner-transport.ts:142 inspectLocalRunner909

Closes #3416. Part of #3414.

Validation

Tested SHA 51a320b3f. pnpm check:affected --run passes (lint, typecheck, fallow audit, related tests). pnpm check:coverage-crap --all on a coverage map limited to the two owned files reports no function at or above 30 (after-scores above; each equals its CC at ~full coverage).