Skip to content

一般化・適用条件をarticle pipelineの必須gateとして実装する #161

Open

Description

@KAFKA2306

Short-context handoff

Goal

  • generalizable_insight / transfer_conditions / non_transfer_conditions をcandidate生成からpublication判定まで必須化する。
  • 個別tool手順だけの記事や、狭い証拠からの過剰一般化をfail-closeする。

Read first

  1. pipeline/contracts/article.md
  2. pipeline/editorial.py
  3. tests/test_contracts.py

Change only

  • candidate schema / prompt / deterministic editorial gate / tests。

Start here

  1. STORY_FIELDS / VALUE_FIELDS / story_ready() とtopic生成promptの現行stateを確認する。
  2. 3項目が欠けるfixtureをFAILにするtestを先に追加する。
  3. schema・prompt・gateを最小変更してtestを通す。

Do not

Done when

  • 3項目欠落candidateはpublishable stateへ進めない。
  • tool固有手順だけでtransferable insightがないfixtureはFAIL。
  • 単一事例でも適用条件と適用外条件を限定すれば表現できる。
  • useful exitに再利用可能なdecision rule / comparison lens / experiment protocolの少なくとも1つが必要。
  • unit tests / python -m pipeline.audit / exact-head CI成功。

Blocking codes

最低限、次をreviewでblockingとして扱う。

  • case_specific_without_transfer
  • unclear_transfer_conditions
  • overgeneralized_from_narrow_evidence

Required flow

specific case / evidence
  -> mechanism or decision structure
  -> generalizable_insight
  -> transfer_conditions
  -> non_transfer_conditions
  -> reusable exit

固有repo / tool / productは証拠として残してよい。記事成果はそこから持ち帰れる判断にする。

Activity

  1. KAFKA2306 commented on Sep 12, 2026

    @KAFKA2306
    OwnerAuthor

    Implementation completed on PR #174 without merge/release/publication.

    Verified head: fcd7f42bd1719f625c44c8ee844bb51716698467

    Implemented:

    • generalizable_insight, transfer_conditions, non_transfer_conditions are mandatory in the story-ready candidate contract.
    • Topic selection/enrichment prompts explicitly request all three fields and reject candidates that cannot establish a transfer boundary.
    • Drafting carries the transfer boundary into the article and requires a reusable decision rule / comparison lens / experiment protocol rather than tool-specific instructions alone.
    • Editorial review adds hard blockers: case_specific_without_transfer, unclear_transfer_conditions, overgeneralized_from_narrow_evidence.
    • passes_quality rejects all three blockers.
    • Revision rules repair or narrow those failures without inventing evidence.
    • Regression coverage includes missing required fields, a scoped single-case transfer, blocker enforcement, and prompt/review contract presence.

    Verification:

    • Article Pipeline CI run #602: success on exact head fcd7f42bd1719f625c44c8ee844bb51716698467.
    • The first run exposed an existing passing fixture that lacked the new mandatory fields; the fixture was updated to the new contract rather than weakening the gate.

    Remaining condition: merge/read-back to main. This run intentionally did not merge, release, or publish.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions