Skip to content

Type Alias: Trace

type Trace = object;

Defined in: packages/sdk/src/index.ts:87

SK-TRUST-002 — every successful /v1/ask response carries this block. The compiled SQL + cache state live here, not at the top level. Surfaces render it as an always-present (collapsed by default) trace pane.

Property Type Description Defined in
cache_hit boolean - packages/sdk/src/index.ts:92
confidence number - packages/sdk/src/index.ts:90
model string - packages/sdk/src/index.ts:91
plan_id string - packages/sdk/src/index.ts:89
sql string - packages/sdk/src/index.ts:88
widen? TraceWiden GLOBAL-041 Phase A step 7 — present only when a write to an unobserved table triggered widen-on-write. On the preview hop tables names the unseen table(s) confirming will create (ddl empty); on the committed hop ddl is the CREATE TABLE / ADD COLUMN the engine ran and schema_rewritten says whether the schema version advanced. Absent on every ordinary read/write — the DBA only reports here when it acted. packages/sdk/src/index.ts:99