{
  "schema_version": "2026-05-14.leafenterprise.system-authority.v1",
  "source_of_truth": true,
  "system": "LeafEnterprise",
  "authority_statement": "LeafEnterprise is the backend authority for scoped savings/audit calculations, evidence sufficiency, queueability, dashboard-ready payloads, and deliverable readiness.",
  "authoritative_decisions": [
    {
      "id": "scope-resolution",
      "label": "Scope resolution",
      "description": "Resolve PBM, TPA/broker, group, date window, run id, and source request before calculations or exports."
    },
    {
      "id": "calculation-basis",
      "label": "Calculation basis",
      "description": "Bind each metric to source rows, filters, named formulas, and implementation paths."
    },
    {
      "id": "evidence-sufficiency",
      "label": "Evidence sufficiency",
      "description": "Classify contract, pricing, rebate, Salesforce, workbook, Domo, and packet evidence as exact, candidate, modeled, or blocked."
    },
    {
      "id": "dashboard-payload",
      "label": "Dashboard payload",
      "description": "Publish scoped client dashboard payloads only after backend scope and evidence checks pass."
    },
    {
      "id": "deliverable-readiness",
      "label": "Deliverable readiness",
      "description": "Expose workbook, PDF, narrative, and optimization readiness as backend status, not frontend guesses."
    },
    {
      "id": "agent-tool-boundary",
      "label": "Agent tool boundary",
      "description": "Allow MCP/API tools to operate only through backend-owned route contracts, policy checks, and source-specific guardrails."
    }
  ],
  "non_authoritative_sources": [
    {
      "source": "Domo",
      "allowed_role": "Migration evidence, reconciliation behavior, edge-case fixtures, and legacy dashboard discovery.",
      "not_allowed_for": "Runtime savings/audit truth, final contract guarantees, rebate-backed savings authorization."
    },
    {
      "source": "AI model output",
      "allowed_role": "Drafting, summarization, explanation, and operator assistance.",
      "not_allowed_for": "Calculation truth or standalone evidence."
    },
    {
      "source": "Historical workbooks",
      "allowed_role": "Evidence packets, renderer parity, and migration fixtures.",
      "not_allowed_for": "Blind formula copying without scope and evidence validation."
    }
  ],
  "primary_outputs": [
    "scoped_client_dashboard_payload",
    "savings_audit_report_payload",
    "workbook_export",
    "pdf_export",
    "optimization_recommendations",
    "mcp_tool_responses",
    "agent_task_artifacts"
  ]
}
