Skip to content

feat: add checkpoint system (LangGraph-inspired)#39

Merged
SonicBotMan merged 1 commit into
mainfrom
feat/checkpoint-system
May 28, 2026
Merged

feat: add checkpoint system (LangGraph-inspired)#39
SonicBotMan merged 1 commit into
mainfrom
feat/checkpoint-system

Conversation

@SonicBotMan
Copy link
Copy Markdown
Owner

Description

Add checkpoint system inspired by LangGraph's architecture.

Key Design Decisions (from LangGraph)

  1. Checkpoint = Recoverable Execution Context (not logs)
  2. thread_id = tenant:user:workflow (multi-tenant isolation)
  3. interrupt_before mechanism for dangerous steps
  4. Pending writes preserved on partial failure

Features

  • CheckpointStore: SQLite persistence with WAL mode
  • CheckpointManager: thread-based isolation
  • Interrupt/resume workflow
  • Checkpoint history tracking

Testing

  • 11 new tests
  • 70 total tests passing

- CheckpointStore: persistent SQLite storage
- CheckpointManager: thread-based isolation, interrupt/resume
- Thread ID format: tenant:user:workflow (multi-tenant)
- interrupt_before mechanism for dangerous steps
- Checkpoint history tracking
- 11 new tests (70 total passing)
@SonicBotMan SonicBotMan merged commit b3c06f1 into main May 28, 2026
1 check passed
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