Remove all entries (hard delete).
Logical timestamp at which the clear is happening
Remove the entry under key (hard delete, regardless of its when).
Entry key
Logical timestamp at which the delete is happening
true if an entry existed and was removed
Releases any resources held by this instance.
List [key, value] pairs of visible entries (look-ahead-guarded).
Logical timestamp at which the read is happening
Array of [key, value] tuples
Read the value stored under key.
Returns null when the entry is missing or its stored when is greater
than the requested when (look-ahead bias protection).
Entry key
Logical timestamp at which the read is happening
Stored value, or null
Check whether a visible entry exists under key.
An entry with a stored when greater than the requested when counts as absent.
Entry key
Logical timestamp at which the check is happening
true if a visible entry exists
List keys of visible entries (look-ahead-guarded).
Logical timestamp at which the read is happening
Array of keys
Write value under key, stamping it with when.
A write with a smaller when overwrites an existing record.
Entry key
Value to store
Logical timestamp this value belongs to
Count visible entries (look-ahead-guarded).
Logical timestamp at which the read is happening
Number of visible entries
List values of visible entries (look-ahead-guarded).
Logical timestamp at which the read is happening
Array of values
Initialize the dictionary instance.
Whether this is the first initialization
Interface for dictionary instance implementations. Defines the contract for local, persist, and dummy backends.
Intended use: per-signal Map-like storage for strategy callbacks — e.g. caching LLM annotations, per-level flags, or any keyed data tied to the lifetime of one signal.
Every operation receives the logical
whentimestamp for look-ahead bias protection: an entry whose storedwhenis greater than the requestedwhenis invisible (get returns null, has returns false, keys/values/entries/size skip it). A write with a smallerwhenoverwrites an existing record — that lets a restarted backtest reset live-written entries.