event

verify_chain

Verify event log density and hash linkage.

strata event verify-chain

wire event_verify_chain

Verifies that the visible event log in the selected branch and space is dense and hash-linked: sequences are contiguous from zero, the genesis record links to the all-zeros hash, and every record's hash matches its content and predecessor.

Status commands return a scalar or compact status payload and do not mutate database state.

To see the complete help for this command, run:

strata event verify-chain --help

Example

Verify the integrity of the event hash chain.

strata event append user.created {"id":1}strata event verify-chain

Parameters

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

Returns

StatusValue<EventChainVerification>

  • dataEventChainVerification
  • 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
← All 10 Events commands

agents: this page as markdown → /docs/reference/event/verify_chain.md