Repository navigation
Open
Labels
area/ai-opsAI operations and agent tooling areaarea/securitySecurity areakind/implementationImplementation issue
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#242"
goal_ref: "Codex CLI 用 session-recording-policy Skill を作成し、Claude 版との内容差分を最小化し SSOT が docs/dev/session-recording-policy.md に集約されることを保証する"
change_kind: docsParent Issue
Parent Goal Ref
- Goal: session recording policy 関連の Skill を Codex CLI (.agents/skills/) でも利用可能にする
- Desired Destination:
.agents/skills/session-recording-policy/SKILL.mdが Codex 仕様に合わせて作成され、Claude 版との SSOT 重複を排除する
Current Validated Scope
.agents/skills/session-recording-policy/SKILL.mdの新規作成- Codex CLI skill フォーマット (name / description / invocation など) への適合
- SSOT 参照リンク (docs/dev/session-recording-policy.md) の明示
- Claude 版 SKILL.md との内容差分が thin pointer (参照・誘導のみ) であること
- docs/dev/session-recording-policy.md への reference table 更新(Codex skill row 追加)
Remaining Parent Gaps
- deterministic producer (Issue A)
- validation gate (Issue B)
- no-push verifier (Issue C)
- Kill Switch runtime smoke (Issue D)
Outcome
.agents/skills/session-recording-policy/SKILL.md が新規作成され、Codex CLI から session recording policy 関連の手順を同等に呼び出せるようになる。skill の内容は Claude 版 (.claude/skills/session-recording-policy/SKILL.md) の thin wrapper であり、実装詳細は SSOT (docs/dev/session-recording-policy.md) への参照リンクで統一される。docs/dev/session-recording-policy.md の reference table に "Codex CLI" 行が追加され、両 platform の skill 状態が明示される。
In Scope
.agents/skills/session-recording-policy/SKILL.md新規作成- Codex CLI skill 仕様への準拠:
name: session-recording-policydescription: session recording / Kill Switch / secret-policy 関連の概要説明- invocation trigger (CLI flag / environment variable など)
- basic operation flow
- SSOT 参照: docs/dev/session-recording-policy.md への明確なリンク
- Claude 版 SKILL.md との内容差分は minimal。実装詳細は SSOT を参照させる
- docs/dev/session-recording-policy.md 内の reference table に "Codex CLI Skill" 行を追加
- Codex 公式ドキュメント / フォーマット準拠確認
Out of Scope
- Codex hooks 整備 (
.agents/hooks/) の実装(別途 Issue) - Codex 専用 policy 文書の新設(SSOT は docs/dev/session-recording-policy.md に統一)
- Claude 版 SKILL.md の改変
- Codex CLI 本体の修正
Acceptance Criteria
- AC1:
.agents/skills/session-recording-policy/SKILL.mdが存在する - AC2: SKILL.md の
nameがsession-recording-policyである - AC3: SKILL.md の
descriptionに session recording / Kill Switch / secret-policy が含まれている - AC4: SKILL.md 本文で
docs/dev/session-recording-policy.mdへの参照リンクが複数個含まれている - AC5: Codex 版 SKILL.md と Claude 版 SKILL.md の内容差分が thin pointer (参照・誘導のみ) であり、重複実装がない
- AC6: Claude 版 SKILL.md が Codex 版起票により改変されていない (diff で未変更)
- AC7:
docs/dev/session-recording-policy.mdの reference table に "Codex CLI" 行が追加されている - AC8: 文書の YAML frontmatter が有効である
Verification Commands
# AC1: Codex skill ファイル存在
test -f .agents/skills/session-recording-policy/SKILL.md && echo "PASS: AC1" || echo "FAIL: AC1"
# AC2: name フィールド
rg "name:\s*session-recording-policy|\"name\":\s*\"session-recording-policy\"" .agents/skills/session-recording-policy/SKILL.md && echo "PASS: AC2" || echo "FAIL: AC2"
# AC3: description に概要
rg "session.*recording|Kill.*Switch|secret.*policy" .agents/skills/session-recording-policy/SKILL.md && echo "PASS: AC3" || echo "FAIL: AC3"
# AC4: SSOT 参照リンク
rg "docs/dev/session-recording-policy.md" .agents/skills/session-recording-policy/SKILL.md | wc -l | awk '{if($1>=2) print "PASS: AC4"; else print "FAIL: AC4"}'
# AC5: 内容差分は minimal
diff -u .claude/skills/session-recording-policy/SKILL.md .agents/skills/session-recording-policy/SKILL.md | rg "^\-" | wc -l | awk '{if($1<=5) print "PASS: AC5"; else print "FAIL: AC5 (too many diffs)"}'
# AC6: Claude 版未改変
git diff .claude/skills/session-recording-policy/SKILL.md | wc -l | awk '{if($1==0) print "PASS: AC6"; else print "FAIL: AC6"}'
# AC7: reference table に Codex 行
rg "Codex|\.agents/skills" docs/dev/session-recording-policy.md && echo "PASS: AC7" || echo "FAIL: AC7"
# AC8: YAML frontmatter 有効
head -1 .agents/skills/session-recording-policy/SKILL.md | rg "^---" && echo "PASS: AC8" || echo "FAIL: AC8"Allowed Paths
.agents/skills/session-recording-policy/SKILL.md(新規作成)docs/dev/session-recording-policy.md(reference table 更新のみ)
Stop Conditions
- Allowed Paths 外への変更が必要と判明
- Claude 版 SKILL.md が改変される場合(即停止)
- Codex 専用 policy 文書を新設しようとした場合(即停止)
- SSOT が複数に分散しようとした場合(即停止)
- In Scope の固定契約(thin pointer 原則)の変更が必要な場合
Runtime Verification Applicability
decision: not_applicable
reason: docs-only 変更。ファイル存在確認、regex 検査、git diff 確認のみで全 AC を検証可能。プロセス起動・通信・I/O 不要。
Related
- Parent: docs: session 記録 Kill Switch policy と検証コマンド整備 (session-recording-policy.md) #242 (session recording policy SSOT, CLOSED)
- Sibling: 実装: session-recording-policy skill を作成して操作手順を標準化する #326 (session-recording-policy skill, OPEN), Issue A (deterministic producer), Issue B (validation gate), Issue C (no-push verifier), Issue D (Kill Switch smoke)
- Reference:
.claude/skills/session-recording-policy/SKILL.md(Claude版)
Source
source: refinement_loop_followup
origin_issue: "#326"
anchor_comment_url: "https://github.com/squne121/loop-protocol/issues/326#issuecomment-4528499380"
dedupe_key: "326-followup-E"Required Skills
- なし(docs 編集のみ)
Metadata
Metadata
Assignees
Labels
area/ai-opsAI operations and agent tooling areaarea/securitySecurity areakind/implementationImplementation issue
Activity
feat(#326): create session-recording-policy skill with checker integr…