SShortSingh.
Back to feed

How to verify an API rewrite using differential testing

0
·5 views

Differential testing sends identical requests to both the legacy and rewritten services, normalizes fields allowed to differ, and compares status codes, headers, and bodies. The legacy service serves as the reference, and any unexplained divergence signals either a rewrite bug or a behavior users depend on. Anthropic reported that its Rust rewrite of the Messages API passed about 98% of its tests yet matched only about a quarter of production traffic, and a review found over 100 weakened assertions in ported tests. The article argues that replaying real traffic against both services exposes these gaps better than a test suite tied to the old code. The same approach applies to language migrations, framework swaps, or monolith decomposition.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Plane users weigh whether a verification state belongs in the started or completed group

The article asks whether a 'Ready for verification' state in Plane should be grouped as unfinished or complete, depending on whether verification is part of the work's acceptance criteria. It compared the state configurations of three personal projects, DRG, RECITAL, and SQN, retrieved on September 11, 2026, and found five default-style states in each, with no custom verification or publication states. The author notes that Plane's Completed group drives done-counting behavior regardless of display name, so a name and group can conflict. A proposed scheme places verification-pending work in the started group and fully met criteria in done, while acknowledging that Plane does not require this. The example uses a mobile verification item in ticket SQN-30 as a case study, and no project settings were changed.

0
ProgrammingDEV Community ·

Why credit prices alone mislead when comparing AI app builders

A builder spent weeks comparing pricing pages of AI app builders and found that similar-looking credit prices hide very different cost structures. Lovable uses a single credit balance with free grants applied first, Base44 splits credits into message and integration balances, and Bolt bills by tokens that vary with code and conversation size. Other factors such as cost of a first real app, cost of small edits, behavior when credits run out, and what is free to use also matter. The author concludes that the best comparison is to build the same small app on two tools and track credit usage over several actions.

0
ProgrammingDEV Community ·

Integration testing agent code-execution tools against real sandboxes

A common practice is to test an agent's run_code tool with mocks, which only confirms that a function gets called and not how real execution behaves. Mocks miss production bugs such as missing runtimes, incorrect output truncation, misreported timeouts, and unintended network access. The article recommends a small integration suite that runs against real sandboxes, focused on the contract between the tool and the model. It shows a Vitest setup using the Sandscale TypeScript SDK, with one sandbox per test file that is created in beforeAll, labeled for cleanup, and given a timeout backstop. The suite covers the happy path, failure reporting, output handling, environment availability, and network isolation.

0
ProgrammingDEV Community ·

OpenAI Preprint Claims Matrix Multiplication Exponent Is Exactly 9/4

An OpenAI manuscript posted November 24, 2026 asserts that the matrix multiplication exponent omega equals 9/4 over every field, which would settle the exponent's value. The claim pairs an upper bound with a matching lower bound for arithmetic circuits, and it follows a rapid sequence of OpenAI papers in September and October that pushed the bound down from about 2.371. Commentators argue the result could matter more for practical computing than the Riemann Hypothesis, since matrix multiplication drives most of the compute in AI inference. The article notes that a Lean formalization accompanies the work, though one lower-bound component remains unformalized. Independent expositions from other researchers are cited as alternative verification routes.