# configuration/strings/algorithm.strings.ts

> 19 lines of code and 6 definitions.

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

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

## Definitions

- `derivationUnknownStage` (lexical_declaration, line 7, exported)
- `derivationSelfMapped` (lexical_declaration, line 11, exported)
- `derivationUnknownRecord` (lexical_declaration, line 15, exported)
- `derivationUnstaged` (lexical_declaration, line 19, exported)
- `tierOf` (lexical_declaration, line 3, exported)
- `unknownClosureId` (lexical_declaration, line 23, exported)

## Contained in

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

## Used by

- [core/validators/algorithm.derivation.validator.ts](https://banes-lab.com/source/context/core/validators/algorithm.derivation.validator.ts.md)

## Linked from

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

## Source

```typescript
import { ALGORITHM_LABEL } from "#configuration/constants/ontology.constants";

export const tierOf = function tierOf(domain: string): string {
    return `algo: the tier of domain "${domain}"`;
};

export const derivationUnknownStage = function derivationUnknownStage(stage: string): string {
    return `derivationMap stage "${stage}" is not a derivation-loop stage`;
};

export const derivationSelfMapped = function derivationSelfMapped(stage: string): string {
    return `derivationMap stage "${stage}" maps to the contract itself (no distinct realizer)`;
};

export const derivationUnknownRecord = function derivationUnknownRecord(record: string): string {
    return `derivationMap record "${record}" resolves to no algo contract`;
};

export const derivationUnstaged = function derivationUnstaged(missing: readonly string[]): string {
    return `derivationMap omits mandatory-always stage(s): ${missing.join(", ")}`;
};

export const unknownClosureId = function unknownClosureId(id: string): string {
    return `${ALGORITHM_LABEL}: resolveClosure() got the unknown id "${id}"`;
};
```
