Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 12 additions & 0 deletions .github/instructions/verify-gemstash.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
applyTo: "lib/**,bin/**,exe/**,gemstash.gemspec,Gemfile,.agents/skills/verify-gemstash/**"
excludeAgent: "cloud-agent"
---

# Prove server and CLI changes with verify-gemstash

This pull request changes code that the `gemstash` CLI or its gem server runs, or the verify-gemstash skill itself. Review its user-facing behavior with that skill: read `.agents/skills/verify-gemstash/SKILL.md`, then `.agents/skills/verify-gemstash/features/INDEX.md`, which routes each changed file to the feature recipes it reaches. The skill owns how to launch, drive, judge, report, and clean up; where these notes and the skill differ, follow the skill.

- Drive every routed recipe with the skill's helper from the repository root. The review environment installs Ruby, the bundle, and `lsof` for it through `.github/workflows/copilot-code-review.yml`. A bullet whose observed result differs from the result its recipe states is a finding: comment on the changed lines most likely responsible, with the sub-feature ID, the expected result, and the output lines you observed, because people reading the review cannot open your evidence files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Agreed. In 63ead5a, a bullet that Gotchas records as a Known failure now goes in the review summary as a known failure. Inline comments on changed lines are reserved for mismatches that Gotchas doesn't record, or that differ from what it records.

- When the helper cannot run, such as no shell, `no Ruby found`, `bundle is incomplete`, a launch that never reports healthy, or a mirror step blocked by the network, review the diff against each routed recipe's stated results and Gotchas instead. Say in the review which sub-feature IDs you did not drive and the error that stopped them. Call a sub-feature verified only when you drove it and its evidence matches the recipe.
- When the diff changes a result that a recipe states, or adds user-facing behavior that no recipe covers, and the pull request leaves the feature files unchanged, comment on the change and name the feature file that needs updating.
3 changes: 3 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/copilot-code-review.yml':
- 'actions/checkout@v7.0.1'
- 'ruby/setup-ruby@v1.338.0'
'.github/workflows/gemstash-ci.yml':
- 'actions/checkout@v7.0.1'
- 're-actors/alls-green@v1.3.0'
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/copilot-code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Copilot code review setup

# Copilot code review runs this job before it reviews a pull request, so the
# verify-gemstash helper (.agents/skills/verify-gemstash) can run during review.
# Copilot uses the copy on the default branch. These triggers only validate edits.
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/copilot-code-review.yml

jobs:
# Copilot only picks up a job with this name.
copilot-setup-steps:
runs-on: ubuntu-26.04
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1.338.0
with:
ruby-version: "4.0"
bundler-cache: true # 'bundle install' and cache
# verify-gemstash's doctor and cleanup need lsof; the runner image lacks it.
- run: sudo apt-get update && sudo apt-get install -y lsof
Loading