BeforeAfter
Agents built URLs by hand and parsed HTML pagesA JSON REST API with 28 documented operations and an OpenAPI spec
Any change to an admin page could break race processingA published contract the code is tested against on every change
A failed message could silently lose a race sessionRepeatable API calls, each one read back and checked
Business rules lived in an agent's memory: one Heat or two, VIR's two qualifying sets, duplicate sessionsRules written down and covered by 138 automated tests
Changes tested for real at the next race weekendChanges tested by replaying past seasons against a clean database
28
API operations added to the legacy Java app
3
Seasons of race weekends replayed through the API, 2024 to 2026
138
Automated tests, up from 19 when the replays started
12+
Defects found by the replays and fixed
  1. James wrote the API spec first. No code until the spec was approved
  2. James built the API inside the existing Java app, sharing its database and code. No rewrite
  3. Ken designed the security: anyone can read, but only approved machines, with a secret token, can write
  4. Guido built the operator tool that runs a whole race weekend through the API
  5. Watts built the first test harness and the browser tests that guard the public pages
  6. Each replay started from a clean pre-season database and ran real weekends through the API, in race order
  7. The results were compared against the published results from those weekends
  8. Every mismatch became a fix and a new test

The replays never touched production. Every run started from a clean copy of the pre-season database, and loading that copy was the only direct database write allowed. Everything else went through the API, the same way a race weekend does. Race Monitor's rate limits were respected with a throttle, a backoff and the ability to resume.

Which of your systems are your agents scraping instead of talking to?

Agents can work through any screen a person can. A real API makes them faster and safer, and the agents can build that API themselves, without a rewrite. Your own history becomes the test suite.

Which of your systems is ready for automation?

Thirty minutes with Ted. No pitch deck. Just a straight conversation about where AI fits in your business.

Schedule a 30-Minute Conversation