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
15 changes: 15 additions & 0 deletions .github/instructions/verify-gemstash.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
applyTo: "lib/**,bin/**,exe/**,gemstash.gemspec,Gemfile,.agents/skills/verify-gemstash/**"
excludeAgent: "cloud-agent"
---

# Prove server and CLI changes with verify-gemstash

- Read `.agents/skills/verify-gemstash/SKILL.md`, then `.agents/skills/verify-gemstash/features/INDEX.md`, and drive every recipe that INDEX.md routes the changed files to with the skill's helper.
- The review environment already has Ruby, the bundle, and `lsof` for the helper, installed by `.github/workflows/copilot-code-review.yml`.
- For each `fail` that does not match a `Known failure` entry in Gotchas, comment on the changed lines most likely responsible, with the sub-feature ID and the expected result.
- When a bullet with a `Known failure` entry meets its `Expected:` result and the pull request keeps the entry, comment on the changed lines most likely responsible and name the Gotchas entry to delete.
- Quote the observed output lines wherever you report a `fail`, because readers of the review cannot open the evidence files.
- If the helper cannot run, review the diff against those recipes' stated results and Gotchas instead, and 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 feature file states, or adds user-facing behavior that no recipe covers, and leaves the feature files unchanged, comment on the change and name the feature file to update.
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