Repository navigation
実装: AGY isolated workspaceが既存認証済みセッションへ値露出なしで到達できるようにする - #1729
Merged
Merged
Conversation
…_BUS_ADDRESS/XDG_RUNTIME_DIRを追加する (#1726) 既存の認証済みセッション(OS keyring / dbus secret service)へ isolated AGY workspace の子プロセスが値露出なしで到達できるよう、 materialize_isolated_agy_workspace() の環境変数allowlistへ DBUS_SESSION_BUS_ADDRESS(Unixソケットパス)とXDG_RUNTIME_DIR (ソケットディレクトリパス)を追加する。いずれもcredential値では なく接続先エンドポイントの性質を持つことをコード内コメントで明記。 HOME/XDG_CONFIG_HOME/XDG_CACHE_HOME/XDG_STATE_HOMEのisolated tmp workspaceへの差し替え自体は変更せず、redaction・tool-deny・ credential-like file scanの既存回帰を維持することをhermetic テストで確認し、モック化したdbus secret serviceソケットへの 到達性統合テストを追加した。references/runtime-portability.md のmaterialize_isolated_agy_workspace()関連記述も更新する。 Closes #1726 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
Preview URLPreview removed (PR #1729 closed). |
squne121
commented
Jul 25, 2026
squne121
left a comment
Owner
Author
There was a problem hiding this comment.
Review Summary(レビュー要約)
Issue #1726 の contract(Allowed Paths 4件・AC1-AC8・VC)と PR #1729 の diff / CI 結果を独立照合した。
- CI:
ci_verdict_summary.pyでstatus: all_pass(exit 0)、13 required check すべてSUCCESS(typecheck/lint/test/build/e2e/python-test/node-backed-hook-tests/actionlint/check-hook-integrity/validate-generated-artifact/deploy-pr/PR Body Japanese Check/ci-verdict-summary)。 - 変更ファイル:
git diff origin/main...HEAD --name-statusで3件(agy_permission_policy.pyM /runtime-portability.mdM /test_agy_permission_policy_env_allowlist.pyA)。いずれも Issue #1726 の Allowed Paths(4件)の subset。既存test_agy_permission_policy.pyは無変更を確認した(4件目の Allowed Paths エントリと整合)。 - AC 独立検証(clean worktree、PR head で再実行):
- AC1/AC2/AC4/AC5/AC6/AC7:
test_agy_permission_policy_env_allowlist.py8件 pass(test_isolated_workspace_env_includes_dbus_session_bus_address/test_isolated_workspace_home_and_xdg_still_redirected/test_env_allowlist_extension_never_leaks_credential_like_value/test_tool_deny_matrix_unaffected_by_env_allowlist_extension/test_credential_like_file_scan_unaffected_by_env_allowlist_extension/test_isolated_workspace_reaches_mocked_dbus_secret_service含む) - AC3:
rg -n "DBUS_SESSION_BUS_ADDRESS" .claude/skills/gemini-cli-headless-delegation/scripts/agy_permission_policy.py→ L323, L341 に安全性説明コメント存在を確認 - AC8:
rg -n "DBUS_SESSION_BUS_ADDRESS" .claude/skills/gemini-cli-headless-delegation/references/runtime-portability.md→ L403, L405 に記述存在を確認 - 既存回帰:
test_agy_permission_policy.py16件 pass(無変更のまま回帰確認のみ)
- AC1/AC2/AC4/AC5/AC6/AC7:
- Schema Change Applicability:
not_schema_change。IsolatedAgyWorkspace.envはdict[str,str]のまま、既存キー削除・型変更なし、追加のみ。妥当と判断した。 - Safety Claim Matrix:
.claude/skills/配下の safety-sensitive 変更に対し記載あり。各 claim に証跡(テスト名/コメント位置)が対応し、bounded な "Not controlled" 項目(live AGY 実行は #1494 に委譲)も明記されている。 - Scope Collision(#55, #14): Issue #1726 本文で non-conflict 判断済み、PR 側の diff にもそれらとの衝突なし。
- Closing keyword:
Closes #1726を確認。 - Mergeability:
MERGEABLE/CLEAN。
Blocker なし。
LOOP_VERDICT_V2
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: "7f9dc327fb090f5b9246dd033786d4f71e6693c9"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
note: "manual independent verification: git diff origin/main...HEAD --name-status subset of Issue #1726 Allowed Paths (4 entries); unchanged test_agy_permission_policy.py confirmed unmodified"
squne121
marked this pull request as ready for review
July 25, 2026 03:44
This was referenced Jul 25, 2026
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
materialize_isolated_agy_workspace()(.claude/skills/gemini-cli-headless-delegation/scripts/agy_permission_policy.py)の環境変数 allowlist にDBUS_SESSION_BUS_ADDRESSとXDG_RUNTIME_DIRを追加し、isolated AGY workspace の子プロセスが既存の認証済みセッション(OS keyring / dbus secret service)へ値露出なしで到達できるようにする。HOME/XDG_CONFIG_HOME/XDG_CACHE_HOME/XDG_STATE_HOMEの isolated tmp workspace への差し替え自体(#1705 の secret-hygiene 設計)は変更しない。Closes #1726(本 PR のマージで本 Issue をクローズする)
Issue contract(Issue 契約情報)
materialize_isolated_agy_workspace()の骨格・secret-hygiene 設計).claude/skills/gemini-cli-headless-delegation/scripts/agy_permission_policy.py.claude/skills/gemini-cli-headless-delegation/tests/test_agy_permission_policy.py(変更なし、既存回帰を確認のみ).claude/skills/gemini-cli-headless-delegation/tests/test_agy_permission_policy_env_allowlist.py(新規追加).claude/skills/gemini-cli-headless-delegation/references/runtime-portability.mdAC mapping(受け入れ条件対応表)
DBUS_SESSION_BUS_ADDRESSの env 伝播test_isolated_workspace_env_includes_dbus_session_bus_addressHOME/XDG_*の isolated tmp workspace への差し替え維持test_isolated_workspace_home_and_xdg_still_redirectedagy_permission_policy.pyL318-337 のコメント(rg -n "DBUS_SESSION_BUS_ADDRESS")test_env_allowlist_extension_never_leaks_credential_like_valuetest_tool_deny_matrix_unaffected_by_env_allowlist_extensionfind_credential_like_files()回帰test_credential_like_file_scan_unaffected_by_env_allowlist_extensiontest_isolated_workspace_reaches_mocked_dbus_secret_service(モック Unix domain socket)references/runtime-portability.mdの記述更新materialize_isolated_agy_workspace()の環境変数 allowlist 拡張(Issue #1726)」セクション追加(rg -n "DBUS_SESSION_BUS_ADDRESS")Checks
test_agy_permission_policy_env_allowlist.py)— 8件 全て合格したtest_agy_permission_policy.py)— 16件 全て合格し、無変更であることを確認したtest_model_routing.py、21件)pnpm typecheck)合格pnpm lint)合格(エラー0件)pnpm test)合格(99ファイル・1672件)pnpm build、CI=true)合格Verification results(検証結果)
Schema Change Applicability
(本 PR はスキーマ変更を伴わないと判断した)
IsolatedAgyWorkspace.envは既存のdict[str, str]のまま。既存キー(HOME/XDG_CONFIG_HOME/XDG_CACHE_HOME/XDG_STATE_HOME/AGY_WORKSPACE_SETTINGS/PATH/LANG/LC_ALL/TERM)は不変。存在すればDBUS_SESSION_BUS_ADDRESS/XDG_RUNTIME_DIRが追加的に含まれるのみで、キー集合の削除・型変更・スキーマの破壊的変更はない。Schema Consumer Inventory
N/A(
not_schema_changeのため対象外)Safety Claim Matrix
safety-sensitive パス(
.claude/skills/配下)を変更するため、以下に具体的な安全性主張と証跡を記載する。DBUS_SESSION_BUS_ADDRESS/XDG_RUNTIME_DIR)はいずれも credential 値ではなくソケットパス/ディレクトリパスというエンドポイント値であるagy_permission_policy.pyL318-337 のコメント(値の性質の説明)、rg -n "DBUS_SESSION_BUS_ADDRESS"HOME/XDG_CONFIG_HOME/XDG_CACHE_HOME/XDG_STATE_HOMEの isolated tmp workspace への差し替えは変更後も維持されるtest_isolated_workspace_home_and_xdg_still_redirectedtest_env_allowlist_extension_never_leaks_credential_like_value(scan_credential_like/redact_secret_safe/record_denied_tool_attempt経由の redaction 確認)test_tool_deny_matrix_unaffected_by_env_allowlist_extensiontest_credential_like_file_scan_unaffected_by_env_allowlist_extensiontest_isolated_workspace_reaches_mocked_dbus_secret_service(モック化した Unix domain socket ハンドシェイク)Runtime Verification ApplicabilityセクションAllowed Paths compliance(許可パス遵守確認)
git diff --name-only origin/main...HEADの変更ファイルは Allowed Paths 4件のうち 3件(agy_permission_policy.py変更、test_agy_permission_policy_env_allowlist.py新規、runtime-portability.md変更)のみで、Allowed Paths 外の変更は無い。既存test_agy_permission_policy.pyは無変更(回帰確認のみ、pytest で16 pass)。Scope Collision evidence(スコープ衝突確認証跡)
check_implementation_overlap.py --issue-number 1726 --repo squne121/loop-protocol --limit 400の結果:route:proceed_with_collision_evidence(安全 route)source.complete:true/source.saturated:false(全件収集済み)dependency_resolution.blocked_by_refs:["1705"]、native_blocked_by:#1705 (CLOSED)、unresolved_refs:[]、blocking_predecessor:nullevidence_sha256:sha256:0580af61e1305af50aa73667719754acc640873cc0071a2cd99777a1e5982452decision_inputs_sha256:sha256:270865bfdb8efc79b1b92b9a1b77f864209ae4d42689b31599a6be3cbf25b8feSecrets・billing non-use(秘密情報・課金の不使用確認)
docs/dev/secret-policy.mdの no-secret 運用境界に抵触しないNotes
worktree-issue-1726-agy-isolated-workspace上で行った(issue-contract-review のstatus: gosnapshot: https://github.com/squne121/loop-protocol/issues/1726#issuecomment-5076677828)deferred(destination: 調査: fan-out orchestrator の実AGY/Serena MCP/WebSearch並列実行E2E検証を行う #1494)として明記済み。本 PR は hermetic tests までがスコープ