Background Cursor Agents and API Contracts: Guardrails
Unattended agents need a contract that enforces itself, not a closer human reading.
Unattended agents need a contract that enforces itself, not a closer human reading.
Pact and Prism both touch contracts and mocks, but they start from opposite ends.
A mock is a frozen snapshot; the real API keeps moving, and the two can quietly diverge.
A green status is not the same as a conforming response.
The API spec becomes the agreed source of truth before code is written.
An agent that retries a tool needs to know whether the retry is safe.