Repository navigation
Closed
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1380"
ancestor_issue: "#1370"
goal_ref: "required CI の snapshot write を禁止し、baseline candidate と canonicalization の境界を reviewed PR に限定する"
change_kind: mixed
preflight_scope: pr_review_only
runtime_verification_applicability: not_applicable
baseline_expect: passbaseline_expect は legacy default であり、各 Verification Command 直前の # baseline-expect: を本 Issue の実行前判定に使用する。
Parent Issue
Parent Goal Ref
- Goal: 導入: 右側 command rail をゲーム内 DOM overlay に統合する #1370 の battle-stage DOM overlay VRT を、未完成 UI を
frozenbaseline として凍結しない段階導入にする。 - Desired Destination: 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 を VRT rollout tracker として維持し、子 Issue ごとに registry、fixture、VRT、CI、update guard、advisory triage、後続 baseline 昇格を追跡する。
Dependencies
- Depends on: 実装: VRT CI evidence matrix と artifact validator を active suite 対応に拡張する #1387(completed)
- Component VRT update support: deferred to 実装: Vitest Browser Mode component VRT を report-only scaffold として追加する #1389
Current Validated Scope
- 実装: VRT CI evidence matrix と artifact validator を active suite 対応に拡張する #1387 は CLOSED で、既存 visual artifact pipeline と baseline review checklist は main に存在する。
- 実装: Vitest Browser Mode component VRT を report-only scaffold として追加する #1389 は OPEN で、Vitest Browser Mode component VRT は未導入である。
- 本 Issue は Playwright E2E と将来の Vitest invocation を静的に保護する snapshot policy に限定する。
Remaining Parent Gaps
test:vrt:update:component、@vitest/browser-playwright、vitest.visual.config.ts、component VRT は 実装: Vitest Browser Mode component VRT を report-only scaffold として追加する #1389 の責務とする。- repository rules、CODEOWNERS、branch protection による human review 強制は別の運用・設定責務とする。
Outcome
required CI lane では Playwright が missing snapshot を含む tracked snapshot を作成・更新できず、既知の workflow・local composite action・package script 経路にある Playwright/Vitest の write-capable update mode は policy validator が拒否する。CI artifact または pinned local environment が baseline candidate を生成すること自体は禁止しない。candidate は reviewed PR に明示的に commit されるまで canonical baseline ではない。本 Issue のコードが保証するのは既知の required CI snapshot-write 経路の拒否までであり、human review の実施強制は repository rules と運用契約に依存する。
In Scope
package.jsonに local/manual candidate generation 用のtest:vrt:update:e2eを追加し、Playwright update mode を明示する。playwright.config.tsで CI 時のupdateSnapshots: 'none'を明示し、ローカル通常実行と明示的 update script を壊さない。scripts/check-vrt-snapshot-policy.pyを新設し、repository 内の workflow、workflow から参照される local composite action、bounded な package script 解決を構造解析する。- write-capable Playwright/Vitest update mode と
pnpm test:vrt:update:e2eの直接・間接呼出しを拒否し、safe mode と無関係な command を許可する。 - update-sensitive invocation に unresolved expression、matrix、env、shell variable がある場合、malformed YAML の場合、または validator CI wiring が欠落する場合は fail-closed にする。
scripts/tests/test_check_vrt_snapshot_policy.pyを新設し、safe/unsafe mode、YAML comment、python -u、indirect package script、local composite action、unresolved interpolation、malformed YAML、CI wiring を検証する。.github/ci/python-test-plan.jsonと.github/workflows/ci.ymlに validator test と validator execution を配線する。docs/dev/visual-baseline-registry.mdに candidate producer、canonicalization authority、persistence、enforcement limitation を区別して記載し、既存 baseline review checklist を保持する。- baseline PNG は追加・更新しない。
Out of Scope
- baseline PNG の生成、追加、更新。
test:vrt:update:component、@vitest/browser-playwright、vitest.visual.config.ts、tests/visual/**、実装: Vitest Browser Mode component VRT を report-only scaffold として追加する #1389 の実装。- CI が candidate artifact を生成すること自体の全面禁止。
- repository rules、CODEOWNERS、branch protection の変更、または static validator が human review 実施を保証するという主張。
- external visual SaaS、arbitrary shell call graph parser、
scripts/check-visual-artifact-pipeline.pyへの新責務の混入。 - issue-refinement-loop、planner、controlled executor の変更。
Acceptance Criteria
- AC1:
test:vrt:update:e2eが local/manual candidate generation 専用として明示的な Playwright update mode で追加され、required CI から直接・間接に呼び出されない。 - AC2: required CI では
playwright.config.tsがupdateSnapshots: 'none'に解決され、flag がなくても missing snapshot を作成・更新できない。 - AC3: validator が Playwright/Vitest の write-capable mode と update package script 呼出しを拒否する。
- AC4: validator が workflow、local composite action、bounded な package script の既知の間接経路を構造解析する。
- AC5: validator が safe mode、通常の Playwright/Vitest command、
python -u、YAML comment・説明文だけの update flag を許可する。 - AC6: unresolved interpolation、malformed YAML、validator CI wiring 欠落を fail-closed にする。
- AC7: docs が candidate producer、canonicalization authority、persistence、enforcement limitation を区別し、既存 baseline review checklist を保持する。
- AC8: baseline PNG を変更せず、policy validator unit tests、typecheck、lint、test、build、policy validator が PASS する。
Verification Commands
# AC1
# baseline-expect: fail
$ rg -n "test:vrt:update:e2e" package.json
# AC2
# baseline-expect: fail
$ rg -n "updateSnapshots.*none" playwright.config.ts
# AC3
# baseline-expect: fail
$ uv run --locked pytest scripts/tests/test_check_vrt_snapshot_policy.py::test_rejects_write_capable_playwright_and_vitest_modes -q
# AC4
# baseline-expect: fail
$ uv run --locked pytest scripts/tests/test_check_vrt_snapshot_policy.py::test_rejects_indirect_package_script_and_composite_action_paths -q
# AC5
# baseline-expect: fail
$ uv run --locked pytest scripts/tests/test_check_vrt_snapshot_policy.py::test_allows_safe_modes_python_u_and_comment_text -q
# AC6
# baseline-expect: fail
$ uv run --locked pytest scripts/tests/test_check_vrt_snapshot_policy.py::test_fails_closed_for_interpolation_malformed_yaml_and_missing_wiring -q
# AC7
# baseline-expect: pass
$ rg -n "baseline 変更 PR のレビュー checklist" docs/dev/visual-baseline-registry.md
# AC8
# baseline-expect: pass
# preflight-scope: pr_review_only
$ pnpm typecheck
# AC8
# baseline-expect: pass
# preflight-scope: pr_review_only
$ pnpm lint
# AC8
# baseline-expect: pass
# preflight-scope: pr_review_only
$ pnpm test
# AC8
# baseline-expect: pass
# preflight-scope: pr_review_only
$ pnpm buildRuntime Verification Applicability
- decision: not_applicable
- reason: 本 Issue の acceptance は static policy、config、unit test、CI wiring で完結し、baseline を書き換える update command を readiness では実行しない。AC8 の regression commands は runtime evidence ではなく PR review-only の構造 gate とする。
OWNER Anchor Traceability
- P0-1: candidate producer、canonicalization authority、persistence を Outcome と registry docs で分離し、CI artifact の生成自体を禁止しない。
- P0-2: required CI の
updateSnapshots: 'none'を AC2 と config test で検証する。 - P0-3: workflow、local composite action、bounded package script の既知経路を AC3・AC4 の dedicated validator が構造解析する。
- P0-4: component update と未解決 split dependency を削除し、実装: Vitest Browser Mode component VRT を report-only scaffold として追加する #1389 に deferred する。
- P0-5: dedicated pytest で write-capable mode、safe mode、false positive、unresolved input、malformed YAML、wiring を検証する。
- P0-6: human review enforcement は repository rules と運用に依存することを Outcome と docs に明記する。
- P0-7: global default ではなく、各 VC の
# baseline-expect:を使用する。 - P1:
scripts/check-visual-artifact-pipeline.pyを変更せず、snapshot policy 専用 validator と unit test を追加する。
Allowed Paths
package.jsonplaywright.config.tsscripts/check-vrt-snapshot-policy.pyscripts/tests/test_check_vrt_snapshot_policy.pyscripts/tests/test_check_vrt_snapshot_policy.py::test_rejects_write_capable_playwright_and_vitest_modesscripts/tests/test_check_vrt_snapshot_policy.py::test_rejects_indirect_package_script_and_composite_action_pathsscripts/tests/test_check_vrt_snapshot_policy.py::test_allows_safe_modes_python_u_and_comment_textscripts/tests/test_check_vrt_snapshot_policy.py::test_fails_closed_for_interpolation_malformed_yaml_and_missing_wiring.github/ci/python-test-plan.json.github/workflows/ci.ymldocs/dev/visual-baseline-registry.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合。
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合。
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)。
- 後続 Phase / 別スコープへの波及が判明した場合。
- nested SubAgent delegation が必要になった場合。
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合。
- 実装: Vitest Browser Mode component VRT を report-only scaffold として追加する #1389 の実装なしでは本 Issue の AC を満たせないことが実証された場合。
- baseline PNG の追加・更新、repository settings mutation、secret、破壊的操作が必要になった場合。
- arbitrary shell interpreter が必要になる場合、または validator に human review enforcement を担わせる必要がある場合。
Required Skills
- GitHub Actions
- Python
- Playwright
- Vitest
Required Design References
docs/dev/visual-baseline-registry.md.github/workflows/ci.ymlplaywright.config.tspackage.jsonscripts/check-visual-artifact-pipeline.py
Scope Delta
- 追加: required CI snapshot read-only config、snapshot policy validator、unit tests、CI wiring、local E2E update script。
- 削除: component update script、未解決の split Issue dependency、文字列検索だけの validator verification。
- 変更: CI update flag 一律禁止を write-capable mode と canonicalization boundary の明示へ置換。
Delivery Rule
- 1 Issue = 1 PR。
- 作業前に current body に対する fresh
CONTRACT_REVIEW_RESULT_V1 status: goを取得する。 - 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 は rollout tracker として残し、本 Issue は Allowed Paths 内で完結させる。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Aug 1, 2026
判定
REQUEST_CHANGES — 現状の本文では実装着手不可です。
目的自体は妥当ですが、#1388 は「baseline を生成する場所」と「baseline を正として採用する権限」を混同しています。また、禁止対象の列挙、依存関係、テスト可能性が現在の Playwright/Vitest とリポジトリ実装に追随していません。
#1388 には後続コメントがなく、現在の本文を上書きする owner decision もありません。親 #1380 のレビュー要求をほぼそのまま分割した状態です。
P0 ブロッカー
P0-1.
local-human-onlyという境界が誤っています必要なのは次の分離です。
Playwright は baseline と比較実行を同一環境で行うよう要求しています。Vitest の現行公式ガイドも、ローカル生成ではなく、制御された環境での手動 CI update workflow を有効な構成として提示しています。したがって「CI で生成した時点で禁止」ではなく、CI が自動的に baseline を正として commit・merge・同一 run の expected に採用することを禁止するのが正しい境界です。 ([Playwright]1)
このリポジトリ自身も既に同じ結論に到達しています。
--update-snapshotsを実行し、baseline を再生成しました。したがってタイトルと Goal は、例えば次へ変更すべきです。
P0-2. flag がなくても Playwright は snapshot を書き込みます
現行
playwright.config.tsにはupdateSnapshotsの明示設定がありません。Playwright の既定値は
updateSnapshots: 'missing'です。つまり--update-snapshotsも-uもなくても、missing snapshot は生成されます。CI を本当に read-only にするには、少なくとも CI ではupdateSnapshots: 'none'を明示する必要があります。ところが #1388 の Allowed Paths にはplaywright.config.tsが含まれていません。 ([Playwright]2)さらに、次の安全な指定まで一律禁止してはいけません。
--update-snapshots=none--update=nonePlaywright は
all / changed / missing / none、Vitest はtrue|all / new / noneを持ちます。禁止すべきなのは write-capable mode であって、option 名の存在自体ではありません。 ([Playwright]3)P0-3. この Issue が追加する package script 自体が validator の迂回経路になります
workflow が次を実行した場合、
workflow YAML 内には
--update-snapshotsが一文字も現れません。そのため本文どおりの「workflow command context から flag を探す」実装は、自分で追加した更新 script を検出できません。現行 CI は既に
pnpmpackage scripts とローカル composite actions を多用しています。package script、.github/actions/**/action.yml、再利用 workflow、matrix/env 経由の引数を無視して.github/workflows/**の literalrunだけを解析しても、CI から到達可能な実行経路は監査できません。 GitHub Actions は env/matrix context、composite action、reusable workflow による間接実行を正式にサポートしています。 ([GitHub Docs]4)最低限、validator は次を検査する必要があります。
.github/workflows/**/*.yml|yamlの literalruntest:vrt:update:*の package script 名の直接呼出し任意の shell call graph を完全解析する必要はありません。ただし、解析できない経路を「安全」と見なしてはいけません。
P0-4.
test:vrt:update:componentは現在実行不能です#1388 の依存は依然として
split Issue 3、split Issue 4という未解決名です。現在は #1387 が完了済み、component VRT 本体の #1389 は未実装・OPEN です。現行
package.jsonにはtest:vrt:component、@vitest/browser-playwright、vitest.visual.config.tsがありません。したがって次のいずれかが必要です。
do_not_startとする「Prefer after」では不十分です。実行対象そのものが存在しません。
P0-5. AC4 を検証する test path が Allowed Paths にありません
本文は「grep ではなく YAML を構造解析する」と要求していますが、Verification Commands は実質的に次の存在確認です。
rg "yaml"rg "expected"これは構造解析、false-positive 回避、exit status、否定系を一切証明しません。しかも Allowed Paths に unit test や fixture がありません。
直前の #1387 / PR #1813 は、同じ validator に正常系・否定系 unit tests を追加し、
python-testlane に常設しています。現行 main にもその test suite が存在します。#1388 にも少なくとも以下が必要です。
--update-snapshots=noneが pass--update=noneが passpython -uが false positive にならないpnpm test:vrt:update:e2eが failP0-6. 「human review 必須」は docs と validator では強制できません
#1388 が実装するのは package scripts、docs、static validator です。これらで保証できるのは「既知の CI update 経路を拒否する」ことまでであり、「baseline PNG が人間にレビューされた」ことではありません。
GitHub 上でレビューを強制するには、required pull request reviews、CODEOWNERS と required Code Owner review、ruleset、bypass 制限などの repository-side enforcement が必要です。 ([GitHub Docs]5)
リポジトリ設定まで扱わないなら、Goal は次のように限定すべきです。
P0-7.
baseline_expect: failが現行 main と一致しません現行 registry には既に以下があります。
したがって AC2 と AC5 は少なくとも部分的または完全に baseline pass です。
Issue 全体を一律
baseline_expect: failにすると、refinement/implementation loop でVCP_UNEXPECTED_PASSが発生する可能性があります。AC ごとに次を明記すべきです。P1 設計上の問題
validator の責務が既存 script と合っていません
scripts/check-visual-artifact-pipeline.pyは capture、comparator、artifact digest、summary wiring を検証する既に大きな validator です。CI command policy は別の責務です。推奨構成は次です。
これを
python-testlane から実行してください。既存 monolith に shell/YAML/package-script policy まで混在させるより、障害原因と test fixture が明確になります。-u単体の禁止規則が曖昧です-uは Playwright/Vitest 以外でも使用されます。例えばpython -uを拒否してはいけません。runner executable と subcommand を認識し、少なくとも次の形で判定する必要があります。推奨する最小修正版
Outcome
Dependencies
In Scope
test:vrt:update:e2eplaywright.config.ts updateSnapshots: 'none'必須 Allowed Paths
削除すべき項目
test:vrt:update:componentDepends on: split Issue 3Prefer after: split Issue 4rg "yaml"やrg "expected"を合否根拠とする Verification最終評価
#1388 は廃止する必要はありません。ただし現在のまま実装すると、次の不正な状態が発生します。
nonemode を誤検出するしたがって、「CI update flag 禁止」から「required CI の snapshot read-only 保証+human canonicalization 境界」へ契約を修正してから実装すべきです。
squne121 commentedon Aug 1, 2026
issue-refinement-loop: human_escalation
PLANNER_FAIL_CLOSED:contract_update.run.with_anchorは trusted contract patch を生成できず、本文更新・fresh review・fresh readiness を fail-closed で停止した。squne121 commentedon Aug 1, 2026
推奨アクション
同じ
contract_update.run.with_anchorを再実行するのではなく、今回の指示を OWNER の明示承認として、正規のedit-issuetransaction で #1388 のタイトル・本文を直接更新するのが適切です。その後、live body に対する fresh issue review と contract readiness を取得し、goなら実装・Draft PR まで継続させます。理由は、設計判断自体はアンカーで既に具体化されており、停止原因は「trusted contract patch を生成できなかったこと」に限定されているためです。ガードを弱めたり refinement-loop 実装を修正したりする必要はありません。
現行
mainでは Playwright のupdateSnapshotsが未指定で、更新用・component 用 package script もまだ存在しません。#1387 は完了済み、#1389 は OPEN なので、component VRT を #1388 から除外すれば #1389 を待たずに進行できます。Playwright は snapshot 更新の既定値が
missingで、CI でも明示的にnoneにしなければ missing snapshot を生成し得ます。Vitest は現在、CI では既定で書き込みませんが、-u、all、newなどの明示指定は書き込み可能です。([Playwright]1)以下を Codex CLI に貼り付けてください。
squne121/loop-protocolの Issue #1388 を、human escalation から復旧させ、Issue contract の更新、fresh review、fresh readiness、可能なら実装と Draft PR 作成まで続行してください。対象:
squne121/loop-protocol最優先方針
作業を停止することではなく、正規経路で続行することを優先してください。
現在の
PLANNER_FAIL_CLOSEDは、技術設計が未決だからではなく、contract_update.run.with_anchorが trusted contract patch plan を生成できず、controlled mutation lane が本文を更新できなかったことによる停止です。今回のプロンプトを、次の OWNER 判断として扱ってください。
ただし、以下は禁止します。
PLANNER_FAIL_CLOSEDを無視して成功扱いすることgh issue edit、rawgh issue commentによる production mutationissue-refinement-loop実装の変更による今回限りの迂回1. 実行前確認
canonical main root / default branch から開始してください。
以下を確認してください。
git status --shortgit branch --show-currentgit worktree listgh auth statuspackage.jsonplaywright.config.ts.github/workflows/ci.yml.github/actions/**/action.ymlおよびaction.yaml.github/ci/python-test-plan.jsondocs/dev/visual-baseline-registry.mdscripts/check-visual-artifact-pipeline.pyscripts/tests/test_check_visual_artifact_pipeline.py.claude/skills/issue-refinement-loop/SKILL.md.claude/skills/edit-issue/SKILL.md.agents/skills/edit-issue/SKILL.md.claude/skills/issue-contract-review/SKILL.md同じ
contract_update.run.with_anchorを最初のアクションとして再実行しないでください。現在の Issue body が変わっていない限り、同じ停止を繰り返す可能性があります。2. サブエージェントの使用
gpt-5.3-codex-sparkを優先してください。最初に少なくとも2つの
spark-deepサブエージェントを並行起動してください。いずれも read-only とします。spark-deep A: contract reconstruction
入力:
タスク:
SPARK_AGENT_RESULT_V1のみ返すspark-deep B: adversarial AC/VC audit
タスク:
VCP_UNEXPECTED_PASSを起こす不正なbaseline-expect: failを検出するrgの存在確認だけになっていないか確認するpython -uなどの false positive を検出するSPARK_AGENT_RESULT_V1のみ返す必要な場合だけ
web-researcherを追加し、次の公式一次資料に限定して現行仕様を確認してください。updateconfig / CLIブログや二次情報を根拠にしないでください。
spark-deepは Issue mutation や最終 verdict を行わせず、分析結果を main thread が統合してください。3. #1388 の目標契約
以下を下限としてください。細部は live repository と deterministic checker に合わせて修正できますが、OWNER anchor の要求を弱めてはいけません。
推奨タイトル
実装: required CI を snapshot read-only に固定し baseline canonicalization を reviewed PR 境界に限定するタイトルが達成保証を過大表現すると判断した場合は、次でも構いません。
実装: required CI の snapshot write を禁止し baseline canonicalization 境界を明文化するMachine-Readable Contract
基本方針:
issue_kind: implementationparent_issue: "#1380"ancestor_issue: "#1370"change_kind: mixedbaseline_expectだけに依存せず、各 Verification Command に# baseline-expect:を付けるruntime_verification_applicabilityは現行 checker に従い再判定するnot_applicableとし、理由を明記するDependencies
必須:
Depends on: #1387 (completed)Component VRT update support: deferred to #1389削除:
Depends on: split Issue 3Prefer after: split Issue 4test:vrt:update:component#1389 を #1388 の hard dependency にして作業停止させないでください。component update は #1389 に委譲し、#1388 は Playwright E2E と将来の Vitest 経路を拒否できる policy validator に限定します。
Outcome
少なくとも次を表現してください。
4. 必須 In Scope
test:vrt:update:e2eの追加playwright.config.tsupdateSnapshots: 'none'に解決されることdedicated validator:
scripts/check-vrt-snapshot-policy.pydedicated unit tests:
scripts/tests/test_check_vrt_snapshot_policy.py.github/workflows/**/*.yml|yamlの構造解析workflow から参照される local composite action の
runs.steps[].runの構造解析package.jsonscripts の bounded な解決pnpm test:vrt:update:e2eの直接・間接呼出し拒否Playwright の write-capable update mode の拒否
Vitest の write-capable update mode の拒否
safe mode と write-capable mode の区別
update-sensitive command に unresolved env/matrix/expression がある場合の fail-closed
malformed YAML の fail
YAML comment、説明文、無関係な
-uの false positive 回避validator 自身の required CI wiring
unit test file の
.github/ci/python-test-plan.json登録registry docs の producer / authority / persistence 境界修正
既存 baseline review checklist の保持
baseline PNG は変更しない
任意の shell call graph を完全解析する大規模ハーネスにはしないでください。対象は repository 内の既知の GitHub Actions、local composite actions、package scripts、Playwright/Vitest invocation に限定します。
5. 必須 Out of Scope
test:vrt:update:component@vitest/browser-playwrightの導入vitest.visual.config.tsの導入tests/visual/**の追加scripts/check-visual-artifact-pipeline.pyへの新責務の混入6. Acceptance Criteria の下限
以下を独立した AC として検証可能にしてください。
test:vrt:update:e2eが local/manual candidate generation 用として存在する。最低限必要な unit test ケース
Fail:
playwright test -uplaywright test --update-snapshotsplaywright test --update-snapshots=allplaywright test --update-snapshots=changedplaywright test --update-snapshots=missingvitest -uvitest --updatevitest --update=allvitest --update=newpnpm test:vrt:update:e2e${{ ... }}、matrix、env、shell variable がある場合noneでない場合Pass:
playwright test --update-snapshots=nonevitest --update=nonevitest --update=falsepython -u script.py各 mode の正確な現行仕様は公式 docs を再確認してください。
7. Allowed Paths
原則として次に限定してください。
package.jsonplaywright.config.tsscripts/check-vrt-snapshot-policy.pyscripts/tests/test_check_vrt_snapshot_policy.py.github/ci/python-test-plan.json.github/workflows/ci.ymldocs/dev/visual-baseline-registry.md依存追加が不要なら
pnpm-lock.yamlを追加しないでください。.github/actions/**は validator の読取対象ですが、変更が不要なら Allowed Paths に追加しないでください。fixture は unit test 内の
tmp_path等で構築し、独立 fixture ファイルが本当に必要と確認されるまではtests/fixtures/**を追加しないでください。8. Verification Commands の作成規則
bash形式を使う# ACnを置くrgだけで済ませないrgは literal script key や文言の存在確認に限定する# baseline-expect: pass# baseline-expect: fail# baseline-expect: pass# preflight-scope: pr_review_onlyを使用するbaseline_vc_preflight.pyの allowlist と grammar を実際に実行して確認するrg "yaml"やrg "expected"のような trivially-pass VC を使用しない9. Issue body の正規更新
candidate body を repo-relative temporary file に保存してください。
primary analysis は
spark-deepの結果を使用しますが、Issue mutation は次のいずれかの正規経路だけを使用してください。優先:
issue-authoragent を mutation adapter として使用.agents/skills/edit-issue/SKILL.mdから canonical.claude/skills/edit-issue/SKILL.mdを読み、edit_issue_txn.pyを実行issue-authorは独立した再設計判断を行わせず、Spark が作成した candidate contract を正規 transaction へ渡す役割に限定してください。mutation 前に少なくとも以下を行ってください。
check_vc_scope.py --body-file <candidate>ISSUE_EDIT_TXN_INPUT_V1の生成title_update.required: truereadiness payload を偽造しないでください。
human_judgmentやinput_or_runtime_errorをgoに書き換えてはなりません。body-author-fixable な checker failure は candidate body を修正して再実行してください。環境障害または非修正可能な authority conflict だけを停止理由とします。
10. 更新後の fresh review
Issue body 更新後、古い review artifact や body hash を再利用しないでください。
次の順で実行してください。
spark-deepによる短い adversarial read-only auditissue-reviewerによる fresh reviewREVIEWED_BODY_SHA256と live body hash の一致確認needs-fixが body-author-fixable なら、最大3 iteration まで自動修正issue-contract-reviewCONTRACT_REVIEW_RESULT_V1 status: goの取得同じ planner failure を再発させるだけのために issue-refinement-loop 全体を最初から再実行しないでください。まず明示承認済みの body update を完了し、その live body に対して review/readiness を行ってください。
成功後、Issue に簡潔な resolution comment を controlled publish してください。最低限、以下を含めます。
PLANNER_FAIL_CLOSEDは trusted patch generation failure として解消したこと11.
go後の実装続行fresh contract readiness が
goなら、確認待ちで止まらず、同一セッションで実装へ続行してください。spark-deepを使うspark-workerを限定的に使用してよいspark-workerにはtask_scopeと正確なallowed_pathsを渡すspark-workerに行わせない12. 停止してよい条件
次の場合だけ停止してください。
edit-issuetransaction の実行権限・環境が実際に利用不能単に
PLANNER_FAIL_CLOSEDが以前発生したこと、subagent が懸念を述べたこと、VC が最初に失敗したことだけでは停止しないでください。13. 最終報告
最終出力には以下を含めてください。
長い raw logs やサブエージェント transcript は返さず、artifact path、GitHub URL、body hash、検証結果を返してください。
このプロンプトでは、Spark を主要な分析主体として使いながら、Issue mutation と正式 verdict だけを専用の正規エージェント/skill に残しています。
spark-deepは実際にgpt-5.3-codex-sparkの high reasoning read-only agentとして構成されています。[-]実装: VRT snapshot update を local-human-only に固定し CI update flag を禁止する[/-][+]実装: required CI を snapshot read-only に固定し baseline canonicalization を reviewed PR 境界に限定する[/+]squne121 commentedon Aug 1, 2026
Contract Review Result
squne121 commentedon Aug 1, 2026
implement-issue: 実装完了
.claude/worktrees/issue-1388-vrt-snapshot-policyworktree-issue-1388-vrt-snapshot-policy06fe16eecedc5f8f42b6d02201bc4bd85068e113pnpm typecheck/lint/test/buildは Issue contract のpreflight-scope: pr_review_onlyにより PR review gate で実施します。pr-review-judgeによる current-head review → CI 完了後のマージ判定 → post-merge-cleanupsqune121 commentedon Aug 1, 2026
implement-issue: 実装完了
06fe16eecedc5f8f42b6d02201bc4bd85068e113.claude/worktrees/issue-1388-vrt-snapshot-policyworktree-issue-1388-vrt-snapshot-policyCI_TEST_PERFORMANCE_DECISION_V1を PR 本文に記録済み。current-head CI は PR review の証跡として待機。pr-review-judgeによる current-head reviewsqune121 commentedon Aug 1, 2026
Contract Review Result
fix(vrt): snapshot policy validatorの回避経路を拒否する (#1388)
test(vrt): Issue contractのsnapshot policy nodeidを維持する (#1388)
feat(vrt): required CI の snapshot write を拒否する (#1930)