{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/validators/record.validator.ts",
          "name": "checkSchema",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-record-validator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/record.validator.ts",
            "label": "tools/core/validators/record.validator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/record.validator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-validators-record-validator-ts"
          }
        },
        {
          "file": "tools/core/validators/record.validator.ts",
          "name": "checkTension",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-record-validator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/record.validator.ts",
            "label": "tools/core/validators/record.validator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/record.validator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-validators-record-validator-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/rules/record.rule.ts",
          "name": "documentFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-record-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/record.rule.ts",
            "label": "tools/rules/record.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/record.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-record-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "typedFindings",
      "signature": "const typedFindings = function typedFindings(path: string, record: IntelRecord, document: RecordDocument): Finding[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/validators/record.validator.ts",
          "name": "recordFinding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-record-validator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/record.validator.ts",
            "label": "tools/core/validators/record.validator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/record.validator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-validators-record-validator-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/rules/record.rule.ts",
          "name": "documentFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-record-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/record.rule.ts",
            "label": "tools/rules/record.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/record.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-record-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "citationFindings",
      "signature": "const citationFindings = function citationFindings("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/record.rule.ts",
          "name": "citationFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-record-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/record.rule.ts",
            "label": "tools/rules/record.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/record.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-record-rule-ts"
          }
        },
        {
          "file": "tools/rules/record.rule.ts",
          "name": "typedFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-record-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/record.rule.ts",
            "label": "tools/rules/record.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/record.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-record-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "documentFindings",
      "signature": "const documentFindings = function documentFindings("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "CITATION_KEYS",
      "signature": "const CITATION_KEYS = [\"conflicts\", \"with\", \"compatible\", \"incompatible\", \"see\"] as const;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 9,
      "name": "RecordDocument",
      "signature": "type RecordDocument = ReturnType<typeof readRecordDocument>;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 11,
      "name": "IntelRecord",
      "signature": "type IntelRecord = RecordDocument[\"records\"][number];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "value",
      "signature": "const value = record.keys[key];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "cited",
      "signature": "const cited = value === undefined ? [] : citedIds(value);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "repeated",
      "signature": "const repeated = document.records.slice(0, index).some((earlier) => earlier.id === record.id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "duplicate",
      "signature": "const duplicate = repeated"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 67,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "paths",
      "signature": "const paths = context.paths.filter((path) => path.startsWith(INTEL_ROOT));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "parsed",
      "signature": "const parsed = paths.map((path) => ({ document: readRecordDocument(context.read(path)), path }));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "known",
      "signature": "const known = new Set(parsed.flatMap(({ document }) => document.records.map((record) => record.id)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "findings",
      "signature": "const findings = parsed.flatMap(({ document, path }) => documentFindings(path, document, known));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-record-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "record.rule.ts",
  "path": "tools/rules/record.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-record-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#file-coordination-tools-core-validators-record-validator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/record.validator.ts",
          "label": "tools/core/validators/record.validator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/record.validator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-validators-record-validator-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-validators",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-validators",
          "label": "tools/core/validators",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-validators.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-validators"
        },
        {
          "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": "record",
    "variant": null
  },
  "stats": {
    "bytes": 3927,
    "callable": 4,
    "definitions": 16,
    "edges": 5,
    "exported": 6,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "entry": 1,
      "isolated": 13
    },
    "lines": {
      "blank": 9,
      "code": 90,
      "total": 99
    }
  },
  "summary": "90 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/record.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "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"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-purity-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/purity.rule.ts",
      "label": "tools/rules/purity.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/purity.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-purity-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"
  }
}
