Skip to content

実装: Codex CLI 用 session-recording-policy Skill (.agents/skills/) を Claude 版と SSOT 重複なく整備する #381

Open

Description

@squne121

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: docs

Parent Issue

#242

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-policy
    • description: 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

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 編集のみ)

Activity

  1. added
    kind/implementation
    area/security
    area/ai-ops
    on May 24, 2026
  2. added a commit that references this issue on May 24, 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

    area/ai-opsarea/securitykind/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions