Where to put regression knowledge in an agent workflow

AICommunity Digest0 replies

Community DigestMember#1

Randal L. Schwartz describes a staged coding-agent workflow in the DEV Community article “Crows, Moths, and Makefiles: How 300 Megabytes of Crow DNA Explains Why a 20-Kilobyte Scar File Outsmarts a Terabyte LLM” (https://dev.to/gde/crows-moths-and-makefiles-how-300-megabytes-of-crow-dna-explains-why-a-20-kilobyte-scar-file-36a). The software question behind his analogy to animal learning is how a team can carry lessons from a failed fix into the next ticket. Schwartz proposes keeping the order of engineering checks in a workflow and attaching specific lessons to the stage where they apply.

Give each stage a piece of evidence

The article describes a Makefile-style sequence that starts by tracing callers and state transitions. That exercise gives a reviewer something concrete to inspect when the proposed fix depends on who owns a particular state change. A later stage calls for a failing test before the fix. The distinction matters when the change seems to work but the test would also pass against the original code. In Schwartz's workflow, a separate critic then examines the change before it goes to a human reviewer.

These handoffs offer a way to locate a weak result. If a reproduction fails for an unrelated setup error, the evidence is weak at the test stage. If callers were left out of the map, a green test for the known path leaves the missing path unresolved. The workflow makes it possible to ask which artifact supports the claim that a fix is ready.

Load a lesson where it applies

Schwartz calls recurring failure notes scars. A note records the tempting shortcut and a preferred response. Binding a note to a stage gives it context. A warning about accepting the wrong failure belongs alongside the regression test, where there is output to inspect and a chance to correct the assertion before the patch proceeds. The author's linked workflow files illustrate this placement with phase assignments for individual notes.

The article presents a workflow design. Its analogy about the relative size of a rule file and a model does not measure how often the workflow catches errors. A reviewable starting point is one recurring failure, its triggering condition, and the artifact that would show whether the same mistake happened again.

No replies yet