{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/algorithm.reason.validator.ts",
          "name": "isStagedProcess",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-reason-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.reason.validator.ts",
            "label": "core/validators/algorithm.reason.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.reason.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-reason-validator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "isKernelContract",
      "signature": "export const isKernelContract = function isKernelContract(contract: Contract): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/algorithm.reason.validator.ts",
          "name": "gatherReasonNative",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-reason-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.reason.validator.ts",
            "label": "core/validators/algorithm.reason.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.reason.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-reason-validator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "derivationMapDefectsOf",
      "signature": "export const derivationMapDefectsOf = function derivationMapDefectsOf("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/algorithm.strings.ts",
          "name": "derivationSelfMapped",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-algorithm-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/algorithm.strings.ts",
            "label": "configuration/strings/algorithm.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/algorithm.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-algorithm-strings-ts"
          }
        },
        {
          "file": "configuration/strings/algorithm.strings.ts",
          "name": "derivationUnknownRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-algorithm-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/algorithm.strings.ts",
            "label": "configuration/strings/algorithm.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/algorithm.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-algorithm-strings-ts"
          }
        },
        {
          "file": "configuration/strings/algorithm.strings.ts",
          "name": "derivationUnknownStage",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-algorithm-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/algorithm.strings.ts",
            "label": "configuration/strings/algorithm.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/algorithm.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-algorithm-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "entryDefect",
      "signature": "const entryDefect = function entryDefect(entry: DerivationMapEntry, check: MapCheck): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/algorithm.strings.ts",
          "name": "derivationUnstaged",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-algorithm-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/algorithm.strings.ts",
            "label": "configuration/strings/algorithm.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/algorithm.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-algorithm-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "derivationMapDefect",
      "signature": "const derivationMapDefect = function derivationMapDefect("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 9,
      "name": "DerivationFaces",
      "signature": "interface DerivationFaces {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 13,
      "name": "MapCheck",
      "signature": "interface MapCheck {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "MANDATORY_STAGES",
      "signature": "const MANDATORY_STAGES = [\"verify\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "map",
      "signature": "const map = contract.derivationMap ?? [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "check",
      "signature": "const check: MapCheck = { contractId: contract.id, faces, stages };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "first",
      "signature": "const first = map.map((entry) => entryDefect(entry, check)).find((defect) => defect !== null);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "covered",
      "signature": "const covered = new Set(map.map((entry) => entry.stage));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "missing",
      "signature": "const missing = MANDATORY_STAGES.filter((stage) => !covered.has(stage));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "defect",
      "signature": "const defect = derivationMapDefect(contract, stages, faces);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-derivation-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "algorithm.derivation.validator.ts",
  "path": "core/validators/algorithm.derivation.validator.ts",
  "ref": "anatomy:file-context-core-validators-algorithm-derivation-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-configuration-strings-algorithm-strings-ts",
          "json": "https://banes-lab.com/json/source/context/configuration/strings/algorithm.strings.ts",
          "label": "configuration/strings/algorithm.strings.ts",
          "markdown": "https://banes-lab.com/source/context/configuration/strings/algorithm.strings.ts.md",
          "ref": "anatomy:file-context-configuration-strings-algorithm-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-reason-validator-ts",
          "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.reason.validator.ts",
          "label": "core/validators/algorithm.reason.validator.ts",
          "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.reason.validator.ts.md",
          "ref": "anatomy:file-context-core-validators-algorithm-reason-validator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md",
          "ref": "chapter:/anatomy/context#folder-context-configuration-strings"
        },
        {
          "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": "algorithm",
    "variant": "derivation"
  },
  "stats": {
    "bytes": 2192,
    "callable": 4,
    "definitions": 13,
    "edges": 4,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 2,
      "isolated": 9
    },
    "lines": {
      "blank": 7,
      "code": 56,
      "total": 63
    }
  },
  "summary": "56 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/context/core/validators/algorithm.derivation.validator.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-reason-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.reason.validator.ts",
      "label": "core/validators/algorithm.reason.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.reason.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-algorithm-reason-validator-ts"
    },
    "previous": null
  },
  "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"
  }
}
