knowledge_check_drift
Compare ADR decisions against the current codebase to generate a structured drift report with evidence and severity.
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".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adrNumber": "<adrNumber>"
},
"name": "knowledge_check_drift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adrNumber | Yes | ADR number to check | |
| projectId | No |