Skip to content

docs: spec 出 #27 fail-fast 訊息實際長相 (sister from #26) #32

Description

@kiki830621

Refinement of #27

Source: surfaced during /idd-implement #26 reproduction (Step 5.7)

#27 提出 idd-issue Step 1 在 MCP plugin 缺失時應該明確報錯 + 提示 install 指令,但沒指定錯誤訊息應該長什麼樣。

#26 implement 過程在 plugin README 寫「該 source type 會被迫 fallback 到使用者手動處理」時,意識到 fallback 訊息本身應該是 #27 的具體 acceptance criteria 之一 — 不能只說「明確報錯」,要規定 error format 才能驗收。

Suggested error format spec

當使用者餵 .docx 給 /idd-issue 但 che-word-mcp 不存在時:

✗ Source detected as `.docx` but `che-word-mcp` MCP plugin is not installed.

該 source type 需要對應 MCP plugin 才能讀取文字 + 抽圖。

Options:
  1) Install plugin (recommended):
     claude plugin install che-word-mcp@<your-marketplace>
     # 不知 marketplace? 跑: claude plugin marketplace list
     # 詳見: plugins/issue-driven-dev/README.md#optional-per-source-type

  2) Convert to another supported format:
     - Save as `.md` or `.txt` then paste content directly
     - Or screenshot then attach as image (如果 docx 主要內容是 figures)

  3) Manual fallback (not recommended for archives):
     paste relevant text into prompt directly

Aborting /idd-issue. Run again after installing or converting.

對其他 source type (Telegram / Mail / Notes) 套類比結構。

Acceptance criteria 加入 #27

  • Error message 格式如上(明確 cause + 3 options + abort)
  • Options 用編號列表,不是 prose
  • Install command 用 placeholder + 同時附 lookup hint
  • 不同 source type 訊息結構一致(便於使用者建立 mental model)

Related

Priority: P3 (與 #27 同 priority,可一起 implement)

Current Status

Phase: closed (absorbed into #27)
Last updated: 2026-05-07 by absorb-and-close pattern

Resolution

Why no PR

/idd-all Phase 0.5 abort:#32 deliverable 是 #27 body 的 acceptance criteria 補強,不是 codebase 改動。走 PR pipeline 過度工程。改用 idd-comment 模式 absorb to #27 + close。

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

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions