Skip to content

Interface: DiscoverEffectsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DiscoverEffectsResponse

Defined in: src/types/discovery.ts:197

Response from effect discovery: the persisted result and its complete observation and change contract.

Every fitted score is descriptive (fitScope is retrospective_in_sample), and horizon offsets count observations (horizonUnit is observations), not elapsed time. Maps keyed by horizon use the horizon as a decimal string key.

changeMode: DiscoveryChangeMode

Defined in: src/types/discovery.ts:225

The change quantity both estimators used.


discoveredHorizons: HorizonDto[]

Defined in: src/types/discovery.ts:201

Selected horizons, with measured scores and explicit support.


effectAccounting: EffectAccounting[]

Defined in: src/types/discovery.ts:221

Accounting for the selected horizons by retained regime.


effectsExtracted: number

Defined in: src/types/discovery.ts:203

Distributions meeting observed-sample admission.


optional effectUnit?: string | null

Defined in: src/types/discovery.ts:227

Unit of the resulting change; null for an unspecified absolute unit.


featureOperator: string

Defined in: src/types/discovery.ts:235

Versioned window feature operator.


fitScope: string

Defined in: src/types/discovery.ts:229

Scope of every fitted score, retrospective_in_sample.


fittedThrough: string

Defined in: src/types/discovery.ts:241

Last event time used to fit this model (ISO 8601).


horizonAccounting: Record<string, ChangeAccounting>

Defined in: src/types/discovery.ts:219

Accounting for every examined horizon, selected or not, keyed by horizon.


horizonUnit: string

Defined in: src/types/discovery.ts:231

What horizon offsets count, observations.


modelSnapshot: string

Defined in: src/types/discovery.ts:239

Identity of the complete current model payload, distinct from the source identity.


observations: DiscoveryObservation[]

Defined in: src/types/discovery.ts:217

Ordered position to original input position, including timestamp ties.


outcomes: Record<string, ForwardChange[]>

Defined in: src/types/discovery.ts:223

Aligned anchor/target outcomes keyed by horizon, with explicit omission reasons.


predictionFeatures: string[]

Defined in: src/types/discovery.ts:233

The exact feature names predictFromDiscovery expects in currentValues.


processingTimeMs: number

Defined in: src/types/discovery.ts:205

Processing duration in milliseconds, including persistence.


regimesDiscovered: number

Defined in: src/types/discovery.ts:207

Retained regimes, after minimum cluster-size admission.


rootSortId: string

Defined in: src/types/discovery.ts:209

Root sort and dedicated snapshot term identity for prediction (UUID).


sortIds: Record<string, string>

Defined in: src/types/discovery.ts:211

Regime to persisted sort id.


sourceSnapshot: string

Defined in: src/types/discovery.ts:237

Identity of the complete input, configuration and unit snapshot.


success: boolean

Defined in: src/types/discovery.ts:199

Whether the complete admitted computation and its persistence succeeded.


termsCreated: number

Defined in: src/types/discovery.ts:213

Exemplar terms plus the dedicated model snapshot term.


windows: DiscoveryWindow[]

Defined in: src/types/discovery.ts:215

The complete window ledger.