fix(advisor): validate hosted specialist artifacts - #10727
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe PR review advisor now validates specialist artifact sets for local and hosted workflows. Hosted summary publication requires valid configuration and complete regular artifacts. Tests cover the expected session artifact and incomplete-artifact rejection. ChangesPR review advisor
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The PR adds fail-closed validation before hosted summaries are published and shares that validation with the local path. No actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant runAdvisorSpecialistCommand
participant validateSpecialistArtifacts
participant publishSpecialistJobSummary
runAdvisorSpecialistCommand->>validateSpecialistArtifacts: Validate generated artifacts
validateSpecialistArtifacts-->>runAdvisorSpecialistCommand: Return validation result
runAdvisorSpecialistCommand->>publishSpecialistJobSummary: Publish validated summary
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
|
Not likely to happen all that ofte |
Outcome
Hosted PR Advisor jobs now reject incomplete specialist artifacts before publishing their job summary.
Reason
The final review of #10701 found that a Markdown-only artifact could appear complete without its required native JSONL session trace.
Changes
Verification
npx vitest run --project integration test/automation/pull-requests/pr-review-advisor-openshell.test.ts test/automation/pull-requests/pr-review-advisor-local.test.ts test/automation/pull-requests/growth-guardrails.test.ts— 95 passed.npm run typecheck:cli— passed.npm run validate:pr— passed.DCO Sign-Off
Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests