get_drift_report
Detects context drift between AI's loaded snapshot and current codebase by comparing file hashes or timestamps, ensuring the AI uses up-to-date context.
Instructions
Detects context drift between the AI's loaded snapshot and the current codebase.
Two detection modes:
- **Hash-based** (preferred): Pass ``file_hashes`` as ``{file_path: sha256_hash}``.
V.I.S.O.R. compares the provided hashes against the indexed ``file_hash`` column.
If they differ, the file has changed since the agent last read it.
- **Timestamp-based** (fallback): Compares ``loaded_at`` against ``file_changelog``
entries when hashes are not supplied.
Args:
context_files: List of file paths the agent currently holds in context.
loaded_at: ISO-8601 timestamp of when the agent loaded its context.
file_hashes: Optional dict mapping file_path → sha256 hash the agent last saw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loaded_at | Yes | ||
| file_hashes | No | ||
| context_files | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |