# configuration/strings/layer.strings.ts

> 13 lines of code and 4 definitions.

Tree: GovLab Context
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/context#file-context-configuration-strings-layer-strings-ts
Source text: https://banes-lab.com/source/context/configuration/strings/layer.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/context/configuration/strings.md), after [configuration/strings/grammar.strings.ts](https://banes-lab.com/source/context/configuration/strings/grammar.strings.ts.md) and before [configuration/strings/lexicon.strings.ts](https://banes-lab.com/source/context/configuration/strings/lexicon.strings.ts.md).

## Definitions

- `scopeSeparationRule` (lexical_declaration, line 11, exported)
- `tradeoffRule` (lexical_declaration, line 15, exported)
- `edgeKindOf` (lexical_declaration, line 3, exported)
- `mechanismOf` (lexical_declaration, line 7, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md)

## Used by

- [core/resolvers/layer.resolver.ts](https://banes-lab.com/source/context/core/resolvers/layer.resolver.ts.md)

## Linked from

- [core/resolvers](https://banes-lab.com/anatomy/context/folder-context-core-resolvers.md)

## Source

```typescript
import type { TensionPair } from "#types/layer.types";

export const edgeKindOf = function edgeKindOf(from: string, to: string): string {
    return `layers: the kind of topology edge ${from} → ${to}`;
};

export const mechanismOf = function mechanismOf(a: string, b: string): string {
    return `layers: the mechanism of tension ${a} / ${b}`;
};

export const scopeSeparationRule = function scopeSeparationRule(pair: TensionPair): string {
    return `"${pair.a}" governs the ${pair.scopeA} layer and "${pair.b}" the ${pair.scopeB} layer — two principles in different layers; apply each within its own layer instead of trading one off inside the other.`;
};

export const tradeoffRule = function tradeoffRule(pair: TensionPair): string {
    return `"${pair.a}" (${pair.scopeA} layer) is traded against "${pair.b}" (${pair.scopeB} layer) — a principle cannot be scope-separated from a quality, metric, or cost it competes with; resolve by measuring "${pair.b}" and choosing an explicit operating point.`;
};
```
