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
10 changes: 6 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ item details a screen shows, such as search results, home sections, recommendati
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". -->
blur private details in anything attached here. To keep captures private instead,
publish them to evidence.siloserver.org, where only you and Silo maintainers can open
them, and replace the table with
`Evidence: https://evidence.siloserver.org/r/silo-android/pr-<number>/`. When nothing
visible changes, replace this section's content with "Evidence: none, no user-visible
change". -->

## Risks

Expand Down
8 changes: 8 additions & 0 deletions .github/evidence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Pull requests that change the phone app, the TV app, or the Android code they share
# need evidence before the Evidence check passes. The check reads this file at a pull
# request's base commit. Maintainers override it with the evidence-required and
# evidence-not-needed labels. See "Show visible changes" in CONTRIBUTING.md.
require:
- androidApp/src/androidMain/**
- androidTvApp/src/androidMain/**
- android-shared/src/androidMain/**

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 Cover shared production sources in the evidence rule

When a pull request changes only shared/src/androidMain—for example, SubtitleTrackDisplayLabel.kt—or presentation/view-model code in shared/src/commonMain, none of these patterns matches, so the Evidence check will not request evidence unless a maintainer happens to add the label manually. These sources feed user-visible output in both apps, making this a silent bypass of the repository's evidence requirement; include the relevant shared/ production source sets and let maintainers use evidence-not-needed for non-visible changes.

AGENTS.md reference: AGENTS.md:L58-L64

Useful? React with 👍 / 👎.

11 changes: 9 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,15 @@ follow-up work.
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/`.
- Attach evidence on GitHub under the PR body's Evidence heading, or publish it
with `npx @silo-server/evidence publish <folder> --pr <number>` and put its
`Evidence:` link there. Only Silo maintainers and the pull request's author can
open a published page. GitHub has no API for attaching images to a pull
request, so an agent either publishes with the CLI or gives the developer the
captures to attach. Check media for private information before it goes on
GitHub. When publishing exits 4, ask the developer to run
`npx @silo-server/evidence login`; never approve that login or read the saved
key. Never commit PR-only assets such as `.github/pr-assets/`.
- When babysitting a pull request, poll checks and review comments created
after the last push. Verify bot findings against the source, fix real issues,
and dismiss false positives with a written reason. Remain quiet when nothing
Expand Down
34 changes: 28 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,34 @@ Provide evidence that fits the change:
motion, timing, focus movement, or a multi-step flow matters.
- 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`.
Capture against a test library or public-domain media where you can, and keep
passwords, tokens, and API keys out of every capture. Then put the evidence in
one of two places:

- **On GitHub:** attach the screenshots or recordings under the pull request's
Evidence heading. Everything on GitHub is public, so crop or blur hostnames,
URLs, account names, and personal library contents.
- **On [evidence.siloserver.org](https://evidence.siloserver.org/) (optional):**
only you and Silo maintainers can open what you publish there, after signing
in with GitHub, so captures need no cropping or blurring. Captions that start
with `Before:` and `After:` become a side-by-side comparison, and recordings
get a player. Upload from the Details link of the pull request's `Evidence`
check, or with the command line (Node.js 22 or later):
`npx @silo-server/evidence login` once on each computer, then
`npx @silo-server/evidence publish <folder> --pr <number>`. The
[package README](https://www.npmjs.com/package/@silo-server/evidence) describes
the folder. Then write
`Evidence: https://evidence.siloserver.org/r/silo-android/pr-<number>/` under
the Evidence heading. Until a pull request of yours has merged here, a
maintainer approves you once before your first upload.

The pull request's `Evidence` check passes once evidence is published or
attached. It asks for evidence when the change touches the phone app, the TV app, or the Android code they share,
or when a maintainer adds the `evidence-required` label; a maintainer adds
`evidence-not-needed` when nothing visible changed. Changes users cannot see
write `Evidence: none, no user-visible change`. If you could not capture
evidence, say why; the reviewer decides whether the pull request can merge
without it.

## Open the pull request

Expand Down
Loading