Skip to content

fix: decouple spec discovery from --detail flag, fix step numbering - #1

Open
fsmw wants to merge 1 commit into
sh940701:feat/spec-catalog-discovery-in-proposalfrom
fsmw:fix/spec-discovery-coderabbit-feedback
Open

fix: decouple spec discovery from --detail flag, fix step numbering#1
fsmw wants to merge 1 commit into
sh940701:feat/spec-catalog-discovery-in-proposalfrom
fsmw:fix/spec-discovery-coderabbit-feedback

Conversation

@fsmw

@fsmw fsmw commented Jul 3, 2026

Copy link
Copy Markdown

Addresses both CodeRabbit review items from Fission-AI#902:

  • Critical — --detail not yet available. The discovery prompt assumed openspec list --specs --json --detail returns title/overview/requirementCount, but the current CLI only emits id and requirementCount. --detail lands in feat: list cmd support json for specs and archive Fission-AI/OpenSpec#700 (still open). The prompt now prefers --detail when available and falls back to reading the ## Purpose section of each openspec/specs/<id>/spec.md. Applied to propose, ff, and continue workflows (both skill and command templates).
  • Minor — step numbering. "5. Show final status" → "6." in propose and ff workflows after the inserted discovery step bumped everything by one.

pnpm test test/core/templates/, pnpm lint, and pnpm exec tsc --noEmit all pass. Skill-template parity test hashes updated.

This version no longer blocks on Fission-AI#700. If Fission-AI#700 lands later, the prompt can prefer the structured fields automatically (it already checks).

See Fission-AI#901 for the original request.

CodeRabbit's review of Fission-AI#902 flagged two issues. This commit addresses
both so the PR can merge before or independent of Fission-AI#700:

- Critical: the discovery prompt assumed `openspec list --specs --json
  --detail` returns title/overview/requirementCount, but the current
  CLI only emits id and requirementCount. --detail lands in Fission-AI#700.
  Replace the prompt with a fallback: prefer --detail when available,
  otherwise read the `## Purpose` section of each
  `openspec/specs/<id>/spec.md`. Applies to propose, ff, and
  continue workflows (both skill and command templates).
- Minor: renumber "5. Show final status" to "6." in propose and ff
  workflows after the inserted discovery step bumped everything by
  one.

Updated skill-template parity test hashes for the modified templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant