Skip to content

docs(events): explain observation thresholds and live-update recovery - #262

Closed
Quick104 wants to merge 3 commits into
mainfrom
docs/event-socket-observation
Closed

Quick104 wants to merge 3 commits into
mainfrom
docs/event-socket-observation

Conversation

@Quick104

@Quick104 Quick104 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Server operators can't find the startup thresholds for live-update connections, and client authors have no manual guidance for recovering from a refused event connection. These pages explain the settings and recovery while keeping observation-only startup distinct from quota enforcement.

Closes #261
Related issue: Silo-Server/silo-server#2727
Validation tasks: N/A, manual-only; no validation records or results changed.

Draft blocked by Silo-Server/silo-server#2739. The reviewed implementation is 953602272ce, the open head of that PR, checked against server main 2d5f22e7d70. Recheck these pages against current main after the server change merges. Coordinated Android recovery is proposed in Silo-Server/silo-android#643; it is not a compatible released baseline. Observation doesn't enforce a socket bound or remediate the server finding, and this PR does not close the server issue.

Pages changed

Page Change Preview
Connect a Jellyfin-compatible app Recovery advice under "If live updates stop" Open
Server configuration and dependencies "Live-update connections" with startup thresholds and parsing Open
Use the API "Reconnect live updates" with handshake recovery Open

What changed on each page

  • Jellyfin apps: wait for reconnect, avoid repeatedly reopening an unavailable connection, and install an available app update if recovery fails. Each app controls its retries; updating is advice, with no minimum client version imposed for these connections.
  • Configuration: startup observes 64 connections per account per API process and 2048 per process. The two positive integer environment overrides are set in .env, read only at startup, trim whitespace, and fall back to defaults without logging rejected input. Native v1/v2, normalized Jellyfin aliases and KeepAlive-only connections share the per-process account count. There is no cluster quota or enforcement toggle.
  • API: use backoff with jitter and fresh v2 tickets. Shutdown really refuses with 503; the prepared quota path uses account 429 / process 503, with Retry-After: 5 and Cache-Control: no-store. Exceeding an observation threshold doesn't trigger quota refusal.

Left out on purpose

Exact reconnect schedules, reservation lifecycle details and rollout procedures stay in the server's protocol and architecture docs. HTTP request/work-rate limits and room/playback sockets are separate controls; existing docs PR #186 covers HTTP limits and Jellyfin sign-in messages.

Later enforcement still requires a separate maintainer decision after separately authorized ordinary-use single-node and multi-node pilots, an assigned operator, seven consecutive days of complete coverage, zero account/process would-refuse events, account peak at most 32, process peak at most 1024, and named compatible web and Android releases. Shutdown refusals are reported separately, and evidence must survive restarts. Missing coverage, exceeded thresholds or missing compatible releases prevent enforcement. No pilot, host selection, deployment, runtime probe or enforcement was performed or authorized by this docs PR.

Evidence

Source reviewed, not tested on a live server or device:

  • Server implementation 953602272ce (open head of feat(events): stage socket admission with coordinated recovery silo-server#2739); server main 2d5f22e7d70. The admission code, environment parsing, refusal headers, and the realtime and Jellyfin protocol docs on that head match every added sentence.
  • Manual base bf4e0fc6af8. The rebase onto it resolved a conflict in the configuration page by keeping main's "Failed sign-ins per name" and "TCP tuning for remote viewers" sections and placing "Live-update connections" after them.
  • Android main b1e5774f3a4 and Apple main cb4f4e5c148 were read for event-client scope in the earlier review and not rechecked for this rebase. No compatible release or runtime app behavior is claimed.
  • The configuration page no longer asks for a Compose override: both shipped Compose files now load .env into the silo service, so the thresholds go in .env like the TCP tuning settings beside them.

bun run test:docs: 8 passed, 0 failed. bun run build: 43 checks passed, all internal links valid, 106 pages built. git diff --check: clean. Before/after captures of the three changed sections at 1440 px and 393 px show the new sections rendering with no overflow and no console errors.

Needs a hands-on check: reconnect behavior in third-party clients and the coordinated web/Android release behavior before enforcement. No real-media preview, deployment or device testing was used.

Evidence: https://evidence.siloserver.org/r/silo-server/manual-event-socket-observation/

Risks

The server implementation is unmerged. Keep this PR draft and update the blocking reference and source evidence before publishing the manual changes.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Source claims distinguish observation, shutdown refusal and prepared enforcement.
  • Public prose contains no private infrastructure, campaign records or local paths.

AI disclosure

  • Harness: T3 Code through the Codex harness.
  • Tools: Codex, GitHub CLI, Git, Bun, T3 Code collaborative browser; silo-docs, humanizer and repository unslop skills.
  • Model: gpt-6.1-sol (xhigh).
  • Involvement: AI-authored documentation and source review at a maintainer's direction; human review pending.
  • Independent review: None. Self-review checked every added claim against the pinned source and the observation/enforcement boundary. No subagents were used.

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Quick104

Quick104 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

This stays draft until blocking server PR Silo-Server/silo-server#2739 merges and these pages are checked against current main. The current server source is aec244c328b91c7c02cc6bcb138772cbaf4862f1. Startup observes thresholds without enforcing quotas; server issue #2727 remains unresolved. No pilot or deployment was performed.

AI: T3 Code through Codex, gpt-6.1-sol (xhigh).

@silo-kody

silo-kody Bot commented Oct 19, 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 ❌
⚠️ 2 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:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 19, 2026
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

Quick104 and others added 2 commits November 5, 2026 00:58
The Compose files now pass .env to the silo container, so a Compose
override is no longer needed for these variables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Quick104
Quick104 force-pushed the docs/event-socket-observation branch from 50894c1 to 3575e7b Compare November 5, 2026 06:00
@silo-kody

silo-kody Bot commented Nov 5, 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 ❌
⚠️ 2 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:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

Silo retired /api/v1, so only native v2 and Jellyfin-compatible event
connections share the count.

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

silo-kody Bot commented Nov 14, 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 ❌
⚠️ 2 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:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz

Copy link
Copy Markdown
Contributor

Closing: Silo-Server/silo-server#2739 was closed without merging, and main has no socket admission stages to document. Reopen this if that work comes back.

This branch was previously deployed

1 inactive deployment
Preview — 6f3e311f Deployed Nov 18, 2026 by zZebrahz via teardown #175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/S 0–49 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.

docs(events): document observation thresholds and connection recovery

2 participants