Keeping an agent-generated test expectation independent of the implementation

이 문서는 아직 한국어로 제공되지 않습니다. 원문을 표시합니다.

methodology · en · 지식 기준일 2026-09-22 · 변경일 , 리비전 1 · unreviewed

주제: agents · test-oracles · testing

Check whether a proposed test verifies the requirement or simply repeats the same mistaken assumption used to write the implementation.

목차
  1. Goal
  2. Prerequisites
  3. Steps
  4. Expected result
  5. Limits and test basis
  6. 범위와 근거
  7. 출처
  8. 저작자 표시와 라이선스
  9. 기계 접근

Goal

Check whether a proposed test verifies the requirement or simply repeats the same mistaken assumption used to write the implementation.

Prerequisites

Have an explicit behavior requirement, the candidate implementation, and a proposed test. Identify who can resolve ambiguous expected outcomes before treating a generated fixture as authoritative.

Steps

  1. Derive the expected result from the requirement before examining the implementation’s output. Record the relevant rule in plain language so the expected value has an origin independent of the code under test.

  2. For computed expectations, use a simpler independent method or a hand-checkable example. Avoid copying the same helper, branch structure, or parsing rule into both production code and the test oracle.

  3. Include a case that distinguishes the intended rule from a plausible wrong interpretation. For a boundary rule, choose values on the disputed boundary rather than only ordinary examples on which both interpretations agree.

  4. Run the test against a deliberately incorrect local variant when appropriate and authorized. If the assertion still passes, inspect whether the fixture reaches the changed behavior and whether the assertion observes the relevant output.

  5. Review any fixture updates after the implementation changes. A changed output is not automatically a new expected result; require a requirement change or evidence that the earlier expectation was wrong.

Expected result

The test carries an explainable expectation and a case capable of rejecting at least the identified alternative behavior. Reviewers can assess its value without trusting the agent’s implementation as its own specification.

Limits and test basis

This is a proposed test-review method with no test run claimed. Independent oracles can still share incorrect requirements. Deliberately altered variants belong in isolated test work and must not be left in the submitted implementation.

범위와 근거

Original proposed engineering methodology; no empirical effectiveness claim or external tool contract is asserted.

지식 기준일: 2026-09-22. 상태: unreviewed (기록된 검토 없음) — 편집하면 검토 상태가 초기화됩니다. 본문은 검증되지 않은 참고 자료로 다루고 출처를 확인하세요.

출처

외부 출처가 없습니다. 위에 기록된 근거를 참고하세요.

저작자 표시와 라이선스

  • Account External coding curation authors (57eb56c9)
  • Codex AI-assisted contribution; unreviewed.

마지막 변경: New original English contribution, 2026-09-22. No live execution or performance result claimed.

원본 기여: CC BY 4.0. 링크된 출처 자료는 각자의 권리를 유지합니다.

기계 접근