Skip to content

SiloPlayer: streaming origin fetch — fix buffering on high-latency connections - #66

Merged
Quick104 merged 2 commits into
mainfrom
claude/exciting-lalande-499331
Jul 5, 2026
Merged

Quick104 merged 2 commits into
mainfrom
claude/exciting-lalande-499331

Conversation

@Quick104

@Quick104 Quick104 commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Users on fast but high-latency connections (gigabit fiber, ~150 ms+ RTT to the server) report buffering even on 1080p files, while the same files direct-play fine through the Jellycompat API in third-party clients. LAN testing (including high-bitrate 4K) never reproduces it.

Root cause: PlaybackSourceProxy fetched origin bytes as strictly sequential, fully-buffered 2–16 MiB range requests. Every chunk pays a fresh TCP slow-start ramp plus one RTT of dead air between requests, and the serve loop cannot forward a single byte until the entire chunk lands. At 150 ms RTT this caps effective throughput around 14 Mbps regardless of line speed — right at the starvation edge for ordinary 1080p remuxes. Third-party clients issue one long-lived GET, pay slow-start once, and ride the congestion window at line rate.

Fix

Replace the chunked fetcher with long-lived streaming range GETs (the design AetherEngine adopted after its own chunked reader collapsed on CDNs — "VLC-style single forward-streaming connection"):

  • Up to two origin streams (playback + roamer) with a ride-through / spawn / retarget routing policy, so the matroska open pattern (head probe ↔ cues at tail) and demuxer recycling never churn the warm playback connection.
  • Incremental store: URLSession deliveries land in the span cache as they arrive; a cache miss unblocks after ~1 RTT instead of a full-chunk transfer (previously up to seconds, brushing the demuxer's 10 s rw_timeout).
  • Backpressure parking: at the readahead budget the data task suspends and TCP flow control parks the connection server-side; resume is instant, the connection is never closed/re-requested.
  • Reconnect with backoff + progress-aware give-up replaces fail-on-first-error. A transient blip no longer tears down and rebuilds the player — playback rides the forward buffer silently. Interruptions (server outage / network loss / premature EOF / session missing) surface only after retries exhaust.
  • Waiter machinery: serve loops await cache fills via registered continuations (register-first ordering; re-driven on retarget/finish; failed only for the responsible stream on give-up).
  • Cache: adjacent streaming slabs append in place (16 MiB spans, eviction age refreshed) instead of paying the full-copy merge.
  • Loopback playback starts the origin stream at plan time, overlapping connect + slow-start with demuxer spawn.

Removed: chunk-size escalation (8/16 MiB for high-bitrate sources — a LAN optimization that made remote misses strictly worse), the single-flight .utility prefetch loop, and the dedicated 1-byte total-length probe (total now comes from the first streaming response's Content-Range).

Review hardening

An adversarial review pass on the rewrite surfaced and fixed: retarget stranding waiters of the victim stream, waiter registration racing a stream give-up, two park/unpark races (suspend now under lock + post-park recheck), terminal-stream revival leaking a live URLSession, give-up failing waiters riding healthy streams, and missing generation guards on finish/give-up. Lock hierarchy, continuation exactly-once semantics, 404 session-missing detection, and PlaybackSourceResponseEnd.classify semantics verified preserved.

Testing

  • iOS / tvOS / macOS builds green; 511 tests pass (15 new: stream routing policy, reconnect policy, cache streaming append).
  • Hardware-validated on Apple TV 4K (3rd gen) with a 47.8 GB DV P7→8.1 TrueHD title (~63 Mbps): clean startup, aggressive seeking, steady segment cadence, zero watchdog escalations or stream give-ups.
  • Startup watchdog interplay checked: the ladder keys on local segment-serve progress (6 s stall window), not origin fetch patterns; streaming strictly reduces time-to-first-segment, so misfire risk goes down.

Notes / follow-ups (separate PRs)

  • No kill switch: the old chunked path is fully removed. Safety nets that remain: reconnect give-up → existing outage recovery, starvation watchdog → PlayerCore fallback.
  • Bandwidth-aware quality selection (act on the already-computed streamSpeed ratio; auto/offered downshift to server transcode) — the complementary fix for users whose links genuinely can't sustain the file bitrate.
  • Starvation fallback should route to a capped transcode instead of PlayerCore on the same full-bitrate URL when the trigger is network starvation.
  • Master playlist declares BANDWIDTH=18000000 while streams can run ~63 Mbps → cosmetic -12318 per-segment complaints in AVPlayer's error log.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Introduced improved long-lived origin streaming with demand-driven buffering, including smarter stalling recovery, reconnect, and retry/give-up behavior.
  • Bug Fixes

    • Fixed end-of-range handling near real EOF so completed ranges are classified correctly.
    • Enhanced cache streaming-append and span merging for smoother reads across adjacent/overlapping buffered ranges.
    • Restored source prefetch loopback behavior to reduce startup delays.
  • Tests

    • Added/extended coverage for stream selection, reconnect/backoff decisions, and cache span merging/reads, plus a new EOF-range classification test.

…nnections

Users on fast but high-RTT connections (gigabit fiber, 150ms+ to the
server) buffered even on 1080p files while third-party direct-play
clients streamed the same files fine. Root cause: the source proxy
fetched origin bytes as strictly sequential, fully buffered 2-16 MiB
range requests — each chunk pays a fresh TCP slow-start plus one RTT of
dead air, capping effective throughput at roughly 14 Mbps at 150 ms RTT
regardless of line speed. On LAN the overhead rounds to zero, which is
why local testing never reproduced it.

Replace the chunked fetcher with long-lived streaming range GETs
(the approach AetherEngine adopted after its own chunked reader
collapsed on CDNs):

- Up to two origin streams (playback + roamer) so the matroska open
  pattern (head probe <-> cues at tail) and demuxer recycling never
  churn the warm playback connection; ride-through/spawn/retarget
  policy routes each demand.
- Bytes store into the span cache incrementally as each URLSession
  delivery arrives — a cache miss now unblocks after ~1 RTT instead of
  a full-chunk transfer, keeping well clear of the demuxer's 10 s
  rw_timeout.
- Readahead parks the task on TCP backpressure at the cache budget and
  resumes instantly; the connection is never closed and re-requested.
- Reconnect with exponential backoff and progress-aware give-up
  replaces fail-on-first-error: transient network blips now ride
  through silently on the forward buffer instead of tearing down and
  rebuilding the player. Interruption reasons (server outage, network
  loss, premature EOF, session missing) surface only after retries are
  exhausted.
- Serve loops await cache fills via registered waiters (register-first
  ordering, re-driven on retarget/finish, failed only for the
  responsible stream on give-up).
- Span cache: adjacent streaming slabs append in place (16 MiB spans)
  instead of paying the full-copy merge; appends refresh eviction age.
- Loopback playback now starts the origin stream at plan time,
  overlapping connect + slow-start with demuxer spawn.

Adversarially reviewed: fixed retarget-stranded waiters, waiter
registration racing stream give-up, park/unpark races (suspend under
lock + post-park recheck), terminal-stream revival leaking a live
URLSession, give-up failing waiters of healthy streams, and generation
guards on finish/give-up.

3 platforms build; 511 tests pass (15 new: routing policy, reconnect
policy, cache append). Hardware-validated on Apple TV 4K (3rd gen)
with a 63 Mbps DV P7 TrueHD title: clean startup, seeks, steady
segment cadence, no watchdog escalations.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 5, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e192d64e-0938-4ede-9e5c-6c8813007dc9

📥 Commits

Reviewing files that changed from the base of the PR and between 5d71e69 and 7e91ca9.

📒 Files selected for processing (4)
  • iosApp/Tests/PlaybackOriginStreamPolicyTests.swift
  • iosApp/Tests/PlaybackSourceResponseEndTests.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourceProxy.swift
🚧 Files skipped from review as they are similar to previous changes (3)
  • iosApp/Tests/PlaybackOriginStreamPolicyTests.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourceProxy.swift

📝 Walkthrough

Walkthrough

This PR replaces chunk-based prefetch with demand-driven origin streaming, adds new stream selection and reconnect policies, rewires cache and response handling around long-lived streams, and updates tests plus loopback prefetch startup.

Changes

Demand-driven origin streaming

Layer / File(s) Summary
Stream selection and reconnect policies
iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
Defines PlaybackOriginStreamPolicy and PlaybackOriginReconnectPolicy for stream routing, pause decisions, retry timing, and give-up handling.
PlaybackOriginStream implementation
iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
Adds the long-lived HTTP range stream with cursor tracking, watchdog reconnection, response validation, cache writes, completion handling, and delegate forwarding.
PlaybackSourceProxy orchestration and cache updates
iosApp/iosApp/Screens/Player/PlaybackSourceProxy.swift
Adds cache offset lookup and streaming append, rewrites resource orchestration around waiters and stream pools, and updates GET/HEAD serving and interruption handling.
Tests and prefetch cleanup
iosApp/Tests/PlaybackOriginStreamPolicyTests.swift, iosApp/Tests/PlaybackSourceResponseEndTests.swift, iosApp/Tests/PlaybackSourcePrefetchPolicyTests.swift, iosApp/iosApp/Screens/Player/PlaybackSourcePrefetchPolicy.swift, iosApp/iosApp/Screens/Player/PlayerViewModel.swift
Adds policy/cache/response-end tests, removes the prefetch retarget helper and its test, and makes loopback prefetch start unconditionally.

Estimated code review effort: 4 (Complex) | ~75 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant PlaybackSourceProxy
  participant PlaybackSourceResource
  participant PlaybackOriginStream
  participant PlaybackSourceCache
  Client->>PlaybackSourceProxy: respondGet(request)
  PlaybackSourceProxy->>PlaybackSourceResource: awaitTotalLength / awaitData
  PlaybackSourceResource->>PlaybackSourceCache: contains(offset) / read
  PlaybackSourceResource->>PlaybackOriginStream: ensureStream / noteDemandHint
  PlaybackOriginStream->>PlaybackSourceCache: store bytes
  PlaybackOriginStream-->>PlaybackSourceResource: streamDidStore / streamEnded
  PlaybackSourceProxy-->>Client: served response
Loading

Possibly related PRs

  • Silo-Server/silo-apple#52: Touches the same response-end and PlaybackSourceProxy.swift flow, including end-of-fetch classification behavior.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: switching origin fetch to streaming to fix buffering on high-latency connections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/exciting-lalande-499331

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift`:
- Around line 287-301: `resumeFillingIfNeeded()` in `PlaybackSourceOriginStream`
resumes a parked task without updating `lastDataAt`, so a freshly unparked
stream can still look stalled to the watchdog. When the task is resumed inside
the `parked`/`cancelled` check, also refresh `lastDataAt` at that same point so
the connection’s activity timestamp reflects the unpark event and avoids an
unnecessary reconnect.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: df62baeb-9068-42a8-91d3-7dca75148f90

📥 Commits

Reviewing files that changed from the base of the PR and between 64441aa and 5d71e69.

📒 Files selected for processing (6)
  • iosApp/Tests/PlaybackOriginStreamPolicyTests.swift
  • iosApp/Tests/PlaybackSourcePrefetchPolicyTests.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourcePrefetchPolicy.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourceProxy.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift
💤 Files with no reviewable changes (2)
  • iosApp/Tests/PlaybackSourcePrefetchPolicyTests.swift
  • iosApp/iosApp/Screens/Player/PlaybackSourcePrefetchPolicy.swift

Comment on lines +287 to +301
func resumeFillingIfNeeded() {
lock.lock()
let shouldConsider = parked && !cancelled && !finished
let cursor = writeCursor
let mark = demandMark
lock.unlock()
guard shouldConsider else { return }
guard callbacks.mayContinueFilling(self, cursor, mark) else { return }
lock.lock()
if parked, !cancelled {
parked = false
task?.resume()
}
lock.unlock()
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Map the file and inspect the relevant region with line numbers.
git ls-files 'iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift'
wc -l iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
sed -n '1,260p' iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
printf '\n---\n'
sed -n '260,360p' iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift

# Find all uses of lastDataAt and reconnect/stall logic.
printf '\n=== lastDataAt references ===\n'
rg -n 'lastDataAt|reconnectIfStalled|stallSeconds|parked|mayContinueFilling' iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift

Repository: Silo-Server/silo-apple

Length of output: 14668


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the watchdog and data-delivery paths around the cited lines.
sed -n '360,520p' iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift
printf '\n---\n'
sed -n '520,640p' iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift

# Show all assignments to parked/lastDataAt and the watchdog trigger site with context.
printf '\n=== parked / lastDataAt assignments ===\n'
rg -n -C 2 'lastDataAt = Date\(\)|parked = false|parked = true|reconnectIfStalled|resumeFillingIfNeeded|mayContinueFilling' iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift

Repository: Silo-Server/silo-apple

Length of output: 14095


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for watchdog/park semantics in tests or related code.
rg -n -C 2 'stallSeconds|reconnectIfStalled|resumeFillingIfNeeded|lastDataAt|parked|suspend\(\)|resume\(\)' iosApp . --glob '!*.xcworkspace' --glob '!*.xcodeproj' --glob '!*.pbxproj'

Repository: Silo-Server/silo-apple

Length of output: 50378


Reset lastDataAt when unparking

resumeFillingIfNeeded() resumes a parked task without refreshing lastDataAt. If the stream stays parked longer than stallSeconds, the next watchdog tick can treat the just-unparked connection as stalled and reconnect it unnecessarily.

Suggested fix
         lock.lock()
         if parked, !cancelled {
             parked = false
+            lastDataAt = Date()
             task?.resume()
         }
         lock.unlock()
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
func resumeFillingIfNeeded() {
lock.lock()
let shouldConsider = parked && !cancelled && !finished
let cursor = writeCursor
let mark = demandMark
lock.unlock()
guard shouldConsider else { return }
guard callbacks.mayContinueFilling(self, cursor, mark) else { return }
lock.lock()
if parked, !cancelled {
parked = false
task?.resume()
}
lock.unlock()
}
func resumeFillingIfNeeded() {
lock.lock()
let shouldConsider = parked && !cancelled && !finished
let cursor = writeCursor
let mark = demandMark
lock.unlock()
guard shouldConsider else { return }
guard callbacks.mayContinueFilling(self, cursor, mark) else { return }
lock.lock()
if parked, !cancelled {
parked = false
lastDataAt = Date()
task?.resume()
}
lock.unlock()
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@iosApp/iosApp/Screens/Player/PlaybackSourceOriginStream.swift` around lines
287 - 301, `resumeFillingIfNeeded()` in `PlaybackSourceOriginStream` resumes a
parked task without updating `lastDataAt`, so a freshly unparked stream can
still look stalled to the watchdog. When the task is resumed inside the
`parked`/`cancelled` check, also refresh `lastDataAt` at that same point so the
connection’s activity timestamp reflects the unpark event and avoids an
unnecessary reconnect.

…ache reuse

Fixes from an adversarial multi-agent review of the streaming rewrite:

- Retarget/redrive livelock: with more cache-missing demand regions than
  stream slots, every re-driven waiter retargeted the connection the
  previous one had just opened before its first byte arrived. Retarget
  victims must now have delivered since their last (re)target (or aged
  past a grace period); ineligible pools return a new `.wait` action and
  the waiter is re-driven on the first delivery or stream end.
- Parked-stream wedge: the readahead budget gate had no demand bypass, so
  a seek onto a parked stream while the forward run filled the budget
  parked playback permanently (nothing read -> nothing evicted -> never
  unparked). shouldPause now never parks a stream whose demand mark is at
  or ahead of its cursor.
- Background give-up escalation: any stream give-up fired
  onPlaybackSourceInterrupted and tore the player down mid-watch even
  when playback was riding the forward cache. Interruptions now surface
  only when the give-up failed a foreground waiter (chunked-path parity).
- Cursor-before-store race: handleData published the advanced write
  cursor before the bytes reached the cache, so a concurrent miss at the
  frontier classified as behind-cursor and spawned a duplicate playhead
  connection. Bytes are now stored before the cursor advances.
- Cached-run re-download: a stream retargeted just below a back-scrubbed
  forward cache re-pulled the whole cached region byte-for-byte. Streams
  now check each 1 MiB of progress and jump (or finish) over cached runs
  >= 8 MiB via cache.nextPrefetchStart, which the rewrite had orphaned.
- Connection churn on retarget/reconnect: each attempt built a fresh
  ephemeral URLSession and invalidated the old one, destroying the
  connection pool and paying TCP+TLS+slow-start per seek. One session now
  lives for the stream's lifetime; attempts are per-task, staleness is
  keyed on task identifiers.
- Unknown-total responses: a total-less first origin response latched and
  produced 206s with neither Content-Range nor Content-Length. Exact
  ranges now use the RFC 9110 unknown-total form (bytes s-e/*),
  head-anchored open ranges downgrade to 200, and mid-file open ranges
  refuse with 503 instead of emitting an unsizeable 206.
- Small ones: past-EOF clamp moved into PlaybackSourceResponseEnd.classify
  (with a test pinning it), the premature-EOF log no longer reads
  discoveredTotalLength unlocked, beginOriginRequest now pairs under
  stateLock so a racing stop() can't strand the stats gauge, and
  finish/give-up share one terminate() teardown that also cancels a
  pending reconnect task.

516 tests pass; iOS/tvOS/macOS builds green.

Co-Authored-By: Claude Fable 5 <[email protected]>
@Quick104

Quick104 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Review round 2 — verified findings fixed (7e91ca9)

An adversarial 8-angle / 16-verifier review pass surfaced 8 confirmed issues; all are fixed in 7e91ca9:

Correctness

  1. Retarget/redrive livelock (3+ demand regions, 2 slots): retarget victims must now have delivered since their last (re)target or aged past a 10 s grace; ineligible pools return a new .wait routing action and the waiter re-drives on first delivery / stream end. Pinned by 3 new policy tests.
  2. Permanent park wedge (seek onto a parked stream with the forward budget full): shouldPause never parks a stream whose demand mark is at/ahead of its cursor — demand-driven fill bypasses the budget gate, restoring chunked-path parity.
  3. Background give-up tore the player down mid-watch: streamEnded surfaces onPlaybackSourceInterrupted only when the give-up failed a foreground waiter; an idle readahead/tail stream dying while playback rides the cache is now silent (next miss just routes to a fresh stream).
  4. Cursor-before-store race: bytes are stored before the advanced cursor is published, so a frontier miss can no longer classify as behind-cursor and spawn a duplicate playhead connection.
  5. Cached-run re-download after back-scrub: streams check each 1 MiB of progress and retarget past (or finish over) already-cached runs ≥ 8 MiB via cache.nextPrefetchStart — which the rewrite had left orphaned.
  6. Unsynchronized discoveredTotalLength read in the premature-EOF log branch (TSan-reportable) — now uses the locked value.

Performance / robustness
7. Per-retarget URLSession rebuild: one session per stream lifetime, per-attempt data tasks keyed by task identifier — seeks and reconnects no longer pay a fresh TCP+TLS handshake + slow-start.
8. Total-less origin responses: exact ranges emit the RFC 9110 unknown-total form (bytes s-e/*), head-anchored open ranges downgrade to 200, mid-file open ranges refuse with 503 instead of a 206 with no Content-Range/Content-Length.

Also swept in: past-EOF clamp moved inside PlaybackSourceResponseEnd.classify (+test), beginOriginRequest paired under stateLock (racing stop() could strand the stats gauge), finishStream/giveUp merged into one terminate() that also cancels a pending reconnect task, and a dataWaiters.isEmpty fast path in streamDidStore.

Refuted during verification (no change needed): plan-time prefetch offset past EOF (server 416 carries Content-Range: */size, client finishes cleanly) and permanent nil-total after a give-up (recovers on the next request).

Follow-up candidates (separate PR): consolidate the three isPlaybackSessionMissing detectors (stream / bridge / PlayerViewModel) onto one helper, and per-delivery lock/scan cost in mayContinueFilling + insertSpanLocked (span-index hint) if profiling shows contention on A12-class hardware.

Testing: 516 tests pass (5 new: retarget eligibility ×3, budget-bypass parking, past-EOF classify); iOS / tvOS / macOS builds green.

🤖 Generated with Claude Code

@Quick104
Quick104 merged commit 92b7ef7 into main Jul 5, 2026
1 check passed
@Quick104
Quick104 deleted the claude/exciting-lalande-499331 branch July 5, 2026 18:58
Quick104 added a commit that referenced this pull request Jul 7, 2026
Cluster-by-cluster comparison of AetherEngine's fixed defects against the
silo-apple loopback + PlayerCore stack: 18 gaps (1 high, 15 medium, 2 low)
where AE enforces an invariant we don't, each with the AE symptom, our
concrete exposure scenario, and a fix naming our files/functions. Produced
by a 5-phase agent workflow (mine 277 AE fixes → cluster → audit vs our
code → adversarial verify); 15 gaps verified, 3 marked unverified.

Markdown for review + a self-contained HTML report for sharing. Excludes
today's moov-wedge fix (359d20c) and the PR #52/#66/#68 stack as landed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant