Skip to content

Interface: UIActionResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / UIActionResponse

Defined in: src/types/ui.ts:441

Response from executing a UI action.

optional affectedPreview?: AffectedPreviewDto | null

Defined in: src/types/ui.ts:447

What the program would do. Present on every successful dry run — a read or an additive write included. A dry run whose preview cannot be built at all (a deadline, a compile error) answers success: false with error.


optional bindings?: unknown[] | null

Defined in: src/types/ui.ts:452

Read-back rows for run_osfql reads (goals, global gets, hierarchy, aggregates). A binding that holds a list (e.g. HIERARCHY ANCESTORS OF x INTO ?A) is a JSON array.


optional diagnostics?: string[]

Defined in: src/types/ui.ts:453


optional dryRun?: boolean

Defined in: src/types/ui.ts:455

Echo: true means this was a dry-run preview and nothing was mutated.


optional error?: string | null

Defined in: src/types/ui.ts:461

Why the action failed, when UIActionResponse.success is false. A failure of a program that had started ends with (the program was rolled back: …): nothing the program wrote is kept.


optional pendingReviewId?: string | null

Defined in: src/types/ui.ts:463

Pending review id to surface/approve when UIActionResponse.requiresApproval is true.


optional producedTermIds?: string[]

Defined in: src/types/ui.ts:464


optional requiresApproval?: boolean

Defined in: src/types/ui.ts:469

true means the action was enqueued for human approval and nothing was mutated. Pairs with UIActionResponse.pendingReviewId.


optional requiresConfirmation?: boolean

Defined in: src/types/ui.ts:474

true means a destructive tier was refused for lack of confirm: true (no mutation happened) — the caller should surface a confirmation flow.


optional retractedTermIds?: string[]

Defined in: src/types/ui.ts:480

Term ids the action removed: every term a RETRACT matched, plus the derived facts the removal invalidated. Absent when the action removed nothing.


optional riskTier?: RiskTier | null

Defined in: src/types/ui.ts:482

Server-classified risk tier of the final statement.


success: boolean

Defined in: src/types/ui.ts:489

Whether the action succeeded. Every action is atomic: on false nothing is kept, and the reason is in error. A delete_record that removes nothing answers false, and so does a "sort_ref" value that names no term, or a term the caller cannot see (… names no term …).