{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        },
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        },
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 107,
      "name": "pathsOn",
      "signature": "const pathsOn = (route: SlotRoute): string[] =>"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "slotOutcome",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "namingFinding",
      "signature": "const namingFinding = function namingFinding("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "pathsOn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        },
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "pathsOn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        },
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "pathsOn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 105,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/slot.rule.ts",
          "name": "namingFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/slot.rule.ts",
            "label": "tools/rules/slot.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-slot-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "slotOutcome",
      "signature": "const slotOutcome = function slotOutcome(path: string, data: TaxonomyData): SlotOutcome {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "remediate",
      "signature": "const remediate = function remediate("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "expected",
      "signature": "const expected = data.folderToTag[parentFolder];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "{ parsed }",
      "signature": "const { parsed } = parseFilename(name, data);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "variant",
      "signature": "const variant = parsed.variant === null ? \"\" : `${parsed.variant}.`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "decideBy",
      "signature": "const decideBy: Record<string, string> = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 52,
      "name": "SlotRoute",
      "signature": "type SlotRoute = \"outside\" | \"reached\" | \"unplaceable\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 54,
      "name": "SlotOutcome",
      "signature": "interface SlotOutcome {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "name",
      "signature": "const name = basename(path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "verdict",
      "signature": "const verdict = checkNaming(name, parentFolder, data);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "remediation",
      "signature": "const remediation = remediate(verdict.code ?? \"\", path, name, parentFolder, data);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "governed",
      "signature": "const governed = governedPath(path, data);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 96,
      "name": "placement",
      "signature": "const placement = checkPlacement(governed.root, governed.segments, data);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 104,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "outcomes",
      "signature": "const outcomes = context.paths.map((path) => slotOutcome(path, context.taxonomy));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-slot-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "slot.rule.ts",
  "path": "tools/rules/slot.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-slot-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#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": "slot",
    "variant": null
  },
  "stats": {
    "bytes": 5081,
    "callable": 5,
    "definitions": 18,
    "edges": 4,
    "exported": 4,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 2,
      "isolated": 14
    },
    "lines": {
      "blank": 14,
      "code": 113,
      "total": 127
    }
  },
  "summary": "113 lines of code and 18 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/slot.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-surface-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/surface.rule.ts",
      "label": "tools/rules/surface.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/surface.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-surface-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-secret-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/secret.rule.ts",
      "label": "tools/rules/secret.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/secret.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-secret-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"
  }
}
