{
  "schemaVersion": 1,
  "generatedAt": "2026-08-17T18:32:20.358Z",
  "generationKey": "3eb6dcde9e23efe1f9f345081c2cbce39f111e487fe394e71ccd04b22f240eef",
  "metadataPayloadSha256": "29bf6f6cdaac4b751275adb567c4c407b477129d87148d6e535c2f003ddcf73d",
  "diagram": {
    "id": "crucible-primary-runtime-flow-d2c7d473",
    "title": "Crucible — primary runtime flow",
    "description": "The three public operations in sequence. Aggregation and pairing are pure reads inside short workspace transactions; the only public write is the append-only qrel with its audit event.",
    "status": "current",
    "canonicalAppearanceKey": "tsx:src/app/(docs)/docs/modules/crucible/page.tsx:primaryRuntimeFlowChart#1"
  },
  "aliases": [],
  "concepts": [
    "Primary runtime flow",
    "Modules",
    "Crucible"
  ],
  "keywords": [
    "GET {id}/metrics (API)",
    "GET (API)",
    "POST (API)",
    "eval_runs + eval_results + run_metrics (store)",
    "qrels + audit_log (store)",
    "append judgment + qrel.author audit event",
    "getEvalRunMetrics runId",
    "aggregate one run",
    "load run, per-result rows, overall run_metrics row",
    "Quality client (kb:read / kb:write)",
    "Eval aggregation helper (service)",
    "Paired-significance module (service)",
    "retrieval + RAGAS + abstention inputs",
    "compareEvalRuns a, b, metric",
    "pair per-item means by golden item id",
    "seeded bootstrap + sign-flip permutation",
    "delta, confidence interval, p-value",
    "two-gate significant verdict",
    "authorQrel queryId, chunkId, grade",
    "metrics summary with error classes and risk coverage",
    "/api/v1/evals/runs",
    "/api/v1/qrels",
    "/api/v1/evals/runs/compare"
  ],
  "mermaid": {
    "type": "sequence",
    "sourceSha256": "d2c7d473fa1b3035d9b50cbe4cc138849483b8945966f2aa2c6ced2a92e48c10"
  },
  "provenance": [
    {
      "appearanceKey": "tsx:src/app/(docs)/docs/modules/crucible/page.tsx:primaryRuntimeFlowChart#1",
      "surface": "route",
      "sourcePath": "src/app/(docs)/docs/modules/crucible/page.tsx",
      "line": 113,
      "route": "/docs/modules/crucible",
      "symbol": "primaryRuntimeFlowChart",
      "caption": "The three public operations in sequence. Aggregation and pairing are pure reads inside short workspace transactions; the only public write is the append-only qrel with its audit event."
    }
  ],
  "embeddedMetadata": [
    {
      "sourcePath": "src/app/(docs)/docs/modules/crucible/page.tsx",
      "caption": "The three public operations in sequence. Aggregation and pairing are pure reads inside short workspace transactions; the only public write is the append-only qrel with its audit event."
    }
  ],
  "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/crucible-primary-runtime-flow-d2c7d473/crucible-primary-runtime-flow-d2c7d473.mmd",
    "svg": "/diagrams/crucible-primary-runtime-flow-d2c7d473/crucible-primary-runtime-flow-d2c7d473.svg",
    "png": "/diagrams/crucible-primary-runtime-flow-d2c7d473/crucible-primary-runtime-flow-d2c7d473.png",
    "drawio": "/diagrams/crucible-primary-runtime-flow-d2c7d473/crucible-primary-runtime-flow-d2c7d473.drawio",
    "json": "/diagrams/crucible-primary-runtime-flow-d2c7d473/crucible-primary-runtime-flow-d2c7d473.json"
  },
  "artifactSha256": {
    "mmd": "a5efaec02916ac50155693d2be7d5416536d573b78379c6f9d2e6e6227342c87",
    "svg": "5403f7e5d23b0c567b7f0c2f97bc99286cb2d1d10690eed32fb360b45ee28458",
    "png": "5be5d30492d459de9b6272403355a7b599be41796b702c2c022f6078f92ffac5",
    "drawio": "92eee706004433cd751bc59fbb747d3b12812dd106cae41117e788cca2bdcf12"
  }
}
