Repository navigation
docs(#241): Secret Inventory と no-secret 運用境界の SSOT 化 (secret-policy.md) - #317
Conversation
docs/dev/secret-policy.md を新規作成し、5 区分の Secret Inventory (current / publish_secret / app_runtime_secret / agent_local_secret / checkpoint_token) と運用境界を明文化する。CLAUDE.md および .claude/rules/project-constitution.md から cross-link を追加し、 AI Agent が Secret 関連判断時に参照できる SSOT を確立する。 #242 session-recording-policy との taxonomy_mapping も記述する。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #241: Secret Inventory と no-secret 運用境界を SSOT として確立する
総合判定
追加検証(主ワークツリー)
```yaml |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 10/10 PASS — AC1〜AC10 全て根拠付き達成記録あり。placeholder 残存なし。
- Allowed Paths: 遵守 — 変更ファイル 4 件(
docs/dev/secret-policy.md,CLAUDE.md,.claude/rules/project-constitution.md,.claude/scripts/check_secret_policy.py)はすべて Issue #241 Allowed Paths に含まれる。 - CI Verification: build/lint/python-test/test/typecheck 全 5 チェック pass(GitHub Actions runs/26337305117)。
- 検証コマンド結果: TEST_VERDICT_MACHINE v1 コメントで verification_commands_pass: 13 / verification_commands_fail: 0 を確認。PR 本文の検証コマンド結果セクションに各 AC の実行出力が記録されている。
- Schema Consumer Inventory: schema_change と明示。secret_policy/v1 は新規 schema で既存 consumer なし。rg コマンド実行済み・結果記録あり。未対応 consumer なし。
- Safety Claim Gate: 変更パスは docs/dev および CLAUDE.md のみ。safety-sensitive path パターン(transport/permission/sandbox/auth/mcp/tool/.github/workflows//.claude/skills/)に合致しない。docs-only 変更であり Safety Claim Matrix 不要。
- Runtime Verification: Issue #241 の decision: not_applicable (docs-only)。Runtime VC 証跡は不要。
Blockers
- なし
Non-blockers(任意改善)
- なし
LOOP_VERDICT
LOOP_VERDICT:
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 25925201417c827bc55d10c30d57af484fe769b1
follow_up_issue_requests: []
判定: REQUEST_CHANGESPR #317 は方向性は正しいです。#136 の「session 記録導入は Secret 境界・Kill Switch とセットで扱う」という問題意識、#241 の Secret Inventory SSOT 化、#242 の ただし、敵対的レビューとしては 現状のまま merge 不可 と見ます。理由は、 BlockersB1.
|
- B1: check_secret_policy.py を構造チェッカーに強化
- fenced YAML parse、schema/v1、current_secrets_mode、5 category heading、
キーワード(現状/発生条件/取り扱い/漏洩)、taxonomy_mapping、
CLAUDE.md/constitution の secret-policy 参照、VITE_* sensitive 検証を追加
- B3: secret_policy/v1 YAML を拡張(repository, checked_ref, 各 flag フィールド)
- B4: taxonomy_mapping に inventory_to_secrets_mode を追加(双方向マッピング)
- B5: publish_secret から GitHub OIDC を分離し deploy_credential_boundary として別管理
- B6: VITE_* sensitive 検証を checker に追加(B1 に含む)
- B7: publish_secret 漏洩時手順に release integrity 手順 5 項目を追加
- B8: Current Audit Evidence セクション追加(監査証跡 YAML)
- B9: Decision Gate を機械可読 YAML contract に変換
- M1: #242 未完了時の fail-closed 条件を明記
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
adversarial review iteration 1 反映完了commit: bbfe2e3 修正内容
検証結果Allowed Paths 遵守: |
検証結果レポートPR #317: secret-policy.md を SSOT として確立する(iteration 1 修正後)
総合判定
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
baseline_only: false
verification_commands_pass: 10
verification_commands_fail: 0 |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 10/10 PASS. All AC1-AC10 marked with evidence in PR body and independently verified by TEST_VERDICT_MACHINE (verification_commands_pass: 10, verification_commands_fail: 0).
- Allowed Paths: Compliant. Changed files:
.claude/rules/project-constitution.md,.claude/scripts/check_secret_policy.py,CLAUDE.md,docs/dev/secret-policy.md— all within Allowed Paths defined in issue #241. - CI Verification: All 5 checks pass (build, lint, python-test, test, typecheck) per
gh pr checks. - Verification commands: All 10 VC results recorded in PR body with concrete pass indicators. TEST_VERDICT_MACHINE confirms each independently.
- B2 skip:
schema-governance.mdis outside Allowed Paths; follow-up #318 (OPEN) is referenced in both the Policy Safety Claims table and the Adversarial Review section. No blocker. - Iteration 1 items:
- B1/B6:
check_secret_policy.pyis a full structural checker (YAML parse, schema validation, secrets_mode validation, 5 category headings, 4 keywords per category, taxonomy_mapping, governance doc cross-links, VITE_* sensitive scan). - B3:
secret_policy/v1YAML expanded withrepository,checked_ref, boolean flag fields. - B4:
taxonomy_mappingincludesinventory_to_secrets_modebidirectional mapping withfail_closedflags. - B5: GitHub OIDC separated from
publish_secretasdeploy_credential_boundarywithstored_secret: false. - B7:
publish_secretleakage procedure expanded to 10 items including release freeze, artifact verification, rollback check. - B8:
Current Audit Evidencesection present withcurrent_audit_evidenceYAML block and commands. - B9:
decision_gateis machine-readable YAML withrequired_when,approval_surface,required_fields,approval_marker. - M1:
#242 未完了時の fail-closed 条件section present. - M2: Policy Safety Claims table present with Claim / Controlled / Not controlled / Follow-up columns.
- B1/B6:
- Schema Consumer Inventory: Present. New schema
secret_policy/v1with no existing consumers.Schema Change Applicabilitysection declaresdecision: schema_change. No breaking compatibility issues. - Safety Claim Gate: Policy Safety Claims table covers all safety-adjacent claims.
Not controlledentries each have follow-up references (#242, #318, future deploy policy). No unbounded safety claims in PR title or summary. - Runtime Verification:
decision: not_applicable(docs-only change). No RV evidence required.
Blockers
- なし
Non-blockers(任意改善)
- なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: bbfe2e36d01d92713dfaf56455999fb28bc5d476
follow_up_issue_requests: []
Summary
docs/dev/secret-policy.mdを新規作成。Secret Inventory 5 区分(current / publish_secret / app_runtime_secret / agent_local_secret / checkpoint_token)と no-secret 前提の運用境界を SSOT として明文化する。CLAUDE.mdと.claude/rules/project-constitution.mdからsecret-policy.mdへの cross-link を追加する。.claude/scripts/check_secret_policy.pyを新規作成。AC2 の VC スクリプトとして 5 区分の存在を検証する。受け入れ条件の達成状況
docs/dev/secret-policy.mdが存在し YAML フロントマターを持つcheck_secret_policy.pyで検証.claude/rules/project-constitution.mdから cross-linkpnpm typecheck/lint/test/buildがすべて passsecret_policy/v1機械可読 YAML ブロック(current_secrets_mode含む)が存在taxonomy_mappingセクションが存在publish_secretが「release integrity secret」として revoke / rotate / CI 導入時人間承認を明記検証コマンド結果
Policy Safety Claims
Adversarial Review フィードバック反映(iteration 1)
check_secret_policy.pyを構造チェッカーに強化(fenced YAML parse、schema 検証、secrets_mode 検証、5 category heading、4 キーワード、taxonomy_mapping、governance docs 参照、VITE_* sensitive 検証)secret_policy/v1YAML ブロックを拡張(repository, checked_ref, 各 flag フィールド追加)taxonomy_mappingにinventory_to_secrets_modeを追加(双方向マッピング + fail_closed)publish_secretから GitHub OIDC を分離しdeploy_credential_boundaryとして別管理Current Audit Evidenceセクション追加(監査証跡 YAML + 実行コマンド)Decision Gateを機械可読 YAML contract に変換(required_when / approval_surface / required_fields / approval_marker)#242 未完了時の fail-closed 条件セクションを追加schema-governance.mdは Allowed Paths 外のため修正不要(follow-up docs: secret_policy/v1 を schema-governance.md に登録する #318)Allowed Paths 遵守
docs/dev/secret-policy.md.claude/scripts/check_secret_policy.pyschema-governance.mdは docs: secret_policy/v1 を schema-governance.md に登録する #318 で対応)Schema Change Applicability
secret_policy/v1(docs/dev/secret-policy.md内の機械可読 YAML ブロック)Schema Consumer Inventory
secret_policy/v1は本 PR で初めて導入される新規 schema。既存コンシューマーなしCloses #241
🤖 Generated with Claude Code