kv

history

Read retained version history for one KV key.

strata kv history

wire kv_history

Returns retained history rows for a KV key when history is available. Missing or unavailable history maps to an optional-read result.

Optional reads distinguish present data from missing data. When version or timestamp facts exist on the executor output, SDK mappings should preserve them.

To see the complete help for this command, run:

strata kv history --help

Example

A key that never existed has no history.

strata kv history absent

Parameters

NameTypeRequiredDescription
keyBytesyesKey to read.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

Maybe<Vec<HistoryItem>>

  • dataany
  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

CodeRetryCommit outcome
failed_precondition.engine.runtime_closednevernot_started
not_found.engine.branchnevernot_applicable
invalid_argument.engine.product_spacenevernot_started
invalid_argument.engine.kv_keynevernot_started
← All 13 Key-value commands

agents: this page as markdown → /docs/reference/kv/history.md