Model and Tool API Contracts
Give each tool failure the recovery it permits
The transport loses a write response
Repeating every failed call worked for a read, then risked creating a second job.
BOTIE
The inputs we are comparing
Application outcome codes
A repeatable read is temporarily refused
- 0ok
- 1rate_limited
- 2invalid_request
A tool may already have performed a write
- 0unavailable
- 1outcome_unknown
- 2rate_limited
Trusted safe-to-repeat flags
A repeatable read is temporarily refused
- 01
- 11
- 21
A tool may already have performed a write
- 00
- 10
- 21
Attempts remaining after this observation
Same in both cases
2
Result for a repeatable read is temporarily refused
- 0done
- 1retry
- 2stop
A new code arrives beside an uncertain outcome
This check uses the pieces from “Classify failure before deciding to repeat”.
BOTIE
- Application outcome codes
- 0future_error
- 1outcome_unknown
- Trusted safe-to-repeat flags
- 01
- 11
- Attempts remaining after this observation
0
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 service guarantee would make an uncertain create safely repeatable?
Record the operation identity and recovery outcome without inventing success.
These components recommend a next action only. A real service must supply the operation record and enforce any idempotency guarantee before the caller relies on it.