Skip to content

consensus renderer 共用化:CLI 與 MCP 手抄重複 ~80 行且 CLI 零測試 #52

Description

@kiki830621

Problem

renderConsensusSummary(Server.swift,static 可測、11 條測試)與 Consensus.run() 的 inline 輸出(ConsensusCommand.swift)是手抄重複的 ~80 行;#38/#39 兩輪各往兩邊同步加了誠實性邏輯(REFUSED 版面、n 標註、not-checked 行、excluded、overwrote note、oneLine sanitize、threshold 揭露)。CLI 側零測試(R2 requirements N3)— 改壞 CLI 那份套件仍全綠,而 bestocr consensus 使用者看的正是 CLI。

Type

refactor

Expected

render 抽到 kit 層共用(或 CLI 委派 MCP 的 renderer),測試覆蓋自動雙面生效。

Source: surfaced during /idd-verify #39 R2 (requirements N3)

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions