---
title: "Rule 11.4: Targets and the oracle, a TypeShade design rule"
description: "Rule 11.4 of the TypeShade language design, in Targets and the oracle."
url: https://typeshade.dev/reference/rules/11-4/
language: en
---

# Rule 11.4

Chapter 11, Targets and the oracle Test

An emit golden is a reviewed artifact: a change to `examples/__emit-goldens__/` must be read as a diff and must not be re-baked as a rubber stamp.

The rule text and the parts under it are the compiler's own English, as the design document writes them.

## Rationale

a byte-identical change is what the goldens gate, and a semantic change must also pass the oracle parity gate and the compile gate.

## Derives from

`AGENTS.md` (“emit changes come in two kinds”).

## How it is verified

Checked by a test. A test, a gate script or a CI workflow names this rule, and the traceability check fails when a file listed below stops naming it.

Where the rule says the compiler enforces it:

`examples/emit-goldens.test.ts` and `examples/shade-examples.test.ts`; the review is a person’s.

The files that verify it at commit af54ddad5, each at the first line that names the rule:

- [`examples/emit-goldens.test.ts:20`](https://github.com/typeshade/typeshade/blob/af54ddad5/examples/emit-goldens.test.ts#L20)
- [`examples/shade-examples.test.ts:28`](https://github.com/typeshade/typeshade/blob/af54ddad5/examples/shade-examples.test.ts#L28)

## See also

- [Rule 11.3](https://typeshade.dev/reference/rules/11-3/) Test
- [Rule 11.5](https://typeshade.dev/reference/rules/11-5/) Code only
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

- [`docs/language-design.md:1464`](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/language-design.md#L1464) (the design document)
- [`reqs/rules/RULE-1104.md`](https://github.com/typeshade/typeshade/blob/af54ddad5/reqs/rules/RULE-1104.md) (its traceability item)
