Skip to content

実装: Codex standalone package の read-only 参照を許可する #1486

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "Codex の3つの repo-local 権限プロファイルが standalone package の release 実行ファイルを read-only で参照できるようにする"
change_kind: workflow

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: WSL2 の standalone Codex 実行時に、必要な package 実体への read-only アクセスを各 repo-local 権限プロファイルで明示する。
  • Desired Destination: .codex/config.toml の3プロファイルに ~/.codex/packages/standalone/releases への最小 read-only 許可を追加し、sandbox 内から既存の standalone バイナリを実行できる状態にする。

Current Validated Scope

  • .codex/config.toml の loop-protocol-rtk、loop-protocol-readonly、loop-protocol-bootstrap filesystem profile

Remaining Parent Gaps

Outcome

.codex/config.toml の3つの repo-local 権限プロファイルが ~/.codex/packages/standalone を read-only で参照でき、設定差分が main へマージ可能な PR として検証済みの状態。

In Scope

  • 各 filesystem profile の :minimal 許可と同じ階層に ~/.codex/packages/standalone/releases = read を追加する(~/.codex/packages/standalone 全体ではなく releases 配下に narrow化する)。
  • プロファイルごとの追加を、baseline(origin/main)との semantic diff(追加キー以外に差分がないことの検証)で確認する。
  • 正しい codex sandbox の構文(サブコマンド sandbox、-P でプロファイル指定、-C で作業ディレクトリ指定、-- の後に実行コマンド)を用いた実機検証で、read-only mount 上の既存 standalone バイナリが3プロファイル全てで実行できることを確認する。

Out of Scope

  • approval_policy、network domain、workspace write 権限、[agents] max_depth の変更。
  • standalone package 配下への write 権限、および read-only mount 外のファイルシステムへの新規 execute 権限の追加。
  • .codex/hooks.json、.codex/rules/、system-wide Codex インストールの変更。
  • ~/.local/bin/codex の symlink chain 経由(PATH 経由)起動の対応。:minimal プリセットに ~/.local/bin が含まれないため、この起動経路は本 Issue の修正では解決しない別問題として扱う。

Threat Model Correction(脅威モデルの訂正)

Codex の read 権限は、ホストファイルの作成・変更・削除を禁止するものであり、read-only mount 上に既に存在する実行ファイルの実行までは禁止しない。bwrap --ro-bind で直接バインドされた standalone バイナリは、read-only mount 上でも正常に実行できることを実機検証済み(codex 0.144.1 / WSL2 / bwrap 環境)。本変更は、Codex 本体および同一 readable root 内の helper binary をサンドボックス内から実行可能にする能力拡張であり、単なる read 参照の追加という説明は不正確である。

Not controlled(本変更が保証しない範囲)

  • standalone package 配下に配置された既存バイナリの実行そのもの
  • package のインストール時・更新時の完全性(署名検証・改ざん検知)
  • 過去バージョンの release directory に残存する実行ファイルの取り扱い
  • ~/.local/bin/codex 経由の symlink chain 実行(:minimal プリセットに ~/.local/bin が含まれず、本修正の対象外。別途未解決)
  • user-global config や CLI オプションによる profile override

Acceptance Criteria

  • AC1: loop-protocol-rtk profile は ~/.codex/packages/standalone/releases にのみ read を追加し、それ以外の filesystem 設定を変更しない(baseline との semantic diff で検証する)。
  • AC2: loop-protocol-readonly profile は ~/.codex/packages/standalone/releases にのみ read を追加し、それ以外の filesystem 設定を変更しない(baseline との semantic diff で検証する)。
  • AC3: loop-protocol-bootstrap profile は ~/.codex/packages/standalone/releases にのみ read を追加し、それ以外の filesystem 設定を変更しない(baseline との semantic diff で検証する)。
  • AC4: baseline(origin/main)と head の .codex/config.toml の差分は、3プロファイルへの同一キー(~/.codex/packages/standalone/releases = read)追加のみであり、approval_policy / network / [agents] 等の他設定は一切変更されない。
  • AC5: 正しい codex sandbox 構文を用いた実機検証で、3プロファイル全てにおいて read-only mount 上の standalone バイナリが実行できる。

Verification Commands

# AC1
# preflight-scope: pr_review_only
$ uv run python3 -c 'print("AC1 OK") if ((tomllib := __import__("tomllib")) and (subprocess := __import__("subprocess")) and (base := tomllib.loads(subprocess.run(["git", "show", "origin/main:.codex/config.toml"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(".codex/config.toml", "rb"))) and ({k: v for k, v in head["permissions"]["loop-protocol-rtk"]["filesystem"].items() if base["permissions"]["loop-protocol-rtk"]["filesystem"].get(k) != v} == {"~/.codex/packages/standalone/releases": "read"})) else exit(1)'

# AC2
# preflight-scope: pr_review_only
$ uv run python3 -c 'print("AC2 OK") if ((tomllib := __import__("tomllib")) and (subprocess := __import__("subprocess")) and (base := tomllib.loads(subprocess.run(["git", "show", "origin/main:.codex/config.toml"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(".codex/config.toml", "rb"))) and ({k: v for k, v in head["permissions"]["loop-protocol-readonly"]["filesystem"].items() if base["permissions"]["loop-protocol-readonly"]["filesystem"].get(k) != v} == {"~/.codex/packages/standalone/releases": "read"})) else exit(1)'

# AC3
# preflight-scope: pr_review_only
$ uv run python3 -c 'print("AC3 OK") if ((tomllib := __import__("tomllib")) and (subprocess := __import__("subprocess")) and (base := tomllib.loads(subprocess.run(["git", "show", "origin/main:.codex/config.toml"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(".codex/config.toml", "rb"))) and ({k: v for k, v in head["permissions"]["loop-protocol-bootstrap"]["filesystem"].items() if base["permissions"]["loop-protocol-bootstrap"]["filesystem"].get(k) != v} == {"~/.codex/packages/standalone/releases": "read"})) else exit(1)'

# AC4
# preflight-scope: pr_review_only
$ uv run python3 -c 'print("AC4 OK") if ((tomllib := __import__("tomllib")) and (subprocess := __import__("subprocess")) and (base := tomllib.loads(subprocess.run(["git", "show", "origin/main:.codex/config.toml"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(".codex/config.toml", "rb"))) and (profiles := ("loop-protocol-rtk", "loop-protocol-readonly", "loop-protocol-bootstrap")) and (head == {**base, "permissions": {**base["permissions"], **{p: {**base["permissions"][p], "filesystem": {**base["permissions"][p]["filesystem"], "~/.codex/packages/standalone/releases": "read"}} for p in profiles}}})) else exit(1)'

# AC5
# runtime-verification
# preflight-scope: pr_review_only
$ uv run python3 -c 'print("SKIP: codex CLI not installed in this environment", file=__import__("sys").stderr) if not (codex_path := __import__("shutil").which("codex")) else (print("SKIP: unexpected Codex installation path " + target, file=__import__("sys").stderr) if not (target := __import__("os").path.realpath(codex_path)).startswith(__import__("os").path.expanduser("~/.codex/packages/standalone/releases")) else [__import__("subprocess").run(["codex", "sandbox", "-P", p, "-C", ".", "--", target, "--version"], check=True) for p in ("loop-protocol-rtk", "loop-protocol-readonly", "loop-protocol-bootstrap")])'

Allowed Paths

  • .codex/config.toml

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • read-only 以外の standalone package 権限が必要と判明した場合

Required Skills

なし

Required Design References

  • docs/dev/agent-runtime-ops.md#WSL2 / standalone install の self-binary ENOENT 復旧
  • docs/dev/agent-skill-boundaries.md#Parallel Agent Runtime Safety

Runtime Verification Applicability

decision: immediate
applicable_acs: [AC5]
execution_environment: WSL2 + bwrap sandbox (codex sandbox CLI), codex 0.144.1 standalone install
skip_conditions: codex CLI not found in PATH, or resolved binary is not under ~/.codex/packages/standalone/releases (exit 77)
fallback_policy: no fallback PASS is accepted. Any exit code other than 0 (pass) or 77 (SKIP) is treated as a fail
artifact_requirements: PR must attach the codex sandbox stdout and exit code for all 3 profiles as evidence
reason: 静的な TOML semantic diff(AC1-AC4)だけでは sandbox 内での実際の実行可否を保証できないため、AC5 として codex sandbox を用いた実機検証を要求する。誤った CLI 構文(存在しない codex sandbox linux サブコマンド)による過去の検証失敗を踏まえ、正しい構文を明記する。
  • if immediate: AC5 に runtime-verification タグを付与済み。VC は codex CLI 未導入、または standalone releases バイナリ以外の installation path の環境では SKIP exit 77 を返す fallback を含む。3プロファイル分の codex sandbox 実行結果(成功ログまたは baseline との比較)を PR に証跡として添付する。

Scope Delta

N/A

Delivery Rule

  • 1 Issue = 1 PR
  • worktree: .claude/worktrees/issue-1486-codex-standalone-read
  • Draft PR を既定とする。

Activity

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

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-12T05:51:14Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1486
      body_sha256: "sha256:ff356baa1ccf72f8ed735290515ea906f0c972a59138bbb4012b4a9f9cb165eb"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:ff356baa1ccf72f8ed735290515ea906f0c972a59138bbb4012b4a9f9cb165eb","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"rg -n '\"~/.codex/packages/standalone\" = \"read\"' .codex/config.toml","command_hash":"sha256:7d80d08578e3c5490bd4c752a9aa6af336a3fe157a0faa45deb8311016a22bd6","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC2","line":7,"raw_command":"rg -n '^\\[permissions\\.loop-protocol-readonly\\.filesystem\\]' .codex/config.toml","command_hash":"sha256:d0641ba27815a8347bf689b5967523ad66d8dd142a39139e33797ddb4f9f278a","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC3","line":11,"raw_command":"rg -n '^\\[permissions\\.loop-protocol-bootstrap\\.filesystem\\]' .codex/config.toml","command_hash":"sha256:9a689dcfb3d82760f58bffd4451af54b1493ee1bf37d743929ce7c77b08e624f","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC4","line":15,"raw_command":"rg -n '^approval_policy = \"on-request\"$' .codex/config.toml","command_hash":"sha256:37f9446ebad5e65ba8d930ec96e93e5bd478ac215855f3e0da97b3f135af573e","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false}]
      source: ensure_contract_snapshot_auto
  3. squne121 commented on Jul 12, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: open-pr hard gate による停止

    • 停止理由: E_OVERLAP_PREFLIGHT_DRIFT
    • stored evidence: --limit 500 で収集したため、complete: true・saturated: false・decision_inputs_sha256: sha256:e6f6f0d17049350a493e8fe3a34b4d1a93d788469822ce3996c3702f67f2cce3。
    • online recheck: open_pr.py が既定の --limit 100 で再収集し、saturated: true・decision_inputs_sha256: sha256:d995e580b5f20ee6fa305834e54e78b419b3c6d1cc8894550e08126818e0e2a4 となり、同一 collection chain を証明できません。
    • 再開条件: 先行する 実装: Scope Collision Preflight で Allowed Paths 未記載 Issue を候補から除外する #1477 の source.limit 引継ぎ実装が main にマージされ、stored evidence と online recheck が同一の収集上限を使用できること。
    • Branch: worktree-issue-1486-codex-standalone-package-read-only
    • Head: 5d1fe030304f64b728a8da285c38c6cb54867bee
    • PR: 未作成(open-pr wrapper は gh pr create を実行していません)。
  4. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-07-13T14:21:00Z)

    • PR: 実装: Codex standalone package の read-only 参照を許可する #1495
    • Worktree: .claude/worktrees/issue-1486-codex-standalone-read
    • Branch: worktree-issue-1486-codex-standalone-read
    • Verification: 4/4 AC VC PASS(rg 3件 + tomllib 静的検証)
    • Overlap Preflight: route proceed(衝突候補なし、全152件 OPEN implementation issue collection complete)
    • 後続: PR レビュー(pr-review-judge)→ マージ → post-merge-cleanup
  5. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-13T15:31:55Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1486
      body_sha256: "sha256:565c96393b02c3b6ea83364e38b41a07bfc94a2f8533622bc72029a317cfff01"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:565c96393b02c3b6ea83364e38b41a07bfc94a2f8533622bc72029a317cfff01","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run python3 -c 'print(\"AC1 OK\") if ((tomllib := __import__(\"tomllib\")) and (subprocess := __import__(\"subprocess\")) and (base := tomllib.loads(subprocess.run([\"git\", \"show\", \"origin/main:.codex/config.toml\"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(\".codex/config.toml\", \"rb\"))) and ({k: v for k, v in head[\"permissions\"][\"loop-protocol-rtk\"][\"filesystem\"].items() if base[\"permissions\"][\"loop-protocol-rtk\"][\"filesystem\"].get(k) != v} == {\"~/.codex/packages/standalone/releases\": \"read\"})) else exit(1)'","command_hash":"sha256:68143902cd50d6af87b05d47a0556bb93105bd2f6332a4a21633d4a61f0f17d0","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC2","line":7,"raw_command":"uv run python3 -c 'print(\"AC2 OK\") if ((tomllib := __import__(\"tomllib\")) and (subprocess := __import__(\"subprocess\")) and (base := tomllib.loads(subprocess.run([\"git\", \"show\", \"origin/main:.codex/config.toml\"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(\".codex/config.toml\", \"rb\"))) and ({k: v for k, v in head[\"permissions\"][\"loop-protocol-readonly\"][\"filesystem\"].items() if base[\"permissions\"][\"loop-protocol-readonly\"][\"filesystem\"].get(k) != v} == {\"~/.codex/packages/standalone/releases\": \"read\"})) else exit(1)'","command_hash":"sha256:9487a969bdecf5b0afed1d17d3caa017abaed9dfe29958af444040b264645cdd","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC3","line":11,"raw_command":"uv run python3 -c 'print(\"AC3 OK\") if ((tomllib := __import__(\"tomllib\")) and (subprocess := __import__(\"subprocess\")) and (base := tomllib.loads(subprocess.run([\"git\", \"show\", \"origin/main:.codex/config.toml\"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(\".codex/config.toml\", \"rb\"))) and ({k: v for k, v in head[\"permissions\"][\"loop-protocol-bootstrap\"][\"filesystem\"].items() if base[\"permissions\"][\"loop-protocol-bootstrap\"][\"filesystem\"].get(k) != v} == {\"~/.codex/packages/standalone/releases\": \"read\"})) else exit(1)'","command_hash":"sha256:d52a3827c57d9fae7f290c08b94ad58ca226278d01a90fe588bec3a475f2583c","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC4","line":15,"raw_command":"uv run python3 -c 'print(\"AC4 OK\") if ((tomllib := __import__(\"tomllib\")) and (subprocess := __import__(\"subprocess\")) and (base := tomllib.loads(subprocess.run([\"git\", \"show\", \"origin/main:.codex/config.toml\"], capture_output=True, text=True, check=True).stdout)) and (head := tomllib.load(open(\".codex/config.toml\", \"rb\"))) and (profiles := (\"loop-protocol-rtk\", \"loop-protocol-readonly\", \"loop-protocol-bootstrap\")) and (head == {**base, \"permissions\": {**base[\"permissions\"], **{p: {**base[\"permissions\"][p], \"filesystem\": {**base[\"permissions\"][p][\"filesystem\"], \"~/.codex/packages/standalone/releases\": \"read\"}} for p in profiles}}})) else exit(1)'","command_hash":"sha256:eae58a147d48b056ebcd567d5a46d73d21d29f07cd8dc7d907a7fd87feff213e","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC5","line":20,"raw_command":"uv run python3 -c 'print(\"SKIP: codex CLI not installed in this environment\", file=__import__(\"sys\").stderr) if not (codex_path := __import__(\"shutil\").which(\"codex\")) else (print(\"SKIP: unexpected Codex installation path \" + target, file=__import__(\"sys\").stderr) if not (target := __import__(\"os\").path.realpath(codex_path)).startswith(__import__(\"os\").path.expanduser(\"~/.codex/packages/standalone/releases\")) else [__import__(\"subprocess\").run([\"codex\", \"sandbox\", \"-P\", p, \"-C\", \".\", \"--\", target, \"--version\"], check=True) for p in (\"loop-protocol-rtk\", \"loop-protocol-readonly\", \"loop-protocol-bootstrap\")])'","command_hash":"sha256:4105c67c7f54015c18de1e42d6cab0ed148840c5306061b69cd79ebbde9cf88f","runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false}]
      source: ensure_contract_snapshot_auto
  6. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    implement-issue: fix_delta 対応完了 (2026-07-14)

    人間レビュアーの REQUEST_CHANGES(PR #1495 (comment))を受けた fresh contract に追従し、以下を実施した。

    • .codex/config.toml の3プロファイル(loop-protocol-rtk / loop-protocol-readonly / loop-protocol-bootstrap)の filesystem 許可を "~/.codex/packages/standalone" = "read" から "~/.codex/packages/standalone/releases" = "read" へ narrow 化(commit d13c6423)。

    • AC1-AC4: baseline(origin/main) との tomllib semantic diff で PASS(3プロファイルとも差分は releases キー追加のみ)。

    • AC5: codex sandbox -P <profile> -C <dir> -- <command> で3プロファイル全て実機検証 PASS(codex-cli 0.144.1、exit 0)。narrowed scope でも成功を確認。

    • PR 本文の脅威モデル記述・Safety Claim Matrix・Runtime Verification Applicability(immediate)を訂正し、follow-up 実装: docs/dev/agent-runtime-ops.md の standalone 実行時ワークアラウンド記述を permission profile 方式と整合させる #1499 への参照を追加。

    • PR: 実装: Codex standalone package の read-only 参照を許可する #1495

    • Worktree: .claude/worktrees/issue-1486-codex-standalone-read

    • Branch: worktree-issue-1486-codex-standalone-read

    • Head SHA: d13c64236ea36bbc7d31ac9da6a80b0e6beb3fe7

    • 後続: PR レビュー(再レビュー依頼済み)→ マージ → post-merge-cleanup

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