{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/strings/gate.strings.ts",
          "name": "contractContradicted",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-gate-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/gate.strings.ts",
            "label": "tools/core/strings/gate.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/gate.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-gate-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/gate.strings.ts",
          "name": "gateSummary",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-gate-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/gate.strings.ts",
            "label": "tools/core/strings/gate.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/gate.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-gate-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/gate.strings.ts",
          "name": "outcomeLine",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-gate-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/gate.strings.ts",
            "label": "tools/core/strings/gate.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/gate.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-gate-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/gate.strings.ts",
          "name": "unfixturedKind",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-gate-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/gate.strings.ts",
            "label": "tools/core/strings/gate.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/gate.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-gate-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "main",
      "signature": "const main = async function main(): Promise<void> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "REPO_ROOT",
      "signature": "const REPO_ROOT = projectRoot();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "REPORT",
      "signature": "const REPORT = \"gate.report.generated.json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "RESTATES",
      "signature": "export const RESTATES: readonly string[] = [\"gate_fires_before_it_is_trusted\", \"positive_control_precedes_trust\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "report",
      "signature": "const report = await runGates(REPO_ROOT);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "reached",
      "signature": "const reached = [...report.outcomes, ...report.branches].map((outcome) => outcome.rule);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "derivations",
      "signature": "const derivations = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "contradicted",
      "signature": "const contradicted = contradictedContracts(derivations);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "open",
      "signature": "const open = report.failed + report.untested + report.unfixturedKinds.length + report.branchesOpen;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "verdict",
      "signature": "const verdict = open > 0 ? \"FAIL\" : \"PASS\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "tally",
      "signature": "const tally = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-entrypoints-gate-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "gate.entrypoint.ts",
  "path": "tools/core/entrypoints/gate.entrypoint.ts",
  "ref": "anatomy:file-coordination-tools-core-entrypoints-gate-entrypoint-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-entrypoints",
          "label": "tools/core/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-entrypoints.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-entrypoints"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-gate-strings-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/gate.strings.ts",
          "label": "tools/core/strings/gate.strings.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/gate.strings.ts.md",
          "ref": "anatomy:file-coordination-tools-core-strings-gate-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-strings",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-strings",
          "label": "tools/core/strings",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-strings.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-strings"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "gate",
    "variant": null
  },
  "stats": {
    "bytes": 3682,
    "callable": 1,
    "definitions": 11,
    "edges": 4,
    "exported": 1,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 13,
      "code": 69,
      "total": 82
    }
  },
  "summary": "69 lines of code and 11 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/entrypoints/gate.entrypoint.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-entrypoints-pipeline-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/entrypoints/pipeline.entrypoint.ts",
      "label": "tools/core/entrypoints/pipeline.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/entrypoints/pipeline.entrypoint.ts.md",
      "ref": "anatomy:file-coordination-tools-core-entrypoints-pipeline-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-entrypoints-document-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/entrypoints/document.entrypoint.ts",
      "label": "tools/core/entrypoints/document.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/entrypoints/document.entrypoint.ts.md",
      "ref": "anatomy:file-coordination-tools-core-entrypoints-document-entrypoint-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/entrypoints",
    "label": "tools/core/entrypoints",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/entrypoints.md",
    "ref": "api:source/coordination/tools/core/entrypoints"
  }
}
