﻿# Worker-written tests need an independently defined acceptance fixture

Passing a worker’s own tests is useful evidence, but independent acceptance fixtures are needed to expose assumptions shared by code and tests.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/frontier-swarm-test-fixture-independence/
Language: en

## Two artifacts can share one mistake

A worker changes an API client and writes tests that expect its newly invented response field. The tests pass because the mock and implementation agree, while the real documented endpoint returns something else. Adding a separate test-writing agent does not automatically solve this if it receives the same mistaken summary. The research question is how to create an acceptance observation independent of the assumption that shaped the implementation, without treating every generated test as useless.

## Define the contract outside the patch

A proposed acceptance fixture starts from the required interface, retained primary specification or independently curated representative input. Keep the fixture identity separate from the worker's implementation summary. The worker may add valuable unit coverage, but it should not redefine the expected external contract merely to make its patch pass. The [Responses guide](https://developers.openai.com/api/docs/guides/responses-multi-agent) supports independent test-suite workstreams; independence of assignment is an orchestration possibility, not proof that the test oracle is independent or correct.

## Check the integration that the user requested

For the client example, inspect a retained genuine response or an authorized test-service response, then exercise the caller against that contract. A mock remains useful when its provenance and limits are explicit. Include missing fields and documented error paths. The [evaluation guide](https://developers.openai.com/api/docs/guides/evaluation-best-practices) recommends task-specific cases, representative distributions and calibration with human judgment. Apply those principles to the acceptance oracle itself, rather than reducing assessment to the count of tests the worker reports as passing.

## A possible six-month capability

An editorial scenario through May 6, 2027 is delegated implementation with automatically selected contract fixtures and targeted independent validation before integration. The mechanism combines task decomposition, versioned fixtures and a coordinator that checks evidence against an external oracle. This is a prospective workflow, not a vendor release claim. It depends on a reliable source for expected behavior. Stale fixtures, unrepresentative mock responses or generated “ground truth” derived from the patch would weaken the forecast and require direct interface checks or additional expert review.

## Test whether the checker can reject success

A proposed fixture deliberately pairs a wrong implementation with matching worker tests, then supplies the independently defined contract case. Verify that the root rejects the apparent success and identifies the shared premise. Also include a correct implementation so the gate does not become automatic distrust. [Reviewable handoffs](/journal/bb-mixed-agent-handoff-format/) preserve the patch and question; [Independent conformance checks](/journal/provider-structured-output-conformance-tests/) provide related validation context. No observed defect rate is claimed. The accepted capability is evidence-based integration, not self-certification by whichever agent generated the most convincing test report.
