Skip to content

Add lightweight verification step (implementation vs spec) #381

@ramarivera

Description

@ramarivera

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.md template 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 /verify slash command (or guidance in AGENTS.md) that instructs AI to:
    • Load openspec/changes/<change-id>/verification.md
    • Compare implementation to openspec/changes/<change-id>/specs/ and baseline openspec/specs/
    • Flag spec drift, missing acceptance criteria, or hallucinated usage

Benefits

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.md format can be markdown-only; no parsing required initially.

Disclaimer: This issue was drafted with AI assistance after searching existing OpenSpec issues for related requests.

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