Repository navigation
Open
Labels
enhancementNew feature or request
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "複数の独立入力経路を集合・重複排除・fallback 等で合流するテストで、片側の欠陥が aggregate PASS に隠れないよう Issue/VC 作成指針を明文化する"
change_kind: docs
dedupe_key: "issue-authoring:multi-input-aggregate-fixture-isolation-guidance:v1"Parent Issue
none(独立の authoring guidance follow-up)。#3016 の refinement・実装をブロックしない。
Evidence / Dedupe
- #3016 OWNER review: HTML と Markdown に同じ
P2を含む合成 fixture は、片方の collector だけが実装されても["P2"]になる。HTML-only の独立入力でないと mutant を検出できない。 - #2994 / merged PR #3011: HTML-only と Markdown の独立ケース、および test-first behavioral RED を既に実践した先行例。
- #2966: HOME/XDG という独立した設定入力レーンが単一 regression で覆い隠される同系の false-green。既に個別修正済み。
- #2765: enumerated AC の PR review 側の evidence rule。今回の対象はIssue / VC 作成時のテスト入力構成の guidanceであり、PR reviewer gate の追加や重複実装ではない。
docs/dev/dor.mdには AC ごとの独立検証と pytest exit 5 非採用は既存だが、合流ソースを独立 fixture として検証する入力設計の具体例は無い(起票時 mainc81d956abbca0062ce24500405b6fd1961c70cc3)。
Outcome
複数ソースから同一値へ合流・重複排除する parser / collector / config fallback 等の Issue を作成するとき、aggregate の PASS だけで全入力レーンの機能を立証したと誤認しないための短い実践的ガイダンスを docs/dev/dor.md に追加する。恒久 gate、新 schema、linter、新 CI、承認レイヤーは設けない。
In Scope
docs/dev/dor.mdの VC baseline / AC 検証項目の近傍に、「独立入力レーンの fixture」について短い節を追加。- 具体例は 実装: OWNER の「P2:」見出しを semantic trigger が見落とす Step 2.5 false-skip を修正 #3016 の HTML-only、Markdown-only、mixed duplicate と 実装: test_connected_proxy_diagnostics の default curlrc regression が HOME/XDG を独立 lane として検証しない false-green を解消する #2966 の HOME-only / XDG-only を引用し、
aggregate result = ["P2"]のみでは HTML lane を検証できない理由を1段落で説明。 - Issue 契約では各 lane の独立正例/負例と合流時の挙動を、可能な範囲でそれぞれ直接 assert することを推奨。実装時の test-first behavioral RED(収集・実行された assertion failure)を、未作成テストによる exit 5 から区別する既存指針へ参照を張る。
Out of Scope
- 実装: OWNER の「P2:」見出しを semantic trigger が見落とす Step 2.5 false-skip を修正 #3016 の production code、AC/VC の変更・作業を代替すること。
- 共通 fixture framework、automatic mutant generation、repo-wide required gate、linter/schema の追加。
- PR reviewer/issue-contract-review の既存判定ロジック・pytest exit code 分類の変更。
Acceptance Criteria
- AC1:
docs/dev/dor.mdに多入力の合流結果だけを証拠にしない guidance を追加。HTML-only / Markdown-only / mixed と HOME-only / XDG-only の具体例が明示される。 - AC2: 同 guidance が source-isolated positive/negative + aggregation/dedup の検証を推奨し、既存 behavioral RED と pytest exit 5 の区別を参照する。特定の全 Issue に対する新規 mandatory gate として記述しない。
Runtime Verification Applicability
- decision: not_applicable
- reason: docs-only の作成指針であり、既存 runtime 動作を変更しない。
Verification Commands
# AC1
$ rg -n '^### 複数入力の合流結果と独立 fixture' docs/dev/dor.md
# AC2
# preflight-scope: pr_review_only
$ git diff -- docs/dev/dor.mdAC2 の判定は diff 内容の人手/既存 reviewer による意味確認を要する。単に git diff が exit 0 だから達成とは判定しない。
Allowed Paths
docs/dev/dor.md
Delivery Rule
独立の docs-only follow-up。既存 issue-refinement-loop / impl-review-loop を用いる。1 Issue = 1 PR。merge は人間判断まで保留する。
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity