ChunkHistoryStore

Tracks the history of processed chunks for incremental analysis. Enables deduplication and resumption of processing.

Implementations should persist this data to allow resumption across sessions. Bookmarks and content-hash deduplication are scoped by ContextId so that isolated sessions (multi-tenant runs, simulations, tests) do not leak state.

Inheritors

Functions

Link copied to clipboard
open fun clearAll()

Remove all history across every context. Default no-op for backward compatibility.

Link copied to clipboard
open fun clearByContext(contextId: <Error class: unknown class>)

Remove all history for the given context. Default no-op for backward compatibility.

Link copied to clipboard

Get the last AnalysisBookmark for a source within a context.

Link copied to clipboard
abstract fun isProcessed(key: HashKey): Boolean

Check if content with the given hash has already been processed in a context.

Link copied to clipboard

Record that a chunk has been processed.