Skip to content

Type Alias: OsfDiffReport

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfDiff / OsfDiffReport

Type Alias: OsfDiffReport

OsfDiffReport = object

Defined in: src/types/osf-diff.ts:89

A serialized OSF diff report.

Remarks

The structural delta between the two sides of a diff: matched/added/removed entities with their match degrees and provenance, plus, when requested, clause-level changes with deontic strictness classification and contradiction detection.

Ships opaquely. The report is a large, still-evolving aggregate that the backend publishes as a free-form JSON object (#[schema(value_type = Object)]), so — unlike TermSetSelector, whose variants are a small fixed contract the Rust documents as the wire format — pinning it in the SDK would freeze an unstable shape and break consumers on every backend addition. Its keys are wire-format (snake_case); narrow it yourself if you need to read it.

Example

const response = await client.osfDiff.diff({ a: selectorA, b: selectorB });
const report: OsfDiffReport = response.report;