Skip to content

fix: stale go snapshot freshness を検証する - #1448

Merged
squne121 merged 5 commits into
mainfrom
worktree-issue-1445-stale-go-freshness
Jul 11, 2026
Merged

squne121 merged 5 commits into
mainfrom
worktree-issue-1445-stale-go-freshness

Conversation

@squne121

@squne121 squne121 commented Jul 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • ensure_contract_snapshot.py が current Issue 本文の canonical body_sha256 と一致する go 結果だけを再利用するよう修正しました。
  • existing-go 採用前の再確認を1回に制限し、変化が継続した場合は fail-closed で終了します。
  • 投稿直前の dedupe も freshness を確認し、stale go により fresh snapshot の投稿を抑止しないようにしました。

Checks

  • 受け入れ条件に対応する対象テスト13件が成功しました。
uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py -k 'test_existing_go_matches_current_body_returns_ok or test_invalid_or_stale_go_never_returns_existing_go or test_stale_go_auto_without_post_materializes_dry_run or test_stale_go_at_post_check_does_not_dedupe or test_fresh_go_at_post_check_dedupes or test_existing_go_snapshot_change_retries_then_conflicts or test_parser_result_with_canonical_body_sha256_is_consumed' -v
  • 対象ファイルの全回帰テスト48件が成功しました。
uv run --locked pytest .claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py -v

Schema Change Applicability

  • decision: schema_change
  • reason: parser が返す status: go の consumer が受理する入力集合を、hash欠落を含む従来の結果からcanonical body hashと現在本文が一致する結果へ狭める互換性変更のため。

Schema Consumer Inventory

before

  • ensure_contract_snapshot.py は parser-validな status: go とmarkerだけのコメントを current snapshot として採用できた。

after

  • ensure_contract_snapshot.py は parser-validかつcanonicalな inner.body_sha256 が現在本文と完全一致する status: go だけを採用する。marker単独は投稿抑止のauthorityにしない。
Consumer ファイル 更新有無 備考
.claude/skills/issue-contract-review/SKILL.md no producerの契約レビュー手順。body_sha256 producer formalizationは別Issueの責務。
.claude/skills/issue-contract-review/references/output-schema.md no shared parserのschema記述。今回のAllowed Paths外。
.claude/skills/issue-contract-review/scripts/contract_review_result_parser.py no parserの出力構造は変更せず、consumer側で判定する。
.claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py yes canonical hash、pre-post dedupe、marker authorityを判定するconsumer。
.claude/skills/issue-contract-review/scripts/run_contract_review_once.py no review materialization producer。今回のAllowed Paths外。
.claude/skills/impl-review-loop/scripts/build_intake_capsule.py no hashless fallbackを持つ別consumerであり、policy統合は本IssueのOut of Scope。
.claude/skills/impl-review-loop/steps/preparation.md no capsule-first routing policyは変更しない。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
stale または非canonical hash の go 結果を existing snapshot として採用しない yes コメント投稿者 identity の trust policy 対象 pytest 48件 PASS #1445 の Out of Scope
投稿直前の stale go による dedupe を防止し、updatedAt変化時もfresh goを再確認する yes GitHub APIにcompare-and-swapやidempotency keyはない test_updated_at_only_change_with_fresh_go_dedupes PASS #1445 の Out of Scope
marker単独をsnapshot authorityにしない yes 二重POSTを完全には排除しないTOCTOU残余リスク test_marker_only_comment_does_not_authorize_existing_go PASS #1445 の Out of Scope
VC baseline classificationsを持たないfresh goを再materialize対象にする yes producer側のbody_sha256必須化は別Issueの責務 test_fresh_go_without_classifications_materializes_dry_run PASS #1445 の Out of Scope

Notes

@github-actions

github-actions Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1448 closed).

@squne121

Copy link
Copy Markdown
Owner Author

検証結果レポート

Issue #1445 / PR #1448 の current head 2483fdadea2490cbb5908631f96748c13c2e9dcc を検証しました。

  • AC1: 1 passed
  • AC2: 7 passed
  • AC3: 1 passed
  • AC4: 1 passed
  • AC5: 1 passed
  • AC6: 1 passed
  • AC7: 43 passed
  • AC8: 1 passed
  • SKIP / fallback: なし
  • GitHub mergeable: MERGEABLE、merge state: BLOCKED
TEST_VERDICT:
  result: PASS
  head_sha: 2483fdadea2490cbb5908631f96748c13c2e9dcc
  mergeable: MERGEABLE
  merge_state_status: BLOCKED
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 8
  verification_commands_fail: 0
  verification_skipped_count: 0
  runtime_ac_results: []
VC_ADJUDICATION_RESULT_V1:
  overall_status: indeterminate
  blocking: true
  rerun_required: true
  reason: contract_snapshot_vc_preflight_classifications_missing
  source_integrity:
    current_vc_result_head_sha: 2483fdadea2490cbb5908631f96748c13c2e9dcc
    reviewed_head_sha: 2483fdadea2490cbb5908631f96748c13c2e9dcc
    evidence_complete: false
  errors:
    - missing_vc_preflight_classifications
    - missing_adjudicator_baseline_evidence

テスト自体は全件成功しましたが、公開済み contract snapshot に baseline VC classifications がないため、VC adjudication の正本判定は fail-closed です。

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

レビュー判定

current head の CI で python-test が失敗しています。Ruff E501 が変更したテストの2行で検出され、TEST_VERDICT の43件PASSだけでは CI 失敗を相殺できません。加えて、同 head の VC adjudication は baseline classifications 欠落により fail-closed です。

LOOP_VERDICT_V2

LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: "2483fdadea2490cbb5908631f96748c13c2e9dcc"
  merge_ready: false
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "BLOCKED"
  blockers:
    - "CI_CHECK_RUN_SCOPED: python-test が Ruff E501 で失敗(test_ensure_contract_snapshot.py:288,312)"
    - "VC_ADJUDICATION_RESULT_V1: contract_snapshot_vc_preflight_classifications_missing により blocking=true"
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py"
      - ".claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py"
  allowed_paths_gate_source: review_subagent

CI_TEST_PERFORMANCE_DECISION_V1

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 1445
  pr_number: 1448
  decision_scope: review_only
  changed_paths:
    - ".claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py"
    - ".claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py"
  lane_classification:
    python_unit:
      applicable: true
      evidence:
        - "python-test CI: Ruff E501 failure"
      required_commands:
        - "uv run --locked ruff check --select E,F --ignore E402 .claude/scripts scripts schemas .claude/skills"
    fast_static:
      applicable: true
      evidence:
        - "Ruff は python-test job で失敗"
      required_commands: []
    contract_artifact:
      applicable: true
      evidence:
        - "VC adjudication は baseline classifications 不足で indeterminate"
      required_commands: []
    integration:
      applicable: false
      evidence: []
      required_commands: []
  baseline_inputs:
    ci_runtime_baseline_v1_available: false
    run_count: 0
    p50_p95_ready: false
  artifact_consistency:
    ci_test_selection_v1_checked: false
    missing_pytest_args: []
  risk_flags:
    - "CI failure"
    - "VC adjudication evidence incomplete"
  reviewer_gate:
    approve_allowed: false
    required_evidence:
      - TEST_VERDICT_MACHINE
      - CI_CHECK_RUN_SCOPED
  follow_up_required: []

@squne121

Copy link
Copy Markdown
Owner Author

検証結果レポート(新 head)

Issue #1445 / PR #1448 の current head 6f0a49f22d60798bce3a9c85c99ec1a128c8dbd4 を検証しました。

  • AC1: 1 passed
  • AC2: 7 passed
  • AC3: 1 passed
  • AC4: 1 passed
  • AC5: 1 passed
  • AC6: 1 passed
  • AC7: 43 passed
  • AC8: 1 passed
  • SKIP / fallback: なし
  • GitHub mergeable: MERGEABLE、merge state: BLOCKED
TEST_VERDICT:
  result: PASS
  head_sha: 6f0a49f22d60798bce3a9c85c99ec1a128c8dbd4
  mergeable: MERGEABLE
  merge_state_status: BLOCKED
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 8
  verification_commands_fail: 0
  verification_skipped_count: 0
  runtime_ac_results: []
VC_ADJUDICATION_RESULT_V1:
  overall_status: indeterminate
  blocking: true
  rerun_required: true
  reason: contract_snapshot_vc_preflight_classifications_missing
  source_integrity:
    current_vc_result_head_sha: 6f0a49f22d60798bce3a9c85c99ec1a128c8dbd4
    reviewed_head_sha: 6f0a49f22d60798bce3a9c85c99ec1a128c8dbd4
    evidence_complete: false
  errors:
    - missing_vc_preflight_classifications
    - missing_adjudicator_baseline_evidence

テストは全件成功しましたが、公開済み contract snapshot に baseline VC classifications がないため、VC adjudication の正本判定は fail-closed です。

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

再レビュー判定

Ruff 修正と current-head の TEST_VERDICT(8/8 PASS、skip/fallback なし)は確認しました。ただし、CI は python-test と e2e が実行中で、VC adjudication も baseline classifications 欠落により fail-closed のままです。

LOOP_VERDICT_V2

LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: "6f0a49f22d60798bce3a9c85c99ec1a128c8dbd4"
  merge_ready: false
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "BLOCKED"
  blockers:
    - "CI_CHECK_RUN_SCOPED: python-test と e2e が pending_or_queued で完了証跡がない"
    - "VC_ADJUDICATION_RESULT_V1: contract_snapshot_vc_preflight_classifications_missing により blocking=true"
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py"
      - ".claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py"
  allowed_paths_gate_source: review_subagent

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

CI完了後の再レビュー

current head の required CI は完了し、GitHub の mergeability は MERGEABLE/CLEAN です。python-test と e2e を含む本体CIは成功しています。

ただし、current-head TEST_VERDICT は8/8 PASSである一方、VC adjudication は contract_snapshot_vc_preflight_classifications_missing により fail-closed のままです。

LOOP_VERDICT_V2

LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: "6f0a49f22d60798bce3a9c85c99ec1a128c8dbd4"
  merge_ready: false
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "CLEAN"
  blockers:
    - "VC_ADJUDICATION_RESULT_V1: contract_snapshot_vc_preflight_classifications_missing により blocking=true"
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py"
      - ".claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py"
  allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

判定: REQUEST_CHANGES

方向性は正しいです。is_go_fresh() の canonical hash 検証、existing-go 採用前の bounded recheck、投稿直前の stale-go 除外は妥当です。current head 6f0a49f... の CI も、python-test、E2E、lint、build を含め成功しています。

ただし、マージ前に直すべき問題が3件あります。

P1-1. 投稿直前の fresh-go dedupe が updatedAt 判定に遮断される

投稿直前の処理順は現在、次のようになっています。

  1. Issue body、updatedAt、comments を再取得
  2. body hash を比較
  3. updatedAt が変わっていれば即座に conflict
  4. その後で comments を解析し、fresh go の出現を確認

つまり、fresh go コメントが並行投稿されても、それを確認する前に updated_at_mismatch で終了する可能性があります。

GitHubのIssue timelineはコメントを含み、Issueには「オブジェクトが最後に更新された時刻」として updatedAt が存在します。したがって、コメント追加と updatedAt 変化が連動する可能性を前提に検証すべきです。現在の test_fresh_go_at_post_check_dedupes は、コメントだけを増やしながら fetch_issue_snapshot() に同じ updatedAt を返させており、この競合を再現していません。([GitHub Docs]1)

これは #1445 の「投稿直前にcurrent hashのgoが現れた場合はdedupeする」というACを十分に証明していません。

修正案

  • body hash 不一致は従来どおり即時停止する。
  • commentsを先に解析する。
  • fresh go が存在した場合は、もう一度Issue bodyを取得し、body hashが変わっていないことを確認してdedupeする。
  • fresh goもblockedも存在しない場合に限り、汎用的なupdatedAt不一致をconflictとして扱う。

最低限、次のテストが必要です。

# 初回 updatedAt="one"
# post確認時 updatedAt="two" かつ fresh go が追加済み
# body hash は一貫して同じ
# => existing_go / deduped

P1-2. marker-onlyコメントが freshness 検証を完全に迂回する

idempotency marker が見つかると、そのコメントが有効な CONTRACT_REVIEW_RESULT_V1 か、status: go か、body hashがcanonicalかを確認せず、即座に次を返します。

status: ok
source: existing_go
contract_snapshot_url: marker comment

しかも、この判定は投稿直前のatomicity checkより前です。

既存テストも、markerと任意の説明文だけで、parser上はgo結果がゼロのコメントをokとして扱うことを明示的に固定しています。

これはPR本文の以下の主張と両立しません。

current Issue本文のcanonical body_sha256と一致するgo結果だけを再利用する

GitHubコメントは後から編集可能で、APIは投稿者、author_association、created_at、updated_atを返します。しかし現行parserの取得項目はID、URL、日時、本文だけで、投稿者情報を保持していません。したがって、markerだけをsnapshot authorityとして扱う根拠は弱いです。([GitHub Docs]2)

必須修正

markerは「POST重複防止のヒント」に限定してください。

  • markerを含む同一コメントがparser-validかつis_go_fresh()を満たす場合だけokにする。
  • markerしかない場合は、少なくともok / existing_goを返さない。
  • 例: human_judgment、ambiguous_marker_without_snapshot、または通常のfresh materializationへ進む。

#1445でmarker契約がOut of Scopeなら、PR本文のSafety Claimを狭めるだけでは不十分です。#1445をcloseする以上、「fresh goのみ採用」というOutcomeを迂回する経路を残すべきではありません。

P1-3. not_schema_change 判定はリポジトリ規約上成立しない

このPRはキーや型を変更していませんが、consumerが受理する入力集合を変更しています。

変更前

  • parser-validなstatus: goなら、body_sha256がなくても採用

変更後

  • sha256:+lowercase 64 hexで、現在本文と完全一致するものだけ採用
  • hash欠落は拒否

一方、共有parserはbody_sha256を必須検証しておらず、出力スキーマの主要フィールド一覧にもbody_sha256は含まれていません。producer側へ正式追加するIssue #566もopenのままです。

このリポジトリのschema governanceは、producer/consumer境界を越えるmachine-readable contractをschemaと定義し、not_schema_changeを「consumer境界への契約変更がない場合」に限定しています。判断不能ならuncertainとしてfail-closed検査を適用する規約です。

したがって、この変更は少なくとも uncertain、実質的にはconsumer-sideの互換性変更として schema_change 扱いが妥当です。

Schema Consumer Inventoryには最低でも以下が必要です。

  • issue-contract-review/SKILL.md
  • issue-contract-review/references/output-schema.md
  • contract_review_result_parser.py
  • ensure_contract_snapshot.py
  • run_contract_review_once.py
  • build_intake_capsule.py
  • impl-review-loop preparation経路

特にbuild_intake_capsule.pyは現在も、hash欠落時にgenerated_atとIssue updated_atを比較するfallbackを持ち、hashless goを受理できます。つまり、同一リポジトリ内でfreshness policyが二系統に分かれます。

P2. 回帰テストが競合の失敗側に偏っている

追加されたbounded retryテストは「二回とも変化し続け、最終的にconflictになる」ケースだけです。

次の境界ケースが不足しています。

  • 一回目の確認で変化し、二回目で安定してfresh goを採用できる
  • bodyは同じでupdatedAtだけ変化した場合のretry
  • fresh goコメント追加とupdatedAt変化が同時に発生する
  • marker-onlyコメントがokにならない
  • parser-validだがhash欠落のlegacy commentに対するmode別結果
  • 二つのprocessが同時にpre-post checkを通過するケース

最後のケースについては、現在も「check後、POST前」に別processが割り込めるため、globalなexactly-onceは保証されません。典型的なTOCTOUであり、marker方式は重複確率を下げるだけです。GitHubのコメント作成APIには、この用途のcompare-and-swapやidempotency keyがありません。少なくともPR本文のSafety Claimには残余リスクとして記載すべきです。([CWE][3])

既存のゲート状況

current headの通常CIは成功しています。一方、リポジトリ固有のVC adjudicationは、公開済みcontract snapshotにbaseline classificationsがないため、最終レビューでもfail-closedのままです。コード修正後はcontract snapshotを再生成し、current headに対するVC evidenceを再materializeする必要があります。

マージ前の必須対応

  1. 投稿直前のfresh-go検出とupdatedAt判定の順序・再確認方式を修正する。
  2. marker-onlyコメントからok / existing_goを返す経路を廃止する。
  3. Schema Change Applicabilityをuncertainまたはschema_changeに変更し、Consumer Inventoryを記載する。
  4. 実GitHubのコメント追加時系列を模した回帰テストを追加する。
  5. baseline VC classificationsを含むcontract snapshotを再生成する。

現状はCI greenですが、freshness保証の迂回経路とAC5の証明不足が残っているため、APPROVE不可です。 GitHub上へのレビュー投稿は行っていません。

[3]: https://cwe.mitre.org/data/definitions/367.html "CWE -

CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (4.20)
"

@squne121

Copy link
Copy Markdown
Owner Author

検証結果レポート(fresh snapshot)

Issue #1445 / PR #1448 の current head fde0506516cde0ffc29e0bb98c2a691c7795fbde を、fresh contract snapshot(#issuecomment-4942505320、VC classifications=8)に対して検証しました。

  • AC1: 1 passed
  • AC2: 7 passed
  • AC3: 1 passed
  • AC4: 1 passed
  • AC5: 1 passed
  • AC6: 1 passed
  • AC7: 48 passed
  • AC8: 1 passed
  • SKIP / fallback: なし
  • GitHub mergeable: MERGEABLE、merge state: BLOCKED
TEST_VERDICT:
  result: PASS
  head_sha: fde0506516cde0ffc29e0bb98c2a691c7795fbde
  mergeable: MERGEABLE
  merge_state_status: BLOCKED
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 8
  verification_commands_fail: 0
  verification_skipped_count: 0
  runtime_ac_results: []
VC_ADJUDICATION_RESULT_V1:
  schema_version: 1
  overall_status: pass
  blocking: false
  rerun_required: false
  contract_snapshot_url: https://github.com/squne121/loop-protocol/issues/1445#issuecomment-4942505320
  contract_vc_classifications_count: 8
  source_integrity:
    evidence_complete: true
    evidence_fresh: true
    current_vc_result_head_sha: fde0506516cde0ffc29e0bb98c2a691c7795fbde
    reviewed_head_sha: fde0506516cde0ffc29e0bb98c2a691c7795fbde
    diff_summary_head_sha: fde0506516cde0ffc29e0bb98c2a691c7795fbde
  per_ac:
    - { ac: AC1, status: pass }
    - { ac: AC2, status: pass }
    - { ac: AC3, status: pass }
    - { ac: AC4, status: pass }
    - { ac: AC5, status: pass }
    - { ac: AC6, status: pass }
    - { ac: AC7, status: pass }
    - { ac: AC8, status: pass }
  errors: []

current head と検証証跡は一致し、全 VC が成功しました。

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

最終レビュー判定

fresh contract snapshot と current-head の TEST_VERDICT / VC adjudication(8/8 PASS、blocking=false)は確認しました。Allowed Paths も適合しています。

ただし、head-scoped required CI は完了したものの python-test が Ruff E501 で失敗しており、APPROVE 不可です。

LOOP_VERDICT_V2

LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: "fde0506516cde0ffc29e0bb98c2a691c7795fbde"
  merge_ready: false
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "BLOCKED"
  blockers:
    - "CI_CHECK_RUN_SCOPED: python-test が Ruff E501 で失敗(test_ensure_contract_snapshot.py:481)"
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py"
      - ".claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py"
  allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

検証結果レポート(最終再実行)

Issue #1445 / PR #1448 の current head d30b1633f4eb17cee970341918b7431131f1a0b8 を、fresh contract snapshot(#issuecomment-4942505320、VC classifications=8)に対して検証しました。

  • AC1: 1 passed
  • AC2: 7 passed
  • AC3: 1 passed
  • AC4: 1 passed
  • AC5: 1 passed
  • AC6: 1 passed
  • AC7: 48 passed
  • AC8: 1 passed
  • SKIP / fallback: なし
  • GitHub mergeable: MERGEABLE、merge state: BLOCKED
TEST_VERDICT:
  result: PASS
  head_sha: d30b1633f4eb17cee970341918b7431131f1a0b8
  mergeable: MERGEABLE
  merge_state_status: BLOCKED
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 8
  verification_commands_fail: 0
  verification_skipped_count: 0
  runtime_ac_results: []
VC_ADJUDICATION_RESULT_V1:
  schema_version: 1
  overall_status: pass
  blocking: false
  rerun_required: false
  contract_snapshot_url: https://github.com/squne121/loop-protocol/issues/1445#issuecomment-4942505320
  contract_vc_classifications_count: 8
  source_integrity:
    evidence_complete: true
    evidence_fresh: true
    current_vc_result_head_sha: d30b1633f4eb17cee970341918b7431131f1a0b8
    reviewed_head_sha: d30b1633f4eb17cee970341918b7431131f1a0b8
    diff_summary_head_sha: d30b1633f4eb17cee970341918b7431131f1a0b8
  per_ac:
    - { ac: AC1, status: pass }
    - { ac: AC2, status: pass }
    - { ac: AC3, status: pass }
    - { ac: AC4, status: pass }
    - { ac: AC5, status: pass }
    - { ac: AC6, status: pass }
    - { ac: AC7, status: pass }
    - { ac: AC8, status: pass }
  errors: []

current head と検証証跡は一致し、全 VC が成功しました。

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

最終レビュー判定

current head の fresh snapshot、TEST_VERDICT(VC 8/8 PASS、skip/fallback なし)、VC adjudication(blocking=false)、head-scoped CI 全件成功、Allowed Paths 適合を確認しました。Draft 状態は merge-ready 判定の blocker としません。

LOOP_VERDICT_V2

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "d30b1633f4eb17cee970341918b7431131f1a0b8"
  merge_ready: true
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "CLEAN"
  blockers: []
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py"
      - ".claude/skills/impl-review-loop/tests/test_ensure_contract_snapshot.py"
  allowed_paths_gate_source: review_subagent

@squne121
squne121 marked this pull request as ready for review July 11, 2026 05:05
@squne121
squne121 merged commit 529b3ac into main Jul 11, 2026
22 checks passed
@squne121
squne121 deleted the worktree-issue-1445-stale-go-freshness branch July 11, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: ensure_contract_snapshot.py の find_latest_go が stale go コメントを fresh として誤判定するバグを修正する

1 participant