{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/record.parser.ts",
          "name": "jsonRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-record-parser-ts",
            "json": "https://banes-lab.com/json/source/quality/core/parsers/record.parser.ts",
            "label": "core/parsers/record.parser.ts",
            "markdown": "https://banes-lab.com/source/quality/core/parsers/record.parser.ts.md",
            "ref": "anatomy:file-quality-core-parsers-record-parser-ts"
          }
        },
        {
          "file": "core/selectors/record.selector.ts",
          "name": "recordsAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-selectors-record-selector-ts",
            "json": "https://banes-lab.com/json/source/quality/core/selectors/record.selector.ts",
            "label": "core/selectors/record.selector.ts",
            "markdown": "https://banes-lab.com/source/quality/core/selectors/record.selector.ts.md",
            "ref": "anatomy:file-quality-core-selectors-record-selector-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "runtime/entrypoints/canon.entrypoint.ts",
          "name": "loadRecords",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-canon-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/canon.entrypoint.ts",
            "label": "runtime/entrypoints/canon.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/canon.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-canon-entrypoint-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "recordsIn",
      "signature": "const recordsIn = function recordsIn(file: string, key: string): Record<string, unknown>[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/entrypoints/canon.entrypoint.ts",
          "name": "recordsIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-canon-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/canon.entrypoint.ts",
            "label": "runtime/entrypoints/canon.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/canon.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-canon-entrypoint-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "loadRecords",
      "signature": "const loadRecords = function loadRecords(dir: string): Record<string, unknown>[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "GENERATED_MARK",
      "signature": "const GENERATED_MARK = \".generated.\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "JSON_SUFFIX",
      "signature": "const JSON_SUFFIX = \".json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "EDGE_FIELDS",
      "signature": "const EDGE_FIELDS = [\"requires\", \"reinforces\", \"enables\", \"conflicts_with\", \"tensions_with\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "text",
      "signature": "const text = readFileSync(file, \"utf8\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "conceptIds",
      "signature": "const conceptIds = new Set("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "archRecords",
      "signature": "const archRecords = loadRecords(absolutePath(\"govlab.context.principles\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "algoRecords",
      "signature": "const algoRecords = loadRecords(absolutePath(\"govlab.context.algorithms\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "registered",
      "signature": "const registered = new Set(["
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "edgeRenames",
      "signature": "const edgeRenames = function edgeRenames(record: Record<string, unknown>): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "canonical",
      "signature": "const canonical = canonicalizeId(value);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "defects",
      "signature": "const defects: CanonDefects = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "{ id, name, type }",
      "signature": "const { id, name, type } = record;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "canonId",
      "signature": "const canonId = typeof name === \"string\" ? canonicalizeId(name) : null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "{ id }",
      "signature": "const { id } = record;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 92,
      "name": "total",
      "signature": "const total = defects.archType.length + defects.archId.length + defects.algoId.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "strict",
      "signature": "const strict = hasFlag(resolveArgv(CANON_ARGV), FLAGS.strict);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-canon-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "canon.entrypoint.ts",
  "path": "runtime/entrypoints/canon.entrypoint.ts",
  "ref": "anatomy:file-quality-runtime-entrypoints-canon-entrypoint-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/quality#folder-quality-runtime-entrypoints"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-parsers-record-parser-ts",
          "json": "https://banes-lab.com/json/source/quality/core/parsers/record.parser.ts",
          "label": "core/parsers/record.parser.ts",
          "markdown": "https://banes-lab.com/source/quality/core/parsers/record.parser.ts.md",
          "ref": "anatomy:file-quality-core-parsers-record-parser-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-selectors-record-selector-ts",
          "json": "https://banes-lab.com/json/source/quality/core/selectors/record.selector.ts",
          "label": "core/selectors/record.selector.ts",
          "markdown": "https://banes-lab.com/source/quality/core/selectors/record.selector.ts.md",
          "ref": "anatomy:file-quality-core-selectors-record-selector-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-canonical-model",
          "json": "https://banes-lab.com/json/records/architecture/canonical-model",
          "label": "Canonical Model",
          "markdown": "https://banes-lab.com/records/architecture/canonical-model.md",
          "ref": "architecture:canonical-model"
        }
      ],
      "relation": "enforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-parsers",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-parsers",
          "label": "core/parsers",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-parsers.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-parsers"
        },
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-selectors.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-selectors"
        },
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/quality#folder-quality-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "canon",
    "variant": null
  },
  "stats": {
    "bytes": 4149,
    "callable": 3,
    "definitions": 18,
    "edges": 3,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 1,
      "isolated": 16
    },
    "lines": {
      "blank": 11,
      "code": 89,
      "total": 100
    }
  },
  "summary": "89 lines of code and 18 definitions.",
  "text": "https://banes-lab.com/source/quality/runtime/entrypoints/canon.entrypoint.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-catalog-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/catalog.entrypoint.ts",
      "label": "runtime/entrypoints/catalog.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/catalog.entrypoint.ts.md",
      "ref": "anatomy:file-quality-runtime-entrypoints-catalog-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-binding-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/binding.entrypoint.ts",
      "label": "runtime/entrypoints/binding.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/binding.entrypoint.ts.md",
      "ref": "anatomy:file-quality-runtime-entrypoints-binding-entrypoint-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/runtime/entrypoints",
    "label": "runtime/entrypoints",
    "markdown": "https://banes-lab.com/api/source/quality/runtime/entrypoints.md",
    "ref": "api:source/quality/runtime/entrypoints"
  }
}
