Repository navigation
feat: VC baseline-fail pytest command を canonical form に正規化する compiler を追加 - #1305
Conversation
…r を追加 (#1285) issue-contract-review の VC preflight で 3 回の修正往復が発生した根本原因 (既存 test file への -k 未作成テスト名 / 既存 file への missing node-id が 禁止形であることを author が知らずに書いてしまう)を解消するため、 vc_baseline_shape_compiler.py を追加し、禁止形を canonical な missing-file node-id 形式(`missing_new_test_file.py::test_name`)へ 決定論的に rewrite する。 - vc_baseline_shape_compiler.py(新規): -k / node-id の禁止形を検出し、 Allowed Paths 内の安全な候補にのみ rewrite hint を生成する (複合 -k 式・class/parametrized selector は not_autofixable) - issue_contract_hygiene_autofix.py に VC shape rewrite を配線 (sha256 guard で 2 回目実行時は no_change) - body-authoring.md に canonical table を追記 (marker: pytest_baseline_fail_canonical_rules) - baseline_vc_preflight.py の exit 5 hard block 契約に矛盾していた stale test を現行契約に合わせて更新 baseline_vc_preflight.py の exit code 判定契約(exit 4 + file-not-found の み expected_baseline_fail、exit 5 は vc_no_tests_collected hard block)は 変更していない。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URLPreview removed (PR #1305 closed). |
- test_baseline_vc_preflight.py の assert f-string を 2 行に分割し E501(122>120) を解消 - body-authoring.md の英語のみ見出し 9 箇所に日本語併記を追加し、per-block Japanese Check の aggregate_ratio 不足(0.542<threshold)を解消
fix_delta iteration 1 対応報告前回 CI FAIL の 2 点を修正し 1. Ruff E501 (Line too long, 122 > 120)
ローカル確認: 2. PR Body Japanese Check (whole-file per-block)
ローカル確認: Regression 確認Allowed Paths / Scope Delta の変更はありません(既存 2 ファイルの局所修正のみ)。 |
AC7 用フィクスチャに日本語の地の文が無く PR Body Japanese Check (threshold 0.1) が FAIL していたため、フィクスチャ冒頭に説明コメントを 追加した。参照される pytest コマンド自体は変更していない。
|
fix_delta iteration 2 対応完了。
検証結果:
commit: dca6f8a |
Verdict: REQUEST_CHANGESMergeability
Evidence Check
Blockers
ALLOWED_PATHS_GATE_RESULT_V1(review_subagent 独立再計算、allowed_paths_review_gate.py の matcher v2 grammar をロジックとして手動適用。正式な expected_contract_fingerprint snapshot バインディングは contract-review コメントの body_sha256=48d085b4... を参照):
Non-blockers
Notereview_subagent は root checkout 上のガードレール制約により gh pr review コマンドが github_mutation として拒否されたため、本コメントは gh pr comment で代替投稿している(verdict の内容・スキーマ自体は不変)。self-authored PR のため通常運用でも --comment 相当の非承認コメントであり、判定意味は変わらない。 LOOP_VERDICT_V2verdict: REQUEST_CHANGES
|
pr-review REQUEST_CHANGES 対応。scripts/tests/fixtures/ は Allowed Paths 対象外のため、pytest_exit5_no_tests.md を issue-contract-review/tests/ fixtures/ へ移動し test_baseline_vc_preflight.py の参照パスを追従させた。
Allowed Paths gate blocker 対応 (iteration 3)
検証結果
head: 884ed96 |
|
LOOP_VERDICT_V2: verdict=REQUEST_CHANGES reviewed_head_sha=884ed96ceb36684b2f929900b5e09f13f2f1d5bc merge_ready=false |
|
LOOP_VERDICT_V2
|
LOOP_VERDICT_V2 (review re-run, head 884ed96)verdict: REQUEST_CHANGES 要旨前回(head dca6f8a)の Allowed Paths 逸脱(.claude/skills/issue-contract-review/scripts/tests/fixtures/pytest_exit5_no_tests.md が Allowed Paths に不一致)は、head 884ed96 でフィクスチャを .claude/skills/issue-contract-review/tests/fixtures/pytest_exit5_no_tests.md へ移動する形で対応されています。しかし allowed_paths_review_gate.py を再計算した結果、依然として fail_closed です。 理由: git diff --name-status で確認したところ、.claude/skills/issue-contract-review/scripts/tests/fixtures/pytest_exit5_no_tests.md は本 PR で削除(D)されています。この旧パスは PR #1305 由来のファイルではなく、#850(50decd0)で main に既に存在していた既存ファイルであり、test_baseline_vc_preflight.py の test_pytest_exit5_no_tests_collected_expected_fail からのみ参照されていました。Issue #1285 の Scope Clarifications はこのテスト自体の更新/削除を認めていますが、Allowed Paths には .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py (単一ファイル)のみが列挙されており、scripts/tests/fixtures/ 配下は含まれていません。allowed_paths_review_gate.py は追加だけでなく削除も変更されたパスとして扱うため、Allowed Paths 外のパスへの削除操作も fail_closed になります。 対応候補(いずれか):
追加で、PR 本文に必須の 受け入れ条件の達成状況 / 検証コマンド結果 / Allowed Paths 遵守 セクションが見当たりませんでした(Checks セクションはあるが AC ごとのチェックボックス+根拠形式ではない)。次回修正時に併せて追加してください。 CI は head 884ed96 で全 required check SUCCESS、mergeStateStatus CLEAN を確認済みです(ci_verdict_summary.py status all_pass)。 LOOP_VERDICT_V2 (machine readable, YAML block without code fence due to tool constraint)LOOP_VERDICT_V2: (self-authored PR につき gh pr review --comment/--approve/--request-changes は hook により root checkout から一律ブロックされたため、hook 許可経路である gh pr comment を用いて本 verdict を記録した) |
|
test line one and line two |
|
line one |
|
before fence key: valueafter fence |
LOOP_VERDICT_V2 (review re-run, head 884ed96, allowed_paths gate 再計算)verdict: REQUEST_CHANGES 要旨allowed_paths_review_gate.py の fail_closed 原因(#1285 Scope Delta 未記載)は、Issue #1285 本文の Scope Delta 追記(2026-07-03、旧フィクスチャ .claude/skills/issue-contract-review/scripts/tests/fixtures/pytest_exit5_no_tests.md を Allowed Paths へ追加)と、その後の run_contract_review_once.py --mode static 再実行(body_sha256=63b36dff...→go)により解消を確認しました。allowed_paths_review_gate.py を、拡張後 Allowed Paths(7パターン)・head 884ed96・diff_base_sha=4e82df85(merge-base 再検証済み)で再実行した結果、status: ok、changed_files 7件すべて allowed_paths_list に一致、violations=0 です(下記 allowed_paths_gate 参照)。 CI は ci_verdict_summary.py --pr 1305 --expected-head-sha 884ed96... で再確認し、status: all_pass(required check 全 SUCCESS、stale なし)です。 一方、前回レビュー(head 884ed96)で並記していたもう一つの blocker(PR 本文に「受け入れ条件の達成状況」「検証コマンド結果」「Allowed Paths 遵守」の必須見出しが無い)は、本 PR コードが変更されていないため未解消のままです(Summary/Checks/Schema Change Applicability/Schema Consumer Inventory/Safety Claim Matrix/Notes のみで、AC ごとの [x]/[ ] + 根拠 形式のセクションが無い)。これは意味論的な hygiene blocker(mechanical: false)として残します。 加えて、再確認時点で mergeStateStatus が BEHIND(mergeable=MERGEABLE)に変化しています(origin/main が PR branch 後に進んでいるため)。BEHIND 自体は blocker としませんが、update_branch の required_auto_action を追加し、merge_ready は false のままにします。 Evidence
Notereview_subagent は root checkout 上のガードレールにより gh pr review が github_mutation として拒否されたため、本コメントは gh pr comment で代替投稿している(verdict の内容・スキーマは不変)。self-authored PR のため通常運用でも --comment 相当であり判定意味は変わらない。 LOOP_VERDICT_V2:
verdict: REQUEST_CHANGES
reviewed_head_sha: "884ed96ceb36684b2f929900b5e09f13f2f1d5bc"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
blockers:
- "PR body に 受け入れ条件の達成状況/検証コマンド結果/Allowed Paths 遵守 の必須見出しが無い(mechanical: false, 未解消・前回から継続)"
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
mechanical: true
blocking_merge_ready: true
expected_head_sha: "884ed96ceb36684b2f929900b5e09f13f2f1d5bc"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
producer_role: review_subagent
worker_report_used_as_canonical: false
pr_number: 1305
base_ref: main
diff_base_sha: "4e82df8586410f4c267e1deb61594c6f5c1e98e1"
base_sha: "4e82df8586410f4c267e1deb61594c6f5c1e98e1"
head_sha: "884ed96ceb36684b2f929900b5e09f13f2f1d5bc"
reviewed_head_sha: "884ed96ceb36684b2f929900b5e09f13f2f1d5bc"
changed_files_source: git_diff_name_status_find_renames_z
changed_files_count: 7
changed_files:
- ".claude/skills/create-issue/references/body-authoring.md"
- ".claude/skills/edit-issue/scripts/issue_contract_hygiene_autofix.py"
- ".claude/skills/issue-contract-review/scripts/tests/fixtures/pytest_exit5_no_tests.md"
- ".claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py"
- ".claude/skills/issue-contract-review/scripts/vc_baseline_shape_compiler.py"
- ".claude/skills/issue-contract-review/tests/fixtures/pytest_exit5_no_tests.md"
- ".claude/skills/issue-contract-review/tests/test_pytest_vc_baseline_shape_compiler.py"
violations: []
contract_fingerprint:
issue_number: 1285
contract_source_kind: issue
contract_source_id: "1285"
contract_body_sha256: "sha256:63b36dff96f7cb8b2ae8752be6f2e36fad98acc8b07c8f29feb1192fa7b07e7a"
allowed_paths_normalized_sha256: "616afa0866017237b3add60d97302f693083ebcb8eece596f9667a11044cc88b"
base_ref: main
base_sha_at_snapshot: "5383dc3c4e83e66994ac69fe43af482500ae37d5"
allowed_paths_gate_source: review_subagent
ci_verdict:
status: all_pass
failed_checks: []
pending_checks: []
stale_checks: [] |
LOOP_VERDICT_V2 (review re-run, head e91c9ed)要旨前回(head 884ed96)の blocker は2点とも解消を確認しました。
Evidence
Blockersなし。 Notereview_subagent は root checkout 上のガードレールにより gh pr review が github_mutation として拒否されたため、本コメントは gh pr comment で代替投稿している(verdict の内容・スキーマは不変)。self-authored PR のため通常運用でも --comment 相当であり判定意味は変わらない。 LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: "e91c9ed3f4786ffb6a3450505bbbe34be6ab0aa6"
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
producer_role: review_subagent
worker_report_used_as_canonical: false
pr_number: 1305
base_ref: main
diff_base_sha: "6caa60820e84524b7867fc693f094e2477704002"
base_sha: "6caa60820e84524b7867fc693f094e2477704002"
head_sha: "e91c9ed3f4786ffb6a3450505bbbe34be6ab0aa6"
reviewed_head_sha: "e91c9ed3f4786ffb6a3450505bbbe34be6ab0aa6"
changed_files_source: git_diff_name_status_find_renames_z
changed_files_count: 7
changed_files:
- ".claude/skills/create-issue/references/body-authoring.md"
- ".claude/skills/edit-issue/scripts/issue_contract_hygiene_autofix.py"
- ".claude/skills/issue-contract-review/scripts/tests/fixtures/pytest_exit5_no_tests.md"
- ".claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py"
- ".claude/skills/issue-contract-review/scripts/vc_baseline_shape_compiler.py"
- ".claude/skills/issue-contract-review/tests/fixtures/pytest_exit5_no_tests.md"
- ".claude/skills/issue-contract-review/tests/test_pytest_vc_baseline_shape_compiler.py"
violations: []
contract_fingerprint:
issue_number: 1285
contract_source_kind: issue
contract_source_id: "1285"
contract_body_sha256: "sha256:63b36dff96f7cb8b2ae8752be6f2e36fad98acc8b07c8f29feb1192fa7b07e7a"
allowed_paths_normalized_sha256: "616afa0866017237b3add60d97302f693083ebcb8eece596f9667a11044cc88b"
base_ref: main
base_sha_at_snapshot: "5383dc3c4e83e66994ac69fe43af482500ae37d5"
allowed_paths_gate_source: review_subagent
ci_verdict:
status: all_pass
failed_checks: []
pending_checks: []
stale_checks: [] |
判定: REQUEST_CHANGESPR #1305 の方向性は妥当です。 ただし、現時点では merge-ready と扱うべきではありません。 Blocker 1: 現在 head が最終 APPROVE 対象とズレているPR メタデータ上、現在の これは実装の良否以前に、レビュー証跡が stale です。 Blocker 2: Allowed Paths の「ディレクトリ許可」意味論を compiler が実装していないIssue/レビュー運用では しかし実装された これは AC1/AC2 の「Allowed Paths 内の missing-file node-id」に対して狭すぎます。現実の Issue body が 修正は、 追加テストは必須です。 Blocker 3: VC shape compiler の load failure が fail-open になっている
これは今回の PR の主目的と矛盾します。VC shape repair は「任意の補助」ではなく、Issue #1285 の completion condition です。compiler の syntax error、path 間違い、import 失敗で silently disabled されると、review loop 削減機能が壊れているのに CI や hygiene 実行が no-op として通ります。 推奨修正: Blocker 4: repair 順序が事前レビューの推奨と違うIssue #1285 の事前レビューでは、hygiene repair 順序は この順序だと、C9 が Allowed Paths 判定で先に fail-closed する状況と VC shape repair の相互作用をテストしにくくなります。現テストの AC5 も既に 修正は単純です。VC shape repair を C9 より前に移し、以下の regression を追加してください。 High risk: partial rewrite が non-autofixable VC を隠す
pytest の 推奨は Medium: pytest parser が一般 CLI に弱い
pytest --rootdir . some_dir/test_existing.py -k test_new_name
pytest -p no:doctest some_dir/test_existing.py -k test_new_namepytest は plugin loading の Medium: nonexistent file の node-id を何でも canonical 扱いしている
pytest missing_file.py::NotATestClass::method
pytest missing_file.py::not_test_name
pytest missing_file.py::test_func[param]Issue #1285 の固定 schema/契約は Medium: exit 5 fixture が将来の docs 構成に依存している新 fixture は より決定論的にするなら、テスト内で一時空ディレクトリを作り、fixture body を動的に生成するか、repo 内に「pytest discovery 対象が絶対にない専用空ディレクトリ」を持たせるべきです。 修正指示案結論として、機能の狙いは正しいが、現在 head の検証 stale と Allowed Paths matcher 不一致だけで REQUEST_CHANGES です。特に matcher 不一致は、この PR が解こうとしている「Issue author が最初から正しい canonical VC を書ける状態」を実運用で空振りさせます。 |
Allowed Paths のディレクトリ許可意味論を vc_baseline_shape_compiler.py に 実装し、issue_contract_hygiene_autofix.py の VC shape 復旧を fail-closed (compiler load 失敗 / changed+not_autofixable 混在時) にし、復旧順序を C4 -> VC shape -> C9 -> sha256 guard に変更する。pytest CLI パーサーの 未対応構文と欠損ファイル node-id の複雑形も not_autofixable に倒し、 exit5 fixture を専用の空ディレクトリに置き換えて脆い前提を解消する。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Iteration 4 対応(fix_delta)head
Regression 確認(worktree 内で実行、全 PASS)Issue #1285 の AC1〜AC7 Verification Commands も全件個別に実行し PASS を確認済みです。 変更ファイルはすべて Issue #1285 の Allowed Paths 内(Scope Delta 不要)。 |
|
test comment placeholder |
|
line one |
|
LOOP_VERDICT_V2 独立再検証の結果、前回 adversarial review (PR #1305 コメント) の Blocker2/3/4 と High/Medium risk 全項目が commit 9abdc39(review iteration 4)で実コードに反映されていることを確認した。以降の e1d0734(現行 head)は main からの merge commit のみで、issue-contract-review / edit-issue / create-issue 配下の実装ファイルへの差分は皆無(git diff 9abdc39 e1d0734 で確認、merge が持ち込んだのは無関係な gemini-cli-headless-delegation 系の main 側変更のみ)。呼び出し元から渡された reviewed_head_sha(9abdc39c 系列)は現行 head に対して stale だったため、本 verdict は実際の現行 head e1d0734 を基準に判定した。 検証内容:
Allowed Paths遵守(独立再計算): 実changed files 7件はすべてIssue #1285のAllowed Paths(7エントリ、うち2件はディレクトリ許可)に収まる。逸脱なし。 CI / Mergeability: ci_verdict_summary.pyをexpected-head-sha=e1d0734cで実行しall_pass(failed 0 / pending 0)。gh pr view再取得でmergeStateStatus: CLEAN(レビュー時点のBLOCKEDはCI完走待ちのみが原因で、完走後に解消済み)。 AC coverage: Issue #1285のAC1-AC7全件、実コード・実テストファイルを突き合わせて確認(AC6のcanonical table markerもbody-authoring.mdに存在確認済み)。 verdict: APPROVE |
…#2516) * feat(baseline-vc-preflight): honor baseline-expect:fail for existing-file missing node-id existing_file_missing_node_id_noncanonical (Issue #1285/#1347/PR #1305) always forced needs_fix for a pytest VC referencing a not-yet-created node-id (class or function) inside an EXISTING allowed file, with the only fix_hint being "move to a not-yet-created file". That has no resolution when the OWNER has explicitly required the new test to live in the existing file (Issue #2152), since vc_baseline_shape_compiler.py's autofix only covers top-level function node-ids and only proposes not-yet-created files already in Allowed Paths. An explicit author-declared `# baseline-expect: fail` annotation now overrides this ambiguity heuristic and classifies the VC as expected_fail/go instead, for both class and function node-ids. Without the annotation, prior behavior is unchanged. Closes #2515. Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix: add Japanese description prose to new fixture markdown files PR Body Japanese Check's "Check changed Markdown files" step scans every changed *.md file (not just the PR body) for Japanese prose ratio, with no exemption for test fixtures. The 3 new fixtures had zero prose outside the bash fence, causing an aggregate_ratio: 0.000 failure. Adds one Japanese sentence describing each fixture's purpose above the Verification Commands heading, matching the existing fixture convention in this test suite. Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Test <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
Summary
-k <未作成関数>/ 既存 file への missing node-id)を検出し、canonical な missing-file node-id 形式へ決定論的に rewrite するvc_baseline_shape_compiler.pyを追加した。issue_contract_hygiene_autofix.pyに VC shape rewrite を配線し、issue-contract-reviewの VC 表現往復(実装: issue-refinement-loop の critical_external_claims 型不一致を解消する #1277 で 3 回発生)を削減した。body-authoring.mdに canonical table を追記し、Issue author が最初から正しい形式を書けるようにした。baseline_vc_preflight.pyの exit 5 hard block 契約と矛盾していた stale test(test_pytest_exit5_no_tests_collected_expected_fail)を現行契約に合わせて更新した。Checks
標準 4 コマンドと関連するユニットテストをすべて実行し、全件成功を確認した。既存テストへの退行は発生していない。
pnpm typecheck pnpm lint pnpm test pnpm build uv run --locked pytest .claude/skills/issue-contract-review/tests/test_pytest_vc_baseline_shape_compiler.py -q uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -q uv run --locked pytest .claude/skills/edit-issue/tests/test_issue_contract_hygiene_autofix.py -q uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.pytest_pytest_vc_baseline_shape_compiler.py): 11 件すべて成功test_baseline_vc_preflight.py: 112 件成功、1 件スキップ、退行なしtest_issue_contract_hygiene_autofix.py: 20 件すべて成功、退行なしSchema Change Applicability
Schema Consumer Inventory
新規スキーマ
vc_baseline_shape_compiler/v1の consumer は本 PR で追加するissue_contract_hygiene_autofix.py(repair_vc_baseline_shape())のみであり、既存 consumer への影響はない。.claude/skills/edit-issue/scripts/issue_contract_hygiene_autofix.pycompile_body()を呼び出し、status: changedの rewrites のみ適用するSafety Claim Matrix
vc_baseline_shape_compiler.py::_synthesize_candidate()がallowed_paths集合との照合を必須とする。test_ac3_not_autofixable_when_no_safe_candidate_in_allowed_pathsで検証baseline_vc_preflight.pyの pytest exit code 判定契約(exit 4 + file-not-found のみ expected_baseline_fail、exit 5 は hard block)は変更しないvc_baseline_shape_compiler.pyは独立ファイル)。test_baseline_vc_preflight.py全 112 tests passissue_contract_hygiene_autofix.pyへの配線は既存 C4/C9 autofix の挙動を壊さないtest_issue_contract_hygiene_autofix.py20 tests すべて regression なし受け入れ条件の達成状況
existing_test_file.py -k test_new_nameは、test_new_nameが単一 bare identifier の場合のみ、Allowed Paths 内の missing-file node-id への rewrite hint(suggested_command)を返す —test_ac1_dash_k_new_test_name_rewrittenPASS(test_pytest_vc_baseline_shape_compiler.py11 件中)existing_test_file.py::test_missing_nameは、AST 静的解析で missing と確認できる単純 function node-id の場合のみ canonical missing-file node-id への rewrite hint を返す —test_ac2_missing_node_id_on_existing_file_rewrittenPASS-kexpression(boolean / class selector / parametrized selector)または Allowed Paths 外候補の場合はnot_autofixableを返し、body を変更しない —test_ac3_not_autofixable_complex_expression/test_ac3_not_autofixable_when_no_safe_candidate_in_allowed_pathsPASSmissing_new_test_file.py::test_nameはalready_canonicalと判定され、hygiene autofix は no-op になる —test_ac4_missing_file_node_id_already_canonicalPASSissue_contract_hygiene_autofix.py経由で VC shape rewrite が適用され、2 回目実行は sha256 guard によりno_changeになる —test_ac5_hygiene_autofix_applies_vc_shape_then_no_changePASSbody-authoring.mdに markerpytest_baseline_fail_canonical_rulesを持つ canonical table が追加される —rg -c pytest_baseline_fail_canonical_rules .claude/skills/create-issue/references/body-authoring.md→1test_pytest_exit5_no_tests_collected_expected_fail)が更新・削除され、baseline_vc_preflight.pyの exit 5 hard block 契約が regression しない — 旧テスト名は本 PR で削除・置換済みのため-k test_pytest_exit5_no_tests_collected_expected_failは113 deselected(exit 5、pytest の「該当テストなし」exit code。VC 契約上のvc_no_tests_collectedhard block とは別の意味で、Scope Clarifications が明記する「旧テスト名は削除される想定」どおりの結果)。exit 5 hard block 契約自体の regression はtest_baseline_vc_preflight.pyフルスイート 112 件 PASS(1 件 skip)で確認検証コマンド結果
worktree head
884ed96c時点で以下を実行(コマンドは Issue #1285 の Verification Commands を使用)。pytest .../test_pytest_vc_baseline_shape_compiler.py::test_ac1_dash_k_new_test_name_rewritten -qpytest .../test_pytest_vc_baseline_shape_compiler.py::test_ac2_missing_node_id_on_existing_file_rewritten -qpytest .../test_pytest_vc_baseline_shape_compiler.py::test_ac3_not_autofixable_complex_expression -qpytest .../test_pytest_vc_baseline_shape_compiler.py::test_ac4_missing_file_node_id_already_canonical -qpytest .../test_pytest_vc_baseline_shape_compiler.py::test_ac5_hygiene_autofix_applies_vc_shape_then_no_change -qrg -c pytest_baseline_fail_canonical_rules .claude/skills/create-issue/references/body-authoring.md1(PASS)pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -k test_pytest_exit5_no_tests_collected_expected_fail -q113 deselected(旧テスト名は本 PR で更新・削除済みのため意図どおり。置換後の契約は同ファイルのフルスイート 112 passed, 1 skipped で regression なしを確認)regression 確認(PR repair 時点で再実行):
pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -qpytest .claude/skills/issue-contract-review/tests/test_pytest_vc_baseline_shape_compiler.py -qpytest .claude/skills/edit-issue/tests/test_issue_contract_hygiene_autofix.py -qruff check --select E,F --ignore E402 .claude/scripts scripts schemas .claude/skillsAllowed Paths 遵守
変更ファイル一覧(
gh pr view 1305 --json files)は Issue #1285 の Allowed Paths(Scope Delta 反映後の 7 エントリ)にすべて収まっている。.claude/skills/create-issue/references/body-authoring.md— Allowed Paths 記載どおり.claude/skills/edit-issue/scripts/issue_contract_hygiene_autofix.py— Allowed Paths 記載どおり.claude/skills/issue-contract-review/scripts/tests/fixtures/pytest_exit5_no_tests.md— Allowed Paths 記載どおり.claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py— Allowed Paths 記載どおり.claude/skills/issue-contract-review/scripts/vc_baseline_shape_compiler.py— Allowed Paths 記載どおり.claude/skills/issue-contract-review/tests/fixtures/pytest_exit5_no_tests.md—.claude/skills/issue-contract-review/tests/配下として Allowed Paths 記載どおり.claude/skills/issue-contract-review/tests/test_pytest_vc_baseline_shape_compiler.py—.claude/skills/issue-contract-review/tests/配下として Allowed Paths 記載どおりAllowed Paths 外の変更なし。
Notes
Runtime Verification Applicability: not_applicable)。reviewer_claim_replayの taxonomy parity、Issue metadata mutation の controlled executor 化は Remaining Parent Gaps として別 Issue で扱う(Issue 本文記載どおり)。