Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 27 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,54 @@ Related issue: #NNN
stay open, or "N/A". An open issue is not required — the Problem section below must
stand on its own. -->
Validation tasks: #NNN C1
<!-- Until 1.0 ships: v1.0 board tasks and cases this change unblocks or changes
(see "1.0 validation" in AGENTS.md), e.g. "unblocks #1144 C3; changes #1200 C1".
Write "none" when no validation task is affected. -->
<!-- Until 1.0 ships: v1.0 board tasks and cases this change unblocks or changes,
e.g. "unblocks #1144 C3; changes #1200 C1". Write "none" when no validation task is
affected. -->

A short plain-language summary: what goes wrong, who it affects, and what this
change does about it. Details come after.

## Approach

What changed and why this way. Mention an alternative only if a reviewer would ask
about it. Do not walk through the diff.
What changed and why this way, and which surfaces and repositories it affects.
Mention an alternative only if a reviewer would ask about it. Do not walk through
the diff.

## Validation

One line per kind of check and its result; do not list tests by name. Name required
checks that were not run or did not pass. Include a short output excerpt only when it
explains a failure.
<!-- Do not include private domains, hostnames, IPs, Tailscale or Report Shelf URLs,
local paths, credentials, personal data, or private media details. Attach screenshots
or recordings only when the user explicitly requests them. A maintainer may end this
section with `Evidence: https://evidence.siloserver.org/r/<repo>/<topic>/`; that page
requires Silo-Server organization sign-in. -->
local paths, credentials, personal data, or private media details. -->

## Evidence

| Before | After |
| ------ | ----- |
| | |

Surface and build:
<!-- Required when this change alters what a user sees: UI, or which items or what
item details a screen shows, such as search results, home sections, recommendations,
metadata, artwork, sorting, or filtering. See "Show visible changes" in
CONTRIBUTING.md. Use before-and-after screenshots of the same screen and data for each
affected surface, and a short recording when motion, timing, or focus matters. Crop or
blur private details. A maintainer may link
`Evidence: https://evidence.siloserver.org/r/<repo>/<topic>/` instead; that page
requires Silo-Server organization sign-in. When nothing visible changes, replace this
section's content with "Evidence: none, no user-visible change". -->

## Risks

Migration, compatibility, security, or operational impact, or "None identified".
Migration, compatibility, security, operational, or release impact, or "None
identified".

## Checklist

- [ ] I read and can explain the complete diff.
- [ ] This pull request addresses one concern.
- [ ] The Evidence section shows every change a user can see, or says there is none.

## AI Disclosure

Expand Down
89 changes: 89 additions & 0 deletions .macroscope/check-run-agents/visible-change-evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
title: Visible change evidence
model: gpt-6-luna
reasoning: high
input: full_diff
tools:
- browse_code
- git_tools
- github_api_read_only
- modify_pr
exclude:
- ".agents/**"
- "docs/superpowers/**"
conclusion: neutral
maxRuns: 3
maxBudgetPerRun: 0.50
maxBudgetPerPR: 3.00
---

Silo requires evidence in every pull request that changes what a user sees. Reviewers should be
able to see the change without building the branch. Your job is to decide whether this PR changes
what a user sees and, if it does, whether its Evidence section shows that change. You report; you
do not judge whether the change is good.

The rules are in `CONTRIBUTING.md` under "Show visible changes". Read that section first; it is the
authority if this prompt and it disagree.

## Decide whether the change is visible

Read the PR title, body, and full diff. Trace changed code to what a user would see; do not match
on file names alone. A change is visible when it alters any of these:

- web or web admin UI under `web/src/`: layout, styling, copy, navigation, focus, empty and error
states;
- which items a client shows, or in what order: search results and ranking, home sections
(`internal/sections`), recommendations, library browsing, collections, sorting, or filtering;
- what an item shows: titles, artwork selection, descriptions, ratings, badges, episode grouping,
or availability;
- playback behavior a user notices: default audio or subtitle tracks, markers, resume position;
- a native API or jellycompat response field that clients render.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include unrendered API changes in the evidence check

When a PR changes an API response that no client renders yet, CONTRIBUTING.md still requires before-and-after response excerpts under “Server changes no client shows yet.” This predicate only classifies response fields that clients already render as visible, so the check will classify exactly that case as not visible and suggest Evidence: none, no user-visible change, bypassing the documented evidence requirement. Include unrendered server response changes in the evidence-required classification.

Useful? React with 👍 / 👎.


These are not visible on their own: tests, CI, build tooling, internal refactors with identical
output, logging, metrics, migrations that do not change returned data, and documentation. When the
path to the user is real but uncertain, say so and treat the change as visible.

## Check the evidence

Find the `## Evidence` section of the PR body. For a visible change, it passes when it has:

- before-and-after images, a recording, or before-and-after API response excerpts that show the
changed behavior, or a line starting with `Evidence: https://evidence.siloserver.org/`;
- evidence that matches the change: a UI change needs screenshots or a recording, not only API
output; a change to which items appear or their order needs a before and an after of the same
query, screen, or section;
- a recording when the change is about motion, timing, focus movement, or a multi-step flow;
- the surface and build or commit the captures came from.

An explanation of why evidence could not be captured is acceptable; report it so the reviewer can
decide, and do not count it as a pass.

For a change that is not visible, the section should say `Evidence: none, no user-visible change`.
If it is empty or still holds the template table, suggest that line.

You cannot open images. Judge them from their placement, alt text, captions, and surrounding text.
Never claim an image shows something you could not read.

## How to report

Always write the check run summary. Start with one line: `visible` or `not visible`, and `evidence
complete`, `evidence incomplete`, `evidence missing`, or `evidence explained as unavailable`. Then
list the user-visible effects you found, each with the file that causes it, and what the evidence
covers or lacks.

Post one conversation comment on the PR only when a visible change has missing or incomplete
evidence, or when a change that is not visible has no Evidence line. Name each visible effect that
lacks evidence and the kind of evidence it needs, in one line each. If the author has replied that
evidence is not needed or has explained why it is unavailable, accept that and do not raise it
again unless new commits change what users see.

## Rules

- Do not change the PR title, body, labels, assignees, or reviewers. Do not @-mention anyone.
- Comments are public. Do not include hostnames, IP addresses, local paths, credentials, or personal
data.
- If you see private details in the evidence, such as hostnames, URLs, account names, or personal
library contents, say that the evidence needs redacting without repeating the details.
- Write plainly: lead with the finding, use active voice, and skip praise and filler.
- End every comment with `<sub>Automated check: Macroscope check run agent (gpt-6-luna). Evidence was
not reviewed for correctness.</sub>`
18 changes: 11 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,18 +295,22 @@ authorization to open a PR does not authorize publishing private evidence.

The one private link allowed is a maintainer's evidence page on
`evidence.siloserver.org`, which only Silo-Server organization members can open
after GitHub sign-in. Put it on one line at the end of a PR body's Validation
section or a validation hand-off comment:
after GitHub sign-in. Put it on one line in a PR body's Evidence section or a
validation hand-off comment:
`Evidence: https://evidence.siloserver.org/r/<repo>/<topic>/`. Link the page;
never attach or embed its media.

- Keep one concern per pull request. Split changes that solve independent
problems or can be reviewed and shipped separately.
- Do not capture screenshots or record videos just to prepare a PR. Attach media
only when the user explicitly requests it. Verify UI behavior as needed without
turning verification into a media deliverable. Do not explain omitted media.
- When the user requests PR media, check it for private information and upload it
to GitHub. Never commit PR-only assets such as `.github/pr-assets/`.
- Every pull request that changes what a user sees must include evidence, as
[Show visible changes](CONTRIBUTING.md#show-visible-changes) defines. That
covers UI and UX changes and changes to which items appear or what they show,
such as search results, home sections, recommendations, sorting, filtering,
metadata, or artwork. Use before-and-after captures of the same screen with the
same data, and a short recording when motion, timing, or focus matters. Write
`Evidence: none, no user-visible change` only when that is true.
- Check evidence media for private information before posting, and upload it to
GitHub. Never commit PR-only assets such as `.github/pr-assets/`.
- Put a `Closes #NNN` line in the body for every issue the pull request fully
resolves (`Closes Silo-Server/<repo>#NNN` across repositories), so GitHub closes
it on merge to `main`. `Related issue:` does not close anything; use it for the
Expand Down
38 changes: 36 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ when none applies. Either way, the Problem section has to stand on its own. Keep
limited to the stated problem. Keep the description proportional to the change;
omit session history, full logs, and private report links other than a
maintainer's `Evidence:` line. Follow the
[public-content and media rules](AGENTS.md#pull-requests). Screenshots and recordings
are not routine PR requirements; attach them only when explicitly requested.
[public-content and media rules](AGENTS.md#pull-requests), and include evidence
for every change users can see, as [Show visible changes](#show-visible-changes)
describes.

### Write the description

Expand All @@ -261,6 +262,39 @@ change does; the rest should help them decide how closely to review.
or trim to a target. Long supporting evidence, such as tables or
measurements, can go in a `<details>` block after the summary.

### Show visible changes

A pull request that changes what a user sees must show the change in its
Evidence section, so reviewers can see it without building the branch. In this
repository that means the web app and web admin, and every client that renders
server data. A change is visible when it alters any of these:

- layout, styling, copy, navigation, focus, empty and error states;
- which items a screen shows, or in what order: search results, home sections,
recommendations, library browsing, collections, sorting, or filtering;
- what an item shows: titles, artwork, descriptions, ratings, badges, episode
grouping, or availability;
- playback behavior a user notices, such as default audio or subtitle tracks,
markers, controls, or resume position;
- a native API or jellycompat response field that clients render.

Provide evidence that fits the change:

- **Changes to a screen:** before-and-after screenshots of the same screen with
the same data, one pair per affected surface. Add a short recording when
motion, timing, focus movement, or a multi-step flow matters.
- **Server changes no client shows yet:** before-and-after excerpts of the API
response for the same request, trimmed to the fields that changed, such as the
ordered list of result titles.
- Name the surface and the build or commit each capture came from.

Capture against a test library or public-domain media where you can. Crop or
blur hostnames, URLs, account names, and personal library contents. When the
evidence cannot be made public, a maintainer may link an
`evidence.siloserver.org` page instead. If you could not capture evidence,
say why; the reviewer decides whether the pull request can merge without it.
Changes users cannot see write `Evidence: none, no user-visible change`.

## Review expectations

Maintainers may ask for a smaller change, a different implementation, decline
Expand Down
4 changes: 3 additions & 1 deletion docs/ai-contributions.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ resolve its findings. For non-trivial changes, describe its scope and method;

Report real observations and check results, including required checks that failed
or were not run. Keep validation summaries concise; include short output excerpts
only when they explain a failure.
only when they explain a failure. Changes that alter what users see need
before-and-after evidence, as
[Show visible changes](../CONTRIBUTING.md#show-visible-changes) describes.

Reproduce bugs on a real deployment before filing. Separate observations from
suspected causes, include relevant raw logs, and put AI-generated analysis under
Expand Down
Loading