package com.correx.core.context.builder

import com.correx.core.context.model.ContextEntry
import com.correx.core.context.model.ContextLayer
import com.correx.core.context.model.ContextPack

class DefaultDecisionPointBuilder : DecisionPointBuilder {
    // L0 (live execution) and L1 (stage-local) are the only layers sent to the model for inference.
    // L2+ are too large or already compressed into DecisionPoints.
    private val inferenceLayers = setOf(ContextLayer.L0, ContextLayer.L1)

    override fun build(pack: ContextPack): List<ContextEntry> =
        inferenceLayers.flatMap { layer -> pack.layers[layer] ?: emptyList() }
}
