{
  "schema_version": "2026-05-14.leafenterprise.evidence-lineage.v1",
  "source_of_truth": true,
  "lineage_chains": [
    {
      "id": "savings_audit_report",
      "output": "savings_audit_report_payload",
      "chain": ["governed scope", "AWS SQL source rows", "deterministic report formulas", "evidence sufficiency checks", "GET /api/client-report"],
      "must_preserve": ["run id", "PBM", "TPA/broker", "group", "date window", "source table filters"]
    },
    {
      "id": "scoped_client_dashboard",
      "output": "scoped_client_dashboard_payload",
      "chain": ["governed scope", "report payload", "deliverable readiness", "frontend or Domo-facing dashboard consumer"],
      "must_preserve": ["scope", "lineage", "blocked evidence states", "no client cross-contamination"]
    },
    {
      "id": "workbook_export",
      "output": "workbook_export",
      "chain": ["report context", "contract guarantee resolver", "workbook renderer", "GET /api/client-report-xlsx"],
      "must_preserve": ["scope", "contract input posture", "specialty posture", "appendix readiness"]
    },
    {
      "id": "optimization_recommendation",
      "output": "optimization_recommendations",
      "chain": ["report context", "governed savings packet or modeled evidence", "pocket consultant deterministic recommendation", "Azure OpenAI narrative when configured", "GET /api/optimize"],
      "must_preserve": ["recommendation class", "missing evidence", "blocked reasons", "projection basis"]
    },
    {
      "id": "contract_packet_promotion",
      "output": "exact_contract_evidence",
      "chain": ["scope", "Microsoft Graph / OneDrive candidate discovery", "deterministic packet resolver", "contract guarantee evidence status"],
      "must_preserve": ["packet id", "source version", "hash or stable reference", "no raw token or download URL exposure"]
    },
    {
      "id": "salesforce_itr_agent_context",
      "output": "agent_search_documents",
      "chain": ["Salesforce ITR mirror", "materialized files", "text extraction", "evidence bundle", "Azure AI Search / Foundry IQ documents"],
      "must_preserve": ["request number", "source record id", "source version id", "content hash", "sync run id"]
    }
  ]
}
