Repository navigation
fix(agents): allow gh api reads that pass --allow-escape-sequences - #265
Merged
Merged
Conversation
CI log reads use `gh api --allow-escape-sequences <endpoint>`, a flag the read-only gh api rule did not list, so every such call asked. Accept it before or after the endpoint. Quoted expansions in the endpoint and -q filters already passed; unquoted expansions, -X/--method, fields, --input, and graphql still ask, and regression tests pin both sides. Refs #263 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
5 tasks
3 tasks
furedea
added a commit
that referenced
this pull request
Nov 21, 2026
…487) agent-config を 0.4.0,agent-harness を 0.9.15 に上げる.T3 で lane を回す仕組みと,Antigravity の provider・hook adapter が入る.Antigravity の hook の配線と有効化は別の PR. | 入力 | 変更前 | 変更後 | | --- | --- | --- | | `agent-config` | `3dfa0ad8`(0.3.1 後) | `51f91f9a`(v0.4.0) | | `agent-harness` | `83caaa98`(0.9.14) | `c5b13036`(0.9.15) | - [ ] CI - [ ] 反映後,`~/.claude/settings.json` の `sandbox.excludedCommands` に `t3 thread *` がある - [ ] 反映後,`delegation` skill が Claude と Codex に入っている <details> <summary>内容と出典</summary> - agent-config 0.4.0:`t3 thread` の guard(#265),T3 の lane worktree の片付け(#266),`delegation` skill(#268),ADR-0028(#267),Antigravity の hook adapter(#263).furedea/agent-config#264 - agent-harness 0.9.15:Antigravity provider(furedea/agent-harness#257).`programs.agent-harness.antigravity` は未設定なので,この PR では Antigravity の設定は作られない想定 - 変更は `flake.lock` のみ </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
概要
CI ログを読む
gh api --allow-escape-sequences <endpoint>が,読み取り専用のgh apiルールに載っておらず,毎回確認を求められていました.このフラグをエンドポイントの前後どちらでも許可します.変更内容
agents/hooks/rules/allowed_commands.jsonの汎用gh apiパターンに--allow-escape-sequencesを追加(エンドポイントの前に任意で 1 つ,後ろのオプション列にも可).tests/agents/hooks/test_allowed_gh_api.pyを新設し,許可・ask 双方の回帰テストを追加(既存テストファイルが 500 行上限に近いため分離).調査結果
"repos/o/r/contents/$f")や-q '.jobs[0].id'は,すでに許可されていました.repos/o/r/actions/jobs/${J%% *}/logs,contents/$f)は単語分割で引数を注入できるため,従来どおり確認を求めます.レーンは二重引用符で囲めば通ります.検証
--allow-escape-sequencesの前置・後置,引用付き変数の raw ファイル取得(ファイルへのリダイレクト付き),-q付きジョブ ID 取得.-X DELETEを含む値を含む),-X/--method(エンドポイントの前後),-f/-F/--raw-field,--input(前後),graphql,"$@"や$(...)の追加引数,eval経由.uv run --frozen pytest tests/agents: 1801 passed.pre-commit(ruff,file-length ほか): 全件通過.Closes #263
🤖 Generated with Claude Code