knowledge_check_drift
Detect drift between an Architecture Decision Record (ADR) and the codebase by inspecting affected files and comparing claims to actual implementation, returning a structured drift report.
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 |
|---|---|---|---|
| adrNumber | Yes | ADR number to check | |
| projectId | No |