Skip to content

Interface: SortDiscoveryResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SortDiscoveryResponse

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

Response from sort discovery analysis.

conceptsMatchingExisting: number

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

Concepts matching existing sorts.


optional fuzzyLevels?: FuzzyConceptLevel[] | null

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

Fuzzy concept levels (if fuzzy thresholds were provided).


incompleteReason: string | null

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

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:120

Whether the whole declared visible population was analyzed.


inputStopReason: string

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

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


novelConceptsDiscovered: number

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

Novel concepts discovered.


processingTimeMs: number

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

Processing time in milliseconds.


recommendations: SortRecommendation[]

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

Sort recommendations.


registrations: SortRegistration[]

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

The actual native registration outcomes, failures included.


search: FcaSearchSummary

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

The crisp native enumeration outcome and counters.


sortsCreated: string[]

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

Sorts that were auto-created.


success: boolean

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

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:128

Number of terms analyzed.


totalConcepts: number

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

Total concepts found.