Skip to content

実装: missing_monolith_performance_phase をPerformance-only allowlist化しmonolith phase完全性を保証する #2617

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "Performance-only missing_monolith_performance_phase がReliability consumerを単独でblockせず、monolith producerが両required phaseのusable positive durationなしではcomplete/eligibleにしないことを保証する"
change_kind: mixed
dedupe_key: "follow-up:squne121/loop-protocol:pr/2575:receipt-performance-allowlist-missing-monolith"

Parent Issue

なし

Parent Goal Ref

  • Goal: #2580のADD判断を、Performance observationの狭い分類変更とmonolith producerのfail-closed完全性に実装する。
  • Desired Destination: #2155のnative blockerとして、このIssueがCLOSED + COMPLETEDになるまで後続のclose-grade verificationを開始させない。

Current Validated Scope

  • scripts/ci/build_ci_reliability_assessment_v1.py のPerformance-only reason allowlistへ、exact missing_monolith_performance_phaseだけを追加する。
  • scripts/ci/tests/test_build_ci_reliability_assessment_v1.py と tests/ci/test_ci_performance_gate.py にconsumer fail-close及びmonolith required-phase regressionを追加する。
  • docs/dev/ci-test-reliability-assessment.md と docs/dev/e2e-performance-benchmark.md に分類と完全性規約を記載する。

Remaining Parent Gaps

  • #2155が本Issueを含む全hard prerequisiteのCLOSED + COMPLETEDをreadbackし、live close-grade evidenceを評価する。
  • allowlistの他reasonやReliability分類全般の再設計は別Issueで扱う。

Outcome

更新された5ファイルと回帰tests/docsにより、Performance-only missing_monolith_performance_phaseがReliability consumerを単独でblockしない一方、monolith producerがtest_e2e_ciとtest_e2e_monolith_responsive両方のusable positive durationなしではcomplete/eligibleにしないことが検証済みとなる。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: fixture/logic-only; no live dispatch.

Background

In Scope

  • wildcard/prefixを使わず、exact reasonのnarrow allowlistを追加する。
  • unknown、identity、run-set、manifest binding errorとReliability evidence missingのblockingを維持する。
  • monolithのnamed required phase二つのusable positive durationをproducer completeness/eligibilityの必須条件にする。
  • consumer、producer、docsをこの単一fault-domain境界へ揃える。
  • tests/ci/test_ci_performance_gate_evidence_hard_failure.py のproduction gate integration fixtureを、monolith before armがnamed two-phase positive durationsを持つproduction-shaped evidenceへ更新する。

Out of Scope

  • missing_monolith_performance_phase以外のallowlist追加、wildcard/prefix分類、Reliability policy再設計。
  • split topologyのcritical-path semantics、live CI dispatch、#2155のevidence recording、既存Issueの編集/close。
  • Allowed Paths外の変更。

Acceptance Criteria

  • AC1: RECEIPT_PERFORMANCE_ONLY_EVIDENCE_ERROR_REASONSへexact missing_monolith_performance_phaseだけを明示追加し、wildcard/prefix matchingを導入しない。
  • AC2: unknown、identity、run-set、manifest binding error、及びReliability evidence missingは引き続きblockingである。
  • AC3: 新reasonとReliability evidence missingを併せたintegration negative controlはfail-closedのままである。
  • AC4: monolith producerはtest_e2e_ciとtest_e2e_monolith_responsiveの各々にusable positive durationがある場合だけcomplete/eligibleである。hard-failure integration fixtureのmonolith before armもnamed two-phase positive durationsへ更新し、sufficient-evidence positive pathはなおcomplete、insufficient pathはhard failである。
  • AC5: named phaseが両方欠落又は一方だけ欠落する各caseはmissing_monolith_performance_phaseをerror reasonとして、provider post-filter count、run-details、receipt eligibilityから除外される。両方存在するpositive controlはeligibleである。
  • AC6: splitのmax(core, responsive)とgenuine missing-responsiveの既存fail-closed挙動は不変である。
  • AC7: 両docsがPerformance-only分類とmonolith required-phase完全性を明示し、全宣言VCがpassする。

Verification Commands

# AC1
$ uv run --locked pytest scripts/ci/tests/test_build_ci_reliability_assessment_v1.py -q
# AC2
$ uv run --locked pytest scripts/ci/tests/test_build_ci_reliability_assessment_v1.py -q
# AC3
$ uv run --locked pytest scripts/ci/tests/test_build_ci_reliability_assessment_v1.py -q
# AC4
$ uv run --locked pytest tests/ci/test_ci_performance_gate.py -q
# AC4
$ uv run --locked pytest tests/ci/test_ci_performance_gate_evidence_hard_failure.py -q
# AC5
$ uv run --locked pytest tests/ci/test_ci_performance_gate.py -q
# AC6
$ uv run --locked pytest tests/ci/test_ci_performance_gate.py -q
# AC7
$ uv run --locked pytest tests/ci/ scripts/ci/tests/ -q
# AC7
$ uv run --locked ruff check scripts/ci/build_ci_reliability_assessment_v1.py scripts/ci/tests/test_build_ci_reliability_assessment_v1.py tests/ci/test_ci_performance_gate.py
# AC7
$ pnpm typecheck
# AC7
$ pnpm lint
# AC7
$ pnpm test
# AC7
$ pnpm build
# AC7
$ uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -q

Allowed Paths

  • scripts/ci/build_ci_reliability_assessment_v1.py
  • scripts/ci/tests/test_build_ci_reliability_assessment_v1.py
  • tests/ci/test_ci_performance_gate.py
  • docs/dev/ci-test-reliability-assessment.md
  • docs/dev/e2e-performance-benchmark.md
  • tests/ci/test_ci_performance_gate_evidence_hard_failure.py

Stop Conditions

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

人間へ停止・承認要求するのは破壊的操作又はsecret valueへのアクセス/露出が必要な場合に限る。通常のIssue/PR mutation、commit/push/review/rerun/squash mergeはユーザー承認済みの自律実行として継続する。

Required Skills

なし

Required Design References

  • docs/dev/ci-test-reliability-assessment.md
  • docs/dev/e2e-performance-benchmark.md
  • tests/ci/test_ci_performance_gate_evidence_hard_failure.py

Scope Delta(任意)

  • Validated need: workerのcurrent-head実証により、tests/ci/test_ci_performance_gate_evidence_hard_failure.py のproduction gate integration fixtureがbefore=monolithでlegacy generic test_e2e_core shapeを使い、strict named monolith completenessで正しくfailすることを確認した。
  • Cause: 既存AC7 full testsをpassしつつproduction correctnessを弱めないため、fixtureのmonolith before armをproduction-shaped two-phase evidenceへ揃える必要がある。
  • Path: tests/ci/test_ci_performance_gate_evidence_hard_failure.py をAllowed Pathsの6番目として追加する。
  • No behavior broadening: 同一Outcomeの既存fixture影響のみを扱い、新機能・scope split・他path・AC変更・破壊的操作を導入しない。

Delivery Rule

1 Issue = 1 PR。指定5 filesだけを変更し、Draft PRを既定とする。本Issueは#2155をblockするhard predecessorであり、#2155の既存prerequisiteを変更しない。

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Sep 10, 2026
  2. squne121 commented on Sep 10, 2026

    @squne121
    OwnerAuthor

    implement-issue: blocked (2026-09-10)

    Allowed Paths Stop Condition に到達しました。指定5ファイルだけの変更で monolith の complete 条件を「test_e2e_ci と test_e2e_monolith_responsive が各 usable positive duration」に強化すると、tests/ci/test_ci_performance_gate_evidence_hard_failure.py の production-style _arm_fixture() が legacy single-phase before(monolith) evidence を作るため、統合VCが5件 failします。

    • Focused VC: 53 passed, 4 skipped; focused ruff: PASS
    • Integration VC: 696 passed, 10 skipped, 5 failed
    • 必要な scope refinement: tests/ci/test_ci_performance_gate_evidence_hard_failure.py を Allowed Paths に追加し、その monolith fixture を named two-phase production shape に更新すること。
    • このファイルは現 live contract の Allowed Paths 外のため未変更です。
    • commit / push / PR は未実施です。
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