{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/predicates/file.predicate.ts",
          "name": "isUnreadableJson",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-predicates-file-predicate-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/predicates/file.predicate.ts",
            "label": "tools/core/predicates/file.predicate.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/predicates/file.predicate.ts.md",
            "ref": "anatomy:file-coordination-tools-core-predicates-file-predicate-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/steps/gate.step.ts",
          "name": "outcomesFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/gate.step.ts",
            "label": "tools/core/steps/gate.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts"
          }
        },
        {
          "file": "tools/core/steps/gate.step.ts",
          "name": "unfixturedFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/gate.step.ts",
            "label": "tools/core/steps/gate.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "gateReportList",
      "signature": "const gateReportList = function gateReportList(repoRoot: string, key: string): unknown[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/steps/gate.step.ts",
          "name": "gateReportList",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/gate.step.ts",
            "label": "tools/core/steps/gate.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/steps/gate.step.ts",
          "name": "gateStage",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/gate.step.ts",
            "label": "tools/core/steps/gate.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "unfixturedFrom",
      "signature": "const unfixturedFrom = function unfixturedFrom(repoRoot: string): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "config/surface.config.ts",
          "name": "surfacePath",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-config-surface-config-ts",
            "json": "https://banes-lab.com/json/source/coordination/config/surface.config.ts",
            "label": "config/surface.config.ts",
            "markdown": "https://banes-lab.com/source/coordination/config/surface.config.ts.md",
            "ref": "anatomy:file-coordination-config-surface-config-ts"
          }
        },
        {
          "file": "config/surface.config.ts",
          "name": "surfacePath",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-config-surface-config-ts",
            "json": "https://banes-lab.com/json/source/coordination/config/surface.config.ts",
            "label": "config/surface.config.ts",
            "markdown": "https://banes-lab.com/source/coordination/config/surface.config.ts.md",
            "ref": "anatomy:file-coordination-config-surface-config-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "unfixturedFinding",
      "signature": "const unfixturedFinding = function unfixturedFinding(kind: string): Finding {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "config/surface.config.ts",
          "name": "surfacePath",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-config-surface-config-ts",
            "json": "https://banes-lab.com/json/source/coordination/config/surface.config.ts",
            "label": "config/surface.config.ts",
            "markdown": "https://banes-lab.com/source/coordination/config/surface.config.ts.md",
            "ref": "anatomy:file-coordination-config-surface-config-ts"
          }
        },
        {
          "file": "config/surface.config.ts",
          "name": "surfacePath",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-config-surface-config-ts",
            "json": "https://banes-lab.com/json/source/coordination/config/surface.config.ts",
            "label": "config/surface.config.ts",
            "markdown": "https://banes-lab.com/source/coordination/config/surface.config.ts.md",
            "ref": "anatomy:file-coordination-config-surface-config-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 103,
      "name": "gateFinding",
      "signature": "const gateFinding = function gateFinding(outcome: Outcome): Finding {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/reporters/rule.reporter.ts",
          "name": "writeRuleReport",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-reporters-rule-reporter-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/reporters/rule.reporter.ts",
            "label": "tools/core/reporters/rule.reporter.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/reporters/rule.reporter.ts.md",
            "ref": "anatomy:file-coordination-tools-core-reporters-rule-reporter-ts"
          }
        },
        {
          "file": "tools/core/steps/gate.step.ts",
          "name": "unfixturedFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/gate.step.ts",
            "label": "tools/core/steps/gate.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 129,
      "name": "gateStage",
      "signature": "export const gateStage = function gateStage(options: StepOptions): StepOutcome {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/steps/gate.step.ts",
          "name": "gateReportList",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/gate.step.ts",
            "label": "tools/core/steps/gate.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "outcomesFrom",
      "signature": "const outcomesFrom = function outcomesFrom(repoRoot: string): Outcome[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "COMMAND",
      "signature": "const COMMAND = \"npm\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "ARGS",
      "signature": "const ARGS = [\"run\", \"--silent\", \"gates\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "REPORT",
      "signature": "const REPORT = \"gate.report.generated.json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "INVARIANT",
      "signature": "const INVARIANT = \"every registered rule is proven to fire on a violation and to accept a clean input\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "DECIDE",
      "signature": "const DECIDE ="
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 28,
      "name": "Outcome",
      "signature": "interface Outcome {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "path",
      "signature": "const path = resolve(repoRoot, GENERATED_DIR, REPORT);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "parsed",
      "signature": "const parsed: unknown = JSON.parse(readFileSync(path, \"utf8\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "held",
      "signature": "const held = isObject(parsed) ? parsed[key] : null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "rule",
      "signature": "const rule = kind.slice(0, kind.indexOf(\"/\"));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "isOutcome",
      "signature": "const isOutcome = function isOutcome(value: unknown): value is Outcome {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "candidate",
      "signature": "const candidate = value as { rule?: unknown; state?: unknown; detail?: unknown };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 127,
      "name": "KINDS",
      "signature": "export const KINDS: readonly string[] = [\"gate/unfixturedKind\", \"gate/silent\", \"gate/noisy\", \"gate/untested\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 137,
      "name": "run",
      "signature": "const run = runTool(surfaceRoot(), \"gates\", COMMAND, INVARIANT, ARGS);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 139,
      "name": "outcomes",
      "signature": "const outcomes = outcomesFrom(options.repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 141,
      "name": "findings",
      "signature": "const findings ="
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-gate-step-ts",
  "language": "typescript",
  "layer": "application",
  "name": "gate.step.ts",
  "path": "tools/core/steps/gate.step.ts",
  "ref": "anatomy:file-coordination-tools-core-steps-gate-step-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-steps",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-steps",
          "label": "tools/core/steps",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-steps.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-steps"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-config-surface-config-ts",
          "json": "https://banes-lab.com/json/source/coordination/config/surface.config.ts",
          "label": "config/surface.config.ts",
          "markdown": "https://banes-lab.com/source/coordination/config/surface.config.ts.md",
          "ref": "anatomy:file-coordination-config-surface-config-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-predicates-file-predicate-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/predicates/file.predicate.ts",
          "label": "tools/core/predicates/file.predicate.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/predicates/file.predicate.ts.md",
          "ref": "anatomy:file-coordination-tools-core-predicates-file-predicate-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-reporters-rule-reporter-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/reporters/rule.reporter.ts",
          "label": "tools/core/reporters/rule.reporter.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/reporters/rule.reporter.ts.md",
          "ref": "anatomy:file-coordination-tools-core-reporters-rule-reporter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-config",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-config",
          "label": "config",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-config.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-config"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-predicates",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-predicates",
          "label": "tools/core/predicates",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-predicates.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-predicates"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-reporters",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-reporters",
          "label": "tools/core/reporters",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-reporters.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-reporters"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-steps",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-steps",
          "label": "tools/core/steps",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-steps.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-steps"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "step",
    "subject": "gate",
    "variant": null
  },
  "stats": {
    "bytes": 6890,
    "callable": 7,
    "definitions": 22,
    "edges": 9,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "entry": 4,
      "isolated": 16
    },
    "lines": {
      "blank": 23,
      "code": 167,
      "total": 190
    }
  },
  "summary": "167 lines of code and 22 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/steps/gate.step.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-quality-step-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/quality.step.ts",
      "label": "tools/core/steps/quality.step.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/quality.step.ts.md",
      "ref": "anatomy:file-coordination-tools-core-steps-quality-step-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/steps",
    "label": "tools/core/steps",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/steps.md",
    "ref": "api:source/coordination/tools/core/steps"
  }
}
