Skip to content

docs: align the references with the retired v1 API and the shipped v2 contracts - #5104

Merged
Quick104 merged 1 commit into
mainfrom
docs/align-references-with-v2
Nov 22, 2026
Merged

Quick104 merged 1 commit into
mainfrom
docs/align-references-with-v2

Conversation

@Quick104

@Quick104 Quick104 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: Apple N/A (no client-visible change); Android N/A (no client-visible change); Roku N/A (no client-visible change)

Many of the references in docs/ no longer match the server. /api/v1 has answered a 410 tombstone since #3200, but about 25 documents still describe the frozen v1 bridge as live, and auth-api.md documents two v1 password routes. Several v2 references drifted from their handlers, and admin-api.md documents about nine endpoint groups twice, in sections that already disagree. This pass brings the docs back in line with the code. It changes no code.

Approach

Accuracy fixes, each checked against the handler that implements it:

  • Downloads: a malformed subtitle ref and the creation handler's own checks return 400 malformed_request, not 422. Transcoding refused by policy is 403, and an unsupported preset is 501.
  • Playback v3: the §2 tables now list the v2 statuses and Problem types (422 instead of 400/426, and 409 idempotency_conflict for a reused attempt). The HLS AAC note now describes the aac_adtstoasc rule that shipped in fix(playback): convert copied ADTS AAC for fMP4 HLS segments #3677.
  • Admin settings writes return 422 validation_failed. Diagnostics capabilities answer 200 not_configured when ingress is missing. Telemetry parity answers 503 when its service is absent.
  • Realtime: both API-key branches are documented, and only the events socket sends an access_changed frame. Sign-in device IDs: the auth reference no longer contradicts itself.
  • catalog-api.md documents the series date_viewed rule from fix(catalog): sort TV series by when their episodes were last watched #5073.
  • Settings writes are documented as naturally idempotent, with no future mutation-ID work promised.
  • update-to-1.0.md: the Apple and Android follow-up table now records which items each client has done, checked against both clients' main.

Consolidation:

  • Each duplicated admin-api.md section is now one section. The general admin settings writes moved to admin-settings-api.md, and catalog search status moved to admin-catalog-api.md.
  • Push device operations live only in notifications-push-api.md (retitled to cover Apple, Android and web). The admin marker contract lives only in admin-catalog-api.md.
  • admin-system-api.md, scan-control-api.md, jellycompat-subtitles-api.md and architecture/notification-webhook-revisions.md are merged into the documents they repeated and deleted. Nothing in the repository linked to them except scan-api.md, which absorbed scan-control-api.md.
  • docs/README.md now indexes every API reference by audience and links the schema READMEs.

Wording: migration-inventory and ratification bookkeeping, "this PR"/"this branch"/"today" phrasing in shipped sections, and branch notes in the telemetry appendix are gone. Design notes keep their history but no longer present retired routes as current. "(v2)" qualifiers are gone from headings, and every inbound link to a renamed anchor is updated.

Validation

  • Relative links and anchors across docs/: 0 broken (a script resolves each link against the tree and each anchor against the target's headings).
  • Every METHOD /api/v2/... operation documented before the change is still documented afterwards.
  • make verify-local-paths, make verify-case-collisions: pass.
  • make lint-changed: no changed Go packages.
  • The Go, web and contract gates were not run: no code, schema or generated file changed.

Evidence

Nothing a user sees changes. Checked on commit 269324d, rebased on 321f79c:

link check: 0 bad links
scripts/check-local-path-leaks.sh            (pass)
casecollisions: 9735 tracked files, no paths collide ignoring case
lint-changed: no changed Go packages since origin/main

Risks

Documentation only. Readers who bookmarked the four deleted files or the renamed "(v2)" anchors will land on the parent document or its top.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: T3 Code running Claude Code
  • Tool(s): Claude Code (lead and editing subagents); Codex CLI and Antigravity (independent reviewers)
  • Model(s): claude-opus-5-5; gpt-6.2-sol (reasoning effort high); gemini-4-neon (thought level high)
  • Involvement: Fully AI-generated
  • Adversarial review: gpt-6.2-sol and gemini-4-neon separately reviewed all of docs/ at b1d07ad for statements that disagree with the code, duplicates, and stale wording. Claude checked each finding against the source. It applied the confirmed ones (about 75) and dismissed the rest with a reason: placeholder examples and file moves that add churn. The final diff was checked by the link, anchor and operation-coverage scripts above and spot checks of the rewritten error tables against the handlers. No second independent review was run on the final diff.

🤖 Generated with Claude Code

Note

Align API docs with retired v1 routes and shipped v2 contracts

  • Removes v1/v2 version qualifiers across the API guides and drops statements about native-client migration, since v1 is retired and v2 is the shipped contract. Deletes the separate scan-control guide and points scan-api.md readers to the shared admin scan dispatch.
  • Adds a categorized API documentation index to README.md and documents new contracts in admin-settings-api.md, admin-api.md, and notifications-push-api.md (Apple, Android, and browser push).
  • Documents real behavior corrections: conditional If-None-Match settings reads never return 304, retired /api/v1 autoscan webhooks return 410 without token resolution, and date_viewed sorting rules in catalog-api.md.
  • Marks older design docs as historical and updates them to reference the shipped /api/v2 routes and endpoints.
  • Risk: docs-only change; autoscan-delivery-api.md states external webhook configs using the retired /api/v1 URL must be updated manually.

Macroscope summarized 269324d.

… contracts

/api/v1 now answers a 410 tombstone (#3200), but many references still
described the frozen bridge as live. Remove the present-tense v1 text,
correct the v2 status codes and contracts that drifted from the handlers
(downloads, playback v3, admin settings, diagnostics, realtime API keys,
device headers, parity), document the series date_viewed rule, and state
shipped behaviour where notes still called it pending.

Consolidate references documented twice: merge the duplicated admin-api
sections, move admin settings and catalog search status to their own
references, keep push and marker contracts in one place each, and fold
admin-system-api, scan-control-api, jellycompat-subtitles-api and
notification-webhook-revisions into the documents they repeat. Index every
API reference from docs/README.md, settle the Apple and Android follow-up
list in update-to-1.0 against the clients, and drop migration-era
bookkeeping and branch notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 22, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T04:49:03.048188Z 269324d PR opened
🔒 Security Review ✅ Completed 2026-11-22T04:51:02.004989Z 269324d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 22, 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 ❌
⚠️ 4 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 optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation priority: P2 Limited scope, workaround exists, or polish labels Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Quick104
Quick104 merged commit 6781336 into main Nov 22, 2026
8 of 9 checks passed
@Quick104
Quick104 deleted the docs/align-references-with-v2 branch November 22, 2026 04:46
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 priority: P2 Limited scope, workaround exists, or polish size/XXXL 3000+ added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant