Skip to content

idd-verify should depend on parallel-ai-agents' canonical ensemble engine (retire the vendored fork) #207

Description

@kiki830621

Problem

Original text:
「等一下,idd不是應該要依賴 parallel-ai-agents嗎?現在是不是沒有完全依賴,而有太多hard-coded的東西。 需要官方就直接依賴」
— Source: 使用者訊息 2026-07-02(parallel-ai-agents#20 pipeline 中裁決)

idd-verify 目前 vendor 一份 305 行的 ensemble 引擎 fork(skills/idd-verify/ensemble-workflow.js),與 parallel-ai-agents 的 canonical 引擎(513 行,profiles/replicas/customLenses/maxAgents 泛化)重複維護:findings schema、fail-closed integrity、merge/dedup、sentinel、DA/codex 相位全部同構。重複的實證代價:#205 的 model-default bug 兩邊各修一次(IDD#205 + pai#20)。

Type

refactor

Expected

idd-verify 解析已安裝的 pai 引擎作為 verify backend(依 pai#20 官方化的 stable args 契約):

  • 解析機制:plugin cache 版本發現(~/.claude/plugins/cache/parallel-ai-agents/parallel-ai-agents/<ver>/workflows/ensemble-workflow.js)
  • 組態表達:profile:'custom' + customLenses(requirements/logic/security/regression)+ daFocus + sentinel-wrapped issue bodies 經 contextBlock + diffFile + agentModel(值 = idd-verify 既有 IDD_AGENT_MODEL 解析結果)
  • Graceful degrade(同 idd-all feature+docs: idd-verify --loop / idd-all unattended 隱性依賴 ralph-loop — 應宣告 + auto-detect + 內建探索 #28 ralph-loop gate 前例):pai 未安裝 → 降級用現有 vendored copy(退役為 fallback-only、凍結不再演化)→ 再不可用 → manual fan-out
  • findings/verdict 消費面不變(兩引擎回傳同構)

Actual

vendored fork 是主路徑;pai 引擎完全未被引用。

Impact

  • skills/idd-verify/SKILL.md(backend 解析鏈 + args 組裝)
  • skills/idd-verify/ensemble-workflow.js(降級為 fallback-only + 凍結註記)
  • 依賴健康檢查(版本相容性宣告:pai >= 2.18.0——agentModel 契約起點)

References

Clarity Surface(idd-clarify run 2026-07-02T07:55:00Z)

Type Source Suggested canonical Status
(none) — no issues detected — issue authored by the pai#20 pipeline with the user's dependency ruling pre-resolved; version-gate 與 customLenses 細節屬 design 決策(Spectra artifacts 定案),非 user-context 缺口 passed

Current Status

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions