Repository navigation
Closed as not planned
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1736"
goal_ref: "controlled direct fallback executors with read-only enforcement"
change_kind: mixed
blocked_by: ["#1736", "#1745"]Parent Issue
Parent Goal Ref
- Goal: wrapper eligibility decisionを受けた controlled direct fallback の唯一経路と read-only 境界を実装する
- Desired Destination: repo/github/web の固定 operation が permission とコードの双方で制限され、監査可能な runtime smoke がある
Current Validated Scope
- controlled launcher、repo/github/web の operation別 executor、settings/PreToolUse hook、audit/runtime smoke
- B の wrapper-owned eligibility と 実装: Skill references/ の read permission と Agent/Skill 契約 strict validator を追加する #1745 の permission contract に依存する
Remaining Parent Gaps
- wrapper producer/taxonomy/schema catalog は B Issue の責務
Outcome
caller-provided result を認可入力にせず、wrapper decision を内部評価した controlled launcherだけが repo_read_v1、github_get_v1、web_research_v1 を実行でき、direct起動・書込・越境・上限超過を拒否するコード/permission/hookとfresh runtime smoke証跡が完成する。
In Scope
- controlled launcher と固定 operation registry
- repo/github/web の read-only executor
- settings と PreToolUse hook の exact allow/deny
- path/repository、symlink、mutation、attempt/wall-clock/byte budget の negative tests
- audit schema と fresh-session runtime smoke
Out of Scope
run_gemini_headless.py、failure taxonomy、provider policy、delegation_result producer/schema catalog(B)- caller の
--delegation-result、任意 argv、mutation/post-processing
Acceptance Criteria
- AC1: launcher が wrapper を内部起動し、caller-provided result、任意 argv、direct単独起動を拒否する
- AC2: repo_read_v1、github_get_v1、web_research_v1 が固定 allowlist と read-only code/permission/hook で実行される
- AC3: path traversal、symlink、device/proc/sys、mutation、件数/byte/wall-clock/attempt 上限超過を fail-close する
- AC4: audit evidence と fresh-session runtime smoke が run ID、policy/version、hash、decision を記録し、credential/絶対HOMEを保存しない
Verification Commands
# AC1
# baseline-expect: fail
$ rg -n "caller.*result" scripts/agent-guards# AC2
# baseline-expect: fail
$ rg -n "repo_read_v1" scripts/agent-guards# AC3
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-guards/tests -q# AC4
# baseline-expect: fail
$ test -f scripts/agent-ops/fresh_session_fallback_smoke.pyAllowed Paths
scripts/agent-guards/scripts/agent-ops/fresh_session_fallback_smoke.pyscripts/agent-ops/fallback_audit_schema.json.claude/settings.json.claude/hooks/docs/dev/agent-skill-boundaries.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- B または 実装: Skill references/ の read permission と Agent/Skill 契約 strict validator を追加する #1745 の契約が未提供で eligibility を検証できない場合
Required Skills
- Python
- pytest
- Claude Code permissions
Required Design References
docs/dev/agent-skill-boundaries.md- 実装: Skill references/ の read permission と Agent/Skill 契約 strict validator を追加する #1745 permission/strict-validator contract
Scope Delta(該当時のみ記載)
N/A
Delivery Rule
1 Issue = 1 PR。B と #1745 の merge 後に worktree 上で実装し、Draft PR を既定とする。
Notes for Reviewer
OWNER comment #5081111879 の推奨分割 C。runtime unavailable は PASS ではなく blocked とする。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Jul 31, 2026
Closing as
not planned/ superseded親 Issue #1774(実装: wrapper-owned fallback eligibility)へのレビューコメント(https://github.com/squne121/loop-protocol/issues/1774#issuecomment-5144342775)の最終結論により、本 Issue(controlled direct fallback executors)も同じ理由で不要と判断されました。
#1774 も同一の理由で
not plannedとしてクローズ済みです(https://github.com/squne121/loop-protocol/issues/1774#issuecomment-5144753875)。Superseded by: #1885(実装: Antigravity CLI one-shot delegation の出力取得を安定化する)