feat(agents): streamline code review across local changes, branch diffs, and pull requests - #2784
feat(agents): streamline code review across local changes, branch diffs, and pull requests#2784Katrien De Graeve (katriendg) wants to merge 7 commits into
Conversation
- separate orientation from findings - bind PR targets to immutable head SHAs - add readiness checks and regression scenarios - update review documentation and generated assets
…h board - update orientation narrative to include preliminary signals - restructure dispatch board to present coherent review areas - add decision-ready confirmation surface for perspective and depth selection - improve error handling for subagent invocations
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2784 +/- ##
==========================================
+ Coverage 82.98% 83.09% +0.11%
==========================================
Files 183 183
Lines 33787 34086 +299
Branches 25 25
==========================================
+ Hits 28038 28325 +287
- Misses 5746 5758 +12
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Eval Execution✅ Status: Passed — no merge-blocking failures (1 advisory assertion failure(s) present)
|
…ml, regenerate eval spec
…ontracts - clarify that scenarios are behavior-contracts, not live reviews - update patterns to include additional PR context - ensure prompts specify assumptions about resolved pull requests and branches
…d behavior contracts - add environment files for coding standards - update regex patterns for improved matching - refine prompts for better user interaction
Jamie Kim (jkim323)
left a comment
There was a problem hiding this comment.
This is neat work!!! Thanks for working on this change
Description
This change unified pre-PR and pull-request review under one target-aware Code Review workflow. It separated review targets from Standard, Full, and Custom profiles, added a required factual orientation stage, and presented review areas, preliminary signals, perspective ownership, omissions, and depth rationale in one decision-ready confirmation.
Review workflow
Evaluation and documentation
Related Issue(s)
Fixes #2783
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
hve-builderand addressed all actionable findings.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md).github/hooks/*/*.json)evals/)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
User Request:
Execution Flow:
Output Artifacts:
Interactive runs persisted artifacts under
.copilot-tracking/reviews/code-reviews/<branch>/:The final report contained the changed-file summary, validated findings, verdict, execution limitations, next actions, and required human-review disclaimer.
Success Indicators:
Testing
npm run plugin:syncpassed and confirmed that plugin.json was current.npm run plugin:validatepassed with 55 agents, 48 commands, 57 rules, and 73 skills.npm run docs:generate:checkpassed with all 239 generated asset documents unchanged.npm run lint:ai-artifactspassed with zero issues.npm run validate:docspassed ESLint, label-registry consistency, TypeScript checks, and 78 Docusaurus tests.npm run spell-checkpassed all 823 files after correcting a truncatedambiguityregex alternative in the changed Code Review stimulus.npm run lint:md-linksfailed on four unchanged RAI and security reference files.npm run validate:localreached the same unrelated Markdown-link failures and did not pass as an aggregate.Diff-based review also confirmed synchronized workflow contracts, focused behavior scenarios, documentation coverage, plugin membership replacement, and no dependency or security-script changes. Manual testing was not performed.
Checklist
Required Checks
AI Artifact Contributions
hve-builderreview mode to review contributionhve-builderreviewRequired Local Checks
The following local-safe validation commands must pass before merging:
npm run validate:local(blocked by unchanged Markdown-link failures)npm run validate:docsnpm run spell-checknpm run lint:md-linksSecurity Considerations
GHCP Membership Changes
.github/agents/coding-standards/subagents/code-review-orientation.agent.md.github/agents/coding-standards/subagents/code-review-pr.agent.mdAdditional Notes
The broader getting-started documentation, end-to-end evaluation, interaction-choice coordination, reviewer coaching, and quantitative risk-scoring work remained tracked by #2092, #2093, #2094, #2284, and #2501 respectively.