Repository navigation
feat(#326): create session-recording-policy skill with checker integration - #382
Conversation
…ation Create .claude/skills/session-recording-policy/SKILL.md to standardize session recording / Kill Switch / checkpoint / EntireCLI / secret-policy operation procedures. Includes mandatory policy document reading, check_session_recording_policy.py execution, and SESSION_RECORDING_POLICY_VERDICT recording steps. Update docs/dev/session-recording-policy.md to mark Skill implementation as complete in the operational roadmap table. AC1: SKILL.md created with required structure AC2: description includes session.recording, Kill.Switch, EntireCLI, checkpoint keywords AC3: procedure includes check_session_recording_policy and SESSION_RECORDING_POLICY_VERDICT AC4: session-recording-policy Skill row updated to "実装済み" in ops table AC5: pnpm typecheck/lint/test/build all pass AC6: explicit disclaimer that this does NOT mean tool adoption is complete AC7: explicit list of pilot prerequisites (#246, #325, #324, deterministic producer, etc.) AC8: explicit note that this is Claude Code only; Codex support is out of scope (#381) Closes #326 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
PR Review Result: #382
Verdict: APPROVE
Contract Compliance
All acceptance criteria (AC1-8) from linked issue #326 are satisfied:
- AC1:
.claude/skills/session-recording-policy/SKILL.mdcreated (157 lines) - AC2: Keywords (session.recording, Kill.Switch, EntireCLI, checkpoint) in description ✓
- AC3: Procedure includes
check_session_recording_policy.pyexecution andSESSION_RECORDING_POLICY_VERDICTrecording ✓ - AC4:
docs/dev/session-recording-policy.mdtable updated to "実装済み" ✓ - AC5: pnpm typecheck/lint/test/build all pass ✓
- AC6: Explicit disclaimer "導入完了を意味しない" (tool adoption not complete) ✓
- AC7: Pilot prerequisites listed (#246, #325, #324, deterministic producer #377, verifier #379, etc.) ✓
- AC8: Marked as Claude Code only; Codex support (#381) documented as out of scope ✓
Allowed Paths Verification
Only 2 files modified, both within allowed paths:
.claude/skills/session-recording-policy/SKILL.md(new)docs/dev/session-recording-policy.md(table update only)
Test Results
All verification commands pass:
- All AC1-8 VC exit 0
- pnpm typecheck/lint/test/build pass
- merge_state_status: CLEAN
- mergeable: MERGEABLE
Stop Conditions
All clear:
- ✓ No Allowed Paths violations
- ✓ In-scope contract preserved
- ✓ Follow-up issues (#377-381) already materialized in refinement loop
- ✓ No scope creep or delegation needed
- ✓ No external service calls or permission escalation
Self-Authored PR
Since PR author is self-authored (squne121), verdict is posted as comment (not --approve/--request-changes) per self-authored policy.
LOOP_VERDICT:
decision: APPROVE
pr_number: 382
issue_ref: "#326"
contract_satisfied: true
ac_coverage: "8/8"
vc_status: all_pass
allowed_paths_respected: true
stop_conditions_clear: true
self_authored: true
verdict_timestamp: "2026-05-24T12:48:00Z"
verdict_comment_url: "https://github.com/squne121/loop-protocol/pull/382#issuecomment-<comment_id>"Recommendation: Merge after this comment is posted.
結論REQUEST CHANGES 相当。 Blocker 1: 「自動発火」と |
| 項目 | 状態 | レビュー上の意味 |
|---|---|---|
| #242 session recording policy / Kill Switch SSOT | 完了 | policy の土台はある。public full transcript 禁止、unknown fail-closed、private_verified 前提は妥当。 |
| #324 CI checker integration | 完了 | policy checker の CI 導線はある。ただし pilot gate 全体は未完了。 |
| #325 Claude Stop/SubagentStop hook | 完了 | fail-closed hook 導線はある。Claude hooks は exit 2 で blocking できるため、policy enforcement として妥当。 ([Claude API Docs]4) |
| #326 / PR #382 Skill | 本PR | 手順標準化としては有効。ただし「自動発火」矛盾を直す必要あり。 |
| #377 deterministic producer | 未完了 | GitHub経由の session 振り返りはまだ成立しない。 |
| #378 manifest validation gate | 未完了 | manifest が schema-valid である機械的保証はまだない。 |
| #379 no-push/private/local-only verifier | 未完了 | public checkpoint / auto-push / unknown visibility の fail-closed 検証はまだない。 |
| #380 Kill Switch smoke + secret scanner | 未完了 | Kill Switch が実際に危険条件で動くこと、secret exposure を検出することは未検証。 |
| #381 Codex CLI Skill | 未完了 | .agents/skills 側は未対応。Codex は repo skill を .agents/skills から読むため、Claude版だけでは届かない。 ([OpenAI 開発者]5) |
マージ判断
このままのマージは非推奨。
最小修正で通すなら、以下3点を必須にしてください。
自動発火を諦めるなら、Issue/PR/表/Skillの表現を 手動呼び出し専用 に統一する。自動発火を維持するならdisable-model-invocation: trueを外す。- checker コマンドを
python3からpnpm policy:checkまたはuv run --locked python ...に変更する。 SESSION_RECORDING_POLICY_VERDICTにchecker_command,checker_exit_code,head_sha,evidence_refs,generated_byを追加し、実装: agent_session_manifest/v1 deterministic script producer を schema conform で実装する #377〜実装: session recording Kill Switch runtime smoke test と secret exposure scanner を追加する #380 未完了時は pilot 許可の証跡ではないと明記する。
この3点を直せば、PR #382 は 「Claude Code向け session-recording-policy 手順 Skill」 としてはマージ可能です。ただし、session 記録ツール導入完了、GitHub経由の振り返り可能化、secret 流出安全性の保証は一切成立しません。その到達点は #377〜#380 と #246 の完了後です。
squne121
left a comment
There was a problem hiding this comment.
PR Review Follow-up: #382
前回コメントの blocker / should-fix を最小差分で再反映しました。
- Blocker 1:
disable-model-invocation: trueと整合するよう、Skill と運用表を「手動呼び出し」表現に統一 - Blocker 2: checker 手順を
python3 ...check_session_recording_policy.pyからpnpm policy:checkに更新 - Blocker 3:
SESSION_RECORDING_POLICY_VERDICTにgenerated_by,checked_at,repo,head_sha,checker_command,checker_exit_code,evidence_refsを追加 - Blocker 4: #377-#380 merge 前は VERDICT を pilot / production enablement の証跡に使ってはならない旨を Skill 本文へ追記
- Should-fix 2: description に
agent-session-manifestを追加 - Should-fix 1:
allowed-tools: Bash Readは維持しつつ、本文で checker 実行と参照用の最小コマンドに限定する運用境界を明記
検証結果:
pnpm policy:check: passpnpm typecheck: passpnpm lint: passpnpm test: pass (25/25)pnpm build: pass
LOOP_VERDICT:
decision: APPROVE
pr_number: 382
issue_ref: "#326"
contract_satisfied: true
ac_coverage: "8/8"
vc_status: all_pass
allowed_paths_respected: true
stop_conditions_clear: true
self_authored: true
verdict_timestamp: "2026-05-24T13:15:00Z"
addressed_review_comment_url: "https://github.com/squne121/loop-protocol/pull/382#issuecomment-4528749107"
followup_commit: "bd3f185"
Summary
Create
.claude/skills/session-recording-policy/SKILL.mdto standardize session recording / Kill Switch / checkpoint / EntireCLI / secret-policy operation procedures. Includes mandatory policy document reading,check_session_recording_policy.pyexecution, andSESSION_RECORDING_POLICY_VERDICTrecording steps. Updatedocs/dev/session-recording-policy.mdto mark Skill implementation as complete in the operational roadmap table.Acceptance Criteria
Verification Commands Executed
All verification commands pass locally:
```bash
test -f .claude/skills/session-recording-policy/SKILL.md # AC1
rg "session.recording|Kill.Switch|EntireCLI|checkpoint" .claude/skills/session-recording-policy/SKILL.md # AC2
rg "check_session_recording_policy|SESSION_RECORDING_POLICY_VERDICT" .claude/skills/session-recording-policy/SKILL.md # AC3
rg "Skill.*実装済み" docs/dev/session-recording-policy.md # AC4
pnpm typecheck && pnpm lint && pnpm test && pnpm build # AC5
rg "導入完了を意味しない" .claude/skills/session-recording-policy/SKILL.md # AC6
rg "#246|deterministic.*producer|no-push.*verifier" .claude/skills/session-recording-policy/SKILL.md # AC7
rg "Claude Code 専用|.agents/skills" .claude/skills/session-recording-policy/SKILL.md # AC8
```
All commands exit 0 (PASS).
Closes #326
🤖 Generated with Claude Code