Repository navigation
fix(verify): find spec and design artifacts by output path - #2028
Conversation
The verify workflow read contextFiles.specs and contextFiles.design, which only exist when the schema names its artifacts "specs" and "design". Find them by artifactPaths.<id>.outputPath instead: spec artifacts are those under specs/, the design artifact is design.md. Closes Fission-AI#2027
Regenerate skills/openspec-verify-change/SKILL.md so the skills.sh copy matches the template, and treat an artifact with id design, or an output path ending in design.md, as the design artifact. Signed-off-by: drakeo338 <paranoyouz@gmail.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Fission-AI/OpenSpec/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughVerify instructions now locate spec and design artifacts through schema output paths and artifact IDs instead of relying only on fixed context-file keys. The templates update verification status when spec files are absent or empty, and when no design artifact is defined. Tests and the patch changeset are updated. ChangesVerify artifact lookup
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No actionable verification gap is established; the artifact-discovery changes appear ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
alfred-openspec
left a comment
There was a problem hiding this comment.
Approved. This removes the hardcoded artifact-ID assumption and aligns verification with the schema output-path contract, so renamed spec and design artifacts can be verified. The fallback behavior for absent files remains conservative, targeted tests pass, and all CI checks are green. No docs-lab change is needed because the public verify contract remains the same; this fixes custom-schema behavior beneath it.
There was a problem hiding this comment.
Thanks for the fast fix. The direction is right, and the patch passed the focused template/parity tests, lint, and build locally before the merge-from-main refresh. I think this needs one bounded revision before merge:
- State the same normalized path rule as
isSpecsArtifactPath(): normalize separators and dot segments, then match patterns beginningspecs/. - For design, match normalized
design.mdor a path ending/design.md; “ends indesign.md” also accepts unrelated names such asredesign.md. - Add the renamed-ID and skipped/missing outcomes to
openspec/specs/opsx-verify-skill/spec.md, then strengthen the template regression to pin those cases for both generated bodies.
The generated mirror, parity hashes, and patch changeset are already in good shape. Canonical docs-lab remains accurate, and the hosted CI/Security matrix is green on this head.
Closes #2027
What this changes
The verify workflow read
contextFiles.specsandcontextFiles.design, which only exist when a schema names its artifactsspecsanddesign; with other artifact ids it found nothing to verify against. It now finds them throughartifactPaths.<id>.outputPath: spec artifacts are those underspecs/, and the design artifact isdesign.md. The generated skill file is regenerated to match.How you verified it
The updated template tests failed on the previous source (58 passed, 3 failed) and pass with the change (61 passed, 0 failed). I did not run the full build, tsc or lint.
Notes
Written by Claude Code (Claude Sonnet 5.5); I ran the tests above myself.
pnpm changesetif this affects users, and committed the fileSummary by CodeRabbit