{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/venue.rule.ts",
          "name": "scanVenue",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-venue-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/venue.rule.ts",
            "label": "tools/rules/venue.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/venue.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-venue-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "live",
      "signature": "const live = function live(found: readonly Declaration[]): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/venue.rule.ts",
          "name": "correctionsIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-venue-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/venue.rule.ts",
            "label": "tools/rules/venue.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/venue.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-venue-rule-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "read",
      "signature": "const read = (path: string): string => context.read(path);"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/validators/venue.validator.ts",
          "name": "selfCorrections",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-venue-validator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/venue.validator.ts",
            "label": "tools/core/validators/venue.validator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/venue.validator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-validators-venue-validator-ts"
          }
        },
        {
          "file": "tools/rules/venue.rule.ts",
          "name": "read",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-venue-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/venue.rule.ts",
            "label": "tools/rules/venue.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/venue.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-venue-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "correctionsIn",
      "signature": "const correctionsIn = function correctionsIn(paths: readonly string[], read: (path: string) => string): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/venue.rule.ts",
          "name": "live",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-venue-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/venue.rule.ts",
            "label": "tools/rules/venue.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/venue.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-venue-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "scanVenue",
      "signature": "const scanVenue = function scanVenue(path: string, source: string): VenueScan {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "SUCCESSOR_FIELD",
      "signature": "const SUCCESSOR_FIELD = \"SUCCESSOR:\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "PLACEHOLDER_OPEN",
      "signature": "const PLACEHOLDER_OPEN = \"<\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 12,
      "name": "Declaration",
      "signature": "interface Declaration {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "declarations",
      "signature": "const declarations = function declarations(venue: string): Declaration[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "fenced",
      "signature": "const fenced = fencedFlags(venue);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "lines",
      "signature": "const lines = venue.split(\"\\n\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "out",
      "signature": "const out: Declaration[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "index",
      "signature": "for (let index = 0; index < lines.length; index += 1) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "trimmed",
      "signature": "const trimmed = (lines[index] ?? \"\").trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "value",
      "signature": "const value = trimmed.slice(SUCCESSOR_FIELD.length).trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 40,
      "name": "VenueScan",
      "signature": "interface VenueScan {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "found",
      "signature": "const found = declarations(source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "[first]",
      "signature": "const [first] = found;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 67,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "venues",
      "signature": "const venues = context.paths.filter((path) => path.endsWith(BLOCKING_SUFFIX));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "corrections",
      "signature": "const corrections = correctionsIn("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "settled",
      "signature": "const settled = correctionsIn("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "scans",
      "signature": "const scans = venues.map((path) => scanVenue(path, context.read(path)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "reached",
      "signature": "const reached = scans.filter((scan) => scan.carries).map((scan) => scan.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "unopened",
      "signature": "const unopened = scans.filter((scan) => scan.unopened).map((scan) => scan.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "fencedOnly",
      "signature": "const fencedOnly = scans.flatMap((scan) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "findings",
      "signature": "const findings: Finding[] = fencedOnly.map((venue) => ({"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-venue-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "venue.rule.ts",
  "path": "tools/rules/venue.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-venue-rule-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-rules",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-rules",
          "label": "tools/rules",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-rules.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-rules"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-venue-validator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/venue.validator.ts",
          "label": "tools/core/validators/venue.validator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/venue.validator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-validators-venue-validator-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-validators",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-validators",
          "label": "tools/core/validators",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-validators.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-validators"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-rules",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-rules",
          "label": "tools/rules",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-rules.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-rules"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "rule",
    "subject": "venue",
    "variant": null
  },
  "stats": {
    "bytes": 9208,
    "callable": 6,
    "definitions": 27,
    "edges": 3,
    "exported": 11,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 2,
      "isolated": 23
    },
    "lines": {
      "blank": 18,
      "code": 141,
      "total": 159
    }
  },
  "summary": "141 lines of code and 27 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/venue.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-verdict-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/verdict.rule.ts",
      "label": "tools/rules/verdict.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/verdict.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-verdict-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-tense-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/tense.rule.ts",
      "label": "tools/rules/tense.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/tense.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-tense-rule-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/rules",
    "label": "tools/rules",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/rules.md",
    "ref": "api:source/coordination/tools/rules"
  }
}
