Repository navigation
Point Copilot code review at verify-gemstash - #460
Conversation
Copilot code review already discovers .agents/skills/verify-gemstash, but nothing tells it when to use the skill. A path-specific instruction, read only by code review, routes server and CLI changes through the skill's feature index and says how to report recipes it could not drive. copilot-code-review.yml prepares the review environment so the helper can run: Ruby 4.0 with the bundle, and lsof, which the runner image lacks and the helper's doctor and cleanup need.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟡 Changes recommended
The verification instructions require inline findings for recipe mismatches without evidence of a regression, risking attribution of known failures to unrelated changes.
1 open issue
What changed in this PR
Connects Copilot code review to the existing verify-gemstash skill and adds a setup environment for running its end-to-end recipes. Gemstash runtime code is unchanged.
Changes:
- Adds review-only instructions for recipe selection, evidence reporting, and fallback review when execution is blocked.
- Adds a Copilot setup job with Ruby 4.0, bundled dependencies, and
lsof. - Registers the new workflow’s action dependencies in the lockfile.
| File | Description |
|---|---|
.github/workflows/copilot-code-review.yml |
Prepares the environment for verification during Copilot reviews. |
.github/workflows/actions.lock |
Records the new workflow’s action dependencies. |
.github/instructions/verify-gemstash.instructions.md |
Directs matching reviews to the skill and defines reporting expectations. |
Review effort: Balanced
|
|
||
| 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. |
There was a problem hiding this comment.
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.
A recipe bullet that Gotchas records as a known failure already fails on main, so the reviewer lists it in the summary instead of attributing it to the changed lines.
Drop text the skill already says, use its own term `fail`, and keep one sentence per line. Known failures now get no comment, and blocked sub-features are no longer reported in the review summary, because Copilot code review instructions cannot change the overview comment.
A recipe bullet whose Known failure now meets its Expected result needs its Gotchas entry deleted in the same change, so the reviewer comments when the pull request keeps it.

Summary
Copilot code review already loads
.agents/skills/verify-gemstash(its review logs show[skills] catalogEntries=0on #457 andcatalogEntries=1on #458), but nothing tells it when to use the skill, and its runner can't run the helper. This PR adds a code-review-only instruction and a review environment.The skill stays the only source of verification steps; the instruction only points at it.
What reviews will and won't do:
main, run in an environment where the helper works.Evidence
ubuntu-26.04image has Ruby 3.3.8, no bundle, and nolsof. In a container set up the same way, the helper'sdoctorreportsNOT healthy(process cwd is this run's work dir: cwd ''), andcleanuprefuses withcleanup needs lsof.After: with Ruby 4.0, the bundle installed the way
setup-rubydoes it, andlsof,doctorendsdoctor: healthy, and the full private-gems recipe matches every bullet: push, state, gem install, bundle install, bad key, upstream-only 403, yank and after-yank. Duplicate push returns the knownHTTP 500that the Gotchas section documents.gh actions-lock --verify:All 4 workflows valid. actionlint is clean apart from its runner list not knowing theubuntu-26.04label.applyTochecked with minimatch against past PRs: it matches files in Harden credential handling (logs, at-rest files, plaintext bind) #455, Add verify-gemstash agent skill for end-to-end verification #458 and Update CI Rubies and services, lock GitHub Actions, require Ruby 3.3 #459, and nothing in Run CI and release workflows on ubuntu-26.04 #457 (workflow-only).copilot-code-review.ymlis only read frommain. After merge, the review run on the next PR touchinglib/should show the setup steps and the instruction in its Actions log, and the session log shows whether the helper ran.Merge Danger
Door: two-way
Reverting removes both files; no settings change.
Blast Radius: Copilot reviews
Every Copilot review runs the setup job first: an extra minute or two of Actions time, cached by
bundler-cache. If a setup step fails, Copilot reviews anyway with whatever environment it has. Other workflows and the gem are untouched.