Repository navigation
docs: Claude-GPT / Native Claude parity 検証結果を記録する (#2436) - #2446
Merged
Merged
Conversation
agent-retrospective bash guard の deterministic canary (72/72)・ Claude-GPT live deny/allow・nested proxy transport identity を origin/main HEAD (aade978) 上で fresh に検証し、result_status: verified として docs/dev/agent-capability-gaps.md に記録する。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
独立レビューで、production run_retrospective.py の nested claude invocation adapter (sanitize_subprocess_env) の allowlist に ANTHROPIC_BASE_URL 等 Claude-GPT routing 用 env が含まれておらず、 先の live deny/allow/transport 検証が実際には Claude-GPT lane を 経由していなかった疑いが強いことが判明した。result_status を parity_failed に訂正し、follow-up implementation Issue #2445 を 作成・リンクする。guard 自体 (AC1, 72/72 PASS) にリグレッションはない。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
Preview URLPreview removed (PR #2446 closed). |
CI の PR Body Japanese Check(changed markdown per-block検査)が、 英語のみの見出し・箇条書きブロックを検出した。各ブロックへ日本語の 説明を織り込み、内容は変更せず日本語比率のみ是正する。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
This was referenced Aug 30, 2026
Closed
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.
Summary(概要)
Issue #2436(Claude-GPT / Native Claude parity 検証、research-only / docs-only
contract)の成果物として、
docs/dev/agent-capability-gaps.mdを新規作成する。origin/mainHEAD (aade97858e348985081156afab134c317faac67f) 上でagent-retrospective bash guard の deterministic canary・Claude-GPT
availability probe・live deny/allow・nested proxy transport identity を
fresh に検証した結果を記録する。
途中経過として、当初は
result_status: verifiedと判定したが、独立レビュー(SubAgent C 相当の敵対的検証)により、production
run_retrospective.pyのnested claude invocation adapter(
DelegatedAgentPermissionPolicy .sanitize_subprocess_env())の env allowlist に Claude-GPT proxy routing 用env(
ANTHROPIC_BASE_URL等)が含まれておらず、先の live deny/allow検証が実際には Claude-GPT lane を経由していなかった疑いが強いことが判明した。
そのため
result_statusをparity_failedに訂正し、follow-up implementationIssue #2445 を作成・リンクした。
Result Status(結果ステータス)
最終判定は下記の通り
parity_failedである(詳細な理由は本文で説明する)。受け入れ基準の判定状況(Acceptance Criteria)
test_bash_mutation_denial_canary.py+test_bash_readonly_pipeline_allowed_canary.pyで 72 passed, 0 failed(process substitution / find -exec / python-uv 間接実行 /
newline separator / git alias-config bypass / git 未列挙 mutation /
gh action-position spoof / canonical AGY / read-only git・gh / gh api GET /
hook fail-closed の全類型をカバー)。
available(launch.sh --check-onlyexit 0,
chatgpt_auth.available: true)。false— 実行はしたが、根本原因調査の結果、実際には Claude-GPT lane ではなく Native lane を経由
していた疑いが強いため証拠として不採用とした。
false—同上の理由で、観測した proxy log トラフィックを本検証の nested invocation
に帰属させる証拠がない(無関係な並行 claude-gpt セッション由来である
可能性が高い)。
docs/dev/agent-capability-gaps.mdに記録済み。Verification Results(検証コマンド実行結果)
Issue #2436 本文の Verification Commands をすべて実行し、いずれも PASS した:
git diff --name-only origin/main...はdocs/dev/agent-capability-gaps.mdのみであり、Allowed Paths を遵守している。
Runtime Verification Evidence(実行時証跡)
uv run --locked pytest .../test_bash_mutation_denial_canary.py .../test_bash_readonly_pipeline_allowed_canary.py -vを実行し 72 passed。scripts/claude-gpt/launch.sh --check-onlyを実行し exit 0。test_run_retrospective_live_cli.pyの live deny/allow test を、scripts/claude-gpt/lib.shの env allowlist で起動した実 proxy 環境下で実行した。実行自体は成功したが、nested claude subprocess が実際に proxy
を経由した証拠がないため不採用とした(詳細は
docs/dev/agent-capability-gaps.mdの AC3/AC4/AC5 節を参照。根本原因は
run_retrospective.py:2951-2954,3354-3368の
_ENV_PASSTHROUGH_ALLOWLISTにANTHROPIC_BASE_URL等が含まれないことである)。
各結果ステータスの用語説明(verified / blocked_env / parity_failed)
verified(検証済み): deterministic + live deny/allow + transport identityの4条件すべてが真であることを証跡付きで証明できた場合を指す。
blocked_env(環境要因でブロック): Claude-GPT availability probe がoperational でない場合を指す(今回は該当しない。availability は
availableだった)。parity_failed(parity 不成立): guard/security regression の再現、またはnested transport identity を証明できない場合を指す。今回はこれに該当
する — guard 自体には regression がない(AC1 は完全 PASS)が、production
の nested-invocation adapter に Claude-GPT routing 手段が構造的に存在しない
ため、AC3/AC4/AC5 を Claude-GPT lane の証拠として確定できなかった。
Safety / Redaction Statement(安全性・秘匿情報の取り扱い)
secret・token・OAuth credential・raw prompt・raw model response は本 PR の
差分に一切含まれていない。proxy 構造化ログの
reqId/path/status/transportフィールドのみを参照した。credential の値自体は取得も閲覧もしていない。
follow-up 実装 Issue の一覧
run_retrospective.pyの nested claude invocation に Claude-GPTproxy env passthrough が存在しない、という capability gap を修正する
follow-up implementation Issue。再現手順・失敗クラス
(
transport_routing_gap)・関連 Issue を本文に記載済み。Tested head(検証対象コミット)
検証対象のコミットは
aade97858e348985081156afab134c317faac67f(origin/main)である。本 PR のマージにより Issue #2436 は自動的にクローズされる。Closes #2436