Repository navigation
Closed as not planned
Labels
triage-requiredNeeds owner triage for priority decision
Description
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: workflowParent 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
- PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 の Safety Claim Matrix が closed feat(#579 follow-up): AC7 real spawn verification with OpenAI API key environment #601 を参照しているため、代替となる open follow-up で live runtime trust の証跡契約を所有する。
- fixture/static 成功は live trust の証跡へ昇格させず、pinned runtime の実行結果だけを別 artifact として扱う。
Remaining Parent Gaps
- PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 の既存実装・PR本文・Issue 実装: Codex native scope-rollup-runner を追加し SubagentStop capture を接続する #1671 は変更しない。
- pinned Codex/session-recording runtime が利用不能な環境での live 検証は未実施のままとし、SKIP 理由を記録する。
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
- 実装: Codex native scope-rollup-runner を追加し SubagentStop capture を接続する #1671 または PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 の本文・コード変更、closed feat(#579 follow-up): AC7 real spawn verification with OpenAI API key environment #601 の再開。
- Codex agent registry、scope-rollup capture schema、generic/default worker fallback の変更。
- hook の権限昇格、未承認の user/global runtime 設定変更、手動 sidecar 作成。
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 skipAllowed 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
- 1 Issue = 1 PR
- dedicated Issue worktree を使用し、Draft PR を既定とする。
- PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 の merge readiness を直接変更せず、独立 follow-up として materialize する。
Notes for Reviewer
- Source review: feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 (review)
- dedupe_key: follow-up:pr-1685:live-named-spawn-runtime-trust
- closed feat(#579 follow-up): AC7 real spawn verification with OpenAI API key environment #601 は参照先として再開せず、本 Issue が live runtime trust の canonical destination になる。
- Scope Collision (C1): related_issue=実装: visual diff AI/VLM triage を非ブロッキング助言として分離する #1390, 実装: VRT CI evidence matrix と artifact validator を active suite 対応に拡張する #1387, 導入: M4 Upgrade Loop 実装 parent tracker #1176, 実装: feat(impl-review-loop): no-diff / superseded の終了処理を再実行可能なfinalizerに集約する #1116, feat(agent-ops): broad regex VC を検出する vc_text_assert.py を追加し、positive assertion の unexpected_pass を事前に潰す #996, 実装: playtest-log の JSON Schema / validator の追加 #420, 実装: .claude/skills 配下スクリプトの executable bit を監査し CI guard を追加する #205; overlapping_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. non_conflict_reason: 候補は visual/VRT/広域 tests または汎用 scripts を所有し、pinned Codex named-spawn/hook trust の live artifact を Outcome としない。edit_intent: 新規 producer、専用 focused test、専用 fixture の追加のみ。dependency ordering: 実装: Codex native scope-rollup-runner を追加し SubagentStop capture を接続する #1671 と PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 は変更せず、current main から独立 worktree で実装する。
Metadata
Metadata
Assignees
Labels
triage-requiredNeeds owner triage for priority decision
Activity
squne121 commentedon Jul 23, 2026
[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.