---
title: "Rule 13.6: Change control, a TypeShade design rule"
description: "Rule 13.6 of the TypeShade language design, in Change control. A new author-facing name must be added only by its source…"
url: https://typeshade.dev/reference/rules/13-6/
language: en
---

# Rule 13.6

Chapter 13, Change control Test

A new author-facing name must be added only by its source: a WGSL name by citing the specification section that declares it, and an ECMAScript name by citing the section of ECMA-262, or the declaration of TypeScript’s standard library, that defines it. A TypeShade extension, including a new type of the `f64` family, must be added by [Rule 9.7](https://typeshade.dev/reference/rules/9-7/), with the rationale in §9 and, for the `f64` family, in [Rule 4.4](https://typeshade.dev/reference/rules/4-4/).

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

## Rationale

see [Rule 2.1](https://typeshade.dev/reference/rules/2-1/).

## Derives from

the comment above `TYPESHADE_EXTENSIONS` in `surface-names.test.ts`, which names §9 and this section; `changes/0100-typescript-meaning.md` (section 2) for the ECMAScript citation.

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

`surface-names.test.ts`, which accepts an ECMAScript name from `Math`, `console`, `Array.prototype`, `Map` and `Set`; the test is narrower than the rule and grows with each unit of `docs/typeshade-plan.md` that adds a name.

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

- [`src/core/spec-conformance/surface-names.test.ts:52`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/spec-conformance/surface-names.test.ts#L52)

## See also

- [Rule 13.5](https://typeshade.dev/reference/rules/13-5/) Review
- [Rule 13.7](https://typeshade.dev/reference/rules/13-7/) Test
- [Rule 2.1](https://typeshade.dev/reference/rules/2-1/)
- [Rule 4.4](https://typeshade.dev/reference/rules/4-4/)
- [Rule 9.7](https://typeshade.dev/reference/rules/9-7/)
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

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