Skip to content

docs: add runtime-verification-policy.md as SSOT for runtime AC ops (#84) - #90

Merged
squne121 merged 3 commits into
mainfrom
worktree-issue-84-runtime-verification-policy
May 20, 2026
Merged

squne121 merged 3 commits into
mainfrom
worktree-issue-84-runtime-verification-policy

Conversation

@squne121

Copy link
Copy Markdown
Owner

Summary

  • docs/dev/runtime-verification-policy.md を新規作成し、動作検証 AC の運用 SSOT として整備
  • SKIP exit code 77 規約 / _fallback: true FAIL 判定 / 証跡保存フォーマット / テストシナリオ最小セット / Stop Condition 連動 / 責務マッピング表を含む
  • CLAUDE.md / .claude/rules/project-constitution.md / .claude/skills/create-issue/references/body-authoring.md から明示的に参照リンクを追加

Closes #84

Contract Snapshot

#84 (comment)

Allowed Paths Compliance

  • 変更は全て Allowed Paths 内(docs/dev/runtime-verification-policy.md / CLAUDE.md / .claude/rules/project-constitution.md / .claude/skills/create-issue/references/body-authoring.md)

Acceptance Criteria Verification

AC 結果
AC1: policy.md が存在する PASS
AC2: SKIP規約 / 証跡フォーマット / シナリオ最小セット / Stop Condition 連動 の 4 トピック PASS
AC3: CLAUDE.md から policy.md 参照リンクあり PASS
AC4: project-constitution.md から policy.md 参照リンクあり PASS
AC5: body-authoring.md から policy.md 参照リンクあり PASS
AC6: 責務マッピング表に test-runner / pr-review-judge / implementation-worker / issue-contract-review の全 4 言及 PASS

Verification Commands Results

pnpm typecheck: PASS (exit 0)
pnpm lint: 環境依存 FAIL(worktree 複数存在時の eslint tsconfigRootDir 候補競合)
  - 他の worktree(issue-26 / issue-4 / issue-8)が存在する状態で同様のエラーが発生する既知の環境問題
  - CI(worktree なし)では main ブランチ直近で success を確認済み
pnpm test: PASS (20 files, 25 tests)
pnpm build: PASS
uv run pytest test_model_routing.py: PASS (21 tests)

Follow-up Improvements Observed

特になし(今回は docs-only 変更であり、新規改善観察事項なし)

)

SKIP exit code 77 / _fallback: true 判定 / 証跡保存フォーマット /
テストシナリオ最小セット / Stop Condition 連動 / 責務マッピング表を
一箇所で定義する SSOT ポリシー文書を新規作成し、CLAUDE.md /
project-constitution.md / body-authoring.md から参照リンクを追加する。

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, mergeStateStatus=CLEAN

Evidence Check

  • AC coverage: 6/6 PASS(根拠は diff から直接確認)
    • AC1: docs/dev/runtime-verification-policy.md 新規作成(280行)確認
    • AC2: SKIP規約(exit 77 / stdout SKIP: プレフィックス / _*_fallback: true 判定)、証跡フォーマット(section 4)、シナリオ最小セット(正常系≥1 + 異常系≥1、section 5)、Stop Condition 連動(section 6)の必須4トピックをすべて確認
    • AC3: CLAUDE.md の「詳細ルールの置き場」セクションに docs/dev/runtime-verification-policy.md への参照リンク追加を確認
    • AC4: .claude/rules/project-constitution.md の「## 必須検証」配下に参照リンク追加を確認
    • AC5: body-authoring.md の VC 設計セクション冒頭に参照リンク追加を確認
    • AC6: section 8 の責務マッピング表に issue-contract-review / implementation-worker / test-runner / pr-review-judge 全4役割を確認
  • Allowed Paths: 遵守。変更4ファイルすべてが Issue Allowed Paths に含まれる
  • CI Verification: build / lint / python-test / test / typecheck すべて pass(GitHub Actions 全5ジョブ PASS)
  • 検証コマンド結果: PR 本文の AC 対応表に6件全PASS記録あり。lint の環境依存 FAIL は既知の worktree 競合問題であり CI では pass 確認済み(blocker 非相当)

SSOT 整合性確認

  • #83(SubAgent SKIP 検知責務実装): policy.md が上流 SSOT として先行整備される位置づけが policy.md 冒頭に明記されており矛盾なし
  • #85(#26 AC7 fixup): Out of Scope として明示されており矛盾なし
  • policy.md の内容(exit 77 SKIP 規約 / fallback FAIL 判定 / 証跡保存フォーマット)は PR #81 での骨抜き問題の根本対処として適切

Blockers

なし

Non-blockers(任意改善)

  • policy.md の「関連ドキュメント」セクションで docs/dev/agent-skill-boundaries.md / docs/dev/workflow.md を参照しているが、これらのファイルが現時点で存在するか未確認。将来の整備 Issue(#83 等)で追加される場合は dead link となるが、docs-only SSOT としては許容範囲

LOOP_VERDICT

verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: e604a27f6c86eb004ac52ec1036d26e4ff1854c6

Comment thread docs/dev/runtime-verification-policy.md Resolved
Comment thread docs/dev/runtime-verification-policy.md Resolved
…ility to test-runner

PR #90 review (issuecomment-4324535452) raised two findings:

1. artifacts/ ops design was undefined (committed to main? .gitignore'd?)
2. implementation-worker was incorrectly listed as VC executor

Changes:
- Section 4: add explicit "証跡ディレクトリの運用設計" subsection
  - artifacts/ is worktree-local, never committed to main
  - .gitignore addition is out of #84's Allowed Paths; cross-ref existing #35
  - long-term retention goes to PR body inline quote
- Section 4 "証跡保存の責務": pivot executor from implementation-worker to test-runner
  - implementation-worker authors VC scripts (with artifacts/ write logic)
  - test-runner executes scripts and aggregates artifacts into TEST_VERDICT_MACHINE
  - test-runner.md write-exception for artifacts/ is tracked in #83
- Section 6 cascade flow: align with test-runner as executor
- Section 8 responsibility table: separate implementation (worker) from execution (test-runner)
- Section 1 scope bullet: reflect updated boundary

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@squne121
squne121 marked this pull request as ready for review May 20, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant