Skip to content

Interface: SortDiscoveryResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SortDiscoveryResponse

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

Response from sort discovery analysis.

conceptsMatchingExisting: number

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

Concepts matching existing sorts.


optional fuzzyLevels?: FuzzyConceptLevel[] | null

Defined in: src/types/analysis.ts:247

Fuzzy concept levels (if fuzzy thresholds were provided).


incompleteReason: string | null

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

Why the analysis is incomplete, or null when it is complete.

The first stop that applies: the input stop reason (visible_limit, scan_limit), then the crisp search stop reason, then the stop reason of the highest-alpha incomplete fuzzy cut (output_limit, visited_limit, work_limit, cancelled). A rejected registration alone makes success false without an incomplete reason.


inputComplete: boolean

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

Whether the whole declared visible population was analyzed.


inputStopReason: string

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

The source loading outcome (exhausted, visible_limit or scan_limit).


interpretation: DiscoveryInterpretation

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

The attribute interpretation the analysis used, and whether it was complete.


novelConceptsDiscovered: number

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

Novel concepts discovered.


processingTimeMs: number

Defined in: src/types/analysis.ts:245

Processing time in milliseconds.


recommendations: SortRecommendation[]

Defined in: src/types/analysis.ts:243

Sort recommendations.


registrations: SortRegistration[]

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

The actual native registration outcomes, failures included.


search: FcaSearchSummary

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

The crisp native enumeration outcome and counters.


sortsCreated: string[]

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

Sorts that were auto-created.


success: boolean

Defined in: src/types/analysis.ts:210

Whether the analysis is complete and every attempted registration was stored.

true only when no registration was rejected, the whole visible population was analyzed (inputComplete) and every native enumeration (the crisp search and each fuzzy alpha-cut) was exhausted. A bounded run that returns partial recommendations is not a success.


termsAnalyzed: number

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

Number of terms analyzed.


totalConcepts: number

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

Total concepts found.