fix(proposals): promote claim/page status on approve - #586
fix(proposals): promote claim/page status on approve#586kurosawareiji7007-hub wants to merge 2 commits into
Conversation
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
WalkthroughApproval now promotes default claim and page statuses to their live states before durable creation. Vault synchronization documentation and regression coverage reflect and verify the resulting approved artifacts. ChangesApproval status promotion
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
gate approval left WORKING/DRAFT defaults, so kb_to_vault and other post-gate surfaces skipped freshly approved knowledge. Fixes vouchdev#583
04fb8f6 to
04b1fcb
Compare
|
rewrote commit history to remove the |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/vouch/proposals.py`:
- Around line 786-788: Lowercase ordinary prose in the comments at
src/vouch/proposals.py lines 786-788 and 816-817, preserving enum identifiers
such as WORKING, DRAFT, ACTIONABLE, and ACTIVE. At src/vouch/vault_sync.py lines
162-165, lowercase “Gate-approved” and replace “Obsidian” with lowercase prose
such as “vault”; make no code changes.
In `@src/vouch/vault_sync.py`:
- Around line 162-165: Update kb_to_vault() to remove existing vault mirror
files whose artifacts are absent from the current live set, including retracted
claims and archived pages, while preserving current writes for live artifacts.
Add a sync-after-retraction regression test covering removal of the stale
markdown file, and revise the nearby lifecycle comment so it does not imply
deletion already occurs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 861d0ed0-5815-4aac-967a-b8241765a65c
📒 Files selected for processing (4)
CHANGELOG.mdsrc/vouch/proposals.pysrc/vouch/vault_sync.pytests/test_vault_sync.py
address coderabbit on vouchdev#586: lowercase comment prose, exclude archived pages from the live vault set, and remove leftover claim/page markdown when artifacts leave that set.
|
addressed coderabbit:
ready for re-review. |
what changed
proposals.approvepromotes claims fromWORKING→ACTIONABLEand pages fromDRAFT→ACTIVEwhen the proposal still carries the propose defaults. vault-sync comment updated to match. regression covers propose → approve →kb_to_vaultwithout hand-editing status.why
approve wrote model defaults (
WORKING/DRAFT), but vault sync (and provenance / synthesize) only treatACTIONABLE+ /ACTIVEas live. fixtures and onboarding already force those statuses by hand — the gate itself did not (#583).draft pages written outside the gate still stay out of the vault (
test_kb_to_vault_skips_draft_pages).validation
Fixes #583
Summary by CodeRabbit
Bug Fixes
Documentation
Tests