• Derive a precise read plan (selection set) from a compiled calc profile.

    Pure — no store access. Depth is derived from the include tree so Stage 0 CONSTRUCT generation can honour it without inventing maxRecursion: 4.

    Parameters

    • profile: CompiledProfile
    • rootTypeName: string
    • domainSchema: JSONSchema7

    Returns CalcReadPlan