{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "writeFieldMark",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        },
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "writeSnapshot",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "writeText",
      "signature": "const writeText = function writeText(path: string, content: string): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "snapshotPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        },
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "writeText",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/reporters/board.reporter.ts",
          "name": "changesSince",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-reporters-board-reporter-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/reporters/board.reporter.ts",
            "label": "tools/core/reporters/board.reporter.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/reporters/board.reporter.ts.md",
            "ref": "anatomy:file-coordination-tools-core-reporters-board-reporter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "writeSnapshot",
      "signature": "export const writeSnapshot = function writeSnapshot("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "fieldMarkPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        },
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "writeText",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/coordinators/record.coordinator.ts",
          "name": "postComposable",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-coordinators-record-coordinator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/coordinators/record.coordinator.ts",
            "label": "tools/core/coordinators/record.coordinator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/coordinators/record.coordinator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-coordinators-record-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "writeFieldMark",
      "signature": "export const writeFieldMark = function writeFieldMark(repoRoot: string, agent: string, at: number): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/formatters/text.formatter.ts",
          "name": "safeKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-formatters-text-formatter-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/formatters/text.formatter.ts",
            "label": "tools/core/formatters/text.formatter.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/formatters/text.formatter.ts.md",
            "ref": "anatomy:file-coordination-tools-core-formatters-text-formatter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "writeSnapshot",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "snapshotPath",
      "signature": "const snapshotPath = function snapshotPath(repoRoot: string, agent: string, target: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "unkeyedSnapshots",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "entriesIn",
      "signature": "const entriesIn = function entriesIn(repoRoot: string): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "writeFieldMark",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "fieldMarkPath",
      "signature": "const fieldMarkPath = function fieldMarkPath(repoRoot: string, agent: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/reporters/board.reporter.ts",
          "name": "changesSince",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-reporters-board-reporter-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/reporters/board.reporter.ts",
            "label": "tools/core/reporters/board.reporter.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/reporters/board.reporter.ts.md",
            "ref": "anatomy:file-coordination-tools-core-reporters-board-reporter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "pruneUnkeyedSnapshots",
      "signature": "export const pruneUnkeyedSnapshots = function pruneUnkeyedSnapshots(repoRoot: string): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "wasDelivered",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 92,
      "name": "readDelivered",
      "signature": "export const readDelivered = function readDelivered(repoRoot: string, agent: string): Set<string> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/reporters/board.reporter.ts",
          "name": "changesSince",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-reporters-board-reporter-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/reporters/board.reporter.ts",
            "label": "tools/core/reporters/board.reporter.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/reporters/board.reporter.ts.md",
            "ref": "anatomy:file-coordination-tools-core-reporters-board-reporter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 105,
      "name": "recordDelivered",
      "signature": "export const recordDelivered = function recordDelivered("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "entriesIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "unkeyedSnapshots",
      "signature": "export const unkeyedSnapshots = function unkeyedSnapshots(repoRoot: string): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/registries/snapshot.registry.ts",
          "name": "readDelivered",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/snapshot.registry.ts",
            "label": "tools/core/registries/snapshot.registry.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.md",
            "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 121,
      "name": "wasDelivered",
      "signature": "export const wasDelivered = function wasDelivered(repoRoot: string, agent: string, key: string): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "SNAPSHOT_ROOT",
      "signature": "const SNAPSHOT_ROOT = `${GENERATED_DIR}/board.snapshots`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "FIELD_MARK_TAIL",
      "signature": "const FIELD_MARK_TAIL = \".field.generated.txt\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "SNAPSHOT_TAIL",
      "signature": "const SNAPSHOT_TAIL = \".snapshot.generated.txt\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "DELIVERED_TAIL",
      "signature": "const DELIVERED_TAIL = \".delivered.generated.txt\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "root",
      "signature": "const root = resolve(repoRoot, SNAPSHOT_ROOT);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "readSnapshot",
      "signature": "export const readSnapshot = function readSnapshot(repoRoot: string, agent: string, target: string): string | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "readFieldMark",
      "signature": "export const readFieldMark = function readFieldMark(repoRoot: string, agent: string): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "stale",
      "signature": "const stale = unkeyedSnapshots(repoRoot);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "lastInteraction",
      "signature": "export const lastInteraction = function lastInteraction(repoRoot: string, agent: string): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "lead",
      "signature": "const lead = `${agent}.`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "stamps",
      "signature": "const stamps = entriesIn(repoRoot)"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "deliveredPath",
      "signature": "const deliveredPath = function deliveredPath(repoRoot: string, agent: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "held",
      "signature": "const held = readDelivered(repoRoot, agent);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "fresh",
      "signature": "const fresh = [...new Set(keys)].filter((key) => !held.has(key));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 116,
      "name": "path",
      "signature": "const path = deliveredPath(repoRoot, agent);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-snapshot-registry-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "snapshot.registry.ts",
  "path": "tools/core/registries/snapshot.registry.ts",
  "ref": "anatomy:file-coordination-tools-core-registries-snapshot-registry-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-registries",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-registries",
          "label": "tools/core/registries",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-registries.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-registries"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-formatters-text-formatter-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/formatters/text.formatter.ts",
          "label": "tools/core/formatters/text.formatter.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/formatters/text.formatter.ts.md",
          "ref": "anatomy:file-coordination-tools-core-formatters-text-formatter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-coordinators-record-coordinator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/coordinators/record.coordinator.ts",
          "label": "tools/core/coordinators/record.coordinator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/coordinators/record.coordinator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-coordinators-record-coordinator-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-reporters-board-reporter-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/reporters/board.reporter.ts",
          "label": "tools/core/reporters/board.reporter.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/reporters/board.reporter.ts.md",
          "ref": "anatomy:file-coordination-tools-core-reporters-board-reporter-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-formatters",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-formatters",
          "label": "tools/core/formatters",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-formatters.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-formatters"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-registries",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-registries",
          "label": "tools/core/registries",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-registries.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-registries"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-reporters",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-reporters",
          "label": "tools/core/reporters",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-reporters.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-reporters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "registry",
    "subject": "snapshot",
    "variant": null
  },
  "stats": {
    "bytes": 4234,
    "callable": 15,
    "definitions": 26,
    "edges": 7,
    "exported": 16,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 6,
      "relay": 3,
      "entry": 2,
      "isolated": 15
    },
    "lines": {
      "blank": 21,
      "code": 102,
      "total": 123
    }
  },
  "summary": "102 lines of code and 26 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/registries/snapshot.registry.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-surface-registry-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/surface.registry.ts",
      "label": "tools/core/registries/surface.registry.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/surface.registry.ts.md",
      "ref": "anatomy:file-coordination-tools-core-registries-surface-registry-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-registries-rule-registry-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/registries/rule.registry.ts",
      "label": "tools/core/registries/rule.registry.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/registries/rule.registry.ts.md",
      "ref": "anatomy:file-coordination-tools-core-registries-rule-registry-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/registries",
    "label": "tools/core/registries",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/registries.md",
    "ref": "api:source/coordination/tools/core/registries"
  }
}
