Skip to content

実装: ci-verdict-summary が conditional close-evidence-publication check を excluded として分類する #2587

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "conditional skipped close-evidence-publication を excluded として分類し、normal PR の merge-ready を block しない一方、unknown conditions は fail-closed に維持する"
change_kind: code

Parent Issue

なし(単独改善)

Parent Goal Ref

Current Validated Scope

  • PR fix: trusted owner anchor section spans #2583 run #34237941034 の same-run check-runs では close-evidence-publication が conditional skipped として現れ、current required execution jobs は success である。
  • .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py の CLASSIFICATION_MAP に当該 check の分類がないため、unknown が gh_error へ至る。
  • 既存の excluded 分類へ当該 check の 1 エントリだけを追加し、対応する focused regression を追加する。

Remaining Parent Gaps

なし。workflow、CI lane、schema、control-plane の追加または変更は本 Issue では扱わない。

Outcome

更新された .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py の CLASSIFICATION_MAP と対応テストにより、conditional skipped の close-evidence-publication が excluded と判定され normal PR の merge-ready を block せず、未知の check/conditions が fail-closed のまま focused regression と品質ゲートを PASS する状態を成果物として作成する。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: Python の静的分類ロジックと deterministic unit test のみを変更し、browser または product runtime behavior を変更しないため。

Background

Source: #2582、PR #2583、run https://github.com/squne121/loop-protocol/actions/runs/34237941034。

Root cause は validated 済みである。same-run check-runs の conditional close-evidence-publication は skipped だが CLASSIFICATION_MAP に存在せず、unknown classification が gh_error になる。required execution jobs は success である。

採用方針は既存 excluded classification への最小の 1 エントリ追加である。PR 運用で gh_error を手動無視する workaround は、normal PR の merge-ready 判定を再現可能に修正せず、unknown の fail-closed 意味論を曖昧にするため採用しない。

In Scope

  • CLASSIFICATION_MAP に conditional close-evidence-publication の excluded classification を 1 エントリ追加する。
  • normal PR の同 check が excluded となり merge-ready を block しないこと、ならびに unknown check/condition の fail-closed behavior が緩和されないことを focused test で固定する。
  • CI_TEST_PERFORMANCE_DECISION_V1 に従う required verification evidence を PR に記録する。

Out of Scope

  • .github/workflows/** の変更、new CI lane、workflow 実行条件の変更。
  • schema、control-plane、required execution jobs、required check 集合の追加または変更。
  • excluded 以外の classification policy の再設計、unknown condition の allowlist 化、手動 workaround。

Acceptance Criteria

  • AC1: close-evidence-publication が conditional skipped の same-run check-run として入力された場合、ci_verdict_summary_v2 は既存 excluded classification として出力し、normal PR の merge-ready を block しない。
  • AC2: close-evidence-publication 以外の unknown check または未知の condition は unknown からの fail-closed behavior を維持し、gh_error を success/excluded に緩和しない。
  • AC3: 変更は Allowed Paths の 2 ファイルに限定され、workflow/new CI lane/schema/control-plane の追加または変更を含まない。
  • AC4: focused test、CI equivalent Ruff check、pnpm quality gates、model routing test が PASS する。

Verification Commands

# AC1
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q
# AC2
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q
# AC3
# AC4
$ pnpm typecheck
# AC4
$ pnpm lint
# AC4
$ pnpm test
# AC4
$ pnpm build
# AC4
$ uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py

CI Test Performance Decision

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: null
  pr_number: null
  decision_scope: ci_change
  changed_paths:
    - .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py
    - .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py
  lane_classification:
    fast_static:
      applicable: true
      evidence:
        - "Python classification code changes; CI equivalent Ruff check and pnpm quality gates are required verification."
      required_commands:
        - "uv run --locked ruff check .claude/scripts scripts schemas .claude/skills"
        - pnpm typecheck
        - pnpm lint
    python_unit:
      applicable: true
      evidence:
        - "ci_verdict_summary_v2 focused Python regression test changes."
      required_commands:
        - "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q"
    contract_artifact:
      applicable: true
      evidence:
        - "merge-ready CI verdict classification is a pr-review-judge consumer contract; CI check-run-scoped evidence is required."
      required_commands:
        - "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q"
    integration:
      applicable: false
      evidence:
        - "No workflow, UI, runtime integration, or new CI lane changes."
      required_commands: []
  baseline_inputs:
    ci_runtime_baseline_v1_available: false
    run_count: 0
    p50_p95_ready: false
  artifact_consistency:
    ci_test_selection_v1_checked: false
    missing_pytest_args: []
  risk_flags:
    - "no_performance_claim"
  reviewer_gate:
    approve_allowed: false
    required_evidence:
      - CI_CHECK_RUN_SCOPED
    approve_denied_reason: "CI_CHECK_RUN_SCOPED evidence is pending on the implementation PR."
  follow_up_required: []

Performance claim: なし。これは correctness classification の最小変更であり、runtime reduction、throughput、duration の主張をしない。authoritative evidence は CI_CHECK_RUN_SCOPED とする。

Allowed Paths

  • .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py
  • .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • workflow、new CI lane、schema、control-plane、required execution jobs への波及が判明した場合

Required Skills

  • Python / pytest

Required Design References

  • .claude/skills/pr-review-judge/SKILL.md
  • .claude/skills/ci-test-performance/SKILL.md
  • docs/dev/test-lane-policy.md
  • docs/dev/runtime-verification-policy.md

Scope Delta(任意)

N/A

Delivery Rule

Notes for Reviewer

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    triage-required
    on Sep 8, 2026
  2. squne121 commented on Sep 8, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: stop
    reason: review_verdict_blocked

  3. squne121 commented on Sep 9, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: invoke_impl_review_loop
    reason: fresh_review_go_live_equality

  4. squne121 commented on Sep 9, 2026

    @squne121
    OwnerAuthor

    implementation result: no behavioral delta

    • PR fix: classify conditional close evidence publication #2597 (31b69e850eedbdb12ae5967c7483d9c833de2811) の current-main 比較と独立 review により、対象の ordinary PR skipped close-evidence-publication は既存 consumer で既に conditional excluded として処理されていることを確認しました。
    • 既存の exact current-head skip guard が該当時に excluded を強制するため、PR の CLASSIFICATION_MAP 1 entry はconsumer behaviorを変更せず、AC1の実装根拠になりません。guardをmapへ移すことはunknown時のfail-closed境界を弱めるため採用しません。
    • focused test の独立実行は 104 passed、PR head のCIも成功しました。ただしPR本文には旧 105 passed 記載が残り、fresh reviewer verdict は REQUEST_CHANGES です。
    • このIssue/PRをこの時点でclose、merge、auto-merge、またはscope拡張する操作は実行していません。実装上のdefectがcurrent mainに残らないため、次の外部状態変更が必要ならcloseまたはre-scopeの判断を明示的に行う必要があります。
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/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions