Skip to content

実装: controlled direct fallback executors #1775

Closed as not planned
Closed as not planned

Description

@squne121

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

#1736

Parent Goal Ref

  • Goal: wrapper eligibility decisionを受けた controlled direct fallback の唯一経路と read-only 境界を実装する
  • Desired Destination: repo/github/web の固定 operation が permission とコードの双方で制限され、監査可能な runtime smoke がある

Current Validated Scope

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.py

Allowed Paths

  • scripts/agent-guards/
  • scripts/agent-ops/fresh_session_fallback_smoke.py
  • scripts/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

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 とする。

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Jul 26, 2026
  2. squne121 commented on Jul 31, 2026

    @squne121
    OwnerAuthor

    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)も同じ理由で不要と判断されました。

    AGY が失敗した場合、Claude Code や Codex CLI 自身が既に repo 調査、GitHub 調査、Web 調査を実行できます。専用の repo_read_v1、github_get_v1、web_research_v1 executor をもう一層追加するのは、同じ機能の重複です。#1775 は、完全無人運転で外部出力から権限付き処理を自動起動したい場合にだけ必要です。現状の趣味開発要件には該当しません。

    #1774 も同一の理由で not planned としてクローズ済みです(https://github.com/squne121/loop-protocol/issues/1774#issuecomment-5144753875)。

    Superseded by: #1885(実装: Antigravity CLI one-shot delegation の出力取得を安定化する)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions