Urgent.News

What's breaking now, across hundreds of outlets.

Tech

The example we advertise is the answer we owe

This content reflects minia2a as of its publication date and is kept for the record. Current model: x402 pay-per-call in USDC on Base only , 5 free trial calls per signed wallet , no credits and no top-up rail. The example we advertise is the answer we owe 2026-11-22 · 95 array examples, three encodings, four broken endpoints When a machine buys an API call it has not bought before, it does not…

The minimum viable product for the API service advertises that callers should provide input arrays in JSON format. When a machine makes an API call it does not read documentation as humans do; it reads the 402 response and retries with the example provided. The example shows an input field with an array of numbers, and the machine follows this example exactly.

To reach the handler, callers can use either a comma-separated string or the JSON array format. The handler measures services with published input examples containing arrays and performs tests using a signed trial wallet. Three distinct root causes in the handler cause the requests to fail: the way the JSON string is split, the conversion of array elements to numbers, and the handler's rejection of query values as arrays.

The guard in place earlier in the system only measured the handler's layer and assumed the advertised shape would work. The fix involves using a new module, lib/input-coerce, which handles both comma-separated and JSON array forms. After the fix, all four handlers can correctly answer POST requests with arrays, both in comma and JSON format.

However, this probe does not prove the service delivers correct answers, only that it delivers responses correctly. The probe only covers services with verified examples containing arrays, and does not check for stateless handlers with equality across different input methods.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Patzer v7.20: French and Ukrainian, LM Studio as a coach provider, and a coach that stops lying about trades

Last week Patzer got single sign-on. This week it got two more languages, a third local LLM provider, and a coach that stopped telling my kids they won material when they traded a bishop for a knight.

  • French and Ukrainian localization added to Patzer v7.20
  • LM Studio integrated as coach provider with OpenAI compatibility
  • Coach now accurately considers material after cheapest recapture

Harness could define the capacity and security of AI agents

A layer that structures agents In the opening keynote of QCon San Francisco 2026, Manju Rajashekhar, founder and CEO of Mad Labs, argued that the harness around an AI model determines what an agent…

  • Harness layer organizes AI model's capability and security
  • Software-defined behavior, operating system abstracts hardware analogy
  • Model provides capability, harness defines application of capability

More from Sunday 22 November →