﻿# CrewAI 1.15.40 adds exact SQLite Flow history lookup without changing resume

Query an older row with the correct Flow UUID and verify latest-state loading stays unchanged; historical inspection is not an automatic rollback operation.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-crewai-exact-flow-history-row/
Language: en

CrewAI 1.15.40, released on November 11, adds historical Flow state lookup by row identity. The SQLite-specific method scopes that row to a Flow UUID and leaves latest-state loading unchanged. Reading an earlier snapshot is valuable for diagnosis, but it is a different operation from restoring a workflow or replaying its external effects.

## Row identity and Flow identity belong together

Create two synthetic flows with interleaved saved states and distinctive nested values. Read one older row using its owning Flow UUID, then attempt the same row under the other UUID. Assert the expected state and absence result separately. A globally unique-looking row number should not be treated as sufficient identity by an application history panel, especially when links are copied between sessions or projects.

## Historical reads must leave the head alone

Save a newer state after the historical fixture, inspect the older row, then call the ordinary latest-state loader. Its result should remain the newer state. This checks the read-only contract directly. A diagnostic tool should display the selected historical identity without replacing the workflow’s active reference or marking a formerly completed task pending merely because the operator opened an earlier snapshot for comparison.

## Missing and malformed states need explicit presentation

Exercise a missing row, an unknown Flow UUID and a stored value that does not satisfy the method’s object-state contract. Inspect how the application represents absence. Avoid silently substituting the latest state when a specific historical lookup fails; that makes a requested snapshot appear to exist when it did not resolve. Preserve the requested identifiers in the diagnostic result so an operator can repair a stale link.

## Inspection evidence does not rewind effects

Compare the old state with a harmless external operation ledger and later artifacts. The lookup does not rewind those systems or change resume semantics. A recovery procedure must explicitly reconcile which effects already occurred before deciding to replay work. Record the SQLite backend and exact lookup method; the release does not add this method to every custom persistence backend. Its delivered benefit is precise scoped inspection of saved state.

## Sources

- [CrewAI 1.15.40 release notes](https://github.com/crewAIInc/crewAI/releases/tag/1.15.40)
- [CrewAI implementation and review #8272](https://github.com/crewAIInc/crewAI/pull/8272)

## Related reading

- [Flyte 2 traces: a successful helper checkpoint is different from a failed external attempt](/journal/fg2-flyte-two-trace-success-checkpoint-replay-boundary/)
- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
