You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(player): report a slow link on a stall only with slow-transfer evidence - #1237
Merge after Silo-Server/AetherEngine#30. This branch pins AetherEngine to that PR's head (f470d8dc), which adds the relay telemetry used here. AetherEngine merges with merge commits, so the pinned SHA stays reachable after that PR merges. Opened ready for review because the contribution gate closes drafts. Please don't merge it before the engine PR.
With quality on Auto, every stall after playback started was reported to the server as observed_rebuffer. The server stores that as the device's bandwidth limit for 24 hours. Often the stall is the server's own work: an encoder slower than real time, subtitle burn-in, a slow source read, or a transcode node starting up. One slow encode then capped every later playback on that connection. For example, an MKV with many large embedded fonts, sent to transcode with ASS burn-in, stored a low limit even on a fast link.
On server HLS the evidence of a slow link was also wrong. The player read AVPlayer's access-log rate, which times each segment request on the loopback hop to AetherEngine's relay from the moment the request was sent. The server answers a transcode segment only after the encoder has written it, so encode time was counted as transfer time.
Approach
A stall after playback started still lowers quality, because a smaller output also helps a slow encoder. The lowering sends observed_rebuffer and observed_throughput_kbps only when the plan's media measurably arrived below its delivered bitrate. Without that evidence it sends only the step-down estimate, which the server uses for the next plan but never stores. Picking Lower on the prompt follows the same rule. Stalls before anything played already required evidence, and that is unchanged.
On server HLS the evidence now comes from AetherEngine's relay (relayMediaReceivedBytes, relayMediaReceivingMs). It times each segment from its first byte to its last, skips segments that arrive in under 1 s, and counts time when several segments were arriving at once only once. These are the rules Android's PlaybackThroughputMeter uses. RelayPlanThroughput takes the playing plan's share of those running totals. It resets on plan adoption and on a network change, and it ignores segments loaded for a replacement plan.
The [CMP-BUFFERING] trigger replan log line now also records the observed throughput and the plan's arrival rate.
Review fixes: when another reader shares the link (an embedded subtitle's prefetch) and the plan's reader got less than the bitrate, the lowering counts as a slow link only if the device's own receive count, where there is one, is below the bitrate too. sendReplan makes that call for every lowering, and the player sends the controller's observed_throughput_kbps with no fallback of its own. The license notices now name the pinned AetherEngine revision.
Validation
iOS 27.2 simulator, Xcode 27.2, on the code at the final head dd6215de: BufferingQualityControllerTests (31), BufferingSignalMapperTests (25) and BufferingQualityContractTests (13) pass, 69 tests with 0 failures.
Fails on the base: on the merge base f70e16ae, seven of the PR's controller tests fail because an unevidenced stall after playback goes out as observed_rebuffer. The review's shared-link case failed on ce4a042b and passes now.
Builds (Debug, build only): Silo (iOS), SiloTV and SiloMac succeed at ce4a042b, 7385c001 and dd6215de, with the AetherEngine pin resolved from https://github.com/Silo-Server/AetherEngine at f470d8dc.
Not run: a real-player stall check on a server.
Evidence
No screen changes. The change affects one field of the replan request: whether a lowering after a stall carries observed_rebuffer, which the server stores as this device's limit. The quality picked on Auto still drops on a stall the same way. What changes is that a stall the server caused no longer caps the next playback on the connection, and a still capture can't show that. The request contents are what decide it, and the controller tests below check them for each case. The same code builds into the iPhone, iPad, Mac and Apple TV apps, and nothing here depends on the device. Checked with the focused XCTest suites on the iOS simulator, at head ce4a042b:
BufferingQualityControllerTests: Executed 25 tests, with 0 failures
BufferingSignalMapperTests: Executed 31 tests, with 0 failures
** TEST SUCCEEDED **
Covered cases:
After playback started, a stall sends observed_rebuffer with the measured rate only when the measured rate is below the plan's bitrate. With no measurement, or one above the bitrate, it sends the bare estimate. Both the automatic lowering and Lower on the prompt are covered.
The relay meter takes the plan's share of the relay totals. The cases are plan adoption, a replacement loading on its own relay that has already counted more than the old one, a plan on the same relay, the relay rebuilt within a load after a tick without one, and a network change.
Risks
A stall with no slow-transfer evidence no longer teaches the server a limit, so on a slow link that the relay can't time (every segment arrives in under 1 s), Auto relies on the step-down estimate alone. That estimate still lowers quality.
Needs the AetherEngine PR above. Merged alone, this would pin an engine revision that is not on main.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
AI Disclosure
Harness: Claude Code
Tool(s): Claude Code; Codex CLI for review
Model(s): claude-opus-5-5 (author); gpt-6.2-sol, gpt-6.2-astra (Codex CLI) and Claude Fable 5.2 for review
Involvement: Fully AI-generated, human verified
Maintainer review: Claude Code (claude-opus-5-5) with a council of gpt-6.2-sol, claude-opus-5-5 and gemini-4-neon; scores and open points are in the review summary comment.
Adversarial review: four independent reviews of the branch diff (correctness, standards, spec). Fixed: the relay totals now travel as one value, not two optionals that can disagree. Not changed:
On direct play, a stall can still count as slow from the shared-reader lower bound while the device's own count is higher. Stalls before anything played already followed this rule, and this change narrows it after playback started.
The relay rate is a whole-plan average, the same as Android's per-plan meter.
The duplication between the two meters' network-change bookkeeping is about ten lines.
Note
Fix slow-link reporting to require slow-transfer evidence in BufferingQualityController
A replan estimate now carries the observed-rebuffer source only when the plan's measured arrival (or its lower bound) is below the delivered bitrate, and the device link throughput (when available) is also below it. Lowerings without this evidence still proceed after a playback stall, but with an unsourced estimate.
Server-HLS throughput now comes from a new relay-plan meter in UpstreamReadMeter.swift, which accumulates relay bytes and receiving time per plan and ignores ticks from replacement loads. PlayerViewModel.swift adopts this meter and no longer fills observed throughput from the upstream read meter as a fallback.
Replan requests forward only the controller's observed-throughput value, and replan logging now includes observed throughput and plan-arrival values.
Pins AetherEngine to revision f470d8dc610537929c83ef31877287e9d2ad9d28 and updates the corresponding notices.
Behavioral Change: post-playback stalls can still lower quality without slow-link evidence, but the estimate is unsourced; tests in BufferingQualityControllerTests.swift distinguish unsourced from observed-rebuffer-sourced lowering requests.
…idence
After playback had started, every stall that lowered quality on Auto was
sent as observed_rebuffer, which the server learns as this device's
bandwidth limit for 24 hours. A stall is often the server's own work: an
encoder slower than real time, subtitle burn-in, a source read or a node
starting. None of that says anything about the link, yet one slow encode
capped every later playback on the connection.
A stall still lowers quality, because a smaller output also helps a slow
encoder. The lowering carries observed_rebuffer and observed_throughput_kbps
only when the plan's media measurably arrived below its delivered bitrate
while it was arriving. Without that evidence the step-down estimate goes
alone, which the server plans under and never records. Picking Lower on the
prompt follows the same rule.
…e server works
On server HLS the buffering controller's evidence of a slow link was
AVPlayer's access-log rate on the loopback hop to AetherEngine's relay. It
times each segment request from when it was sent, and the server answers a
transcode segment only once the encoder has written it, so the encode time
was counted as transfer time and a slow encoder read as a slow link.
The evidence is now the relay's own timing (AetherEngine's
relayMediaReceivedBytes and relayMediaReceivingMs): each segment from its
first byte to its last, segments under 1 s left out, overlapping time
counted once, the rules Android's PlaybackThroughputMeter uses. The player
takes the playing plan's share of those totals. The trigger replan log line
now also records the observed throughput and the plan's arrival rate.
AetherEngine moves to f470d8dc (Silo-Server/AetherEngine#30), which adds
those telemetry fields.
Server-HLS plan-arrival throughput now uses relay byte and receiving-time totals. Buffering quality replans can lower quality after playback without slow-link evidence. Replans include source and throughput fields only when measurements indicate a slow link.
Server-HLS telemetry provides relay media bytes and receiving time. RelayPlanThroughput tracks the playing plan’s share of those totals, and PlayerViewModel uses its estimate for server-HLS plan arrivals. Tests cover missing totals, replacement loads, plan adoption, relay rebuilds, and network changes. The pinned AetherEngine revision and its license references changed.
Separate stall lowering from slow-link evidence iosApp/iosApp/Screens/Player/BufferingQualityController.swift, iosApp/Tests/BufferingQualityControllerTests.swift
Stalls can trigger lowering after playback without slow-link evidence. Replans include the observed-rebuffer source and throughput only when measurements indicate a slow link. Tests cover automatic lowering, prompt selection, and other lowering paths.
sequenceDiagram
participant AetherPlaybackController
participant PlayerViewModel
participant RelayPlanThroughput
AetherPlaybackController->>PlayerViewModel: relay byte and receiving-time totals
PlayerViewModel->>RelayPlanThroughput: record totals with network key and counting status
PlayerViewModel->>RelayPlanThroughput: read plan throughput estimate
Loading
Possibly related PRs
Silo-Server/silo-apple#842: Introduces buffering-triggered quality logic and controller behavior that this PR changes.
Suggested reviewers:quick104
Merge Risk: Low · up to 7385c
Stall-triggered quality drops now report slow-link evidence only when transfer measurements support it. One narrow edge case remains. If the network switches while a replacement stream is loading, bytes from the old network can briefly skew the rate used as slow-link evidence. This is unlikely and low impact, so the PR is mergeable with owner awareness; the pinned engine dependency still needs to merge first.
Security architecture risk: Minimal · up to 7385c
The change narrows when a playback stall is reported as evidence of a slow connection. The inspected changes do not establish a new security exposure or weakened failure-containment guarantee. Integration with the paired engine and server changes remains unverified.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — The visible changed path concerns media-transfer observations influencing existing playback-replan metadata. The PR describes a downstream device/connection bandwidth limit lasting 24 hours, but that persistence scope and its isolation are author-described rather than verified against server code. No broader authority or independently attackable scope is established by the inspected changes.
Trust Boundaries and Controls
observed — Media arrival measurements can still influence a client's slow-link assertion, but the changed control requires below-bitrate arrival evidence and rejects that assertion when an available device-link measurement demonstrates adequate throughput. The downstream caller no longer supplements missing evidence from the upstream meter.
Resilience and Maintainability Implications
observed — The existing recovery lifecycle remains: refused requests restore the prior kept estimate, failed requests clear pending state, and unadopted requests rearm rather than suppressing future decisions indefinitely. Plan termination clears pending state. Relay-meter tests explicitly exercise replacement-load exclusion, same-relay adoption, relay reconstruction and network-change invalidation; these assertions were read but not executed.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a stall reports a slow link (observed_rebuffer) only when slow-transfer evidence exists. The changeset adds that rule in BufferingQualityController.sendReplan, the rel…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is detailed and directly related to the changeset. It explains that stalls after playback started now send observed_rebuffer only with slow-transfer evidence, describes the server-HLS …
Full details: Title check
Explanation
The title names the main change: a stall reports a slow link (observed_rebuffer) only when slow-transfer evidence exists. The changeset adds that rule in BufferingQualityController.sendReplan, the relay meter, and the tests that check the request contents. It is specific and follows the conventional prefix style.
Full details: Description check
Explanation
The description is detailed and directly related to the changeset. It explains that stalls after playback started now send observed_rebuffer only with slow-transfer evidence, describes the server-HLS relay throughput meter (RelayPlanThroughput) that replaces the AVPlayer access-log rate, covers the AetherEngine pin and license notice updates, and lists validation and risks. The description is not generic or off-topic, so the check passes.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
silo-triageBot
added
bug
Something isn't working
impact: playback
Can't play, stalls, or wrong media
priority: P1
Core-path bug; painful workaround — next after P0
stacked
Stacked on another open PR or branch
triaged
High-confidence review completed; does not mean fixed, validated, or accepted for release.
labels
Nov 20, 2026
The buffering report changes in BufferingQualityController.swift and PlayerViewModel.swift can change whether the server saves a bandwidth limit and therefore the quality of later playback. Evidence is missing for iPhone, iPhone Duo folded and open, iPad, Mac, and Apple TV; add before/after playback captures or a recording showing the quality effect on each device, identifying the device and build (and the Duo orientation). The listed unit tests and builds do not demonstrate that user-visible effect.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The relay meter told a new relay from the old one only by its totals
dropping, so a replacement whose relay had already counted more than the
playing plan's was taken as a continuation and the old counters were
subtracted from it. Its uncounted ticks also moved the baseline, so how
much of a replacement's loading reached the adopted plan depended on where
the ticks fell.
The totals now carry the load whose relay counted them, a different load
counts from 0, and an uncounted tick is not a baseline: a replacement's
relay is its plan's from its first byte. A tick without a relay still
drops the baseline, because the engine rebuilds the relay within a load
after the app returns from the background or the route changes.
This change has no visible effect on any device. It decides whether one replan field, observed_rebuffer, goes with a stall's lowering. A capture would look the same before and after: the quality still drops on a stall. What changes is whether the server stores a limit for later playbacks, and the controller tests check the request contents for each case. The Evidence section now says this. The Apple TV build gap is a type-check timeout in TVMainTabView.swift on the local Xcode 26.6 toolchain, in a file this PR doesn't touch. CI builds with Xcode 27.1.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Forward the controller's observed throughput without the link… · PlayerViewModel.swift:12251
iosApp/iosApp/Screens/Player/PlayerViewModel.swift:12251 Minor · Data Integrity & Integration · Quick win
Forward the controller's observed throughput without the link fallback.
When the plan's media arrived below its delivered bitrate but the link measure is at or above it, observed_rebuffer is still sent. The fallback then supplies the link measure as observed_throughput_kbps, even though the controller withheld it for being at or above delivered. For example, with a delivered bitrate of 8,000 kbps, measured arrival of 5,000 kbps, and link throughput of 20,000 kbps, this line sends 20,000.
Forward the controller's value unchanged. The controller already reports the link measure when it is below the delivered bitrate, so the fallback adds nothing for that case. Evidence-free lowerings keep nil observed throughput.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The pin moved to f470d8dc, but the third-party notices and the bundled
open-source README still linked af67a2e0 as the exact source the app
is built from.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With an embedded subtitle's reader sharing the link, the plan's reader
can get less than the delivered bitrate while the device receives more.
That share was enough to send observed_rebuffer, and the player then
attached the device's count, at or above the bitrate, as the observed
throughput, so the server stored the step-down estimate as this
device's limit on a fast link.
A lowering now reports a slow link only when the device's count, where
it has one, is below the delivered bitrate too. The decision is made
once in sendReplan for every lowering, and the player sends the
controller's figure without its own fallback.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🤖 Claude Code (claude-opus-5-5)
Review of ce4a042b. Two findings. I'm fixing both in commits on this branch, so there's no need to change anything yourself. The summary comment that follows has the scores, verification, and the points left for maintainers.
The latest shared-reader guard changes subsequent playback quality, but that effect is not shown. reportsSlowLink and forwarding only the controller's throughput prevent a shared reader's low plan rate from being saved as a device limit when the device's overall receive rate is fast. This affects later playback on iPhone, iPhone Duo folded and open, iPad, Mac, and Apple TV; the XCTest results verify request fields, not that playback effect. Add recordings showing the resulting later-playback quality on each device, with the build or commit identified and both Duo orientations covered.
iosApp/Resources/OpenSourceLicenses/README.txt also changes the AetherEngine revision displayed in Settings > About > Acknowledgements. The Evidence section has no before-and-after captures of that text on iPhone, iPhone Duo folded and open, iPad, Mac, or Apple TV; add paired captures for each device and identify the build or commit (and both Duo orientations).
Suggested fix: No diff; provide the requested recordings and captures.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
…yback
On direct play with no shared reader the device's receive count equals
the reader's rate, so the post-play stall cases now run with and without
it. The slow-link note says that count can veto a measured rate too, and
that this errs toward learning nothing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
12122-12122: Minor · Functional Correctness · Poor tradeoff
Exclude replacement bytes received on another network before adoption.
A replacement relay counts its bytes and receiving time from its first byte. Uncounted ticks do not set a baseline for it. planAdopted clears the books but keeps the outgoing baseline, so the first counted tick adds the replacement's full totals. If the network changes after the replacement starts receiving and before adoption, those totals include transfer from the previous network. A low mixed rate can then feed observed_rebuffer to the new network when a stall follows on the adopted plan.
networkChanged does not prevent this. planAdopted clears the marker. The marker is also never set when no telemetry tick reports the new network before adoption.
Bytes and receiving time received before adoption on a network other than the adopted network key must not count toward that plan. Bytes received on the same network must still count from the first byte, as the RelayPlanThroughput doc comment states. A fix that moves the baseline only at uncounted telemetry ticks does not cover a network change between the last tick and adoption.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 0b067fa8-3f56-47dc-b2bc-70fc74dd53a3
Commits
Reviewing files that changed from the base of the PR and between ce4a042 and 7385c00.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The class overview and startDeadlinePassed still described the earlier
rule. Both now name reportsSlowLink, which also requires the device's
own receive count, where there is one, to be below the delivered
bitrate.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fit: 9/10 · Readiness: 8/10 — conditional. The remaining condition is the stated merge order: the pin points at AetherEngine#30's head, so this must merge after that PR.
The change fixes a real problem. A stall caused by the server's own work (a slow encode, burn-in, a node starting) was reported as a slow link and capped every playback on that connection for a day. The client is the right place to decide this, because only the client knows whether bytes were flowing during the stall. The server's own refusal in silo-server#4640 adds a second check, and silo-android#1011 applies the same client rule on Android. Readiness is 8 rather than 9 because of the engine dependency, plus a few small timing edges listed below. None of them can cause a wrong stored limit beyond what main does today.
Reviewed and addressed
I reviewed ce4a042b and pushed three commits:
e6b83914: THIRD_PARTY_NOTICES.md and the bundled open-source README now name the pinned AetherEngine revision f470d8dc. Both still linked af67a2e0 as the exact source.
7385c001: when another reader shares the link and the plan's reader gets less than the bitrate, a lowering now counts as a slow link only if the device's own receive count, where there is one, is below the bitrate too. Before this, a fast link could still be stored as a 24-hour limit, with a throughput figure above the bitrate attached by the player's fallback. sendReplan now makes the call for every lowering, and the player sends only the controller's figure.
3a27a5a1, dd6215de: the post-playback cases now run with and without a device count, and the doc comments match the rule.
Verification
Tests, on an iOS 27.2 simulator: BufferingQualityControllerTests, BufferingSignalMapperTests and BufferingQualityContractTests ran 69 tests with 0 failures, on the code at dd6215de.
The PR's controller tests fail on the merge base (7 tests), each because an unevidenced stall after playback was sent as observed_rebuffer. The review's shared-link case fails on ce4a042b and passes with the fix.
Builds: iOS, tvOS and macOS all succeed at ce4a042b, 7385c001 and dd6215de. That includes SiloTV, which the PR couldn't build locally.
Not run: a live stall against a server. The behavior is the contents of one replan request, and the controller tests assert it case by case.
Merge order. Merge after AetherEngine#30. silo-server#4640 and silo-android#1011 aren't required first: the server on main already plans under an unsourced estimate without storing it. Still, landing all three together keeps Android and Apple on the same rule.
Whole-plan average. The relay rate averages the plan's whole run, so a slowdown late in a long playback can be hidden by earlier fast transfers. Auto still lowers, but nothing is learned. This matches Android's per-plan meter and is disclosed above. A recent-window rate would be a separate change for both apps.
Network-change windows. A lowering in the second between a network handoff and the next telemetry tick, or a replacement's bytes from before a network switch that lands just before adoption, can mix two networks' readings. Both windows are narrow, and UpstreamReadMeter has the same shape.
Device count includes other traffic. On direct play, another app's download (or a second interface on a Mac) can lift the device count to the bitrate and stop a real slow link from being learned. That fails toward learning nothing, and a real slow link is learned at its next stall.
Stale tick at a new load. A telemetry tick between beginLoad and the engine tearing down the old relay could tag the old relay's totals with the new load. This is plausible only in one main-actor hop, and it reweights the average rather than corrupting it.
Other checks
Validated features: not run. The reviewing token lacked the read:project scope.
User manual: affected. Watch movies and series → If playback keeps buffering says Silo remembers the slower speed for 24 hours after lowering, and a lowering without slow-transfer evidence no longer does. siloserver.org#403 already covers that page for a related server change, so this change belongs there rather than in a new issue.
Apple/Android parity: paired with silo-android#1011, which applies the same rule. Android has no shared-reader lower bound, so the device-count check here brings Apple closer to it. Web is follow-up silo-server#4643.
Council
Two rounds: round 1 on ce4a042b, round 2 on 7385c001. Only tests and comments changed after round 2.
Member
Round 1
Round 2
Sol (gpt-6.2-sol, xhigh)
7/10
8/10
Opus (claude-opus-5-5, high)
8/10
8.5/10
Gemini (gemini-4-neon, xhigh)
7/10
9/10
Fixed: the shared-reader false slow link (all three members raised it), the player's throughput fallback, the slowLink: parameter, and stale doc comments. Answered: spec and vectors (rewritten in silo-server#4640), no plan_summary throughput on server HLS (a choice #4640's spec documents), and audio-only (no buffering plans). Open: the items under Left for maintainers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingimpact: playbackCan't play, stalls, or wrong mediapriority: P1Core-path bug; painful workaround — next after P0size/L200–499 added + deleted lines (all files); change volume, not priority.stackedStacked on another open PR or branchtriagedHigh-confidence review completed; does not mean fixed, validated, or accepted for release.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: none
Other clients: Android Silo-Server/silo-android#1011; Roku N/A (no
observed_rebufferreporting found in silo-roku); Web N/A (the server side is Silo-Server/silo-server#4640)Pairs with Silo-Server/AetherEngine#30 (relay timing), Silo-Server/silo-android#1011 (the same rule on Android) and Silo-Server/silo-server#4640 (the server no longer learns a limit from a stall its transcode caused).
With quality on Auto, every stall after playback started was reported to the server as
observed_rebuffer. The server stores that as the device's bandwidth limit for 24 hours. Often the stall is the server's own work: an encoder slower than real time, subtitle burn-in, a slow source read, or a transcode node starting up. One slow encode then capped every later playback on that connection. For example, an MKV with many large embedded fonts, sent to transcode with ASS burn-in, stored a low limit even on a fast link.On server HLS the evidence of a slow link was also wrong. The player read AVPlayer's access-log rate, which times each segment request on the loopback hop to AetherEngine's relay from the moment the request was sent. The server answers a transcode segment only after the encoder has written it, so encode time was counted as transfer time.
Approach
observed_rebufferandobserved_throughput_kbpsonly when the plan's media measurably arrived below its delivered bitrate. Without that evidence it sends only the step-down estimate, which the server uses for the next plan but never stores. Picking Lower on the prompt follows the same rule. Stalls before anything played already required evidence, and that is unchanged.relayMediaReceivedBytes,relayMediaReceivingMs). It times each segment from its first byte to its last, skips segments that arrive in under 1 s, and counts time when several segments were arriving at once only once. These are the rules Android'sPlaybackThroughputMeteruses.RelayPlanThroughputtakes the playing plan's share of those running totals. It resets on plan adoption and on a network change, and it ignores segments loaded for a replacement plan.[CMP-BUFFERING] trigger replanlog line now also records the observed throughput and the plan's arrival rate.sendReplanmakes that call for every lowering, and the player sends the controller'sobserved_throughput_kbpswith no fallback of its own. The license notices now name the pinned AetherEngine revision.Validation
dd6215de:BufferingQualityControllerTests(31),BufferingSignalMapperTests(25) andBufferingQualityContractTests(13) pass, 69 tests with 0 failures.f70e16ae, seven of the PR's controller tests fail because an unevidenced stall after playback goes out asobserved_rebuffer. The review's shared-link case failed once4a042band passes now.Silo(iOS),SiloTVandSiloMacsucceed atce4a042b,7385c001anddd6215de, with the AetherEngine pin resolved fromhttps://github.com/Silo-Server/AetherEngineatf470d8dc.Evidence
No screen changes. The change affects one field of the replan request: whether a lowering after a stall carries
observed_rebuffer, which the server stores as this device's limit. The quality picked on Auto still drops on a stall the same way. What changes is that a stall the server caused no longer caps the next playback on the connection, and a still capture can't show that. The request contents are what decide it, and the controller tests below check them for each case. The same code builds into the iPhone, iPad, Mac and Apple TV apps, and nothing here depends on the device. Checked with the focused XCTest suites on the iOS simulator, at headce4a042b:Covered cases:
observed_rebufferwith the measured rate only when the measured rate is below the plan's bitrate. With no measurement, or one above the bitrate, it sends the bare estimate. Both the automatic lowering and Lower on the prompt are covered.Risks
main.Checklist
AI Disclosure
claude-opus-5-5(author);gpt-6.2-sol,gpt-6.2-astra(Codex CLI) and Claude Fable 5.2 for reviewclaude-opus-5-5) with a council ofgpt-6.2-sol,claude-opus-5-5andgemini-4-neon; scores and open points are in the review summary comment.Note
Fix slow-link reporting to require slow-transfer evidence in
BufferingQualityControllerf470d8dc610537929c83ef31877287e9d2ad9d28and updates the corresponding notices.Macroscope summarized 7385c00.