Type Alias: RiskTier
@kortexya/reasoninglayer / RiskTier
Type Alias: RiskTier
Section titled “Type Alias: RiskTier”RiskTier =
RiskTierGen
Defined in: src/types/ui.ts:56
Safety tier the server assigns to an OSFQL statement carried by a UI action.
Remarks
Section titled “Remarks”Wire values are snake_case ("targeted_destructive", "additive_write", …) —
re-exported from the generated types since there is no camelCase diff.
The tier on a descriptor action is a coarse pre-filter: the server re-derives the
real tier per authored statement at execution time. Destructive tiers
(targeted_destructive, bulk_destructive) are refused unless the
UIActionRequest.confirm flag is set. A MATCH with an inline write
takes the tier of that write: an inline INSERT, LINK or UPSERT LINK is
additive_write; an inline UPDATE, REMOVE, UNLINK, DELETE or
DETACH DELETE, or an IF/WITH that holds one, is targeted_destructive.
schema_destructive is the tier of DROP SORT, which deletes a sort
durably through the guarded sort delete; schema_change covers the other
schema statements (DEFINE, ALTER SORT). A switch over this union must
keep a default branch: the engine adds tiers. A UI action whose tier is
schema_change or schema_destructive runs only where the deployment sets
OSFKB_UI_ALLOW_SCHEMA, and a dry run of one always answers a preview.
Example
Section titled “Example”const tier: RiskTier = 'targeted_destructive';