{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/coverage.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-coverage-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/coverage.rule.ts",
            "label": "tools/rules/coverage.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/coverage.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-coverage-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "principleWalkOf",
      "signature": "const principleWalkOf = function principleWalkOf(context: RuleContext, digests: readonly string[]): object {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/coverage.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-coverage-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/coverage.rule.ts",
            "label": "tools/rules/coverage.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/coverage.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-coverage-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "countByGate",
      "signature": "const countByGate = function countByGate(gates: readonly string[]): Record<string, number> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/coverage.rule.ts",
          "name": "countByGate",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-coverage-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/coverage.rule.ts",
            "label": "tools/rules/coverage.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/coverage.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-coverage-rule-ts"
          }
        },
        {
          "file": "tools/rules/coverage.rule.ts",
          "name": "principleWalkOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-coverage-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/coverage.rule.ts",
            "label": "tools/rules/coverage.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/coverage.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-coverage-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 55,
      "name": "check",
      "signature": "check(context: RuleContext, fix: boolean): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "walk",
      "signature": "const walk = walkPrinciples("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "listed",
      "signature": "const listed = function listed(entry: Declaration): { slug: string; axis: string; locked: boolean } {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "byGate",
      "signature": "const byGate: Record<string, number> = {};"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "digests",
      "signature": "const digests = context.paths.filter((path) => path.startsWith(DIGEST_ROOT));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "registered",
      "signature": "const registered = new Set(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "registry",
      "signature": "const registry = context.paths.includes(ROSTER) ? context.read(ROSTER) : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "entries",
      "signature": "const entries: Declaration[] = AXIS_DOCUMENTS.filter((path) => context.paths.includes(path)).flatMap((path) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "outcomes",
      "signature": "const outcomes = entries.map((entry) => ({ entry, ...declarationOutcome(entry, registry, registered) }));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "routed",
      "signature": "const routed = (route: DeclarationRoute): Declaration[] =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "gated",
      "signature": "const gated = routed(\"gated\").map(({ declared, path }) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "ungated",
      "signature": "const ungated = routed(\"ungated\").map(listed);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "conduct",
      "signature": "const conduct = routed(\"conduct\").map(listed);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "conditional",
      "signature": "const conditional = outcomes.flatMap(({ conditional: needed, entry }) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "halves",
      "signature": "const halves = checkableHalves(registry, registered);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "unbuilt",
      "signature": "const unbuilt = halves.filter((half) => half.gate === UNBUILT_HALF);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "slugs",
      "signature": "const slugs = new Set(entries.map((entry) => entry.declared.slug));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "digestResult",
      "signature": "const digestResult = inspectDigests(context.repoRoot, digests, slugs, fix);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "findings",
      "signature": "const findings = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 96,
      "name": "lockedUngated",
      "signature": "const lockedUngated = ungated.filter((entry) => entry.locked);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-coverage-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "coverage.rule.ts",
  "path": "tools/rules/coverage.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-coverage-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": "coverage",
    "variant": null
  },
  "stats": {
    "bytes": 7246,
    "callable": 5,
    "definitions": 23,
    "edges": 2,
    "exported": 18,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 1,
      "isolated": 20
    },
    "lines": {
      "blank": 10,
      "code": 135,
      "total": 145
    }
  },
  "summary": "135 lines of code and 23 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/coverage.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-declaration-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/declaration.rule.ts",
      "label": "tools/rules/declaration.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/declaration.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-declaration-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-converge-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/converge.rule.ts",
      "label": "tools/rules/converge.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/converge.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-converge-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"
  }
}
