context_checkpoint
Durably checkpoint host deltas and structured task state at stable boundaries, before compaction, or when stopping. Reuse the same idempotency key to prevent conflicts and allow safe retries.
Instructions
Checkpoint host deltas and structured task state durably.
Use at stable boundaries, before compaction, and when stopping. Every retry
must reuse the same unique idempotency_key. base_revision is the
last revision returned by open/pack/status/checkpoint; a stale revision
fails with a conflict instead of overwriting another session. Events are a
JSON array of type, optional role, content, optional
token_count and metadata. State is a JSON object containing any of
objective, plan, decisions, constraints, open_loops,
next_actions, summary and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_ref | Yes | ||
| state_json | No | {} | |
| company_ref | No | ||
| events_json | No | [] | |
| project_ref | No | ||
| session_ref | Yes | ||
| base_revision | Yes | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |