Repository navigation
Open
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "LP052 の exact English heading grammar を維持し、PR 本文の canonical heading を日本語 prose 検証から一貫して除外する"
change_kind: workflowParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: PR 本文 validator の fixed grammar と日本語 prose guard が同じ shared heading policy を消費する。
- Desired Destination:
Schema Change ApplicabilityとSchema Consumer Inventoryを含む Draft PR 本文が LP052 と日本語検証を同時に通過し、実装: contract snapshot の base SHA freshness を強制する #1635 の Draft PR 起票を再開できる。
Current Validated Scope
- shared
HEADING_POLICYの上記 2 canonical English heading を non-prose canonical entry として明示し、日本語 prose ratio の対象から除外する。 - LP052 の exact English heading grammar、PR template の heading 表記、LP050 catalog consumer inventory の意味を変更しない。
- shared policy と open-pr validator consumer に対する正例・負例の regression tests を更新する。
Remaining Parent Gaps
- 実装: contract snapshot の base SHA freshness を強制する #1635 の contract snapshot freshness 実装、PR feat: live Issue scope snapshot materializer を追加 #1630 の materializer hardening、LP050 catalog comparator 自体は本 Issue の対象外とする。
Outcome
shared heading policy と regression tests が、LP052 exact English headings を non-prose canonical entries として扱い、validate_pr_body.py と日本語検証を同時に PASS させる状態。
Background
Draft PR #1635 の本文は LP052 により Schema Change Applicability と Schema Consumer Inventory の exact English heading を要求される一方、日本語検証が同じ heading-only blocks を prose と判定して reject する。英語 grammar を緩和する workaround ではなく、既存 shared heading policy の canonical non-prose inventory を決定論的に補正する。
In Scope
.claude/skills/create-issue/scripts/prose_boundary_policy.pyの canonical heading inventory を、LP052 required headings の prose exemption が明確になるよう更新する。- heading policy regression test に exact English headings と non-canonical English negative case を追加または更新する。
- open-pr validator の tests で、LP052 exact heading を保つ PR body が日本語検証と共存することを固定する。
- PR body Japanese repair-plan test で、heading text の日本語化による LP052 grammar bypass を提案しないことを固定する。
Out of Scope
.claude/skills/open-pr/scripts/validate_pr_body.pyの LP052 grammar、LP050 catalog comparator、PR template の heading text の変更。validate_japanese_content.pyの block classifier 再実装、Issue 本文の日本語比率閾値変更、guard bypass。- 実装: contract snapshot の base SHA freshness を強制する #1635 の実装・commit・PR review・merge。
Acceptance Criteria
- AC1: shared heading policy は
Schema Change ApplicabilityとSchema Consumer Inventoryを canonical non-prose entries として分類し、既存 block-kind public contract を変更しない。 - AC2: LP052 exact English headings を含む PR body は日本語 prose validation で heading-only block を violation としない。
- AC3: 非 canonical English heading または English prose は引き続き日本語 prose validation で fail し、exemption surface が 2 headings 以外へ拡大しない。
- AC4: Japanese repair plan は LP052 heading を日本語表記へ変更する workaround を生成せず、canonical heading policy に従う修復を示す。
Verification Commands
# AC1
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/create-issue/scripts/tests/test_heading_policy.py
# AC2
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/open-pr/scripts/tests/test_validate_pr_body.py
# AC3
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/create-issue/scripts/tests/test_heading_policy.py
# AC4
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/open-pr/scripts/tests/test_pr_body_japanese_repair_plan.pyRuntime Verification Applicability
- decision: not_applicable
- reason: shared policy と PR validator の組合せは、fixture-based pytest で決定論的に検証できる。
Allowed Paths
- .claude/skills/create-issue/scripts/prose_boundary_policy.py
- .claude/skills/create-issue/scripts/tests/test_heading_policy.py
- .claude/skills/open-pr/scripts/tests/test_validate_pr_body.py
- .claude/skills/open-pr/scripts/tests/test_pr_body_japanese_repair_plan.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- LP052 exact English grammar を緩和するか、shared policy 以外に new prose exemption を追加しなければ AC を満たせない場合
Required Skills
- Python 3(policy table、Markdown block classification、pytest)
Required Design References
- docs/dev/agent-skill-boundaries.md
- docs/dev/workflow.md#Issue contract を作業計画の正本として扱う条件
- .claude/skills/open-pr/SKILL.md
Scope Delta(任意)
- source: PR 実装: contract snapshot の base SHA freshness を強制する #1635 Draft PR body validation failure
- validated_scope_delta: exact English heading grammar を緩和せず、shared heading policy entry と consumer regression tests に限定する。
- rejected_alternative: heading を日本語化または English prose exemption を広範囲に追加する workaround は LP052 と fail-closed prose policy を壊すため採用しない。
Scope Collision Preflight
- decision:
overlap_requires_comment(C1) - related_issue: 実装: Issue MRC 追加 key の検証ロスを塞ぐ #1396, 実装: LP050 拡張 — PR body Schema Consumer Inventory vs catalog 照合(#131 FU-3) #519, 実装: Out of Scope / Remaining Parent Gaps を実 Issue として必ず起票する手順を create-issue / review-issue / refinement-loop に組み込む #30
- overlapping_paths:
.claude/skills/create-issue/scripts/prose_boundary_policy.py,.claude/skills/create-issue/scripts/tests/test_heading_policy.py,.claude/skills/open-pr/scripts/tests/test_validate_pr_body.py - edit_intent: shared heading policy の existing LP052 headings を non-prose canonical として明示し、heading-only blocks の validator parity regression に限定する。
- non_conflict_reason: 実装: Issue MRC 追加 key の検証ロスを塞ぐ #1396 は Issue MRC key validation、実装: LP050 拡張 — PR body Schema Consumer Inventory vs catalog 照合(#131 FU-3) #519 は LP050 catalog comparator、実装: Out of Scope / Remaining Parent Gaps を実 Issue として必ず起票する手順を create-issue / review-issue / refinement-loop に組み込む #30 は broad skill authoring procedure を所有する。本 Issue は LP052 exact grammar と日本語 prose policy の矛盾だけを扱い、LP050 meaning・Issue contract validator・skill procedure を変更しない。
- dependency_ordering: 実装前と PR 作成直前に 実装: Issue MRC 追加 key の検証ロスを塞ぐ #1396 / 実装: LP050 拡張 — PR body Schema Consumer Inventory vs catalog 照合(#131 FU-3) #519 / 実装: Out of Scope / Remaining Parent Gaps を実 Issue として必ず起票する手順を create-issue / review-issue / refinement-loop に組み込む #30 の live state と shared policy/test path の差分を再読込し、C2/C3 へ変化した場合は停止する。
Delivery Rule
- 1 Issue = 1 PR とし、dedicated linked worktree で実装する。
- Draft PR を既定とする。
- 本 Issue の merge は 実装: contract snapshot の base SHA freshness を強制する #1635 の Draft PR 作成を block するため、実装: contract snapshot の base SHA freshness を強制する #1635 は本 Issue merge 後に fresh contract snapshot を取得して再開する。
- 実装前に fresh
CONTRACT_REVIEW_RESULT_V1 status: goを取得する。 - normal commit/push のみを使用し、force push、guard bypass、hook disable を行わない。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Jul 19, 2026
Scope Collision (C1) 証跡
.claude/skills/create-issue/scripts/prose_boundary_policy.py,.claude/skills/create-issue/scripts/tests/test_heading_policy.py,.claude/skills/open-pr/scripts/tests/test_validate_pr_body.pysqune121 commentedon Jul 19, 2026
Contract Review Result
squne121 commentedon Jul 19, 2026
#30 は defer 提案の Issue 起票手順を所有し、LP052 heading の prose 境界には変更を加えないため、owner 承認により C1/non-conflict と判断する。
squne121 commentedon Jul 19, 2026
#1396 は implementation Issue の MRC key 検証を所有する。#1641 は MRC key や contract schema を変更しないため、owner 承認により C1/non-conflict と判断する。
squne121 commentedon Jul 19, 2026
#519 は LP050 catalog consumer 照合を所有する。#1641 は validator 本体を変更せず LP052 heading の日本語 prose 除外を固定するため、owner 承認により C1/non-conflict と判断する。
squne121 commentedon Jul 19, 2026
#1396 は implementation Issue の MRC key 検証を所有する。#1641 は MRC key や contract schema を変更しないため、owner 承認により C1/non-conflict と判断する。