Repository navigation
Closed
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "impl-review-loop Step 2.5 の runner_unavailable を、必要な marker identity だけ検証して安全に deferred route へ送る"
change_kind: workflowParent Issue
none(単独改善)
Parent Goal Ref
- Goal: なし(単独改善)
- Desired Destination: scope-rollup preflight の runner unavailable を、不要な artifact/capture 要件なしに deferred として記録できる実装 Issue
Current Validated Scope
parse_scope_rollup_run_result.pyのrunner_unavailable分岐で、repo/current issue/invocation/requested_at/generated_at の一致と時系列だけを検証するrunner_unavailableでは script SHA、result payload、capture sidecar の存在・内容を要求しないok/failed/ malformed marker と capture-sidecar failures は既存のstop_humansemantics を維持するpreparation.mdに上記 route 条件を明記し、既存 parser tests に回帰ケースを追加する
Remaining Parent Gaps
- scope-rollup runner が unavailable になる根本原因、起動経路、SubagentStop hook の改善は扱わない
- marker schema、capture sidecar の生成仕様、session-recording / permission / credential 検査の追加は扱わない
Outcome
.claude/skills/impl-review-loop/scripts/parse_scope_rollup_run_result.py、対応 pytest、preparation.md が更新され、identity 一致済みの runner_unavailable marker は script SHA・payload・capture sidecar がなくても routing_action: deferred へ決定論的に route され、その他の marker/sidecar failure は stop_human のまま targeted pytest が PASS する状態。
In Scope
runner_unavailablemarker についてrepo、current_issue、invocation_id、requested_at、generated_atの一致およびgenerated_at > requested_atを検証する処理runner_unavailableの検証順序を調整し、script SHA、result payload/hash/verify、capture sidecar を要求せず deferred を返す処理ok/failed/ malformed marker および capture-sidecar failures が従来どおりstop_humanになる回帰テストpreparation.mdの route 表と runner_unavailable の条件説明の更新
Out of Scope
- Issue 実装: C2a successor structural collision の誤った human review route を修正する #1797 の C2a successor structural collision route 修正
- Issue 実装: scope-rollup-runner capture の timestamp 誤変換と非verbatim転記による fail-closed 反復を解消する #1661 の timestamp parser hardening / verbatim 転記修正(本 Issue は identity-only unavailable route に限定)
- marker schema、sidecar schema/semantics、capture hook、runner 起動経路の変更
- 過剰な session-recording・permission・credential 検査を実装前提にする変更
- scope-rollup runner の unavailable 根本原因調査、retry、fallback runner の追加
Acceptance Criteria
- AC1: repo/current issue/invocation/requested_at/generated_at が一致し
generated_at > requested_atのstatus: runner_unavailablemarker は、script SHA 不在・result payload 不在・capture sidecar 不在でもstatus: runner_unavailableかつrouting_action: deferredを返す - AC2:
status: okとstatus: failedの marker は既存の script SHA/payload/capture 検証と route を維持し、成功 marker はcontinue、failed marker はstop_humanを返す - AC3: repo/current issue/invocation/requested_at/generated_at の不一致、malformed marker、stale timestamp、capture-sidecar missing/invalid/mismatch は
stop_humanを返す - AC4:
preparation.mdに、runner_unavailable は identity と timestamp 順序のみを検証して deferred、その他の marker/sidecar failures は stop_human とする条件が明記される - AC5: 対応する targeted pytest が全件 PASS する
Verification Commands
# AC1
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -q -k runner_unavailable# AC2
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -q -k failed_marker_stops_human# AC3
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -q -k "marker or capture or runner_unavailable"# AC4
# baseline-expect: pass
$ rg -n "runner_unavailable" .claude/skills/impl-review-loop/steps/preparation.md# AC5
# baseline-expect: pass
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -qAllowed Paths
.claude/skills/impl-review-loop/scripts/parse_scope_rollup_run_result.py.claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py.claude/skills/impl-review-loop/steps/preparation.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
ok/failed/ malformed marker または capture-sidecar failure の既存 stop_human semantics を弱める必要が生じた場合
Required Skills
なし
Required Design References
.claude/skills/impl-review-loop/steps/preparation.md.claude/skills/impl-review-loop/scripts/parse_scope_rollup_run_result.py.claude/skills/issue-refinement-loop/references/scope-rollup-policy.md
Scope Delta(該当時のみ記載)
N/A
Runtime Verification Applicability
本 Issue の変更対象はワークフロー文書・スクリプトのみです。ゲームの実行時動作には影響しません。
decision: not_applicable
reason: "Workflow documentation and script changes only. No runtime game behavior changed."Delivery Rule
- 1 Issue = 1 PR
- 実装着手前に fresh
CONTRACT_REVIEW_RESULT_V1 status: goを取得する - 専用 worktree で実装し、Draft PR を既定とする
Notes for Reviewer
- 実装: C2a successor structural collision の誤った human review route を修正する #1797(C2a successor structural collision route)は別スコープであり、本 Issue は parser の unavailable routing のみを扱う。
- 実装: scope-rollup-runner capture の timestamp 誤変換と非verbatim転記による fail-closed 反復を解消する #1661(timestamp 誤変換と非verbatim転記)は既存 Issue であり、本 Issue は timestamp/転記修正や marker/sidecar semantics を変更しない。
runner_unavailableは runner が実行不能であること自体を deferred として扱うため、payload/hash/sidecar の不在を追加の人手確認へ昇格させない。identity 不一致や malformed/stale marker は引き続き fail-closed とする。- ユーザー方針により、session-recording / permission / credential 検査の追加を実装前提にしない。
- overlap preflight は
overlap_requires_comment(C1) だった。実装: ensure_contract_snapshot.py・open-pr・impl-review-loop に PAIRWISE_MERGE_OBSERVATION_V1 の再利用禁止 consumer 契約を配線する #1793/実装: impl-review-loop preparation から scope rollup preflight(Step 2.5)を除去し、issue-refinement-loop の判定を再実行しない #1676/実装: feat(impl-review-loop): no-diff / superseded の終了処理を再実行可能なfinalizerに集約する #1116/feat(impl-review-loop): startup を capsule-first に強制し raw 初期調査を禁止する #1114/実装: concurrent work ledger で active worktree / dirty main / overlapping paths を loop 前に検出する #966/実装: model capability router で Haiku fallback の編集・成功判定スコープを制限する #962/実装: SubAgent result evidence gate で証跡なし成功報告を fail-closed にする #961/実装: human-interface-finalizer skill / SubAgent を導入し PR本文・Issue本文・公開コメント・人間向け docs を公開前 finalize する #351/ドキュメント: impl-review-loop に contract_snapshot_url 未指定時の fallback 手順を明記する #266/実装: impl-review-loop preparation の fail-closed handoff 改善(contract_snapshot_url missing 時の PREPARATION_RESULT_V1 出力) #259/実装: create-issue が付与するラベルと impl-review-loop の canonical ready tuple 期待値を整合させる #153 は広い tests/preparation scope または別 workflow を扱うため false positive/non-conflict、実装: scope-rollup-runner capture の timestamp 誤変換と非verbatim転記による fail-closed 反復を解消する #1661 は timestamp/転記、実装:scope_rollup.runをskill_runtime_execのsiblingexactprofileへ統合する #1601 は executor 統合であり、本 Issue の identity-only unavailable route と編集意図が異なる。実装時は本 Issue を先に独立して進め、他 Issue の変更を取り込まず、同一ファイルの競合は readback で確認する。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Jul 26, 2026
Contract Review Result
squne121 commentedon Jul 26, 2026
implement-issue: 実装完了
.claude/worktrees/issue-1805-runner-unavailable-identity-deferredworktree-issue-1805-runner-unavailable-identity-deferredb3a01c8ed6819ee13ce7f5d363180c05711a84b2fix(impl-review-loop): validate deferred marker identities strictly (#…
squne121 commentedon Jul 26, 2026
impl-review-loop: 完了
Issue #1805 の実装レビュー・ループを終了します。
APPROVEtrueMERGEABLECLEAN[]01356052ee1d396b3df1dd8ef1b32cde23478a0cfix(impl-review-loop): identity-bound runner unavailable をdeferredにする (…