Skip to content

実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "main の前進を通常の並行イベントとして扱い、issue-refinement-loop と impl-review-loop が base-bound evidence を選択的に無効化して scope-clean に再束縛・再検証できるようにする"
change_kind: code

Parent Issue

なし(単独改善)

Parent Goal Ref

Current Validated Scope

Remaining Parent Gaps

なし(本 Issue は単独の implementation contract であり、#2070 の回復は後続 flow の責務)。

Outcome

main drift を検出した loop/policy/executor が更新済み実装と回帰テストにより、stale な snapshot・CI・review evidence を再利用せず、Allowed Paths の latest-main net diff を基準に選択的な再束縛・再検証を完了できる状態にする。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: loop state、Git topology、policy parity、executor の静的・subprocess 契約を Python/TypeScript 回帰テストと repository gate で検証する変更であり、外部 runtime session は必要としない。

Background

In Scope

  • evidence epoch、base SHA、expected-head / expected-old CAS、iteration counter を loop state と route 判定に明示し、main drift は implementation iteration budget を消費しないようにする。
  • refinement loop と implementation loop の責務境界を保ち、各々が保有する mutation と evidence のみを invalidation / rebind / reverify する。
  • impl loop の BEHIND fast path と、fast path 非適用時の deterministic scope-clean reconciliation を実装する。
  • materialize-request を controlled commit の唯一の canonical interface とし、snapshot-json 単独入力を拒否する。
  • protected ref、identity、write guard、Allowed Paths、latest-main net diff、postcondition live readback の policy parity を guard・executor・rules・docs に反映する。
  • stale Allowed Paths、base SHA mismatch、CAS race、protected ref、identity/write guard failure、semantic ambiguity、stale CI/review/snapshot、poll bound を含む adversarial regression を追加する。

Out of Scope

Design Invariants

  • raw add / commit / generic force は authority にしない。controlled commit は materialize-request のみを入力契約とし、snapshot-json 単独 authority は拒否する。
  • expected-head と expected-old は CAS として検証し、protected ref・identity・write guard を bypass しない。
  • live postcondition readback を省略せず、Allowed Paths の判定は latest main との差分で行う。
  • main drift は implementation iteration budget を消費しない。semantic ambiguity だけを停止条件にする。
  • refinement mutation と implementation mutation の責任を混在させず、各 loop は stale CI/review/snapshot evidence を再利用しない。
  • stale Allowed Paths は scope-clean reconciliation の成功根拠にせず、current main に再束縛した scope snapshot を必要とする。

Acceptance Criteria

  • AC1 (Phase A: evidence epoch / rebind / budget): main の base SHA が evidence epoch の base と異なるとき、refinement loop は base-bound snapshot / review evidence を stale と分類し、current main に束縛した epoch を要求する。main drift は implementation iteration counter を増加させず、drift 起因の再試行を budget exhaustion と分類しない。reconciliation は current base、expected head、evidence epoch、scope snapshot を再束縛し、古い CI/review/snapshot URL を reusable evidence として返さない。stale CI、review、Contract Snapshot、scope snapshot は evidence epoch が current base に一致しない限り reverify 対象となり、approval / go evidence に再利用されない。scope snapshot materialization は issue scope を current main へ再束縛し、旧 base に結び付く materialization を postcondition readback 前に失敗として扱う。
  • AC2 (Phase B: implementation routing / reconciliation / fail-closed): impl loop は current PR head が main に対して BEHIND の場合、許可された BEHIND fast path を選び、semantic reconciliation を不必要に起動しない。BEHIND fast path の precondition を満たさない場合、impl loop は deterministic scope-clean reconciliation に遷移する。semantic ambiguity がない scope-clean drift は reconciliation 成功として route され、human stop に昇格しない。semantic ambiguity、base SHA fingerprint mismatch、または current main で解消できない Allowed Paths conflict は fail-closed stop とし、mutation を実行しない。route verdict と publish replay executor は drift recovery 後の current head / current base を明示し、old head の publish 又は review verdict を成功として返さない。update_branch の input validation と poll bounds は fast path / reconciliation のどちらでも bounded であり、unbounded poll や generic retry を導入しない。
  • AC3 (Phase C: controlled mutation / policy / Allowed Paths / adversarial): reconciliation は latest main と Allowed Paths の net diff を使い、stale Allowed Paths の snapshot を成功根拠として使わない。expected-head CAS mismatch と expected-old CAS mismatch はそれぞれ決定論的な failure reason で拒否され、最新 ref の上書きを行わない。controlled commit executor は materialize-request を end-to-end で受け取り、materialize-request を欠く snapshot-json 単独入力を拒否する。raw add、raw commit、generic force、protected ref 更新、identity mismatch、write guard failure は policy と executor で同じ拒否結果になる。successful controlled mutation は expected-head / expected-old、protected / identity / write guard、Allowed Paths scope を検証し、live postcondition readback が一致した場合だけ成功を返す。adversarial test suite は stale Allowed Paths、stale evidence epoch、BEHIND/non-BEHIND 分岐、CAS race、protected/identity/write guard、snapshot-json bypass、semantic ambiguity、postcondition readback mismatch を固定する。
  • AC4 (Phase D: responsibility boundary): refinement loop の Issue-body / scope-snapshot mutation と implementation loop の branch / PR evidence mutation は別 route として保持され、互いの mutation authority を再利用しない。
  • AC5 (Phase E: complete gates and Allowed Paths): targeted pytest、Python policy/guard tests、pnpm typecheck、pnpm lint、pnpm test、pnpm build が PASS し、変更は Allowed Paths 内に閉じる。

Verification Commands

# AC1
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py -q
# AC2
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_main_drift_routing.py -q
# AC3
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-guards/tests/test_main_drift_controlled_mutation.py -q
# AC4
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_main_drift_replay_publish.py -q
# AC5
# baseline-expect: fail
$ uv run --locked pytest tests/agent_ops/test_main_drift_update_branch.py -q
# AC5
# preflight-scope: pr_review_only
$ pnpm typecheck
# AC5
# preflight-scope: pr_review_only
$ pnpm lint
# AC5
# preflight-scope: pr_review_only
$ pnpm test
# AC5
# preflight-scope: pr_review_only
$ pnpm build

Allowed Paths

  • scripts/agent-guards/controlled_git_change_exec.py
  • scripts/agent-guards/git_mutation_command_policy.py
  • scripts/agent-guards/worktree_scope_guard.py
  • scripts/ci/codex_execpolicy_matrix.py
  • scripts/agent-guards/tests/test_controlled_git_change_exec.py
  • scripts/agent-guards/tests/test_pretool_fastpath_classifier.py
  • scripts/agent-guards/tests/test_materialize_issue_scope_snapshot.py
  • scripts/agent-guards/tests/test_main_drift_controlled_mutation.py
  • .codex/rules/default.rules
  • docs/dev/agent-runtime-ops.md
  • docs/dev/hook-boundaries.md
  • .claude/skills/impl-review-loop/scripts/route_loop_verdict_v2.py
  • .claude/skills/impl-review-loop/steps/
  • .claude/skills/impl-review-loop/tests/
  • .claude/skills/impl-review-loop/tests/test_main_drift_routing.py
  • .claude/skills/implement-issue/scripts/update_branch.py
  • .claude/skills/implement-issue/tests/
  • .claude/skills/issue-refinement-loop/scripts/
  • .claude/skills/issue-refinement-loop/tests/
  • .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py
  • scripts/agent-ops/pr_head_replay_publish_exec.py
  • scripts/agent-ops/tests/test_pr_head_replay_publish_exec.py
  • scripts/agent-ops/tests/test_main_drift_replay_publish.py
  • tests/agent_ops/test_update_branch_input_validation.py
  • tests/agent_ops/test_update_branch_poll_bounds.py
  • tests/agent_ops/test_main_drift_update_branch.py

Dependency Dispositions

Stop Conditions

Required Skills

  • Python(subprocess 契約、pytest)
  • TypeScript(policy matrix と pnpm gate)
  • Git topology(base/head、CAS、protected ref)
  • pytest / Vitest(決定論的な回帰テスト)

Required Design References

  • docs/dev/agent-runtime-ops.md
  • docs/dev/hook-boundaries.md
  • docs/dev/workflow.md
  • docs/dev/agent-skill-boundaries.md

Scope Delta(任意)

N/A

Delivery Rule

  • 1 Issue = 1 PR。
  • repo-approved tmp/ 配下の専用 worktree で実装し、Draft PR を既定とする。
  • implementation 前、reconciliation 前、publish 前に current main / current head / evidence epoch を readback する。
  • fix(contract-review): RVA 欠落を fail-closed に統一 #2070 の recovery は本 Issue の merged PR を前提に後続 flow で扱い、本 Issue の PR には含めない。

Notes for Reviewer

Activity

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

    @squne121
    OwnerAuthor
    CONTRACT_SNAPSHOT_MATERIALIZATION_PENDING_V1:
      issue_number: 2102
      body_sha256: "sha256:c323d0ea9d7827c914d49a9945d163738235c2efb0c6dd32863cc0fd45c6a37c"
      phase: awaiting_comment_id_binding
  3. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor
    CONTRACT_SNAPSHOT_MATERIALIZATION_PENDING_V1:
      issue_number: 2102
      body_sha256: "sha256:c323d0ea9d7827c914d49a9945d163738235c2efb0c6dd32863cc0fd45c6a37c"
      phase: awaiting_comment_id_binding
  4. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-11T15:57:53Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/2102
      body_sha256: "sha256:b3a86467775fba52f82dd356ff51dc4a77fc976ed13be0f54b99fe2adfc36d52"
      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:b3a86467775fba52f82dd356ff51dc4a77fc976ed13be0f54b99fe2adfc36d52","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_nmx174xe.md"}}
        vc_preflight:
          decision: pass
          classifications: '[{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py -q","command_hash":"sha256:601b1322d37d4763dcbba8e803e68f82851fa133ba5f86abaa3d956c55bfbd6d","execution_key_hash":"sha256:4f5dbc1fc64caf1e081c6358a635185dde0d3f57c65ba9c539293a4aef3886c9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":165,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":3,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_main_drift_routing.py -q","command_hash":"sha256:774326d8da60d132a902aa89a38631d228f8cca42f5526a1cbbf73f54fcb85f6","execution_key_hash":"sha256:fdd7aca799e40f82c4f7f9e762ac852d5d371d0e622561a345121725b17cc521","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/impl-review-loop/tests/test_main_drift_routing.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":155,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC3","line":3,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_main_drift_controlled_mutation.py -q","command_hash":"sha256:5932a97cf0dfa1db8a276748ce8923f3d9b143dfa6dabeb086162fd508b66b47","execution_key_hash":"sha256:12eb78fa70161fba62c0f22e18fcfbca2abd8babf00a12a183b3f0aa146d38ce","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_main_drift_controlled_mutation.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":171,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC4","line":3,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_main_drift_replay_publish.py -q","command_hash":"sha256:69ca607df582c4a5a75b12b021284ed2dc7e882d2857f2bdf2239d22f21fb6af","execution_key_hash":"sha256:051254708f663c2107839f96d23e8d2492aad3efced45cb7686e8c95e576c126","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_main_drift_replay_publish.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":165,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":3,"raw_command":"uv run --locked pytest tests/agent_ops/test_main_drift_update_branch.py -q","command_hash":"sha256:4852869babc48cc06af6eef7e8664f9eb49958bed3fbaee217a56cfd7bad44d0","execution_key_hash":"sha256:b7dcfd81c029f8b0cf0a264021487f3ad256e49071c198ea45020f574e6b15a3","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_ops/test_main_drift_update_branch.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":168,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":2,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":"sha256:8fa8a50d6d3311065258066fb9494f8920586c27edb1048bc4d95d9fdc09da57","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":["$ tsc --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":886,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.typecheck.v1","exact_request_argv":["pnpm","typecheck"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:db2e25fc7dae3882ed2b85e1e039f8e5c87512d058ffc8ae4775142faf426c6a","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":2,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":"sha256:4cc0167be47dd8b4957d370a496e2dcda528b6bc0a7b54ef6edcb60d2e1ba17e","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":["$ eslint ."],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":4753,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.lint.v1","exact_request_argv":["pnpm","lint"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","lint"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:bffbd84769f6a3a529a69a91c07b702779a76e614ec09c7c397c2cc3a027cd30","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":2,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":"sha256:d6dfd981d96267617052ecc25576a41d23f0234349868d85a57b86a2c355472b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[" RUN  v4.1.6 /home/squne/projects/LOOP_PROTOCOL"," Test Files  112 passed (112)","      Tests  1872 passed (1872)","   Start at  00:57:19","   Duration  13.99s (transform 18.88s, setup 0ms, import 30.92s, tests 134.84s, environment 8.59s)"],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["$ vitest run --exclude ''tests/e2e/**'' --exclude ''tests/component/**'' --exclude ''.claude/worktrees/**'' --exclude ''.claude/tmp/**'' --exclude ''tmp/**''"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":14603,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.test.v1","exact_request_argv":["pnpm","test"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","test"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:e1d15b364034f4dad94733c56e5f4c4c2150a698e1a88aff485c22fd5534a33c","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":2,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:bb58a5e1a99d198ec1d4db3317cbdea35bf368dd4c2cb2a0d51a5997e307497b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["vite v8.0.13 building client environment for production...","\u001b[2K","transforming...✓ 43 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.29 kB","dist/assets/index-DlniEu9V.css   7.55 kB │ gzip:  2.20 kB","dist/assets/index-D8HPBb7g.js   71.19 kB │ gzip: 21.47 kB","✓ built in 92ms"],"stdout_truncated":false,"stdout_original_line_count":11,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1101,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}}]'
          classifications_transport: {"schema":"vc_preflight_classifications_transport/v1","classification_count":9,"original_payload_sha256":"sha256:0785deb37703f0456d6ee856d6592d7cf4bcad84f1e9441e297f2a44d16253e0","compact":false,"truncated":false}
        declared_path_overlap: '{"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"0fbdf82ee41c9e911fd829197a8881a163093ed8","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":2070,"title":"fix(contract-review): RVA 欠落を fail-closed に統一","base_ref_name":"main","head_ref_name":"worktree-issue-2040-implementation-issue-runtime-verificatio","head_ref_oid":"ff1a07e9c5d531f4945a80555ba3b4d553c21fd5","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2070","changed_files_count_graphql":34},{"number":2072,"title":"fix: test_issue_1952回帰テストのrepo_root誤指定による.claude/.claude迷子ディレクトリ生成を修正する","base_ref_name":"main","head_ref_name":"worktree-issue-2071-repo-root-fix","head_ref_oid":"488bc8554a6f2d6e5187d0ea374034d19954a14f","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2072","changed_files_count_graphql":1},{"number":2083,"title":"fix(issue-refinement-loop): trusted scope directive を planner に束縛する","base_ref_name":"main","head_ref_name":"worktree-issue-2055-planner-binding","head_ref_oid":"17ff97fcc06f5f91c881b06cb1c117de304f2da5","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2083","changed_files_count_graphql":10},{"number":2095,"title":"fix: extend readiness review timeout","base_ref_name":"main","head_ref_name":"worktree-issue-1631-run-contract-review-once-py-readiness-ch","head_ref_oid":"bd987b2a65d47f3893735a1b31f896b9f8f16040","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2095","changed_files_count_graphql":2},{"number":2096,"title":"実装: operator-selected human context の scope reframe を自動継続し scope expansion stop を撤去する","base_ref_name":"main","head_ref_name":"worktree-issue-2086-scope-reframe-continuation","head_ref_oid":"066884770273758febcd9bdd1429482d04f3fe31","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2096","changed_files_count_graphql":13},{"number":2103,"title":"fix: exclude .claude/artifacts exact entry from permission-profile fixture copytree","base_ref_name":"main","head_ref_name":"worktree-issue-2078-test-codex-permission-profile-config-fix","head_ref_oid":"ae79ced0f81624b12a4684cb6d713c0fc4753c2b","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2103","changed_files_count_graphql":3},{"number":2104,"title":"fix(ci): trusted visual-impact fetch authentication","base_ref_name":"main","head_ref_name":"worktree-issue-2098-trusted-visual-impact-auth-bootstrap-recovery","head_ref_oid":"f07446df424af2829bcbf14ddc7330483afb8840","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2104","changed_files_count_graphql":2}],"fetched_count":8,"totalCount":8,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:9f18ec28027134c04f91a424efe1badb00323002f72e9514fa1505b63b78551f","errors":[]},"inventory_digest_extended":"sha256:08c22fa5c8b5007bb36e6f461d63617311f5b3d2924f5fb815781c8760315cd4","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}'
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":2102,"contract_source_kind":"issue_comment","contract_source_id":"5255577873","contract_body_sha256":"sha256:b3a86467775fba52f82dd356ff51dc4a77fc976ed13be0f54b99fe2adfc36d52","allowed_paths_normalized_sha256":"78e2d33191850fc97050cc13b3a4ebc5d4ba9beeb3228f0dc2ccbf1dbf6b3da4","base_ref":"main","base_sha_at_snapshot":"0fbdf82ee41c9e911fd829197a8881a163093ed8"}
  5. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-11T16:18:04Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/2102
      body_sha256: "sha256:9b0bf52b69759f665bdc31a06c71d69aad991d1800937ad646b78698087fd58b"
      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:9b0bf52b69759f665bdc31a06c71d69aad991d1800937ad646b78698087fd58b","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_8ur0a4w4.md"}}
        vc_preflight:
          decision: pass
          classifications: '[{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py -q","command_hash":"sha256:601b1322d37d4763dcbba8e803e68f82851fa133ba5f86abaa3d956c55bfbd6d","execution_key_hash":"sha256:4f5dbc1fc64caf1e081c6358a635185dde0d3f57c65ba9c539293a4aef3886c9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":200,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":3,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_main_drift_routing.py -q","command_hash":"sha256:774326d8da60d132a902aa89a38631d228f8cca42f5526a1cbbf73f54fcb85f6","execution_key_hash":"sha256:fdd7aca799e40f82c4f7f9e762ac852d5d371d0e622561a345121725b17cc521","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/impl-review-loop/tests/test_main_drift_routing.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":151,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC3","line":3,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_main_drift_controlled_mutation.py -q","command_hash":"sha256:5932a97cf0dfa1db8a276748ce8923f3d9b143dfa6dabeb086162fd508b66b47","execution_key_hash":"sha256:12eb78fa70161fba62c0f22e18fcfbca2abd8babf00a12a183b3f0aa146d38ce","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-guards/tests/test_main_drift_controlled_mutation.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":172,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC4","line":3,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_main_drift_replay_publish.py -q","command_hash":"sha256:69ca607df582c4a5a75b12b021284ed2dc7e882d2857f2bdf2239d22f21fb6af","execution_key_hash":"sha256:051254708f663c2107839f96d23e8d2492aad3efced45cb7686e8c95e576c126","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_main_drift_replay_publish.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":158,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":3,"raw_command":"uv run --locked pytest tests/agent_ops/test_main_drift_update_branch.py -q","command_hash":"sha256:4852869babc48cc06af6eef7e8664f9eb49958bed3fbaee217a56cfd7bad44d0","execution_key_hash":"sha256:b7dcfd81c029f8b0cf0a264021487f3ad256e49071c198ea45020f574e6b15a3","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: tests/agent_ops/test_main_drift_update_branch.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":177,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":3,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.typecheck.v1","exact_request_argv":["pnpm","typecheck"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:db2e25fc7dae3882ed2b85e1e039f8e5c87512d058ffc8ae4775142faf426c6a","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":3,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.lint.v1","exact_request_argv":["pnpm","lint"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","lint"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:bffbd84769f6a3a529a69a91c07b702779a76e614ec09c7c397c2cc3a027cd30","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":3,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.test.v1","exact_request_argv":["pnpm","test"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","test"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:e1d15b364034f4dad94733c56e5f4c4c2150a698e1a88aff485c22fd5534a33c","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":3,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}}]'
          classifications_transport: {"schema":"vc_preflight_classifications_transport/v1","classification_count":9,"original_payload_sha256":"sha256:51a791e50b9636ca615adedbf2e53e4eae6eb7ac15f29a27e95d76f1f6ba90d9","compact":false,"truncated":false}
        declared_path_overlap: '{"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"0fbdf82ee41c9e911fd829197a8881a163093ed8","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":2070,"title":"fix(contract-review): RVA 欠落を fail-closed に統一","base_ref_name":"main","head_ref_name":"worktree-issue-2040-implementation-issue-runtime-verificatio","head_ref_oid":"ff1a07e9c5d531f4945a80555ba3b4d553c21fd5","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2070","changed_files_count_graphql":34},{"number":2072,"title":"fix: test_issue_1952回帰テストのrepo_root誤指定による.claude/.claude迷子ディレクトリ生成を修正する","base_ref_name":"main","head_ref_name":"worktree-issue-2071-repo-root-fix","head_ref_oid":"488bc8554a6f2d6e5187d0ea374034d19954a14f","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2072","changed_files_count_graphql":1},{"number":2083,"title":"fix(issue-refinement-loop): trusted scope directive を planner に束縛する","base_ref_name":"main","head_ref_name":"worktree-issue-2055-planner-binding","head_ref_oid":"17ff97fcc06f5f91c881b06cb1c117de304f2da5","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2083","changed_files_count_graphql":10},{"number":2095,"title":"fix: extend readiness review timeout","base_ref_name":"main","head_ref_name":"worktree-issue-1631-run-contract-review-once-py-readiness-ch","head_ref_oid":"bd987b2a65d47f3893735a1b31f896b9f8f16040","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2095","changed_files_count_graphql":2},{"number":2096,"title":"実装: operator-selected human context の scope reframe を自動継続し scope expansion stop を撤去する","base_ref_name":"main","head_ref_name":"worktree-issue-2086-scope-reframe-continuation","head_ref_oid":"066884770273758febcd9bdd1429482d04f3fe31","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2096","changed_files_count_graphql":13},{"number":2103,"title":"fix: exclude .claude/artifacts exact entry from permission-profile fixture copytree","base_ref_name":"main","head_ref_name":"worktree-issue-2078-test-codex-permission-profile-config-fix","head_ref_oid":"ae79ced0f81624b12a4684cb6d713c0fc4753c2b","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2103","changed_files_count_graphql":3},{"number":2104,"title":"fix(ci): trusted visual-impact fetch authentication","base_ref_name":"main","head_ref_name":"worktree-issue-2098-trusted-visual-impact-auth-bootstrap-recovery","head_ref_oid":"f07446df424af2829bcbf14ddc7330483afb8840","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2104","changed_files_count_graphql":2}],"fetched_count":8,"totalCount":8,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:9f18ec28027134c04f91a424efe1badb00323002f72e9514fa1505b63b78551f","errors":[]},"inventory_digest_extended":"sha256:08c22fa5c8b5007bb36e6f461d63617311f5b3d2924f5fb815781c8760315cd4","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}'
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":2102,"contract_source_kind":"issue_comment","contract_source_id":"5255800131","contract_body_sha256":"sha256:9b0bf52b69759f665bdc31a06c71d69aad991d1800937ad646b78698087fd58b","allowed_paths_normalized_sha256":"78e2d33191850fc97050cc13b3a4ebc5d4ba9beeb3228f0dc2ccbf1dbf6b3da4","base_ref":"main","base_sha_at_snapshot":"0fbdf82ee41c9e911fd829197a8881a163093ed8"}
  6. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor

    結論

    判定は REQUEST_CHANGES です。 #2102 の狙いである「main drift を例外停止ではなく通常の concurrency event として扱う」方針自体は妥当です。しかし、現状の契約のまま実装すると、base churn による livelock、update_branch の false-green、fresh Contract Snapshot を再生成できない dead-end、replay 時の latest-main scope 判定不足が残ります。特に AC2/AC3/AC5/AC6/AC14/AC16/AC17 を修正してから implementation に渡すべきです。

    この Issue 自体が対象問題をよく実証しています。#2102 の本文は 2026-08-11T14:44:35Z に更新されていますが、その約9秒後の 14:44:44Z に main は 0fbdf82ee41c9e911fd829197a8881a163093ed8 へ進みました。さらに #2086 の実装 PR #2096 は現在も open / Draft で、同じ issue-refinement control-plane を変更中です。つまり「Issue contract を作った直後に main/overlap が動く」は仮想的なケースではありません。

    敵対的レビュー

    1. P0 — evidence epoch が「選択的 invalidation」を表現できていません。
      AC14 は base epoch が変われば CI、review、Contract Snapshot、scope snapshot をまとめて reverify する契約ですが、証跡ごとの依存対象が異なります。現在の ci.yml は pull_request trigger で actions/checkout に ref を指定しておらず、さらに artifact へ GH_HEAD_SHA と GH_SHA を別々に記録しています。GitHub の仕様上、pull_request の GITHUB_SHA は PR merge branch の merge commit です。したがって現在の required CI は実質的に base+head に依存します。 ([GitHub Docs]1)

      一方 visual-impact-policy-trusted は CheckRun 自体を current head に束縛しつつ、consumer 内で live base SHA を再取得して base→head diff を再計算しています。つまり「CheckRun が head-bound」というだけでは evidence dependency を表現できません。

      base changed => everything stale を実装するのではなく、たとえば次の程度まで dependency を明示すべきです。

      EVIDENCE_BINDING_V1:
        epoch:
          base_sha: <40hex>
          head_sha: <40hex>
          issue_body_sha256: sha256:...
          allowed_paths_sha256: sha256:...
          policy_sha256: sha256:...
      
        contract_snapshot:
          depends_on: [base_sha, issue_body_sha256, allowed_paths_sha256]
      
        pr_review:
          depends_on: [head_sha, merge_base_sha, diff_sha256]
      
        required_ci:
          depends_on: [merge_result_sha]
      
        trusted_visual_check:
          depends_on: [head_sha, base_sha, changed_paths_digest]

      現在の main ruleset は required checks を typecheck/lint/test/build/python-test とし、strict_required_status_checks_policy: true です。GitHub の strict mode は topic branch が base と最新状態であることを要求します。したがって現状では結果的に required CI 全再検証になってもよいのですが、それを dependency model の結果として導出すべきです。 ([GitHub Docs]2)

    2. P0 — update_branch.py には base race が残っています。
      現行実装は PUT .../update-branch が 202 を返した後に _get_current_base_sha() を実行しています。しかし関数コメントはその値を「update-branch call の直前の base」と説明しており、コードと意味論が一致していません。さらに base 取得に失敗すると head ancestry だけへ意図的に degrade して成功可能です。

      GitHub の Update branch API が CAS として受け取るのは expected_head_sha だけで、expected base SHA は指定できません。また成功は非同期の 202 Accepted です。つまり API 単体では「観測した base に対して更新した」ことを CAS 保証できません。([GitHub Docs]3)

      実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 用 fast path は、pre/post で baseRefOid,headRefOid を同じ live PR readback から取得し、最終状態で current_base_sha が new_head_sha の ancestor であることまで確認すべきです。base が途中で進んでいても final base が新 head に含まれていれば、その final base で新 epoch を生成すればよいです。含まれていなければ base_drift_during_update として drift lane に戻します。base readback failure を成功へ degrade する現在の挙動は AC16 と両立しません。

    3. P0 — 「drift retry は implementation iteration を消費しない」だけでは livelock します。
      AC2 は正しい方向ですが、AC17 が制限しているのは主に update_branch の poll bound であり、main が継続的に進む場合の outer rebind 回数には上限がありません。main が十分活発なら、iteration=0 のまま永久に epoch を作り直せます。

      既存 実装: repair_action candidate を controlled Issue transaction へ自動適用する main control-plane consumer を追加する #2039 には「pre-dispatch stale 再生成は最大1回」「mutation 後 retry は別 budget」という先例があり、改善: issue-refinement-loop fail_closed constraints の reason semantics と consumer rewrite budget を閉じる #1023 でも通常 iteration を消費しない repair に no-progress state を併設しています。

      したがって implementation_iteration とは別に、たとえば drift_rebind_attempts <= 2 を設けるべきです。超過時は human_judgment_required ではなく concurrent_base_churn のような機械的停止理由にします。これは意味判断の失敗ではありません。

    4. P0 — stale Contract Snapshot を捨てた後の「fresh producer」が契約されていません。
      これは最も実装時に詰まりやすい点です。current main の materialize_issue_scope_snapshot.py はすでに GitHub REST から default branch の live SHA を取得し、Contract Snapshot fingerprint の base_sha_at_snapshot がその live base と一致することを要求しています。Issue body と Allowed Paths digest も照合します。

      つまり old Contract Snapshot URL を AC14 どおり stale にしただけでは、次の materialize は base_sha_fingerprint_mismatch で止まります。誰が current base に束縛された fresh Contract Snapshot を生成し、その新しい trusted comment/source ID を materialize-request へ渡すのかが AC にありません。

      必要なのは概ね detect base drift → fresh contract review producer → trusted source readback → current-base scope materialization → loop resume という明示的な再生成 chain です。refinement loop が producer を所有し、implementation loop は生成済み fresh authority だけを consume する、という責務分離が自然です。

    5. P0 — replay publisher はまだ「latest-main reconciliation executor」ではありません。
      現在の pr_head_replay_publish_exec.py は source_base..source_head の binary diff を expected current PR head に apply しています。また Allowed Paths は Issue body の ## Allowed Paths を独自に文字列 split して取得しており、canonical materializer/parser と別実装です。publish CAS 自体は exact expected-old lease と post-push PR readback を備えています。

      実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 の AC5 を満たすなら、candidate の最終 authority gate は exact current base から評価しなければなりません。git diff current_base_sha candidate_head の two-tree net diff を canonical Allowed Paths matcher に通し、rename の old/new path の双方を評価する必要があります。git diff A...B は merge-base→B の意味なので、最終的な latest-main net diff gate には不適切です。([Git]4)

      なお現在 publisher が使っている --force-with-lease=<ref>:<expected-old> は generic force push と同一視してはいけません。Git の公式仕様でも、この完全形は remote ref が explicit <expect> と一致した場合だけ更新する CAS です。実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 の「generic force を拒否」は維持しつつ、exact expected-old lease は sanctioned transaction と明文化してください。([Git]5)

    6. P1 — semantic ambiguity が停止条件なのに判定規則がありません。
      Design Invariant は「semantic ambiguity だけを停止条件にする」としていますが、これはそのままでは machine-decidable ではありません。また AC8 と Stop Conditions には base fingerprint mismatch、Allowed Paths conflict、authority failure など別の停止理由も存在し、用語上も矛盾しています。

      実装可能にするなら、semantic ambiguity を保守的な deterministic predicate に落とすべきです。git merge-tree --write-tree は worktree/index を汚さず real merge conflict を判定できるので第一段階の conflict oracle に使えます。([Git]6) その上で「main drift 側と Issue delta が同一ファイルを変更していれば semantic ambiguity」「互いに disjoint で、final net diff が current Allowed Paths 内なら scope-clean」のような保守的規則にすれば、LLM の主観判定を authority にしなくて済みます。

    7. P1 — evidence_epoch を LOOP_STATE に入れる契約と Allowed Paths が一致していません。
      current LOOP_STATE_V1 の SSOT は .claude/skills/issue-refinement-loop/references/loop-state.md で、全フィールドと iteration/max_iterations の意味を定義しています。formal JSON schema は 実装: review/refinementのreplay・envelope・custom publisherをbounded loopへ置換する #1873 で撤去済みなので schema migration 自体は不要ですが、実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 が要求する「evidence epoch を loop state に明示」はこの SSOT の変更です。ところが 実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 の Allowed Paths は scripts/ と tests/ は含むものの、この reference を含みません。

      さらに同 reference には、reviewer が既に REVIEWED_BODY_SHA256 を出力するのに decide_next_loop_action.py が stale-body 判定へ使っていない、という明示的 TODO があります。main drift evidence を扱う 実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 はこの既存 hook を無視すべきではありません。

      最小修正は references/loop-state.md を Allowed Paths に追加し、reviewer schema 自体は拡張せず、route へ別入力 live_evidence_binding を渡す形です。これなら pr-reviewer の minimal verdict 契約を壊しません。

    8. P1 — AC10 は新機能ではなく、current main の既存 security invariant です。
      現在の controlled_git_change_exec.py は --snapshot-json を authority として無条件拒否し、--materialize-request を必須とし、同一 transaction 内で live materializer を呼ぶ実装になっています。これは 実装: issue-refinement-loop / impl-review-loop の main drift を自動再束縛・scope-clean reconciliation する #2102 AC10 が要求している内容そのものです。

      したがって test_main_drift_controlled_mutation.py が baseline で存在しないことを理由に baseline-expect: fail とするだけでは、「挙動が未実装」と「専用 regression test が未作成」を混同します。AC10 は preserve/non-regression AC へ変更し、成熟した controlled executor を不必要に書き換えない方が安全です。同じ理由で materialize_issue_scope_snapshot.py も、実際の deficit が見つからない限り Allowed Paths に追加しない方がよいです。

    Issue #2102 に入れるべき修正

    実装 state machine は、少なくとも次の形まで固定すると曖昧さが大幅に減ります。

    read live {base0, head0}
            │
            ├─ fresh contract/scope evidence bound to base0
            │
            ├─ BEHIND
            │    └─ update_branch(expected_head=head0)
            │         └─ final live {base1, head1}
            │              ├─ base1 ancestor-of head1
            │              │    └─ bind NEW epoch(base1, head1) → reverify
            │              └─ otherwise
            │                   └─ drift retry (separate bounded budget)
            │
            └─ non-BEHIND / reconciliation
                 ├─ conflict preflight via merge-tree
                 ├─ candidate constructed against exact base0
                 ├─ git diff base0 candidate_head
                 ├─ canonical Allowed Paths / protected / identity gate
                 ├─ pre-publish live base/head recheck
                 ├─ exact expected-old lease publish
                 ├─ post-publish exact ref readback
                 └─ evidence dependency-based reverify
    

    Issue body上は、AC2 に独立 drift budget、AC3 に final-base ancestry、AC6 に fresh Contract Snapshot producer chain、AC14 に evidence-type dependency、AC17 に outer drift boundを追加すべきです。AC10 は新規実装から regression-preservation へ変更してください。また Allowed Paths に少なくとも .claude/skills/issue-refinement-loop/references/loop-state.md を追加する必要があります。

    Runtime Verification Applicability: not_applicable も変更を推奨します。exact lease/CAS は一時 bare remote を使えば実 subprocess で race を再現できますし、update_branch は非同期 202 APIなので mock-only では GitHub 自体の挙動を証明できません。最低でも local bare-remote CAS/reconciliation を immediate verification にし、GitHub API の非同期特性については「external E2E 未検証」を明記すべきです。#1688 にも remote write/postcondition を runtime verification する先例があります。 ([GitHub Docs]3)

    さらに main の ruleset は strict required checks なので、この機能は単なる利便性改善ではなく、現在の merge policy と整合する制御面です。 #2096 はまだ Draft/open で、#2105 はすでにその branch に stacked merge されています。#2102 自身も #2086 overlap を認識しているため、実装開始時に #2096 の disposition を live readback し、同一ファイルを触るならその差分を最初の reconciliation input に含めるべきです。

    以上を反映すれば、#2102 は **「main drift を無視する自動 retry」ではなく、「immutable SHA に束縛された evidence を dependency 単位で失効させ、bounded CAS transaction で再収束する制御面」**として実装可能になります。この形なら 1 Issue = 1 PR を維持してよく、現時点では分割より contract refinement を優先するのが適切です。

  7. added 4 commits that reference this issue on Aug 11, 2026
  8. squne121 commented on Aug 12, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-12T10:55:24Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/2102
      body_sha256: "sha256:9b0bf52b69759f665bdc31a06c71d69aad991d1800937ad646b78698087fd58b"
      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:9b0bf52b69759f665bdc31a06c71d69aad991d1800937ad646b78698087fd58b","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_lgx47j44.md"}}
        vc_preflight:
          decision: pass
          classifications: '[{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_main_drift_evidence_epoch.py -q","command_hash":"sha256:601b1322d37d4763dcbba8e803e68f82851fa133ba5f86abaa3d956c55bfbd6d","execution_key_hash":"sha256:05822a3ff14891593c7de22de79e8c707be8a9645890707791afe85da181fa41","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["......                                                                   [100%]","6 passed in 0.42s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":601,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC2","line":3,"raw_command":"uv run --locked pytest .claude/skills/impl-review-loop/tests/test_main_drift_routing.py -q","command_hash":"sha256:774326d8da60d132a902aa89a38631d228f8cca42f5526a1cbbf73f54fcb85f6","execution_key_hash":"sha256:6c0a46115cff30cd722c0c8e89306c4686e4815cbfeb7fbd2aef91c48a107f70","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["....................                                                     [100%]","20 passed in 0.02s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":199,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC3","line":3,"raw_command":"uv run --locked pytest scripts/agent-guards/tests/test_main_drift_controlled_mutation.py -q","command_hash":"sha256:5932a97cf0dfa1db8a276748ce8923f3d9b143dfa6dabeb086162fd508b66b47","execution_key_hash":"sha256:9bc1e6e29adc343cbe7ebf67604d0a5ef41e9db7f2f30c72618021b34984d90d","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...                                                                      [100%]","3 passed in 0.02s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":203,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC4","line":3,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_main_drift_replay_publish.py -q","command_hash":"sha256:69ca607df582c4a5a75b12b021284ed2dc7e882d2857f2bdf2239d22f21fb6af","execution_key_hash":"sha256:f143a9db180a397a52e732e8e7039eb0abadae31e5de44b4701fc869da90103b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["....                                                                     [100%]","4 passed in 0.37s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":536,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":3,"raw_command":"uv run --locked pytest tests/agent_ops/test_main_drift_update_branch.py -q","command_hash":"sha256:4852869babc48cc06af6eef7e8664f9eb49958bed3fbaee217a56cfd7bad44d0","execution_key_hash":"sha256:7ade8ec6076622c28080c5e10368d9c9db01fefc305ea01c9bfea40ba88b20ca","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["...                                                                      [100%]","3 passed in 0.02s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":195,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null},{"ac":"AC5","line":3,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.typecheck.v1","exact_request_argv":["pnpm","typecheck"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/tmp/issue-2102-main-drift-origin/package.json","manifest_integrity_digest":"sha256:db2e25fc7dae3882ed2b85e1e039f8e5c87512d058ffc8ae4775142faf426c6a","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":3,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.lint.v1","exact_request_argv":["pnpm","lint"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","lint"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/tmp/issue-2102-main-drift-origin/package.json","manifest_integrity_digest":"sha256:bffbd84769f6a3a529a69a91c07b702779a76e614ec09c7c397c2cc3a027cd30","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":3,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.test.v1","exact_request_argv":["pnpm","test"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","test"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/tmp/issue-2102-main-drift-origin/package.json","manifest_integrity_digest":"sha256:e1d15b364034f4dad94733c56e5f4c4c2150a698e1a88aff485c22fd5534a33c","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":3,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/tmp/issue-2102-main-drift-origin/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}}]'
          classifications_transport: {"schema":"vc_preflight_classifications_transport/v1","classification_count":9,"original_payload_sha256":"sha256:83b3b2179587a47142fbf1a725ea9b72399d631790122e80fcb62ef5cede7030","compact":false,"truncated":false}
        declared_path_overlap: '{"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"fe4f242cb5a325d163d45f5eb822d40c49947488","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":2070,"title":"fix(contract-review): RVA 欠落を fail-closed に統一","base_ref_name":"main","head_ref_name":"worktree-issue-2040-implementation-issue-runtime-verificatio","head_ref_oid":"ff1a07e9c5d531f4945a80555ba3b4d553c21fd5","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2070","changed_files_count_graphql":34},{"number":2072,"title":"fix: test_issue_1952回帰テストのrepo_root誤指定による.claude/.claude迷子ディレクトリ生成を修正する","base_ref_name":"main","head_ref_name":"worktree-issue-2071-repo-root-fix","head_ref_oid":"488bc8554a6f2d6e5187d0ea374034d19954a14f","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2072","changed_files_count_graphql":1},{"number":2083,"title":"fix(issue-refinement-loop): trusted scope directive を planner に束縛する","base_ref_name":"main","head_ref_name":"worktree-issue-2055-planner-binding","head_ref_oid":"89ee9a0e7393109ebd81103d84b03ae3dd92cf99","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2083","changed_files_count_graphql":11},{"number":2095,"title":"fix: extend readiness review timeout","base_ref_name":"main","head_ref_name":"worktree-issue-1631-run-contract-review-once-py-readiness-ch","head_ref_oid":"c7d0ed33428772c0ee96b411a64e206082ef1578","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2095","changed_files_count_graphql":2},{"number":2104,"title":"fix(ci): trusted visual-impact fetch authentication","base_ref_name":"main","head_ref_name":"worktree-issue-2098-trusted-visual-impact-auth-bootstrap-recovery","head_ref_oid":"315357e2ccf562792ba863283fc7828c48116764","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2104","changed_files_count_graphql":2},{"number":2118,"title":"fix(loop): main drift evidence を再束縛する (#2102)","base_ref_name":"main","head_ref_name":"worktree-issue-2102-main-drift-origin","head_ref_oid":"c8ff7d7f70e7d5ff3900f7cee7526dff04960b63","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2118","changed_files_count_graphql":16},{"number":2135,"title":"fix: root-owned review pipeline を分離し issue-reviewer の read-only 権限矛盾を解消する","base_ref_name":"main","head_ref_name":"worktree-issue-2049-root-owned-review-pipeline","head_ref_oid":"1d4354c02d7c2cb5624dc43809ff9161783599eb","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2135","changed_files_count_graphql":7}],"fetched_count":8,"totalCount":8,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:ea6126787a60ab1abc438a4c18a9dc3428fc71a820caa2f224288ad85222f3f8","errors":[]},"inventory_digest_extended":"sha256:3c5d9bf02ba379a47176677fe0250f78c646cb1e80394db92aa576e375608343","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}'
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":2102,"contract_source_kind":"issue_comment","contract_source_id":"5265759707","contract_body_sha256":"sha256:9b0bf52b69759f665bdc31a06c71d69aad991d1800937ad646b78698087fd58b","allowed_paths_normalized_sha256":"78e2d33191850fc97050cc13b3a4ebc5d4ba9beeb3228f0dc2ccbf1dbf6b3da4","base_ref":"main","base_sha_at_snapshot":"fe4f242cb5a325d163d45f5eb822d40c49947488"}
  9. added 4 commits that reference this issue on Aug 12, 2026
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