{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/canon.step.ts",
          "name": "isFidelity",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
            "json": "https://banes-lab.com/json/source/quality/core/steps/canon.step.ts",
            "label": "core/steps/canon.step.ts",
            "markdown": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.md",
            "ref": "anatomy:file-quality-core-steps-canon-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/steps/canon.step.ts",
          "name": "rowOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
            "json": "https://banes-lab.com/json/source/quality/core/steps/canon.step.ts",
            "label": "core/steps/canon.step.ts",
            "markdown": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.md",
            "ref": "anatomy:file-quality-core-steps-canon-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "normalizeFidelity",
      "signature": "const normalizeFidelity = function normalizeFidelity(value: string | null): Fidelity {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/canon.step.ts",
          "name": "normalizeFidelity",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
            "json": "https://banes-lab.com/json/source/quality/core/steps/canon.step.ts",
            "label": "core/steps/canon.step.ts",
            "markdown": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.md",
            "ref": "anatomy:file-quality-core-steps-canon-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "isFidelity",
      "signature": "const isFidelity = function isFidelity(value: string | null): value is Fidelity {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/canon.step.ts",
          "name": "settingOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
            "json": "https://banes-lab.com/json/source/quality/core/steps/canon.step.ts",
            "label": "core/steps/canon.step.ts",
            "markdown": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.md",
            "ref": "anatomy:file-quality-core-steps-canon-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "surfaceOf",
      "signature": "const surfaceOf = function surfaceOf(id: string, dimension: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/canon.step.ts",
          "name": "surfaceOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
            "json": "https://banes-lab.com/json/source/quality/core/steps/canon.step.ts",
            "label": "core/steps/canon.step.ts",
            "markdown": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.md",
            "ref": "anatomy:file-quality-core-steps-canon-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "settingOf",
      "signature": "const settingOf = function settingOf(id: string, concept: MappingConcept): CanonicalSettingRecord {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/steps/canon.step.ts",
          "name": "normalizeFidelity",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
            "json": "https://banes-lab.com/json/source/quality/core/steps/canon.step.ts",
            "label": "core/steps/canon.step.ts",
            "markdown": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.md",
            "ref": "anatomy:file-quality-core-steps-canon-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "rowOf",
      "signature": "const rowOf = function rowOf(id: string, entry: MappingEntry): MappingRow {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "SETTINGS_FILE",
      "signature": "const SETTINGS_FILE = \"canonical-settings.generated.json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "ROWS_FILE",
      "signature": "const ROWS_FILE = \"mapping-rows.generated.json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "TOKENS_FILE",
      "signature": "const TOKENS_FILE = \"emit-tokens.generated.json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "APPROX",
      "signature": "const APPROX = \"approx\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "FLOOR_FIDELITY",
      "signature": "const FLOOR_FIDELITY = \"advisory\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "mapping",
      "signature": "const mapping = mappingConcepts(state.catalog ?? [], state.concepts ?? [], loadKnobConcepts());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "owned",
      "signature": "const owned = [...mapping].filter(([id]) => !OWNED_BY_VALUE_SETTINGS.has(id));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "settings",
      "signature": "const settings = owned.map(([id, concept]) => settingOf(id, concept));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "rows",
      "signature": "const rows = owned.flatMap(([id, concept]) => concept.entries.map((entry) => rowOf(id, entry)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "tokens",
      "signature": "const tokens: EmitTokens = {};"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "perTool",
      "signature": "const perTool = tokens[entry.tool] ?? {};"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-canon-step-ts",
  "language": "typescript",
  "layer": "application",
  "name": "canon.step.ts",
  "path": "core/steps/canon.step.ts",
  "ref": "anatomy:file-quality-core-steps-canon-step-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-steps",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-steps.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-steps"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-steps",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-steps.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-steps"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "step",
    "subject": "canon",
    "variant": null
  },
  "stats": {
    "bytes": 3434,
    "callable": 5,
    "definitions": 16,
    "edges": 3,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 2,
      "entry": 2,
      "isolated": 11
    },
    "lines": {
      "blank": 7,
      "code": 79,
      "total": 86
    }
  },
  "summary": "79 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/quality/core/steps/canon.step.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-steps-catalog-step-ts",
      "json": "https://banes-lab.com/json/source/quality/core/steps/catalog.step.ts",
      "label": "core/steps/catalog.step.ts",
      "markdown": "https://banes-lab.com/source/quality/core/steps/catalog.step.ts.md",
      "ref": "anatomy:file-quality-core-steps-catalog-step-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/core/steps",
    "label": "core/steps",
    "markdown": "https://banes-lab.com/api/source/quality/core/steps.md",
    "ref": "api:source/quality/core/steps"
  }
}
