Skip to content

feat(hls): time relayed media bodies from first byte to last - #30

Open
Rhainland wants to merge 2 commits into
Silo-Server:mainfrom
Rhainland:fix/relay-segment-transfer-rate
Open

Rhainland wants to merge 2 commits into
Silo-Server:mainfrom
Rhainland:fix/relay-segment-transfer-rate

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

On a relayed remote HLS load, a host could only judge the link from networkThroughputMbps. That is AVPlayer's access log on the loopback hop, and it times each segment request from when the request was sent. A Silo transcode server answers a segment only after its encoder has written all of it, so a slow encode, subtitle burn-in, a slow source read or a node starting up looked like a slow link. Silo then stored that as the device's bandwidth limit for 24 hours. The relay now times media bodies itself, from first byte to last, and publishes the totals in LiveTelemetry. A host can then tell a slow link from a slow server.

What changed

  • New internal RelayTransferMeter. The origin relay's UpstreamPump reports each media body's chunks to it as they arrive. It uses the same rules as Silo Android's PlaybackThroughputMeter, so both clients report the same quantity:
    • A body that takes under 1 s to arrive counts for nothing.
    • The bytes of a body's first chunk are left out.
    • Time when several bodies were arriving at once counts once.
  • RelayTransferMeter.timesBody decides which bodies count. Media counts. Playlists don't, and they are recognised by the same check the relay uses before rewriting them, so a playlist served as audio/mpegurl or application/octet-stream is excluded too. Subtitle renditions don't count, whether recognised by type or by .vtt/.webvtt/.srt/.ttml path. Sidecar relays and bodies the engine reads whole are not timed.
  • New public fields LiveTelemetry.relayMediaReceivedBytes and relayMediaReceivingMs: running totals for the load's relay. Both are nil when there is no relay. They are documented in docs/api.md, along with the 1 s threshold, which is pinned in DocumentedConstantsTests. The sum is a lower bound on the link rate, because a pause inside a body still counts.
  • CHANGELOG entry under the fork's section.

Test plan

  • Device / OS: MacBook Pro (Apple silicon), macOS 26, Swift 6.3.3 (Xcode 26.6). CI covers Xcode 27, the all-traits configuration, and the tvOS / visionOS simulator builds.
  • Source media: none. The tests use local Python origins that hold the response head (a server producing the segment), trickle the body slowly (a slow link), or stream text/vtt (a subtitle extract).
  • Result:
    • RelayTransferMeterTests, the new HLSOriginRelayTests case, DocumentedConstantsTests, PublicAPIDocumentationTests and the LiveTelemetry suites all pass. In the relay test, a body sent after a 1.5 s silent wait and a slow subtitle extract each count for nothing, and a body trickled over 2.8 s is counted.
    • Full suite, split as CONTRIBUTING describes: 5789 tests pass in the main run. In the authorization run, RefreshableSubtitleAuthorizationTests "Decoder probes and range reads can refresh a rejected bearer" failed once on its deadline, then passed in 3 reruns of that suite and 3 reruns of the whole authorization group. That path uses the raw-resources relay, which this change does not time.
    • This toolchain can't type-check HEVCSyntheticBitstream.accessUnit "in reasonable time" on main either, so it was split into typed steps in the local build copy only to get the tests to compile. That workaround is not part of this branch.
  • Not run: a real-device playback check. The Silo Apple client change that uses these fields is tested on its own PR.

Pairs with Silo-Server/silo-apple#1237 (the buffering controller uses these totals as its slow-link evidence on server HLS), 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).

Evidence: none, no user-visible change (diagnostics only; test results above).

Checklist

  • CHANGELOG.md updated
  • Commit messages follow Conventional Commits (feat(...), fix(...), chore(...))
  • The fix lives in the engine, not in a host-side workaround
  • Public API changes are intentional and documented (LiveTelemetry.relayMediaReceivedBytes, relayMediaReceivingMs)
  • I read and can explain the complete diff.

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
  • Adversarial review: four independent reviews of the branch diff (correctness, standards, spec). They found three problems, all fixed here. Playlists served as audio/mpegurl or octet-stream were timed as media, and so were octet-stream subtitle segments. The 1 s threshold quoted in the docs had no DocumentedConstantsTests pin. The relay test's timing margin was tight. The docs now also say the sum is a lower bound. Not changed: IMSC1 subtitles served as application/mp4 are still timed, because the relay can't tell them apart from media without the rendition's role.

Note

Time relayed media bodies from first byte to last in HLSOriginRelay

  • Adds RelayTransferMeter.swift, a thread-safe meter that accumulates byte and receiving-time totals for qualifying media bodies. It skips each body's first chunk, bodies that finish in under 1 second, playlists, subtitle renditions, and non-media responses, and counts overlapping receive intervals once via merged coverage spans trimmed to a 10-minute horizon.
  • Wires the meter into the relay's upstream pump in HLSOriginRelay.swift. Raw-resource and forced-held requests are not measured.
  • Exposes the totals through optional relayMediaReceivedBytes and relayMediaReceivingMs fields on LiveTelemetry, populated by LiveTelemetrySampler.swift when a relay is available. Documented in docs/api.md.
  • Adds unit tests for threshold, first-chunk exclusion, overlap, and eligibility rules, plus an integration test in HLSOriginRelayTests.swift covering delayed heads and slow media bodies.
  • Behavioral Change: telemetry snapshots gain two optional fields; callers that omit the new initializer arguments get nil values.

Macroscope summarized 7d22c5f.

A host that judged the link on the native remote HLS route read AVPlayer's
access log, which times each request on the loopback hop from when it was
sent. A transcode server answers a segment only once its encoder has written
all of it, so the time the server spends producing media (an encoder slower
than real time, burn-in, a source read, a node starting) read as a slow link.
Silo learned that as the device's bandwidth limit for 24 hours.

The origin relay now times each media body on its own connection to the
origin, from its first byte to its last, and publishes running totals as
LiveTelemetry.relayMediaReceivedBytes and relayMediaReceivingMs. As in Silo
Android's PlaybackThroughputMeter, a body under 1 s and the bytes of its
first chunk do not count, and overlapping bodies count their shared time
once. Subtitle renditions, which a server can stream for as long as an
extract takes, and playlists stay out.
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Nov 20, 2026
@silo-kody

silo-kody Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The relay now measures qualifying remote-HLS media-body bytes and receiving time, deduplicates overlapping receive intervals, and exposes optional totals through LiveTelemetry. The sampler reads relay totals, and the API reference and changelog document the fields and counting rules.

Changes: Remote HLS Relay Telemetry

Layer / File(s) Summary
Media transfer accounting
Sources/AetherEngine/Network/RelayTransferMeter.swift, Tests/AetherEngineTests/RelayTransferMeterTests.swift, Tests/AetherEngineTests/DocumentedConstantsTests.swift
RelayTransferMeter filters responses and tracks qualifying body bytes and receiving time. Tests cover the one-second threshold, overlap accounting, and response classification.
Relay transfer collection
Sources/AetherEngine/Network/HLSOriginRelay.swift, Tests/AetherEngineTests/HLSOriginRelayTests.swift
Eligible upstream pumps pass response chunks to the meter. Relay tests cover response delay, subtitle exclusion, and slow media bodies.
Telemetry exposure and documentation
Sources/AetherEngine/Diagnostics/LiveTelemetry.swift, Sources/AetherEngine/Diagnostics/LiveTelemetrySampler.swift, docs/api.md, CHANGELOG.md
LiveTelemetry adds optional relay totals, and the sampler reads them from the relay. The API reference and changelog describe the fields and counting rules.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant UpstreamPump
  participant RelayTransferMeter
  participant HLSOriginRelay
  participant LiveTelemetrySampler
  participant LiveTelemetry
  UpstreamPump->>RelayTransferMeter: Begin qualifying transfer and record arriving chunks
  LiveTelemetrySampler->>HLSOriginRelay: Read media transfer totals
  HLSOriginRelay->>RelayTransferMeter: Return accumulated totals
  LiveTelemetrySampler->>LiveTelemetry: Include optional byte and receiving-time totals
Loading

Suggested reviewers: quick104, superuser404notfound

Merge Risk: Low · up to 7d22c

The new relay telemetry fields work as designed, but the changelog wording suggests all origin wait time is excluded. Pauses within a media body are still counted. Tightening that sentence before merge avoids misleading hosts that use the numbers to diagnose slow links.

Security architecture risk: Minimal · up to 7d22c

The update adds two optional measurements to existing playback diagnostics. The reviewed change does not expand access, expose credentials, or change how playback failures are contained.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — A remote origin can influence the diagnostic totals for its own playback relay through response metadata and delivery timing. The inspected path aggregates per relay and does not use these measurements to grant authority or persist a bandwidth limit.

Trust Boundaries and Controls

  • observed — Meter eligibility is evaluated after the upstream response arrives. It determines what contributes to telemetry, not what the relay may fetch or where it may send credentials. The existing separation between the origin credential grant and the redirect allowlist remains in place.

Resilience and Maintainability Implications

  • inferred — Accounting updates under a lock as chunks arrive, so failure or cancellation does not strand a pending update. A retry gets its own transfer state. Shutdown still abandons active pumps and cancels the session; any late callback can affect only the old relay's meter.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(hls): time relayed media bodies from first byte to last" matches the main change: the relay now times media bodies from first byte to last and publishes totals in LiveTelemetry. It is …
Description check Passed The description explains the problem (bandwidth misread from AVPlayer access log on the loopback hop), the new RelayTransferMeter and public LiveTelemetry fields, the counting rules, tests run, and li…
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.
Full details: Title check

Explanation

The title "feat(hls): time relayed media bodies from first byte to last" matches the main change: the relay now times media bodies from first byte to last and publishes totals in LiveTelemetry. It is specific and follows Conventional Commits. It does not cover the fields or the documentation, which is acceptable.

Full details: Description check

Explanation

The description explains the problem (bandwidth misread from AVPlayer access log on the loopback hop), the new RelayTransferMeter and public LiveTelemetry fields, the counting rules, tests run, and linked PRs. It is directly related to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added enhancement New feature or request triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 20, 2026
Quick104 added a commit to Silo-Server/silo-apple that referenced this pull request Nov 22, 2026
…idence (#1237)

* fix(player): report a slow link on a stall only with slow-transfer evidence

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.

* fix(player): time server HLS segments while they arrive, not while the 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.

* fix(player): tie the relay's totals to the load that counted them

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.

* docs(licenses): name the AetherEngine revision this branch pins

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]>

* fix(player): don't report a slow link the device's own count contradicts

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]>

* test(player): cover the device count beside a measured rate after playback

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]>

* docs(player): say when the controller reports a slow link

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]>

---------

Co-authored-by: Quick <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

@Quick104 Quick104 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.

🤖 Claude Code (claude-opus-5-5)

Review of f470d8d. The meter, its span merging, the threading on the session's delegate queue and the relay's lifetime across loads all hold up. I found no correctness defect in the code. The two findings below are about what the public docs promise. I'm fixing both in a commit on this branch, so there's no need to change anything yourself. The summary comment follows.

/// overlapping bodies count their shared time once. nil without a relay; a new load's relay starts
/// again from 0.
public let relayMediaReceivedBytes: Int64?
public let relayMediaReceivingMs: Int64?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Low (docs). The doc block above these two properties has three problems:

  • Swift attaches it to relayMediaReceivedBytes alone, so relayMediaReceivingMs has no documentation of its own in Quick Help or DocC.
  • It says the bytes are "counted from each body's first byte to its last", but received(_:on:) leaves out the first chunk's bytes. docs/api.md says so; this comment doesn't.
  • The trust case mounts a relay only while EngineTLS.serverTrustEvaluator is set (prepareRemoteHLSStandIn probes systemTrustRefuses only then). Without it, a refused origin gets nil here, which the text doesn't say. The same wording is in the docs/api.md row.

Repair: give each property its own comment, say the first chunk's bytes stay out, and add the evaluator condition in both places. I'm fixing this in a commit on this branch.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixed in 7d22c5f. Each property now has its own doc comment. The bytes comment says the first chunk stays out, and the trust case names EngineTLS.serverTrustEvaluator, here and in the docs/api.md row. PublicAPIDocumentationTests, DocumentedConstantsTests and Scripts/check-doc-links.py pass on macOS (Xcode 27.2).

guard transfer.lastMs - first >= Self.minimumReceivingMs else { return }
let from = transfer.countedThroughMs ?? first
counted.receivingMs += cover(from: from, to: transfer.lastMs)
counted.bytes += transfer.bytes - transfer.countedBytes

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Low (contract). The quotient of the running totals is a lower bound. The quotient of a difference between two readings is not.

Trigger: one body has been counted through t=1000 ms, and a host reads the totals at that point. A second body began at 1 ms and reaches the 1 s minimum at 1001 ms. cover adds only the 1 ms not already covered, but this line adds all of that body's bytes, so the next delta is about a second's worth of bytes over 1 ms.

Impact: Silo Apple's RelayPlanThroughput diffs readings per plan, so a plan that starts while two bodies overlap can read faster than the link. The effect is bounded and needs concurrent bodies. Silo's transcode HLS muxes audio into the video segments, so I don't expect it often there. Android's windowed takeKbps keeps an open request's whole span in the window that counts it, so it doesn't do this. The doc comment at line 18 says the two clients "report the same quantity", which overstates the parity.

Repair: I'm narrowing the parity comment and documenting the limit on the field and in docs/api.md in a commit on this branch. Changing the accounting itself is a maintainer decision.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Documented in 7d22c5f. The parity note now names the three rules shared with Android and says these are running totals, unlike its windowed takeKbps. relayMediaReceivingMs and the docs/api.md row say a difference between two readings is not a lower bound, and why. The accounting itself is unchanged; that stays a maintainer decision.

relayMediaReceivingMs had no doc comment of its own, because the block above
both properties attaches to the first. That block also said the bytes were
counted from each body's first byte, though the first chunk's bytes stay out,
and it left out that the trust case needs EngineTLS.serverTrustEvaluator.

The quotient of the running totals is a lower bound on the link, but the
quotient of a difference between two readings is not: a body that reaches
1 s adds all its bytes at once, while time it shared with a body counted
earlier is already in the earlier reading. Say so on the field and in
docs/api.md, and narrow the meter's parity note with Android's windowed
takeKbps to the three rules the two share.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 1 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve subtitle segments when applying media relay processing

@Quick104

Quick104 commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Claude Code (claude-opus-5-5)

Review summary

Reviewed head f470d8d. I pushed one docs-only commit, 7d22c5f, so the branch head is now 7d22c5f.

Fit: 8/10 · Readiness: 8/10, conditional (assuming CI is green)

  • Fit: the fix is in the engine, where the misreading starts. It adds diagnostics only and asks no host to compensate. It keeps a transcode server's encode time from being learned as the device's bandwidth limit, which is a real gap in everyday playback. It holds at 8 because it adds two public fields that only the Silo fork carries.
  • Readiness: the code holds up and the new tests pass. It isn't 9 because nobody has checked it against a real server, and CI has not run on this PR.

Addressed

  • Doc comments on the two fields (thread on LiveTelemetry.swift). relayMediaReceivingMs now has its own doc comment. The bytes comment says the first chunk stays out, and the trust case names EngineTLS.serverTrustEvaluator, here and in docs/api.md. Fixed in 7d22c5f.
  • Differences between two readings (thread on RelayTransferMeter.swift). The quotient of the totals is a lower bound, but the quotient of a difference between two readings is not. That limit is now documented on the field and in docs/api.md, and the Android parity note is narrowed to the three rules the meters share. Documented in 7d22c5f. The accounting is unchanged.

Left for the maintainers

  • Windowed accounting. Silo Apple diffs these totals per plan. A plan that starts while two bodies overlap can read up to about one body-second of bytes too fast. Silo's muxed transcode segments rarely overlap. The question is whether to keep cumulative totals or publish a windowed sample like Android's takeKbps.
  • Subtitle classification by path and type. An extensionless application/octet-stream subtitle segment, or IMSC1 as application/mp4, is still timed as media, as the PR body says. Silo's segment route serves subtitles as text/vtt, so Silo itself is unaffected.
  • CI. No workflow run exists for either head of this fork PR. Someone needs to start CI before merge.

Verification

  • Build: swift build --build-tests on macOS 27.2, Xcode 27.2 (Swift 6.4.2), at f470d8d and again at 7d22c5f.
  • Focused tests pass at both heads: RelayTransferMeterTests, the HLSOriginRelay suites (including the new relay case), DocumentedConstantsTests, PublicAPIDocumentationTests and the LiveTelemetry suites. Scripts/check-doc-links.py passes.
  • Full suite at f470d8d, split as CI runs it:
    • Main run: 5789 tests, one failure, APACEncodePipelineTests "the packets are a synchronous encode's...". The same test fails the same way on main on the same Mac, so this PR didn't cause it. A first pass on a loaded machine also failed reader and origin timing suites this PR doesn't touch; they passed on the rerun.
    • XCTest half: no failures.
    • Authorization run: 56 tests passed.
    • One-thread cooperative pool: the same APAC failure only.
    • The all-traits configuration was not run.
  • None of the new tests can fail on the base, because they exercise code this PR adds.
  • I did no live playback check.

Validated features: no v1.0 validation case covers this behavior, so none is at risk. The board check ran in full.

User manual: unaffected. This is engine telemetry with no user-visible setting or text.

Apple and Android: the paired Apple, Android and server PRs have merged. Silo Apple pins f470d8d. 7d22c5f changes only comments and docs, so Silo Apple doesn't need a new pin. Merging with a merge commit keeps f470d8d on main.

Council (round 1, on f470d8d):

Member Model, effort Score Findings
Sol gpt-6.2-sol, medium 7/10 Raised the reading-difference limit (documented). A subtitle URL that redirects to an untyped path is timed, because the relay classifies the redirect's destination (no change: Silo doesn't serve subtitles that way). A test-fixture gap (no change).
Opus claude-opus-5-5, medium 8.5/10 The shared doc comment (fixed). Two optional simplifications (not taken).
Gemini gemini-4-neon, medium 8.5/10 The first-chunk wording and the evaluator condition (fixed). The parity note (narrowed). A route guard on the sampler read that nothing reaches today (no change).

No second round, because the fixes change only docs and comments.

@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

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: 1d401ea2-b7fd-4bbb-898f-8acaeee4dc70
Commits

Reviewing files that changed from the base of the PR and between f814879 and 7d22c5f.

Files selected for processing: 9

  • CHANGELOG.md
  • Sources/AetherEngine/Diagnostics/LiveTelemetry.swift
  • Sources/AetherEngine/Diagnostics/LiveTelemetrySampler.swift
  • Sources/AetherEngine/Network/HLSOriginRelay.swift
  • Sources/AetherEngine/Network/RelayTransferMeter.swift
  • Tests/AetherEngineTests/DocumentedConstantsTests.swift
  • Tests/AetherEngineTests/HLSOriginRelayTests.swift
  • Tests/AetherEngineTests/RelayTransferMeterTests.swift
  • docs/api.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread CHANGELOG.md

Changes this fork carries on top of upstream.

- **A relayed remote HLS load now reports what its media took to arrive, without the origin's wait.**

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Minor · Functional Correctness · Quick win

Limit the claim about origin wait time.

If the origin pauses after sending the first chunk, the receiving time includes that pause. A host could therefore still interpret production time as a slow link. State that the timing excludes the wait before the first byte, but includes pauses within the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size/L 200–499 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants