Repository navigation
fix(hooks): allow a jq filter after read-only GraphQL queries - #180
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
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. |
|
Review summary: no findings. The new optional suffix I did not run the tests locally; this review is based on reading the diff and the guard code. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9863a79bb0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| pytest.param("gh api graphql -f query='{ viewer { login } }' -q '.data'", id="a shorthand query with -q"), | ||
| ], | ||
| ) | ||
| def test_read_only_queries_with_a_jq_filter_are_allowed(command: str) -> None: |
There was a problem hiding this comment.
関連テスト選択を確認すると,.agents/hooks/rules/related_test_extensions.json の allowed_commands.json 向け一覧にこの新規ファイルが含まれていないため,allowed_commands.json だけを変更した通常の後続作業では test_allowed_graphql.py が実行対象になりません.このコミットではテスト自身も変更されているので実行されますが,以後この正規表現が退行しても Stop 検証が見逃すため,新しいテストを同マッピングへ追加してください.
Useful? React with 👍 / 👎.
….json Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Review summaryNo findings (P0: 0, P1: 0, P2: 0, P3: 0).
I could not run the test suite in this review environment; this review is based on reading the code. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🤖 I have created a release *beep* *boop* --- ## [0.1.2](v0.1.1...v0.1.2) (2026-11-12) ### Features * **hooks:** add Go and Rust model rules with eval fixtures ([#158](#158)) ([9731488](9731488)) * **hooks:** show model-rule timing and skip rule fixtures ([#157](#157)) ([d0c32ae](d0c32ae)) * **hooks:** show the model rules as one result line with cost ([#170](#170)) ([41b9033](41b9033)) ### Bug Fixes * **hooks:** allow a jq filter after read-only GraphQL queries ([#180](#180)) ([cfb80d8](cfb80d8)) * **hooks:** keep model-rule eval fixtures out of Stop test verification ([#160](#160)) ([a4f1c6c](a4f1c6c)) * **hooks:** read paths literally in every jev-lint child process ([#173](#173)) ([0d2c683](0d2c683)) * **hooks:** remove model-rule false positives with principles and eval fixtures ([#163](#163)) ([b07fc4e](b07fc4e)) * **hooks:** report one count per runner in the Stop test lines ([#177](#177)) ([0f36b82](0f36b82)) * **hooks:** take the model-rule cached count from the dry-run plan ([#167](#167)) ([c87fdfd](c87fdfd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
Also picks up the jq filter after read-only GraphQL queries (furedea/agent-config#180). Co-Authored-By: Claude Opus 5.5 <[email protected]>
概要
gh api graphql -f query='query ...'の読み取り専用ルールに,末尾の--jq '<式>'または-q '<式>'を任意で許可しました.これまでは jq フィルタを付けると手動承認が必要でした.agents/hooks/rules/allowed_commands.jsonの GraphQL ルール末尾に( (--jq|-q) '[^']*')?を追加tests/hooks/test_allowed_graphql.pyを新設(test_allowed_command.pyは 500 行の file-length 上限のため分離)--jq,{始まりのクエリ+-qは許可mutation(--jqあり/なし),引用符の外への;・&&・|の追記,2つ目の-fは引き続き ask検証
uv run pytest: 全件成功uv run ruff check/ruff format --check/ty check: 成功計画からの逸脱: なし.
Closes #179
🤖 Generated with Claude Code