{
  "schemaVersion": 1,
  "generatedAt": "2026-08-17T18:34:59.423Z",
  "generationKey": "2cdcb58817b282af5a68080f70ba4f9073693675f66a21603c29579e7fdff846",
  "metadataPayloadSha256": "140400113ca35e5bba76046ac49060da97aba7b15dbb5123732bb368f7ff7b1d",
  "diagram": {
    "id": "lineage-primary-runtime-flow-dca4f3d8",
    "title": "Lineage — primary runtime flow",
    "description": "getDocumentLineage gates on the document ACL first, then assembles origin, revisions, audit, derived knowledge, and downstream impact in one workspace transaction with deterministic ordering and fixed caps.",
    "status": "current",
    "canonicalAppearanceKey": "tsx:src/app/(docs)/docs/modules/lineage/page.tsx:lineageRuntimeFlowChart#1"
  },
  "aliases": [],
  "concepts": [
    "Lineage runtime flow",
    "Modules",
    "Lineage"
  ],
  "keywords": [
    "GET :id/lineage (API)",
    "API consumer (SDK or curl)",
    "documents + connector_sources (store)",
    "document_revisions + audit_log (store)",
    "newest 50 document.* audit events",
    "vault readDocument (service)",
    "chunks + mentions + relations (store)",
    "messages + semantic cache (store)",
    "getDocumentLineage for one document id",
    "documentLineage in one workspace transaction",
    "the assembled DocumentLineage",
    "document row left-joined to its connector source",
    "newest 50 revision summaries with the uncapped total",
    "citedByAnswers count and newest 50 dependent cache entries",
    "lineage/index.ts",
    "/api/v1/documents",
    "service",
    "newest 10 sync_runs when the origin is a connector",
    "the document is live and visible to this key",
    "ACL-checked read — unknown, deleted, restricted are the same 404",
    "chunk count, top 50 canonical concepts, grounded relation count"
  ],
  "mermaid": {
    "type": "sequence",
    "sourceSha256": "dca4f3d8c20f01ed3cdcc565ef9afe5a2b689d3e98b5484ff5534f213e8eb216"
  },
  "provenance": [
    {
      "appearanceKey": "tsx:src/app/(docs)/docs/modules/lineage/page.tsx:lineageRuntimeFlowChart#1",
      "surface": "route",
      "sourcePath": "src/app/(docs)/docs/modules/lineage/page.tsx",
      "line": 189,
      "route": "/docs/modules/lineage",
      "symbol": "lineageRuntimeFlowChart",
      "caption": "getDocumentLineage gates on the document ACL first, then assembles origin, revisions, audit, derived knowledge, and downstream impact in one workspace transaction with deterministic ordering and fixed caps."
    }
  ],
  "embeddedMetadata": [
    {
      "sourcePath": "src/app/(docs)/docs/modules/lineage/page.tsx",
      "caption": "getDocumentLineage gates on the document ACL first, then assembles origin, revisions, audit, derived knowledge, and downstream impact in one workspace transaction with deterministic ordering and fixed caps."
    }
  ],
  "generation": {
    "application": {
      "name": "eli-ai",
      "version": "0.1.0"
    },
    "environment": {
      "node": "v26.3.1",
      "yarn": "4.17.1",
      "platform": "linux",
      "architecture": "x64",
      "containerImage": "playwright:v1.62.1-noble@sha256:c091b21d9fae78c76e85cd4356431e9b018402f172a214fc7d7a5e9a7e29d8ac+node:26.3.1-bookworm-slim@sha256:209558c3e5e40e8adff68959d3c2ba7cd73723e716d89196878a0c362fa1e109"
    },
    "packages": {
      "mermaid": "11.16.0",
      "mermaidCli": "11.16.0",
      "playwright": "1.62.1",
      "playwrightCore": "1.62.1",
      "puppeteer": "25.6.0",
      "puppeteerCore": "25.6.0"
    },
    "renderer": {
      "mermaidConfigSha256": "68c10966fe84406ee626034d58bfabd555df9f65f691204b7c46db24038da101",
      "themeCssSha256": "c80287a78d80ad63d27bd5ca348b2ef9a7e2f44da289e436be6484ea28a1b033",
      "browser": {
        "name": "chromium",
        "revision": "1234",
        "version": "151.0.7922.34",
        "executableSha256": "0b20b130e7edd9dd51873be867761295fe0cfad490c2b9a64f95bd3cfc08fa71"
      },
      "font": {
        "family": "Eli Diagram Inter Variable",
        "fileSha256": "3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62",
        "licenseSha256": "3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345"
      }
    },
    "adapterVersions": {
      "diagramGenerator": "2",
      "drawioFlowchart": "1",
      "drawioSequence": "1",
      "drawioState": "1",
      "drawioGantt": "1"
    }
  },
  "artifacts": {
    "mmd": "/diagrams/lineage-primary-runtime-flow-dca4f3d8/lineage-primary-runtime-flow-dca4f3d8.mmd",
    "svg": "/diagrams/lineage-primary-runtime-flow-dca4f3d8/lineage-primary-runtime-flow-dca4f3d8.svg",
    "png": "/diagrams/lineage-primary-runtime-flow-dca4f3d8/lineage-primary-runtime-flow-dca4f3d8.png",
    "drawio": "/diagrams/lineage-primary-runtime-flow-dca4f3d8/lineage-primary-runtime-flow-dca4f3d8.drawio",
    "json": "/diagrams/lineage-primary-runtime-flow-dca4f3d8/lineage-primary-runtime-flow-dca4f3d8.json"
  },
  "artifactSha256": {
    "mmd": "df1a9899b522ba1609df24a48a6b5078b4842795d15bd16f4b8d84768f254874",
    "svg": "f929dc62fe7f7378f2cfc0fb3991e5d1960dfc1e01e8a64ace1e5c64d4c25917",
    "png": "5b172e0d779523aec5a5beb599d7d3570cbbc0b0c56cf75ac363aca0ab3c5200",
    "drawio": "42bd4d7b786d918cbe98de4cd735075ac8de83f96a06a53a397ee430881c1ee7"
  }
}
