---
title: "Rule 1.3: Introduction, a TypeShade design rule"
description: "Rule 1.3 of the TypeShade language design, in Introduction. The CPU oracle is the reference evaluation of the meaning this document defines (Rule 1.1)…"
url: https://typeshade.dev/reference/rules/1-3/
language: en
---

# Rule 1.3

Chapter 1, Introduction Test

The CPU oracle is the reference evaluation of the meaning this document defines ([Rule 1.1](https://typeshade.dev/reference/rules/1-1/)): ECMAScript’s result for a form borrowed from ECMAScript, with the arithmetic of the WGSL types the program uses, WGSL’s result for a form borrowed from WGSL, the recorded result where a rule gives another, and, where WGSL leaves room (§11), one of the permitted answers.

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

## Rationale

a test that compares a GPU result with the oracle is only meaningful if the oracle is the specification’s answer and not a third opinion. The CPU tier of change 0080 already uses JavaScript’s own `Map` and `Set` as the oracle.

## Derives from

`changes/0100-typescript-meaning.md` (section 2); [Floating Point Evaluation](https://gpuweb.github.io/gpuweb/wgsl/#floating-point-evaluation) and `AGENTS.md` (“one IR, three backends”).

## 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:

`src/core/oracle-backend-parity.test.ts` and `src/core/passes/determinism.test.ts`.

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

- [`src/core/oracle-backend-parity.test.ts:1`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/oracle-backend-parity.test.ts#L1)
- [`src/core/passes/determinism.test.ts:10`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/determinism.test.ts#L10)

## Explained in

The sections of the surface document that explain this rule, at commit af54ddad5:

- [§13 Integer literals](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#13-integer-literals)

## See also

- [Rule 1.2](https://typeshade.dev/reference/rules/1-2/) Code only
- [Rule 1.4](https://typeshade.dev/reference/rules/1-4/) Test
- [Rule 1.1](https://typeshade.dev/reference/rules/1-1/)
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

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