chore(agents): add migration-reviewer, sync shared exceptions, add agent-improvement workflow#6363
Conversation
|
Thank you for your contribution. This PR is but one step away from being ready for merging: all commits must be PGP-signed. To get started, please see https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits |
There was a problem hiding this comment.
Pull request overview
This PR improves OpenAEV’s GitHub Copilot agent/tooling documentation by adding a dedicated migration reviewer (agent + skill), aligning reviewer agents on “shared exceptions” and model policy guidance, and providing a ready-to-copy workflow draft intended to continuously validate/upgrade agent coverage on PRs.
Changes:
- Add migration review capability via
migration-revieweragent andreview-migrationskill. - Introduce/extend model policy + responsibility-boundary guidance across multiple reviewer agents (security, perf, tenancy, frontend, tests).
- Add an “Agent Improvement” workflow template (manual step) and a new/expanded
.github/AGENTS.mdentry point with routing + shared exceptions.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/skills/review-migration/SKILL.md | New step-by-step migration review skill (naming/idempotency/tenancy/data safety/ES reindex). |
| .github/agents/WORKFLOW_TO_ADD.md | Draft GitHub Actions workflow YAML to comment on PRs for agent consistency/coverage checks. |
| .github/agents/test-specialist.agent.md | Adds model policy + explicit boundary with multi-tenancy reviewer for tenant isolation tests. |
| .github/agents/security-reviewer.agent.md | Adds model policy and expands “What NOT to Flag” list to align with shared exceptions. |
| .github/agents/performance-reviewer.agent.md | Adds model policy and updates “What NOT to Flag” with shared exceptions. |
| .github/agents/multi-tenancy-reviewer.agent.md | Adds model policy + boundary section and updates “What NOT to Flag”. |
| .github/agents/migration-reviewer.agent.md | New migration-focused agent with procedure, rubric, and output format. |
| .github/agents/frontend-reviewer.agent.md | Adds model policy + quantitative thresholds and shared exception for generated API types. |
| .github/agents/api-reviewer.agent.md | New API-focused reviewer agent (controllers/DTOs/swagger/breaking changes). |
| .github/AGENTS.md | Central agent entry point: routing table, shared exceptions list, model policy, anti-patterns. |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (2.96%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #6363 +/- ##
============================================
- Coverage 43.81% 43.78% -0.04%
+ Complexity 7043 7040 -3
============================================
Files 2254 2254
Lines 62116 62116
Branches 8183 8183
============================================
- Hits 27216 27197 -19
- Misses 33166 33184 +18
- Partials 1734 1735 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@copilot fix tous les commentaires |
C’est fait dans le commit Correctifs appliqués :
|
…up rubric, bash to SKILL (#6363)
… context loading (#6363)
eee669a to
4f3e719
Compare
|
I may have missed something, but the shared exceptions look only half wired up. Four agents (api, frontend, multi-tenancy, performance) still keep their own full "What NOT to Flag" list instead of pointing to the shared one, and some items are duplicated. Could we make them reference the shared section too, so they don't drift apart over time? |
|
Heads up: PR #6316 changes the migration naming format. The new review-migration skill still checks for a "next sequential number, no gaps", and the rubric flags a "sequence gap". |
|
Thanks for the feedbacks. I will wait the merge of PR 6316 then. |
46608b5 to
9ca5057
Compare
the migrations change is merged now, thanks for your patience wrt this matter |
|
@copilot PR 6316 is merged, changes the according .md files. |
Updated in commit I aligned the migration review markdown files with the post-#6316 format:
|
What
Amélioration de l'outillage des agents de code OpenAEV.
Nouveaux fichiers
.github/agents/migration-reviewer.agent.md— nouvel agent dédié aux migrations Flyway (manquant alors quemigration.instructions.mdexiste depuis le début).github/skills/review-migration/SKILL.md— skill step-by-step associé (naming, idempotency, tenant isolation, data safety, ES reindex)Fichiers modifiés
.github/AGENTS.md— 3 ajouts :migration-reviewerdans la table de routing (signal: fichiers dansopenaev-api/src/main/java/io/openaev/migration/)## Shared Exceptions— liste centralisée des patterns à ne PAS flaguer, synchronisée entre tous les agents (était dupliquée et désynchronisée dans chaqueWhat NOT to Flag)À faire manuellement (permissions manquantes)
.github/agents/WORKFLOW_TO_ADD.mdcontient le YAML complet du workflowagent-improvement.ymlà créer dans.github/workflows/Why
What NOT to Flagétaient dupliquées et risquaient de diverger (ex:FetchType.EAGERsurcapabilitiesdocumenté dans security mais pas dans performance)Checklist
migration-reviewercouvre : naming, class structure, idempotency, tenant isolation, data safety, ES reindexAGENTS.mdrouting inclutmigration-revieweravec le bon signalWhat NOT to Flagexistantscopilot-instructions.mdagent-improvement.ymlà créer manuellement (voirWORKFLOW_TO_ADD.md)