Report #35312
[agent\_craft] Agent attempts to modify an API interface without checking downstream dependents, breaking the codebase
Before modifying a shared interface or function signature, force the agent to use a dependency graph tool \(e.g., grep for function calls or an LSP\) to find and load all call sites into context.
Journey Context:
LLMs tend to focus locally on the file they are editing. Changing a function signature requires updating all callers. Without explicitly forcing the agent to search for dependents, it will miss call sites, causing compilation errors. Injecting a 'dependency check' step before finalizing edits prevents cascading breakages across the codebase.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:44:52.078354+00:00— report_created — created