Urgent.News

What's breaking now, across thousands of outlets.

Tech

Order Is a Hidden Input: Permutation-Sweeping an Agent-Patched Test Suite

An agent patch can pass your entire suite in the default order and still be order-coupled. The green run proves the suite works in one sequence, not that the tests are independent. Before I trust a machine-written patch, I want to know which tests only pass because something ran before them. That is a different question from "did the patch's tests touch the changed lines" or "are the assertions…

Order is a hidden input when assessing agent-patched test suites. A patch might appear stable in the default order, but it can still be order-coupled. This matters more than whether the patch affected the changed code or if the assertions are strong enough. The suite should be viewed as a stateful program, as agent patches are adept at altering that state.

Common culprits include modules with caches, fixtures that modify shared data, imports with side effects, and monkeypatches not properly undone. The following process outlines how to uncover these issues and prioritize fixes.

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

Two Commits per Refactor: A Diff Gate That Keeps Pins Away From the Move

Most messy-repo refactors fail at review, not at runtime. The riskiest commit is the one that edits tests and production code together.

  • Script splitgate.py separates pins from moves in repository
  • Config file defines testglobs, codeglobs, and neutralglobs
  • Script exits with codes 0 (clean), 1 (mixed), 2 (unclassified), or 3 (git error)

Principles of Anchor Engineering

  • Anchor Engineering shifts focus to human judgment in AI-driven development
  • Anchors are high-level design decisions guiding AI code implementation
  • Shared "Anchor Book" ensures team alignment and reduces inefficiencies

48-Hour Field Notes: My Batch Job Trusted Local Disk, and a Restart Re-Bought Every Token

48-Hour Field Notes: My Batch Job Trusted Local Disk, and a Restart Re-Bought Every Token I had a batch job that walked a queue of documents, called a model for each one, and wrote a summary into an…

  • Batch job processed five documents serially in first six hours
  • Restart caused duplicate processing due to reliance on local disk
  • Receipts table and idemkey function solved repeated work issue

★ HomeView Thoughts and Observations

There’s a real “*Why do we need this?*” question here and I don’t think Apple’s video answers it, at all. You need to think you want it if you’re going to buy it.

  • Apple unveils HomeView, a home hub device
  • Product's name criticized as inconsistent with other Apple products
  • Practical concerns raised over cable and installation needs

More from Saturday 17 October →