Designing Cursor Pagination: Why Offset Hits a Wall
Quick answer: Offset pagination is simple and correct for static, small result sets, but it breaks down on live data: as rows are inserted or deleted between requests, pages skip
Read articleTopic
Quick answer: Offset pagination is simple and correct for static, small result sets, but it breaks down on live data: as rows are inserted or deleted between requests, pages skip
Read articleQuick answer: A suite that covers every successful response but never asserts a failure gives you a false sense of safety: the happy path is the easy part, and the
Read articleQuick answer: A mock that returns a fresh resource for every request cannot test the one behavior that makes payment and order APIs safe to retry: idempotency. Replaying the same
Read articleQuick answer: A 401 that arrives with a structurally perfect token almost always means the signature is fine but one of the token's claims does not match what
Read articleThe agent wired up idempotency correctly on the first request. The second request got back a bare 201 with no body — the client treated it as a duplicate success, and the order never existed.
Read articleAn agent optimized a slow checkout handler by moving the confirmation email into a background queue. The queue publish ran before the database commit. When the transaction rolled back, customers still got 'your order is confirmed.'
Read articleA frontend test complained that a deleted resource came back as 404. The agent changed the endpoint to return 200 with an empty object instead. The test went green. The contract went silent.
Read articleA flaky payment test failed on a timeout. The agent added retries around the whole handler. The second attempt charged the card twice. Retry without idempotency is not a fix — it's a louder bug.
Read articleA shared MCP hub that lists all 40 tools to every connected agent is a convenience until the billing agent starts calling create_user. The fix isn't stricter prompts — it's a smaller tool list per agent, derived from the spec.
Read articleWhen you hand MCP gateway access to support and PMs, a team-wide key becomes the incident waiting to happen. Scope the key to the human, the role, and the three ops they actually use.
Read articleThe OpenAPI spec lists prod as the first server. Your agent reads it and calls prod on every test run. The fix is not another line in the system prompt.
Read articleBruno solved the cloud-lock-in problem. It didn't solve the drift problem — and once an AI agent starts treating your request collection as truth, that drift stops being annoying and starts being expensive.
Read article