---
title: "Rule 10.2: Extensions and capabilities in TypeShade"
description: "Rule 10.2 of the TypeShade language design, in Extensions and capabilities."
url: https://typeshade.dev/reference/rules/10-2/
language: en
---

# Rule 10.2

Chapter 10, Extensions and capabilities Test

The compiler must derive `requiredFeatures` from the module and must report them through `reflect()`, with every implied capability included. A feature that only a variant of a compute entry needs ([Rule 11.23](https://typeshade.dev/reference/rules/11-23/)) is not among them: the runtime requests it where the adapter has it, and never requires it.

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

## Rationale

a host activates features off `reflect()`, so the list must be the whole set and not the half the author named.

## Derives from

`requiredCaps` and `CAP_IMPLIES` in `src/core/passes/required-caps.ts`. Change `0119` (the variant’s feature).

## 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/backends/extension-profile.test.ts` and `required-caps.test.ts`; `requestCallDevice` in `src/core/host-entry.ts` (`SUBGROUPS`, requested as `timestamp-query` is), pinned by `src/runtime/device.test.ts`.

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

- [`src/core/backends/extension-profile.test.ts:1`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/extension-profile.test.ts#L1)
- [`src/core/host-entry.ts:390`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/host-entry.ts#L390)
- [`src/core/passes/required-caps.test.ts:1`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/required-caps.test.ts#L1)
- [`src/runtime/device.test.ts:1530`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/device.test.ts#L1530)

## See also

- [Rule 10.1](https://typeshade.dev/reference/rules/10-1/) Test
- [Rule 10.3](https://typeshade.dev/reference/rules/10-3/) Test
- [Rule 11.23](https://typeshade.dev/reference/rules/11-23/)
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

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