AnalysisBookmark

data class AnalysisBookmark(val sourceId: String, val endIndex: Int, val processedAt: Instant)

Resume marker for incremental source analysis within a ContextId.

When AbstractIncrementalAnalyzer processes a growing source (conversation, message stream, log tail), it cannot re-read from the beginning each time. After each successful window it records an AnalysisBookmark so the next invocation knows how far analysis has progressed for that BookmarkKey.

endIndex is the exclusive upper bound of items already incorporated into a processed window. The analyzer uses it to:

Bookmarks complement content-hash deduplication (ChunkHistoryStore.isProcessed): the hash prevents re-processing identical text, while the bookmark prevents re-scanning from index zero when new items append to the same source.

Cleared by ChunkHistoryStore.clearByContext when a session or tenant ends.

Constructors

Link copied to clipboard
constructor(sourceId: String, endIndex: Int, processedAt: Instant)

Properties

Link copied to clipboard

Exclusive index of the last analyzed item in the source sequence

Link copied to clipboard

When this bookmark was last updated

Link copied to clipboard

Identifier of the incremental source (e.g. conversation id)