{
  "schemaVersion": 1,
  "generatedAt": "2026-08-17T18:31:08.402Z",
  "generationKey": "adfe2a319969f953add373d2e38719763d270e60bf7408701b31364d2d242da2",
  "metadataPayloadSha256": "66abd2fc85eedf19353dc44c4553886d52f95578edf0d194a6a17d4d2381cd1e",
  "diagram": {
    "id": "atlas-primary-runtime-flow-d86a06d2",
    "title": "Atlas — primary runtime flow",
    "description": "getEntityNeighborhood canonicalizes the seed, expands the frontier hop by hop over canonical_relations taking highest-mention edges first, then hydrates full cards for every reached node under the document ACL.",
    "status": "current",
    "canonicalAppearanceKey": "tsx:src/app/(docs)/docs/modules/atlas/page.tsx:atlasRuntimeFlowChart#1"
  },
  "aliases": [],
  "concepts": [
    "Atlas runtime flow",
    "Modules",
    "Atlas"
  ],
  "keywords": [
    "API consumer (SDK or curl)",
    "GET :id/neighborhood (API)",
    "canonical_relations (store)",
    "entities + entity_aliases (store)",
    "requireApiKey + content ACL (service)",
    "mentions + documents (store)",
    "workspace plus content-ACL context",
    "entityCard resolves the seed",
    "canonicalize a merged id to its head",
    "expandFrontier from the canonical seed",
    "hydrate full cards for every reached node",
    "nodes, edges, truncated flag",
    "getEntityNeighborhood with depth, perHopCap, totalCap",
    "check kb:read (runs:read accepted) and graph:read",
    "read both edge directions, highest mentionCount first",
    "admit nodes under perHopCap and totalCap, set truncated",
    "graph/query.ts",
    "/api/v1/entities",
    "service",
    "roll up mentionCount, docIds, topRelations under the document ACL"
  ],
  "mermaid": {
    "type": "sequence",
    "sourceSha256": "d86a06d2e6529e931fbdcb7b5b062c24d68e035b452833bb7fbd4d3b4399e95e"
  },
  "provenance": [
    {
      "appearanceKey": "tsx:src/app/(docs)/docs/modules/atlas/page.tsx:atlasRuntimeFlowChart#1",
      "surface": "route",
      "sourcePath": "src/app/(docs)/docs/modules/atlas/page.tsx",
      "line": 131,
      "route": "/docs/modules/atlas",
      "symbol": "atlasRuntimeFlowChart",
      "caption": "getEntityNeighborhood canonicalizes the seed, expands the frontier hop by hop over canonical_relations taking highest-mention edges first, then hydrates full cards for every reached node under the document ACL."
    }
  ],
  "embeddedMetadata": [
    {
      "sourcePath": "src/app/(docs)/docs/modules/atlas/page.tsx",
      "caption": "getEntityNeighborhood canonicalizes the seed, expands the frontier hop by hop over canonical_relations taking highest-mention edges first, then hydrates full cards for every reached node under the document ACL."
    }
  ],
  "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/atlas-primary-runtime-flow-d86a06d2/atlas-primary-runtime-flow-d86a06d2.mmd",
    "svg": "/diagrams/atlas-primary-runtime-flow-d86a06d2/atlas-primary-runtime-flow-d86a06d2.svg",
    "png": "/diagrams/atlas-primary-runtime-flow-d86a06d2/atlas-primary-runtime-flow-d86a06d2.png",
    "drawio": "/diagrams/atlas-primary-runtime-flow-d86a06d2/atlas-primary-runtime-flow-d86a06d2.drawio",
    "json": "/diagrams/atlas-primary-runtime-flow-d86a06d2/atlas-primary-runtime-flow-d86a06d2.json"
  },
  "artifactSha256": {
    "mmd": "afa7b1c144d6d3f0bc09e15c68080da5e57ac2c542f8a37ad0fb976c49fd4c3d",
    "svg": "771a37cc2924f1a40bedfa4511e4ba4ec12ee38070264c8e83c4792d38ac34a9",
    "png": "2be9df21f469d5f00b718ff3dbb9b8bc5e2b0874ef758f0f98ef9797d8c95417",
    "drawio": "61e1192b2e4eb333c9566fab71250837ac300818d6e36adcdd20a0d1ab34ce61"
  }
}
