Repository navigation
feat(#299): plan_child_materialization.py を導入し delivery-rollup child materialization を全 skill 横断で保証する - #315
Conversation
…materialization を全 skill 横断で保証する delivery-rollup parent の child issue が(未起票)のまま放置されないよう、 CHILD_MATERIALIZATION_PLAN_V1 schema を中核として全 skill に handoff 動線を整備する。 - docs/dev/agent-skill-boundaries.md: CHILD_MATERIALIZATION_PLAN_V1 schema 定義を追加 - .claude/skills/create-issue/scripts/plan_child_materialization.py: read-only plan 生成スクリプトを新規作成 - .claude/skills/create-issue/tests/test_plan_child_materialization.py: #254 相当 fixture で 31 件テストを新規作成 - .claude/skills/create-issue/SKILL.md: delivery-rollup child materialization 手順(4a)を追記 - .claude/skills/edit-issue/SKILL.md: delivery-rollup-parent-update mode を追記 - .claude/skills/issue-refinement-loop/SKILL.md: Step 4.5 child materialization gate を追加 - .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md: delivery-rollup mandatory_follow_up 処理を追記 - .claude/skills/open-pr/SKILL.md: Step 3.5 Parent Child Materialization セクションを追加 - .claude/skills/post-merge-cleanup/SKILL.md: Section 6a delivery-rollup 残り child 検出を追加 - docs/dev/workflow.md: delivery-rollup parent handoff 手順セクションを追加、ssot-catalog.md 参照を修正 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #299: delivery-rollup parent の child materialization 全 skill 横断保証
総合判定
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BLOCKED
baseline_only: false
verification_commands_pass: 11
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []詳細所見AC1(schema 定義): AC2(script 存在): AC3(分類テスト): AC4(create-issue SKILL.md): 4a ステップとして「Delivery-rollup parent の child materialization」セクションを追加。 AC5(edit-issue SKILL.md): AC6(issue-refinement-loop SKILL.md): Step 4 「Deliver-rollup parent の child materialization」として approve 前ゲート。 AC7(skill 横断):
AC8(Allowed Paths): 変更は 10 ファイル(skill 6 個 + docs 4 個)で全て許可リスト内。 品質ゲート結果
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=BLOCKED(branch protection による通常の BLOCKED。conflict なし)
Evidence Check
- AC coverage: AC1〜AC8 全て
[x]かつ根拠記載あり。placeholder 残存なし - Allowed Paths: diff 10 ファイル(
.claude/skills/create-issue/SKILL.md,plan_child_materialization.py,test_plan_child_materialization.py,.claude/skills/edit-issue/SKILL.md,.claude/skills/issue-refinement-loop/SKILL.md,.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md,.claude/skills/open-pr/SKILL.md,.claude/skills/post-merge-cleanup/SKILL.md,docs/dev/workflow.md,docs/dev/agent-skill-boundaries.md)が全て Allowed Paths 内。逸脱なし - CI Verification: GitHub Actions の
lintジョブはactions/checkout段階の認証エラーで失敗(ESLint 未実行)。インフラ起因の一時的エラー。build/test/typecheck/python-testは全 PASS。test-runner がpnpm lintを直接実行して PASS を確認済み(verification_commands_fail: 0、verification_skipped_count: 0) - 検証コマンド結果: 全 AC の検証コマンドが PR 本文に記録されており、test-runner も AC1〜AC8 + Quality 11 項目全 PASS を確認
- Schema Consumer Inventory:
CHILD_MATERIALIZATION_PLAN_V1新規定義(schema_change)。Schema Change Applicability セクションあり。Consumer 6 件(create-issue, edit-issue, issue-refinement-loop, impl-review-loop, open-pr, post-merge-cleanup)全て更新済み。未対応なし - Safety Claim Matrix:
.claude/skills/**変更につき safety-sensitive。Safety Claim Matrix あり(3 行)。plan_child_materialization.py は read-onlyのNot controlled列に「GitHub API 呼び出し失敗時の挙動」が記載されているが、これは read-only 性の射程(GitHub Issue を変更しない)に影響しない bounded claim であり APPROVE 禁止条件には該当しない。PR タイトルに無限定のsafe/read-only等の記載なし
Blockers
なし
Non-blockers(任意改善)
- GitHub Actions の
lintジョブが認証エラーで失敗している。ESLint 自体の問題ではなくインフラ側のactions/checkout認証問題と推測されるため、必要であれば workflow の checkout 設定を確認することを推奨(本 PR の mergeability には影響しない)
LOOP_VERDICT
LOOP_VERDICT:
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: BLOCKED
reviewed_head_sha: 0563b4cbb9ec16efe5661977207b07abac44c4ef
follow_up_issue_requests: []
判定REQUEST CHANGES。 ただし、現実装はまだ “delivery-rollup child materialization を機械的に保証する” 水準には届いていません。主因は、 良い点PR #315 は #299 の AC を素直に満たす形で、schema 定義、新規 read-only script、fixture test、6 skill への導線追加、
Blockers1. closed child issue を
|
…N_PLAN_V2 Blocker 1: closed child issues are now classified as `existing_closed` (not `ambiguous`) via individual `gh issue view` calls. Blocker 2: `_fetch_open_issues()` removed; per-issue view failure is isolated — records a warning and marks that child `ambiguous` without making the whole plan non-actionable. Blocker 3: `_parse_child_lines()` now scopes to the `## Child Issues` section only; content outside that heading boundary is ignored. Blocker 4: `_extract_parent_mode()` returns `'unknown'` when absent instead of defaulting to `delivery-rollup`; unknown mode yields `human_escalation` for all children. Blocker 5: schema upgraded to V2 — adds `closure_mode`, `repo`, `source`, `generated_at`, `body_sha256`, `issue_lookup.complete`, `existing_issue` object (number/state/state_reason/url), `existing_issue_candidates`. docs/dev/agent-skill-boundaries.md updated. Blocker 6: dedupe search via `gh issue list --state all --search "<dedupe_key>"` populates `existing_issue_candidates`. Blocker 7: `parent_body_updates` now line-oriented patch format with `section`, `line_number`, `old_line`, `new_line`, `expected_match_count`. Blocker 8: `--body-file` (dry_run) mode classifies issue refs as `existing_unverified` instead of `ambiguous`. Blocker 9: regression tests added — 61 tests cover closed child, section scoping, lookup failure, unknown parent_mode, duplicate match, dry-run unverified. All 61 pass. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #299: delivery-rollup parent の child 自動起票インフラ(iteration 1 修正)実行環境: 品質ゲート実行結果
AC 検証マトリクス
iteration 1 修正対応(B1〜B9 全て実装確認)
構造化判定TEST_VERDICT:
result: FAIL
mergeable: MERGEABLE
merge_state_status: BEHIND
baseline_only: false
verification_commands_pass: 7
verification_commands_fail: 1
verification_skipped_count: 0
runtime_ac_results: []FAIL 原因(AC4)create-issue SKILL.md が CHILD_MATERIALIZATION_PLAN_V1 参照のまま
修正手順
総合評価
結論: PR は品質ゲート全て通過、61 個の pytest も成功、iteration 1 修正 (B1-B9) も全て実装済みです。ただし AC4 の要件として SKILL.md の V2 参照が必須です。上記修正を実施後に再検証をお願いします。 |
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
baseline_only: false
verification_commands_pass: 6
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC4
command: "rg -n 'CHILD_MATERIALIZATION_PLAN_V2|plan_child_materialization' .claude/skills/create-issue/SKILL.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "CHILD_MATERIALIZATION_PLAN_V2 doc 更新確認 - 2行マッチ"
- ac: AC1
command: "rg -n 'CHILD_MATERIALIZATION_PLAN_V2' docs/dev/agent-skill-boundaries.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "schema 正本マーク確認 - 3行マッチ"
- ac: AC8
command: "git diff --name-only main...HEAD | grep -v allowed paths && PASS check"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "Allowed Paths 外の変更なし"
- ac: "All (pytest)"
command: "uv run pytest .claude/skills/create-issue/tests/test_plan_child_materialization.py --tb=short -q"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "61 passed in 0.04s"
- ac: "All (pnpm typecheck)"
command: "pnpm typecheck"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "No TS errors"
- ac: "All (pnpm lint && test && build)"
command: "pnpm lint && pnpm test && pnpm build"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "ESLint OK, Vitest 25 passed, Vite build OK"検証結果レポートIssue #299: delivery-rollup parent の child materialization 標準化 — iteration 1 修正
総合判定
iteration 1 修正(SKILL.md V2)は全検証を通過しました。PR は マージ可能 (mergeable: MERGEABLE) です。 |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=BEHIND(main より後ろだが conflict なし)
Evidence Check
AC coverage: Issue #299 の AC1〜AC8 は iteration 1 修正で schema が V2 に昇格したが、PR 本文に ## 受け入れ条件の達成状況 チェックボックスセクションが存在しない。Blocker Resolution テーブルと Verification Results テーブルは存在し、TEST_VERDICT_MACHINE(最新)が verification_commands_pass: 6, verification_commands_fail: 0, verification_skipped_count: 0 を報告しているため、実質的な VC 証跡は揃っている。ただし明示的な AC 対応チェックリストが欠落している点は template 非準拠。
Allowed Paths: 変更 10 ファイルはすべて Issue #299 の Allowed Paths リスト内。AC8 = PASS。
CI Verification: build ジョブが fail しているが、ログを確認したところ fatal: could not read Username for 'https://github.com': terminal prompts disabled(GitHub Actions runner の auth 設定失敗)によるもの。コード品質起因ではなく、runner インフラ問題。lint / typecheck / test / python-test はすべて PASS。TEST_VERDICT_MACHINE の verification_commands_fail: 0 を CI 証跡相当として扱う。
検証コマンド結果: Verification Results テーブルで全 6 コマンドが PASS と記録されている。TEST_VERDICT_MACHINE(最終)も同内容を機械可読形式で確認済み。
Runtime Verification: Issue #299 の decision: not_applicable。Runtime Verification 証跡確認は不要。
Schema Change Applicability: PR は CHILD_MATERIALIZATION_PLAN_V1 を V2 に更新し、新規 schema を docs/dev/agent-skill-boundaries.md に追加している。schema-governance.md の Initial Known Schemas には CHILD_MATERIALIZATION_PLAN が未登録のため新規 schema 追加に該当する。PR 本文に ## Schema Change Applicability セクションが存在しない(Step 4.5 APPROVE 禁止条件)。
Safety Claim Matrix: 変更パスに .claude/skills/** が含まれており(6 skill ファイル)、skill の変更は safety-sensitive path 条件に該当する。PR 本文に "read-only" キーワードも存在する。PR 本文に ## Safety Claim Matrix セクションが存在しない(Step 4.6 APPROVE 禁止条件)。
Blockers
-
[SCHEMA]
## Schema Change Applicabilityセクションが PR 本文に存在しない
PR はCHILD_MATERIALIZATION_PLAN_V1 → V2の schema 変更(新規 schema 追加)を含む。schema_change_applicability: schema_change | not_schema_change | uncertainの明示と、schema_change の場合は## Schema Consumer Inventory(consumer 列挙rg出力・更新有無・Compatibility Decision を含む)が必要。
APPROVE 禁止条件(Step 4.5)。 -
[SAFETY]
## Safety Claim Matrixセクションが PR 本文に存在しない
.claude/skills/**変更は safety-sensitive path 条件を満たす(Step 4.6 判定)。Safety Claim Matrix(Claim / Implemented? / Not controlled / Evidence / Follow-up列)が必要。PR は "read-only plan generator" と主張しているが、不変条件・制御外境界・フォローアップ Issue の記載なしに無限定 "read-only" を主張している。
APPROVE 禁止条件(Step 4.6)。
Non-blockers(任意改善)
-
PR 本文の
## 受け入れ条件の達成状況チェックボックスセクションが PR テンプレート形式で揃っていない。Blocker Resolution テーブルと Verification Results テーブルで代替されているが、テンプレート準拠のため追加推奨。 -
docs/dev/schema-governance.mdの Initial Known Schemas テーブルにCHILD_MATERIALIZATION_PLAN_V2を追加する follow-up が望ましい(schema registry の正本管理)。
LOOP_VERDICT
LOOP_VERDICT:
verdict: REQUEST_CHANGES
blockers:
- id: B1
kind: schema_change_applicability_missing
description: "PR に ## Schema Change Applicability セクションが存在しない。CHILD_MATERIALIZATION_PLAN V1→V2 schema 変更に対して consumer inventory 提出が必要(Step 4.5 APPROVE 禁止条件)"
- id: B2
kind: safety_claim_matrix_missing
description: "PR に ## Safety Claim Matrix セクションが存在しない。.claude/skills/** 変更は safety-sensitive path 条件を満たす(Step 4.6 APPROVE 禁止条件)"
mergeable: MERGEABLE
mergeStateStatus: BEHIND
reviewed_head_sha: b8e37d8e64c65785eae27763a46bd47a700f59e5
follow_up_issue_requests:
- title: "docs: schema-governance.md の Initial Known Schemas に CHILD_MATERIALIZATION_PLAN_V2 を登録する"
issue_kind: implementation
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/315"
note_id: "2"
dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/315:2"
desired_destination: "schema-governance.md の Initial Known Schemas テーブルに CHILD_MATERIALIZATION_PLAN_V2 が登録されており、consumer inventory 義務が明確化されている状態"
validated_scope_delta: "docs/dev/schema-governance.md の Initial Known Schemas テーブルへの CHILD_MATERIALIZATION_PLAN_V2 行追加のみ"
origin_skill: pr-review-judge
labels:
- triage-requiredCo-Authored-By: Claude Sonnet 4.6 <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=BEHIND(base が 1 commit 先行しているが conflict なし)
Evidence Check
AC coverage: PASS (8/8)
- AC1:
CHILD_MATERIALIZATION_PLAN_V2schema がdocs/dev/agent-skill-boundaries.mdに定義されている。contract は V1 と記載されているが、B5 blocker 対応で V2 に正式アップグレードされており、AC の意図(schema 定義)は達成されている。TEST_VERDICT_MACHINE の rg 確認コマンド PASS。 - AC2:
plan_child_materialization.pyの存在を pytest 61/61 PASS で確認済み。 - AC3: missing / existing_open / existing_closed / stale_body_only の分類が 61 テストで検証済み。
- AC4:
create-issue/SKILL.mdに V2 plan のcreate_issueaction →create_issue_txn.py手順あり。rg PASS。 - AC5:
edit-issue/SKILL.mdに line-oriented patch mode(delivery-rollup-parent-update)手順あり。 - AC6:
issue-refinement-loop/SKILL.mdに child materialization gate あり。 - AC7:
impl-review-loop/step-5,open-pr/SKILL.md,post-merge-cleanup/SKILL.mdに delivery-rollup handoff 記述あり。 - AC8: changed files (10 files) = Allowed Paths と完全一致。逸脱なし。
Allowed Paths: 遵守。gh pr diff --name-only の 10 ファイルが全て issue #299 の Allowed Paths に列挙されている。
CI Verification: 全 5 checks PASS(build / lint / python-test / test / typecheck)。
検証コマンド結果: TEST_VERDICT_MACHINE v1 — verification_commands_pass: 6, verification_commands_fail: 0, verification_skipped_count: 0。pytest 61/61 PASS。pnpm typecheck/lint/test/build 全 PASS。
Schema Change Applicability: decision: schema_change を明示。V1→V2 の before/after YAML diff を PR 本文に記載済み。
Schema Consumer Inventory: 全 10 consumer を列挙(rg 出力含む)。全 consumer 更新済み。Compatibility Decision(breaking → 全 consumer を同一 PR で V2 に統一)を明示。未対応 consumer なし。
Safety Claim Matrix: 3 claim(read-only plan 生成 / gh read-only 呼び出し / SKILL.md prose-only)を Evidence 付きで記載。Not controlled に挙げた境界(GitHub CLI 実行環境・API auth・LLM 解釈)は適切にスコープ限定されており、無限定の safe/read-only 主張なし。
Runtime Verification Applicability: decision: not_applicable(静的テキスト存在確認・pytest のみで決定論的に検証可能)。Runtime Verification Evidence は不要。
Blockers
なし
Non-blockers(任意改善)
- N1: mergeStateStatus=BEHIND は main と 1 commit の差。マージ前に
git merge mainを行うか GitHub の "Update branch" を使うと CLEAN になる。必須ではないが推奨。
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: BEHIND
reviewed_head_sha: 83dd520c1575025774dc8f2a0f6d43abf3282a5a
follow_up_issue_requests: []
Summary
Closes #299
PR #315 addresses the design and implementation of
plan_child_materialization.py— a read-only plan generator for the delivery-rollup parent child materialization workflow.This iteration (fix_delta iteration 2) resolves all 9 original blockers + V1→V2 schema unification across all SKILL.md and docs files.
Blocker Resolution
_fetch_open_issues()removed;gh issue view <N>per-issue — closed →existing_closedambiguous; plan itself remainscomplete: true_extract_child_issues_section()extracts only## Child Issueslines (heading boundary stop)'unknown'; unknown mode →human_escalationfor all childrenclosure_mode,repo,source,generated_at,body_sha256,issue_lookup.complete,existing_issueobject,existing_issue_candidates_search_dedupe_candidates()callsgh issue list --state all --search "<dedupe_key>"section,line_number,old_line,new_line,expected_match_countexisting_unverifiedCHILD_MATERIALIZATION_PLAN_V1toV2Schema Change Applicability
schema_changeCHILD_MATERIALIZATION_PLAN_V1→CHILD_MATERIALIZATION_PLAN_V2への変更。新規フィールド(closure_mode,repo,source,generated_at,body_sha256,issue_lookup.complete,existing_issue,existing_issue_candidates)を追加し、statusの値をexisting→existing_open/existing_closedに変更。producer はplan_child_materialization.py、consumer は以下の SKILL.md 群。Schema Consumer Inventory
変更対象 schema:
CHILD_MATERIALIZATION_PLAN_V2(docs/dev/agent-skill-boundaries.mdが schema 正本)before/after 差分:
Consumer 列挙(rg コマンドと結果):
$ rg -l "CHILD_MATERIALIZATION_PLAN_V2" .claude/skills/ docs/ .claude/skills/create-issue/SKILL.md .claude/skills/create-issue/scripts/plan_child_materialization.py .claude/skills/create-issue/tests/test_plan_child_materialization.py .claude/skills/edit-issue/SKILL.md .claude/skills/issue-refinement-loop/SKILL.md .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md .claude/skills/open-pr/SKILL.md .claude/skills/post-merge-cleanup/SKILL.md docs/dev/agent-skill-boundaries.md docs/dev/workflow.mdConsumer 更新状況:
create-issue/SKILL.mdcreate-issue/scripts/plan_child_materialization.pycreate-issue/tests/test_plan_child_materialization.pyedit-issue/SKILL.mdissue-refinement-loop/SKILL.mdimpl-review-loop/steps/step-5-feedback-and-termination.mdopen-pr/SKILL.mdpost-merge-cleanup/SKILL.mddocs/dev/agent-skill-boundaries.mddocs/dev/workflow.mdCompatibility Decision: V1 → V2 は additive(新規フィールド追加)+
statusの rename(existing→existing_open/existing_closed)。V1 consumers はexistingを受け取ることが無くなるため破壊的変更。全 consumer を本 PR で V2 に同時更新することで後方互換を不要にしている。Safety Claim Matrix
plan_child_materialization.pyは GitHub Issue を作成・編集・削除しない(read-only plan 生成のみ)ghコマンド自体の動作保証外)gh issue create/edit/delete呼び出しなし:rg -n "gh issue (create|edit|delete)" plan_child_materialization.py→ 0 matchgh issue view/gh issue listの読み取りのみを使用するrg -n "gh issue (view|list)" plan_child_materialization.py→ read-only 呼び出しのみ確認記載ルール準拠:
Not controlledに挙げた境界(GitHub CLI 実行環境、GitHub API 動作、LLM 解釈)は本 PR の制御外であることを明示し、無限定の「read-only」「safe」を使用しない。Changed Files
.claude/skills/create-issue/scripts/plan_child_materialization.py— V2 implementation.claude/skills/create-issue/tests/test_plan_child_materialization.py— 61 tests (adversarial included)docs/dev/agent-skill-boundaries.md— Schema V2 定義.claude/skills/create-issue/SKILL.md— V2 手順追記.claude/skills/edit-issue/SKILL.md— V2 手順追記(line-oriented patch mode).claude/skills/issue-refinement-loop/SKILL.md— V2 approve 前 gate.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md— V2 mandatory_follow_up.claude/skills/open-pr/SKILL.md— V2 Parent Child Materialization section.claude/skills/post-merge-cleanup/SKILL.md— V2 follow_up 自動検出docs/dev/workflow.md— V2 delivery-rollup handoff 手順#254 本文については本 PR の Out of Scope(#299 はフロー整備のみ)。
Verification Results
pnpm typecheckpnpm lintpnpm test(vitest)pnpm builduv run pytest test_plan_child_materialization.py -vrg "CHILD_MATERIALIZATION_PLAN_V2" docs/dev/agent-skill-boundaries.mdrg -l "CHILD_MATERIALIZATION_PLAN_V1" .claude/skills/ docs/Contract Snapshot
#299 (comment)