Repository navigation
fix(playback): expose conditional range outcomes - #594
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 7 seconds Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe direct-stream handler now supports ChangesDirect-stream conditional handling
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant ServeDirectPlay
participant ConditionalResult
participant CompletionLogger
Client->>ServeDirectPlay: Bounded request with Range and If-Match
ServeDirectPlay->>ConditionalResult: Classify conditional outcome
ConditionalResult-->>ServeDirectPlay: Matching or stale result
ServeDirectPlay-->>Client: 206 partial response or bodyless 412 response
ServeDirectPlay->>CompletionLogger: Record result and validator fingerprints
Possibly related issues
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 76754c6d86
ℹ️ 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".
|
CI baseline note for current head |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9627b49a21
ℹ️ 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".
Problem
Part of #443
The Apple client incident in Silo-Server/silo-apple#138 exposed an important distinction in the direct-stream contract: stale
If-Rangecorrectly falls back to a full200, while bounded random-access clients needRange+If-Matchso a stale entity fails without sending the representation body. Existing completion logs did not distinguish those conditional outcomes or provide privacy-safe validator correlation.Companion client fix: Silo-Server/silo-apple#139.
Approach
Range+If-Matchcontract: a match returns the exact206interval and a stale validator returns a bodyless412.If-Rangebehavior: a mismatch still returns the current full entity as200.dsr1strong validator unchanged, including device/volume identity.Testing
GOWORK=off go test -count=1 ./internal/playback: passed.go test -race: passed.GOWORK=off go vet ./internal/playback: passed.0 issues.pnpm run lint: passed with 0 errors and existing warnings;pnpm run format:check: passed.GOWORK=off make build: passed.make verify-local-pathsandgit diff --check: passed.GOWORK=off make test-go: every package except two existing macOS Jellycompat process-lock tests passed; both failures reproduce unchanged on untouchedorigin/main.internal/playbackpassed in the final full run.AI Disclosure
dsr1and limits server changes to compatible contracts, tests, and privacy-safe diagnostics.Checklist
make lint,cd web && pnpm run lint,cd web && pnpm run format:check, and relevantgo test ./....Summary by CodeRabbit
New Features
If-Matchand range conditions.412 Precondition Failedwithout a response body.If-Rangebehavior, including full responses when validators do not match.Documentation
Diagnostics