Skip to content

Attach PR evidence with gh instead of evidence branches - #896

Merged
ivanfenenko merged 1 commit into
mainfrom
chore/evidence-gh-attach
Oct 29, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
chore/evidence-gh-attach

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Agent guidance and skills now attach PR screenshots with gh pr comment --attach (gh 2.102+) instead of publishing evidence/<issue> branches.
  • Removes scripts/publish-evidence.sh, which was the only thing creating those branches.

Checks

  • No UI change. Docs and tooling only; no evidence needed.
  • gitleaks pre-commit scan: no leaks.

Risks / Follow-ups

  • gh --attach is not yet exercised end to end. The first real evidence post will confirm it.
  • origin/evidence/879 still exists; delete it separately if wanted.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Evidence was published to evidence/<issue> branches through
scripts/publish-evidence.sh, which agents kept following. gh 2.102+ attaches
images to PR and issue comments directly (--attach), so the branch and the
script are no longer needed.

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
@ivanfenenko
ivanfenenko merged commit ddf36da into main Oct 29, 2026
4 checks passed
@ivanfenenko
ivanfenenko deleted the chore/evidence-gh-attach branch October 29, 2026 22:35

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated review: 1 finding(s) that 2+ of 3 passes agreed on.

3 finding(s) from a single pass, not posted
  • AGENTS.md:191 low: Mandatory sips resize has no Linux fallback (muse-spark-1.3-contributor)
  • .agents/skills/feature/SKILL.md:95 low: Relative ./ image paths resolve from the caller's cwd, not from the scratch body file (deepseek-v4.1-flash)
  • .agents/skills/publish-ui-snapshots/SKILL.md:35 low: sips -Z 1000 is macOS-only and blocks Android snapshot publishing on Linux (deepseek-v4.1-flash)

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.028

Comment thread AGENTS.md
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant