Exhaustive Driver Map

Every field × value × slice cell swept with relate() and ranked by how far its lift moves under conditioning: 827 cells from 18 statements. Interactions surface without anyone going looking for them.

Exhaustive Driver Map: screenshot from the SQL demo
🐘 SQL_relateCross-vertical
In the demo827 cells from 18 relate() statements on the SQL demo's map page, one statement per slice rather than one per cell.

The problem

The first objection to any root-cause finding is fair: you found it because you went looking for it. A handful of hand-written analyses cannot answer that. A sweep that nobody curated can.

A sweep also catches what a single ranking misses. A field that is harmless on its own can be dangerous in one context, so its lift over the whole population looks unremarkable. What gives it away is that the lift moves when you condition.

How it works

The map runs the same relate() the cards use, once over the whole book and once inside each slice of four context dimensions (climate, shift pattern, machine grade, industry). Every field × value cell gets a lift per slice, and the cells are ranked by how far the lift travelled. The cost is one statement per slice, not one per cell.

Keys, the outcome itself, and near-unique fields are left out of the sweep, since their lifts are noise.

For the full architecture, see the technology overview. For the broader narrative across multiple use cases, read The Predictive Application.

See it live

This use case runs in the 🐘 SQL demo today. Click through to the live application and inspect the queries that produce the result.

Open the live demo →

Build it with Claude Code

Paste this prompt into Claude Code, or another coding agent, in your own codebase. It runs Aito locally from the Docker image, reads the API docs written for agents, and follows a working reference implementation.

Driver map: a prompt for Claude Code
Add driver map to this codebase using Aito, a predictive database. The feature: sweep every field and value in our customer data for its lift on an outcome like churn, once over everything and once inside each context slice, and rank the cells by how far the lift moves.

1. Run Aito locally: `docker pull ghcr.io/aitohq/aito`, then follow https://aito.ai/docker/ to start it with your own API keys (keep them in the environment, never in code).
2. Read https://aito.ai/docs/api/llms.txt for the v2 query shapes before writing any query.
3. Read the use-case guide: https://aito.ai/use-cases/driver-map/
4. Use this reference implementation as the pattern (schema, data load and queries): https://github.com/AitoDotAI/aito-sql-demo/blob/main/src/map.py and https://github.com/AitoDotAI/aito-sql-demo/blob/main/sql/01_schema.sql
5. Find the matching tables in this codebase, design the Aito schema for them (links between tables where we have foreign keys), and load a sample.
6. Check the numbers before building the view: compare a few of them against a direct count over the same rows (SQL or a short script), and report any that differ.
7. In the UI, show the evidence behind each number (the counts, the interval or $why), and leave out patterns with too little data behind them.

Ask me before changing anything outside the new feature.