monad.ai
    Preparing search index...

    Type Alias ScoringContext

    Per-request context supplied to scoring.

    namespace and requestedAt make scoring deterministic for a request. Future scorers may also use pathPrefix for workload-specific policy.

    type ScoringContext = {
        adaptiveWeights?: Record<string, number>;
        mode?: ScoringMode;
        namespace: string;
        pathPrefix?: string;
        requestedAt: number;
    }
    Index

    Properties

    adaptiveWeights?: Record<string, number>

    Globally learned scorer weights (Phase 7).

    Injected by selectMeshClaimant from _.mesh.adaptiveWeights. Overrides scorer.defaultWeight but yields to per-claim _weight_<name> values.

    Weight resolution order (highest priority first):

    1. meta._weight_<name> — per-claim explicit override
    2. ctx.adaptiveWeights[name] — this field (online-learned prior)
    3. scorer.defaultWeight — hardcoded fallback
    namespace: string
    pathPrefix?: string
    requestedAt: number