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

# Rule 11.6

Chapter 11, Targets and the oracle Test

The public API surface (`src/__api__/surface.md`) is generated and must not be edited by hand; an exported name or type may change only with a re-bake.

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

## Rationale

1.0 is a promise about that file.

## Derives from

`docs/roadmap.md` 0.8 item 24.

## 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/api-surface.test.ts`.

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

- [`src/api-surface.test.ts:63`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/api-surface.test.ts#L63)

## See also

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

## Source

The rule at commit af54ddad5:

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