knowledge_check_drift
Detects drift between Architecture Decision Records and actual codebase by returning affected file paths for comparison. Enables identification of inconsistencies between documented decisions and implementation.
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 |