When a Robot API Changes, Test the Contract Before the Upgrade
Exoskeleton Trial Productivity Metrics: Measure Output Without Hiding Quality
Nov 19, 2026
AMR Handoffs to Weighing Stations: Stable Placement, Tare, and Load–Record Matching
Nov 19, 2026
Empty-Pallet Supply for Robotic Palletizing: Dispensers, Stack Quality, Detection, and Recovery
Nov 18, 2026
Poka-Yoke Verification: Test Whether Error-Proofing Can Be Bypassed
Nov 13, 2026
Consider a hypothetical integration. A warehouse control system sends a transport order to a fleet server and receives an HTTP 200 carrying a job identifier. The transport layer is healthy. Weeks later the fleet software is upgraded, the identifiers still return, the JSON still parses, and the warehouse starts releasing stock at the wrong moment. Nothing in the API “failed”. What changed was what one status value meant.

That failure mode is easier to produce than to detect, because it hides inside a successful response. A request that returns 200 and a payload your parser accepts is evidence of exactly one thing: the request was accepted. It says nothing about whether the state machine behind it still advances the way your application assumes.
So the compatibility question worth asking before an upgrade is not “is the API still up”. It is narrower. Can the consuming application still exchange the intended commands and states with the new release, and how would we know before the change reaches production. Answering it produces a small test artefact, not a vendor assurance.
Identify the Contract the Integration Depends On
Start with the version actually in use, not the version in the latest release notes. Those diverge more often than suppliers expect, because an upgrade to the fleet server may carry an API change that never reaches a site still running an older controller firmware.
Then list what your application actually consumes. Not the whole published interface, the subset it touches. For each operation, record the request shape it sends, the response fields it reads, the states it treats as meaningful, and the errors it handles. This list is usually shorter than a full schema and far more useful, because it is the only part of the interface that can break your business process.
A published schema and a behavioural commitment are two different documents, and the second one is usually missing. A schema tells you a field called status is a string. It does not tell you that COMPLETED in the current release means the robot has finished the physical task rather than the job has been dispatched to a robot. Both can be true statements about the same string field in two consecutive releases. Only the interface control document records which meaning was agreed.
That is why the ICD is the right source for agreed meanings, and why drafting a second specification in parallel is a bad idea. Two documents describing the same interface will drift, and the drift will be discovered during an incident. If the existing ICD is thin on state semantics, the fix is to get the semantics written into it rather than to maintain a private interpretation beside it. Our guide to the robot interface control document covers what that document should record and who signs it off.
Behavioural commitments worth extracting from it explicitly:
The acknowledgement rule. When a job is accepted, when it is confirmed started, and whether acceptance implies the robot has been allocated.
The terminal-state rule. Which states are final, which are retryable, and whether a job can move backwards.
The retry rule. Whether resending the same request is safe, and under what condition.
The identity rule. Whether the job identifier persists across a retry, a reassignment, or a robot substitution.
Build a Small Set of Versioned Test Fixtures
The fixtures are the reusable part of the work, and the temptation is to build too many. A useful suite usually fits in a dozen cases per interface, because it covers the operations your application uses and the edge conditions your application actually meets.
Each fixture pairs a request with the response you expect. Where the implemented contract defines them, record the details that get silently dropped from most test suites: optional fields present and absent, enumeration values in use and values recognised but not used, units and their basis, identifier formats, and what the service returns when an optional field is null rather than omitted. Null and absent are different claims, and code that treats them as equivalent is a common source of upgrade surprises.
Two constraints on fixture content. First, they must be authorised synthetic examples, reviewed by whoever owns the integration, not scraped from production. Second, keep customer data and live task commands out of them entirely. A fixture containing a real pallet identifier, a real order reference or a real route instruction turns a test asset into a data-protection problem the moment it is copied to a laptop. Replace identifiers with constants that are obviously fake and obviously invalid, so that an accidental send to a live endpoint fails loudly rather than moving something.
Version the fixture set with a date and the API version it was recorded against. A fixture without a recording date becomes folklore within two upgrades.
Test Meaning, Not Only Whether a Request Succeeds
This is where most compatibility checks stop too early.
A request that returns 200 has been accepted. It has not been proven idempotent, it has not been proven to advance the state machine, and it has not been proven to have caused anything physical. HTTP semantics are precise about this and the precision matters. RFC 9110 defines a method as idempotent when the intended effect on the server of multiple identical requests is the same as the effect of a single request, and lists PUT, DELETE and the safe methods as satisfying it. The same specification immediately limits the claim, noting that the idempotent property applies only to what the user requested, and that a server remains free to log each request separately, retain a revision history, or implement other non-idempotent side effects for each idempotent request.
So idempotent does not mean “runs once”. It means “the intended effect repeats without compounding”. A robot job submission that logs a duplicate record on every retry can be perfectly idempotent in the HTTP sense and still leave your dispatcher reading two jobs where the floor has one. And there is no general standard header to fall back on for deduplication: the Idempotency-Key header circulated as an Internet-Draft and expired without becoming an RFC, so any deduplication your integration relies on is defined by the specific interface, or it is not defined at all.
The interface description language itself concedes a related point. The OpenAPI Specification, in its current 3.1.1 revision, states that non-backwards compatible changes may occasionally be made in minor versions where the impact is believed to be low relative to the benefit. It also instructs tooling to ignore the patch number entirely, so that 3.1.0 and 3.1.1 are treated as the same feature set. If the specification that describes interfaces does not promise minor-version compatibility, there is no basis for assuming that a supplier's minor API bump is harmless. And the same specification is explicit that undefined behaviour may produce outcomes which contradict it, and that relying on such behaviour is not recommended because nothing guarantees it holds across tools or future versions. A newly added field your consumer ignores today is fine. A renamed status value, a changed default, or a new terminal state is not.
Published research gives a sense of the scale. A large-scale study of the Java library ecosystem examined 317 libraries, roughly 9,000 releases and 260,000 client applications, and found that 14.78 per cent of API changes broke compatibility with previous versions, with the rate rising over time. Read that as a statement about Java libraries, not about robot APIs; there is no equivalent dataset for industrial robot software, and quoting the figure as though there were would be dishonest. The transferable finding is the shape of the problem, not the number.
The more useful research concept for this task is the behavioural breaking change: a change that compiles cleanly, passes type checks, and alters runtime behaviour in a way the client cannot see until it runs. Work on client-library compatibility testing proposes recording the actual interactions observed at the API boundary during a client test run, including protocol details, input and output values and exceptions, storing those recordings as a snapshot of what the client expected at a point in time, then diffing old against new after the library evolves. That is a reasonable description of the fixture suite above, done properly: the snapshot is the contract as observed, not as documented.
A second study, of Maven Central, found breaking changes to be common and unrelated to whether maintainers followed semantic versioning. Maintainers do not reliably label breaking changes, and version numbers therefore carry less information than consumers assume. Applied to robot software, the conclusion is blunt. Do not infer compatibility from a version number, in either direction.
When you compare old and new releases, run the same fixtures against both and diff the results rather than reading release notes and forming an opinion. Release notes describe intent. The fixtures describe behaviour.
Include the Failure Paths the Consumer Uses
Happy-path compatibility is the easy half. The failures are where integrations actually break, because error handling is written once, tested lightly and then trusted for years.
Test the negative cases the consumer relies on, subject to what the supported API and the test environment permit. Agreed invalid input, so you learn whether a rejected request returns the same rejection shape. An unavailable dependency, so you learn whether the response distinguishes “cannot reach the robot” from “the job is invalid”. A timeout, so you learn what the consumer should conclude about a request whose outcome is unknown. A duplicate submission, so you learn what actually happens on the second identical request.
The instruction that keeps this section honest is to verify observable responses against the specified contract rather than inventing generic error codes. If the ICD does not define a code, the absence is the finding, and it belongs in the report as an open question for the supplier rather than as a test failure your team invents a name for. Invented codes harden into assumptions, and assumptions are what break silently.
Equally important, record what the test cannot represent. Two categories usually dominate. Production load, meaning whether the service behaves the same under concurrent job submission from many clients rather than one fixture at a time. And physical task outcome, meaning that no API test proves a robot moved, gripped, welded or delivered anything. An API returns a claim about a task; the task happens elsewhere. Anyone who treats a green test suite as evidence of physical capability has confused two very different kinds of proof.
Classify Differences Before Choosing an Upgrade Action
After the diff, resist the urge to sort results into pass and fail. Four categories are more useful, because they route to different owners.
A documentation mismatch is a difference between what the schema says and what the service does. The service behaviour is the truth; the document needs correcting, and the supplier needs to confirm which one they consider authoritative.
A consumer assumption is a difference caused by your application relying on something never officially specified, such as field ordering, an undocumented default, or a status sequence that happened to hold in the old release. This category is uncomfortable because the defect is on the buyer's side, and it is also the most common.
A supported breaking change is an intended change the supplier has documented, with a migration path. It still needs your integration owner's decision on timing, because “supported” does not mean “free”.
An unconfirmed anomaly is a difference nobody has explained. Keep it open. Do not average it away with the others, and do not deploy past it on the assumption that it is cosmetic.
For each material difference, record the supplier's explanation and the integration owner's decision. Then hand the resulting evidence to whoever already owns deployment approval, staged rollout and recovery. That governance process is a separate mechanism with its own criteria, and a compatibility report is an input to it rather than a substitute for it. Our guide to software update and rollback governance covers how a controlled change with a defined rollback should be sequenced. The compatibility report tells that process what changed in behaviour; it does not authorise the deployment.
Maintain the Suite with the Interface Contract
The suite decays faster than the software it tests, unless it is versioned alongside the interface it describes.
Version five things together, as one unit: the schema, the fixtures, the expected results, the test environment, and the test report. A report that does not name the environment it ran in cannot be reproduced six months later, which makes it a historical curiosity rather than evidence. Recording these alongside the interface revision also gives you a defensible answer to the question every auditor eventually asks, which is which version of the evidence applies to which version of the system. Our guide to configuration version control covers how configuration revisions and their evidence should be tracked together.
Two triggers require new cases rather than a re-run of the existing ones.
The first is a newly used endpoint. The moment your application starts calling an operation it did not call before, that operation is untested regardless of how long the vendor has offered it.
The second is a changed business workflow. A new dispatch rule, a changed exception path, a shift from one-job-at-a-time to batching: each of these changes which states your consumer reads and which order it reads them in. Fixtures recorded against the old workflow will pass and tell you nothing.
Close with a compatibility report that states its own scope, and resist compressing it into a badge. A line that says “API 4.2 compatible” is worse than no line at all, because it will be quoted in a change advisory board meeting by someone who did not read the exclusion list. What belongs in the report is the tested version pair, the operations covered, the environment, the four-category classification of each material difference, what was not tested and why, and the named owner for each open item.
If you are preparing this for a specific platform, the practical next step is to collect the named API versions, the supplier's release notes for the release you are considering, and a redacted list of the operations your application actually uses. Those three items let a compatibility question be put to the supplier in terms they can answer. AIsirRobot can coordinate that clarification and help turn the answers into a test scope. We will not present a compatibility suite as proof that the integration will work, and no test of an interface proves that the physical task behind it succeeds. The realistic outcome is a short list of differences you can explain, an owner for each one, and a set of answers in hand while the old release is still running and you can still choose the timing.
Contact Us
In This Article
Exoskeleton Trial Productivity Metrics: Measure Output Without Hiding Quality
Nov 19, 2026
AMR Handoffs to Weighing Stations: Stable Placement, Tare, and Load–Record Matching
Nov 19, 2026
Empty-Pallet Supply for Robotic Palletizing: Dispensers, Stack Quality, Detection, and Recovery
Nov 18, 2026
Poka-Yoke Verification: Test Whether Error-Proofing Can Be Bypassed
Nov 13, 2026