Skip to content

docs: align the contributor and agent docs with CI and the build - #3038

Merged
Quick104 merged 3 commits into
Silo-Server:mainfrom
blurbery:docs/contributor-docs-ci-alignment
Nov 5, 2026
Merged

Quick104 merged 3 commits into
Silo-Server:mainfrom
blurbery:docs/contributor-docs-ci-alignment

Conversation

@blurbery

@blurbery blurbery commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Several contributor and agent docs no longer match what CI and the build do, and people and coding agents follow them word for word. The pre-PR gate in CONTRIBUTING leaves out two checks CI runs, so a branch can pass the whole listed gate and still fail CI. AGENTS.md names a lint flag CI no longer uses, DEVELOPMENT.md says Go tests need Docker for testcontainers when no test uses them, and the README says images carry a short commit SHA tag when the tag is the full SHA, so pinning a 7-character tag fails to pull.

I checked these docs against the workflows, the Makefile and the code at upstream bfdeb556c. This PR corrects the claims that were wrong and leaves the rest of each doc as it was.

Approach

  • CONTRIBUTING.md
    • The gate adds go mod tidy -diff (Go lint runs it) and make verify-apiv2-web-types (Web checks run it). verify-size-ratchet, verify-migrations and verify-v1-route-freeze get the same BASE_REF note as the two targets that already had it, since all five diff against the merge base.
    • The "authoritative" link points at trusted-linux-ci.yml and go-checks.mk, which hold the jobs, instead of ci.yml, which only calls them from main.
    • There is no "documentation checks" job. Markdown in the root, docs/, .github/, scripts/ or cmd/ selects neither group, and other Markdown is selected by its path.
    • The apiv2 regeneration step adds apiv2-web-types, and the lint paragraph says when make lint-changed falls back to a full-tree analysis.
  • AGENTS.md (CLAUDE.md links to it): CI lints changed lines with --new-from-patch, not --new-from-merge-base. WEBTEST_KNOWN_FAILURES is empty, so make test-web skips nothing; the shrink-only rule stays. The lint advice gets the same full-tree note.
  • DEVELOPMENT.md: Docker is for local services and make verify-prometheus-rules, not testcontainers, which nothing uses. DB-backed tests skip without a test database URL. internal/config is the .env and env var bootstrap plus database-backed settings rather than YAML.
  • README.md and docs/release-versioning.md: the commit tag is the full SHA.
  • docs/api-docs.md: the regenerate command now matches CONTRIBUTING.
  • scripts/apiv2-ledger/README.md: the assign_sections.py bullet sat inside the build_ledger.py description, so the merge rules and the retry_safety table read as assign_sections.py behaviour. It now follows the table. The pinned-tree test also skips when git is unavailable or the repository isn't a git checkout.
  • tools/mobitool-wasm/README.md: the server build isn't cgo-free (bimg needs libvips). The converter adds no cgo of its own, which is what the bullet now says.
  • web/docs/design-system.md: Silo has one theme (Cinema Dark), themes.ts is gone, the hero sizes come from HERO_BANNER_SIZE and the detail hero, the glow is the .ambient-glow class with an --ambient-glow-opacity token, and the Ken Burns range matches the kenBurns tokens.

Skipped: docs/update-to-1.0.md refers to a deployment guide without linking one, but that line is inside a hunk #1049 changes, so I left the file alone.

Validation

  • make verify-local-paths: passed.
  • Relative links and anchors in the nine changed files: 47 checked, none broken. Before this change the themes.ts link was broken.
  • No tests, as this is docs-only. The tools/ and web/ Markdown in this PR makes CI select the Go and Web jobs as well as Repository checks.

Evidence

Evidence: none, no user-visible change

Risks

None identified. Docs only.

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 reviewer agent got only the diff and tried to refute each changed claim against the workflows, Makefile, scripts and code at bfdeb556c. It confirmed most of them and found eight imprecise points, all fixed here: renaming a file in a Go package also forces a full-tree lint; with one sibling checkout missing, the pinned-tree test can skip before it reports the other as unfetched; Docker is also needed for make verify-prometheus-rules; the config bootstrap reads environment variables as well as .env; some token values sit outside the theme block in app.css; the Library Recommended hero uses HERO_BANNER_SIZE_TALL; plus two wording fixes. I didn't take its suggestions to add the CI-internal guards (the CI helper script tests and the Go test lane's dependency and subprocess checks) to the gate, because the gate now links the files that define them, or to describe the lint script's fallback when it can't find a merge base, which needs a broken local origin.

Note

Update contributor and agent docs to match CI and build behavior

  • Aligns AGENTS.md and CONTRIBUTING.md with the real CI path: names scripts/lint-changed.sh and --new-from-patch, and points to trusted-linux-ci.yml and go-checks.mk as authoritative references taken from main
  • Adds missing validation steps to CONTRIBUTING.md: go mod tidy -diff, API v2 web-types verification, fixtures in the regeneration instructions, and BASE_REF usage for size-ratchet, migration, and route-freeze checks
  • Corrects DEVELOPMENT.md on Docker prerequisites, DB-backed test skipping, and internal/config bootstrap; fixes skip conditions for pinned-tree tests in README.md
  • Refreshes design-system.md theme and hero guidance, including HERO_BANNER_SIZE dimensions and the ambient-glow-opacity token; drops the CGO_ENABLED=0 claims from the mobitool-wasm README
  • Documentation only; no runtime behavior changes

Macroscope summarized 51047ba.

Correct the contributor, agent and tooling docs where they no longer
match the CI workflows, the Makefile and the code: the pre-PR gate,
which Markdown selects which CI jobs, how CI lints changed lines, the
image commit tag, the web test exclusions, the Go test setup, the
apiv2 regeneration commands, the ledger script descriptions and the
web design-system values.
@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 →

Walkthrough

The pull request updates repository guidance for CI validation, linting, API artifact generation, and local development. It also revises the embedded WebAssembly build description and web design-system documentation.

Changes: Validation and local development guidance

Layer / File(s) Summary
Full gate and PR path selection
CONTRIBUTING.md
The guide identifies the authoritative full-gate sources, adds go mod tidy -diff, and updates PR CI selection for Markdown paths.
Test and lint guidance
AGENTS.md, CONTRIBUTING.md
The guidance requires all web tests to run, updates changed-line lint instructions, and describes when lint analyzes the full tree.
Local development prerequisites and configuration
DEVELOPMENT.md
The guide updates the Docker prerequisite, DB-backed test note, and description of internal/config/.

API artifact guidance

Layer / File(s) Summary
API generation and ledger instructions
CONTRIBUTING.md, docs/api-docs.md, scripts/apiv2-ledger/README.md
The instructions add web-type verification and fixture regeneration guidance. The ledger README changes command ordering and documents additional test skip conditions.

WebAssembly build documentation

Layer / File(s) Summary
Embedded WebAssembly build description
tools/mobitool-wasm/README.md
The README states that the embedded .wasm adds no cgo, native library, or external binary, and removes claims about CGO_ENABLED=0 and trivial cross-compilation.

Web design-system documentation

Layer / File(s) Summary
Theme, color, and hero guidance
web/docs/design-system.md
The documentation updates theme and color references, Ken Burns timing, the ambient token description, and home and detail hero sizing guidance.

Priority: Low

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

Change: Other

Suggested reviewers: quick104

Merge Risk: Low · up to 51047

The guide may lead contributors to apply incorrect heights to compact detail heroes; qualify the guidance before merging.

Architecture risk: Low · up to 51047

The change affects 7 systems.

Changed systems: AGENTS.md, CONTRIBUTING.md, DEVELOPMENT.md, docs, scripts, tools, web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — AGENTS.md (service) was modified; 1 changed file maps to changed impact.
  • observed — CONTRIBUTING.md (service) was modified; 1 changed file maps to changed impact.
  • observed — DEVELOPMENT.md (service) was modified; 1 changed file maps to changed impact.
  • observed — docs (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in AGENTS.md: The guidance changes make test-web from skipping files listed in WEBTEST_KNOWN_FAILURES to running every web test, and requires that variable to remain empty.
  • observed — Modified behavior in AGENTS.md: The CI lint guidance replaces --new-from-merge-base with scripts/lint-changed.sh using --new-from-patch; it retains the note that full-tree lint can report unrelated findings.
  • observed — Modified behavior in AGENTS.md: The guidance adds that make lint-changed analyzes the whole tree when a Go-package file is deleted or renamed, or shared Go inputs such as go.mod, go.sum, the Makefile, a workflow, or lint configuration are touched. The prior statement that it always analyzes only touched packages is narrowed; the instruction not to pass --allow-parallel-runners remains.
  • observed — Modified behavior in CONTRIBUTING.md: The full-gate instructions now name trusted-linux-ci.yml and go-checks.mk as authoritative, state that CI uses their versions from main, and add go mod tidy -diff to the Go checks.
Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: updating contributor and agent documentation to match CI and build behavior.
Description check Passed The description is directly related to the documentation changes and explains the corrected CI, build, testing, configuration, and design-system guidance.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 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.

🔇 Additional comments: 11
tools/mobitool-wasm/README.md: 1

10-11: LGTM!

README.md: 1

116-116: LGTM!

docs/release-versioning.md: 2

6-6: LGTM!


55-55: LGTM!

docs/api-docs.md: 1

26-26: LGTM!

scripts/apiv2-ledger/README.md: 1

54-58: LGTM!

Also applies to: 68-71

web/docs/design-system.md: 1

13-13: LGTM!

Also applies to: 94-94, 119-119, 204-208, 292-292, 323-323

CONTRIBUTING.md: 1

199-203: LGTM!

Also applies to: 210-210, 234-235, 242-242, 244-245, 256-263, 277-280, 312-317

AGENTS.md: 1

177-179: LGTM!

Also applies to: 183-186, 188-194

DEVELOPMENT.md: 1

10-10: LGTM!

Also applies to: 169-169, 185-185

web/docs/design-system.md-149-149: 1

149-149: Minor · Maintainability & Code Quality · Quick win

⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Complete the sentence describing --ambient-glow-opacity.

The second sentence starts with “Should be barely perceptible” but has no subject. Replace it with “The effect should be barely perceptible — felt more than seen.”

Source: Linters/SAST tools


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: 4997543e-7fc1-413e-856a-51f8ddc0b411
Commits

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

Files selected for processing: 9
  • AGENTS.md
  • CONTRIBUTING.md
  • DEVELOPMENT.md
  • README.md
  • docs/api-docs.md
  • docs/release-versioning.md
  • scripts/apiv2-ledger/README.md
  • tools/mobitool-wasm/README.md
  • web/docs/design-system.md

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

@silo-kody

silo-kody Bot commented Oct 29, 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 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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Qualify the detail-hero sizing guidance for compact variants. · design-system.md:208

web/docs/design-system.md:208
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Qualify the detail-hero sizing guidance for compact variants.

DetailHero uses 60dvh and 72dvh only for non-compact heroes. Compact heroes use max(35vh, 300px) and 42vh at lg. State that these values apply to the full variant, or document the compact exception. (raw.githubusercontent.com)

Also applies to: 323-323


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: 8938d6dc-1d48-48a2-80ae-608427374867
Commits

Reviewing files that changed from the base of the PR and between b8262e6 and 51047ba.

Files selected for processing: 2
  • DEVELOPMENT.md
  • web/docs/design-system.md
Files skipped from review as they are similar to previous changes: 1
  • DEVELOPMENT.md

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

@blurbery

Copy link
Copy Markdown
Contributor Author

@coderabbitai On the outside-diff note about hero sizing in web/docs/design-system.md (lines 208 and 323): no page passes variant="compact" to DetailHero today, so every detail page uses min-h-[60dvh] and lg:min-h-[72dvh]. I've left the guidance describing those rather than a variant nothing renders.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
sed -n '195,218p;310,334p' web/docs/design-system.md
fd -i 'DetailHero' .
while IFS= read -r file; do
  ast-grep outline "$file"
  rg -n -C5 'compact|60dvh|72dvh|variant' "$file"
done < <(fd -i 'DetailHero' . --type f)
rg -n -C5 'DetailHero|variant="compact"' web --glob '*.tsx'

Length of output: 3518


🏁 Script executed:

#!/bin/bash
ast-grep outline web/src/pages/ItemDetail/DetailHero.tsx
rg -n -C6 'compact|60dvh|72dvh|variant' web/src/pages/ItemDetail/DetailHero.tsx
rg -n -C12 '<DetailHero\b|variant=.compact.' web --glob '*.tsx' --glob '!*.test.tsx'

Length of output: 26085


@blurbery You're right. I checked DetailHero and its page call sites. No page passes variant="compact", and the non-compact branch applies min-h-[60dvh] and lg:min-h-[72dvh].

The guidance in web/docs/design-system.md matches current usage. I withdraw the outside-diff note. No change is needed.


🧠 Learnings used
Learnt from: CR
Repo: Silo-Server/silo-server PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-10-19T23:34:11.654Z
Learning: Source excerpt:
# Silo Server

## Gotchas

**Docs hygiene.** Implementation plans and specs are ephemeral working artifacts, not
documentation. `docs/superpowers/` is gitignored: write plans there (or in any scratch dir)
while working, but never commit them — put the plan in the PR description instead. Before a
branch merges, distill anything durable (invariants, protocols, security rules) into
`docs/architecture/` and let the plan die. The code is the source of truth; a doc that
disagrees with the code is wrong. Any committed doc must not contain local absolute
filesystem paths or transient worktree IDs — use repository-relative paths and wording like
"Commands assume the repository root is the cwd." `make verify-local-paths` enforces this.

You are interacting with an AI system.

@Quick104
Quick104 merged commit 08bd4e8 into Silo-Server:main Nov 5, 2026
21 checks passed
@blurbery
blurbery deleted the docs/contributor-docs-ci-alignment 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