Skip to content

Interface: LearnedSimilarityDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LearnedSimilarityDto

Defined in: src/types/sorts.ts:1181

A learned similarity between two sorts.

createdAt: string

Defined in: src/types/sorts.ts:1193

When the similarity was created (ISO 8601).


optional crispMeet?: string | null

Defined in: src/types/sorts.ts:1215

The name of the GLB sort, when the pair already meets crisply.

Approving is then redundant for routing: the common subsort meets at degree 1 and erases the graded degree. null when the meet is bottom.


degree: number

Defined in: src/types/sorts.ts:1187

Similarity degree (0.0-1.0).


meetIsBottom: boolean

Defined in: src/types/sorts.ts:1207

Whether the two sorts have NO crisp meet other than bottom in the caller’s lattice.

Reviewer-facing evidence. That is exactly where a declared similarity does work (it routes the pair through a third sort), and exactly where approving asserts a graded interchangeability that soft unification will act on. The engine never filters on it: the lattice cannot tell deliberately disjoint siblings from similarity-worthy ones.


provenance: LearnedSimilarityProvenanceDto

Defined in: src/types/sorts.ts:1191

Provenance information.


sort1Id: string

Defined in: src/types/sorts.ts:1183

First sort ID (UUID).


sort2Id: string

Defined in: src/types/sorts.ts:1185

Second sort ID (UUID).


status: LearnedSimilarityStatusDto

Defined in: src/types/sorts.ts:1189

Status of the similarity.


updatedAt: string

Defined in: src/types/sorts.ts:1195

When the similarity was last updated (ISO 8601).