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: "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へ、exactmissing_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
- Research context: 調査: RECEIPT_PERFORMANCE_ONLY_EVIDENCE_ERROR_REASONS allowlist に missing_monolith_performance_phase を追加すべきか #2580(parentではない)。Related: 実装: performance close-grade materializer をtopology-aware実装に修正しmonolith armのeligible run生成を可能にする #2554、PR fix: performance close-grade materializer をtopology-aware実装に修正しmonolith armのeligible run生成を可能にする #2575、検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155。
- Native dependency: 本Issueは#2155のhard predecessorであり、#2155は本IssueがCLOSED + COMPLETEDの場合だけpreconditionを充足として扱う。
- Scope-collision advisory: #2580は同じ5 filesをresearch時に列挙したが、実装destinationは本Issueのみ。広いpathの既存OPEN Issueとのhitは変更意図が異なるため統合対象ではない。
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へexactmissing_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 -qAllowed 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 generictest_e2e_coreshapeを使い、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を変更しない。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Sep 10, 2026
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します。53 passed, 4 skipped; focused ruff: PASS696 passed, 10 skipped, 5 failedtests/ci/test_ci_performance_gate_evidence_hard_failure.pyを Allowed Paths に追加し、その monolith fixture を named two-phase production shape に更新すること。