{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 31,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "writable",
      "signature": "const writable = toolWritable();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "declared",
      "signature": "const declared = Object.keys(config.surface);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "entrypoint",
      "signature": "const entrypoint = context.exists(WRITE_ENTRYPOINT) ? context.read(WRITE_ENTRYPOINT) : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "liveFlags",
      "signature": "const liveFlags = flagsIn(entrypoint);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "unassessed",
      "signature": "const unassessed = liveFlags.filter((flag) => ASSESSED_FORMS[flag] === undefined);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "undeclared",
      "signature": "const undeclared = PARTY_WRITTEN.filter((mandated) => !isDeclaredSlot(mandated.slot)).map("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "venueTemplate",
      "signature": "const venueTemplate = context.exists(VENUE_TEMPLATE) ? context.read(VENUE_TEMPLATE) : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "suffixMandated",
      "signature": "const suffixMandated = venueMandates(venueTemplate);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "routed",
      "signature": "const routed = [...slotMandates(), ...suffixMandates(context.paths, suffixMandated)].map((mandated) => ({"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "lociOn",
      "signature": "const lociOn = (route: MandateRoute): string[] =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "unwritableMandates",
      "signature": "const unwritableMandates = routed.filter((entry) => entry.route === \"unwritable\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "lowCost",
      "signature": "const lowCost = unwritableMandates.flatMap(({ locus, mandated }) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "written",
      "signature": "const written = regionsWith(\"write\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "removable",
      "signature": "const removable = regionsWith(\"remove\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "unretractable",
      "signature": "const unretractable = Object.keys(RETRACTABLE).filter("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "findings",
      "signature": "const findings = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "outOfScope",
      "signature": "const outOfScope = lociOn(\"outOfScope\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "reached",
      "signature": "const reached = lociOn(\"reached\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "unwritable",
      "signature": "const unwritable = lociOn(\"unwritable\");"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-surface-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "surface.rule.ts",
  "path": "tools/rules/surface.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-surface-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"
    }
  ],
  "slots": {
    "concern": "rule",
    "subject": "surface",
    "variant": null
  },
  "stats": {
    "bytes": 15709,
    "callable": 2,
    "definitions": 21,
    "edges": 0,
    "exported": 21,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 21
    },
    "lines": {
      "blank": 8,
      "code": 116,
      "total": 124
    }
  },
  "summary": "116 lines of code and 21 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/surface.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-template-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/template.rule.ts",
      "label": "tools/rules/template.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/template.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-template-rule-ts"
    },
    "previous": {
      "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"
    }
  },
  "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"
  }
}
