{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/agenda.rule.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-agenda-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/agenda.rule.ts",
            "label": "tools/rules/agenda.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/agenda.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-agenda-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "finding",
      "signature": "const finding = function finding(reading: ScheduleReading, line: number, held: string): Finding {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/agenda.rule.ts",
          "name": "finding",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-agenda-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/agenda.rule.ts",
            "label": "tools/rules/agenda.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/agenda.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-agenda-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 43,
      "name": "check",
      "signature": "check(context: RuleContext, fix: boolean): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "DECIDE",
      "signature": "const DECIDE ="
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "source",
      "signature": "const source = context.read(AGENDA);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "lines",
      "signature": "const lines = source.split(\"\\n\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "bounds",
      "signature": "const bounds = scheduleBounds(lines);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "readings",
      "signature": "const readings = readSchedule(context.repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "drifted",
      "signature": "const drifted = driftedRows(lines, readings);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "findings",
      "signature": "const findings: Finding[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "healed",
      "signature": "const healed: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 89,
      "name": "rendered",
      "signature": "const rendered = renderSchedule(readings);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "written",
      "signature": "const written = healSchedule(source, rendered);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 92,
      "name": "applied",
      "signature": "const applied = fix && written !== null && writeAgendaIfUnmoved(context.repoRoot, source, written);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "index",
      "signature": "const index = readings.indexOf(reading);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "at",
      "signature": "const at = bounds.from + 2 + index;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-agenda-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "agenda.rule.ts",
  "path": "tools/rules/agenda.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-agenda-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": "agenda",
    "variant": null
  },
  "stats": {
    "bytes": 6572,
    "callable": 2,
    "definitions": 16,
    "edges": 1,
    "exported": 14,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 14
    },
    "lines": {
      "blank": 12,
      "code": 130,
      "total": 142
    }
  },
  "summary": "130 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/agenda.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-binding-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/binding.rule.ts",
      "label": "tools/rules/binding.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/binding.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-binding-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-accumulator-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/accumulator.rule.ts",
      "label": "tools/rules/accumulator.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/accumulator.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-accumulator-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"
  }
}
