{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "isDigit",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "anchoredId",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        },
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "idsIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "idAt",
      "signature": "const idAt = function idAt(text: string, at: number): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "idAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "idsIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "anchoredId",
      "signature": "const anchoredId = function anchoredId(line: string): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "idAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "isDigit",
      "signature": "const isDigit = function isDigit(char: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "idsIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "occurrences",
      "signature": "const occurrences = function occurrences(text: string): number[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "anchoredId",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        },
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "idAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        },
        {
          "file": "tools/core/readers/architecture.reader.ts",
          "name": "occurrences",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/architecture.reader.ts",
            "label": "tools/core/readers/architecture.reader.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.md",
            "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "idsIn",
      "signature": "const idsIn = function idsIn(source: string, anchored: boolean): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 3,
      "name": "RECORD_ANCHOR",
      "signature": "const RECORD_ANCHOR = \"### \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "PREFIX",
      "signature": "const PREFIX = \"ARC-\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "from",
      "signature": "const from = at + PREFIX.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "cursor",
      "signature": "let cursor = from;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "out",
      "signature": "const out: number[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "at",
      "signature": "let at = text.indexOf(PREFIX);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "trimmed",
      "signature": "const trimmed = line.trim();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "byId",
      "signature": "const byId = function byId(left: string, right: string): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "walkPrinciples",
      "signature": "export const walkPrinciples = function walkPrinciples(catalog: string, citing: readonly string[]): PrincipleWalk {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "declared",
      "signature": "const declared = new Set(idsIn(catalog, true));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "cited",
      "signature": "const cited = new Set(citing.flatMap((source) => idsIn(source, false)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "uncited",
      "signature": "const uncited = [...declared].filter((id) => !cited.has(id)).toSorted(byId);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "dangling",
      "signature": "const dangling = [...cited].filter((id) => !declared.has(id)).toSorted(byId);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-architecture-reader-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "architecture.reader.ts",
  "path": "tools/core/readers/architecture.reader.ts",
  "ref": "anatomy:file-coordination-tools-core-readers-architecture-reader-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-readers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-readers",
          "label": "tools/core/readers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-readers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-readers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-readers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-readers",
          "label": "tools/core/readers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-readers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-readers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "reader",
    "subject": "architecture",
    "variant": null
  },
  "stats": {
    "bytes": 1845,
    "callable": 7,
    "definitions": 18,
    "edges": 5,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 2,
      "entry": 1,
      "isolated": 13
    },
    "lines": {
      "blank": 11,
      "code": 42,
      "total": 53
    }
  },
  "summary": "42 lines of code and 18 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/readers/architecture.reader.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-board-reader-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/board.reader.ts",
      "label": "tools/core/readers/board.reader.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/board.reader.ts.md",
      "ref": "anatomy:file-coordination-tools-core-readers-board-reader-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-readers-agenda-reader-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/readers/agenda.reader.ts",
      "label": "tools/core/readers/agenda.reader.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/readers/agenda.reader.ts.md",
      "ref": "anatomy:file-coordination-tools-core-readers-agenda-reader-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/readers",
    "label": "tools/core/readers",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/readers.md",
    "ref": "api:source/coordination/tools/core/readers"
  }
}
