Urgent.News

What's breaking now, across thousands of outlets.

Tech

Shadow-Compare the Agent Patch. Merge Only Classified Divergences.

A green test run is not a behavior spec. An agent patch can keep every existing assertion passing and still change encodings, error types, empty-input handling, or the bytes written to stdout. Shadow-compare the candidate against a frozen baseline on the same corpus. Merge only after every divergence is classified in an accepted-delta ledger. This article is a testing workflow, not a model…

A green test run does not represent a behavior specification. An agent patch may maintain all current assertions while modifying encodings, error types, empty input handling, or stdout bytes. Compare the candidate against a static baseline on the same dataset through shadow-comparison. Only merge after classifying every divergence into an accepted-delta ledger.

This document outlines a testing workflow, not a model benchmark. The accompanying harness is labeled as a tentative, executable pattern. It does not guarantee production speeds, model names, or pass rates. The green CI may overlook agent patches, as they optimize for visible tests. Hidden behavior exists in unnamed branches, such as trailing newlines, NaN keys, timezone-naive timestamps, and None versus empty lists.

These are easy to modify but difficult to detect post-merge. A dual-run gate uses the old artifact as the standard for unidentified behavior. Specified behavior should remain in regular tests. The ledger records both purposeful and rejected differences. Do not rely on this as a replacement for code review; instead, use it as a tool to minimize manual review.

The contract consists of three files: baseline (a locked copy, wheel, or container hash), candidate (the agent patch applied to the same reference), and delta_ledger.yaml (previous classified output differences, identified by fixture ID). The ideal layout includes shadow/ and corpus/ directories for deterministic fixtures only.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CleanGeek: a free Windows cleaner with no registry cleaner and no upsell

Hi DEV! I got tired of free PC cleaners that bundle a registry cleaner nobody needs, count up a scary number of "issues", and then dangle a paid version at the end. So I wrote the boring version.

  • CleanGeek is a free Windows cleaner without registry cleaner feature.
  • It focuses on clearing unnecessary files, not optimizing the PC.
  • Developer encourages feedback for missing obvious issues.

More from Saturday 5 September →