SShortSingh.
Back to feed

How a Frozen Oracle File Keeps AI Coding Agents Honest During Pairing

0
·28 views

A software engineering writeup describes a pairing protocol where a senior developer insists on creating an immutable oracle test file before allowing any AI agent to modify production code. The core principle is that the agent responsible for writing patches must never be permitted to also author the assertions that validate those patches, as this renders test results meaningless. Before any agent session begins, the pair answers five structured questions covering the failure description, judge file ownership, rollback commands, permitted write paths, and remote server restrictions. The worked example centers on a small invoice helper function that incorrectly truncated currency values due to binary float arithmetic, deliberately chosen because it required no network access or credentials. All session constraints were recorded in a local markdown log, which served as the sole context provided to the agent, replacing open-ended speculative discussion about root causes.

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 ·

Random UUIDv4 Primary Keys Can Silently Degrade Database Write Performance

A backend engineer reported a 340% spike in database write latency after their table passed 50 million rows, with CPU usage normal and storage I/O saturated. The cause was using random UUIDv4 values as primary keys, which were chosen to avoid enumeration attacks and simplify distributed ID generation. Relational databases store primary keys in sorted B-Tree indexes, so random keys land in arbitrary positions, forcing cold page reads, frequent page splits, and bloated, half-empty index pages. The problem is worse in MySQL's InnoDB, where the primary key also determines physical row order, fragmenting the entire table. The author benchmarks UUIDv4 against the time-ordered UUIDv7 standard, which places a timestamp first so new keys append near the end of the index.

0
ProgrammingDEV Community ·

Why Logo File Formats Matter for Print and Web, and What to Request

A common problem arises when clients send low-resolution JPGs with white backgrounds that look poor on dark or high-density screens and in large-format print. The article argues that most logo issues stem from missing file types rather than design flaws. It recommends requesting a vector master file such as AI or SVG, print-ready PDF or EPS files, and transparent PNGs in several sizes. It also suggests color variants, multiple layouts, and color codes in HEX, RGB, CMYK, and Pantone. The core advice is that every other format can be exported from a vector source, while small raster images cannot be scaled up well.

0
ProgrammingHacker News ·

Blender 5.3 Released With Gaussian Splat Support

Blender 5.3 has been released, according to the official Blender website. The update adds support for Gaussian Splats, a technique for representing and rendering 3D scenes. The announcement drew attention on Hacker News, where it received 16 points and one comment. The source material provides only the release announcement and discussion metadata, so further details about the feature's capabilities are not available here.