Skip to content

実装: runtime smoke の lifecycle failure 時に attribution 用の raw lifecycle event を bounded かつ opt-in で保全する #2958

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "runtime smoke の structured Claude run が lifecycle verdict で失敗した場合に、lifecycle attribution に必要な raw event だけを bounded かつ opt-in で保全し、次回の失敗で証跡を失わない"
change_kind: code
dedupe_key: "follow-up:squne121/loop-protocol:issues/2953:lifecycle-raw-evidence-on-failure"

Parent Issue

なし(単独改善)

Parent Goal Ref

Current Validated Scope

#2953 の OWNER human-context review(https://github.com/squne121/loop-protocol/issues/2953#issuecomment-6004641038)と #2953 本文 AC3(b) を根拠とする。

Remaining Parent Gaps

Outcome

scripts/agent-ops/run_worktree_agent_runtime_smoke.py に opt-in の --lifecycle-failure-evidence-json <path> を追加し、structured Claude run の lifecycle verdict が失敗した場合(multi_child_lifecycle が verified False、duplicate_completions が非空、または subagent_causal_evidence が no_evidence)に限り、上記の許可リストに載った raw event と settings_provenance.digest_sha256 だけを、run の output dir 配下の worktree-local な JSON として新規作成する状態にする。assistant message 本文・prompt・secret・無関係な transcript は書き出さず、verdict と exit code は変わらない。この挙動は fake-claude stream を使う新規 test scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py で固定される。

Runtime Verification Applicability

decision: immediate
reason: 変更対象 scripts/agent-ops/** と .claude/skills/**/SKILL.md は docs/dev/extension-surface-runtime-policy.yaml の hard trigger(subagent-lifecycle-start-stop-delegation-fallback / skill-invocation-procedure-or-contract-change)に一致し、最も制約の強い default_decision が immediate である。runner に opt-in flag を追加した後も、実 Claude Code の structured run が従来どおり成立し(flag を指定した成功 lifecycle の run が exit 0 で完了し、evidence file を作らない)、SubagentStart / SubagentStop の causal evidence が実 runtime で current run に束縛されて成立することは、fake-claude stream の hermetic test だけでは証明できないため、実 run を AC8 で検証する。lifecycle failure 時の evidence の中身は、failure の再現が非決定的であり(#2941 の incident は 3 回の rerun で再現しなかった)実 run を条件にできないため、引き続き AC1〜AC6 の fake-claude test で固定する。
applicable_acs: [AC8]
execution_environment: 現在の Claude Code session と repository の scripts/agent-ops/run_worktree_agent_runtime_smoke.py(claude 実行ファイルが PATH 上にあること、uv が利用可能であること)。live smoke は SubAgent が text の marker を 1 行返すだけの無害な fixture prompt を使う。mutation・外部 code 実行・permission 緩和・credential 利用は行わない。--output-dir は排他的に新規作成されるため、再実行時は worktree-local の uncommitted な artifacts/runtime-smoke/lifecycle-failure-evidence-optin だけを事前に削除する。
skip_conditions: claude 実行ファイルまたは uv が利用不能な場合は、runner / VC は exit 77 と stdout 先頭 SKIP: で SKIP を宣言する(docs/dev/runtime-verification-policy.md の SKIP 規約に従う)。SKIP は PASS ではなく Stop Condition として扱う。
fallback_policy: pytest の PASS・fake claude・runner の SKIP を AC8 の PASS として扱わない。実 run の lifecycle verdict が失敗して evidence file が作られた場合は AC8 を PASS にせず、その file の allowlist 内容を failure の証跡として保全して報告する。
artifact_requirements: AC8 は worktree-local の artifacts/runtime-smoke/lifecycle-failure-evidence-optin/(main へ commit しない)配下の runner evidence(summary.md)を証跡とする。新しい schema・receipt・publisher は追加しない。
runtime_assertion_bindings:

  • profile: skill-invocation-runtime-smoke
    assertion: output_contract_schema_fields_present
    disposition: not_applicable
    reason: 本 Issue の SKILL.md 変更は opt-in flag の使い方の記載だけであり、いずれの Skill の output contract schema の field も追加・変更しない。新しい failure evidence JSON は schema family ではなく、diagnostic 用の opt-in file である。
  • profile: skill-invocation-runtime-smoke
    assertion: procedure_steps_executed_in_declared_order
    disposition: not_applicable
    reason: 本 Issue の SKILL.md 変更は flag の使い方の記載だけであり、いずれの Skill の Procedure step の追加・削除・並べ替えも行わない。
  • profile: subagent-lifecycle-causal-evidence-smoke
    assertion: subagent_start_stop_causal_evidence_correlated
    ac: AC8
    disposition: dispositive

In Scope

  • scripts/agent-ops/run_worktree_agent_runtime_smoke.py への opt-in flag --lifecycle-failure-evidence-json <path> の追加。未指定時は何も保存せず、既存 caller の挙動は変わらない。
  • lifecycle verdict が失敗した run でのみ、次の許可リストの項目を bounded に(件数に上限を設けて)保存する。
    • SubagentStart / SubagentStop の hook event の既存 field(hook_event / stream_index / agent_id / agent_type / agent_transcript_path の有無 / session_id / prompt_id / stop_hook_active / contradictory)。last_assistant_message は保存しない。
    • user event の tool_use_result の agentId / status。
    • task-notification の completion block から得られる agent id と status。本文は保存しない。
    • 既存の settings_provenance.digest_sha256 の参照。
  • 出力先は run の --output-dir 配下の worktree-local path に限定し、既存 file は上書きしない(排他的に新規作成し、既存の場合は上書きせず non-fatal な警告だけを出す)。
  • scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py(新規)への fake-claude stream test。scripts/agent-ops/tests/ はすでに .github/ci/python-test-plan.json の target に含まれているため、plan への追加は不要の見込みである(実装時に確認し、不要なら変更しない)。
  • .claude/skills/worktree-agent-runtime-smoke/SKILL.md への opt-in flag の使い方の記載。
  • 同じ runner file を 実装: claude-gpt adapter の runtime smoke が launcher の解決した underlying Claude Code binary の version を runtime_version に記録するようにする #2954 / 実装: runtime smoke の expected_markers_missing が prompt echo を child marker と誤認する false-green を除去する #2944 も触る。本 Issue は別関数・別 flag の範囲に限定し、競合は後から merge する側が rebase して解消する(scope rollup として認識するのみで吸収しない)。

Out of Scope

Acceptance Criteria

  • AC1: fake-claude の stream で lifecycle が失敗し(重複した SubagentStop を注入)、--lifecycle-failure-evidence-json を指定した run で、出力 JSON に許可リストの event(hook event の既存 field、tool_use_result の agentId / status、task-notification completion の agent id)と settings_provenance.digest_sha256 が保存される。
  • AC2: AC1 の出力 JSON に、assistant message 本文、prompt 文字列、last_assistant_message、secret / credential 風の文字列(stream に混入させた sentinel)、無関係な transcript 内容が含まれない。
  • AC3: lifecycle が成功した stream では、flag を指定しても file が作られない。flag を指定しない場合は、失敗した stream でも何も保存されない。
  • AC4: flag の有無にかかわらず、verdict と exit code と summary.md の既存 field が変わらない(同一 stream を flag あり / なしで走らせて比較する)。
  • AC5: 出力先が既存 file の場合は上書きせず内容が不変であり、verdict と exit code は変わらない。出力 path が --output-dir 配下でない場合は拒否される。
  • AC6: 保存する event 数に上限があり、上限を超える大量の event を持つ stream でも出力が bounded である。
  • AC7: .claude/skills/worktree-agent-runtime-smoke/SKILL.md に新 flag が記載されている。
  • AC8: runner に opt-in flag を追加した後も、無害な fixture prompt に対する実 runtime の structured run で --lifecycle-failure-evidence-json を指定した成功 lifecycle の run が exit 0 で完了し、SubagentStart / SubagentStop の causal evidence が current run に束縛されて成立し、evidence file は作られない。

Verification Commands

# AC1
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k allowlisted_events_preserved_on_lifecycle_failure -q

# AC2
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k excludes_message_prompt_and_secret_content -q

# AC3
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k nothing_preserved_on_pass_or_without_flag -q

# AC4
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k verdict_and_exit_code_unchanged -q

# AC5
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k existing_file_not_overwritten_and_path_confined -q

# AC6
# baseline-expect: fail
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k output_is_bounded -q

# AC7
# baseline-expect: fail
$ rg -n -- "--lifecycle-failure-evidence-json" .claude/skills/worktree-agent-runtime-smoke/SKILL.md

# AC8
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime claude --mode structured --worktree "$PWD" --prompt-file scripts/agent-ops/tests/fixtures/runtime_vc_lifecycle_smoke_prompt.md --output-dir artifacts/runtime-smoke/lifecycle-failure-evidence-optin --timeout-seconds 300 --max-turns 6 --agent-type pr-reviewer --expect-marker-source subagent --expect-marker "RUNTIME_VC_LIFECYCLE_SMOKE_OK" --require-subagent-causal-evidence --require-min-subagents 1 --require-clean-postcondition --lifecycle-failure-evidence-json artifacts/runtime-smoke/lifecycle-failure-evidence-optin/lifecycle-failure-evidence.json
# preflight-scope: runtime_only
$ test ! -e artifacts/runtime-smoke/lifecycle-failure-evidence-optin/lifecycle-failure-evidence.json

# regression (既存 runner の挙動不変)
# baseline-expect: pass
$ uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke.py scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_causal_evidence.py -q

Allowed Paths

  • scripts/agent-ops/run_worktree_agent_runtime_smoke.py
  • scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py
  • .claude/skills/worktree-agent-runtime-smoke/SKILL.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合(.github/ci/python-test-plan.json への登録が必要と判明した場合を含む)
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合(verdict / exit code / summary の既存 key の変更が必要になった場合を含む)
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • 許可リスト外の内容(message 本文・prompt・secret)を保存しないと lifecycle attribution が成立しないと判明した場合(実装を止めて報告する)

Required Skills

なし

Required Design References

  • docs/dev/runtime-verification-policy.md
  • .claude/skills/worktree-agent-runtime-smoke/SKILL.md

Delivery Rule

Notes for Reviewer

  • flag 名 --lifecycle-failure-evidence-json は暫定の提案であり、既存の --evidence-json と命名を揃えるための調整は Allowed Paths の範囲で実装者が行ってよい(AC の意味を変えない)。
  • AC1〜AC6 の -k 名は新規 test 関数名の固定であり、test file 未作成の baseline は exit 4 で fail する。

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Oct 5, 2026
  2. squne121 commented on Oct 6, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了要約(approved)

    OWNER の operator decision(Runtime Verification Applicability を current policy に従い immediate へ改訂する)に基づく再 refinement を完了しました。

    • 変更: Runtime Verification Applicability を not_applicable から immediate へ改訂しました。applicable_acs: [AC8] を宣言し、runtime_assertion_bindings は skill-invocation-runtime-smoke の 2 assertion を not_applicable(SKILL.md の変更が flag の使い方の記載のみで output contract と Procedure に触れないため)、subagent-lifecycle-causal-evidence-smoke を AC8 に dispositive で束縛しました。
    • 追加: AC8(実 runtime の structured run で opt-in flag 指定の成功 lifecycle が exit 0 で完了し、evidence file が作られない)と、その runtime_only の Verification Commands を追加しました。AC1〜AC7 は変更していません。
    • 書式是正: # baseline-expect: fail (exit 4: …) の 6 行を許可された annotation # baseline-expect: fail に是正しました。
    • iteration: 2(rewrite 2 回)。最終 review は approve / proceed(canonical_step2_route: step_2_5)、semantic review は非適用です。
    • 最終 body SHA-256: sha256:608a10302570bf10d675b468f16e649fb14f22dc705bd3719acf7f792d0bcc85

    この終了は実装開始の代替承認ではありません。#2944 / #2954 / #2941 / PR #2946 の scope は吸収していません。

  3. squne121 commented on Oct 6, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-10-06T12:09:51Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/2958
      body_sha256: "sha256:608a10302570bf10d675b468f16e649fb14f22dc705bd3719acf7f792d0bcc85"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:608a10302570bf10d675b468f16e649fb14f22dc705bd3719acf7f792d0bcc85","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_ojzgikju.md"}}
        vc_preflight:
          decision: pass
          classifications: '[{"ac":"AC1","line":3,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k allowlisted_events_preserved_on_lifecycle_failure -q","command_hash":"sha256:ccab5646b4a37786d2c57f7ae3ca153d67758658b6be59fabacd782ffe2fa266","execution_key_hash":"sha256:9956d5d93a49915889d4dd81b6ae9928cee6c8bcbb8feaf1ef4f7b0c1a9b461b","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":171,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:75034943299e90dc281be68d4044dbe972f4e3791674b1c62daa14ee05d636f5"}},{"ac":"AC2","line":7,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k excludes_message_prompt_and_secret_content -q","command_hash":"sha256:2ac1b2bae404b4cb6df4d70f58035e88aee9ad6605325c0687e3b9c243119a3b","execution_key_hash":"sha256:c877a8710b08f0c01185115ed2a2f08cdd512f6c57ed35829e07b6bd3cd8858d","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":182,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":6,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:db27802f05b706dd2bec0b802f1f97b6f797fb1fb84a72d24a8f540f1a9ef523"}},{"ac":"AC3","line":11,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k nothing_preserved_on_pass_or_without_flag -q","command_hash":"sha256:550447bc748fea2b7c1ceacfc73a19e9ff13e048fef4de64bec4b725b6e42a27","execution_key_hash":"sha256:09d93a524e94110f79121126e5f733009289c18338c35137e7d2ecd2f38a9b8c","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":168,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":10,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:193f8379e115713412a65c3cd03640c745899315af39e5a2ba8dd370f3f5c7f9"}},{"ac":"AC4","line":15,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k verdict_and_exit_code_unchanged -q","command_hash":"sha256:1c1ac156f58bc561d773e637279b244d4e020eecf529486d96be80b44747dd5c","execution_key_hash":"sha256:1372c5d2c80db9f35c33cec7a76903364d2a1a68ef8ae39daa3efb0de3edf5dc","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":186,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":14,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:af94b3454a849e1bdf400c626bd30a2a1c4896c30d9334baf253f97906875be1"}},{"ac":"AC5","line":19,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k existing_file_not_overwritten_and_path_confined -q","command_hash":"sha256:97bcb196ed6fe19d89d3975fb27ff57963569749c3fa7a245094539f3b4b2ed9","execution_key_hash":"sha256:8525c49363377607aec6237806fa4117801461342d15dfef07c433dac521e7b3","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":194,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:082cf651d7d6ff91697bf338a8ee2cd46b33dba7b8dcea1b5b468bb3c28925cb"}},{"ac":"AC6","line":23,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py -k output_is_bounded -q","command_hash":"sha256:4496492f9c752cb66f8a6894d97a86562a9b82469131437a0097423d1e7db1c5","execution_key_hash":"sha256:12f2eb3d15bdf9d82d58edfa82370d17c7267068c81811f837042485d727e1be","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.00s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_lifecycle_failure_evidence.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":168,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:d48b221af9bc5ca52c40b5a99148bf41499dc629475848dece0e102d62d1b23e"}},{"ac":"AC7","line":27,"raw_command":"rg -n -- \"--lifecycle-failure-evidence-json\" .claude/skills/worktree-agent-runtime-smoke/SKILL.md","command_hash":"sha256:91ea7f90343f71ad8fe677a42781bc93a49162c09f3472d12c9abe04e77d9376","execution_key_hash":"sha256:b4182a848d9f4364419e2f196020524a37dd27a27998456e34b45fa8a5cabc27","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{"RIPGREP_CONFIG_PATH":"__baseline_vc_preflight_env_unset__"},"duration_ms":2,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"fail","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":26,"raw":"# baseline-expect: fail"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:8c4cd6bbd70229a0d08cd8f572d401aa9db12df5cf03e20ddb0e084e4b5bc4b7"}},{"ac":"AC8","line":31,"raw_command":"uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime claude --mode structured --worktree \"$PWD\" --prompt-file scripts/agent-ops/tests/fixtures/runtime_vc_lifecycle_smoke_prompt.md --output-dir artifacts/runtime-smoke/lifecycle-failure-evidence-optin --timeout-seconds 300 --max-turns 6 --agent-type pr-reviewer --expect-marker-source subagent --expect-marker \"RUNTIME_VC_LIFECYCLE_SMOKE_OK\" --require-subagent-causal-evidence --require-min-subagents 1 --require-clean-postcondition --lifecycle-failure-evidence-json artifacts/runtime-smoke/lifecycle-failure-evidence-optin/lifecycle-failure-evidence.json","command_hash":"sha256:5adece1f82d26bc579ae5f0cf9f4ed2c31fe6ef7904f2be054f375518d385983","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_runtime_only","decision":"go","scope_class":"runtime_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"impl-review-loop","deferred_reason":"VC marked runtime_only; verification deferred to post-implementation runtime","runtime_verification_required":true,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:5f38d0f4ff209703e8b5231605ad08b207c2f81b9947b1e8c6e0acf1f0fc6fbc"}},{"ac":"AC_UNKNOWN","line":33,"raw_command":"test ! -e artifacts/runtime-smoke/lifecycle-failure-evidence-optin/lifecycle-failure-evidence.json","command_hash":"sha256:2d97c4b1977fe81de4a6f6f76b9a1a75a365981c8e8578f518b63273b84bac2e","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_runtime_only","decision":"go","scope_class":"runtime_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"impl-review-loop","deferred_reason":"VC marked runtime_only; verification deferred to post-implementation runtime","runtime_verification_required":true,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:5c241b5b507b439a142504871342039ad02b0b013302685c5498302c04b341a4"}},{"ac":"AC_UNKNOWN","line":37,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke.py scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_causal_evidence.py -q","command_hash":"sha256:3fc51622a8567db4dbdc9e5d09b6d7c8870e7e7ecf0edb4fa466de8b5da2d6b6","execution_key_hash":"sha256:1dc0f634962fb074d019b8aeb9b66ad50e9bd855ab5faaa7c3fc5fb293a1ac3f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["........................................................................ [ 36%]","........................................................................ [ 72%]","......................................................                   [100%]","198 passed in 47.89s"],"stdout_truncated":false,"stdout_original_line_count":5,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":48119,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":36,"raw":"# baseline-expect: pass"},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:5c3ef846c2208113ab9a409b298620fb8ad162de8f0f9bb99fffb1c6b8ce1d39"}}]'
          classifications_transport: {"schema":"vc_preflight_classifications_transport/v1","classification_count":10,"original_payload_sha256":"sha256:b1a139952b925be02a87da86db3a36fbf625988026aebdb07f24c0303bb99e3a","compact":false,"truncated":false}
        declared_path_overlap: '{"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"4a4d1f190860596260286fa3557ea5604ba01dc3","draft_policy":"include_drafts","prs":[{"number":2831,"title":"実装: Claude-GPT model/proxy runtime migration の3分類ルーティングを追加する","base_ref_name":"main","head_ref_name":"worktree-issue-2810-runtime-migration-classifier","head_ref_oid":"7c06e272c14b2d38e8f01899abdf85f3d0d5c9ec","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2831","changed_files_count_graphql":20},{"number":2914,"title":"fix: test-runner が mergeStateStatus=BLOCKED/UNSTABLE だけで TEST_VERDICT を FAIL にしないようにする","base_ref_name":"main","head_ref_name":"worktree-issue-2908-test-runner-blocked-not-fail","head_ref_oid":"2f44329742e2117b1bbbb34452417362558175aa","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2914","changed_files_count_graphql":1},{"number":2931,"title":"fix: Auto mode の固定 /tmp scratch 上書き false-deny を run-scoped workspace で解消する","base_ref_name":"main","head_ref_name":"worktree-issue-2860-run-scoped-scratch","head_ref_oid":"344f5da35326e04dacd13aa57dd962674888f336","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2931","changed_files_count_graphql":6},{"number":2940,"title":"feat: runner evidence に main-session init の permission_mode_observed を出力する","base_ref_name":"main","head_ref_name":"worktree-issue-2935-main-session-permission-mode","head_ref_oid":"37eb1ae20b98cc72fed816a7c88aca0d9b623a39","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2940","changed_files_count_graphql":3},{"number":2946,"title":"fix: runtime smoke fixture の child 起動先を general-purpose に是正し 2.1.289 で hook_id_correlated を成立させる (#2941)","base_ref_name":"main","head_ref_name":"worktree-issue-2941-claude-2-1-289-causal-evidence","head_ref_oid":"0fbc32e03e377b36d5800c940ab8311479c8cf46","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2946","changed_files_count_graphql":1},{"number":2951,"title":"feat: source-evidence C1 の初回取得後 operator 判断を束縛する (#2930)","base_ref_name":"main","head_ref_name":"worktree-issue-2930-source-evidence-human-review-operator-c1","head_ref_oid":"c168977f21d6d7c29b118e384d309149a15e42e7","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2951","changed_files_count_graphql":4},{"number":2959,"title":"feat: runtime smoke の lifecycle failure 時に raw lifecycle event を opt-in で保全する","base_ref_name":"main","head_ref_name":"worktree-issue-2958-lifecycle-failure-evidence","head_ref_oid":"9bdd634c03772152609f6aac61659c67bd9999e5","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2959","changed_files_count_graphql":3},{"number":2964,"title":"fix: claude_gpt_probe_live_catalog の curl が ambient proxy / default .curlrc を継承しないようにする","base_ref_name":"main","head_ref_name":"worktree-issue-2948-claude-gpt-probe-live-catalog-curl-ambie","head_ref_oid":"3a3f8d5943c72580471fdfe727cf8b39f03a15e7","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2964","changed_files_count_graphql":2}],"fetched_count":8,"totalCount":8,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:bb23094f158d3fc77f3794437e303f39503fbaa2e5ca0080d8e25df697fd78e9","errors":[]},"inventory_digest_extended":"sha256:e99cfdcc2df297b3105272e85939f5f894f14cca232173dc96f26fcaad1489bf","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}'
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: '{"issue_number":2958,"contract_source_kind":"issue_comment","contract_source_id":"6015924244","contract_body_sha256":"sha256:608a10302570bf10d675b468f16e649fb14f22dc705bd3719acf7f792d0bcc85","allowed_paths_normalized_sha256":"16e9c231d006ead42256b94e6ffdfcd10b768efb8fc2509b943c19fea1b05028","base_ref":"main","base_sha_at_snapshot":"4a4d1f190860596260286fa3557ea5604ba01dc3"}'
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

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions