Skip to content

Bound transcript memory during checkpointing#28

Closed
rasmusfaber wants to merge 1 commit into
event-store-transcript-streamingfrom
event-store-transcript-integration
Closed

Bound transcript memory during checkpointing#28
rasmusfaber wants to merge 1 commit into
event-store-transcript-streamingfrom
event-store-transcript-integration

Conversation

@rasmusfaber
Copy link
Copy Markdown

This PR contains:

  • New features
  • Changes to dev-tools e.g. CI config / github tooling
  • Docs
  • Bug fixes
  • Code refactor

What is the current behavior? (You can also link to an open issue here)

Long-running samples keep the full transcript resident in Python memory, and checkpointing historically depended on that resident transcript when writing host context. That blocks bounded-memory execution: evicted events can be lost unless another durable event history is available, and retry/display/compatibility callers still need a way to read full history when necessary.

What is the new behavior?

Bounded transcript mode keeps only a resident tail in memory while using the buffer database as the provider for full-history compatibility. Checkpointing now maintains its own incremental event store for host snapshots, including pooled model inputs/calls and attachments, so checkpoint fires do not need to re-walk an ever-growing resident transcript.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No. Bounded transcript mode remains opt-in for now, and existing transcript access patterns continue to work through provider-backed compatibility paths when buffer history is available.

Other information:

This is PR 3 of 3 in the event-store transcript split and is stacked on the buffer-history PR. It contains the bounded transcript integration, buffer-backed transcript history provider, retry-history behavior, and checkpoint event-store rewrite that need to land together to preserve bounded-memory checkpointing.

@rasmusfaber
Copy link
Copy Markdown
Author

Closing to reopen against upstream origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant