Skip to content

test: Issue #148 系 VC を source_mvp_loop 4 キー / M2〜M5 8 フィールド完備の厳密判定に差し替えるパターンを SSOT 化する #236

Open

Description

@squne121
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "docs-only Issue で fields/keys 完備を検証する VC pattern を SSOT 化し、false positive を構造的に防ぐ"
change_kind: docs

Parent Issue

none

Parent Goal Ref

  • Goal: 「rg でキーワードが 1 件ヒットすれば PASS」という弱い VC pattern の再発を防ぎ、厳密な完備検証パターンを SSOT に定義する
  • Desired Destination: N/A(standalone improvement)

Current Validated Scope

  • docs/dev/runtime-verification-policy.md または docs/dev/body-authoring.md への VC pattern 追記
  • Python 3 行スクリプトのサンプル提示

Remaining Parent Gaps

なし

Outcome

今後の docs-only Issue で「fields/keys が揃っている」ことを検証する場合の VC pattern が docs/dev/runtime-verification-policy.md または docs/dev/body-authoring.md に記載され、Python 3 行スクリプトのサンプルが提示されている。

Note: Issue #148 自体は既に CLOSED のため、当該ファイルの VC を遡及修正する対象ではない。本 Issue の目的は今後の同種 Issue での false positive 防止。

In Scope

  • docs/dev/runtime-verification-policy.md または docs/dev/body-authoring.md への VC pattern セクション追加
  • 「N キー全件揃い」「M フィールド全件完備」を検証する VC の記述ガイドライン
  • Python 3 行スクリプトのサンプル(例: python3 -c "import re; keys=['a','b','c','d']; text=open('f').read(); assert all(k in text for k in keys)" 相当)
  • rg | wc -l >= N 方式が「全キー揃い」を保証しない理由の説明

Out of Scope

Acceptance Criteria

  • docs/dev/runtime-verification-policy.md または docs/dev/body-authoring.md に「rg | wc -l >= N は全キー揃いを保証しない」旨の説明が追加されている
  • 厳密な全件完備確認のための VC pattern(Python または bash)のサンプルが 1 つ以上示されている
  • サンプルが docs-only Issue の典型的な検証シナリオ(複数キー全件存在確認)を網羅している

Verification Commands

  • rg "wc -l\|false positive\|全件\|all.*keys" docs/dev/runtime-verification-policy.md docs/dev/body-authoring.md 2>/dev/null # AC1: false positive 説明の存在確認
  • rg "python3\|assert all\|all(k in" docs/dev/runtime-verification-policy.md docs/dev/body-authoring.md 2>/dev/null # AC2: Python サンプルの存在確認

Allowed Paths

  • docs/dev/runtime-verification-policy.md
  • docs/dev/body-authoring.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

  • docs authoring(Markdown)
  • Python / bash スクリプト基礎

Scope Delta(任意)

N/A

Source

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    triage-required
    test
    on May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementationstate/queuedtesttriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions