Repository navigation
Point Copilot code review at verify-gemstash #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+46
−0
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9d2162c
Point Copilot code review at verify-gemstash
colby-swandale 63ead5a
Keep known recipe failures out of inline review comments
colby-swandale 285e546
Trim the Copilot verify-gemstash instructions to their core
colby-swandale 2f04f7e
Flag known failures that a change fixes without deleting their entry
colby-swandale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
| - 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. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 failurenow 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.