An API Change Broke Our Agent. How Do We Catch It Next Time?
The interviewer asksA partner changed their API's response format and your agent started failing silently for a day. How do you catch this next time?
Forward Deployed EngineerAI Product EngineerCoreBuild roundRepresentative7 min
On this page
The 30-second version
- "Silently" means the agent carried on with bad data instead of failing loudly.
- Validate tool responses against an expected schema; on mismatch, fail clearly and alert.
- Contract tests: run sample calls against partner APIs on a schedule.
- Synthetic end-to-end tasks every hour, with outcome checks.
- Monitor tool error rates and task success; alert on changes.
What it's really testing
- Agent robustness
- Monitoring agent tools
- Failing loudly
How to structure your answer
- Understand the failure.
- Validate at the boundary.
- Test continuously.
- Monitor and alert.
The interview, played out
- InterviewerA partner changed their API's response format and your agent started failing silently for a day. How do you catch this next time?
- CandidateWhat did silently mean here?
- Revealed when askedThe tool returned the new format; the agent read missing fields as "no availability" and told users nothing was free.
- CandidateSo the agent treated a broken response as a valid answer. First fix: validate every tool response against the expected schema. If it doesn't match, the tool returns a clear error, the agent tells the user it can't check right now, and we get alerted.
- Strong moveMakes failures loud at the tool boundary.
- CandidateSecond: contract tests that call the partner API on a schedule and check the format. Third: a few synthetic end-to-end tasks every hour with known answers.
- InterviewerHow would you alert?
- Missed signalShould define alert conditions, such as a spike in validation errors or a drop in task success.
- CandidateOn any schema validation failures, and on synthetic task success dropping below its normal level.
The strong answer, distilled
- Cause: malformed tool data treated as valid ("no availability").
- Boundary validation: schema checks; clear errors; honest user message; alerts.
- Contract tests: scheduled partner API checks.
- Synthetic tasks: hourly end-to-end runs with known answers.
- Alerts: validation failures and success-rate drops.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Diagnosis | Partner's fault | Format change | Silent misinterpretation found |
| Prevention | Ask partner to warn | Tests | Boundary validation plus contract and synthetic tests |
| Detection | User complaints | Monitoring | Specific alert conditions |
Round scorecard: FDE: technical and build round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Clarifying | Starts coding immediately. | Asks a few questions. | Pins down the goal, inputs and what done means first. | Strong. Asked how it was noticed and what "silently" meant. |
| Approach | Unworkable or over-built. | Workable. | The simplest approach that works, stated before building. | Strong. Validation at the tool boundary. |
| Testing | Tries one happy-path input. | Tries a few inputs. | Tests varied and bad inputs, and checks outputs systematically. | Strong. Contract tests and synthetic checks. |
| Trade-offs | None mentioned. | Some. | Says what was cut, why, and what comes next. | Passable. Alerting thresholds vague until asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Partner integrations at customer sites |
| AI Product Engineer | Validation and monitoring code |
Common mistakes
- Trusting tool responses
- Relying on partners to announce changes
- Monitoring only crashes
More follow-ups to practise
- "The partner has no test environment." Hint: read-only calls in production, rate-limited.
- "Many partners, many formats." Hint: a shared validation layer.
Go deeper
- Module: Agent and RAG evals
- Framework: Eval Plan Framework
- Framework: Build Round Framework
- Framework: Opening Any Interview Answer
- Lesson: Where agents fail
- Lesson: Evaluating agents: outcome, path and consistency
- Also tests: Production monitoring and error analysis
Sources
Representative question: written to match build rounds for AI product roles, not a specific reported interview.