Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Model and Tool API Contracts

Keep the old client working through an explicit adapter

Coding challenges

A newer caller reaches yesterday’s parser

The old parser worked until a supported caller selected the new shape.

BOTIE

The changed request declares version 2 and sends query/count. What should change in the construction?
The inputs we are comparing

Versioned search request

Yesterday’s caller

version
1
text
pump
limit
2

The new client changes its public keys

version
2
query
valve
count
4
Result for yesterday’s caller
query
pump
count
2
Choose an explanation to test
A future version has familiar-looking fields

This check uses the pieces from “Build the two public edges around one internal form”.

BOTIE

The new fixture declares version 3 but uses query/count. Predict whether familiar keys are enough to make it supported.
Versioned search request
version
3
query
pump
count
2

Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

Which old client would fail if the server rolled back to version 1-only code?

Keep supported public contracts distinct from the internal representation.

The adapters recognize only these two specified request versions. Supporting another client requires checking its actual message and behavior, then adding the relevant adapter and fixtures.

Continue the courseThe Number Was Valid, but It Meant Something Else →