# configuration/constants/evidence.source.constants.ts

> 107 lines of code and 6 definitions.

Tree: Site tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/tree#file-configuration-constants-evidence-source-constants-ts
Source text: https://banes-lab.com/assets/sources/source.ce8f22cb60eeb7300d13c203d3825ea7b3a3c9ba60c852f6305bf802b1ff734d.generated.txt

## Definitions

- `record` (lexical_declaration, line 11)
- `chapter` (lexical_declaration, line 15)
- `definition` (lexical_declaration, line 19)
- `file` (lexical_declaration, line 23)
- `folder` (lexical_declaration, line 27)
- `EVIDENCE` (lexical_declaration, line 31, exported)

## Source

```typescript
import { ALGO_FACE, ARCH_FACE, FACE_SEPARATOR, LEX_FACE } from "@govlab/constants";
import { ARCHITECTURE_PAGE, METHODOLOGY_PAGE } from "#core/ids/page.ids";
import { BUILD_TAB, VERIFY_TAB } from "#core/ids/methodology.ids";
import { DEFINITION_SECTION_ID, DIRECTION_SECTION_ID, MODEL_TAB, SPINE_SECTION_ID } from "#core/ids/architecture.ids";
import { FILESYSTEM_SECTION_ID, HOME_SECTION_ID } from "#core/ids/invariant.ids";
import { DERIVED_SECTION_ID } from "#core/ids/derivation.ids";
import { DOCUMENTATION_SECTION_ID } from "#core/ids/coverage.ids";
import type { Evidence } from "#types/evidence.types";
import { TAXONOMY_SECTION_ID } from "#core/ids/taxonomy.ids";

const record = function record(face: string, id: string): Evidence["subject"] {
    return { kind: "record", ref: face + FACE_SEPARATOR + id };
};

const chapter = function chapter(page: string, tab: string, section: string): Evidence["subject"] {
    return { kind: "chapter", page, section, tab };
};

const definition = function definition(name: string, file: string | null = null): Evidence["nodes"][number] {
    return { file, kind: "definition", name };
};

const file = function file(name: string): Evidence["nodes"][number] {
    return { kind: "file", name };
};

const folder = function folder(...words: readonly string[]): Evidence["nodes"][number] {
    return { kind: "folder", words };
};

export const EVIDENCE: readonly Evidence[] = [
    {
        nodes: [
            definition("registerPage"),
            definition("createRegistry"),
            folder("presentation", "records"),
            file("records.barrel.ts"),
        ],
        subject: record(ARCH_FACE, "registry-pattern"),
    },
    {
        nodes: [folder("presentation", "records"), file("records.barrel.ts"), definition("registerPage")],
        subject: record(LEX_FACE, "self-registration"),
    },
    {
        nodes: [folder("configuration", "strings"), folder("core", "ids"), definition("tabLink")],
        subject: record(ARCH_FACE, "single-source-of-truth"),
    },
    {
        nodes: [
            definition("ANATOMY"),
            definition("ONTOLOGY"),
            definition("VOCABULARY"),
            folder("core", "assets"),
            definition("anatomyChapter"),
        ],
        subject: record(ARCH_FACE, "self-describing-architecture"),
    },
    {
        nodes: [definition("emitEvent"), definition("subscribeEvent"), folder("core", "buses")],
        subject: record(ARCH_FACE, "event-bus"),
    },
    {
        nodes: [
            definition("linkTabs"),
            definition("chapterVocabulary"),
            definition("joinGlossary"),
            definition("matchPhrases"),
            definition("linkText", "link.converter.ts"),
        ],
        subject: chapter(METHODOLOGY_PAGE, VERIFY_TAB, DERIVED_SECTION_ID),
    },
    {
        nodes: [folder("configuration", "constants"), folder("configuration", "icons")],
        subject: record(ARCH_FACE, "declarative-configuration"),
    },
    {
        nodes: [definition("importsDiagram"), folder("core"), folder("domain")],
        subject: record(ARCH_FACE, "dependency-inversion"),
    },
    {
        nodes: [folder("types"), definition("renderBlock")],
        subject: chapter(ARCHITECTURE_PAGE, MODEL_TAB, DEFINITION_SECTION_ID),
    },
    {
        nodes: [definition("treeTab"), definition("layersText")],
        subject: chapter(ARCHITECTURE_PAGE, MODEL_TAB, SPINE_SECTION_ID),
    },
    {
        nodes: [definition("treeTab"), definition("layersText")],
        subject: chapter(METHODOLOGY_PAGE, BUILD_TAB, TAXONOMY_SECTION_ID),
    },
    {
        nodes: [definition("importsDiagram"), folder("core"), folder("domain")],
        subject: chapter(ARCHITECTURE_PAGE, MODEL_TAB, DIRECTION_SECTION_ID),
    },
    {
        nodes: [definition("markDocumentReferences"), definition("documentBlocks")],
        subject: chapter(METHODOLOGY_PAGE, VERIFY_TAB, DOCUMENTATION_SECTION_ID),
    },
    {
        nodes: [definition("mountReference"), definition("anatomyReference"), definition("loadReferences")],
        subject: record(ALGO_FACE, "architecture-knowledge-graph"),
    },
    {
        nodes: [folder("configuration", "strings"), folder("core", "ids"), definition("tabLink")],
        subject: chapter(METHODOLOGY_PAGE, BUILD_TAB, HOME_SECTION_ID),
    },
    {
        nodes: [definition("registerPage"), folder("presentation", "records"), file("records.barrel.ts")],
        subject: chapter(METHODOLOGY_PAGE, BUILD_TAB, FILESYSTEM_SECTION_ID),
    },
];
```
