Repository navigation
fix(playback): report a slow link on a stall only with slow-transfer evidence - #1011
Conversation
…vidence Once a plan had played, every stall that lowered quality sent its step-down estimate as bandwidth_estimate_source observed_rebuffer, which the server stores as this device's learned limit for 24 hours. A stall caused by the server producing media slower than real time (a slow encoder, subtitle burn-in, a node starting) then lowered every later playback on that connection, although the link was fine. The lowering still goes out on any counted stall, since a smaller output also helps a slow encoder. It carries observed_rebuffer, and with it observed_throughput_kbps, only when the playback throughput meter shows the plan's media arrived more slowly than its delivered bitrate. The meter times transfer from each request's first byte and ignores requests that received for under a second, so segments that waited at the server and then arrived in a fast burst are no evidence. Without evidence the step-down estimate goes unsourced: the server plans under it and never records it.
|
Warning Review limit reachedThis organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing. Next included review available in 44 minutes. View limit details
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Subsequent Auto playback quality and limited status ( Suggested fix: No diff; add the requested device captures and recording to the Evidence section, or explain why any device cannot be reached. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
No screen changes here: the lowering, its notice and the Auto label behave as before on the stall itself. What changes is whether the server records a limit for later playbacks. That depends on the server-side learning in Silo-Server/silo-server#4640 and on a stall the server causes, which a capture cannot pin down. The Evidence section has the controller results for each case instead. |
Quick104
left a comment
There was a problem hiding this comment.
Review of 9623931. The controller change is right and sits at the right boundary. One medium defect is left where the request is built, plus a doc nit; I'm fixing both on this branch. A summary with scores follows.
🤖 Claude Code (claude-opus-5-5)
The controller decides observed_rebuffer from one meter reading, but the request is built later and reads the meter again. When the default network changed in between, the meter has no reading and the request still claimed a slow link, so the server learned the old network's stall against the new connection. The builder now keeps observed_rebuffer only with the reading it sends; otherwise the estimate goes out alone and still lowers. Also note the network-change and progressive-delivery limits in the playback note, and correct its learned-limit lifetime to 24 hours. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
The harness defaulted to no plan reading, so after the send-time check its lowerings went out unsourced and the resend and kept-estimate tests no longer covered a sourced lowering. Default the harness to a reading, and check that a resend keeps observed_rebuffer. Also widen the playback note's progressive caveat to buffer-full pauses and rewrap the paragraph. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Next-playback quality after a network change ( Suggested fix: No diff; add the requested evidence or explain why any device cannot be reached. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Review summaryReviewed head: 2427cd0 (council round 2 on 36c881d; 2427cd0 changes only tests and docs). Fit: 9/10 · Readiness: 9/10 — ready (assuming CI is green) Fit. This fixes a real problem at the right boundary. A stall the server caused was being learned as this device's bandwidth limit for a day, which lowered every later title on a fine connection. The shared controller now claims a slow link only on measured slow transfer. The lowering itself still happens, and a smaller output helps a slow encoder too. It changes no wire fields and adds no settings. It follows the slow-link rules in silo-server#4640, and the Apple change is silo-apple#1237. Readiness. The PR's controller table test fails on Addressed
For the maintainers
Checks
Council
All three found the split read in round 1, and all three marked it resolved in round 2. Their remaining points are the maintainer items above. 🤖 Claude Code (claude-opus-5-5) |
Problem
Related issue: N/A
Validation tasks: none
Paired pull requests (same report): Silo-Server/silo-server#4639, Silo-Server/silo-server#4640, Silo-Server/silo-server#4641, Silo-Server/silo-server#4642, #1010, #1012, #1013, Silo-Server/silo-apple#1237, Silo-Server/AetherEngine#30
Other clients: Apple Silo-Server/silo-apple#1237; Roku N/A (Roku sends no bandwidth estimate source and learns no limit); Web Silo-Server/silo-server#4643
Once a plan had played, every stall that lowered quality told the server
bandwidth_estimate_source: "observed_rebuffer", and the server records that as this device's learned bandwidth limit on that connection. A stall caused by the server producing media slower than real time (a slow encoder, subtitle burn-in, a remote node starting) was reported the same way, so later playbacks on a fine connection started at lower quality, labelled "Auto · limited after buffering".This change keeps lowering quality on such a stall but reports a slow link only when the transfer was measurably slow.
Approach
The lowering still goes out on any counted stall, since a smaller output also helps a slow encoder. It carries
observed_rebuffer, and with itobserved_throughput_kbps, only when the controller's existing slow-link evidence holds: the playback throughput meter shows the plan's media arrived more slowly than its delivered bitrate. The meter times transfer from each request's first byte and ignores requests that received for under a second, so segments that waited at the server and then arrived in a fast burst are no evidence. Without evidence the step-down estimate goes without a source: the server plans under it and does not record it. The start-deadline lowering already required this evidence and is unchanged.The playback architecture note in
docs/playback/now describes when the source is sent.Pairs with Silo-Server/silo-server#4640 (the server side of the same report), Silo-Server/silo-apple#1237 (the same client change for Apple) and Silo-Server/AetherEngine#30 (timing relayed segment bodies from first byte to last).
Validation
./scripts/test-check-build-supply-chain.shand./scripts/check-build-supply-chain.sh: pass../gradlew testDebugUnitTest: pass, including a new controller table test (a stall after the first play lowers in both Always and Ask modes, and claims a slow link only with measured slow transfer).:android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug :androidApp:lintVitalRelease :androidTvApp:lintVitalRelease: pass.:androidApp:assembleDebug :androidTvApp:assembleDebug: pass.observed_rebufferwhen the plan's reading is gone at build time, as after a network change.aLoweringWhoseReadingIsGoneWhenSentClaimsNoSlowLinkfails on 9623931 and passes on the head. The controller table test fails onmain's code (1 of 27) and passes here.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-1011/
No screen changes: the lowering and its notice behave as before; only what the request tells the server changes. Results, from
./gradlew :shared:testDebugUnitTeston this branch (head 9623931):On
mainevery row sendsobserved_rebuffer.Risks
A real slow link whose throughput the meter cannot time (every request receiving for under a second) no longer teaches the server a limit; the lowering still happens for that playback. Progressive delivery reads held-open requests as slow, so a server-paced stall there can still be reported as the link, as before.
Checklist
Council review
Rounds: 2, last reviewed 36c881d (2427cd0 after it changes only tests and docs)
No screen changes, so no visual review.
Fixed: the slow-link claim no longer outlives its reading between the controller's decision and the request build; the session-manager tests cover a sourced lowering again; the playback note gains the network-change and progressive limits and the 24-hour lifetime. Answered: a build-time reading above the delivered bitrate still learns only the step-down estimate. Left for maintainers: progressive delivery's evidence, and a resend after a network change.
AI Disclosure
observed_rebuffer; a repeated inline comment was trimmed; a meter-plus-controller test that repeated existing meter tests was dropped. The Web parity gap is filed as above.Note
Send
observed_rebuffersource only with slow-transfer evidence in lowering replansBufferingQualityControllergates theobserved_rebuffersource onslowLinkEvidence(plan)while keeping the step-down estimate.PlaybackSessionManagercaptures the playing plan's throughput only when the source isobserved_rebufferand drops the source when no reading is available.observed_rebuffersource andobservedThroughputKbpsfields.Macroscope summarized 2427cd0.