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
18 changes: 11 additions & 7 deletions .agents/skills/feature/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,21 @@ Fixes #<number>
in the session scratchpad's `evidence/`); do not re-record. Capture only
the steps that are missing. Then publish and comment:

```bash
scripts/publish-evidence.sh <number> <scratchpad>/evidence > <scratchpad>/evidence.md
```
Resize each PNG with `sips -Z 1000`, write a Markdown table in
`<scratchpad>/evidence/comment.md` that references the files as
`![alt](./ios-NN-<step>.png)` / `![alt](./android-NN-<step>.png)`, then
attach with a recent gh (2.102+, e.g. `$(brew --prefix)/bin/gh`; the
`gh` first on PATH may be older):

```bash
gh pr comment <pr> --body-file <scratchpad>/evidence.md
gh pr comment <pr> --body-file <scratchpad>/evidence/comment.md
```

Start the comment with one line naming the platforms, protocol, and data
source (harness or mocks) above the table. Keep captions short; an empty
platform cell is a gap to name under Risks / Follow-ups. With nothing
gh uploads the referenced images and rewrites the paths. Never push an
`evidence/` branch. Start the comment with one line naming the platforms,
protocol, and data source (harness or mocks) above the table. Keep captions
short; an empty platform cell is a gap to name under Risks / Follow-ups.
With nothing
visible, skip this step and keep "No UI change" under Checks.

Name the issue as `#<number>`. Write `Fixes #<number>` whenever the pull
Expand Down
15 changes: 9 additions & 6 deletions .agents/skills/publish-ui-snapshots/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ Defaults: subject = assistant message; platforms = iOS and Android; frames =
"$REPO/.snapshot-evidence/out" "UI snapshots"
```

5. **Publish** the PNGs on GitHub, never the artifact server. Copy them to a
scratch directory as `ios-NN-<frame>-<appearance>.png` /
5. **Publish** the PNGs on GitHub, never the artifact server and never a
branch. Copy them to a scratch directory as `ios-NN-<frame>-<appearance>.png` /
`android-NN-<frame>-<appearance>.png` (same `NN` for the same frame on
both platforms), then run
`scripts/publish-evidence.sh <issue> <dir> > <dir>.md` and post the table
with `gh pr comment <pr> --body-file <dir>.md` (or `gh issue comment` when
there is no pull request yet). Paste the comment URL.
both platforms), resize to at most 1000 px with `sips -Z 1000`, and write
a Markdown table in `<dir>/comment.md` that references them as
`![alt](./ios-NN-...png)`. Post it with a recent gh (2.102+, e.g.
`$(brew --prefix)/bin/gh`):
`gh pr comment <pr> --body-file <dir>/comment.md` (or `gh issue comment`
when there is no pull request yet). gh uploads the images and rewrites
the paths. Paste the comment URL.

Throwaway tests, PNGs, HTML, and Paparazzi goldens stay out of commits; commit
durable mock or host changes only when asked. Remove the generated iOS test
Expand Down
23 changes: 14 additions & 9 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,10 @@ areas, status column, fold, system bars, simulator pose control) lives in
while work on the issue stays open, and switch to `Fixes` before marking the
pull request ready once it finishes the issue.
- A pull request that changes what users see carries screenshot evidence for
each affected platform, posted on GitHub: an `evidence/<issue>` branch
referenced from a pull request or issue comment, never a link to the
artifact server or another private host. Capture it while verifying, not
afterwards. A pull request with nothing visible says "No UI change" under
Checks.
each affected platform, attached on GitHub with `gh` (see Pull Request
Evidence), never a link to the artifact server or another private host, and
never a branch. Capture it while verifying, not afterwards. A pull request
with nothing visible says "No UI change" under Checks.

## Pull Request Evidence

Expand All @@ -188,10 +187,16 @@ areas, status column, fold, system bars, simulator pose control) lives in
screenshots, a short GIF, or a request/event trace.
- Cover both platforms. Name what was not checked under Risks / Follow-ups.
- Save each verification screenshot as `ios-NN-<step>.png` /
`android-NN-<step>.png` as you go, publish the set with
`scripts/publish-evidence.sh <issue> <dir>`, and post the table it prints as
a pull request comment. Never commit evidence to a feature branch. If the
push fails, say so in the pull request instead.
`android-NN-<step>.png` as you go. Resize them to at most 1000 px with
`sips -Z 1000` first. Then attach them with a recent `gh` (2.102 or newer,
e.g. `$(brew --prefix)/bin/gh`; check `gh pr comment --help` lists
`--attach`): write a Markdown table in a scratch `--body-file` that
references the files as `![alt](./ios-NN-<step>.png)`, and run
`gh pr comment <pr> --body-file <file>`. `gh` uploads each referenced file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium: Documented gh command never passes --attach, so the screenshots are not uploaded

The new guidance tells the agent to verify gh pr comment --help lists --attach, but the invocation it gives is only gh pr comment <pr> --body-file <file>; no attachment flag and no file paths are ever passed. The body keeps literal relative links such as ![alt](./ios-NN-<step>.png), so the comment is posted without uploading anything and GitHub resolves those paths against the PR page. The same omission appears in .agents/skills/feature/SKILL.md and .agents/skills/publish-ui-snapshots/SKILL.md, and it contradicts the PR's stated gh pr comment --attach usage.

Failure scenario: An agent records ios-01-home.png through android-03-answer.png, writes the table into /evidence/comment.md, and runs exactly gh pr comment 42 --body-file <scratchpad>/evidence/comment.md -> the flag that enables uploading is never used, the comment contains broken image links (e.g. github.com/opencode-mobile/opencode-mobile/pull/ios-01-home.png) and the PR has no visible evidence.

Found by 2 of 3 passes.

and rewrites the path to a GitHub `user-attachments` URL. Use
`gh issue comment` when there is no pull request yet. Never push an
`evidence/` branch or commit evidence to a feature branch. If the upload
fails, say so in the pull request instead.
- Capture only harness or mock data: no real passwords or personal
transcripts.

Expand Down
149 changes: 0 additions & 149 deletions scripts/publish-evidence.sh

This file was deleted.

Loading