{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "runtime/entrypoints/manifest.entrypoint.ts",
          "name": "importManifest",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/manifest.entrypoint.ts",
            "label": "runtime/entrypoints/manifest.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-manifest-entrypoint-ts"
          }
        },
        {
          "file": "runtime/entrypoints/manifest.entrypoint.ts",
          "name": "recordField",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/manifest.entrypoint.ts",
            "label": "runtime/entrypoints/manifest.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-manifest-entrypoint-ts"
          }
        },
        {
          "file": "runtime/entrypoints/manifest.entrypoint.ts",
          "name": "stringField",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/manifest.entrypoint.ts",
            "label": "runtime/entrypoints/manifest.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-manifest-entrypoint-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "isRecord",
      "signature": "const isRecord = function isRecord(value: unknown): value is Record<string, unknown> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/entrypoints/manifest.entrypoint.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/manifest.entrypoint.ts",
            "label": "runtime/entrypoints/manifest.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-manifest-entrypoint-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "importManifest",
      "signature": "const importManifest = async function importManifest(absolute: string): Promise<Record<string, unknown>> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/entrypoints/manifest.entrypoint.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/manifest.entrypoint.ts",
            "label": "runtime/entrypoints/manifest.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-manifest-entrypoint-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "stringField",
      "signature": "const stringField = function stringField(value: unknown, key: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/entrypoints/manifest.entrypoint.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/manifest.entrypoint.ts",
            "label": "runtime/entrypoints/manifest.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.md",
            "ref": "anatomy:file-quality-runtime-entrypoints-manifest-entrypoint-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "recordField",
      "signature": "const recordField = function recordField(value: unknown, key: string): Record<string, unknown> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 10,
      "name": "Drift",
      "signature": "interface Drift {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "GOVERNED_MEMBER",
      "signature": "const GOVERNED_MEMBER = join(WORKSPACE_ROOT, relativePath(\"app.root\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "EXPORT_FORMS",
      "signature": "const EXPORT_FORMS = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "drift",
      "signature": "const drift: Drift[] = [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "record",
      "signature": "const record = function record(manifest: string, entry: string, reason: string): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "loaded",
      "signature": "const loaded: unknown = await import(pathToFileURL(absolute).href);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "stringArrayField",
      "signature": "const stringArrayField = function stringArrayField(value: unknown, key: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "declared",
      "signature": "const declared = isRecord(value) ? value[key] : undefined;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "allowlistModule",
      "signature": "const allowlistModule = await importManifest("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "stagedEntries",
      "signature": "const stagedEntries = Array.isArray(allowlistModule[\"STAGED_FUTURE_ALLOWLIST\"])"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "taxonomyModule",
      "signature": "const taxonomyModule = await importManifest(absolutePath(\"govlabHost.taxonomy\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "taxonomy",
      "signature": "const taxonomy = recordField(taxonomyModule, \"taxonomy\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "declaredContainers",
      "signature": "const declaredContainers = recordField(taxonomy, \"containers\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "declaredSpecial",
      "signature": "const declaredSpecial = recordField(taxonomy, \"specialContainers\");"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "allowlistDrift",
      "signature": "const allowlistDrift = function allowlistDrift(entry: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "sep",
      "signature": "const sep = entry.indexOf(\"::\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "path",
      "signature": "const path = sep === -1 ? entry : entry.slice(0, sep);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "name",
      "signature": "const name = entry.slice(sep + 2);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "text",
      "signature": "const text = readFileSync(join(GOVERNED_MEMBER, path), \"utf8\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "exported",
      "signature": "const exported = EXPORT_FORMS.some((form) => text.includes(`${form}${name}`)) || text.includes(`, ${name}`);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "entry",
      "signature": "const entry = stringField(staged, \"file\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "reason",
      "signature": "const reason = entry.length === 0 ? null : allowlistDrift(entry);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "containers",
      "signature": "const containers = stringArrayField(declaredContainers, root);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 96,
      "name": "special",
      "signature": "const special = stringArrayField(declaredSpecial, root);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-manifest-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "manifest.entrypoint.ts",
  "path": "runtime/entrypoints/manifest.entrypoint.ts",
  "ref": "anatomy:file-quality-runtime-entrypoints-manifest-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/ontology#architecture-manifest-based-design",
          "json": "https://banes-lab.com/json/records/architecture/manifest-based-design",
          "label": "Manifest-Based Design",
          "markdown": "https://banes-lab.com/records/architecture/manifest-based-design.md",
          "ref": "architecture:manifest-based-design"
        }
      ],
      "relation": "enforces"
    },
    {
      "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": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "manifest",
    "variant": null
  },
  "stats": {
    "bytes": 4213,
    "callable": 7,
    "definitions": 28,
    "edges": 3,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 3,
      "isolated": 24
    },
    "lines": {
      "blank": 17,
      "code": 96,
      "total": 113
    }
  },
  "summary": "96 lines of code and 28 definitions.",
  "text": "https://banes-lab.com/source/quality/runtime/entrypoints/manifest.entrypoint.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-rule-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/rule.entrypoint.ts",
      "label": "runtime/entrypoints/rule.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/rule.entrypoint.ts.md",
      "ref": "anatomy:file-quality-runtime-entrypoints-rule-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-invocation-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/invocation.entrypoint.ts",
      "label": "runtime/entrypoints/invocation.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/invocation.entrypoint.ts.md",
      "ref": "anatomy:file-quality-runtime-entrypoints-invocation-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"
  }
}
