Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "SubAgent frontmatter を要求する Issue の Outcome と AC の整合基準を明文化する"
change_kind: docsParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: なし(単独改善のため親 Issue の Goal/Outcome は存在しない)
- Desired Destination: なし
Current Validated Scope
- docs/dev/agent-skill-boundaries.md に SubAgent frontmatter フィールド明示基準のセクションを追加する
Remaining Parent Gaps
なし
Outcome
docs/dev/agent-skill-boundaries.md に「SubAgent frontmatter フィールド明示基準」セクションが追加され、以下が明文化された状態。
- frontmatter の契約は field presence(値が空でも書いてあるか)や sentinel の有無ではなく、desired runtime semantics → invocation context → upstream がその意味論をどう表現できるか(upstream-supported representation) を起点に決める、という原則。
skills/mcpServers/hooks/memory/background/isolationの6フィールドについて、それぞれの empty value・omission・inheritance の runtime semantics を、field ごとに個別に区別して記述する(3分類 taxonomy への一般化は行わない。フィールドごとに挙動が異なるため)。skills:skills: [](明示 empty list)と省略は同一の効果であり、いずれも「起動時に preload される Skill がない」ことのみを意味する。Skill 利用そのものの禁止ではなく、Skilltool が利用可能であれば未列挙の Skill も実行時に呼び出せる。Skill 利用を制限したい場合はtoolsallowlist から外すかdisallowedToolsにSkillを含める、という upstream の実際の contract を参照する。mcpServers:skillsとは非対称である。省略は main conversation が接続している MCP server を継承することを意味し、**mcpServers: [](明示 empty list)**は継承される MCP server 接続を明示的にゼロにする(server 接続層の制御)。ただし、接続された server から実際にどの tool を呼べるかは別レイヤーであり、tools/disallowedTools(mcp__<server>構文含む)が governs する。「empty list = MCP 全面無効化」という短絡的な言い回しは、server 接続層と tool capability 層を混同するため使わない。hooks:hooks: {}(明示 empty object)と省略は、当該 SubAgent の frontmatter が agent-local な追加 hook を定義しないことのみを意味する。settings ファイル・managed policy・plugin 由来の hook(PreToolUse等)は、SubAgent 内のツール呼び出しに対しても main conversation と同じ設定で発火し続け、agent_id/agent_type等で判別可能な形で該当ツール呼び出しを deny/block しうる。したがって hook はtools/disallowedToolsが対象とする capability 集合そのものとは異なる軸(lifecycle/operation policy)だが、「capability restriction という問い自体が適用されない」と断定はしない — hook は tool の実行可否そのものを block できる別種の制御点である。加えて、plugin 配布 Agent ではhooks(およびmcpServers/permissionMode)frontmatter フィールドがセキュリティ上の理由で無視される、という scope 依存の例外も明記する。memory: 省略時、当該 SubAgent 固有の persistent memory は opt-in されず、SubAgent は毎回 fresh に起動する。ただし、これはグローバルautoMemoryEnabled設定(デフォルト true)に依存しており、「frontmatter の値そのものが唯一の制御点」とは書かない。global setting とフィールド値の両方が関与することを明記する。background: 省略時の挙動は実行モードに依存する(foreground を無条件に保証しない)。fork mode が有効な対話セッション(既定)では、foreground が必要な場合を除き既定で background 実行になり、fork mode が無効な非対話実行(-p等)では同期的に結果が必要な場合のみ foreground、そうでなければ background が既定になる。background: trueを明示すればこれらのモードに関わらず background 実行を強制する。「省略 = foreground」という単純な断定はしない。isolation: 現行の有効値はworktreeのみ。省略時は親/main session と同じ作業ディレクトリで実行され、agent-specific な worktree isolation は要求されない。ただし、親/main session 自体が既に--in-worktree等で isolation 下にある場合は、その worktree-scoping の制約が SubAgent 自身のisolationフィールド設定に関わらず自動的に及ぶ。「省略 = isolation 無効」という単純な同一視はしない。
- Agent tool 経由で spawn される SubAgent と、
claude --agent <name>(claude -p --agent <name>を含む。PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 の production path が実際に採用している invocation)で main session として起動される Agent とでは invocation context が異なることを明記する。具体的には、system prompt の扱い(Agent tool 経由は frontmatter body のみが prompt になるのに対し、--agentinvocation では frontmatter body が既定の system prompt を丸ごと置き換える)、tool filtering の有無(Agent tool 経由はtools/disallowedToolsと background 制約の対象になるが、--agentによる main session 起動はそれらの background 制約を受けない)など、上記6フィールドの semantics を安易に同一視しないことを述べる。 - project(
.claude/agents/)/ user(~/.claude/agents/)/ plugin 由来の Agent で、上記フィールドの適用条件・trust 要件(workspace trust の要否等)が異なりうることに触れる。 - Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 / PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 は本 docs 更新の historical incident(教訓の出所)として参照し、Claude Code 公式 sub-agents docs(
https://code.claude.com/docs/en/sub-agents、および hooks の詳細はhttps://code.claude.com/docs/en/hooks)を current normative source とする。docs には確認時点(verified_against: Claude Code official sub-agents docs, 2026-08-23)を明記する。upstream の特定バージョン番号(例: 特定の minor version で挙動が変わった、という主張)は、公式 docs 上で独立に確認できない場合は断定的に記載しない。参照は Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 の内容だけでなく、その follow-up として送出された PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 の production path(claude -p --agent <name>の実際の呼び出し)にも明示的に言及する。 test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omitted(.claude/agents/tests/test_retrospective_subagent_boundary.py)は、実際には「キーが存在する場合に falsy であること」しか assert しておらず、omission(キー省略そのもの)を assert していない。本 docs はこのテストを「省略判断が意図的であったことの historical evidence」としてのみ参照し、「omission semantics の技術的証明」としては扱わない。- 本 docs セクションの semantic correctness は grep 等の Verification Commands では証明しない。Verification Commands は見出し・6フィールド言及・参照 Issue/PR 番号等の presence/coverage/traceability の sanity check に限定し、意味論的な正しさは Claude Code 公式 docs を normative source とした semantic design review で評価する。本 Issue の範囲では新規 JSON Schema / pytest / linter / runtime harness を追加しない。
Runtime Verification Applicability
- decision: not_applicable
- reason: 静的な docs 追記のみで完結するため
In Scope
docs/dev/agent-skill-boundaries.mdに「SubAgent frontmatter フィールド明示基準」セクションを追加する- セクションには、frontmatter 契約を「field presence / sentinel の有無」ではなく「desired runtime semantics → invocation context → upstream-supported representation」から決める原則を明記する
skills/mcpServers/hooks/memory/background/isolationの6フィールドそれぞれについて、empty value・omission・inheritance の runtime semantics を field ごとに個別に(一般化した3分類 taxonomy にせず)明文化する。各フィールドの記述内容は Outcome セクションの記載を最新の公式 docs で裏取りした上で反映する- Agent tool 経由の SubAgent invocation と
claude --agent <name>main-session invocation の invocation context の違い(system prompt の扱い・tool filtering の有無等)に言及する - project / user / plugin scope による適用条件の違い(plugin 由来 Agent での
hooks/mcpServers/permissionModefrontmatter 無視等)に触れる - Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 / PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 を historical incident として参照し、Claude Code 公式 sub-agents docs(および必要に応じて hooks docs)を current normative source として明記する(確認時点付き)
- 参照テスト
test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omittedを historical evidence としてのみ扱うことを明記する
Out of Scope
- Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 本文自体の遡及的な修正(Issue はクローズ済みのため対象外)
- PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 の実装コード(
.claude/agents/**)への追加変更 .claude/agents/retrospective-runtime-observer.md/.claude/agents/retrospective-evaluator.md/.claude/agents/tests/test_retrospective_subagent_boundary.pyの assertion 変更(test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omittedの assert 対象そのものを変える等)。本 Scope Delta で許可するのは stale なコメント文言の修正のみであり、既存 assertion の意味変更は対象外- Claude Code upstream の frontmatter 仕様そのものへの提案・変更
- 新しい JSON Schema / pytest / linter / runtime smoke harness の追加(docs のみで完結させる)。semantic correctness の証明を grep 等の Verification Commands に求めない
- Issue 検証・修正: agent-retrospective の production Agent invocation adapter を実 Claude CLI で確認する #2301 が責務を持つ実 Claude CLI integration verification(live CLI smoke / runtime harness)は本 Issue に持ち込まない。本 Issue は静的な docs 記述に限定する
Acceptance Criteria
- AC1:
docs/dev/agent-skill-boundaries.mdに見出し「SubAgent frontmatter フィールド明示基準」が追加されている - AC2: 当該セクションが
mcpServers/hooks/skills/memory/background/isolationの6フィールドそれぞれについて、field ごとに個別の runtime semantics(empty value・omission・inheritance の違い)を記述しており、かつ以下を満たす。skillsとmcpServersの omission/empty semantics が非対称であること(skills: []と省略は同一効果/mcpServers: []と省略は異なる効果)が区別して記述されているhooksについて、agent-local hook の不在と、settings/managed/plugin scope の hook が引き続き発火しうることが区別して記述されているmemory/background/isolationのそれぞれについて、単純な「省略=無効化」またはその逆の断定をしていない(グローバル設定・実行モード・親 session の状態など、フィールド値以外の要因への言及がある)tools/disallowedToolsと、上記6フィールドとの役割の違いが記述されている
- AC3: 当該セクションが Agent tool 経由の SubAgent invocation と
claude --agentによる main-session invocation の invocation context の違いに言及している - AC4: 当該セクションが Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 / PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 の両方を historical incident として参照し、Claude Code 公式 sub-agents docs を current normative source として確認時点付きで明記している
- AC5: 当該セクションが
test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omittedを historical evidence としてのみ参照する旨(omission を技術的に証明するテストではない旨)に言及している
Verification Commands
Verification Commands は semantic correctness の証明ではなく、presence / coverage / traceability の structural sanity check として限定的に用いる(意味論的な正しさは Step 2.5 semantic design review が評価する)。
# AC1
$ rg -n "SubAgent frontmatter フィールド明示基準" docs/dev/agent-skill-boundaries.md
# AC2
# note: structural sanity check only — 6 fields の empty-value 表現 + skills/mcpServers 非対称 + tools/disallowedTools 言及の presence 確認。semantic correctness の証明ではない
$ rg -n "skills: \[\]" docs/dev/agent-skill-boundaries.md
$ rg -n "mcpServers: \[\]" docs/dev/agent-skill-boundaries.md
$ rg -n "hooks: \{\}" docs/dev/agent-skill-boundaries.md
$ rg -n "memory: user" docs/dev/agent-skill-boundaries.md
$ rg -n "background: true" docs/dev/agent-skill-boundaries.md
$ rg -n "isolation: worktree" docs/dev/agent-skill-boundaries.md
$ rg -n "disallowedTools を使う" docs/dev/agent-skill-boundaries.md
# AC3
$ rg -n "claude --agent" docs/dev/agent-skill-boundaries.md
# AC4
$ rg -n "2237" docs/dev/agent-skill-boundaries.md
$ rg -n "2293" docs/dev/agent-skill-boundaries.md
$ rg -n "verified_against" docs/dev/agent-skill-boundaries.md
# AC5
$ rg -n "test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omitted" docs/dev/agent-skill-boundaries.mdAllowed Paths
- docs/dev/agent-skill-boundaries.md
- .claude/agents/retrospective-runtime-observer.md(frontmatter コメントのみ。Scope Delta 参照)
- .claude/agents/retrospective-evaluator.md(frontmatter コメントのみ。Scope Delta 参照)
- .claude/agents/tests/test_retrospective_subagent_boundary.py(コメントのみ。assertion は変更不可。Scope Delta 参照)
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Required Design References
- docs/dev/agent-skill-boundaries.md
- Claude Code 公式 sub-agents documentation(
https://code.claude.com/docs/en/sub-agents)。hooks の詳細はhttps://code.claude.com/docs/en/hooksも参照する - Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237
- PR 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293
Scope Delta(任意)
PR #2318 に対する OWNER REQUEST_CHANGES レビュー(
#2318 (comment) )の P1 指摘
「runtime-observer / evaluator の既存コメントが既に stale」を受け、Allowed Paths を以下の
3 ファイルへ限定的に拡張する。
.claude/agents/retrospective-runtime-observer.md.claude/agents/retrospective-evaluator.md.claude/agents/tests/test_retrospective_subagent_boundary.py
拡張理由: 上記2 Agent 定義および対応テストの既存コメントが「memory/background/isolation
は upstream にキー自体が存在しない」と記述しており、これは本 Issue の docs 修正内容(3
フィールドは現行公式 frontmatter table に正式掲載されている)と直接矛盾する stale 情報である。
放置すると同じ誤判断が再発するため、OWNER の指摘通り同一 PR 内で解消する。
拡張範囲は コメント文言の修正のみに限定する。frontmatter の値(memory/background/
isolation を追加しない、という既存の意図的省略判断そのもの)は変更しない。
test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omitted の
assert 対象・ロジックも変更しない(コメントのみ修正)。新しい validator / schema / pytest は
追加しない。
Source
- origin: post-merge-cleanup
- source_pr: 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293
- dedupe_key: follow-up:squne121/loop-protocol:issue/2237:contract
Activity
squne121 commentedon Aug 22, 2026
敵対的レビュー結論
Verdict:
REQUEST_CHANGESrecommended_disposition:
reframe_in_placeIssue #2300 の問題意識自体は妥当です。#2237 で「frontmatter の全フィールドを省略せず明示する」という契約を置いた結果、PR #2293 で upstream が表現できない状態まで無理に表現しようとして契約と実装がずれた、という教訓を共通 docs に残す価値はあります。#2300 はまさにその follow-up として起票されています。
ただし、現在の #2300 はその教訓を「空値/sentinel の有無」という二分法に単純化しすぎています。このまま実装すると、誤った Claude Code frontmatter の意味論を
docs/dev/agent-skill-boundaries.mdという正本へ固定する可能性が高いです。P0-1 —
[]/{}を「無効化表現」とみなす分類軸が成立していない#2300 は、
mcpServers/hooks/skills→ upstream に有効な空値表現があるmemory/background/isolation→ upstream に無効化 sentinel がないという二群に分け、その違いを今後の Issue 契約基準にしようとしています。
しかし現行 Claude Code では、これらの空値は同じ意味ではありません。
Field | 現行 upstream の実際の意味 | #2300 で注意すべき点 -- | -- | -- skills: [] | preload する Skill がない | Skill 利用禁止ではない。Skill tool があれば未列挙 Skill を実行できる hooks: {} | agent-local hook を定義しない | settings / managed / plugin hooks は依然発火する mcpServers: [] | 少なくとも「MCP 全禁止 sentinel」とは文書化されていない | SubAgent は main conversation の MCP tools を継承し、tool filter で絞るのが公式モデル memory omitted | agent persistent memory を opt-in しない | memory 自体は現在正式な field background omitted | foreground 固定ではない | Claude が選択し、v2.1.198 以降は background が既定 isolation omitted | agent-specific worktree を要求しない | parent session 自体の isolation は別途適用され得るこれなら、「架空の
memory: none/isolation: noneを書くな」という #2300 の本来の狙いを維持しつつ、現在の upstream semantics とも一致します。Issue 契約として追加したい AC
#2300 の AC は4点程度に再編するのが適切です。
frontmatter の契約は field presence ではなく desired runtime semantics から決める、と明文化する。
上記6 field について、empty / omission / inheritance / capability restriction の違いを説明する。
実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 / 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 は historical incident として参照し、Claude Code 公式 docs を current source of truth とする。
upstream version/date と、project/user/plugin scope の差を明記する。
専用 pytest や新しい schema/linter は不要です。
rgは最低限の sanity check として残して構いませんが、docs の意味論的レビューを grep で「証明した」と扱わない方が、このプロジェクトでは結果的に品質も速度も上がります。周辺 Issue との関係
なお、同じ PR #2293 由来で #2301 がすでに起票されており、production path が実際に
claude -p --agent ...を使うことを実 Claude CLI で検証する方針になっています。現在のコードも実際に--agentを argv に構築しています。この責務分離は良いです。
#2300 に runtime smoke や新 harness を持ち込まず、仕様記述だけを正しくする。実挙動は #2301 側で確認する。
個人趣味開発という前提では、この分離が最も実用的です。
最終判定
つまり、Issue を捨てる必要はなく、目的も正しい。ただし「sentinel の有無」という抽象化を捨てて、「desired runtime semantics → upstream-supported representation」という向きに反転させてから実装するべき、という判定です。
# 敵対的レビュー結論Verdict:
REQUEST_CHANGESrecommended_disposition:
reframe_in_placeIssue #2300 の問題意識自体は妥当です。#2237 で「frontmatter の全フィールドを省略せず明示する」という契約を置いた結果、PR #2293 で upstream が表現できない状態まで無理に表現しようとして契約と実装がずれた、という教訓を共通 docs に残す価値はあります。#2300 はまさにその follow-up として起票されています。
ただし、現在の #2300 はその教訓を「空値/sentinel の有無」という二分法に単純化しすぎています。このまま実装すると、誤った Claude Code frontmatter の意味論を
docs/dev/agent-skill-boundaries.mdという正本へ固定する可能性が高いです。P0-1 —
[]/{}を「無効化表現」とみなす分類軸が成立していない#2300 は、
mcpServers/hooks/skills→ upstream に有効な空値表現があるmemory/background/isolation→ upstream に無効化 sentinel がないという二群に分け、その違いを今後の Issue 契約基準にしようとしています。
しかし現行 Claude Code では、これらの空値は同じ意味ではありません。
skills: []hooks: {}mcpServers: []memoryomittedmemory自体は現在正式な fieldbackgroundomittedisolationomittedworktreeを要求しない公式 docs は
skillsを「preload の指定」であって capability restriction ではないと明記しています。Skill 自体を禁止するにはtoolsから外すかdisallowedToolsを使います。([Claude]1)同じく、SubAgent は main conversation の built-in/MCP tools を継承し、
tools/disallowedToolsで絞るのが現在のモデルです。したがってmcpServers: []を一般的な「MCP disabled」の表現として正本化するのは危険です。([Claude]1)hooks: {}についても agent-local hooks が空になるだけで、settings・managed policy・plugin の hook は SubAgent 内でも適用されます。(Claude)したがって分類軸を「sentinel がある/ない」から、「その記述がどの runtime semantics を保証するか」へ変更すべきです。
P0-2 —
backgroundをmemory/isolationと同列に扱うのは明確に不適切これは特に重要です。
PR #2293 に対する元の敵対的レビューは、
memory/isolationについて omission を意味づける案を出す一方、backgroundについては foreground が必要なら pin すべきと別扱いしていました。その後 #2300 では、この差が失われて
memory/background/isolationを一括で「sentinel がないので省略」としています。ところが現在の公式仕様では、
です。また
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1なら全体を foreground にできます。(Claude)つまり、
backgroundomission ≠ background disabled ≠ foreground guaranteedです。
これは単なる仕様表記の問題ではなく、実行順序・待機・completion notification という workflow semantics に直接影響します。
#2300 で残すべき一般則は、
ではなく、
です。
P0-3 — #2300 が根拠にしている現在のリポジトリ資産自体が upstream に対して既に stale
現在の
retrospective-runtime-observer.mdには、という趣旨のコメントが残っています。
しかし現在の Claude Code 公式 frontmatter table には、3つとも正式なフィールドとして掲載されています。
memory:user | project | localbackground:trueで強制 background、unset 時は Claude が選択isolation:worktree(Claude)
特に
memoryは有効化すると Read / Write / Edit が memory 管理用として自動的に利用可能になるという、leaf/read-only Agent にとって非常に重要な副作用まであります。(Claude)したがって #2300 がやるべきなのは、PR #2293 当時の判断をそのまま一般原則へ昇格することではありません。
#2237 / #2293 は、
という位置づけにすべきです。
P0-4 — 「意図的省略を固定したテスト」が実際には省略を固定していない
#2300 は明示的に、
test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omittedを根拠として参照するよう要求しています。
ところが現在の実装は、
です。
これは omitted を assert していません。
例えば将来、
に変更してもテストは通ります。
さらにテストコメント自身が「accidental omission でも PASS する」と認めています。
したがってこのテストを「意図的省略の実装証拠」と #2300 に書くのは不正確です。
これは #2300 の Allowed Paths を広げてテストを直すべき、という意味ではありません。趣味開発としてはむしろ逆で、この docs Issue ではテストを normative evidence として扱わなければよいです。
P1-1 — AC2/Verification Commands が「正しい仕様」を何も証明しない
現在の AC は、
mcpServersが書かれている2237が書かれているだけです。Verification Commands も
rgの存在確認だけです。極端には、docs に
と書いても AC1〜3 は通せます。
ただし、ここで新しい JSON Schema、pytest、validator を作る必要はありません。docs-only Issue に harness を増設するのは今回の目的に対して過剰です。
必要なのは AC を意味論的に具体化することです。
例えば最低限、
skills: []は no-preload であり Skill denial ではないhooks: {}は agent-local hooks のみを空にするmcpServersと tool-level MCP restriction を混同しないbackgroundomission は foreground guarantee ではないmemory/isolationは正式な upstream field であるまで Outcome/AC に書けば十分です。
P1-2 — scope/version 軸がないため、数週間後に再び stale 化する
Claude Code のこの部分はかなり速く変わっています。現行 docs 自体が
v2.1.198、v2.1.203、v2.1.210、v2.1.218、v2.1.222など細かいバージョン差を明示しています。(Claude)しかも plugin Agent では
hooks/mcpServers/permissionModeが無視されます。公式 docs がそう明示しており、リポジトリ側の Child #2240 も plugin distribution 時のこの差を既に前提にしています。([Claude]1)したがって
docs/dev/agent-skill-boundaries.mdに永続的なという静的分類を書くのは危険です。
ドキュメントには少なくとも、
verified_against: Claude Code official sub-agents docs, 2026-08-22のような確認時点と、
project/user Agent と plugin Agent では semantics が異なる
という scope を残した方がよいです。
推奨する #2300 の再設計
Issue のスコープは広げなくてよいです。Allowed Paths は
docs/dev/agent-skill-boundaries.md1ファイルのままで十分です。変更するのは中心概念です。
現在の:
を、
へ変更することを推奨します。
docs の分類表は次の程度で十分です。
skills[]は「preload なし」。Skill 実行禁止はtools/disallowedToolsで表現mcpServers[]を universal disable sentinel と呼ばないhooks{}は agent-local hook なし。session/project/plugin hooks の不在は保証しないmemorybackgroundisolationworktreeは明示的 opt-in。omit は agent-specific worktree を要求しないだけで、親 isolation まで否定しないこれなら、「架空の
memory: none/isolation: noneを書くな」という #2300 の本来の狙いを維持しつつ、現在の upstream semantics とも一致します。Issue 契約として追加したい AC
#2300 の AC は4点程度に再編するのが適切です。
専用 pytest や新しい schema/linter は不要です。
rgは最低限の sanity check として残して構いませんが、docs の意味論的レビューを grep で「証明した」と扱わない方が、このプロジェクトでは結果的に品質も速度も上がります。周辺 Issue との関係
なお、同じ PR #2293 由来で #2301 がすでに起票されており、production path が実際に
claude -p --agent ...を使うことを実 Claude CLI で検証する方針になっています。現在のコードも実際に--agentを argv に構築しています。この責務分離は良いです。
#2300 に runtime smoke や新 harness を持ち込まず、仕様記述だけを正しくする。実挙動は #2301 側で確認する。
個人趣味開発という前提では、この分離が最も実用的です。
最終判定
つまり、Issue を捨てる必要はなく、目的も正しい。ただし「sentinel の有無」という抽象化を捨てて、「desired runtime semantics → upstream-supported representation」という向きに反転させてから実装するべき、という判定です。
squne121 commentedon Aug 23, 2026
結論
Verdict:
REQUEST_CHANGESrecommended_disposition:
reframe_in_placeimplementation_readiness:
blocked#2300 の目的自体は妥当です。#2237 / PR #2293 で発生した「Issue が frontmatter 全フィールドの明示を要求したが、upstream の意味論と噛み合わなかった」という失敗を共通設計原則へ還元する価値があります。実際、#2237 の AC12 は
mcpServers/hooks/memoryの明示的な空または不使用を要求しており、PR #2293 側ではこの不整合を別 follow-up に回しています。しかし、現在の #2300 は依然として「empty/sentinel が存在するフィールド」と「存在しないフィールド」という分類を Outcome/AC の中心に置いています。これは現在の Claude Code の意味論を正しく表現できません。
既存の #2300 敵対的レビューコメントが指摘した「sentinel の有無ではなく desired runtime semantics を起点にすべき」という結論は、最新の公式ドキュメントを再確認しても正しいです。
P0 —
[]/{}は「disabled sentinel」ではないここが最大の問題です。
現在の公式仕様では
skillsは「起動時に preload する Skill」を指定するフィールドです。skills: []は preload がゼロという意味であり、Skill capability の禁止ではありません。Skill を使わせたくない場合はtoolsからSkillを外すかdisallowedToolsで禁止するのが公式モデルです。 (Claude)mcpServersも同様です。SubAgent は main conversation で利用可能な built-in/MCP tool を継承します。mcpServersは追加の MCP server を SubAgent に与える仕組みなので、mcpServers: []は「MCP 全禁止」を意味しません。MCP capability を切りたいならtoolsallowlist で MCP を入れないか、disallowedTools: mcp__*等を使うべきです。 (Claude)hooks: {}も agent-local hook がないだけです。settings、managed policy、plugin の hook は SubAgent 内でも適用されます。 (Claude)したがって、
という #2300 の抽象化は成立しません。
P0 —
memory/background/isolationを同じ群に入れることもできない現在の Claude Code 公式 frontmatter には、
memory、background、isolationの3つとも正式なフィールドとして存在します。memoryはuser|project|local、backgroundはtrue、isolationはworktreeです。 (Claude)しかし omission の意味はそれぞれ全く違います。
Field | omission の実際の意味 -- | -- memory | SubAgent 固有の persistent memory を opt-in しない background | foreground を保証しない。Claude が決定し、v2.1.198 以降は background がデフォルト isolation | agent-specific worktree を要求しない。親 session 自体が isolated ならその isolation は依然適用され得るAcceptance Criteria は、1つ目に「field presence ではなく desired runtime semantics → upstream-supported representation を原則とする」、2つ目に上記 field の empty / omission / inheritance / capability restriction の差を説明、3つ目に Agent tool と
claude --agentの invocation context を区別、4つ目に #2237/#2293 を historical incident、Claude Code 公式 docs を normative source と明記、程度で十分です。スコープについて
#2301 は実 Claude CLI に対する
build_agent_invocation_argv()/invoke_agent()の live integration verification を担当しており、この責務分離自体は適切です。したがって #2300 に runtime smoke、追加 schema、linter、セキュリティ harness を入れる必要はありません。
一方で品質優先なら、Allowed Paths は中央 docs だけではなく、stale な説明を持つ
retrospective-runtime-observer.md/retrospective-evaluator.mdと、誤解を招く boundary test まで広げることを推奨します。大規模な安全柵追加ではなく、SSOT 化に伴う単純な負債除去です。最終判定は以下です。
実装着手前に #2300 本文を reframe すべきです。 現在のまま docs を書くと、今回解消したかった #2237/#2293 の「契約が upstream semantics を誤って抽象化する」問題を、今度は正本ドキュメント側へ永続化することになります。
## 結論Verdict:
REQUEST_CHANGESrecommended_disposition:
reframe_in_placeimplementation_readiness:
blocked#2300 の目的自体は妥当です。#2237 / PR #2293 で発生した「Issue が frontmatter 全フィールドの明示を要求したが、upstream の意味論と噛み合わなかった」という失敗を共通設計原則へ還元する価値があります。実際、#2237 の AC12 は
mcpServers/hooks/memoryの明示的な空または不使用を要求しており、PR #2293 側ではこの不整合を別 follow-up に回しています。しかし、現在の #2300 は依然として「empty/sentinel が存在するフィールド」と「存在しないフィールド」という分類を Outcome/AC の中心に置いています。これは現在の Claude Code の意味論を正しく表現できません。
既存の #2300 敵対的レビューコメントが指摘した「sentinel の有無ではなく desired runtime semantics を起点にすべき」という結論は、最新の公式ドキュメントを再確認しても正しいです。
P0 —
[]/{}は「disabled sentinel」ではないここが最大の問題です。
現在の公式仕様では
skillsは「起動時に preload する Skill」を指定するフィールドです。skills: []は preload がゼロという意味であり、Skill capability の禁止ではありません。Skill を使わせたくない場合はtoolsからSkillを外すかdisallowedToolsで禁止するのが公式モデルです。 ([Claude]1)mcpServersも同様です。SubAgent は main conversation で利用可能な built-in/MCP tool を継承します。mcpServersは追加の MCP server を SubAgent に与える仕組みなので、mcpServers: []は「MCP 全禁止」を意味しません。MCP capability を切りたいならtoolsallowlist で MCP を入れないか、disallowedTools: mcp__*等を使うべきです。 ([Claude]1)hooks: {}も agent-local hook がないだけです。settings、managed policy、plugin の hook は SubAgent 内でも適用されます。 ([Claude]1)したがって、
という #2300 の抽象化は成立しません。
P0 —
memory/background/isolationを同じ群に入れることもできない現在の Claude Code 公式 frontmatter には、
memory、background、isolationの3つとも正式なフィールドとして存在します。memoryはuser|project|local、backgroundはtrue、isolationはworktreeです。 ([Claude]1)しかし omission の意味はそれぞれ全く違います。
memorybackgroundisolationbackgroundが特に危険です。公式仕様では未設定なら Claude が選択し、v2.1.198 以降は background がデフォルトです。したがって omitted ≠ foreground です。 (Claude)isolationも、未指定だから「非隔離」と断定できません。main conversation 自体が worktree isolation 下なら、その制約はisolation: worktreeのない SubAgent にも適用されます。 (Claude)つまり #2300 が残すべき原則は「sentinel のないフィールドは省略する」ではなく、
です。
P0 — #2293 の実行方式を考慮すると「invocation context」が必須軸
これは既存 #2300 コメントより一段重要だと考えます。
#2293 の production path は interactive
Agenttool で leaf SubAgent を spawn しているのではありません。run_retrospective.pyが、claude -p --agent <name> --output-format json ...という別プロセスを起動しています。
Claude Code 公式仕様では
claude --agent <name>は、その Agent を main thread 自体として起動する機能です。しかもこの経路ではCLAUDE.mdや project memory は通常どおり読み込まれます。 (Claude)したがって例えば「
memoryomitted → no-memory Agent」という一般化は、#2293 の実際の production transport に対してすら不正確です。「agent-specific persistent memory field を有効化していない」までは言えても、「memory context が存在しない」とは言えません。同様に
mcpServersや hooks についても公式 docs は Agent-tool SubAgent と--agentmain-session の両 context を明示的に区別しています。 ([Claude]1)#2300 の設計表には最低でも
Agent tool / @mentionとclaude --agentの invocation context 列が必要です。P0 — 現在の repo 内説明が既に upstream に対して stale
現行の
retrospective-runtime-observer.mdとretrospective-evaluator.mdは、という説明をまだ保持しています。
これは現在の公式仕様とは明確に矛盾します。公式 frontmatter table に3つとも掲載されています。 ([Claude]1)
しかも
docs/dev/agent-skill-boundaries.md自身が、SubAgent 定義へこうした説明を書くとコンテキスト汚染になるため、この docs を正本とする、と宣言しています。したがって私は、既存 #2300 コメントの
keep_allowed_paths: trueだけは修正した方がよいと考えます。この Issue で中央 docs を正本化するなら、同時に2つの Agent 定義から stale な長文説明を削除または短い docs 参照に置換する方が、個人開発では低コスト・高効用です。 新 Issue に分割してワークフローを増やすメリットは薄いです。
P0 — 根拠として指定されたテストが根拠になっていない
#2300 は
test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omittedを根拠として参照するよう要求しています。ところが実装は、
です。
これは omission を一切 assert していません。
memory: false、isolation: ""、background: falseなどでも Python 的に falsy なら通り得ます。既存レビューでもこの問題は正しく指摘されています。したがって、このテストを「省略判断の技術的根拠」として AC3 に書くべきではありません。せいぜい historical evidence of the incident です。
P1 — AC/Verification が意味論を検証していない
現在の AC は「見出しがある」「
mcpServersが書かれている」「2237 が書かれている」をrgで確認するだけです。この3コマンドは、
という誤った文章を書いても全部 PASS します。
docs-only Issue なので pytest や新 harness を増やす必要はありません。ただし Acceptance Criteria 自体を semantic requirement に変えるべきです。grep は typo/sanity check に格下げするのが適切です。
推奨する #2300 の再設計
中心となる表は次の形がよいです。
skills: []toolsからSkill除外 /disallowedTools: Skillskills: []では不足mcpServers: []toolsallowlist またはdisallowedTools: mcp__*hooks: {}memoryomit--agentmain session の project memory と区別isolationomitAcceptance Criteria は、1つ目に「field presence ではなく desired runtime semantics → upstream-supported representation を原則とする」、2つ目に上記 field の empty / omission / inheritance / capability restriction の差を説明、3つ目に Agent tool と
claude --agentの invocation context を区別、4つ目に #2237/#2293 を historical incident、Claude Code 公式 docs を normative source と明記、程度で十分です。スコープについて
#2301 は実 Claude CLI に対する
build_agent_invocation_argv()/invoke_agent()の live integration verification を担当しており、この責務分離自体は適切です。したがって #2300 に runtime smoke、追加 schema、linter、セキュリティ harness を入れる必要はありません。
一方で品質優先なら、Allowed Paths は中央 docs だけではなく、stale な説明を持つ
retrospective-runtime-observer.md/retrospective-evaluator.mdと、誤解を招く boundary test まで広げることを推奨します。大規模な安全柵追加ではなく、SSOT 化に伴う単純な負債除去です。最終判定は以下です。
実装着手前に #2300 本文を reframe すべきです。 現在のまま docs を書くと、今回解消したかった #2237/#2293 の「契約が upstream semantics を誤って抽象化する」問題を、今度は正本ドキュメント側へ永続化することになります。
squne121 commentedon Aug 23, 2026
issue-refinement-loop 終了報告(human_judgment_required)
anchor comment(#2300 コメント および フォローアップコメント)の指摘を受けて、本 Issue の refinement loop を実行しました。
実施内容
docs/dev/agent-skill-boundaries.md・.claude/agents/retrospective-runtime-observer.md/retrospective-evaluator.md・test_leaf_frontmatter_contract_memory_background_isolation_intentionally_omittedを調査し、Claude Code 公式 sub-agents docs(https://code.claude.com/docs/en/sub-agents)と照合。両コメントの指摘(skills/mcpServers/hooksの empty 値は capability 禁止を意味しない、memory/background/isolationは正式フィールドである、参照テストは omission を assert していない、等)はいずれも妥当と確認しました。バージョン番号「v2.1.198」など公式 docs で裏付けが取れない主張は本文へ反映していません。issue-design-reviewerによる semantic レビューを実施し、指摘に応じて2回 rewrite を実施(AC2 の VC カバレッジ拡張、hooks の capability restriction 分類の精緻化)。tools/disallowedToolsが必要、(b) memory/background/isolation に独立した capability restriction 手段がない、(c) hooks は capability restriction の対象カテゴリに含まれない、について Verification Commands が検証していない)と Low finding(Required Design Referencesに公式 docs URL と 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237/実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 が未列挙)が検出されました。終了理由
decide_rewrite_route/ semantic rewrite lane のmax_rewrite_attempts: 2を超過したため、loop 設計上の blocking stop(no_progress_route: human_judgment_required)に従い、これ以上の自動 rewrite を行わずここで停止します。現在の Issue 本文の状態
run_root_review_pipeline.py):VERDICT: approve(blockers: 0)Required Design Referencesに公式 docs / 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 / 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2293 を追加すべき。次のアクション(人間判断が必要)
Required Design References追加)はどちらの方針でも機械的に追加可能です。edit-issueで直接反映してください。なお、実装作業中に
.claude/skills/edit-issue/scripts/edit_issue_txn.pyがrewrite_laneフィールドを未知キーとして拒否する実装ギャップが判明しました(ISSUE_EDIT_TXN_INPUT_V1にrewrite_laneの discriminator が未実装)。本 Issue の Allowed Paths 外のため対応していませんが、別途確認・follow-up の検討を推奨します。squne121 commentedon Aug 23, 2026
推奨は、「AC2 の Verification Commands を grep で増やす」ではなく、AC2 自体をもう一度 reframe してから fresh semantic review を通す方針です。
理由は、今回残った High finding より一段深い問題があるためです。現行 Claude Code 公式仕様では、
memoryはグローバルな auto-memory 無効化設定の影響を受け、backgroundも環境変数や fork mode の影響を受けます。またPreToolUsehooks は tool operation を block する用途として公式に説明されています。したがって現在の AC2(b) の「値そのものが唯一の制御点」、AC2(c) の「hooks には capability restriction という問い自体が適用されない」は、正本 docs に残すには強すぎます。([Claude]1)人間判断としては、VC は構造・traceability の sanity check に限定し、意味論の正しさは公式 docs を normative source とした Step 2.5 semantic design review に委ねる、を採択するのが適切です。そもそも最初の敵対的レビューでも「docs の意味論を grep で証明した扱いにしない」「新 harness は不要」と明示されています。
Required Design Referencesの公式 docs / #2237 / PR #2293 追加も同じ edit で処理できます。もう一点、
rewrite_laneは follow-up 候補ではなく、実際の producer/consumer contract gap と見てよいです。edit-issue/SKILL.mdはrewrite_lane: fail_closed_repair | semanticを入力契約として明記していますが、edit_issue_txn.pyの closedTOP_LEVEL_KEYSにrewrite_laneがなく、未知キーとして拒否する実装です。 #2300 に混ぜるべきではありませんが、canonical edit path の再実行を阻害するなら、小さい別 Issue/PR として先に直すのを推奨します。rawgh issue editで迂回するのは避けるべきです。つまり順序は、① read-only再調査 → ②
rewrite_lanegap の再現・dedupe → 必要なら別修正 → ③ #2300 AC2 を直接 reframe → ④ fresh refinement loop → ⑤ deterministic approve + semantic clear + final gate go まで確認です。#2301 が live CLI integration を既に担当しているので、#2300 に runtime harness を追加する必要はありません。目的
squne121/loop-protocolの Issue #2300 がissue-refinement-loopのhuman_judgment_requiredで停止している。今回の目的は #2300 を実装することではなく、Owner 判断を具体化して Issue 契約を再調整し、fresh refinement loop を通して implementation-ready に戻すこと。
終了コメントと現在の Issue 本文、関連 Issue / PR / repository assets、最新の Claude Code 公式仕様を改めて確認した上で進めること。
Owner Decision
以下を今回の Owner decision として扱う。
AC2 の semantic correctness を grep で証明しようとしない。
現在の AC2 の (a)/(b)/(c) 3分割 taxonomy をそのまま維持しない。
特に以下の断定を削除または狭める。
memory/background/isolationは「値そのものが唯一の制御点」である。hooksには capability restriction という問い自体が適用されない。実装: SubAgent frontmatter フィールド明示基準を docs/dev/agent-skill-boundaries.md に明文化する #2300 の中心原則は維持する。
desired runtime semantics -> invocation context -> upstream-supported representationRequired Design Referencesには少なくとも以下を追加する。docs/dev/agent-skill-boundaries.md実装: SubAgent frontmatter フィールド明示基準を docs/dev/agent-skill-boundaries.md に明文化する #2300 の Allowed Paths は原則として
docs/dev/agent-skill-boundaries.mdのまま維持する。
Issue 検証・修正: agent-retrospective の production Agent invocation adapter を実 Claude CLI で確認する #2301 が実 Claude CLI integration verification を別責務として持つため、実装: SubAgent frontmatter フィールド明示基準を docs/dev/agent-skill-boundaries.md に明文化する #2300 に live CLI smoke / runtime harness を持ち込まない。
必須 SubAgent orchestration
最初に root/main session から、以下の sibling SubAgent を起動すること。
SubAgent A: codebase-investigator
read-only で次を調査させる。
.claude/skills/issue-refinement-loop/**.claude/agents/issue-design-reviewer.md.claude/agents/issue-editor.md.claude/skills/edit-issue/SKILL.md.claude/skills/edit-issue/scripts/edit_issue_txn.py.claude/skills/edit-issue/tests/test_edit_issue_txn.pyrewrite_lanesemantic_rewrite_constraintsSEMANTIC_REWRITE_CONSTRAINTS_V1以下を報告させる。
rewrite_laneproducer/consumer mismatch の有無編集・GitHub mutation はさせない。
SubAgent B: web-researcher
Claude Code 公式ドキュメントを優先して、現在の sub-agent semantics を fact-check させる。
最低限確認するもの:
skillsmcpServerstoolsdisallowedToolshooksPreToolUsememorybackgroundisolationclaude --agent/claude -p --agentブログや第三者記事ではなく、可能な限り Claude Code 公式 docs を normative evidence にすること。
編集・GitHub mutation はさせない。
Join barrier
codebase-investigator と web-researcher の両方が完了し、その結果を root/main session が受け取るまで Issue mutation を開始してはならない。
片方だけの結果で先に進まないこと。
nested SubAgent delegation は禁止する。
SubAgent の完了待機は root/main session が所有する。
Step 1 — Current state を再取得する
SubAgent 完了後、root/main session 自身も live state を再取得する。
docs/dev/agent-skill-boundaries.md古い pinned body や前回 semantic result を fresh evidence として流用しない。
Issue body が変化していれば、その SHA / freshness を基準に以降を組み直す。
Step 2 —
rewrite_laneimplementation gap を判定する次を明示的に比較する。
.claude/skills/edit-issue/SKILL.mdが受理すると宣言している INPUT contract.claude/agents/issue-editor.mdのSEMANTIC_REWRITE_CONSTRAINTS_V1.claude/skills/edit-issue/scripts/edit_issue_txn.pyの closed top-level key validation特に確認する:
rewrite_laneがISSUE_EDIT_TXN_INPUT_V1の production consumer に実装されているかsemantic_rewrite_constraintsまたは equivalent payload が production consumer まで到達可能かgap が再現した場合
まず GitHub Issues を検索し、既存 follow-up がないか dedupe する。
既存 Issue がなければ、#2300 とは別の小さい implementation Issue として起票する。
その Issue は最低限、
ISSUE_EDIT_TXN_INPUT_V1と runtime validator の parityrewrite_lane: fail_closed_repair | semanticを対象とする。
#2300 の Allowed Paths へこの修正を混ぜない。
canonical #2300 edit をこの gap が阻害する場合
raw
gh issue edit等で迂回しない。先にこの follow-up を最小 diff で修正し、テスト・レビュー・CI を通すこと。
repository の通常 workflow で自動完了可能な範囲まで進める。
破壊的操作、secret、権限昇格が必要なら停止する。
canonical #2300 edit が gap の影響を受けないことを実証できた場合は、follow-up を追跡したまま #2300 の reframe を継続してよい。
Step 3 — Issue #2300 の AC2 を reframe する
現在の「3分割 taxonomy」を、field-by-field の runtime semantics 記述へ変更する。
少なくとも以下の内容になるようにする。ただし 最新公式 docs と SubAgent 調査結果を優先し、下記を無批判にコピーしないこと。
skillsskills: []は「preload する Skill がない」こと。tools/disallowedToolsの実際の upstream contract を参照する。mcpServerstools/disallowedToolsの semantics に基づいて記述する。hookshooks: {}は agent-local hook を定義しないこと。PreToolUse等によって operation を block できるため、「capability restriction という問い自体が適用されない」と断定しない。
memorybackgroundisolationStep 4 — AC / VC の設計
AC は prose semantics を明確に固定する。
一方 Verification Commands は semantic proof ではなく structural sanity check として設計する。
つまり、
tools/disallowedToolsとの区別が記述されているclaude --agentinvocation context が扱われている程度を
rg等で確認してよい。ただし、
とは Issue 本文・AC・VC・終了報告のいずれでも主張しない。
semantic correctness は後段の fresh
issue-design-reviewerが official-doc evidence と設計整合性をレビューする。新規 validator / schema / pytest / runtime smoke は追加しない。
Step 5 — Low finding を同時に解消する
Required Design Referencesを更新し、最低限、docs/dev/agent-skill-boundaries.mdを列挙する。
必要なら関連 production path の repository file を追加してよいが、不要な reference list 膨張は避ける。
Step 6 — canonical mutation
candidate Issue body を生成したら、repository の canonical
edit-issue/ controlled transaction 経路で #2300 を更新する。docs/dev/agent-skill-boundaries.mdはこの段階では編集しない今回のタスクは Issue refinement の解消まで。
Step 7 — fresh issue-refinement-loop
Issue body 更新後は 前回 loop の semantic artifact を再利用しない。
新しい body SHA に対して fresh に issue-refinement-loop を実行する。
を順に実施する。
fresh semantic SubAgent
Step 2.5 が applicable の場合、root/main session から
issue-design-reviewerを sibling SubAgent として起動する。issue-design-reviewerの作業完了を必ず待つこと。SubAgent の結果を実際に受け取る前に、
record-resultへ進んではならない。
body SHA freshness を再確認してから join する。
semantic result
requires_owner_choice: trueが再発した場合 →human_judgment_requiredとして停止し、具体的な選択肢と evidence を報告するmax rewrite attempts を勝手にリセットして無限 loop 化しない。
成功条件
以下をすべて満たした場合のみ「#2300 refinement resolved / implementation-ready」と報告する。
status == go最終報告
簡潔に以下を返す。
CODEBASE_INVESTIGATOR/WEB_RESEARCHERには、それぞれ 完了済みであること と主要 finding を1〜3行で記録する。途中の raw transcript・巨大ログ・secret は最終出力へ含めない。
squne121 commentedon Aug 23, 2026
issue-refinement-loop 終了報告(approved / implementation-ready)
Owner Decision(本 Issue の直前コメント参照)に基づき AC2 の3分割 taxonomy を field-by-field の記述へ reframe し、Required Design References を拡充した。
VERDICT: approve(blockers: 0、body sha256sha256:5e2e1179ce076ddb17b201f78fea21c7050ffc8a4b67ff2cfcde1266ed880592)issue-design-reviewer):assessment: findings、medium 1件(AC2 VC の一部リテラルが Outcome 文言と厳密には一致していない旨。blocker/high は 0)。join_review_resultsのeffective_verdict: approve(medium は warning として記録、requires_owner_choice: false)run_contract_review_once.py --mode static):status: go/readiness_status: go/vc_preflight_status: passWarning(非ブロッキング、実装時に留意): AC2 VC のうち
rg -n "memory: user"とrg -n "disallowedTools を使う"は、Outcome 本文中の対応箇条書きと厳密な文字列一致ではない(意味的には整合)。実装時にこの VC 文言を正しく満たす形(memory: userという具体値の明記、およびdisallowedTools を使うという言い回し、または実装内容に応じた VC 側の軽微な修正)でdocs/dev/agent-skill-boundaries.mdを記述することを推奨する。rewrite_lane/semantic_rewrite_constraintsの producer/consumer 契約ギャップは Issue #2316 として別途起票済み(本 Issue の Allowed Paths には含めない)。以上により、本 Issue は implementation-ready として扱う。実際の実装着手(
impl-review-loop等への handoff)は本 refinement タスクの範囲外とし、別途判断を待つ。squne121 commentedon Aug 23, 2026
implement-issue: 実装完了
.claude/worktrees/issue-2300-frontmatter-field-basisworktree-issue-2300-frontmatter-field-basisae705662a43cb64ffa7d06959857ed257d0f907efix: SubAgent frontmatter フィールド明示基準セクションの見出しに日本語補足を追加する
fix: 公式 sub-agents 仕様との不一致(mcpServers/background)を修正しstale コメントも解消する