Skip to content

Conversation

@bsbodden
Copy link
Contributor

The shallow savers were prematurely cleaning up writes when a new checkpoint was saved, causing Human-in-the-Loop interrupts to be deleted before they could be consumed during resume.

Changes:

  • Remove aggressive write cleanup from aput/put methods in shallow savers
  • Fix registry key consistency using to_storage_safe_str() for checkpoint_ns
  • Add comprehensive HITL integration tests (7 new tests)
  • Update existing tests to reflect new write persistence behavior
  • Fix mypy type errors across checkpoint and store modules

Writes are now cleaned up only via delete_thread, TTL expiration, or explicit overwrite - not during checkpoint transitions.

The shallow savers were prematurely cleaning up writes when a new
checkpoint was saved, causing Human-in-the-Loop interrupts to be
deleted before they could be consumed during resume.

Changes:
- Remove aggressive write cleanup from aput/put methods in shallow savers
- Fix registry key consistency using to_storage_safe_str() for checkpoint_ns
- Add comprehensive HITL integration tests (7 new tests)
- Update existing tests to reflect new write persistence behavior

Writes are now cleaned up only via delete_thread, TTL expiration,
or explicit overwrite - not during checkpoint transitions.
Copy link
Contributor

@abrookins abrookins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Nice addition of HITL integration tests. 👍 LGTM

@bsbodden bsbodden merged commit 7288019 into main Dec 20, 2025
13 checks passed
@bsbodden bsbodden deleted the bsb/issue-133 branch December 20, 2025 00:37
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.

3 participants