diff --git a/AGENTS.md b/AGENTS.md index 19ab801a..588f160d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,6 +8,7 @@ - **Logging conventions.** Start log messages with capital letters and do not end with punctuation. - **Commit messages.** Do not include PR links in commit messages. - **Kubernetes resource comparison.** Use semantic `.Equal()` or `.Cmp()` methods for `resource.Quantity` comparisons, not `reflect.DeepEqual` — structurally different Quantity values can be semantically identical (e.g., `1000m` vs `1` CPU). +- **Search before deleting or renaming.** Before removing, moving, or renaming files, search the entire codebase for all references to those files (including test infrastructure, configs, and documentation) and update them. Do not rely on CI to catch broken references. ## Key Makefile Targets - `make verify` — run all verification checks (lint, fmt, vet, etc.). diff --git a/self-development/agentconfig.yaml b/self-development/agentconfig.yaml index b08f63a8..5354faf7 100644 --- a/self-development/agentconfig.yaml +++ b/self-development/agentconfig.yaml @@ -31,3 +31,4 @@ spec: - Commit messages: do not include PR links in commit messages - When making structural changes (adding new files, configs, or components), update related documentation (especially README files) to stay in sync - Kubernetes resource comparison: use semantic `.Equal()` or `.Cmp()` methods for `resource.Quantity` comparisons, not `reflect.DeepEqual` + - Search before deleting or renaming: before removing, moving, or renaming files, search the entire codebase for all references (including tests and configs) and update them