{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/role.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-role-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/role.rule.ts",
            "label": "tools/rules/role.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/role.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-role-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "finding",
      "signature": "const finding = function finding("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/role.rule.ts",
          "name": "finding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-role-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/role.rule.ts",
            "label": "tools/rules/role.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/role.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-role-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 34,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "scoped",
      "signature": "const scoped = underRoots(context.paths, [ROLE_ROOT]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "template",
      "signature": "const template = context.read(ROLE_TEMPLATE);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "letters",
      "signature": "const letters = activeSeatLetters(context.read(AGENT_INDEX));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "shapes",
      "signature": "const shapes = scoped.flatMap((path) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "coverage",
      "signature": "const coverage = checkRoleCoverage(letters, scoped, (kind, locus, actual, expected, decide) =>"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-role-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "role.rule.ts",
  "path": "tools/rules/role.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-role-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": "role",
    "variant": null
  },
  "stats": {
    "bytes": 3318,
    "callable": 2,
    "definitions": 8,
    "edges": 1,
    "exported": 7,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 6
    },
    "lines": {
      "blank": 8,
      "code": 70,
      "total": 78
    }
  },
  "summary": "70 lines of code and 8 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/role.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "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"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-reference-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/reference.rule.ts",
      "label": "tools/rules/reference.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/reference.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-reference-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"
  }
}
