Repository navigation
fix: baseline_vc_preflight の通常実行を shared VC parser に統一する - #2796
Conversation
PR #2786 OWNER review で判明した authority drift を解消する。従来 baseline_vc_preflight.py の通常実行・compute_canonical_vc_plan()・ _distinct_command_texts_from_body() は legacy な extract_fenced_bash_blocks() + parse_commands_from_block() grammar を 使い、--static-only のみが vc_contract_syntax.parse_verification_commands_section() を使っていたため、説明用の非 $ 行が通常実行では実コマンド候補に昇格し 得た。3経路すべてを同一の shared parser authority に統一し、新しい 独立 parser は追加していない。 - vc_contract_syntax.py: detect_compound_command()(shlex ベースの quote-aware compound 判定)と extract_vc_regex_intent_annotation() を baseline_vc_preflight.py から移設し、非 quote-aware だった _COMPOUND_SHELL_RE を置き換え。VcCommandEntry に vc_regex_intent / annotation_source_line / annotation_source_raw を追加し #589/#889 の provenance を losslessly 保持。 - baseline_vc_preflight.py: _command_entries_from_shared_parser() を 唯一の変換点として追加し、通常実行 / compute_canonical_vc_plan() / _distinct_command_texts_from_body() をこれに統一。grouped AC (# AC2, AC3)は set 順序に依存しない決定的な scalar ac ラベルへ 写像し、1 source command = 1 subprocess launch を維持。非 $ 行のみを含む body は canonical plan からは自然に除外され(新規 exception 型を投げずに fail-closed)、通常実行では新しい extraction_error として明示的に拒否する。 - 既存 test fixture(test_baseline_vc_preflight.py の1件、 test_vc_quality_guards.py の make_body ヘルパー)が legacy な非 $ コマンド許容に依存していた箇所を canonical `$ ` 形式へ更新。 - test_baseline_vc_preflight_shared_command_parser.py を新規追加し AC1-AC4/AC6-AC7/AC9-AC13 を固定。 compute_duplicate_diagnostic_report() は診断専用表示のため legacy parser のままとした(Issue の Out of Scope 明示事項)。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-2796/ The preview will be removed when this PR is closed. |
pr-review-judge 判定Mergeabilitymergeable=MERGEABLE, merge_state_status=BEHIND, isDraft=true, reviewed_head_sha=1d7d786d0155766fc9314d936b055d48dfca4bf9 Evidence Check
Blockers(なし) Warnings
verdict: APPROVE
reviewed_head_sha: "1d7d786d0155766fc9314d936b055d48dfca4bf9"
blockers: []
warnings:
- "reviewer session left a leftover local worktree/branch ref (pr2796-review) under its scratchpad dir; main repo tree is clean, no PR/main impact" |
pr-review-judge 再判定(update_branch 後の head)Mergeabilitymergeable=MERGEABLE, merge_state_status=CLEAN, isDraft=true, reviewed_head_sha=e8d6b279565f16826794f43b3a34d2b46d859bd9 Evidence Check
Blockers(なし) Warnings(なし) verdict: APPROVE
reviewed_head_sha: "e8d6b279565f16826794f43b3a34d2b46d859bd9"
blockers: []
warnings: [] |
判定REQUEST_CHANGES 相当です。 [PR #2796](https://github.com/squne121/loop-protocol/pull/2796?utm_source=chatgpt.com) 現 head は Draft / mergeable で、GitHub Actions の Findings
関連履歴との整合今回の方向は、#589 の「quoted regex alternation と shell pipe の区別」、#814 の grouped AC、#889 の annotation provenance、#993 / PR #1002 の shared VC parser 導入を引き継ぐものです。つまり parser authority を1本化する方針自体は正しいです。[Issue #589](https://github.com/squne121/loop-protocol/issues/589?utm_source=chatgpt.com) [Issue #889](https://github.com/squne121/loop-protocol/issues/889?utm_source=chatgpt.com) [PR #1002](https://github.com/squne121/loop-protocol/pull/1002?utm_source=chatgpt.com) 一方、その過去経緯から最も警戒すべきなのが「authority を統一した結果、旧 consumer の意味論を落とす」ことです。今回の P1-1 と P2 はまさにその型です。#2794 の Markdown fence pairing 問題は独立問題として既に切り出されているため、この PR に取り込む必要はありません。[Issue #2794](https://github.com/squne121/loop-protocol/issues/2794?utm_source=chatgpt.com) grouped AC の また、この修正のために新しい security layer や shell sandbox を追加する必要はないと考えます。Python も subprocess では argv sequence の利用を一般に推奨し、 マージ前の最小 fix_delta は、P1-1 の punctuation-run detector 修正+matrix追加、P1-2 の canonical plan fail-closed alignment、P2 の line provenance 修正の3点です。これらが入れば、PR #2796 の中心設計はかなり堅くなります。 GitHub への review/comment 投稿は行っていません。 |
|
確認結果、推奨は Issue #2788 の既存 PR #2796 をそのまま再開し、OWNER コメント P1 の技術的根拠も外部仕様で確認しました。Python の また、同型の再発防止策として Issue #2799「shared parser 移行時の consumer semantic parity を共通回帰 matrix で固定する」 を起票済みです。これは #2796 の修正を先送りするものではなく、非 blocking follow-up として分離しています。 以下を、すでに auto mode で起動中の対話的 Claude Code にそのまま渡すのが適切です。 対象は PR #2796 の OWNER コメント ID 目的は、PR #2796 をマージ直前の 現在確認済みの開始状態は以下です。 PR: #2796 まず live GitHub state を再取得し、head・Issue body・PR state・comments・review state・CI が上記から変化していないか確認してください。stale な情報を authority にしないでください。
今回の必須 fix_delta は3件です。 P1-A: 現在の 問題は shlex が 少なくとも以下が compound と判定されることを table-driven regression test で固定してください。
一方で quoted regex alternation の negative control、
は compound と判定してはいけません。 実装は新しい shell parser / security harness を導入せず、shlex token の punctuation run を一般化して検査する局所修正を優先してください。たとえば token が shlex punctuation characters のみから構成され、かつ既存契約上 compound 扱いする P1-B: non- 現在、normal execution は Issue #2788 AC2 / AC3 を満たすため、同一 body が whole-body rejection される場合は canonical plan 側も runnable/budget candidate を生成してはいけません。 例えば
を同一 bash fence に含む body では、normal execution が 0 execution candidate なら canonical plan も 新しい exception を caller に投げる方式は避け、AC13 の direct caller compatibility を維持してください。Allowed Paths 外の 現在の誤った期待値
を正しい reject semantics に修正してください。 P2: normal result の shared shared parser の既存 fence 前 prose、複数 bash fence、
を 上記3件は PR #2796 / Issue #2788 の現在スコープ内です。Issue #2799 に先送りしてはいけません。#2799 は将来の parser migration に対する reusable compatibility matrix を作る non-blocking follow-up です。この PR では、現在の3 blocker を最小差分で直してください。 grouped AC の 外部仕様確認が必要な P1-A については、 ここからは 各 iteration では root/main thread 自身が implementation や review judgment を代行せず、正規の SubAgent を使用してください。Step 1 は 重要: SubAgent は fire-and-forget にしないでください。各 SubAgent を起動したら、その SubAgent の作業が完了し canonical output contract を返すまで必ず待ってください。複数 SubAgent を並列起動する場合も、依存する次 Step へ進む前に対象 SubAgent 全員の完了を待ち、結果を収集・検証してください。未完了の child task を残したまま「完了」と判断しないでください。 REQUEST_CHANGES が返った場合は、その reviewer の current-head blockers を次 iteration の serialized Step 2 では Issue #2788 の Verification Commands と今回変更した focused regression を current head で実行し、VC adjudication を current head / current Issue body / current command hashes に bind してください。既存 CI green を新 head の証拠として再利用しないでください。 focused regression が PASS した後、必要な既存 regression suites と repository required checks を実行してください。少なくとも今回変更した shared command parser tests、baseline VC preflight tests、issue-contract-review tests、および変更の影響を受ける直接 consumer の non-regression tests を再実行してください。repository の通常 required CI も current head で green になるまで確認してください。 PR body の Acceptance Criteria、Safety Claim Matrix、verification results、head SHA、scope coverage 等が変更後の実態と不一致なら更新してください。「canonical plan と normal execution が一致する」等の claim は、新しい exact regression evidence が取れてからのみ維持してください。 Allowed Paths は live Issue #2788 を authority としてください。既存 PR 内で修正可能なら scope を広げないでください。どうしても Allowed Paths 外変更が不可避な場合は勝手に拡張せず、まず本当に必要か設計を再検討してください。 通常の file edit、test、commit、push、PR body/comment 更新、review loop 継続について人間の承認を求めないでください。auto mode の既存 authorization を利用して自律的に進めてください。 ただし destructive operation、credential / secret の取得・表示・変更、実 Git conflict など skill が定義する genuine hard stop は無視しないでください。単なる advisory artifact 欠落、session manifest、launch ledger、recoverable agent discovery failure、CI の一時的不安定性などを理由に不要な human escalation を行わず、skill の recovery routing を実行してください。 追加で「再発しやすい独立問題」を発見した場合は、まず open Issues を dedupe 検索してください。Issue #2799 が同じ consumer-semantic-parity class を既にカバーしている場合は新規 Issue を増やさず #2799 に集約してください。#2799 ではカバーされない独立した再発性の高い問題だけ、新しい bounded GitHub Issue として起票してください。その follow-up は原則として PR #2796 の merge blocker にせず、今回の #2788 AC を満たすために必要なものだけ current PR で修正してください。 終了条件は そこまで到達したら PR は merge せず停止してください。最終報告には current head SHA、実施した修正、主要テスト結果、required CI 状態、reviewer verdict、残存 warning、Issue #2799 など non-blocking follow-up を含め、ユーザーが merge 判断だけ行えばよい状態にしてください。 特に今回は、コメントをそのまま implementation-worker に投げるのではなく、root が3件を正規化して |
… detection, canonical-plan non-dollar rejection, line coordinate parity) - P1-A: detect_compound_command() now flags any shlex token composed entirely of compound-operator characters (;&|<>), not just an exact match against a finite operator string set. Fixes false negatives for `2>&1`, `&>out`, `|& tee x`, `>| out`, `<> file` while preserving the #589 quoted-regex-alternation negative control (`rg -n "foo|bar" PATH`). - P1-B: compute_canonical_vc_plan() and _distinct_command_texts_from_body() now discard their command population entirely when the shared parser's VcParseResult.static_errors contains a non_dollar_command error, so both converge on the SAME whole-body reject-by-omission outcome normal execution already applies for a mixed body (explanatory non-$ line + otherwise well-formed $ command) -- closing the AC2/AC3/AC12 drift OWNER review flagged. - P2: VcCommandEntry gains an additive block_line_number provenance field (block-relative, matching legacy parse_commands_from_block() semantics); _command_entries_from_shared_parser() now sources the legacy tuple's line_no from block_line_number instead of the section-relative line_number, so results[].line and annotation_source.line share the same coordinate system again. - Adds table-driven regression tests for all three (fix_delta P1-A/P1-B/P2) and corrects two pre-existing test assertions that encoded the P1-B drift bug as expected behavior. Ref: #2796 (comment) Co-Authored-By: Claude Sonnet 5 <[email protected]>
Summary
baseline_vc_preflight.pyの通常実行・compute_canonical_vc_plan()・_distinct_command_texts_from_body()を、--static-onlyが既に使っていた shared authority(vc_contract_syntax.parse_verification_commands_section()/VcParseResult.commands)に一本化した。新しい独立 parser は追加していない_command_entries_from_shared_parser()を追加し、VcCommandEntryを legacy 9-tuple 形状(ac_label, command, line_no, preflight_scope, vc_regex_intent, baseline_expect, vc_role, annotation_line_no, annotation_raw)へ純粋にデータ整形するvc_contract_syntax.py:detect_compound_command()(shlex ベースの quote-aware compound 判定、baseline_vc_preflight.pyから移設)とextract_vc_regex_intent_annotation()(同じく移設)を新設し、非 quote-aware だった_COMPOUND_SHELL_REを置き換えた。rg -n "foo|bar" PATHのような quoted regex alternation はもうcompound_shellと誤判定されないVcCommandEntryにvc_regex_intent/annotation_source_line/annotation_source_rawを追加し、実装: VC コマンドの正規表現メタ文字を shell pipe と誤判定しない検証を追加する #589 のvc-regex-intent: literal-pipe-oksemantics と 実装: baseline-expect VC annotation と deterministic repair pass で issue-refinement-loop 反復失敗を防ぐ #889 AC11 の annotation provenance を losslessly 保持したまま shared adapter 経由で通常実行へ流す# AC2, AC3)は_ac_refs_to_scalar_label()で set 順序に依存しない決定的な scalaracラベル(例:"AC2,AC3")へ写像し、1 source command = 1 canonical plan occurrence = 1 subprocess launch の不変条件を維持する$行(non_dollar_command)は shared parser の.commandsに一切現れないため、compute_canonical_vc_plan()からは新しい例外型を投げずに自然に除外される(fail-closed by omission)。通常実行では同じ行を明示的なextraction_error(status: blocked)として--static-onlyと一貫した形で拒否するcolon_marker/suffixed_marker/compound_shell/inline_backtick/preceding_marker_with_inline_suffixは、コマンド行自体は引き続き抽出される既存挙動(legacyparse_commands_from_block()の意図)を維持し、per-command 分類(例:compound_command_disallowed)に委ねているcompute_duplicate_diagnostic_report()は診断専用表示のため、意図的に legacy parser のまま変更していない(Issue 実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788 Out of Scope として明記)Checks
pnpm typecheckpnpm lintpnpm testpnpm buildSchema Change Applicability
not_schema_changebaseline_vc_preflight/v1の最終出力 JSON トップレベル schema・既存errors[]エントリ形状(kind/rule/message/minimal_context/fix_hint)は変更していない(ruleに新しい値VC004_NON_DOLLAR_COMMANDが追加で出現し得るのみ)。VcCommandEntryへのvc_regex_intent/annotation_source_line/annotation_source_raw追加は、外部に公開される wire format ではない内部 Python dataclass への additive フィールド追加であり、既存 attribute へのアクセスはすべて後方互換。Schema Consumer Inventory
N/A
reason: schema change ではないため対象 schema なし。
Safety Claim Matrix
baseline_vc_preflight.pyの通常実行・compute_canonical_vc_plan()・_distinct_command_texts_from_body()の 3 経路が同一の shared parser 由来のコマンド集合を返し、説明用 non-$行がどの経路でも subprocess 起動前の候補に昇格しないことを固定したuv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q-> 28 passed(fix_delta 追加分含む。詳細は「Fix Delta」節)vc_contract_syntax.pyの quote-aware compound 判定への統一後も、既存の compound / regex-literal-pipe / grouped AC / annotation provenance semantics(#589 / #889 / #814)が回帰していないことを固定したuv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -q-> 143 passed, 1 skipped /uv run --locked pytest .claude/skills/issue-contract-review/tests/ -q-> 598 passeddetect_compound_command()が2>&1/&>out等の punctuation-run 系 Bash redirect/pipe 演算子(正確な演算子文字列は上記 Fix Delta 節を参照)を compound として検出し、quoted regex alternation の回帰契約(上記 Fix Delta 節参照)は引き続き non-compound のままであることを固定したuv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -k "punctuation_run or quoted_regex_alternation_still_not_compound"-> 6 passed$行と正常な$ commandを同一 bash fence に含む body で、compute_canonical_vc_plan()と_distinct_command_texts_from_body()が通常実行と同じ「ゼロ occurrence / 空 command set」の whole-body reject-by-omission に収束することを固定した(以前は正常な$ commandから occurrence/budget candidate を生成してしまい drift していた)uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -k "canonical_plan or distinct_command_texts"-> 3 passedresults[].lineとannotation_source.lineが同一の座標系(block-relative、legacyparse_commands_from_block()と同じ)を指すことを、複数 bash fence + fence 前 prose +baseline-expectannotation を含む fixture で exact assertion により固定したuv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -k block_relative-> 2 passedvc_contract_syntax.py)を独立に import する他 skill(review-issue(VC grammar parity)、create-issue(validate_issue_body.py)、impl-review-loop(adjudicate_vc_result.py実 E2E 回帰)、issue-refinement-loop(budget wiring))が回帰していないことを確認したgrepで発見した直接 import 元に対する回帰実行に限定しているuv run --locked pytest .claude/skills/review-issue/tests/test_vc_grammar_parity.py .claude/skills/create-issue/scripts/tests/ .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py .claude/skills/issue-refinement-loop/tests/test_review_budget_wiring.py .claude/skills/issue-refinement-loop/tests/test_reviewer_transport_deadline_matches_vc_worst_case.py -q-> 全て PASS(内訳は「検証コマンド結果」参照)guard-issue-body.py::_strip_fenced_code_blocks()の orphan backtick/fence pairing。本 PR のスコープ外で既存トラック済み).claude/skills/issue-contract-review/scripts/tests/と.claude/skills/issue-contract-review/tests/配下の既存 regression fixture 2 件(test_baseline_vc_preflight.pyの1テスト、test_vc_quality_guards.pyのmake_body()ヘルパー)が legacy な非$コマンド許容に暗黙依存していたため、canonical$形式へ最小修正した。AC/VC の弱体化や削除ではなく、Issue の Outcome($必須の統一 grammar)に整合させる修正であるtest_baseline_vc_preflight.py -q/test_vc_quality_guards.pyを含むtests/ -qの全 PASS記載ルール確認:
Not controlledは semantic sufficiency の非保証のみであり、safe/read-only/sandboxed/isolated/completeを無限定に使用していないFollow-upは既存 Issue 実装: guard-issue-body.py の _strip_fenced_code_blocks() が prose 内の孤立backtick列を実fenceと誤ペアリングし template_guard を false-positive にする不具合を修正する #2794(Issue 本文で明示された pre-existing tracked issue、本 PR のスコープ外)を記載したNotes
compute_canonical_vc_plan()parse-error 契約の各 AC を実装したcompute_canonical_vc_plan()の parse-error rejection が Allowed-Paths 外の既存 direct caller に未処理例外を伝播させない)は、新しい例外型を追加せず「非 canonical 行を.commandsに含めない(fail-closed by omission)」設計で満たした。Allowed Paths の拡張は発生していないcompute_duplicate_diagnostic_report()は診断専用表示のため、legacyparse_commands_from_block()を使い続けている(Issue 実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788 Out of Scope として本文に明記済み)guard-issue-body.py::_strip_fenced_code_blocks()の orphan backtick/fence pairing)はスコープ外であり、本 PR では扱っていない修正差分(Fix Delta、OWNER レビュー対応、2026-09-27、commit 162ec1b)
PR review コメント(https://github.com/squne121/loop-protocol/pull/2796#issuecomment-5853307697)で指摘された 3 件の技術的推奨事項を実装した。いずれも既存の Allowed Paths(
.claude/skills/issue-contract-review/scripts/vc_contract_syntax.py/baseline_vc_preflight.py/scripts/tests/)内で解消し、Allowed Paths の拡張はしていない。detect_compound_command()を、有限の演算子文字列集合との完全一致判定から、「shlex トークンが compound 演算子文字(;&|<>)のみで構成されているか」という一般化された判定へ変更した。これにより2>&1/&>out/|& tee x/>| out/<> fileのような、punctuation_chars=Trueトークナイザが1トークンへ結合するがどの完全一致演算子文字列とも一致しなかった Bash 正式構文が compound として検出されるようになった。rg -n "foo|bar" PATH(実装: VC コマンドの正規表現メタ文字を shell pipe と誤判定しない検証を追加する #589 quoted regex alternation の回帰契約)は、トークンが英数字と|の混在(foo|bar)であり "compound 文字のみ" ではないため、引き続き non-compound のまま維持される。compute_canonical_vc_plan()と_distinct_command_texts_from_body()は、shared parser の parse result にnon_dollar_commandエラーが1件でも含まれる場合、command_tuples 全体を空にするよう変更した。修正前は、説明用 non-$行と正常な$ commandが同一 body に混在する場合、通常実行はゼロ subprocess 候補で whole-body reject するのに対し、compute_canonical_vc_plan()は正常な$ commandから occurrence/budget candidate を生成してしまい、AC2/AC3/AC12 の「3経路が同じ command set を持つ」契約からの drift になっていた。新しい例外型は追加せず、既存の fail-closed-by-omission 設計(このプランを直接呼ぶcontract_readiness_check.py/run_contract_review_once.py/run_root_review_pipeline.pyは Allowed Paths 外)をそのまま維持している。VcCommandEntryに additive な内部 provenance フィールドblock_line_number(bash fence 内での block-relative 1-based 行番号、legacyparse_commands_from_block()と同じ座標系)を追加し、_command_entries_from_shared_parser()の legacy 9-tuple 変換をこちらから line_no を取るよう変更した。修正前はresults[].lineが section-relative(VcCommandEntry.line_number)になっていたのに対し、annotation_source.lineは既に block-relative のままだったため、同一 result item 内で2つのlineフィールドが異なる座標系を指す semantic drift になっていた。VcCommandEntry.line_number自体の既存 semantics(section-relative)は破壊的に変更していない(他 consumer への影響を避けるため)。追加テスト(
test_baseline_vc_preflight_shared_command_parser.py、20件 -> 28件):2>&1/&>out/|& tee x/>| out/<> fileを compound=True として固定、rg -n "foo|bar" PATHを non-compound として固定する negative control)test_explanatory_non_dollar_line_excluded_from_canonical_planを exactcommand_occurrence_count == 0/command_occurrences == []/command_budgets == []へ修正(旧テストは== 1という誤った期待値を固定していた)、test_compute_canonical_vc_plan_never_raises_on_non_canonical_bodyを weak>= 0から exact== 0へ強化、test_explanatory_non_dollar_line_excluded_from_distinct_command_textsを_distinct_command_texts_from_body()も空リストを返すことを固定するよう修正baseline-expectannotation を含む fixture でresults[].line/annotation_source.line/annotation_source.rawを exact assertion で固定受け入れ条件の達成状況
vc_contract_syntax.parse_verification_commands_section()由来のVcParseResult.commandsを source of truth とする薄い shared adapter(_command_entries_from_shared_parser())から runnable command を取得し、legacyparse_commands_from_block()独自 grammar で command set を決めない —test_shared_adapter_is_the_single_conversion_point等で確認済みcompute_canonical_vc_plan()が AC1 と同一の command source を使用し、normal execution と command occurrence / budget candidate の集合が drift しない —test_compute_canonical_vc_plan_uses_shared_adapter_command_sourceで確認済み$行を含む fixture で、static-only / canonical plan / normal execution のいずれもその行を runnable command として扱わず、subprocess 起動前に non-canonical input として一貫して拒否する —test_explanatory_non_dollar_line_rejected_by_static_only/_by_normal_execution/_excluded_from_canonical_planで確認済み$ commandfixture では従来どおり command が抽出され、plan count と通常実行対象が一致する —test_canonical_body_extracted_and_executed_consistentlyで確認済み# ACN、grouped marker、inline AC suffix、preflight-scope、baseline-expect、vc-role、vc-regex-intent: literal-pipe-ok、annotation_source.line/rawの既存 shared parser semantics を回帰させない — 既存test_baseline_vc_preflight.py(143件+1 skip)/.claude/skills/issue-contract-review/tests/(598件)が全て PASS、加えてtest_annotation_source_line_and_raw_preserved_through_shared_parserで確認済みtest_distinct_command_texts_matches_normal_execution_command_set等で確認済みbaseline_vc_preflight.pyに新しい第三の command grammar parser を追加していない —test_shared_adapter_is_the_single_conversion_pointの docstring 根拠、および実装コードレビューで確認可能(parse_commands_from_block()はcompute_duplicate_diagnostic_report()専用のまま)test_baseline_vc_preflight.py(143件+1 skip)/.claude/skills/issue-contract-review/tests/(598件)rg -n "foo|bar" PATHのような quoted regex alternation を含む VC command がcompound_shell/compound_command_disallowedとして誤判定されない —test_quoted_regex_alternation_not_compound_shell_in_shared_parser/test_unquoted_pipe_is_still_compound_shell_in_shared_parser/test_detect_compound_command_is_the_single_shared_primitiveで確認済みrg -n "foo\|bar" PATHはアノテーションなしではregex_literal_pipe_suspected、# vc-regex-intent: literal-pipe-ok付きでは shared-parser 統一後の通常実行でも実行可能 —test_regex_literal_pipe_suspected_without_annotation/test_regex_literal_pipe_ok_annotation_permits_execution_after_migrationで確認済みac_refsrepresentation は set の iteration order に依存しない —test_grouped_ac_produces_exactly_one_result/test_grouped_ac_scalar_label_is_deterministic_regardless_of_set_orderで確認済み_distinct_command_texts_from_body()が AC1/AC2 で統一した command source と一致する command set を返す —test_distinct_command_texts_matches_normal_execution_command_set/test_explanatory_non_dollar_line_excluded_from_distinct_command_textsで確認済みcompute_canonical_vc_plan()の non-canonical parse-error rejection が既存 direct caller に未処理 Python exception を伝播させない。Allowed Paths は変更していない —test_compute_canonical_vc_plan_never_raises_on_non_canonical_body/test_compute_canonical_vc_plan_fully_non_canonical_body_zero_occurrencesで確認済み検証コマンド結果
head
162ec1b92d3730fd987d4ac018c4d9df8104702a(fix_delta commit、本 PR の最新 commit)で再検証済みであり、以下のとおり全て成功(PASS)した。uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q)を実行し、回帰テスト 28 件(fix_delta P1-A/P1-B/P2 追加分 8 件を含む)がすべて成功した(AC1-AC4, AC6, AC7, AC9-AC13 の根拠)uv run --locked pytest .claude/skills/issue-contract-review/tests/ -q)を実行し、既存の VC grammar 回帰テスト 598 件がすべて成功した(AC5 の根拠。main 側の他 PR マージにより 実装: VC コマンドの正規表現メタ文字を shell pipe と誤判定しない検証を追加する #589 検証時点の 589 件から増加)uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -q)を実行し、既存の baseline preflight 回帰テスト 143 件がすべて成功し、1 件は環境依存でスキップされた(AC8 の根拠)既存 non-regression suite(VC 対象外、追加安全確認。fix_delta 適用後の head で再実行済み):
uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/ -q-> 488 passed, 1 skippeduv run --locked pytest .claude/skills/review-issue/tests/test_vc_grammar_parity.py .claude/skills/create-issue/scripts/tests/ .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py .claude/skills/issue-refinement-loop/tests/test_review_budget_wiring.py .claude/skills/issue-refinement-loop/tests/test_reviewer_transport_deadline_matches_vc_worst_case.py -q-> 539 passeduv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -q-> 24 passeduv run ruff check .claude/skills/issue-contract-review/scripts/vc_contract_syntax.py .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py-> no issuespnpm typecheck/pnpm lint/pnpm build/pnpm test: 本 fix_delta の変更対象は Python スクリプトのみ(.claude/skills/issue-contract-review/scripts/**)のため影響なしと判断し、fix_delta commit では再実行していない(元 commit1d7d786d時点では全て成功済み。上記「Checks」参照)Allowed Paths 遵守
git diff --name-only main...HEADで確認した変更ファイルは全て Issue #2788 の Allowed Paths に収まる:.claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py.claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py.claude/skills/issue-contract-review/scripts/vc_contract_syntax.py.claude/skills/issue-contract-review/scripts/vc_contract_syntax.py.claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py.claude/skills/issue-contract-review/scripts/tests/.claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py(新規).claude/skills/issue-contract-review/scripts/tests/.claude/skills/issue-contract-review/tests/test_vc_quality_guards.py.claude/skills/issue-contract-review/tests/tests/fixtures/issue-body/は Allowed Paths に含まれていたが、既存 fixture(review-issue の VC grammar parity テストが共有参照)で必要な回帰は inline body で構成できたため、新規追加していない。