Skip to content

実装: canonical VC plan に command-level timeout budget を追加し、全 review wrapper に同一 budget を配線する #2233

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "canonical VC plan に command-level timeout budget を追加し、baseline_vc_preflight / contract_readiness_check / run_contract_review_once / run_root_review_pipeline が同一 budget を消費する契約へ配線することで、成長し続ける既存 test suite の実測実行時間に追従できず単発実行のみで誤って Command exceeded timeout blocker を出す構造的欠陥を解消する"
change_kind: code

Parent Issue

none

Parent Goal Ref

  • Goal: なし(単独改善)
  • Desired Destination: なし(単独改善)

Current Validated Scope

  • command-level timeout budget(timeout_seconds / cleanup_tail_seconds / source / estimator_version / estimator_input_digest 等の provenance を含む)を canonical VC plan の一部として生成・伝播するロジックの追加
  • baseline_vc_preflight.py / contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py が、同一の command-level budget を独立 scalar の再指定なしに消費するよう配線変更
  • 上記ロジックに対する pytest(新規テストファイルおよび既存テストファイルへの追加)

Remaining Parent Gaps

なし

Outcome

command-level timeout budget が canonical VC plan(body_sha256、parser_contract_version、command occurrences 等と並ぶ一級のデータ)として生成され、baseline_vc_preflight.py / contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py の 4 箇所が、それぞれ独立に DEFAULT_TIMEOUT_SECONDS = 150 相当の scalar を再定義・再解釈するのではなく、同一の plan-derived budget を消費する状態になる。budget は最低限、決定論的な static_fallback source を持つ deterministic fallback を実装し、hard maximum を超える推定値は無制限に伸ばさず typed non-retryable failure(command_timeout_exceeds_policy 等)として扱う。history-based(過去実測 P50/P95 等)の calibration は本 Issue の必須スコープに含めず、将来の別 Issue に分離する前提で設計する。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: command-level budget の plumbing と deterministic fallback は静的検証(pytest によるユニットテスト、typed failure の unit-level 検証)のみで完結する。process-group cancellation や実際の timeout 発火の scaled runtime 検証(OWNER コメントの AC7/AC8 相当)は本 Issue のスコープに含めないため、immediate runtime verification は不要と判断する。scope 拡張が発生した場合は本セクションを再検討する。

In Scope

  • 単一の root-owned estimator/producer(pinned body / command plan → CommandBudget 生成 → hard policy ceiling 検査 → immutable plan digest)の追加
  • canonical VC plan(body_sha256, parser_contract_version, command occurrences, execution_key_hash 等)への command_budgets[] / aggregate budget / estimator evidence digest フィールドの追加
  • contract_readiness_check.py が同じ plan を検証し outer budget を導出するよう変更
  • baseline_vc_preflight.py が plan 由来の per-command budget を適用し、override precedence(既存 --timeout-seconds を hard global override として扱う)に従い、実効 timeout の provenance(timeout_seconds / cleanup_tail_seconds / source: explicit_override|static_fallback / estimator_version / estimator_input_digest)を result item に出力するよう変更
  • run_contract_review_once.py / run_root_review_pipeline.py が独立の scalar を再導出せず、同じ plan を消費するよう配線変更
  • per-command / aggregate の hard maximum(DEFAULT_PER_COMMAND_TIMEOUT_SECONDS / MIN_PER_COMMAND_TIMEOUT_SECONDS / MAX_PER_COMMAND_TIMEOUT_SECONDS / MAX_TOTAL_VERIFICATION_BUDGET_SECONDS)を固定し、超過時は subprocess 起動前に typed non-retryable failure とする
  • dynamic timeout 発火時に direct child/grandchild process が bounded time 内に確実に終了することを確認する process-group cancellation テスト
  • 上記変更に対応する pytest の追加(.claude/skills/issue-contract-review/scripts/tests/ および .claude/skills/issue-contract-review/tests/ 配下)
  • .claude/skills/issue-contract-review/references/vc-preflight.md への新しい budget 契約の記載

Out of Scope

Acceptance Criteria

  • AC1: command-level timeout budget を表す新規データ型(command_timeout_budget/v1 相当。command_hash / execution_key_hash / timeout_seconds / cleanup_tail_seconds / source / estimator_version / estimator_input_digest / sample_count / observed_p95_ms / policy_clamped を含む)が実装されている
  • AC2: baseline_vc_preflight.py / contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py が同一の canonical plan-derived budget を消費し、独立の DEFAULT_TIMEOUT_SECONDS = 150 相当の scalar を各ファイルで再指定していないことがテストで固定されている
  • AC3: aggregate invariant(outer budget が command-level budget の合計 + cleanup tail を常に上回ること)が、異なる timeout を持つ 2 本の non-pure VC を negative control に含めたテストで検証されている
  • AC4: 既存の --timeout-seconds オプションが hard global override として command-level budget より優先されることがテストで検証されている
  • AC5: 推定値が per-command / aggregate の hard maximum を超えた場合、subprocess を起動せず typed non-retryable failure(command_timeout_exceeds_policy 等)を返すことがテストで検証されている
  • AC6: result item に実効 timeout の provenance(timeout_seconds / cleanup_tail_seconds / source / estimator_version / estimator_input_digest)が出力されることがテストで検証されている
  • AC7: dynamic timeout 発火時に、direct child および grandchild process が bounded time 内に確実に終了する(process-group cancellation)ことがテストで検証されている
  • AC8: history evidence がない場合に明示的な static_fallback source が使われ、DEFAULT_TIMEOUT_SECONDS 相当の後方互換フォールバック値が引き続き 90 秒以上であることがテストで検証されている
  • AC9: uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -v が PASS する(標準 gate)

Verification Commands

# AC1
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py -v
# AC2
$ uv run --locked pytest .claude/skills/issue-contract-review/tests/test_run_contract_review_once_wrapper_wiring.py -v
# AC3
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget_aggregate_invariant.py -v
# AC4
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget_override_precedence.py -v
# AC5
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py -v -k policy_ceiling
# AC6
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py -v -k provenance
# AC7
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_vc_process_group_cancellation.py -v
# AC8
$ uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_default_seconds.py -v
# AC9
$ uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -v
$ pnpm typecheck
$ pnpm lint
$ pnpm test
$ pnpm build

Allowed Paths

  • .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py
  • .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_default_seconds.py
  • .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_timeout_classification.py
  • .claude/skills/issue-contract-review/scripts/contract_readiness_check.py
  • .claude/skills/issue-contract-review/scripts/run_contract_review_once.py
  • .claude/skills/issue-refinement-loop/scripts/run_root_review_pipeline.py
  • .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget_aggregate_invariant.py
  • .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget_override_precedence.py
  • .claude/skills/issue-contract-review/tests/test_run_contract_review_once_wrapper_wiring.py
  • .claude/skills/issue-contract-review/scripts/tests/test_vc_process_group_cancellation.py
  • .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py
  • .claude/skills/issue-contract-review/references/vc-preflight.md

Stop Conditions

Required Skills

なし

Required Design References

  • .claude/skills/issue-contract-review/references/vc-preflight.md

Scope Delta(任意)

N/A

Background

.claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py の DEFAULT_TIMEOUT_SECONDS = 150 は同ファイル内(baseline_vc_preflight.py:61 付近)の単一定義であり、contract_readiness_check.py と run_contract_review_once.py はこの定数を import して再利用しているだけである(「150 秒が 4 ファイルに散在」という記述は不正確であり、正しくは「単一定義 + 複数箇所からの import 依存」)。run_root_review_pipeline.py はこの DEFAULT_TIMEOUT_SECONDS を直接使わず、contract_readiness_check.py 側の派生 aggregate 定数(CONTRACT_READINESS_CHECK_TIMEOUT_SECONDS = VALIDATE_ISSUE_BODY_TIMEOUT_SECONDS + BASELINE_VC_PREFLIGHT_AGGREGATE_TIMEOUT_SECONDS + 20、こちらは #2207/PR #2221 で aggregate budget 側として動的化済み)を使っている。

Issue #2195 の contract に含まれる uv run --locked pytest .claude/skills/issue-refinement-loop/tests -v を control-plane が実測したところ、1556 passed in 271.31s(271 秒、real 4m32s)であり、単一回の実行だけで固定 150 秒キャップを大幅に超過することを確認した。この VC は #2195 が新規追加したものではなく、.claude/skills/issue-refinement-loop/tests/ 配下の既存 test suite 全体を対象とする、この skill を触る多数の Issue で使われる一般的な VC パターンである。review pipeline(run_root_review_pipeline.py produce → contract_readiness_check.py → baseline_vc_preflight.py)は、VC の重複を排除して VC occurrence が 1 件のみになっても、この単一コマンドの実行だけで Command exceeded timeout blocker を返し、Issue 本文の contract readiness を needs-fix / contract_readiness_human_judgment にしてしまう。これは Issue 本文の品質問題ではなく、review pipeline 側の per-command timeout 定数が、成長した既存 test suite の実測実行時間に追従していない構造的な問題である。

当初案(固定値の再引き上げ、または pytest 収集数を単独 authority とする estimator)は OWNER コメント(https://github.com/squne121/loop-protocol/issues/2233#issuecomment-5316918144)で reframe_in_place を要求された。主な指摘は以下の通り。

  1. pytest の収集数(--collect-only)は実行時間 estimator の単独 authority にできない。fixture setup/teardown、parametrization、plugin、I/O、uv run の環境同期コストが実時間に影響するため、収集数は補助 feature に留めるべき。
  2. 過去の実測時間ベースの history estimator を使うなら、command normalization/hash、cwd/env delta、uv.lock digest、Python/uv/pytest version、runner class、tested head SHA、sample count、P50/P95、TTL、cold-start fallback、timeout/cancelled sample の扱い、atomic write、poisoning 防止を定義する必要がある。既存の ci_runtime_baseline_v1(docs/dev/ci-performance.md)と bootstrap 3 runs / decision baseline 20 runs 方針を無視して独自 policy を追加すると二重 SSOT になる。
  3. per-command の hard ceiling を固定し、推定値が hard maximum を超えたら無制限に伸ばさず typed non-retryable failure にすべき。
  4. 実効 timeout の provenance(timeout_seconds / cleanup_tail_seconds / source / estimator_version / estimator_input_digest)を result item に出力すべき。これは baseline_vc_preflight/v1 の schema change になり得るため、同じ schema/producer file を触る 実装: baseline_vc_preflight/v1 に重複 non-pure VC コマンド検出の diagnostics フィールドを追加する #2232(重複 non-pure VC diagnostics、OPEN)との順序・rebase・consumer compatibility も明示すべき。

codebase-investigator による事実確認の結果、「per-command budget/provenance concept が全く存在しない」という前提も一部不正確であることが判明した。baseline_vc_preflight.py には compute_execution_key_hash()(560行目付近)と duration_ms(1177行目付近で計測)が既に存在する。ただし estimator_version / source 等の provenance field は存在せず、この点は OWNER 指摘通り正しい。

本 Issue は OWNER の推奨に従い、責務配置を「root-owned estimator producer(pinned body/command plan → trusted telemetry → CommandBudget 生成 → hard policy ceiling 検査 → immutable plan digest)→ canonical VC plan(command_budgets[] 等を追加)→ contract_readiness_check(同じ plan を検証し outer budget を導出)→ baseline_vc_preflight(budget 適用、override precedence、provenance 出力、process group 回収)→ run_root_review_pipeline/run_contract_review_once(独立 scalar を再導出せず同じ plan を消費)」へ reframe する。history-based estimator まで本 Issue 内で実装するとスコープが際限なく広がるため、command-level budget の plumbing と deterministic fallback(static_fallback)までに限定し、historical calibration(P50/P95 収集等)は Out of Scope として明示的に別 Issue へ分離する。

#2232(実装: baseline_vc_preflight/v1 に重複 non-pure VC コマンド検出の diagnostics フィールドを追加する、OPEN)は同じ baseline_vc_preflight.py の result item schema を触るが、focus は重複検出 diagnostics であり本 Issue の budget provenance フィールドとは別軸である。両 Issue が同じ producer schema/ファイルに触れる可能性があるため、実装順序としては本 Issue(budget provenance フィールド追加)を先に進めるか、#2232 の diagnostics フィールドと衝突しないキー名を選び、マージ順序が入れ替わった場合は rebase 時に result item のキー集合を両方満たすよう明示的に確認すること。いずれの順でマージされても、後発 PR は先行 PR がマージ済みの schema を前提に rebase し、consumer(contract_readiness_check.py 等)が両方の新フィールドを読み取れることを確認する。

Refs #2195, Refs #2207, Refs #1333, Refs #2232, Refs OWNER comment #2233 (comment)

Delivery Rule

1 Issue = 1 PR とする。worktree を作成して作業し、PR は Draft で作成する。

Notes for Reviewer

Activity

  1. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    [create-issue] post-create ready tuple validation FAILED: title prefix or phase/implementation label missing. Manual fix required.

  2. added
    enhancement
    phase/implementation
    triage-required
    agent/implementer
    on Aug 17, 2026
  3. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    [create-issue] Recovery applied: label-readback stage mismatch resolved via create_issue_txn.py reconcile (canonical/agent/implementer labels restored). Post-create ready tuple validation now PASSES (title prefix ✓, phase/implementation label ✓).

  4. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES。推奨 disposition は reframe_in_place です。

    レビュー対象は、2026年8月17日時点の main 2b20de74683cc01d0a7e466f63268fb880f4280a、Issue #2233 本文、関連 Issue / PR、現行実装、既存テスト、設計資料です。Issue コメント2件は ready-tuple のラベル復旧記録だけであり、以下の技術的な曖昧性を解消する判断は含んでいません。

    Issue の問題認識自体は妥当です。#2207 / PR #2221 は aggregate / outer deadline を VC 本数に応じて動的化しましたが、単一 VC の上限150秒は残余リスクとして明示的に残していました。#2233 が示す issue-refinement-loop/tests 全体の実測271.31秒は、固定150秒では正当な regression gate を誤って timeout にする実例になっています。

    しかし、現契約は「per-command timeout を動的化する」としながら、その値を必要とする上位 budget・production entrypoint・共有 planner を Out of Scope / Allowed Paths 外に置いています。このままでは、実装しても目的を達成しないか、#2207 で確立した timeout 階層を破壊します。


    実装着手を止める Blocker

    P0-1. 動的な inner timeout を outer budget が表現できない

    現在の contract_readiness_check.py は、DEFAULT_TIMEOUT_SECONDS を単一 scalar として import し、次の式で aggregate budget を算出しています。

    per_vc_slot = 150 + cleanup_tail 15
    baseline_aggregate = max(2, command_occurrence_count) * 165 + 20
    

    derive_review_budget() に渡される入力も command_occurrence_count だけであり、各コマンドの timeout 値は渡りません。

    例えば、正当に300秒を必要とする non-pure pytest VC が2本ある場合、保守的な直列予算は少なくとも次の値です。

    (300 + 15) + (300 + 15) + 20 = 650 秒
    

    しかし現行式の N=2 は350秒です。inner command に300秒を認めても、outer baseline_aggregate が350秒で process tree を終了させます。

    ところが #2233 は aggregate budget の変更と contract_readiness_check.py / run_root_review_pipeline.py のインターフェース変更を Out of Scope にし、aggregate 側を変更しなければ導出不能と判明した場合を Stop Condition にしています。つまり、現行実装を正しく調査した時点で、その Stop Condition に到達します。

    必要な修正: budget の入力を N だけではなく、canonical plan が持つ command-level budget 列へ変更する必要があります。

    baseline_aggregate
      >= Σ(command_timeout_i + cleanup_tail_i) + aggregate_margin
    

    少なくとも初期実装では、実行 occurrence をすべて合算する保守式にすべきです。将来 parallel batch を厳密にモデル化する場合だけ、canonical planner が生成した batch graph の critical path を使えます。


    P0-2. run_contract_review_once.py は150秒を明示指定するため、default の動的化では直らない

    run_contract_review_once.py は DEFAULT_TIMEOUT_SECONDS を _VC_PREFLIGHT_PER_COMMAND_TIMEOUT として importしています。さらに baseline_vc_preflight.py の起動時に、

    --timeout-seconds 150
    

    を明示的に渡しています。

    このため、baseline_vc_preflight.py の argparse default を動的化しても、この production entrypoint では引き続き150秒です。逆に、明示された --timeout-seconds を estimator が無視する実装にすると、現在の CLI 契約を無断で「hard override」から別の意味へ変更することになります。

    既存 wrapper テストも、scalar constant の import、outer timeout の scalar 関係式、明示的な --timeout-seconds argv を固定しています。ところが run_contract_review_once.py とその wiring test は #2233 の Allowed Paths 外です。

    必要な修正: CLI precedence を契約で固定し、全 entrypoint を更新してください。後方互換性を優先するなら次が自然です。

    • --timeout-seconds が明示された場合は global hard override。
    • 引数省略時のみ command-level dynamic budget を使用。
    • run_contract_review_once.py は単なる default 値を明示指定しない。
    • production control-plane は同じ canonical plan またはその immutable digest に束縛された budget を消費する。

    P0-3. AC1 が相互に異なる3方式を許容し、無変更実装すら合格し得る

    AC1 / Outcome は、次を or で許しています。

    1. pytest の収集数に応じる。
    2. 過去の実測時間に応じる。
    3. 実装: review pipeline の timeout budget を動的 VC 本数ベースに再設計する #2207 の aggregate 式と「一貫した形」で導出する。

    これらは入力、信頼境界、失敗モード、必要な I/O がまったく異なる設計です。さらに3番目は、「150秒を維持する」実装も #2207 の 150 + 15 式と一貫していると主張できます。したがって AC1 は falsifiable ではありません。

    仮に aggregate を VC 本数で均等割りするだけでも、

    T(N) = (max(2, N) * (150 + 15) + 20 - 20) / N - 15
    

    となり、N >= 2 では結局150秒です。N=1 の低本数 floor だけで315秒になりますが、2本以上の長時間 VC や異質なコマンド構成を解決しません。

    必要な修正: AC に次を固定してください。

    • estimator の authority
    • estimator input
    • command identity
    • fallback
    • minimum / maximum
    • explicit override precedence
    • aggregate formula
    • provenance
    • estimate unavailable / malformed / over-policy 時の typed failure
    • schema compatibility

    P0-4. 現行 canonical planner と提案された estimator の責務が両立しない

    現在の compute_canonical_vc_plan() は、pinned Issue body の in-memory bytesだけを入力とする side-effect-free planner です。I/O や subprocess を実行せず、per_command_timeout_seconds も単一 scalar として返します。

    一方、Issue が候補に挙げる方式は次の追加責務を必要とします。

    • pytest --collect-only: subprocess 起動、pytest collection、plugin / hook 実行
    • 過去実測: artifact 読み込み、サンプル選定、環境 fingerprint、TTL、provenance 検証

    pytest の --collect-only は収集された node list を取得できますが、collection では pytest_collection_modifyitems 等の hook が実行され、pytest_generate_tests は collection 中に parametrization を生成します。単なるファイル数・関数数カウンターではありません。([pytest ドキュメント]1)

    したがって estimator が別 subprocess で collection を行うなら、planner はもはや side-effect-free ではありません。planner の外で行うなら、root pipeline と executor が同じ estimator snapshot を消費する binding が必要です。現契約には、その snapshot、digest、I/O ownership、TOCTOU 防止策がありません。

    必要な修正: planner の入力を、あらかじめ trusted/root-owned producer が確定した immutable estimator evidence に拡張するか、history-based estimator を別 Issue に分離してください。


    P0-5. Runtime Verification Applicability: not_applicable は誤り

    #2233 が変更するのは、実時間、subprocess lifetime、inner / outer deadline の順序、timeout 時の process-group cleanup です。静的な constant relationship だけを変えた #1333 と異なり、今回の主張は実際の時間経過なしには証明できません。Issue 本文が not_applicable とする根拠は、問題の性質と一致していません。

    PR #2221 では runtime fault injection によって、outer wrapper が cooperative SIGTERM handler を通らない問題、signal handler の lock deadlock、SIGTERM を無視する grandchild の残留、kill 後に reap されない zombie などが実際に発見・修正されています。unit test だけでは検出できなかった不具合です。

    Python の公式仕様でも、subprocess.run(timeout=...) は timeout 時に child を kill して wait しますが、Popen.communicate(timeout=...) は自動的には child を終了しません。また start_new_session=True は POSIX で setsid() を実行します。どの API と process-group policy を使うかが correctness に直接影響します。([Python documentation]2)

    必要な修正: Runtime Verification は immediate とし、production と同じ subprocess 階層を通す scaled integration test を必須にしてください。


    P0-6. Allowed Paths と Verification Commands が実装責務を検証できない

    許可されているテストファイルは次の2件だけです。

    • test_baseline_vc_preflight_default_seconds.py
    • test_baseline_vc_preflight_timeout_classification.py

    前者は DEFAULT_TIMEOUT_SECONDS >= 90、argparse default、ソース文字列の default=DEFAULT_TIMEOUT_SECONDS を確認する静的テストです。後者は stderr に "timeout" という語が含まれる高速失敗を genuine timeout と誤分類しないためのテストであり、dynamic estimator、outer budget、wrapper wiring は検証していません。

    一方で、実際に更新が必要な次のテストは Allowed Paths 外です。

    • review budget formula
    • canonical planner
    • root pipeline wiring
    • run_contract_review_once wiring
    • process-group cancellation / outer-deadline integration

    -k timeout で scripts/tests 全体を実行する AC2 も、今回追加されるべき estimator の正負ケースを特定していません。無関係な timeout classification test が通るだけでも AC2 を満たせます。


    High findings

    P1-1. pytest の収集数は実行時間 estimator の authority にならない

    pytest の実時間には test body だけでなく fixture の setup / teardown、parametrization による実行数の増加、plugin、test selection、外部プロセス、I/O が含まれます。pytest 公式にも、parametrized fixture によって収集・実行件数が増え、各 fixture の setup / teardown が実行されることが示されています。実時間の観測には --durations が用意されています。([pytest ドキュメント]1)

    さらに対象コマンドは uv run --locked pytest ... です。uv は uv run の前に project environment を同期し、--locked は lockfile 更新を禁止するだけです。環境同期自体を止めるのは --no-sync です。したがって cold / warm environment による差も command timeout に含まれます。([Astral Docs]3)

    収集数は補助 feature にはなっても、timeout の単独 authority にはできません。


    P1-2. 「過去の実測時間」の lifecycle が未定義

    history-based estimator を採用する場合、少なくとも次が必要です。

    command normalization / command hash
    cwd / env delta
    uv.lock digest
    Python / uv / pytest version
    runner class
    tested head SHA
    sample count
    P50 / P95
    TTL
    cold-start fallback
    timeout / cancelled sample の扱い
    atomic write / concurrent update
    untrusted branch からの poisoning 防止
    

    リポジトリには既に ci_runtime_baseline_v1 と CI performance policy があり、1回の測定だけで性能判断せず、bootstrap 3 runs と decision baseline 20 runsを分離し、P50 / P95 で評価する方針が定義されています。#2233 は Required Skills: なし としていますが、この既存資産を無視して独自の測定 policy を追加すると二重の performance SSOT になります。

    271.31秒という1回の観測は「150秒が不足した」という反証には十分ですが、全環境に適用する dynamic policy の決定根拠には不十分です。


    P1-3. per-command の hard ceiling がなく、Issue body から deadline を無制限に拡張できる

    #2207 は command occurrence 数を40件に制限しています。しかし per-command timeout が無制限に伸びるなら、件数 cap だけでは total deadline を制限できません。現行 planner の policy cap と formula は150秒固定を前提に、最大約110分になることを根拠としていました。

    次を別々に固定すべきです。

    • DEFAULT_PER_COMMAND_TIMEOUT_SECONDS
    • MIN_PER_COMMAND_TIMEOUT_SECONDS
    • MAX_PER_COMMAND_TIMEOUT_SECONDS
    • MAX_TOTAL_VERIFICATION_BUDGET_SECONDS

    推定値が hard maximum を超える場合は、無制限に deadline を伸ばさず、command_timeout_exceeds_policy 等の typed non-retryable failure にすべきです。


    P1-4. 実効 timeout の provenance が出力されない

    現行 result item は duration_ms、command_hash、execution_key_hash を出力しますが、「そのコマンドに何秒の timeout が適用されたか」「なぜその値になったか」を出力しません。dynamic 化後に VCP_TIMEOUT が起きても、policy の誤推定か command hang かを判別できません。

    最低限、各実行結果に次を持たせる必要があります。

    timeout_budget:
      timeout_seconds: 360
      cleanup_tail_seconds: 15
      source: explicit_override | historical_p95 | static_policy | fallback
      estimator_version: v1
      estimator_input_digest: sha256:...

    これは baseline_vc_preflight/v1 の schema change になり得るため、同じ producer schema と同じ baseline_vc_preflight.py を変更する #2232 との順序・rebase・consumer compatibility も明示すべきです。


    推奨するリフレーム

    推奨タイトル

    実装: canonical VC plan に command-level timeout budget を追加し、全 review wrapper に同一 budget を配線する

    「pytest件数から timeout を推定する」ことを主目的にせず、まず command-level budget を end-to-end で表現・伝播できる設計を完成させるべきです。

    推奨責務配置

    root-owned estimator producer
      ├─ pinned body / command plan を確定
      ├─ trusted telemetry snapshot を取得
      ├─ command ごとの CommandBudget を生成
      ├─ hard policy ceiling を検査
      └─ immutable plan digest を生成
    
    canonical VC plan
      ├─ body_sha256
      ├─ parser_contract_version
      ├─ command occurrences
      ├─ execution_key_hash
      ├─ command_budgets[]
      ├─ aggregate budget
      └─ estimator evidence digest
    
    contract_readiness_check
      ├─ 同じ plan を検証
      ├─ Σ(command timeout + cleanup tail) から outer budget を導出
      └─ baseline subprocess へ plan / budget を渡す
    
    baseline_vc_preflight
      ├─ 各 command に対応する budget を適用
      ├─ explicit override precedence を適用
      ├─ result に effective timeout provenance を出力
      └─ timeout 時に process group を回収
    
    run_root_review_pipeline / run_contract_review_once
      └─ 独立 scalar を再導出・再指定せず、同じ plan を消費
    

    推奨データ契約

    command_budget_schema: command_timeout_budget/v1
    command_hash: sha256:...
    execution_key_hash: sha256:...
    timeout_seconds: 360
    cleanup_tail_seconds: 15
    source: historical_p95
    estimator_version: v1
    estimator_input_digest: sha256:...
    sample_count: 20
    observed_p95_ms: 287000
    policy_clamped: false

    history evidence が存在しない場合は、明示的な static_fallback を使います。pytest --collect-only の件数は、history がない場合の補助 feature としてのみ利用し、単独の authority にしない方が安全です。


    改訂すべき Acceptance Criteria

    1. Canonical command budget: pinned body と同じ command sequence に対して、各 occurrence の timeout_seconds、source、estimator version、evidence digest を生成する。

    2. Single-plan wiring: baseline_vc_preflight.py、contract_readiness_check.py、run_root_review_pipeline.py、run_contract_review_once.py が同じ plan に束縛され、独立した150秒 scalar を再指定しない。

    3. Aggregate invariant: outer budget は command-level budget と cleanup tail の保守的合計を常に上回る。異なる timeout を持つ2本の non-pure VC を negative control に含める。

    4. Override precedence: 既存 --timeout-seconds の意味を hard global override、maximum、minimum、fallback のいずれかに固定する。推奨は hard global override。

    5. Bounded policy: per-command / aggregate の hard maximum を持ち、超過時は subprocess 起動前に typed non-retryable failure になる。

    6. Provenance: producer result が実効 timeout、source、estimator version、input digest を出力する。

    7. Scaled runtime verification: legacy cap では timeout するが新 budget では完走する command を、production wrapper 階層から実行する。

    8. Cancellation: dynamic timeout 発火時も direct child と grandchild が bounded time 内に消滅する。

    9. Historical policy: history を採用する場合、command identity、環境 fingerprint、minimum samples、P95、TTL、fallback、atomicity、poisoning boundary を固定する。

    10. 実装: baseline_vc_preflight/v1 に重複 non-pure VC コマンド検出の diagnostics フィールドを追加する #2232 coordination: schema / producer file の競合順序、consumer inventory、merge sequencing を明記する。


    必要な Allowed Paths

    最低限、次まで拡張しないと end-to-end の修正になりません。

    .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py
    .claude/skills/issue-contract-review/scripts/contract_readiness_check.py
    .claude/skills/issue-contract-review/scripts/run_contract_review_once.py
    .claude/skills/issue-refinement-loop/scripts/run_root_review_pipeline.py
    
    .claude/skills/issue-contract-review/scripts/tests/test_review_budget_planner.py
    .claude/skills/issue-contract-review/scripts/tests/test_review_budget_formula.py
    .claude/skills/issue-contract-review/tests/test_run_contract_review_once_wrapper_wiring.py
    .claude/skills/issue-contract-review/scripts/tests/test_vc_process_group_cancellation.py
    .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py
    
    .claude/skills/issue-contract-review/references/vc-preflight.md
    

    history-based estimator を #2233 内で実装するなら、さらに ci-test-performance の schema、artifact producer / consumer、performance policy 文書を Scope に含める必要があります。そこまで広げない場合は、#2233 を command-level budget の plumbing と deterministic fallback までに限定し、historical calibration を別 Issue に分離するのが妥当です。

    最終結論

    #2233 は必要な follow-up ですが、現在の本文は次の状態です。

    • inner timeout を動的化しながら outer budget の変更を禁止している
    • production entrypoint が150秒を明示指定する経路を除外している
    • side-effect-free planner と I/O を必要とする estimator を混同している
    • AC1 が複数の非互換方式を許容し、無変更でも合格し得る
    • runtime defect を unit-only / not_applicable としている
    • policy ceiling、CLI precedence、provenance、history lifecycle が未定義
    • Allowed Paths が必要な production wiring と回帰テストを含んでいない

    実装着手前に reframe_in_place し、command-level budget を canonical plan の一部に格上げし、すべての wrapper が同じ budget を消費する契約へ変更すべきです。

  5. changed the title [-]実装: baseline_vc_preflight の per-command timeout を実測実行時間に応じて動的化する[/-] [+]実装: canonical VC plan に command-level timeout budget を追加し、全 review wrapper に同一 budget を配線する[/+] on Aug 17, 2026
  6. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-17T14:28:05Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/2233
      body_sha256: "sha256:b34f4969270bd439c9d85a1a84c9adc861248908abf440add0324a978692b70f"
      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:b34f4969270bd439c9d85a1a84c9adc861248908abf440add0324a978692b70f","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_bf7u8uy6.md"}}
        vc_preflight:
          decision: pass
          classifications: '[{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py -v","command_hash":"sha256:aedc768bb1458fd8841d0699bab80aaf3fc155e5ff33f52a034d9ad2e90e95ea","execution_key_hash":"sha256:c420f76d485318fd85a68cd19ac9fe90e0818994798964e25357edec7fb3ce4a","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":10,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":164,"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},{"ac":"AC2","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/tests/test_run_contract_review_once_wrapper_wiring.py -v","command_hash":"sha256:44ea8438e0e7256e105a5229f3c9211785156536cec6b7dd541f9da874352b6c","execution_key_hash":"sha256:1bb40e6777c6143034d51736f7894f5b865addd34bd8e4fecfb31483913a76ad","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":true,"stdout_original_line_count":22,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":253,"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},{"ac":"AC3","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget_aggregate_invariant.py -v","command_hash":"sha256:ffc6a8a3e470e9d4669aaceeeeb3ee16862a3829a914e0f9aa03e43a816d0ae3","execution_key_hash":"sha256:ec405306ec66c96a77e0400b041723853e5f76d287ce484baf76c86d555ec363","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":10,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":201,"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},{"ac":"AC4","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget_override_precedence.py -v","command_hash":"sha256:408af56f28e9c3a424bfa87b2b160365f511d2c1db6af17a79a5d72c69bc1feb","execution_key_hash":"sha256:0946eafcc1436a93be73a61115399077b48db97d8c89cfe900b90cef0200e161","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":10,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":172,"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},{"ac":"AC5","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py -v -k policy_ceiling","command_hash":"sha256:1de145b45698ec26d45d003839df7c1d65bf222698466055733634b1b8d1b52f","execution_key_hash":"sha256:1473dfc0011a9eca8114a53676a72194b49b4b640cd0a135d2a30e9317f88377","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":10,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":169,"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},{"ac":"AC6","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_command_timeout_budget.py -v -k provenance","command_hash":"sha256:251f48202c5b31ba988f094cf28edc77bbc99afa71de8c232a923a5b01b3cded","execution_key_hash":"sha256:56ebbee06472d5cb991ac5b429e3f7ecfa7b78c2d474d79b290a47701cf0d6d4","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":10,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":304,"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},{"ac":"AC7","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_vc_process_group_cancellation.py -v","command_hash":"sha256:a10e4fe162baebc65298deb71d937a75aad07dea24a546ad3982a5d22c6d4cce","execution_key_hash":"sha256:e46484a1dd96520657e5b7d20958c41e7291e7c7d74bdce6081bc9e09e89eb84","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":15,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":12580,"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},{"ac":"AC8","line":2,"raw_command":"uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_default_seconds.py -v","command_hash":"sha256:d9e3acf5a8c6e39032206cd64f771759d8164b1f0dbef0eb68e002be1c8b51e5","execution_key_hash":"sha256:e20a06f43aad81a871564eb4fb6e83900ed128bf435f890ad15b81da58d5d67f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":14,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":186,"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},{"ac":"AC9","line":2,"raw_command":"uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -v","command_hash":"sha256:39a0f4b138604931db015ba5a5827400fd5323fc7d89836f5bd2d19d46bf4fcf","execution_key_hash":"sha256:be849c42814dadef37adf1a31dcdadff315637b841d555d660c8800188773a8c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":true,"stdout_original_line_count":35,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":13376,"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},{"ac":"AC_UNKNOWN","line":1,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":"sha256:2256ec6387c103f51a1c82dae38ac94435427b1940fb40e3de6b394a1637c49b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":1,"stderr_truncated":false,"stderr_original_line_count":2,"duration_ms":915,"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,"pnpm_gate_evidence_required":true},{"ac":"AC_UNKNOWN","line":1,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":"sha256:3225a0f00d44814e3069288fb105dbc93dd62b66bb532c2706d4451e0ac352d9","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":1,"stderr_truncated":false,"stderr_original_line_count":2,"duration_ms":9951,"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,"pnpm_gate_evidence_required":true},{"ac":"AC_UNKNOWN","line":1,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":"sha256:60611f60c416bc8fb93beb8001f0f6af1ec9d0b599f95bed1e5cc0900f63e459","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":10,"stderr_truncated":false,"stderr_original_line_count":2,"duration_ms":16952,"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,"pnpm_gate_evidence_required":true},{"ac":"AC_UNKNOWN","line":1,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:1a5575c6becc32f59ceee5ba1a8842a79bba4abf8263e64d56073ab0b2aaaab1","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":11,"stderr_truncated":false,"stderr_original_line_count":2,"duration_ms":1187,"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,"pnpm_gate_evidence_required":true}]'
          classifications_transport: {"schema":"vc_preflight_classifications_transport/v1","classification_count":13,"original_payload_sha256":"sha256:614c923ad9d107bdca5d6f3fea11dafa00c282529bd1ba253c46662c7661bf5f","compact":true,"truncated":true}
        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":"2b20de74683cc01d0a7e466f63268fb880f4280a","draft_policy":"include_drafts","prs":[],"fetched_count":0,"totalCount":0,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:e786a8d739aa142ae716a17192470fe898f5a61164a46c95293d1a6b6dca21df","errors":[]},"inventory_digest_extended":"sha256:47350ea7a55ad7ace7b9bf37f1728c4858391c0a7a56153672ab6d59d1545438","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":2233,"contract_source_kind":"issue_comment","contract_source_id":"5317056458","contract_body_sha256":"sha256:b34f4969270bd439c9d85a1a84c9adc861248908abf440add0324a978692b70f","allowed_paths_normalized_sha256":"9ecd7135411d1da12b5301c632dae262724b0fe7d8639bf91f077ae8479e5f9e","base_ref":"main","base_sha_at_snapshot":"2b20de74683cc01d0a7e466f63268fb880f4280a"}'
  7. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了報告

    OWNER コメント(issuecomment-5316918144)が要求した reframe_in_place を反映し、Issue #2233 本文を全面改訂しました。

    実施内容

    1. Step 1 (Investigation): codebase-investigator により、コメントの主張(DEFAULT_TIMEOUT_SECONDS が4ファイルに散在/per-command provenance が皆無)を実コードと突き合わせ、正確な現状(単一定義+複数 import、duration_ms/execution_key_hash は既存だが provenance field は未実装)を確認。
    2. Step 2→4 (Review→Rewrite): run_root_review_pipeline.py の VERDICT: needs-fix(VCP_UNEXPECTED_PASS)を受け、issue-editor に委譲してタイトル・Outcome・AC(9項目、history-based estimator は Out of Scope に分離)・Allowed Paths(9ファイル追加)・Background(実装: baseline_vc_preflight/v1 に重複 non-pure VC コマンド検出の diagnostics フィールドを追加する #2232 との調整方針)を全面改訂。
    3. 2周目レビュー: 新 AC の VC が既存テストファイルへの -k フィルタで 0 件マッチ(exit 5, hard block)していたため、専用の新規テストファイル参照へ再修正。
    4. 3周目レビュー: VERDICT: approve、BLOCKERS: 0(body_sha256: sha256:b34f4969270bd439c9d85a1a84c9adc861248908abf440add0324a978692b70f)。

    Final Gate

    issue-contract-review(run_contract_review_once.py --mode execute)を実行し、status: go(readiness/vc_preflight/product_spec 全 pass, blockers 0)を確認。Contract Snapshot を issuecomment-5317056458 に公開済み。

    次のアクション

    impl-review-loop へ handoff 可能(status: impl_ready)。

    LOOP_HANDOFF_RESULT_V1:
      status: impl_ready
      routing_action: run_impl_review_loop
      contract_review:
        status: go
        gate_result: fresh_go
        latest_comment_url: https://github.com/squne121/loop-protocol/issues/2233#issuecomment-5317056458
        generated_at: 2026-08-17T14:23:22.023193Z
        body_sha256: sha256:b34f4969270bd439c9d85a1a84c9adc861248908abf440add0324a978692b70f
      metadata:
        title_prefix_ready: true
      label_sync_observation:
        kind: presentation_sync
        result: noop
        detail: "本ループでは label mutation を実行していない(既存 label をそのまま維持)"
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
  8. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-08-17T14:57:30Z)

  9. squne121 commented on Aug 17, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-08-18T00:00:00Z)

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2245"
      head_sha: "b01c6e5dfb19239635591b873becfb0bae368bac"
      issue_number: 2233
      termination_reason: approved
      merge_ready: false
      iteration: 1
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues: []
      note_only_observations: []
  10. self-assigned this
    on Aug 18, 2026
  11. squne121 commented on Aug 18, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-08-18T13:40:00Z)

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2245"
      head_sha: "29aa8d0a505496541c99c171e29c0ae55709fa1d"
      issue_number: 2233
      termination_reason: approved
      merge_ready: false
      iteration: 2
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues: []
      note_only_observations: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent/implementerenhancementphase/implementationtriage-required

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions