-
Notifications
You must be signed in to change notification settings - Fork 985
Open
Description
Problem
Today OpenSpec validates spec structure, but there is no lightweight, built-in way to guide post-implementation verification against an approved change. Teams end up improvising how to verify alignment with change deltas/specs, which can lead to drift or missed requirements.
Proposal
Introduce an optional, lightweight verification workflow that lives with each change:
- Add a per-change
openspec/changes/<change-id>/verification.mdtemplate that captures:- Spec alignment expectations (which deltas/specs apply)
- Hallucination risks (packages/functions/paths that must/must not exist)
- Pattern references (files to match)
- Spec-specific rules (hard constraints)
- Provide a
/verifyslash command (or guidance inAGENTS.md) that instructs AI to:- Load
openspec/changes/<change-id>/verification.md - Compare implementation to
openspec/changes/<change-id>/specs/and baselineopenspec/specs/ - Flag spec drift, missing acceptance criteria, or hallucinated usage
- Load
Benefits
- Lightweight and optional; no automated testing required
- Provides a consistent, repeatable review checklist for implementation-vs-spec
- Complements existing validation instead of replacing it
- Aligns with issue Feature request: Include acceptance verification instructions for each task in AGENTS.md prompts #345 (acceptance verification instructions per task)
Notes / Implementation sketch
- Add template file under OpenSpec assets (or generate on
openspec proposal). - Keep verification guidance separate from spec linting (this is post-implementation review guidance).
- The
verification.mdformat can be markdown-only; no parsing required initially.
Disclaimer: This issue was drafted with AI assistance after searching existing OpenSpec issues for related requests.
coderabbitai
Metadata
Metadata
Assignees
Labels
No labels