Fix greenfield archive sync guidance (#1222)#1241
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughAdds a proposal, spec update, template guidance, and tests so archive workflows treat missing ChangesArchive sync guidance
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 Warning |
Commit
Commit: c22fa5e
Message: Fix greenfield archive sync guidance (#1222)
The commit only contains:
src/core/templates/workflows/archive-change.ts
test/core/templates/skill-templates-parity.test.ts
Summary
Fixed an issue in #1222 where the agent might skip spec sync during the first archive of a greenfield project.
Previously, the archive guidance did not explicitly mark missing main specs as needing sync, and the agent might directly move changes into the archive.
This adds/changes/fixes archive workflow guidance so missing openspec/specs//spec.md is treated as sync-needed and should be created from delta specs before archive.
Changes
Code: Enhanced the sync assessment documentation for archive skill and opsx archive command.
Testing: Added a regression assertion for missing main specs; updated template hashes.
OpenSpec: Local analysis files exist but have not been committed.
Verification
pnpm exec vitest run test/core/templates/skill-templates-parity.test.ts
pnpm exec vitest run test/core/archive.test.ts
pnpm run lint
pnpm test
pnpm run build
Summary by CodeRabbit
Bug Fixes
Documentation
Tests
Summary by CodeRabbit
Bug Fixes
Documentation