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
- The matching OpenSpec workflow is requested: Explore, Propose, Update, Apply,
Verify, Sync, or Archive.
- Numbered commands
/1-start-project through /4-close-project wrap these
workflows.
Workflow
- Read
openspec/config.yaml, openspec/project.md, and the relevant specs
or active change.
- Invoke
bun run openspec -- with the explicit change ID for mutating work.
- Keep Core TDD, UI, data-boundary, and Guardian rules in force.
- Leave the change active until implementation has merged.
Checklist
Verify that an implementation matches the change artifacts (specs, tasks, design).
Store selection: If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run openspec store list --json to discover registered store ids, then pass --store <id> on the commands that read or write specs and changes (new change, status, instructions, list, show, validate, archive, doctor, context, schemas, view). Once selected, treat --store <id> as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run openspec status --change "<name>" --json --store "<id>", not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local openspec/ root.
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
Select the change
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run
openspec list --json to get available changes and ask the user to select one
When prompting, show changes that have implementation tasks (tasks artifact exists).
Include the schema used for each change if available.
Mark changes with incomplete tasks as "(In Progress)".
Always announce: "Using change: " and how to override (e.g., /openspec-verify-change <other>).
Check status to understand the schema
openspec status --change "<name>" --json
Parse the JSON to understand:
schemaName: The workflow being used (e.g., "spec-driven")
planningHome, changeRoot, artifactPaths, and actionContext: path and scope context
- Which artifacts exist for this change
Get planning context and load artifacts
openspec instructions apply --change "<name>" --json
This returns the change directory and contextFiles (artifact ID -> array of concrete file paths). Read all available artifacts from contextFiles.
Initialize verification report structure
Create a report structure with three dimensions:
- Completeness: Track tasks and spec coverage
- Correctness: Track requirement implementation and scenario coverage
- Coherence: Track design adherence and pattern consistency
Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
Verify Completeness
Task Completion:
- If
contextFiles.tasks exists, read every file path in it
- Parse checkboxes:
- [ ] (incomplete) vs - [x] (complete)
- Count complete vs total tasks
- If incomplete tasks exist:
- Add CRITICAL issue for each incomplete task
- Recommendation: "Complete task: " or "Mark as done if already implemented"
Spec Coverage:
- If delta specs exist in
contextFiles.specs:
- Extract all requirements (marked with "### Requirement:")
- For each requirement:
- Search codebase for keywords related to the requirement
- Assess if implementation likely exists
- If requirements appear unimplemented:
- Add CRITICAL issue: "Requirement not found: "
- Recommendation: "Implement requirement X: "
Verify Correctness
Requirement Implementation Mapping:
- For each requirement from delta specs:
- Search codebase for implementation evidence
- If found, note file paths and line ranges
- Assess if implementation matches requirement intent
- If divergence detected:
- Add WARNING: "Implementation may diverge from spec: "
- Recommendation: "Review : against requirement X"
Scenario Coverage:
- For each scenario in delta specs (marked with "#### Scenario:"):
- Check if conditions are handled in code
- Check if tests exist covering the scenario
- If scenario appears uncovered:
- Add WARNING: "Scenario not covered: "
- Recommendation: "Add test or implementation for scenario: "
Verify Coherence
Design Adherence:
- If
contextFiles.design exists:
- Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
- Verify implementation follows those decisions
- If contradiction detected:
- Add WARNING: "Design decision not followed: "
- Recommendation: "Update implementation or revise design.md to match reality"
- If no design.md: Skip design adherence check, note "No design.md to verify against"
Code Pattern Consistency:
- Review new code for consistency with project patterns
- Check file naming, directory structure, coding style
- If significant deviations found:
- Add SUGGESTION: "Code pattern deviation: "
- Recommendation: "Consider following project pattern: "
Generate Verification Report
Summary Scorecard:
## Verification Report: <change-name>
### Summary
| Dimension | Status |
| ------------ | ----------------- |
| Completeness | X/Y tasks, N reqs |
| Correctness | M/N reqs covered |
| Coherence | Followed/Issues |
Issues by Priority:
CRITICAL (Must fix before archive):
- Incomplete tasks
- Missing requirement implementations
- Each with specific, actionable recommendation
WARNING (Should fix):
- Spec/design divergences
- Missing scenario coverage
- Each with specific recommendation
SUGGESTION (Nice to fix):
- Pattern inconsistencies
- Minor improvements
- Each with specific recommendation
Final Assessment:
- If CRITICAL issues: "X critical issue(s) found. Fix before archiving."
- If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."
- If all clear: "All checks passed. Ready for archive."
Verification Heuristics
- Completeness: Focus on objective checklist items (checkboxes, requirements list)
- Correctness: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty
- Coherence: Look for glaring inconsistencies, don't nitpick style
- False Positives: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL
- Actionability: Every issue must have a specific recommendation with file/line references where applicable
Graceful Degradation
- If only tasks.md exists: verify task completion only, skip spec/design checks
- If tasks + specs exist: verify completeness and correctness, skip design
- If full artifacts: verify all three dimensions
- Always note which checks were skipped and why
Output Format
Use clear markdown with:
- Table for summary scorecard
- Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)
- Code references in format:
file.ts:123
- Specific, actionable recommendations
- No vague suggestions like "consider reviewing"
1---2name: openspec-verify-change3description: Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.4license: MIT5---67<!-- CORE-OVERLAY-START -->89## This repository (Asymmetric-al/core)1011These repo-owned sections sit above the official OpenSpec skill. Reconcile this12overlay after upstream refreshes before running `bun run skills:sync`.1314Use the locally pinned CLI only: `bun run openspec -- <command>`. Do not invoke15`@latest`. Core does not use Stores. Pass an explicit change ID before any16mutating OpenSpec operation. Follow `AGENTS.md` and `docs/ai/rules/openspec.md`.17Do not bypass TDD, exact `base-maia`, data-access boundaries, security, or18repository checks. Do not archive unmerged or incomplete work. Do not run19`openspec update` against the live customized repository. Do not treat product20runtime Eve as a coding agent.2122Allowed-tools metadata includes `Bash(bun:*)` so the local wrapper can run.2324### Triggers2526- The matching OpenSpec workflow is requested: Explore, Propose, Update, Apply,27 Verify, Sync, or Archive.28- Numbered commands `/1-start-project` through `/4-close-project` wrap these29 workflows.3031### Workflow32331. Read `openspec/config.yaml`, `openspec/project.md`, and the relevant specs34 or active change.352. Invoke `bun run openspec --` with the explicit change ID for mutating work.363. Keep Core TDD, UI, data-boundary, and Guardian rules in force.374. Leave the change active until implementation has merged.3839### Checklist4041- [ ] Local pinned CLI used via `bun run openspec --`42- [ ] Explicit change ID used for mutating operations43- [ ] Stores were not introduced44- [ ] Incomplete or unmerged work was not archived45- [ ] `openspec update` was not run against the live repo46- [ ] Product Eve was not treated as a coding agent4748<!-- CORE-OVERLAY-END -->4950Verify that an implementation matches the change artifacts (specs, tasks, design).5152**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.5354**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.5556**Steps**57581. **Select the change**5960 If a name is provided, use it. Otherwise:61 - Infer from conversation context if the user mentioned a change62 - Auto-select if only one active change exists63 - If ambiguous, run `openspec list --json` to get available changes and ask the user to select one6465 When prompting, show changes that have implementation tasks (tasks artifact exists).66 Include the schema used for each change if available.67 Mark changes with incomplete tasks as "(In Progress)".6869 Always announce: "Using change: <name>" and how to override (e.g., `/openspec-verify-change <other>`).70712. **Check status to understand the schema**7273 ```bash74 openspec status --change "<name>" --json75 ```7677 Parse the JSON to understand:78 - `schemaName`: The workflow being used (e.g., "spec-driven")79 - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context80 - Which artifacts exist for this change81823. **Get planning context and load artifacts**8384 ```bash85 openspec instructions apply --change "<name>" --json86 ```8788 This returns the change directory and `contextFiles` (artifact ID -> array of concrete file paths). Read all available artifacts from `contextFiles`.89904. **Initialize verification report structure**9192 Create a report structure with three dimensions:93 - **Completeness**: Track tasks and spec coverage94 - **Correctness**: Track requirement implementation and scenario coverage95 - **Coherence**: Track design adherence and pattern consistency9697 Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.98995. **Verify Completeness**100101 **Task Completion**:102 - If `contextFiles.tasks` exists, read every file path in it103 - Parse checkboxes: `- [ ]` (incomplete) vs `- [x]` (complete)104 - Count complete vs total tasks105 - If incomplete tasks exist:106 - Add CRITICAL issue for each incomplete task107 - Recommendation: "Complete task: <description>" or "Mark as done if already implemented"108109 **Spec Coverage**:110 - If delta specs exist in `contextFiles.specs`:111 - Extract all requirements (marked with "### Requirement:")112 - For each requirement:113 - Search codebase for keywords related to the requirement114 - Assess if implementation likely exists115 - If requirements appear unimplemented:116 - Add CRITICAL issue: "Requirement not found: <requirement name>"117 - Recommendation: "Implement requirement X: <description>"1181196. **Verify Correctness**120121 **Requirement Implementation Mapping**:122 - For each requirement from delta specs:123 - Search codebase for implementation evidence124 - If found, note file paths and line ranges125 - Assess if implementation matches requirement intent126 - If divergence detected:127 - Add WARNING: "Implementation may diverge from spec: <details>"128 - Recommendation: "Review <file>:<lines> against requirement X"129130 **Scenario Coverage**:131 - For each scenario in delta specs (marked with "#### Scenario:"):132 - Check if conditions are handled in code133 - Check if tests exist covering the scenario134 - If scenario appears uncovered:135 - Add WARNING: "Scenario not covered: <scenario name>"136 - Recommendation: "Add test or implementation for scenario: <description>"1371387. **Verify Coherence**139140 **Design Adherence**:141 - If `contextFiles.design` exists:142 - Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")143 - Verify implementation follows those decisions144 - If contradiction detected:145 - Add WARNING: "Design decision not followed: <decision>"146 - Recommendation: "Update implementation or revise design.md to match reality"147 - If no design.md: Skip design adherence check, note "No design.md to verify against"148149 **Code Pattern Consistency**:150 - Review new code for consistency with project patterns151 - Check file naming, directory structure, coding style152 - If significant deviations found:153 - Add SUGGESTION: "Code pattern deviation: <details>"154 - Recommendation: "Consider following project pattern: <example>"1551568. **Generate Verification Report**157158 **Summary Scorecard**:159160 ```markdown161 ## Verification Report: <change-name>162163 ### Summary164165 | Dimension | Status |166 | ------------ | ----------------- |167 | Completeness | X/Y tasks, N reqs |168 | Correctness | M/N reqs covered |169 | Coherence | Followed/Issues |170 ```171172 **Issues by Priority**:173 1. **CRITICAL** (Must fix before archive):174 - Incomplete tasks175 - Missing requirement implementations176 - Each with specific, actionable recommendation177178 2. **WARNING** (Should fix):179 - Spec/design divergences180 - Missing scenario coverage181 - Each with specific recommendation182183 3. **SUGGESTION** (Nice to fix):184 - Pattern inconsistencies185 - Minor improvements186 - Each with specific recommendation187188 **Final Assessment**:189 - If CRITICAL issues: "X critical issue(s) found. Fix before archiving."190 - If only warnings: "No critical issues. Y warning(s) to consider. Ready for archive (with noted improvements)."191 - If all clear: "All checks passed. Ready for archive."192193**Verification Heuristics**194195- **Completeness**: Focus on objective checklist items (checkboxes, requirements list)196- **Correctness**: Use keyword search, file path analysis, reasonable inference - don't require perfect certainty197- **Coherence**: Look for glaring inconsistencies, don't nitpick style198- **False Positives**: When uncertain, prefer SUGGESTION over WARNING, WARNING over CRITICAL199- **Actionability**: Every issue must have a specific recommendation with file/line references where applicable200201**Graceful Degradation**202203- If only tasks.md exists: verify task completion only, skip spec/design checks204- If tasks + specs exist: verify completeness and correctness, skip design205- If full artifacts: verify all three dimensions206- Always note which checks were skipped and why207208**Output Format**209210Use clear markdown with:211212- Table for summary scorecard213- Grouped lists for issues (CRITICAL/WARNING/SUGGESTION)214- Code references in format: `file.ts:123`215- Specific, actionable recommendations216- No vague suggestions like "consider reviewing"