{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/reason.validator.ts",
          "name": "conceptDangling",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-reason-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/reason.validator.ts",
            "label": "core/validators/reason.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/reason.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-reason-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "resolves",
      "signature": "const resolves = (node: ReasonNode): boolean => {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/reason.validator.ts",
          "name": "answerShapeMismatches",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-reason-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/reason.validator.ts",
            "label": "core/validators/reason.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/reason.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-reason-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "shapesOf",
      "signature": "const shapesOf = function shapesOf(yieldsShape: string): Set<string> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/factories/reason.factory.ts",
          "name": "reasonPort",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-factories-reason-factory-ts",
            "json": "https://banes-lab.com/json/source/context/core/factories/reason.factory.ts",
            "label": "core/factories/reason.factory.ts",
            "markdown": "https://banes-lab.com/source/context/core/factories/reason.factory.ts.md",
            "ref": "anatomy:file-context-core-factories-reason-factory-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 146,
      "name": "validateReason",
      "signature": "export const validateReason = function validateReason(data: ReasonData): ReasonOntologyIssues {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/field.validator.ts",
          "name": "danglingFields",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-field-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/field.validator.ts",
            "label": "core/validators/field.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/field.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-field-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "danglingFieldsOf",
      "signature": "const danglingFieldsOf = function danglingFieldsOf(data: ReasonData): Issues[\"danglingFields\"] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/field.validator.ts",
          "name": "emptyFields",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-field-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/field.validator.ts",
            "label": "core/validators/field.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/field.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-field-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "emptyFieldsIn",
      "signature": "const emptyFieldsIn = function emptyFieldsIn(data: ReasonData): Issues[\"emptyFields\"] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/reason.validator.ts",
          "name": "resolves",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-reason-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/reason.validator.ts",
            "label": "core/validators/reason.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/reason.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-reason-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "conceptDangling",
      "signature": "const conceptDangling = function conceptDangling(data: ReasonData): Issues[\"danglingConcepts\"] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/reason.validator.ts",
          "name": "shapesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-reason-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/reason.validator.ts",
            "label": "core/validators/reason.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/reason.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-reason-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 120,
      "name": "answerShapeMismatches",
      "signature": "const answerShapeMismatches = function answerShapeMismatches(data: ReasonData): Issues[\"answerShapeMismatches\"] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 15,
      "name": "Issues",
      "signature": "type Issues = Omit<ReasonOntologyIssues, \"total\">;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "TARGET_PREFIX",
      "signature": "const TARGET_PREFIX = `${REASON_COLLECTION}:`;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "byName",
      "signature": "const byName = function byName(a: string, b: string): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "idSet",
      "signature": "const idSet = function idSet(records: readonly { id: string }[]): Set<string> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "duplicateIdsOf",
      "signature": "const duplicateIdsOf = function duplicateIdsOf(data: ReasonData): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "seen",
      "signature": "const seen = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "duplicate",
      "signature": "const duplicate = seen.has(record.id);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "membersOf",
      "signature": "const membersOf = (target: string): ReadonlySet<string> | undefined =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "schema",
      "signature": "const schema = REASON_SCHEMA.get(kind);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "concepts",
      "signature": "const concepts = new Map<string, Set<string>>(["
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "transitionDangling",
      "signature": "const transitionDangling = function transitionDangling("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 89,
      "name": "edgeSourceDangling",
      "signature": "const edgeSourceDangling = function edgeSourceDangling("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 100,
      "name": "collidingSurfaceCells",
      "signature": "const collidingSurfaceCells = function collidingSurfaceCells(data: ReasonData): Issues[\"collidingSurfaceCells\"] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 101,
      "name": "byCell",
      "signature": "const byCell = new Map<string, string[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 103,
      "name": "cell",
      "signature": "const cell = `${surface.dimension}${CELL_SEPARATOR}${surface.lens}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 121,
      "name": "yields",
      "signature": "const yields = new Map(data.mathTypes.map((mathType) => [mathType.id, mathType.yieldsShape]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 123,
      "name": "allowed",
      "signature": "const allowed = yields.get(node.mathType) ?? \"\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 130,
      "name": "unresolvedModelSteps",
      "signature": "const unresolvedModelSteps = function unresolvedModelSteps(data: ReasonData): Issues[\"unresolvedModelSteps\"] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 131,
      "name": "members",
      "signature": "const members = kindMembersOf(data);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 136,
      "name": "kind",
      "signature": "const kind = members.get(model.stepKind);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 147,
      "name": "nodeIds",
      "signature": "const nodeIds = idSet(data.nodes);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 148,
      "name": "stageIds",
      "signature": "const stageIds = new Set(data.derivationLoop.stages.map((stage) => stage.id));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 149,
      "name": "parts",
      "signature": "const parts: Issues = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-reason-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "reason.validator.ts",
  "path": "core/validators/reason.validator.ts",
  "ref": "anatomy:file-context-core-validators-reason-validator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-field-validator-ts",
          "json": "https://banes-lab.com/json/source/context/core/validators/field.validator.ts",
          "label": "core/validators/field.validator.ts",
          "markdown": "https://banes-lab.com/source/context/core/validators/field.validator.ts.md",
          "ref": "anatomy:file-context-core-validators-field-validator-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-factories-reason-factory-ts",
          "json": "https://banes-lab.com/json/source/context/core/factories/reason.factory.ts",
          "label": "core/factories/reason.factory.ts",
          "markdown": "https://banes-lab.com/source/context/core/factories/reason.factory.ts.md",
          "ref": "anatomy:file-context-core-factories-reason-factory-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-factories",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-factories.md",
          "ref": "chapter:/anatomy/context#folder-context-core-factories"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "validator",
    "subject": "reason",
    "variant": null
  },
  "stats": {
    "bytes": 6844,
    "callable": 15,
    "definitions": 30,
    "edges": 4,
    "exported": 4,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "entry": 4,
      "isolated": 23
    },
    "lines": {
      "blank": 15,
      "code": 146,
      "total": 161
    }
  },
  "summary": "146 lines of code and 30 definitions.",
  "text": "https://banes-lab.com/source/context/core/validators/reason.validator.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-record-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/record.validator.ts",
      "label": "core/validators/record.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/record.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-record-validator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-reason-reference-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/reason.reference.validator.ts",
      "label": "core/validators/reason.reference.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/reason.reference.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-reason-reference-validator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/validators",
    "label": "core/validators",
    "markdown": "https://banes-lab.com/api/source/context/core/validators.md",
    "ref": "api:source/context/core/validators"
  }
}
