Skip to content

実装: AUTO_MODE_CANARY_EVIDENCE_V2 の main_sha から checkout_head_sha への rename の schema compatibility 方針を決定記録する #2977

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "AUTO_MODE_CANARY_EVIDENCE_V2 の sut_revision.main_sha から checkout_head_sha への breaking rename に対する schema compatibility / migration 方針を、事実確認に基づいて docs に決定記録する"
change_kind: docs

Parent Issue

なし

Parent Goal Ref

親 Issue なし。発見元は PR #2975(#2960 の実装 PR)の OWNER REQUEST_CHANGES #2975 (comment) の blocker 3(compatibility が breaking なのに migration_or_followup: N/A で canonical schema consumer gate 違反)。Related: #2960, PR #2975。dedupe_key: follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/2975:auto-mode-canary-evidence-v2-main-sha-rename-compatibility。

Current Validated Scope

main 1334c7d 時点の repo reality(desired_destination のうち repo 実測で確認済みの範囲のみ write-capable とする):

Remaining Parent Gaps

Outcome

docs/dev/schema-governance.md に AUTO_MODE_CANARY_EVIDENCE_V2 の sut_revision.main_sha → checkout_head_sha rename に関する決定記録セクションが追加され、(1) 旧 main_sha consumer の有無の事実確認結果(repo 内件数、保存済み evidence / repo 外 consumer の調査結果)、(2) schema ID を V2 のまま維持するか新 version を切るか、dual-write 等の移行契約の要否、(3) 決定の根拠、が rg で検証できる形で記録されている。決定が「consumer 0 件・V2 維持・移行契約不要」であってもこの記録をもって完了とする。

Runtime Verification Applicability

decision: not_applicable
reason: >-
  docs のみの変更であり、runtime 挙動・scripts/claude-gpt/** は変更しない。
  検証は rg による静的 literal 確認のみで完結する。

In Scope

  • 保存済み evidence artifact(repo 内 tmp/ 等の既存出力、PR / Issue comment 内の evidence)と repo 外 consumer が旧 main_sha を読むかの事実確認(rg / gh search 等の read-only 調査)。結果は決定記録に件数付きで書く。
  • schema ID を V2 のまま維持するか将来 version を切るか、dual-write 等の移行契約が必要かの決定。
  • 決定を docs/dev/schema-governance.md の新規セクションへ記録する(既存 docs 配置。同 file の「Schema Consumer Inventory の記載義務」と整合させる)。
  • 決定の結果が「何もしない」であってもその旨を理由付きで記録する。

Out of Scope

Acceptance Criteria

  • AC1: docs/dev/schema-governance.md に AUTO_MODE_CANARY_EVIDENCE_V2 の見出し付き決定記録セクションが存在する。
  • AC2: 決定記録が rename 後の field 名 checkout_head_sha に言及している。
  • AC3: 決定記録に決定結果の marker Compatibility Decision が含まれる。
  • AC4: 決定記録に事実確認結果の marker Consumer Fact Check が含まれる。
  • AC5: 決定記録が Issue 番号 2960 を参照している。
  • AC7: 決定記録が rename 前の field 名 main_sha に言及している。
  • AC6: 変更が docs/dev/schema-governance.md のみで、scripts/ 配下に差分がない。

Verification Commands

# AC1
# baseline-expect: fail
$ rg --fixed-strings -- "AUTO_MODE_CANARY_EVIDENCE_V2" docs/dev/schema-governance.md

# AC2
# baseline-expect: fail
$ rg --fixed-strings -- "checkout_head_sha" docs/dev/schema-governance.md

# AC3
# baseline-expect: fail
$ rg --fixed-strings -- "AUTO_MODE_CANARY_EVIDENCE_V2 Compatibility Decision" docs/dev/schema-governance.md

# AC4
# baseline-expect: fail
$ rg --fixed-strings -- "Consumer Fact Check" docs/dev/schema-governance.md

# AC5
# baseline-expect: fail
$ rg --fixed-strings -- "2960" docs/dev/schema-governance.md

# AC7
# baseline-expect: fail
$ rg --fixed-strings -- "main_sha" docs/dev/schema-governance.md

# AC6
# baseline-expect: pass
$ git diff --name-only origin/main --diff-filter=ACMR -- scripts

AC6 は scripts/ 配下に変更がなければ出力が空となる read-only 確認で、出力が空であることをレビュアーが確認する。

Allowed Paths

  • docs/dev/schema-governance.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 決定の結果 version 切替や dual-write の実装が必要になった場合(別 Issue とする)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • 旧 main_sha を読む repo 外 / 保存済み evidence の consumer が 1 件以上見つかった場合(移行契約の実装範囲が不明のため人間判断へ)

Required Skills

なし

Required Design References

  • docs/dev/schema-governance.md
  • .claude/skills/pr-review-judge/references/schema-consumer-gate.md

Delivery Rule

Notes for Reviewer

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions