Skip to main content
A leaking column holds information the model will not have when it predicts for real. It makes the baseline and every experiment score better than they will on new rows. Autofit cannot detect every leak from the data. You know when each column is recorded.

What Claude checks

Before the session starts, Claude looks for three kinds of risk and asks you about each one it finds:
  • Columns recorded after the outcome. A refund date, a closing balance, a status, a return reason. Claude asks: “Is refund_date known when the order is placed?”
  • ID columns. A column unique or nearly unique per row. A model can learn to recognize a row by its ID.
  • Repeated records. The same record twice, sometimes with a different timestamp. One copy can train while the other is scored. Claude says how many rows repeat and offers a copy that keeps the first row of each.

Check a suspect column yourself

Compare the target rate across the column’s values. A column that splits the target almost perfectly is either a strong signal or a leak, and only you can tell which. For example, in a loan table with a default target:

Drop a column

Tell Claude to drop it. From a shell, pass --drop, once per column:
A dropped column is removed before anything runs, including the baseline.
Mentioning a leaking column in the context is not enough. The baseline runs before the agent reads anything, so only dropping the column keeps it out.
For a column in a lookup table, use a copy of that table without the column. --drop reaches the main table only. See Multi-table data.

When the agent finds an issue

During the session, the agent can flag a data issue: a repeated record, an identifying ID or a leaking column it missed at setup. Its experiment description then starts with Data issue:. Autofit pauses the session at the flag. Nothing runs until you decide:
  • Start a new session on data without the issue. You get an honest baseline to compare with. This is usually the better choice.
  • Resume this session. Its scores stay as they are, and the final model can include experiments scored with the issue.