{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "basenameOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "breachFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        },
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "spentFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        },
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "undeclaredFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "checklistFinding",
      "signature": "const checklistFinding = function checklistFinding("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "checklistFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        },
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "undeclaredFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "basenameOf",
      "signature": "const basenameOf = function basenameOf(path: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "checklistFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "countScan",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "breachFinding",
      "signature": "const breachFinding = function breachFinding(path: string, breach: Breach): Finding {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "countScan",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "isSealed",
      "signature": "const isSealed = (breach: Breach): boolean => sealed[breach.line - 1] === true;"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "breachFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        },
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "isSealed",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "countScan",
      "signature": "const countScan = function countScan(path: string, source: string): CountScan {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "basenameOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        },
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "checklistFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "undeclaredFinding",
      "signature": "const undeclaredFinding = function undeclaredFinding(path: string): Finding {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/checklist.rule.ts",
          "name": "checklistFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/checklist.rule.ts",
            "label": "tools/rules/checklist.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-checklist-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 97,
      "name": "spentFinding",
      "signature": "const spentFinding = function spentFinding({ declares, line, path }: Distribution): Finding {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "slash",
      "signature": "const slash = path.lastIndexOf(\"/\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 53,
      "name": "Breach",
      "signature": "type Breach = ReturnType<typeof countBreaches>[number];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "SEALED_REASON",
      "signature": "const SEALED_REASON ="
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 66,
      "name": "CountScan",
      "signature": "interface CountScan {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "sealed",
      "signature": "const sealed = regionAdmitsRewrite(path, \"item\") ? [] : itemSpanFlags(source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "breaches",
      "signature": "const breaches = countBreaches(source.split(\"\\n\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 95,
      "name": "Distribution",
      "signature": "type Distribution = ReturnType<typeof declaredDistributions>[number];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 108,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 109,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "read",
      "signature": "const read = (target: string): string => context.read(target);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "contract",
      "signature": "const contract = contractOf(context.repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 112,
      "name": "active",
      "signature": "const active = activeSet(context.repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 113,
      "name": "fields",
      "signature": "const fields = rowMarkersOf(context.repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 115,
      "name": "authored",
      "signature": "const authored = authoredSurfaces(context.paths);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 116,
      "name": "planning",
      "signature": "const planning = planningSurfaces(context.paths);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 117,
      "name": "counts",
      "signature": "const counts = authored.map((path) => countScan(path, read(path)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 118,
      "name": "reports",
      "signature": "const reports = planning.map((path) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 123,
      "name": "live",
      "signature": "const live = activeVenues(context.paths);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "declaredSet",
      "signature": "const declaredSet = declaredDistributions(planning, read);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 125,
      "name": "declaring",
      "signature": "const declaring = new Set(declaredSet.map((entry) => entry.path));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 126,
      "name": "undeclared",
      "signature": "const undeclared = planning.filter("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 129,
      "name": "spentSet",
      "signature": "const spentSet = declaredSet.filter(({ declares }) => !live.some((venue) => venue.endsWith(declares)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 131,
      "name": "findings",
      "signature": "const findings = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 138,
      "name": "derivations",
      "signature": "const derivations: Record<string, unknown> = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-checklist-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "checklist.rule.ts",
  "path": "tools/rules/checklist.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-checklist-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": "checklist",
    "variant": null
  },
  "stats": {
    "bytes": 8514,
    "callable": 9,
    "definitions": 31,
    "edges": 7,
    "exported": 17,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 2,
      "entry": 3,
      "isolated": 24
    },
    "lines": {
      "blank": 18,
      "code": 176,
      "total": 194
    }
  },
  "summary": "176 lines of code and 31 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/checklist.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-claim-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/claim.rule.ts",
      "label": "tools/rules/claim.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/claim.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-claim-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-channel-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/channel.rule.ts",
      "label": "tools/rules/channel.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/channel.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-channel-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"
  }
}
