Skip to content

feature: spectra-apply auto-post Implementation Complete to GitHub issue (resolve /idd-close supersession friction) #56

@kiki830621

Description

@kiki830621

Problem

Source: surfaced during /idd-close #44 (2026-05-10) — retroactive Implementation Complete posted as workaround.

/idd-close 的 v2.41.0+ supersession 設計依賴 ## Implementation Complete > ### Checklist- [x] 才 trigger,讓 Strategy / Implementation Plan 的 stale - [ ] 自動 superseded。

Spectra path 不會自動 post ## Implementation Complete comment 到 GitHub issuespectra-apply 管 archive 內 tasks.md,結束後 issue body / comments 沒 canonical Implementation Complete anchor → supersession 永遠不 trigger → /idd-close 撞 stale Strategy - [ ] (從 spectra-discuss 階段 inherited 的 pre-design 提案,通常已被 propose / apply 階段重新設計)refuse close。

實際撞到的案例:#44 (/idd-all-chain 的 root issue) 走完 Spectra path,change archived,plugin v2.55.0 ship。但 Strategy section 的 bullets 是 pre-discuss 提案 (含 rejected --chain flag + chain_policy config) — 全 unchecked。/idd-close #44 走 Legacy fallback 把這些 stale - [ ] 視為阻擋,refuse close。Workaround:retroactive 合成 Implementation Complete comment(描述實際 ship 的東西,不 mapping 回 stale Strategy bullets)→ supersession trigger → close pass。

每個 Spectra-archived issue close 都會撞同樣 friction。

Type

feature (cross-skill — Spectra ↔ IDD bridge mechanism)

Expected

兩個方向都可以解(可同時):

Option A: spectra-apply 結束時 auto-post Implementation Complete to GitHub issue

spectra-apply Step 9 (final summary report) 結束後增加 Step 10:

  1. Detect linked GitHub issue — 從 change directory 內 read proposal.mddesign.mdRefs #N / Closes #N / 「GitHub-side tracker: #N」 mention,或從 commits 內 grep #N cross-link
  2. Compose Implementation Complete comment:
    • Title: ## Implementation Complete (auto-posted by spectra-apply 2026-05-10)
    • Note: 「本 issue 走 Spectra path,實際 ship 的 mechanism 在 archive 內 tasks.md 同步,本 comment 是合成的 audit anchor 讓 /idd-close supersession 觸發」
    • Checklist: - [x] per spec capability ADDED / MODIFIED + per major commit
  3. gh issue comment $N --body-file ... post comment
  4. Audit trail entry in spectra apply summary 報告

Pros:解 root cause,讓所有 future Spectra-archived issues 的 close 都自動 work。
Cons:跨 skill (Spectra is third-party) — 需要 contract refinement,也許要 issue-driven-dev 那邊提 hook mechanism。

Option B: /idd-close 偵測 archived Spectra change → 自動觸發 supersession

/idd-close Step 0 supersession check 增加 fallback path:

  1. Scan openspec/changes/archive/*/proposal.mdRefs #N / GitHub-side tracker pointer
  2. 找到 → 視為「Implementation Complete equivalent exists」→ supersession active,跳過 stale Strategy / Plan scan
  3. Fallback chain:
    • Implementation Complete > Checklist exists + 全 [x] → supersession (existing)
    • Archived Spectra change references this issue → supersession (NEW)
    • Otherwise → Legacy fallback strict scan

Pros:在 idd-close 內部解,不依賴 Spectra hook。
Cons:idd-close 邏輯變複雜,需要 file-system aware (scan archive directories)。

Option C (Hybrid)

A 為長期解,B 為 transitional fallback。先 ship B 解 immediate friction,再跟 Spectra-app upstream 協調 A。

Actual

每個 Spectra-archived issue close 都要手動合成 Implementation Complete comment(per /idd-close #44 retroactive workaround)。違反 IDD「automatic audit trail」紀律。

Impact

影響的工作流

影響的檔案 (Option B)

  • plugins/issue-driven-dev/skills/idd-close/SKILL.md Step 0 supersession check 加新 fallback
  • plugins/issue-driven-dev/references/ 文件化新 supersession path

影響的檔案 (Option A)

  • 跨 plugin — spectra-app upstream 增加 GitHub issue post hook(third-party,需 coordinate)
  • 或:在 issue-driven-dev 加 idd-spectra-bridge skill 跑在 spectra-apply 後

Acceptance criteria

  1. Spectra path issue 走完整 lifecycle 後,/idd-close #N 不需 retroactive 合成 Implementation Complete 即可通過
  2. Audit trail 仍然完整(future reader 看 issue 仍能找到 "what shipped" 的 anchor)
  3. Backward compat:既有 archived Spectra changes 不需 re-process

Priority

P2 — Spectra workflow 高頻使用,每次 close 都撞 friction。但有 retroactive workaround,不阻擋 individual issue close。

Sister concerns


Current Status

Phase: diagnosed
Last updated: 2026-05-10 by idd-diagnose (batch)

Key Decisions

  • Complexity = Spectra (Layer 2 + Layer 3a/b/c 都命中: cross-plugin contract + IDD-close normative + architectural decision)
  • Layer V untriggered (V1=2 V4=3)
  • 推 Option C (Hybrid): Phase 1 B 立即 ship,Phase 2 A 跟 spectra-app coordinate

Blocking

  • 等 user 跑 /spectra-discuss 對齊 Option C strategy + 5 個 sub-decisions

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