Skip to content

docs(design): mark shipped designs and correct the scenario acceptance catalogue - #3040

Merged
Quick104 merged 3 commits into
Silo-Server:mainfrom
blurbery:docs/design-records-scenarios
Nov 5, 2026
Merged

Quick104 merged 3 commits into
Silo-Server:mainfrom
blurbery:docs/design-records-scenarios

Conversation

@blurbery

@blurbery blurbery commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Several dated design records still read as drafts or proposals for work that has shipped, and some of their details no longer match the code. docs/architecture/scenario-acceptance.md also undercounts the API-key list packet and says the hw-accel successes are unpaired when another target pairs them. Anyone using these docs to build a client or extend a packet starts from the wrong contract. I found these by checking the docs against the code at upstream d2c12dbb0, and rechecked each one on current main before editing.

Approach

The status lines now say what shipped and link the document that is now the contract. I didn't rewrite the designs.

  • Capabilities-changed event: a note that user_state now needs both the account and the bound profile, for admins too, so the targeting this design proposes would reach no one, and that user_state isn't the only user-scoped channel non-admins get. It links Personal event recipients in realtime-api.md. The event is still unbuilt, so I left the design itself alone.
  • Client diagnostics: server shipped. The upload contract, including /api/v2 and chunked upload, is diagnostics-upload-api.md, and the admin routes are in admin-diagnostics-api.md. The record still owns the consent model and the bundle format.
  • Intro skip: the migration's Down is a deliberate no-op, not a delete.
  • Stream telemetry: P0 is on main (feat(streamtelemetry): measure bytes on every serving path, and merge them into one view #667) and on by default. The parity read uses the v2 route as an acting admin instead of a bare v1 curl on a non-default port. ABSHandler is read by cmd/silo to start the separate ABS listener, so it isn't dead config.
  • Stream telemetry appendix: the "family flag defaulting to every family" row now says the owner reversed it after the P0 soak. The prior-art table listed docs/superpowers plans on a fork-relative branch; it is now a pointer to the branch and commit that names the two architecture matrices.
  • Buffering quality: the server and web parts of phases 1 and 2 shipped in feat(playback): lower Auto quality when playback keeps buffering, and test connection speed #2699, and the status links the server contract. The connection example's learned limit now expires 24 hours after it was observed, matching connectionstore.TTL, and is still current when the example's playback sample was taken.
  • attr-registry.json: dropped the $schema key, which names a file that doesn't exist. Only schema_version and categories are read, here and in the Apple and Android parity tests.
  • Scenario acceptance:
    • The API-key list target requires six cases (12 requests, 24 snapshots), including keys_list.meaning and keys_list.shape, which only that target's selector pairs. Their frozen v1 oracles expect the reusable secret, which the v1 list no longer returns, so the doc now says those two v1 exchanges can't pass against the current bridge.
    • The hw-accel cases are paired by make test-scenario-hardware-inventory.
    • The intro says the profile pilot covers reads and later targets assert mutation effects. It also explains that the "frozen 598" oracle now holds 599 scenarios; I kept the name because the executor's result labels use it too.
    • A short paragraph points to the three required acceptance tests that have no make target (setup family, household authority, key-authority usage) and links the documents that already describe them.
    • consumed.r1 is now device_poll.consumed.r1.

Left out: the stream-telemetry route counts and proxy key cell in §4.2 and Figure 1, because #2525 rewrites that table.

Validation

  • make verify-local-paths: passed.
  • Relative links and anchors in the changed docs: checked with a script, no broken targets.
  • go test ./internal/diagnostics/contract/: passed.
  • make test-scenario-api-key-lists wasn't run; it needs a scenario database. The statement about its meaning and shape v1 exchanges comes from reading the oracles, the assertion engine and the v1 handler.
  • The full gate wasn't run locally; CI runs it.

Evidence

Evidence: none, no user-visible change

Risks

None identified. The only non-Markdown change is the unused JSON key. The client-diagnostics and registry edits sit outside #1986's hunks, and the stream-telemetry edits sit outside #2525's.

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 says there is none.

AI Disclosure

  • Harness: Claude Code (desktop app)
  • Tool(s): Claude Code, GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted with Claude Opus. I directed the task and designed the work.
  • Adversarial review: a separate read-only Claude Code agent got only git diff upstream/main...HEAD and checked every changed claim against the code. It found three real errors, all fixed: I had changed the buffering-quality status for a source without an estimate from 400 to 422, but v2 rejects that case as malformed_request (400) before validation, so I reverted it; my corrected learned-limit expiry made the example's playback sample arrive after the limit expired, so I moved the observation time; and the API-key list section implied all six cases pass when the meaning and shape v1 legs can't against the current bridge, which it now says. I also took its wording fixes: the non-admin channel history in the capabilities note, the admin diagnostics doc and bundle format in that status, links to the three untargeted tests' own docs, a fuller description of the selector's v2 expectation, the narrow-or-switch-off wording for the family variable, and a dropped dangling clause in the hw-accel sentence. I kept the appendix's prior-art pointer instead of restoring the docs/superpowers paths, since those plans must not be committed or linked, but it now names the two architecture matrices.

Note

Update design docs to mark shipped status and correct scenario acceptance catalogue

  • Marks several design docs as shipped (client diagnostics, stream telemetry, buffering-quality phases one and two) and adds a dated warning to the capabilities-changed event doc noting its targeting proposal is no longer valid.
  • Corrects scenario-acceptance.md: keeps the historical "598-scenario oracle" name despite 599 entries, expands the API-key list cohort from four to six cases, and documents three env-var-guarded acceptance tests.
  • Updates stream telemetry docs: observation of all families is now the default, and the Audiobookshelf handler dependency is read only by the dedicated listener command.
  • Replaces the intro-skip-mode rollback instruction with a no-op rationale: the migration cannot distinguish backfilled rows from client-written rows.
  • Changes the buffering-quality example timestamp to a one-day learned-limit validity period and removes the top-level schema URL from the client-diagnostics attribute registry JSON.

Macroscope summarized 1acdca6.

…e catalogue

Update the status lines of the client diagnostics, stream telemetry and
buffering quality designs to say what shipped and which document is now
the contract. Note that the capabilities-changed event's targeting no
longer matches the hub's delivery rules, and correct the intro-skip
migration's Down, the learned-limit expiry example, the parity read,
ABSHandler and the old-branch planning documents.

Correct the API-key list and hw-accel packets in scenario-acceptance.md,
explain the 598/599 oracle count, and point to the required executor
tests that have no make target.

Drop the attribute registry's $schema key, which names a file that does
not exist.
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Oct 25, 2026
@silo-kody

silo-kody Bot commented Oct 25, 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:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: a4a206f6-061a-43b6-91d0-fc836cbfbece
Commits

Reviewing files that changed from the base of the PR and between c007dc7 and 1acdca6.

Files selected for processing: 1
  • docs/design/2026-07-06-capabilities-changed-event.md
Walkthrough

This pull request updates scenario acceptance guidance and several design records. It revises documented status, scope, recipient behavior, rollback behavior, operational details, API expectations, and references. It also removes a schema declaration from a registry JSON file.

Changes: Scenario acceptance guidance

Layer / File(s) Summary
Scenario count and pilot scope
docs/architecture/scenario-acceptance.md
Clarifies the catalog count, read-only profile pilot, later mutation-effect coverage, and required executor acceptance tests.
API-key list target
docs/architecture/scenario-acceptance.md
Adds two cases and updates the documented request and snapshot counts and v2 expectations.
Hardware inventory pairing
docs/architecture/scenario-acceptance.md
Points to the target that pairs the remaining four hardware cases.

Capabilities-changed event note

Layer / File(s) Summary
Recipient targeting
docs/design/2026-07-06-capabilities-changed-event.md
Documents the account and bound-profile requirements for user_state delivery and identifies additional user-scoped channels.

Stream telemetry records

Layer / File(s) Summary
Status and operating guidance
docs/design/2026-08-17-stream-telemetry.md
Updates the P0 status, Audiobookshelf listener description, and parity endpoint instructions.
Family flag and prior-art references
docs/design/2026-08-17-stream-telemetry-appendix.md
Revises the unset family-flag behavior and updates the branch and matrix references.

Client diagnostics record

Layer / File(s) Summary
Status and registry reference
docs/design/2026-07-19-client-diagnostics.md, docs/design/schemas/client-diagnostics/v1/attr-registry.json
Marks the server portion as shipped, adds API documentation links, and removes the registry JSON $schema property.

Intro skip mode migration note

Layer / File(s) Summary
Rollback behavior
docs/design/2026-08-16-intro-skip-mode.md
Documents a no-op rollback and states that backfilled rows cannot be distinguished from later client-written rows.

Buffering quality record

Layer / File(s) Summary
Status and learned-limit example
docs/design/2026-10-17-buffering-quality.md
Marks server and web phases 1 and 2 as shipped, links playback contracts, and changes the example expiry to 24 hours after observation.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: quick104, coffeeknyte

Merge Risk: Moderate · up to c007d

The event guidance still describes a way to publish capability changes that reaches no connections. Correct or clearly retire those instructions before merging.

Architecture risk: Low · up to c007d

The change affects 1 system.

Changed systems: docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — docs (service) was modified; 8 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in docs/architecture/scenario-acceptance.md: Adds the explanation that the “598-scenario oracle” name was retained although the catalog has held 599 scenarios since keys_create.member_forbidden was added.
  • observed — Modified behavior in docs/architecture/scenario-acceptance.md: Clarifies that the profile pilot covers reads only and directs mutation-effect coverage to later targets, including device mutation effects.
  • observed — Modified behavior in docs/architecture/scenario-acceptance.md: Adds references to three required executor acceptance tests, each of which skips unless SILO_SCENARIO_REQUIRED=1, with further requirements documented separately.
  • observed — Modified behavior in docs/architecture/scenario-acceptance.md: Expands the API-key list target from four cases to six by adding keys_list.meaning and keys_list.shape, increasing the described transport requests from eight to twelve and snapshots from 16 to 24. It now states that these catalog rows remain unpaired, their v1 exchanges cannot pass against the current bridge, and this target supplies metadata-only v2 expectations after checking digest-pinned originals.
Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "docs(design): mark shipped designs and correct the scenario acceptance catalogue" matches the main changes. The PR marks the client-diagnostics and stream-telemetry designs as shipped, and …
Description check Passed The description explains the problem, approach, per-document changes, validation steps, and AI disclosure. It directly covers the changed files: the shipped status lines, the scenario-acceptance catal…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 "docs(design): mark shipped designs and correct the scenario acceptance catalogue" matches the main changes. The PR marks the client-diagnostics and stream-telemetry designs as shipped, and it corrects scenario-acceptance.md. It also covers the attr-registry.json key removal, the capabilities-changed and intro-skip doc updates, and the buffering-quality status. The title is concise and specific, and it uses the conventional commit form. It omits the minor JSON change, which is expected.

Full details: Description check

Explanation

The description explains the problem, approach, per-document changes, validation steps, and AI disclosure. It directly covers the changed files: the shipped status lines, the scenario-acceptance catalogue corrections, the capabilities-changed delivery-rule note, the intro-skip no-op rollback, the stream-telemetry edits, and the attr-registry.json key removal. It is well related to the changeset.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (7 skipped: 7 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation priority: P2 Limited scope, workaround exists, or polish labels Oct 25, 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.

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: eba8b4e9-3a6f-4635-a6d9-4a8dcaae7aec
Commits

Reviewing files that changed from the base of the PR and between 81d56ad and c007dc7.

Files selected for processing: 8
  • docs/architecture/scenario-acceptance.md
  • docs/design/2026-07-06-capabilities-changed-event.md
  • docs/design/2026-07-19-client-diagnostics.md
  • docs/design/2026-08-16-intro-skip-mode.md
  • docs/design/2026-08-17-stream-telemetry-appendix.md
  • docs/design/2026-08-17-stream-telemetry.md
  • docs/design/2026-10-17-buffering-quality.md
  • docs/design/schemas/client-diagnostics/v1/attr-registry.json
Files with no reviewable changes: 1
  • docs/design/schemas/client-diagnostics/v1/attr-registry.json

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

@silo-kody

silo-kody Bot commented Oct 25, 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:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime

@coderabbitai coderabbitai Bot mentioned this pull request Oct 31, 2026
4 tasks done
@Quick104
Quick104 merged commit 6964f82 into Silo-Server:main Nov 5, 2026
20 checks passed
@blurbery
blurbery deleted the docs/design-records-scenarios branch November 6, 2026 00:01
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/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants