Repository navigation
Closed
Labels
phase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "PR #449 post-merge mandatory follow-up — impl-review-loop step-5 の FOLLOW_UP_MATERIALIZATION_RESULT_V1 example を SSOT nested format に対応させる"
change_kind: docs
closure_mode: standalone
runtime_verification_applicability: not_applicable
runtime_verification_reason: "docs-only schema example update; no runtime behavior to verify"
decision: goSource
- origin_skill: post-merge-cleanup
- source_url: docs(#186): follow-up materialization 責務境界を明文化する (AC2/AC3/AC6/AC7) #449
- source_note_id: schema-consumer-b4
- dedupe_key: follow-up:squne121/loop-protocol:pr/449:schema-consumer-b4
- severity: mandatory_follow_up
Parent Issue
none
Parent Goal Ref
- Goal: PR docs(#186): follow-up materialization 責務境界を明文化する (AC2/AC3/AC6/AC7) #449 post-merge の mandatory follow-up として、schema consumer B4 である
step-5-feedback-and-termination.mdを SSOT nested format に対応させる。 - Desired Destination:
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.mdのFOLLOW_UP_MATERIALIZATION_RESULT_V1example がdocs/dev/agent-skill-boundaries.mdの SSOT schema と一致している。
Current Validated Scope
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.mdの approved 終了コメント内FOLLOW_UP_MATERIALIZATION_RESULT_V1block を nested format に更新する(schema_version: 1、materialized_by: impl-review-loop、follow_up_issues[].issue.{number,url}、skipped 系issue: null、空配列[]省略禁止、旧 flat fieldissue_number/issue_url除去)
Remaining Parent Gaps
なし(standalone Issue)
Outcome
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md の approved 終了コメント内 FOLLOW_UP_MATERIALIZATION_RESULT_V1 example が、docs/dev/agent-skill-boundaries.md の SSOT schema と一致している。
In Scope
- approved 終了処理内の既存
FOLLOW_UP_MATERIALIZATION_RESULT_V1block を nested format に更新 schema_version: 1materialized_by: impl-review-loopfollow_up_issues[].issue.number/url- skipped 系 status の
issue: null記述 follow_up_issues/note_only_observationsは空でも[]出力する旨の記述- 旧 flat field
issue_number/issue_urlを同 block から除去
Out of Scope
max_iterations/human_escalation終了コメントへの result block 追加- impl-review-loop 非 approved 終了 path の統一(実装: impl-review-loop 以外の skill 終了コメントにも note_only_observations / follow_up_issues フィールドを統一する #186 Remaining Parent Gap)
gh issue comment --bodyから--body-fileへの全面移行- schema governance / PR template の Compatibility Decision 標準化
Acceptance Criteria
- AC1: approved 終了処理内
FOLLOW_UP_MATERIALIZATION_RESULT_V1block にschema_version: 1がある - AC2: 同 block に
materialized_by: impl-review-loopがある - AC3: 同 block の
follow_up_issues[]は nestedissue:{number,url}形式を示す - AC4: skipped 系 status では
issue: nullとreasonを記載する旨がある - AC5: 同 block に
note_only_observations[]のdedupe_key、source_url、source_note_id、summaryがある - AC6:
follow_up_issues/note_only_observationsは空でも[]で出力し、省略しない旨の記述がある - AC7:
FOLLOW_UP_MATERIALIZATION_RESULT_V1block 内に旧 flat fieldissue_number:/issue_url:がない - AC8: 変更対象は
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.mdのみに限定される - AC9: hidden/bidirectional Unicode control characters が追加されていない
Verification Commands
# AC1
$ rg -n "schema_version: 1" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC2
$ rg -n "materialized_by: impl-review-loop" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC3
$ rg -n "^[[:space:]]+issue:[[:space:]]*$" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC4
$ rg -n "issue: null" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC5
# preflight-scope: pr_review_only
$ rg -n "note_only_observations:" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC6
$ rg -n "空の場合も省略しない" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC7
$ ! rg -n "issue_number:" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
$ ! rg -n "issue_url:" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
# AC8
# preflight-scope: pr_review_only
$ git diff --name-only origin/main
# AC9
$ ! grep -rP "[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]" .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.mdAllowed Paths
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- 変更対象が approved 終了コメント内
FOLLOW_UP_MATERIALIZATION_RESULT_V1block 以外にも及ぶ場合 - 非 approved 終了 path(
max_iterations/human_escalation)への result block 追加が必要になった場合 - nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- In Scope の固定契約(フィールド集合・型定義)の変更が必要になった場合
Required Skills
なし
Runtime Verification Applicability
decision: not_applicable
reason: docs-only schema example update in .claude/skills/**; no runtime process to observe
Safety Claim Matrix
- Permission change: N/A
- Auth/credential change: N/A
- Sandbox/tool permission change: N/A
- Destructive operation: N/A
- Secret handling: N/A
Evidence: docs-only schema example update under .claude/skills/**; no executable script, network instruction, auth, permission, sandbox, or destructive operation change.
Metadata
Metadata
Assignees
Labels
phase/implementationImplementation phase
Activity
squne121 commentedon May 29, 2026
判定: REQUEST_CHANGES
Issue #450 は方向性は妥当です。PR #449 の schema consumer inventory で、
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.mdが flat format の未対応 consumer として検出され、mandatory follow-up として #450 が起票された流れは正しいです。PR #449 側でも B4 blocker の解消条件は「Allowed Paths 拡張して本 PR で更新」または「mandatory follow-up Issue 起票 + PR 本文参照」であり、最終的に #450 起票で APPROVE されています。([GitHub]1)ただし、#450 はこのまま実装に渡すには契約が弱いです。特に VC が壊れており、SSOT の nested schema を完全には検証できません。
Blocker 1: VC が期待 schema と不一致
Issue #450 の After 例は YAML の block mapping として
issue:を示しています。一方、VC はrg -n "\"issue\":" ...を要求しています。これは"issue":という quoted key 形式を探すため、自然な YAML でissue:と書く実装ほど AC1 が失敗します。#450 本文上の After 例はissue:/number:/url:の nested format であり、SSOT 側もissue:配下にnumber/urlを置く形です。([GitHub]2)修正すべき VC は最低限こうです。
より正しくは、
FOLLOW_UP_MATERIALIZATION_RESULT_V1fenced block だけを抽出して構造検証する単一 validator を置くべきです。grep の存在確認だけでは、issue:が別ブロックにあっても通ります。Blocker 2: 旧 flat field の negative check が whole-file で過剰
#450 の AC2 は「旧
issue_number・issue_urlflat フィールドが除去されている」ことですが、VC はファイル全体からissue_number:/issue_url:を禁止しています。これは対象ブロックに限定されていません。現在の対象ファイルでは旧ブロックにissue_number/issue_urlが残っているため検出自体は意味がありますが、将来同じファイルに別 schema の正当なissue_number:が追加された場合に false positive になります。現に同じリポジトリの SSOT では別 schema、例えばCHILD_MATERIALIZATION_PLAN_V2やCHILD_MATERIALIZATION_RESULT_V2でissue_number/issue_urlが正当な field として使われています。([GitHub]3)AC2 は「
FOLLOW_UP_MATERIALIZATION_RESULT_V1block 内に旧 flat field がない」と明記し、VC も block-scoped にするべきです。Blocker 3: SSOT の必須要件を AC が取りこぼしている
SSOT の
FOLLOW_UP_MATERIALIZATION_RESULT_V1は、schema_version: 1、materialized_by、follow_up_issues、note_only_observationsを含み、issueは created/reused_open の場合に{number,url}、skipped 系 status の場合はissue: nullと定義されています。また、follow_up_issues/note_only_observationsは空の場合も[]で出力し、省略禁止とされています。([GitHub]3)#450 の AC は
schema_version/materialized_by/issue:{number,url}と flat field 除去だけで、次を検証していません。follow_up_issues: []/note_only_observations: []の空配列出力ルールissue: nullreasonが skipped 時に埋まることmaterialized_byがimpl-review-loop固定であることの block-scoped 検証statusenum が SSOT と一致していること構造化データ契約として扱うなら、単なる grep より schema validation に近い検証が必要です。JSON Schema の考え方でも、properties の存在だけでは required / additional properties / null と欠落の違いは検証できず、
requiredやadditionalProperties等で制約を明示する必要があります。([JSON Schema]4)Blocker 4: 「step-5 全終了経路」なのか「approved 既存ブロックだけ」なのかが曖昧
#450 はタイトルで「impl-review-loop step-5 の FOLLOW_UP_MATERIALIZATION_RESULT_V1」を nested format に統一すると言っています。一方、本文の変更対象は approved 終了処理の既存ブロックに見えます。現在の
step-5-feedback-and-termination.mdでは approved path にのみFOLLOW_UP_MATERIALIZATION_RESULT_V1があり、max_iterations/human_escalationの終了コメントには同 result block がありません。([GitHub]5)ここは注意が必要です。#186 では「impl-review-loop の非 approved 終了 path での
FOLLOW_UP_MATERIALIZATION_RESULT_V1統一」は Remaining Parent Gap として別 Issue 判断にされています。([GitHub]6) したがって #450 が approved path の schema drift 修正だけなら、それ自体は成立します。ただし、その場合は #450 に明示的にこう書くべきです。これを書かないと、実装者が「step-5 の schema 統一」と解釈して非 approved path まで触るか、逆に approved だけ直して「step-5 全体が統一済み」と誤認するリスクがあります。
Blocker 5:
.claude/skills/**変更なのに安全レビュー条件が Issue にない#450 の変更対象は
.claude/skills/impl-review-loop/...です。Agent Skills は instructions / code / resources を含み、実行環境・bash・ファイルアクセスと結びつくため、単なる docs ではなく agent behavior surface です。Anthropic も Skills は instruction/code を含むため、悪意ある Skill が意図しない tool invocation や data exfiltration を誘導し得るとして、内容・依存・外部アクセス指示の監査を求めています。([Anthropic]7)PR #449 でも
.claude/skills/**変更に Safety Claim Matrix が必要とされ、初回レビューで blocker 化されています。([GitHub]1) #450 はこの学習を反映して、Issue 契約に次を入れるべきです。さらに、PR #449 のレビューでは hidden/bidirectional Unicode も問題化されています。GitHub は bidi Unicode が表示と解釈の差を生み、コードが見た目と異なる動作になる可能性があると説明しています。([The GitHub Blog]8)
.claude/skills/**は agent instruction surface なので、#450 の VC に hidden Unicode scan を追加する価値があります。Non-blocker:
gh issue comment --bodyの多行テンプレートは脆い対象ブロックは
gh issue comment <issue_number> --body "..."の巨大な多行文字列内にあります。GitHub CLI は--body <text>に加えて--body-file <file>と--body-file -を提供しています。([GitHub CLI]9) 今回の Issue でそこまで直すとスコープが広がりますが、将来的には「終了コメント生成は一時ファイルまたは stdin から渡す」形にした方が、escape、backtick、YAML code fence、shell quote の事故が減ります。推奨する Issue #450 の修正文
最終結論
#450 は「必要な follow-up」ではありますが、現状の Issue 契約は実装者に渡すには不足です。最低限、
"issue":VC の誤り、block-scoped negative check、SSOT 必須要件の AC 追加、非 approved path の明示的 Out of Scope、Safety Claim Matrix / hidden Unicode scan を入れてから実装フェーズに進めるべきです。squne121 commentedon May 29, 2026
issue-refinement-loop: 完了 (2026-05-29T10:30:12Z)
Applied changes:
$prefix、単一コマンド形式、AC8 参照追加)[-]docs: impl-review-loop step-5 の FOLLOW_UP_MATERIALIZATION_RESULT_V1 を nested format に統一する[/-][+]実装: impl-review-loop step-5 の FOLLOW_UP_MATERIALIZATION_RESULT_V1 を nested format に統一する[/+]squne121 commentedon May 29, 2026
Contract Snapshot (2026-05-29T10:36:40Z)
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.mdの approved 終了コメント内FOLLOW_UP_MATERIALIZATION_RESULT_V1example が SSOT nested format と一致している.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md.claude/worktrees/issue-450-impl-review-loop-step-5-follow-up-materiworktree-issue-450-impl-review-loop-step-5-follow-up-materisqune121 commentedon May 29, 2026
implement-issue: 実装完了 (2026-05-29T10:39:57Z)
.claude/worktrees/issue-450-impl-review-loop-step-5-follow-up-materiworktree-issue-450-impl-review-loop-step-5-follow-up-materisqune121 commentedon May 29, 2026
impl-review-loop: 完了 (2026-05-29T10:50:33Z)
LOOP_STATE 最終
docs(#450): 空配列形式の例示を追加する
squne121 commentedon May 29, 2026
impl-review-loop: 完了(最終)(2026-05-29T10:59:54Z)
修正履歴
docs(#450): step-5 の FOLLOW_UP_MATERIALIZATION_RESULT_V1 を nested for…
squne121 commentedon May 29, 2026
post-merge-cleanup: 完了 (2026-05-29T11:03:51Z)
実行結果