# 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;
}

- Defined in kernel/scoring.ts:31

##### Index

### Properties

adaptiveWeights?
mode?
namespace
pathPrefix?
requestedAt

## Properties

### `Optional` adaptiveWeights

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

- Defined in kernel/scoring.ts:47

### `Optional` mode

mode?: ScoringMode

- Defined in kernel/scoring.ts:35

### namespace

namespace: string

- Defined in kernel/scoring.ts:32

### `Optional` pathPrefix

pathPrefix?: string

- Defined in kernel/scoring.ts:34

### requestedAt

requestedAt: number

- Defined in kernel/scoring.ts:33