Claude Code Looked Right but Missed $800K

Natalia Connolly, AlixPartners, Kevin Madura, AlixPartners18:32 · Nov 2026 · 7,798 views
Thumbnail for Claude Code Looked Right but Missed $800K Watch on YouTube
TL;DR
  1. 1

    Claude Code produced plausible procurement answers, but it missed an orphaned amendment worth about $800,000 and gave a renewal deadline one month too late.

  2. 2

    A five-stage pipeline that preprocesses, classifies, extracts, and normalizes contract data gives the agent cleaner inputs and lets the team check answers in code.

  3. 3

    Business rules belong in custom tools and structured workflows, especially for renewal dates, contract relationships, access failures, duplicate savings findings, and ongoing business actions.

Summary

Natalia Connolly and Kevin Madura describe a post-merger procurement analysis involving more than 40,000 contract documents, hundreds of vendors, and separate databases. Claude Code initially returned polished answers, but its total contract value was wrong by about $800,000 and its renewal deadline was November 1 instead of December 1. The causes were ordinary failures in contract data: an amendment was not linked to its parent, and the agent used a termination date instead of the date calculated from the renewal clause. The team built a five-stage processing pipeline before letting Claude analyze the data. They also created structured tables, custom database views, and tools that encode business rules. Later lessons cover access errors that looked like zero values, duplicate savings findings from parallel agents, and recommendations that ignored actions already underway. The talk makes a practical case for preparing data and business context before asking an agent to reason over it.

Key ideas
02:30

Plausible answers can hide expensive contract errors

Claude Code initially returned answers that were complete, well formatted, and plausible. Checking every answer against the source data exposed two serious errors. The total contract value was wrong by approximately $800,000 because the agent missed an amendment. The deadline for acting before the soonest contract auto-renewed was also wrong. Claude gave December 1, while the actual date was November 1. Waiting for the date supplied by the agent could have allowed the contract to renew. The procurement team needed every conclusion tied to a specific contract page or invoice line, so surface quality was not enough.

03:29

Contract portfolios contain ordinary failures that break extraction

The speakers describe several ways contract data can fail before an agent reasons over it. Very long contracts can hang during preprocessing, time out, and disappear without anyone realizing they never reached the database. Amendments can become detached from their parent contracts. Multiple amendments may restate the same contract value, causing a naive sum of extracted dollar amounts to produce $17 million when the latest amendment says the correct value is $7 million. Long rate tables can continue across pages without repeating their headers, leaving the meaning of later numbers unclear. These problems are common in real contract portfolios.

05:46

The team processed data through five stages before using Claude Code

The processing pipeline began with preprocessing tasks such as document intelligence and OCR. It then classified each document as an MSA, amendment, NDA, or another contract type. The next stage extracted terms, rates, and spend, including tables that crossed page boundaries. The team then mapped services to spend categories. Only after those steps did Claude Code analyze the extracted data. The pipeline took about two weeks to build, after which more than 40,000 contracts were processed overnight. Structured tables helped the agent, and they also let the team check answers programmatically.

07:08

Images and structured outputs preserve information that naive OCR loses

Contract pages can contain charts, graphs, and other visual elements that ordinary OCR reduces to axes or scattered text. Kevin Madura describes feeding contract pages as images through DSPI to produce structured output. The result was a database of elements relevant to the analysis instead of one large unstructured collection. When the team already knew it needed rate tiers, rebates, or other fields, it structured those fields first and let Claude populate the framework. This approach also supported custom tools such as retrieving a rate-card page or a vendor's spend.

08:26

Custom tools put business rules closer to the data

Once contract and spend data had been normalized into derivative databases, Claude Code could build or use custom tools and database views. These tools included ordinary operations such as executing SQL and listing tables, along with deal-specific operations such as getting a rate-card page or vendor spend. The team could put business logic into the way a tool queried data or returned results. That was more reliable than leaving every rule in a prompt. They also packaged working configurations into MCP servers and other reusable components so later agents could inherit the engagement's rules and context.

11:14

Renewal logic must answer the business question, not just find a date

The wrong renewal deadline came from using the date in a termination clause when the question required a date calculated from the renewal clause. The distinction looks small, but it changes when procurement must act. Kevin says these details compound error rates, so teams should encode the relevant rule before analysis begins. The same principle applies to contract relationships. A contract lifecycle management system may contain vendor names and extracted dates, but its links are often incomplete. Claude had to read contract contents and rebuild relationships among MSAs, statements of work, and amendments.

13:25

Access failures need to look different from valid zero values

The two companies in the analysis exposed data through different access paths. Some tool calls returned malformed values, zeros, or other incorrect results because of permission problems. Claude did not receive enough information about the failure and continued as if an invoice or amount really were zero. The team learned that denied access and governance failures should produce explicit feedback. With that information, the agent can retry, use an authoritative database, flag the issue for a person, or fail in a controlled way. A silent zero can directly distort a savings analysis.

14:37

Parallel savings analyses require a reconciliation workflow

The team dispatched agents to examine different savings levers, such as shared vendors or different vendors providing the same services. The parallel analyses produced useful findings, but those findings could overlap. A potential saving could be counted twice if two agents identified the same vendor or source. The team added a separate reconciliation process with precise workflows. Claude could perform the exploratory analysis, while the reconciliation step specified which data points to compare, how to reconcile them, and what next action was acceptable. This made the final savings calculation more controlled.

16:04

Recommendations need the business's current state

The agent sometimes recommended actions that management had already started three months earlier. Those recommendations sounded useful but would be rejected immediately because they were no longer new or relevant. The speakers describe this as a context problem. An analysis needs information about active projects, decisions, and actions already underway, but adding that context at the wrong point can constrain the analysis too early. The team suggests accruing this knowledge in memory systems, tools, or other persistent structures so Claude does not repeatedly rediscover the same issue or propose work that is already in motion.

"Anytime there's some sort of governance failure or access denied error or something like that, giving Claude more feedback about what went wrong allows it to fail gracefully or otherwise recover."Kevin Madura14:10
Who should watch
  • You are applying an coding agent to contracts, invoices, or other business documents and need answers that can be checked against source material.
  • Your agent returns polished results, but you do not yet know how it handles missing documents, broken relationships, or access failures.
  • You are running several agents to find savings or recommendations and need to prevent duplicate findings and stale advice.