chore(repo): update agent guidance - #672
Conversation
Refresh repository guidance and ignored local artifacts. Signed-off-by: Bernardo Donadio <bcdonadio@bcdonadio.com>
PR Summary by QodoDocument local agent overrides and ignore AGENTS.local.md
AI Description
High-Level Assessment
Files changed (2)
|
There was a problem hiding this comment.
Pull request overview
Updates the repository’s agent guidance to allow optional local, gitignored overrides and ensures those local artifacts aren’t accidentally committed.
Changes:
- Refresh
AGENTS.mdinstructions to mention optionalAGENTS.local.mdoverrides. - Extend
.gitignoreto ignoreAGENTS.local.md.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| AGENTS.md | Updates agent guidance to reference an optional local override file and reiterate workflow docs. |
| .gitignore | Ignores AGENTS.local.md to prevent committing local-only guidance. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| <!-- Claude Code include: @WORKFLOW.md --> | ||
| See [WORKFLOW.md](./WORKFLOW.md) for the full development workflow. | ||
| - Read [AGENTS.local.md](./AGENTS.local.md) if present. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1. Local guidance overrides safety gates
|
| - Read [AGENTS.local.md](./AGENTS.local.md) if present. | ||
| - Statements in this local file should override any project instruction. | ||
| - The file is intentionally gitignored. Keep it that way. |
There was a problem hiding this comment.
1. Local guidance overrides safety gates 🐞 Bug ⚙ Maintainability
The new rule makes a user-controlled, gitignored AGENTS.local.md authoritative over all project instructions, so agents that honor it can disregard documented coverage, testing, or release-readiness requirements when those requirements are not independently enforced. The risk is conditional on the consuming agent and CI/tooling, but the committed guidance now explicitly permits those overrides.
Agent Prompt
## Issue description
`AGENTS.local.md` is gitignored and user-controlled, but the new guidance gives it precedence over every project instruction. This permits agents to bypass repository safety-critical requirements such as testing, coverage, and release checks when those requirements are advisory rather than independently enforced.
## Issue Context
Keep support for local developer customizations, but do not let them override mandatory project safeguards.
## Fix Focus Areas
- AGENTS.md[3-5]
- AGENTS.md[8-21]
- AGENTS.md[37-46]
State explicitly that local guidance may override only non-critical preferences and must not weaken testing, security, coverage, or release requirements; enforce those requirements independently in CI where applicable.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Summary
Update repository agent guidance and ignore local agent artifacts.
Changes
Validation
Not run per explicit request.