Skip to content

consensus renderer 共用化:CLI 與 MCP 手抄重複 ~80 行、CLI 零測試覆蓋 #54

Description

@kiki830621

Problem

renderConsensusSummary(Server.swift,static、有 10 條測試)與 Consensus.run() 內的 inline 渲染(ConsensusCommand.swift,零測試 — grep Tests/ 無任何引用)是手抄重複的 ~80 行。#38/#39 的三波誠實性邏輯(REFUSED/excluded/overwrote、n 與 prior、單一共識三態 + threshold + unbounded)都同步改了兩邊 — 靠人工紀律維持對稱。改壞 CLI 那份,套件仍全綠,而 CLI 正是 bestocr consensus 使用者實際看到的介面。

Expected

把 render 抽到 kit 層共用(或 CLI 委派給既有 static renderer),CLI 輸出由同一條測試鏈覆蓋。

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