Skip to content

feat(playback): formalize resumable direct streams and stall observability - #464

Merged
Quick104 merged 3 commits into
mainfrom
feat/direct-stream-resume
Jul 24, 2026
Merged

Quick104 merged 3 commits into
mainfrom
feat/direct-stream-resume

Conversation

@Quick104

@Quick104 Quick104 commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Implements #443.

Problem

Progressive clients buffer ahead, stop reading, and reverse proxies with default client-facing timeouts (nginx send_timeout 60s) kill the healthy-but-backpressured response. Clients need a formal contract to discard and reopen direct streams at an exact byte offset — and operators need to tell a stalled-write reap apart from an ordinary disconnect.

What this does

  • Strong ETag + If-Range on original-file direct play (ServeDirectPlay): emits an opaque dsr1 validator from the open file's identity, change time, modification time, and size on Linux, macOS, and Windows. This detects same-size replacements even when mtime is restored. Platforms without a durable file revision omit the tag instead of hashing a multi-gigabyte file on every request, so ETag-based resumes safely fall back to a full 200. http.ServeContent enforces the conditional/range contract: matching If-Range → 206 at the requested byte; stale validator → full 200; 416 carries Content-Range: bytes */<size>.
  • Stream-end classification in RollingDeadlineWriter: stalled_reap (rolling deadline fired with no write progress) vs client_gone (reset/broken pipe/context canceled) vs completed, with byte counting through both the plain-write and sendfile (ReadFrom) paths. One structured slog event per stream end.
  • Response-derived range telemetry: suffix, bounded, and open-ended requests record the actual start from the successful Content-Range; ignored/stale ranges record -1. A separate range_requested field preserves request intent.
  • Prometheus metrics: silo_direct_stream_active, silo_direct_stream_ends_total{outcome}, silo_direct_stream_range_resumes_total, silo_direct_stream_invalid_range_total, silo_direct_stream_bytes_sent_total (no high-cardinality labels). Deterministic tests now assert stalled-write and suffix-resume counters.
  • Capability: direct_stream_resume_v1 is advertised from one centralized protocol-v3 feature list across capability, start, replan, replay, and terminal responses. It applies only to delivery original_http; progressive remux remains explicitly excluded.
  • Session lifecycle: an authenticated stream-handler regression test proves a paused session survives cleanup and resumes later through an exact Range + If-Range request without creating a new session.

Additive-only within /api/v1: one new feature string, new response headers, no field or status-code changes. Legacy clients that never send If-Range continue to work.

Risks / notes

  • Linux/macOS/Windows use filesystem identity plus sub-second change/modification timestamps and size. RFC 9110 §8.8.3.1 explicitly permits strong validators derived from a combination of file attributes or a sub-second modification timestamp. Unsupported platforms deliberately omit the validator and therefore do not claim conditional resume safety.
  • Rolling-deadline default (180s) is unchanged; lowering edge timeouts is a separate rollout decision (Quick104/openresty-lb-cdn#1).
  • The exact short-timeout OpenResty scenario was not rerun for this review-fix commit because the local Docker daemon was unavailable. The previously recorded dev deployment/iOS ETag + If-Range round trip remains the available end-to-end evidence.

Coordination

Verification

GOWORK=off go test -count=1 ./internal/playback -run '<direct-stream/session/feature tests>'
ok  github.com/Silo-Server/silo-server/internal/playback  0.408s

GOWORK=off go test -count=1 ./internal/api/handlers -run '<stream/capability tests>'
ok  github.com/Silo-Server/silo-server/internal/api/handlers  2.126s

GOWORK=off go test -count=1 ./internal/httpstream
ok  github.com/Silo-Server/silo-server/internal/httpstream

GOWORK=off go build ./...
ok

GOOS=linux GOARCH=amd64 GOWORK=off go test -exec=/usr/bin/true ./internal/playback -run '^$'
ok  github.com/Silo-Server/silo-server/internal/playback  0.003s

GOOS=windows GOARCH=amd64 GOWORK=off go test -exec=/usr/bin/true ./internal/playback -run '^$'
ok  github.com/Silo-Server/silo-server/internal/playback  0.011s

golangci-lint run --new ./...
0 issues.

cd web && pnpm run lint
0 errors (158 existing warnings)

cd web && pnpm run format:check
All matched files use Prettier code style!

make verify-local-paths
scripts/check-local-path-leaks.sh

GOWORK=off go test -count=1 ./... also ran. It reached and passed the changed direct-stream tests but the repository-wide run remains red on unrelated baseline/environment cases (fake-FFmpeg/GPU probe processes killed under load, Jellycompat autoscan expectation drift, JWT tamper, and a policy timeout). No failing test touches this diff.

The original dev-host validation remains recorded: capability advertised direct_stream_resume_v1, live metrics observed completed ranged streams and client disconnects, and iOS confirmed the ETag/If-Range round trip end to end.

AI Disclosure

  • Tool(s): Claude Code (orchestration/spec/review), OpenAI Codex CLI (implementation and review fixes)
  • Model(s): claude-fable-5, gpt-5.6-sol
  • Involvement: fully AI-generated, human-directed
  • Adversarial review: Review reproduced the same-size/same-mtime splice bug, replaced the mtime+size tag with the durable platform revision above, centralized the feature contract, corrected suffix-range telemetry, and added deterministic stalled-write/session tests. A follow-up review caught and removed a non-Linux/macOS full-file hashing fallback that would have made every Windows range request O(file size); Windows now uses its native open-handle revision and unsupported platforms omit ETag. One theoretical objection to attribute-derived strong validators was rejected after checking RFC 9110 §8.8.3.1, which explicitly allows a combination of file attributes or a sub-second modification timestamp.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added Protocol v3 direct stream resumption via HTTP byte-range and conditional requests (ETag/If-Range/If-None-Match), including correct handling of invalid ranges and safe fallback to full responses when content changes.
    • Advertised the new direct stream resumption capability for applicable playback plans.
  • Bug Fixes
    • Improved paused-session behavior so delayed ranged resume requests continue to work within the paused grace window.
  • Monitoring
    • Added stream outcome and direct-playback metrics (status, bytes served, and resume outcomes).
  • Documentation
    • Added an architecture document describing the required HTTP semantics.

…ility

Implements #443: strong stat-based ETag + If-Range on original-file direct
play (via http.ServeContent), stream-end outcome classification in
RollingDeadlineWriter (stalled_reap vs client_gone vs completed) with a
structured log event and Prometheus counters, the direct_stream_resume_v1
protocol-v3 capability, and a contract doc. Progressive remux is explicitly
excluded from the resume contract.

Code written by OpenAI Codex CLI (gpt-5.6-sol) from a Claude-authored spec;
reviewed and verified by Claude.

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

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

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: 573b0222-e2ad-48a7-b2f2-c941d10bf367

📥 Commits

Reviewing files that changed from the base of the PR and between f9dac2d and 60838b2.

📒 Files selected for processing (2)
  • internal/playback/directplay_test.go
  • internal/playback/protocol_v3_test.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • internal/playback/protocol_v3_test.go
  • internal/playback/directplay_test.go

📝 Walkthrough

Walkthrough

Adds Protocol v3 direct-stream resumption signaling, HTTP range and ETag handling, stream outcome telemetry, Prometheus metrics, and tests covering response contracts and session grace behavior.

Changes

Direct stream resumption

Layer / File(s) Summary
Protocol capability contract
docs/architecture/direct-stream-resume.md, internal/playback/protocol_v3.go, internal/api/handlers/playback_v3.go, internal/api/handlers/playback_v3_test.go
Documents range and validator behavior and advertises direct_stream_resume_v1 through Protocol v3 responses.
Streaming outcome tracking
internal/httpstream/rolling_deadline.go, internal/httpstream/rolling_deadline_test.go
Tracks status codes and bytes written, classifies completed, stalled, and disconnected streams, and tests these outcomes.
Direct HTTP range handling
internal/playback/directplay.go, internal/playback/directplay_etag.go, internal/playback/directplay_revision_*, internal/playback/directplay_metrics.go, internal/playback/directplay_test.go
Adds filesystem-derived ETags, range and conditional request handling, invalid-range headers, stream metrics, structured logging, and HTTP contract tests.
Session grace coverage
internal/playback/session_paused_grace_test.go, internal/api/handlers/stream_test.go
Tests session retention across sequential ranged transports, idle gaps, active grace periods, and paused grace periods.

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

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant ServeDirectPlay
  participant MediaFile
  participant RollingDeadlineWriter
  Client->>ServeDirectPlay: Request Range with If-Range
  ServeDirectPlay->>MediaFile: Serve content
  MediaFile->>RollingDeadlineWriter: Write response bytes
  RollingDeadlineWriter-->>ServeDirectPlay: Return status, byte count, and outcome
  ServeDirectPlay-->>Client: Return 206 partial content or 200 full content
Loading

Possibly related issues

Possibly related PRs

Suggested labels: v1

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 15.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main changes: resumable direct streams and stream stall observability in playback.
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 feat/direct-stream-resume

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

@coderabbitai coderabbitai Bot added the v1.0 Silo v1 scope - auto-adds to the Silo v1 project label Jul 24, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (6)
internal/api/handlers/playback_v3.go (5)

1270-1274: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Same duplicated ServerFeatures literal (replan path).

Identical literal to startPlannedPlaybackV3 and decisionResponseFromAttemptV3; same consolidation opportunity as noted above.

🤖 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 `@internal/api/handlers/playback_v3.go` around lines 1270 - 1274, Replace the
duplicated ServerFeatures literal in the replan response construction with the
shared feature-list symbol or helper already used by startPlannedPlaybackV3 and
decisionResponseFromAttemptV3. Preserve the exact feature values and response
behavior while consolidating the common definition.

536-540: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Same duplicated ServerFeatures literal (start-playback path).

Shares the root cause noted on the capability handler above and in internal/playback/protocol_v3.go's NewTerminalResponseV3; consolidating into a shared helper would have made this single-flag addition a one-line change instead of four.

🤖 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 `@internal/api/handlers/playback_v3.go` around lines 536 - 540, Replace the
duplicated ServerFeatures literal in the start-playback response construction
with the shared helper used by the capability handler and NewTerminalResponseV3.
Update the helper’s feature list to include the required flag so this path
inherits the centralized capability definition.

1846-1850: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Same duplicated ServerFeatures literal (idempotent-replay path).

Identical literal to startPlannedPlaybackV3 and executeReplanV3; same consolidation opportunity as noted above.

🤖 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 `@internal/api/handlers/playback_v3.go` around lines 1846 - 1850, Consolidate
the duplicated ServerFeatures literal in the idempotent-replay response path by
reusing the shared feature-list symbol introduced for startPlannedPlaybackV3 and
executeReplanV3. Update this playback.DecisionResponseV3 construction while
preserving the existing RuntimeCorrections initialization and response fields.

1-1: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

ServerFeatures/Features slice literals are hand-duplicated across 5 sites in 2 files and have already drifted. The root cause is the lack of a single shared source for these lists; this PR's own change (adding one flag) had to touch all five copies, and the copies already disagree on which features they advertise.

  • internal/api/handlers/playback_v3.go#L353-359: canonical 8-item Features list for the capability response; use this (or a new shared constant) as the source of truth.
  • internal/playback/protocol_v3.go#L813-819: NewTerminalResponseV3's 5-item list omits FeatureRouteDiagnostics present in the other decision-response builders — replace with a shared helper/constant.
  • internal/api/handlers/playback_v3.go#L536-540: startPlannedPlaybackV3's 6-item list is byte-for-byte identical to two other sites below — replace with the same shared helper/constant.
  • internal/api/handlers/playback_v3.go#L1270-1274: executeReplanV3 duplicates the same 6-item list — replace with the shared helper/constant.
  • internal/api/handlers/playback_v3.go#L1846-1850: decisionResponseFromAttemptV3 duplicates the same 6-item list — replace with the shared helper/constant.
🤖 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 `@internal/api/handlers/playback_v3.go` at line 1, Consolidate the duplicated
ServerFeatures/Features slice literals into one shared helper or constant, using
the canonical capability-response list around the Features declaration in
playback_v3.go as the source of truth. Update NewTerminalResponseV3,
startPlannedPlaybackV3, executeReplanV3, and decisionResponseFromAttemptV3 to
reuse it, ensuring every response advertises the same complete feature set
including FeatureRouteDiagnostics.

353-359: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Capability Features list is a fourth divergent copy of the same server-features literal.

This 8-item list, the 6-item lists in startPlannedPlaybackV3/executeReplanV3/decisionResponseFromAttemptV3 (this file), and the 5-item list in protocol_v3.go's NewTerminalResponseV3 are all hand-maintained copies that have already diverged (e.g., FeatureDetailedDecodeV3/FeatureLayoutPassthrough appear only here). Confirm whether decision responses intentionally omit those two features, or whether this is a maintenance gap.

🤖 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 `@internal/api/handlers/playback_v3.go` around lines 353 - 359, Unify the
server feature advertisement used by the capability response and the response
builders startPlannedPlaybackV3, executeReplanV3, decisionResponseFromAttemptV3,
and NewTerminalResponseV3 instead of maintaining separate literals. Confirm
whether FeatureDetailedDecodeV3 and FeatureLayoutPassthrough are intentionally
excluded from decision responses; preserve that distinction only if intentional,
otherwise include them through the shared canonical feature set. Ensure all
advertised feature lists remain consistent with the chosen behavior.
internal/playback/protocol_v3.go (1)

813-819: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

ServerFeatures literal duplicated and already diverged across call sites.

This list is repeated near-verbatim in internal/api/handlers/playback_v3.go (capability response, startPlannedPlaybackV3, executeReplanV3, decisionResponseFromAttemptV3). This copy already differs from those: it omits FeatureRouteDiagnostics, which the other three decision-response builders include. Adding one flag required editing 4+ places, and drift has already occurred.

Extract a shared exported slice/function (e.g. PlayableServerFeaturesV3()/TerminalServerFeaturesV3()) in this domain package so all response builders stay in sync.

🤖 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 `@internal/playback/protocol_v3.go` around lines 813 - 819, Extract the
duplicated V3 server-feature list into a shared exported slice or function in
the playback protocol domain, including FeatureRouteDiagnostics. Update
NewTerminalResponseV3 and the capability, startPlannedPlaybackV3,
executeReplanV3, and decisionResponseFromAttemptV3 builders to reuse it instead
of defining separate literals, preserving consistent feature contents across all
responses.
🤖 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.

Nitpick comments:
In `@internal/api/handlers/playback_v3.go`:
- Around line 1270-1274: Replace the duplicated ServerFeatures literal in the
replan response construction with the shared feature-list symbol or helper
already used by startPlannedPlaybackV3 and decisionResponseFromAttemptV3.
Preserve the exact feature values and response behavior while consolidating the
common definition.
- Around line 536-540: Replace the duplicated ServerFeatures literal in the
start-playback response construction with the shared helper used by the
capability handler and NewTerminalResponseV3. Update the helper’s feature list
to include the required flag so this path inherits the centralized capability
definition.
- Around line 1846-1850: Consolidate the duplicated ServerFeatures literal in
the idempotent-replay response path by reusing the shared feature-list symbol
introduced for startPlannedPlaybackV3 and executeReplanV3. Update this
playback.DecisionResponseV3 construction while preserving the existing
RuntimeCorrections initialization and response fields.
- Line 1: Consolidate the duplicated ServerFeatures/Features slice literals into
one shared helper or constant, using the canonical capability-response list
around the Features declaration in playback_v3.go as the source of truth. Update
NewTerminalResponseV3, startPlannedPlaybackV3, executeReplanV3, and
decisionResponseFromAttemptV3 to reuse it, ensuring every response advertises
the same complete feature set including FeatureRouteDiagnostics.
- Around line 353-359: Unify the server feature advertisement used by the
capability response and the response builders startPlannedPlaybackV3,
executeReplanV3, decisionResponseFromAttemptV3, and NewTerminalResponseV3
instead of maintaining separate literals. Confirm whether
FeatureDetailedDecodeV3 and FeatureLayoutPassthrough are intentionally excluded
from decision responses; preserve that distinction only if intentional,
otherwise include them through the shared canonical feature set. Ensure all
advertised feature lists remain consistent with the chosen behavior.

In `@internal/playback/protocol_v3.go`:
- Around line 813-819: Extract the duplicated V3 server-feature list into a
shared exported slice or function in the playback protocol domain, including
FeatureRouteDiagnostics. Update NewTerminalResponseV3 and the capability,
startPlannedPlaybackV3, executeReplanV3, and decisionResponseFromAttemptV3
builders to reuse it instead of defining separate literals, preserving
consistent feature contents across all responses.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b8f04446-2221-4d52-a719-711d050ea0c3

📥 Commits

Reviewing files that changed from the base of the PR and between 2bc6ebb and 1f93cd6.

📒 Files selected for processing (10)
  • docs/architecture/direct-stream-resume.md
  • internal/api/handlers/playback_v3.go
  • internal/api/handlers/playback_v3_test.go
  • internal/httpstream/rolling_deadline.go
  • internal/httpstream/rolling_deadline_test.go
  • internal/playback/directplay.go
  • internal/playback/directplay_metrics.go
  • internal/playback/directplay_test.go
  • internal/playback/protocol_v3.go
  • internal/playback/session_paused_grace_test.go

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f93cd675e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/playback/directplay.go Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 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 `@internal/playback/directplay_revision_fallback.go`:
- Around line 7-9: Update the ETag-related assertions in directplay_test.go for
ServeDirectPlay to account for an empty filesystem revision from
directPlayFilesystemRevision on fallback GOOSes. Skip or guard the HTTP-contract
and stale If-Range assertions when the validator is empty, while preserving the
existing strong-ETag checks where a revision is available.

In `@internal/playback/protocol_v3_test.go`:
- Around line 21-43: The test
TestServerFeaturesV3ReturnsCompleteIndependentSlices should validate the full
eight-entry feature contract: define the complete expected Feature* set, verify
every expected constant is present, and detect duplicate or unexpected entries
rather than checking only four memberships. Preserve the existing length and
independent-slice assertions.
🪄 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: 7b81ef1d-623a-4120-9d2d-38147fb1f5ec

📥 Commits

Reviewing files that changed from the base of the PR and between 1f93cd6 and f9dac2d.

📒 Files selected for processing (12)
  • docs/architecture/direct-stream-resume.md
  • internal/api/handlers/playback_v3.go
  • internal/api/handlers/stream_test.go
  • internal/playback/directplay.go
  • internal/playback/directplay_etag.go
  • internal/playback/directplay_revision_darwin.go
  • internal/playback/directplay_revision_fallback.go
  • internal/playback/directplay_revision_linux.go
  • internal/playback/directplay_revision_windows.go
  • internal/playback/directplay_test.go
  • internal/playback/protocol_v3.go
  • internal/playback/protocol_v3_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/architecture/direct-stream-resume.md

Comment thread internal/playback/protocol_v3_test.go Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9dac2d805

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +20 to +23
stat.Ctim.Sec,
stat.Ctim.Nsec,
info.ModTime().UnixNano(),
info.Size(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use a byte-validating direct-stream ETag

On Linux filesystems with coarse or unchanged ctime/mtime after a same-size replacement, this revision string can repeat for different file bytes, so If-Range with the old strong ETag still gets 206 and lets a client splice cached bytes from the old entity with bytes from the new one. Fresh evidence: running go test ./internal/playback on this diff fails in TestServeDirectPlayChangedEntityRejectsOldIfRange because the stale If-Range request returns 206 instead of the expected full 200, so the validator needs to come from content or another durable byte revision before advertising resumable direct streams.

AGENTS.md reference: AGENTS.md:L13-L17

Useful? React with 👍 / 👎.

@Quick104
Quick104 merged commit ee31a1f into main Jul 24, 2026
1 check passed
@Quick104
Quick104 deleted the feat/direct-stream-resume branch July 24, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.0 Silo v1 scope - auto-adds to the Silo v1 project

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant