{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/strings/agenda.strings.ts",
          "name": "agendaRowAdded",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/agenda.strings.ts",
            "label": "tools/core/strings/agenda.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/agenda.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-agenda-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/agenda.strings.ts",
          "name": "invariantTaken",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/agenda.strings.ts",
            "label": "tools/core/strings/agenda.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/agenda.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-agenda-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/agenda.strings.ts",
          "name": "planContended",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/agenda.strings.ts",
            "label": "tools/core/strings/agenda.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/agenda.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-agenda-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/agenda.strings.ts",
          "name": "planFileMissing",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/agenda.strings.ts",
            "label": "tools/core/strings/agenda.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/agenda.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-agenda-strings-ts"
          }
        },
        {
          "file": "tools/core/strings/agenda.strings.ts",
          "name": "planTerminatorMissing",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/agenda.strings.ts",
            "label": "tools/core/strings/agenda.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/agenda.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-agenda-strings-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/coordinators/venue.coordinator.ts",
          "name": "agenda",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-coordinators-venue-coordinator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/coordinators/venue.coordinator.ts",
            "label": "tools/core/coordinators/venue.coordinator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/coordinators/venue.coordinator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-coordinators-venue-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 132,
      "name": "runAgendaRow",
      "signature": "export const runAgendaRow = function runAgendaRow(request: AgendaRequest): AgendaOutcome {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/resolvers/sweep.resolver.ts",
          "name": "openVenues",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-sweep-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/sweep.resolver.ts",
            "label": "tools/core/resolvers/sweep.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/sweep.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-sweep-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "liveVenues",
      "signature": "const liveVenues = function liveVenues(repoRoot: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "MARKED_FIELD",
      "signature": "const MARKED_FIELD = AWAITING_MARKER;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "PLAN_TERMINATOR",
      "signature": "const PLAN_TERMINATOR = \"]);\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 22,
      "name": "AgendaRequest",
      "signature": "interface AgendaRequest {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 30,
      "name": "AgendaOutcome",
      "signature": "interface AgendaOutcome {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "prefix",
      "signature": "const prefix = surfacePrefix();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "entries",
      "signature": "const entries = readdirSync(root, { withFileTypes: true })"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "archivedVenues",
      "signature": "const archivedVenues = function archivedVenues(repoRoot: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "root",
      "signature": "const root = resolve(repoRoot, surfacePath(\"venue_archive\"));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "hasMarkedLetter",
      "signature": "const hasMarkedLetter = function hasMarkedLetter(repoRoot: string, venue: string): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "absolute",
      "signature": "const absolute = resolve(repoRoot, venue);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "readSchedule",
      "signature": "export const readSchedule = function readSchedule(repoRoot: string): ScheduleReading[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "live",
      "signature": "const live = liveVenues(repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "archived",
      "signature": "const archived = archivedVenues(repoRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "onRoot",
      "signature": "const onRoot = live.find((venue) => venue.includes(plan.invariant));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "marked",
      "signature": "const marked = hasMarkedLetter(repoRoot, onRoot);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 92,
      "name": "inArchive",
      "signature": "const inArchive = archived.find((venue) => venue.includes(plan.invariant));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 105,
      "name": "planEntry",
      "signature": "const planEntry = function planEntry(request: AgendaRequest): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "fields",
      "signature": "const fields = ["
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 119,
      "name": "withPlanEntry",
      "signature": "const withPlanEntry = function withPlanEntry(lines: readonly string[], entry: string): string[] | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 120,
      "name": "at",
      "signature": "const at = lines.findLastIndex((line) => line.trimEnd().endsWith(PLAN_TERMINATOR));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 125,
      "name": "line",
      "signature": "const line = lines[at] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 126,
      "name": "cut",
      "signature": "const cut = line.lastIndexOf(PLAN_TERMINATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 127,
      "name": "head",
      "signature": "const head = line.slice(0, cut);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 128,
      "name": "closing",
      "signature": "const closing = head.trim().length === 0 ? [entry, line] : [head, entry, line.slice(cut)];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 137,
      "name": "before",
      "signature": "const before = readFileSync(request.plan, \"utf8\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 143,
      "name": "entered",
      "signature": "const entered = withPlanEntry(before.split(\"\\n\"), planEntry(request));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 148,
      "name": "written",
      "signature": "const written = entered.join(\"\\n\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 150,
      "name": "witness",
      "signature": "const witness = readFileSync(request.plan, \"utf8\");"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-runners-agenda-runner-ts",
  "language": "typescript",
  "layer": "product",
  "name": "agenda.runner.ts",
  "path": "tools/core/runners/agenda.runner.ts",
  "ref": "anatomy:file-coordination-tools-core-runners-agenda-runner-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-runners",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-runners",
          "label": "tools/core/runners",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-runners.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-runners"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-sweep-resolver-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/sweep.resolver.ts",
          "label": "tools/core/resolvers/sweep.resolver.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/sweep.resolver.ts.md",
          "ref": "anatomy:file-coordination-tools-core-resolvers-sweep-resolver-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-agenda-strings-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/agenda.strings.ts",
          "label": "tools/core/strings/agenda.strings.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/agenda.strings.ts.md",
          "ref": "anatomy:file-coordination-tools-core-strings-agenda-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-coordinators-venue-coordinator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/coordinators/venue.coordinator.ts",
          "label": "tools/core/coordinators/venue.coordinator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/coordinators/venue.coordinator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-coordinators-venue-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-coordinators",
          "label": "tools/core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-coordinators.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-coordinators"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-resolvers",
          "label": "tools/core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-resolvers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-resolvers"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-strings",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-strings",
          "label": "tools/core/strings",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-strings.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-strings"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "runner",
    "subject": "agenda",
    "variant": null
  },
  "stats": {
    "bytes": 5465,
    "callable": 7,
    "definitions": 30,
    "edges": 6,
    "exported": 11,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 1,
      "isolated": 28
    },
    "lines": {
      "blank": 31,
      "code": 127,
      "total": 158
    }
  },
  "summary": "127 lines of code and 30 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/runners/agenda.runner.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-runners-archive-runner-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/runners/archive.runner.ts",
      "label": "tools/core/runners/archive.runner.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/runners/archive.runner.ts.md",
      "ref": "anatomy:file-coordination-tools-core-runners-archive-runner-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/runners",
    "label": "tools/core/runners",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/runners.md",
    "ref": "api:source/coordination/tools/core/runners"
  }
}
