Skip to content

実装: Codex native named-spawn/runtime trust evidence follow-up #1686

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "Codex native named-spawn と session-recording hook trust の live runtime 証跡を再現可能に確立する"
change_kind: workflow

Parent Issue

none(単独改善)

Parent Goal Ref

  • Goal: PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 の静的/fixture 契約と、実際の pinned Codex/session-recording runtime で得られる named-spawn/hook trust 証跡を分離して検証可能にする。
  • Desired Destination: pinned Codex/session-recording runtime における live named-spawn/hook trust の再現可能な証跡。

Current Validated Scope

Remaining Parent Gaps

Outcome

scripts/session-recording/codex-live-named-spawn-trust.mjs、対応テスト、fixture が追加され、pinned Codex/session-recording runtime で named-spawn と hook trust の live 結果を version/pin・payload digest・artifact path 付きで再現可能に記録し、runtime 不可時は SKIP として fixture 成功と分離できる状態。

In Scope

  • pinned Codex executable/version と session-recording hook surface を検出し、named agent spawn、SubagentStop/capture、hook trust の live outcome を allowlisted artifact に保存する producer を追加する。
  • live artifact の schema(runtime pin、invocation echo、event/capture digest、trust decision、SKIP reason)を検証する focused test と最小 fixture を追加する。
  • runtime 不可・hook trust 未提供時は exit 77 相当の SKIP と理由・環境情報を出力し、fixture/static PASS を live trust とみなさない回帰を固定する。

Out of Scope

Acceptance Criteria

  • AC1: live producer が pinned Codex/session-recording runtime 上で named-spawn と hook trust の outcome を、runtime pin/version、caller invocation echo、event/capture digest、trust decision とともに canonical artifact に保存する。
  • AC2: artifact validator/test が live PASS、live SKIP(exit 77 と理由・環境情報)、fixture/static PASS を別分類し、fixture 成功から live trust を推論しない。
  • AC3: pinned runtime または hook trust が利用不能な場合に live 検証を PASS とせず、再現可能な SKIP artifact を出力し、secret/raw transcript を保存しない。

Runtime Verification Applicability

runtime_verification_applicability:
  decision: immediate
  applicable_acs: [AC1, AC2, AC3]
  execution_environment: "pinned Codex CLI、session-recording hooks、WSL2 Ubuntu 24.04、Node.js、uv/pytest"
  skip_conditions: "pinned Codex/session-recording runtime または hook trust が利用不能なら live は exit 77 SKIP と理由・version/pin・環境情報を記録する"
  fallback_policy: "fixture/static PASS は live trust の証跡へ昇格せず、live SKIP は PASS に読み替えない"
  artifact_requirements: "allowlisted artifact path、runtime pin/version、invocation echo、event/capture digest、trust decision、SKIP reason、secret-scan result"

Verification Commands

# AC1
# baseline-expect: fail
# preflight-scope: pr_review_only
$ node scripts/session-recording/codex-live-named-spawn-trust.mjs

# AC2
# baseline-expect: fail
# preflight-scope: pr_review_only
$ uv run --locked python3 -m pytest tests/codex/test_live_named_spawn_runtime_trust.py

# AC3
# baseline-expect: fail
# preflight-scope: pr_review_only
$ uv run --locked python3 -m pytest tests/codex/test_live_named_spawn_runtime_trust.py -k skip

Allowed Paths

  • scripts/session-recording/codex-live-named-spawn-trust.mjs
  • tests/codex/test_live_named_spawn_runtime_trust.py
  • tests/fixtures/session-recording-runtime-safety/codex-live-named-spawn-trust/valid.json

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • fixture/static 成功を live trust として扱う提案が出た場合
  • raw transcript、secret、未承認 user/global runtime 設定を artifact に保存する必要が生じた場合

Required Skills

  • JavaScript / Node.js
  • Python 3
  • Hook policy
  • pytest

Required Design References

  • docs/dev/session-recording-policy.md
  • docs/dev/runtime-verification-policy.md
  • docs/dev/agent-runtime-ops.md

Scope Delta(該当時のみ記載)

N/A

Delivery Rule

Notes for Reviewer

Activity

  1. added
    triage-required
    on Jul 23, 2026
  2. squne121 commented on Jul 23, 2026

    @squne121
    OwnerAuthor

    [create-issue] post-create ready tuple validation FAILED: implementation issue is missing phase/implementation label; triage-required was applied by requested triage-only profile. Manual label repair required before implementation handoff.

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

    triage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions