Openspec verify change

From Asymmetric-al/core · View interactive version

Openspec verify change is an AI agent skill from the GitHub repository Asymmetric-al/core. Verify implementation matches OpenSpec change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving. Also use when the user says "openspec verify" or "opsx verify".

How to use this skill

Skill file

<!-- CORE-OVERLAY-START -->

This repository (Asymmetric-al/core)

These repo-owned sections sit above the official OpenSpec skill. Reconcile this

overlay after upstream refreshes before running bun run skills:sync.

Use the locally pinned CLI only: bun run openspec -- <command>. Do not invoke

@latest. Core does not use Stores. Pass an explicit change ID before any

mutating OpenSpec operation. Follow AGENTS.md and docs/ai/rules/openspec.md.

Do not bypass TDD, exact base-maia, data-access boundaries, security, or

repository checks. Do not archive unmerged or incomplete work. Do not run

openspec update against the live customized repository. Do not treat product

runtime Eve as a coding agent.

Allowed-tools metadata includes Bash(bun:*) so the local wrapper can run.

Triggers

Verify, Sync, or Archive.

workflows.

Workflow

  1. Read openspec/config.yaml, openspec/project.md, and the relevant specs

or active change.

  1. Invoke bun run openspec -- with the explicit change ID for mutating work.
  2. Keep Core TDD, UI, data-boundary, and Guardian rules in force.
  3. Leave the change active until implementation has merged.

Checklist

<!-- CORE-OVERLAY-END -->

Verify that an implementation matches the change artifacts (specs, tasks, design).

Project check: Before writing, run bun run openspec -- list --json and confirm the root is the Core checkout containing its local openspec/ tree. A missing root, Store declaration, or external root is a configuration error: stop before writing and report it. Do not initialize a root or select an external Store.

Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.

Steps

  1. Select the change

If a name is provided, use it. Otherwise:

When prompting, show all active changes returned by the list, including changes with status: "no-tasks".

Include the schema used for each change if available.

Mark changes with incomplete tasks as "(In Progress)".

Always announce: "Using change: <name>" and how to override (e.g., openspec-verify-change <other>).

  1. Check status to understand the schema

```bash

openspec status --change "<name>" --json

```

Parse the JSON to understand:

  1. Get planning context and load artifacts

```bash

openspec instructions apply --change "<name>" --json

```

This returns the change directory, contextFiles (artifact ID -> array of concrete file paths), taskTrackingConfigured, and top-level tasks and progress aggregated from every concrete file matched by the schema's apply.tracks configuration that could be read. Read all available artifacts from contextFiles.

Treat apply state and instruction as context, not a verification verdict. Do not implement tasks or archive the change during verification.

  1. Initialize verification report structure

Create a report structure with three dimensions:

Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.

Verification is advisory. Respect intentional omissions such as skip_specs: true, optional design documents, and schemas without task tracking. Do not require or invent optional or intentionally omitted artifacts to obtain a clean report. Not verified describes a limit of this report, not a new archive prerequisite. Archive retains its own checks and user-confirmation behavior.

Mark checks the schema does not define, or artifacts the status reports as intentionally skipped, as Not applicable. The correctness checks of a change whose readable delta specs contain REMOVED or RENAMED requirements but no ADDED or MODIFIED requirements are also Not applicable (see step 6). Exclude them from skipped-check counts and the archive-readiness assessment. Reserve Not verified for applicable checks whose evidence is missing or unusable.

If only task evidence is available for applicable checks, verify task completion only and mark the remaining applicable checks, including Code Pattern Consistency, as not verified with the reason "Only task evidence available".

If artifacts cannot be read or contain no usable requirements, scenarios, or design decisions, mark the affected checks as not verified with the specific reason. Continue checks supported by the remaining evidence, but a partially checked input set is not a fully verified check. Missing requirements affect Spec Coverage and Requirement Implementation Mapping; missing scenarios affect Scenario Coverage; missing design decisions affect Design Adherence.

  1. Verify Completeness

Task Completion:

Spec Coverage:

  1. Verify Correctness

If the delta specs are readable and contain at least one REMOVED or RENAMED requirement but no ADDED or MODIFIED requirements (the change only removes or renames requirements), report Requirement Implementation Mapping and Scenario Coverage as Not applicable. The REMOVED and RENAMED checks under Spec Coverage are the evidence for such a change (each REMOVED and RENAMED entry with a usable baseline is checked there against its baseline behavior, and an entry already marked not verified there stays not verified), so do not mark these two checks as not verified. A delta spec with no parseable requirements at all is unusable evidence, not a removal-only change: mark these checks as not verified.

Requirement Implementation Mapping:

Scenario Coverage:

  1. Verify Coherence

Design Adherence:

Code Pattern Consistency:

  1. Generate Verification Report

Summary Scorecard:

```markdown

## Verification Report: <change-name>

### Summary

| Dimension | Status |

| ------------ | ----------------- |

| Completeness | X/Y tasks, N reqs |

| Correctness | M/N reqs covered |

| Coherence | Followed/Issues |

```

In each Status cell, report the results of checks that ran and Not verified (<reason>) for every skipped check. If all checks in a dimension were skipped, start the cell with Not verified. Never score a skipped check as passing. Treat every not verified or partially verified check as skipped in the final assessment. Count only ADDED and MODIFIED requirements in N, and report REMOVED and RENAMED requirements separately (for example, "1 removal confirmed, 1 rename verified", or "1 removal not verified (baseline unavailable)"). For a change that only removes or renames requirements, the Correctness cell reads Not applicable (no ADDED or MODIFIED requirements).

Issues by Priority:

1. CRITICAL (Must fix before archive):

2. WARNING (Should fix):

3. SUGGESTION (Nice to fix):

Final Assessment:

Verification Heuristics

Output Format

Use clear markdown with:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.