Skip to content

Type Alias: ConversationNotice

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConversationNotice

ConversationNotice = { intent: string; kind: "write_proposed"; message: string; osfql?: string | null; } | { kind: "pruned_features"; message: string; skipped: SkippedFeature[]; } | { kind: "value_grounding"; message: string; substitutions: ValueSubstitution[]; } | { kind: "claim_check_failed"; message: string; } | { code: string; component: string; kind: "model_unavailable"; message: string; } | { kind: "cognitive_strategy_unavailable"; message: string; reason: string; }

Defined in: src/types/conversation.ts:659

One thing the engine did to a conversation question before it answered.

{ intent: string; kind: "write_proposed"; message: string; osfql?: string | null; }

intent: string

Proposed write intent.

kind: "write_proposed"

A proposed write was not executed.

message: string

User-visible explanation.

optional osfql?: string | null

Proposed statement, never evidence of execution.


{ kind: "pruned_features"; message: string; skipped: SkippedFeature[]; }

kind: "pruned_features"

message: string

The user-facing sentence.

skipped: SkippedFeature[]

Each (sort, feature) projection the engine dropped.


{ kind: "value_grounding"; message: string; substitutions: ValueSubstitution[]; }

kind: "value_grounding"

message: string

The user-facing sentence.

substitutions: ValueSubstitution[]

Each literal and the data value that replaced it.


{ kind: "claim_check_failed"; message: string; }

kind: "claim_check_failed"

The engine could not check the answer against the records, so nothing in it is marked as verified. The answer state is abstained with the gate code claim_check_failed.

message: string

The user-facing sentence.


{ code: string; component: string; kind: "model_unavailable"; message: string; }

code: string

llm_unconfigured (no text model) or llm_provider_failed (its provider failed).

component: string

The /health component the answer needed: text_model.

kind: "model_unavailable"

The text model did not write the answer, so the answer is the engine’s templated summary of what it ran.

message: string

The user-facing sentence.


{ kind: "cognitive_strategy_unavailable"; message: string; reason: string; }

kind: "cognitive_strategy_unavailable"

message: string

The user-facing sentence.

reason: string

Why the strategy could not run, as the engine refused it.

Every notice is a substitution the user must see: the executed query is not the question as the model translated it, or the answer was produced without a step the tenant configured. message is the one-line, user-facing sentence; the other fields carry the same facts as data. Discriminated on kind.