Skip to content

Type Alias: ReviewEntityOrigin

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ReviewEntityOrigin

ReviewEntityOrigin = "proposed" | "provisional" | "existing"

Defined in: src/types/reviews.ts:43

Where a review’s entity stands in the knowledge base when the review is queued.

A decision’s knowledge-base effect depends on it:

  • 'proposed' — the entity is not in the knowledge base; approving creates it, and rejecting touches nothing.
  • 'provisional' — the extraction run created the entity for this review; approving writes nothing new (it answers that term’s id), and rejecting retracts it with its mentioned_in edges.
  • 'existing' — a term that held knowledge before the review; rejecting leaves it in place.
const label = entity.entityOrigin === 'provisional' ? 'Reject and retract' : 'Reject';