Repository navigation
feat: secret-free Claude runtime diagnostic を追加 - #2474
Merged
Merged
Conversation
固定 probe ID だけで Claude-GPT runtime の状態を分類し、raw environment value や path を露出しない。 Co-Authored-By: Claude Code <[email protected]>
squne121
marked this pull request as ready for review
September 1, 2026 10:40
Contributor
Preview URLPreview removed (PR #2474 closed). |
Keep the fixed runtime diagnostic documentation Japanese-centred without changing commands or safety semantics. Co-Authored-By: Claude Code <[email protected]>
Use the repository's locked uv Python invocation for the fixed diagnostic probes so strict policy validation accepts the canonical documentation. Co-Authored-By: Claude Code <[email protected]>
8 tasks done
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
scripts/agent-ops/claude_runtime_diag.pyを追加し、固定 probe ID だけで Claude-GPT runtime root と isolated home の関係を固定 enum に分類できるようにしました。CLAUDE_GPT_HOMEとHOMEを内部分類にだけ使用し、raw value・raw path・secret を出力しません。任意の環境変数名、path、expression を受け取る interface は提供しません。Closes #2471(実装 Issue を完了します)
Related #2456(研究起点。#2456 は close しません)
Checks
uv run pytest scripts/agent-ops/tests/test_claude_runtime_diag.py(focused test、21 passed)pnpm typecheck(型検査)pnpm lint(静的解析)pnpm test(全体テスト、1874 passed)pnpm build(production build)uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py(routing regression、24 passed)上記の focused test、品質ゲート、runtime verification はすべて current head で成功しました。
検証コマンド結果
以下は current head
a3ae5d331524016f01420f43f0d5412284e0490aに対する PASS 結果です。pnpm typecheck: PASS(型検査)pnpm lint: PASS(静的解析)pnpm test: 1874 passed(全体テスト)pnpm build: PASS(production build)Allowed Paths 遵守
Issue #2471 の Allowed Paths と一致する変更ファイルは、次の正確に3ファイルです。
scripts/agent-ops/claude_runtime_diag.pyscripts/agent-ops/tests/test_claude_runtime_diag.pydocs/dev/agent-runtime-ops.mdsecret_boundary_guard.sh、.claude/settings.jsonを含む guard/settings は変更していません。Runtime Verification Evidence
動作検証の証跡は、sanitized な固定結果だけに限定しています。
a3ae5d331524016f01420f43f0d5412284e0490asha256:8ee3b8108fefd0a4af83c54f473dd608fec1e664488efcf8aa951d7bbc534657受け入れ条件の達成状況
以下の根拠は current head
a3ae5d331524016f01420f43f0d5412284e0490aに限定しています。sanitized な結果だけを確認しており、prompt、transcript、値、path、credential、raw contents は保存・投稿していません。Closes #2471とRelated #2456を記載しています。調査: worktree isolation / secret boundary guard が secret-free診断まで過剰拒否する #2456 は close しません。Schema Change Applicability
not_schema_changeSchema Consumer Inventory
N/A
既存 schema を変更しないため、consumer inventory と migration は不要です。
Compatibility Decision(互換性判定)
N/AN/AN/AN/ASafety Claim Matrix
secret_boundary_guard.shと.claude/settings.jsonの保護範囲を変更しないNotes