diff --git a/.github/instructions/verify-gemstash.instructions.md b/.github/instructions/verify-gemstash.instructions.md new file mode 100644 index 00000000..9290f5bf --- /dev/null +++ b/.github/instructions/verify-gemstash.instructions.md @@ -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. diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index e40417a0..cb85affd 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -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' diff --git a/.github/workflows/copilot-code-review.yml b/.github/workflows/copilot-code-review.yml new file mode 100644 index 00000000..6a019daf --- /dev/null +++ b/.github/workflows/copilot-code-review.yml @@ -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