{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/predicates/record.predicate.ts",
          "name": "isPlainRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-predicates-record-predicate-ts",
            "json": "https://banes-lab.com/json/source/context/core/predicates/record.predicate.ts",
            "label": "core/predicates/record.predicate.ts",
            "markdown": "https://banes-lab.com/source/context/core/predicates/record.predicate.ts.md",
            "ref": "anatomy:file-context-core-predicates-record-predicate-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/observers/record.observer.ts",
          "name": "pathsUnder",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
            "json": "https://banes-lab.com/json/source/context/core/observers/record.observer.ts",
            "label": "core/observers/record.observer.ts",
            "markdown": "https://banes-lab.com/source/context/core/observers/record.observer.ts.md",
            "ref": "anatomy:file-context-core-observers-record-observer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "childrenOf",
      "signature": "const childrenOf = function childrenOf(value: unknown, path: string): [Record<string, unknown>, string][] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/observers/record.observer.ts",
          "name": "childrenOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
            "json": "https://banes-lab.com/json/source/context/core/observers/record.observer.ts",
            "label": "core/observers/record.observer.ts",
            "markdown": "https://banes-lab.com/source/context/core/observers/record.observer.ts.md",
            "ref": "anatomy:file-context-core-observers-record-observer-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/observers/record.observer.ts",
          "name": "presentPaths",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
            "json": "https://banes-lab.com/json/source/context/core/observers/record.observer.ts",
            "label": "core/observers/record.observer.ts",
            "markdown": "https://banes-lab.com/source/context/core/observers/record.observer.ts.md",
            "ref": "anatomy:file-context-core-observers-record-observer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "pathsUnder",
      "signature": "const pathsUnder = function pathsUnder(raw: Record<string, unknown>, prefix: string): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/observers/record.observer.ts",
          "name": "reject",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
            "json": "https://banes-lab.com/json/source/context/core/observers/record.observer.ts",
            "label": "core/observers/record.observer.ts",
            "markdown": "https://banes-lab.com/source/context/core/observers/record.observer.ts.md",
            "ref": "anatomy:file-context-core-observers-record-observer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "labelOf",
      "signature": "const labelOf = function labelOf(raw: Record<string, unknown>, fallback: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/observers/record.observer.ts",
          "name": "pathsUnder",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
            "json": "https://banes-lab.com/json/source/context/core/observers/record.observer.ts",
            "label": "core/observers/record.observer.ts",
            "markdown": "https://banes-lab.com/source/context/core/observers/record.observer.ts.md",
            "ref": "anatomy:file-context-core-observers-record-observer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "presentPaths",
      "signature": "const presentPaths = function presentPaths(raw: Record<string, unknown>): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/predicates/record.predicate.ts",
          "name": "isPlainRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-predicates-record-predicate-ts",
            "json": "https://banes-lab.com/json/source/context/core/predicates/record.predicate.ts",
            "label": "core/predicates/record.predicate.ts",
            "markdown": "https://banes-lab.com/source/context/core/predicates/record.predicate.ts.md",
            "ref": "anatomy:file-context-core-predicates-record-predicate-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 80,
      "name": "records",
      "signature": "public records(list: unknown, source: string): Record<string, unknown>[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/observers/record.observer.ts",
          "name": "labelOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
            "json": "https://banes-lab.com/json/source/context/core/observers/record.observer.ts",
            "label": "core/observers/record.observer.ts",
            "markdown": "https://banes-lab.com/source/context/core/observers/record.observer.ts.md",
            "ref": "anatomy:file-context-core-observers-record-observer-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 91,
      "name": "reject",
      "signature": "public reject(value: unknown, source: string): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "elements",
      "signature": "const elements: unknown[] = Array.isArray(value) ? value : [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "isUnread",
      "signature": "const isUnread = function isUnread(entry: TrackedRecord, path: string): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "class_declaration",
      "line": 46,
      "name": "ReadAudit",
      "signature": "export class ReadAudit {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 47,
      "name": "#collection",
      "signature": "readonly #collection: string;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 48,
      "name": "#tracked",
      "signature": "readonly #tracked: TrackedRecord[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 49,
      "name": "#dropped",
      "signature": "readonly #dropped: UnreadKey[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 50,
      "name": "#origins",
      "signature": "readonly #origins = new WeakMap<object, RecordOrigin>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 51,
      "name": "#attributions",
      "signature": "readonly #attributions = new Set<string>();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 53,
      "name": "constructor",
      "signature": "public constructor(collection: string) {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 57,
      "name": "attribution",
      "signature": "public attribution(tracked: Record<string, unknown>): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "notice",
      "signature": "const notice = tracked[ATTRIBUTION_KEY];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 64,
      "name": "attributions",
      "signature": "public attributions(): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 68,
      "name": "track",
      "signature": "public track(value: Record<string, unknown>, source: string): Record<string, unknown> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "entry",
      "signature": "const entry: TrackedRecord = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "items",
      "signature": "const items: unknown[] = Array.isArray(list) ? list : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 92,
      "name": "raw",
      "signature": "const raw = isPlainRecord(value) ? this.#release(value) : null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 97,
      "name": "unread",
      "signature": "const unread = this.#tracked.flatMap((entry) =>"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 110,
      "name": "#release",
      "signature": "#release(value: Record<string, unknown>): Record<string, unknown> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "origin",
      "signature": "const origin = this.#origins.get(value);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 119,
      "name": "#drop",
      "signature": "#drop(record: string, reason: UnreadReason): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 123,
      "name": "#wrap",
      "signature": "#wrap(raw: Record<string, unknown>, prefix: string, entry: TrackedRecord): Record<string, unknown> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "proxy",
      "signature": "const proxy = new Proxy(raw, {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 129,
      "name": "path",
      "signature": "const path = `${prefix}${key}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 131,
      "name": "value",
      "signature": "const value = target[key];"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-observers-record-observer-ts",
  "language": "typescript",
  "layer": "application",
  "name": "record.observer.ts",
  "path": "core/observers/record.observer.ts",
  "ref": "anatomy:file-context-core-observers-record-observer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-observers",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-observers",
          "label": "core/observers",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-observers.md",
          "ref": "chapter:/anatomy/context#folder-context-core-observers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-predicates-record-predicate-ts",
          "json": "https://banes-lab.com/json/source/context/core/predicates/record.predicate.ts",
          "label": "core/predicates/record.predicate.ts",
          "markdown": "https://banes-lab.com/source/context/core/predicates/record.predicate.ts.md",
          "ref": "anatomy:file-context-core-predicates-record-predicate-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-observers",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-observers",
          "label": "core/observers",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-observers.md",
          "ref": "chapter:/anatomy/context#folder-context-core-observers"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-predicates",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-predicates",
          "label": "core/predicates",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-predicates.md",
          "ref": "chapter:/anatomy/context#folder-context-core-predicates"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "observer",
    "subject": "record",
    "variant": null
  },
  "stats": {
    "bytes": 5412,
    "callable": 14,
    "definitions": 30,
    "edges": 5,
    "exported": 24,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 1,
      "entry": 3,
      "isolated": 24
    },
    "lines": {
      "blank": 16,
      "code": 132,
      "total": 148
    }
  },
  "summary": "132 lines of code and 30 definitions.",
  "text": "https://banes-lab.com/source/context/core/observers/record.observer.ts.txt",
  "tree": "context",
  "siblings": {
    "next": null,
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/observers",
    "label": "core/observers",
    "markdown": "https://banes-lab.com/api/source/context/core/observers.md",
    "ref": "api:source/context/core/observers"
  }
}
