knowledge_check_drift
Checks if an Architecture Decision Record (ADR) aligns with the actual codebase by comparing its claims and decisions against the code under specified paths, returning a structured drift report of any inconsistencies.
Instructions
Check whether an ADR has drifted from the actual codebase.
Returns the ADR content + its affects_paths (glob patterns). YOU THEN:
Use your own Glob/Read/Grep tools to inspect the files under those paths in the user's workspace
Compare the ADR's claims/decisions to what the code actually does
Return a structured drift report: { drifts: [{ claim, evidence, severity }] } or {} if no drift.
If affectsPaths is empty, tell the user: "ADR-N has no affects_paths configured — ask them to add glob patterns via the UI".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| adrNumber | Yes | ADR number to check |