Changelog¶
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased changes live as changelog fragments
under changelog.d/ and are collated here on release with towncrier build.
4.0.0 - 2026-10-03¶
Added¶
GET /threads/{thread_id}/runs/{run_id}/stream— join a run's event stream (SDKruns.joinStream,useStreamreconnectOnMount). Runs created withstream_resumable: truebuffer their SSE events, with the ids the original stream carried, for the run's lifetime plusSkeinoSettings.resumable_stream_ttl_seconds(default 600); a join replays the events afterLast-Event-ID(-1= from the start) and then tails live events. Honoursstream_modeandcancel_on_disconnect. Retained history is capped per run byresumable_stream_max_events(default 10,000) andresumable_stream_max_bytes(default 16 MiB), and per worker byresumable_stream_max_retained_runs(default 16 finished buffers, oldest evicted first); aLast-Event-IDthat is not an event id or-1returns422, a join whoseLast-Event-IDpredates the retained window, or is ahead of the run's last event id, returns409, and a join to an evicted finished run gets final-state events instead of replay. Stateless/runs/streamnever retains history, since its run cannot be joined. (#131)
Changed¶
- Breaking: custom metadata stores must implement two new
MetadataStoreProtocolmethods,touch_runsandfail_stale_runs, andupdate_run_statusnow returns abool(whether a row changed) and only updatespending/runningrows. The four built-in stores already do; a custom store written against 3.x fails the protocol until it adds them. (#orphaned-runs) - Breaking: Streaming runs (
POST .../runs/stream) now execute in a server-side task and honouron_disconnect: with the default"continue"a client disconnect no longer cancels the run, even while it is still queued (it keeps running and can be joined); passon_disconnect: "cancel"for the old behaviour. As tasks, streaming runs can now be cancelled viaPOST .../runs/{run_id}/cancel, awaited viaGET .../runs/{run_id}/join, and superseded by theinterrupt/rollbackmultitask strategies (a streaming run superseded while still queued gets409). A cancelled streaming run ends with anendevent whosestatusisinterrupted. A join (.../joinor.../stream) that lands while a streaming run is still being admitted waits for the run itself rather than reporting it not finished; a join whose run's cleanup fails ends with anerrorevent saying so. A stream whose client leaves during admission releases its event subscription. A join'sstream_modefilter is applied before events reach its delivery queue, so events it would not receive can no longer overflow it. (#131)
Fixed¶
- Runs left
pending/runningby a process that died without a graceful shutdown (crash, OOM kill, hard restart) no longer stay in flight forever. Each process heartbeats the runs it executes (SkeinoSettings.run_heartbeat_seconds, default 30), on a schedule of its own so a slow sweep cannot delay it past the orphan timeout. A sweep at startup and on every tick marks in-flight runs whose heartbeat is older thanorphaned_run_timeout_seconds(default 120;Nonedisables) aserrorwith an "orphaned" reason, and moves their thread offbusy(a thread a later run already settled keeps its status). A run's terminal status is now final:update_run_statusonly changespending/runningrows, so a slow owner cannot flip a swept run back tosuccess; that owner then reports the swept outcome on its stream instead ofend {status: "success"}and leaves the thread status alone. Likewise, a run cancelled after itssuccesswas persisted reportssuccess, and a streaming run that is superseded, cancelled, or whose insert fails after the row was committed is markedinterruptedinstead of leftpending. A queued background run cancelled while waiting for the thread no longer moves the thread toidleunder the run holding it. A thread release that fails is retried on the next sweep, and a thread settle that fails (or is cancelled) after a run'ssuccesswas saved is retried on the next liveness pass, instead of leaving the threadbusy; that includes a failure to read the thread's state, which keeps the threadbusyrather than guessingidleand dropping a pending interrupt. As a crash-safe backstop for both, the sweep also releases a thread leftbusyfor longer than the orphan timeout with no run in flight, settling it by its latest run. A run swept before it started (e.g. while queued) no longer executes or marks its threadbusy. A run whose row was deleted before it finished (its thread deleted, or the swept row removed) reports that it was deleted instead ofsuccess, and leaves the thread alone. The sweep's scans are indexed on every store (new SQLite indexes on in-flight runs and on thread status, and a Postgres index on thread status), so a heartbeat no longer reads the whole run history. It is safe across workers sharing a database: a process never sweeps its own runs, and each row is claimed atomically.orphaned_run_timeout_secondsmust be at least three timesrun_heartbeat_seconds; workers sharing a SQLite or MongoDB store need synchronised clocks (Postgres uses the database clock). Addstouch_runs/fail_stale_runstoMetadataStoreProtocol, andupdate_run_statusnow returns abool(whether a row changed) and only updatespending/runningrows, so custom metadata stores must implement both. (#orphaned-runs)
3.1.1 - 2026-10-01¶
Fixed¶
POST /threads/{id}/runs/waitandGET /threads/{id}/runs/{run_id}/joinnow report a paused run. Their output was the checkpoint's state values alone, and interrupts do not live there, so a run parked oninterrupt()was indistinguishable from a completed one — the awaiting tool call with no result after it, and no__interrupt__to act on. Pending interrupts (from the snapshot, or per task on older LangGraph) are now merged onto the reserved__interrupt__channel, serialized exactly as the streaming path and LangGraph Platform'sruns.waitdo. (#109)
3.1.0 - 2026-09-22¶
Added¶
- LangGraph Studio can now show traces for runs on a skeino server. Studio only
does so when
GET /infoadvertises session-name tracing, and skeino reported nothing but{status, name, version}— so Studio refused ("Studio tracing requires langgraph-api 0.11.0 or later with session-name tracing enabled")./infonow also returns langgraph-api'slanggraph_py_version,flags(langsmith_tracing_session_on_runs,langsmith_tracing_replicas, a livelangsmithflag,crons: false) andhost. Runs acceptlangsmith_tracer: {project_name, example_id}and, when tracing is enabled, execute inside a LangSmith tracing context that writes the trace to that project as well as the server's default one; each run reports the project aslangsmith_session_name. With tracing off, the field is accepted and ignored. (#106)
3.0.1 - 2026-09-22¶
Fixed¶
- Interrupts now reach clients as data instead of as text. LangGraph's
Interruptis a slotted dataclass, which the outbound serializer could not introspect, so it fell back tostr()and streamed the Python repr — an approval UI readinginterrupt.valuefound a string. Dataclasses are now serialized from their declared fields, in both the streaming and state-snapshot serializers. (#104) - A thread parked on an
interrupt()now reportsstatus: "interrupted"instead of"idle", matching LangGraph Platform. The status was written from the run's outcome alone, and a run that ends waiting for a human decision ends successfully — so a thread waiting on an approval was indistinguishable from one with nothing pending. The status is now read from the checkpoint after the run settles; an unreadable checkpoint still falls back to"idle". (#104) - A paused run now reaches the client. The output-schema filter treated
LangGraph's reserved
__interrupt__channel as ordinary graph state and stripped it fromvaluesevents, so a graph that calledinterrupt()looked to the SDK like a run that simply stopped — no approval prompt, no way to resume. Reserved dunder channels are now exempt from the filter in bothvaluesandupdatesevents; graph state is still filtered exactly as before. (#104)
3.0.0 - 2026-09-20¶
Added¶
- Background (async) runs.
POST /threads/{id}/runsnow starts the graph in a background task and returns immediately with apending/runningrun. New endpoints to consume them:POST /threads/{id}/runs/wait(run to completion, returns the final state values),GET /threads/{id}/runs/{rid}/join(wait for a terminal state),POST /threads/{id}/runs/{rid}/cancel(action=interrupt|rollback, optionalwait), andDELETE /threads/{id}/runs/{rid}. Therollbackandinterruptmultitask strategies are now implemented (cancel — and, for rollback, delete — the active run) instead of all returning 409 likereject. (#18)
Changed¶
- Breaking:
POST /threads/{id}/runsis now a background create that returns immediately with a non-terminalRunModel, instead of blocking until the graph finished. To run synchronously and get the output back, call the newPOST /threads/{id}/runs/wait(which returns the final graph state values and theX-Tokens-Usedheader). (#18)
Fixed¶
- Metadata-store indexes are now built with
CREATE INDEX CONCURRENTLYon their own autocommit connection instead of insidesetup()'s transaction. A plainCREATE INDEXholds a lock that blocks writes for the whole table scan, so starting an instance against an existing largeapp_threadsorapp_runscould stall traffic until the build finished. An index left invalid by an interrupted build is dropped and rebuilt rather than skipped forever byIF NOT EXISTS. Index maintenance runs under a Postgres advisory lock, so replicas starting together cannot mistake a peer's in-progress build for an invalid leftover and drop it; an instance that does not get the lock skips the work its peer is already doing rather than blocking startup behind it. (#concurrent-index-build) - Pooled metadata-store connections are no longer handed out inside an open
transaction. The pool's liveness probe ran
SELECT 1on a connection that is not in autocommit, which starts a transaction, so every checkout could arriveINTRANS. Both the metadata store and the checkpointer now useAsyncConnectionPool.check_connection, which toggles autocommit around the probe so the connection comes back clean. A failure of the metadata-store index advisory unlock also no longer masks the index-maintenance error that caused it. (#pool-check-connection) - The Postgres metadata store now runs over a shared
AsyncConnectionPoolinstead of opening a fresh connection for every operation. A connect + TLS handshake + SCRAM exchange per query dominated request latency against a managed Postgres in another region, and the cost scaled with the number of queries a request made. Connections are validated before checkout and prepared statements are disabled, so the store also stays correct behind a transaction-mode pooler. (#pool-metadata-store) - The Postgres checkpointer and metadata store now genuinely disable client-side
prepared statements behind a transaction-mode pooler. Both pools passed
prepare_threshold=0, which psycopg reads as prepare on the first execution — the opposite of the intent — so a query could still be prepared and then fail withprepared statement "_pg3_0" does not existonce pgbouncer or Supabase routed a later call to a different server-side session. The value is nowNone, which is what actually turns preparation off. (#prepare-threshold-disable) ThreadOpsnow rejects asearch_enrich_concurrencybelow 1 instead of accepting it and hanging.asyncio.Semaphorerejects negative values but accepts0, and a bound of0is never acquirable — every thread search would have waited on it forever, raising nothing and logging nothing. Construction now fails loudly with aValueError. (#search-bound-validation)POST /threads/searchno longer costs an extra metadata round trip and a serial graph-state read per result. Rows returned by the store are their own existence proof, so the per-rowensure_existsre-read is gone — a page now costs the one page-level metadata query rather than that query plus a lookup per row — and state enrichment runs concurrently under a bound shared by every search, rather than one row after another.app_threadsalso gains an index onupdated_at, the default search sort. (#thread-search-enrichment)- Redis (and SQLite) checkpoints now carry their
run_id, so checkpoint→run grouping (e.g. in LangGraph Studio) works on every durable backend, not just Postgres. The run-enriching checkpointer wrapper was Postgres-only — it subclassedAsyncPostgresSaver— so Redis and SQLite snapshots were written with norun_id. It is now a backend-agnostic delegating wrapper applied to the Postgres, SQLite, and Redis builders; MongoDB already mergesrun_idnatively and is left unwrapped. (#49)
2.2.0 - 2026-09-02¶
Added¶
- Stateless runs:
POST /runs,/runs/wait,/runs/stream, and/runs/batchexecute against a thread created and deleted inside the request, so a one-shot invocation needs no thread lifecycle from the caller. Previously every client that wanted one open-coded the same three steps — create a thread, run, delete it — and a client that skipped the cleanup leaked a thread per request. The ephemeral thread and its checkpoints are removed whether the run succeeds, fails, or the stream is abandoned mid-flight.POST /runsruns synchronously rather than in the background (skeino has no background executor yet), and a stateless run rejectscheckpointwith a 400: there is no history to resume from. (#21)
2.1.1 - 2026-08-02¶
Fixed¶
- Request bodies now appear in the generated OpenAPI schema (
/openapi.json,/docs, and the Scalar API explorer). skeino's routers parse JSON bodies by hand to toleratetext/plainpayloads, which previously kept their request models (RunCreateRequest,ThreadCreateRequest,ThreadSearchRequest,ThreadStateUpdateRequest,ThreadStateSearchRequest,AssistantSearchRequest,ThreadPatchRequest,CheckpointConfigModel) — and their per-field descriptions — out of the documented schema. The tolerant parsing and the 422 error contract are unchanged. (#67)
2.1.0 - 2026-06-26¶
Changed¶
- Every request/response schema field now carries a description. These render in the Python API reference for all models; response models additionally surface them in the generated OpenAPI schema, Swagger UI (
/docs), and the API explorer. (#68)
Fixed¶
- Postgres checkpointer now runs over a liveness-checked
AsyncConnectionPoolinstead of a single long-lived connection. A connection dropped by the server or a connection pooler (e.g. a Supabase/pgbouncer idle-timeout or recycle) is now detected and replaced on checkout, instead of wedging every subsequent checkpoint read withOperationalError: the connection is closed. Prepared statements are disabled (prepare_threshold=0) so the saver is also correct behind a transaction-mode pooler; pool size is configurable via thepool_max_sizecheckpointer option (default 10). (#70)
2.0.2 - 2026-06-20¶
Security¶
- Bumped transitive dependency
langsmith0.8.5→0.8.18 to resolve a high-severity advisory (LangSmith SDKTracingMiddlewarearbitrary server-side file read).
2.0.1 - 2026-06-20¶
Changed¶
- Bumped dependencies: fastapi 0.136.3→0.138.0, starlette 1.1.0→1.3.1, langchain 1.3.4→1.3.9, langchain-core 1.4.7→1.4.8, langgraph 1.2.4→1.2.6, pydantic-settings 2.14.1→2.14.2, and dev tooling (pytest 9.0.3→9.1.1, ruff 0.15.17→0.15.18). CI now uses actions/checkout v7.
2.0.0 - 2026-06-14¶
Changed¶
- Streaming now mirrors a real LangGraph server: each requested
stream_modeis forwarded faithfully (values= full state per super-step,updates= per-node deltas,custom= graph stream-writer events) instead of synthesising full-historyvaluessnapshots from the message stream.updatesevents are now passed through the same fail-closed output-key filter asvalues, so internal pipeline fields never leak in node deltas. (#57)
Removed¶
SkeinoSettings.agent_nodesandSkeinoSettings.status_field, along with the non-standard token-accumulation streaming path they fed. Consumers that want live progress should emit it from the graph via LangGraph'sget_stream_writer()(customstream mode); clients select incremental streaming with standard modes such asupdates. (#57)
1.1.0 - 2026-06-10¶
Changed¶
- The SQLite metadata store enables
journal_mode=WALand a 10 s busy timeout at setup, preventingdatabase is lockederrors when sharing a database file with the SQLite checkpointer. WAL persists in the database file once enabled. (#36) - Metadata store row shapes are now a typed contract:
ThreadRow/RunRowTypedDicts (exported fromskeino.persistence) replace thedict[str, Any]returns onMetadataStoreProtocol, and every backend now always includes theerrorkey on run rows (previously the in-memory store omitted it until a failure and kept stale values across status updates). HTTP responses are unchanged; customMetadataStoreProtocolimplementations should return the new shapes. (#36) - MongoDB: both the checkpointer and the metadata store now use the database
named in the
mongodb://…/<db>URI path, so graph state and metadata share the operator's chosen database. URIs without a path keep the previous defaults (checkpointing_dbfor checkpoints,skeinofor metadata). If your URI already names a database, both stores re-point to it on upgrade — existing data in the old default databases is not migrated. (#36)
Fixed¶
- PyPI trove classifier updated from
Development Status :: 4 - Betato5 - Production/Stableto match the stable 1.x release line. (#48) - Per-run token usage is now measured with a
UsageMetadataCallbackHandlerattached to each run's config, soX-Tokens-Usedand the streamingendevent report the run's own tokens — including for graphs that never store usage-bearing messages in checkpoint state (previously reported as 0), and without the cumulative over-count on multi-turn threads. Summing the final checkpoint's messages remains as a fallback for providers the handler can't see. (#52)
1.0.1 - 2026-06-10¶
Fixed¶
- Token-by-token
valuesstreaming now works for real langgraph-sdk clients. Two fixes: (1) the incremental accumulator engages whenvaluesis among the requested stream modes (SDK clients send["values", "messages-tuple", "custom"]), instead of only on an exact== ["values"]match that never fired — and it now forwardscustom(UI) events so generative-UI consumers don't regress; (2) output-schema value filtering introspects TypedDict output schemas (the commonStateGraph(State, output=OutputState)pattern) via__annotations__instead of failing closed and stripping every field — previously it droppedmessagesfrom every streamed event, so clients only saw the message after the post-run state fetch. Genuinely opaque schemas still fail closed. (#42)
1.0.0 - 2026-06-07¶
Added¶
- Pluggable, optional database backends selected by
checkpointer_scheme: SQLite (skeino[sqlite]), PostgreSQL (skeino[postgres]), and MongoDB (skeino[mongodb]) — each with a native durable metadata store (SqliteMetadataStore,MetadataStore,MongoMetadataStore) — plus a lazyredischeckpointer builder. All DB drivers are imported lazily, so the default install ships only the in-memory backend. (#25)
Changed¶
- Breaking: persistence is now scheme-authoritative.
checkpointer_scheme(default"memory") alone selects the backend for both the checkpointer and the metadata store; the newcheckpointer_uriis only the connection string for that scheme. A URI without a matching scheme is ignored (e.g.checkpointer_scheme="memory"with a Postgres URI still uses in-memory).langgraph.json'sstore.urinow maps tocheckpointer_uriwith the scheme derived from the URI prefix. (#25) - Adopted towncrier changelog fragments (
changelog.d/): contributors now add a per-change fragment instead of editingCHANGELOG.md, so concurrent PRs no longer conflict on the changelog. (#27)
Removed¶
- Breaking: removed the
postgres_uriandsqlite_pathsettings (which doubled as backend selectors) in favour ofcheckpointer_scheme+checkpointer_uri. PostgreSQL is no longer a hard dependency — installskeino[postgres]for it. (#25)
Fixed¶
skeino.__version__is now derived from the installed package metadata instead of a hard-coded literal that drifted out of sync withpyproject.toml(it had been stuck at0.1.0). (#35)
0.3.0 - 2026-06-07¶
Added¶
- Thread mutation & time-travel endpoints:
PATCH /threads/{id}(update metadata),DELETE /threads/{id}(delete the thread, its runs, and its checkpoints),POST /threads/{id}/state(human-in-the-loop state edit, returning the new checkpoint), and reads at a specific checkpoint viaGET /threads/{id}/state/{checkpoint_id}andPOST /threads/{id}/state/checkpoint. POST /threads/{thread_id}/copy(andThreadOps.copy) — fork a thread into an independent copy seeded with the source's latest state. Metadata is copied and stamped withforked_from. The copy is shallow (latest state only, not the full checkpoint history) and works across the in-memory and Postgres backends.
0.2.0 - 2026-06-07¶
Changed¶
- The
statusfilter onGET /threads/{id}/runsis now typed as theRunStatusliteral, so invalid values are rejected at the API edge with a 422 instead of by a hand-maintained membership check.
Fixed¶
- Assistant lookups no longer resolve an arbitrary valid UUID to the singleton assistant: only a supported id, the configured default id, or the assistant's deterministic UUID match; any other id returns 404.
- The
xray(/graph) andrecurse(/subgraphs) query parameters are now forwarded to LangGraph instead of being silently ignored, so the documented behaviour matches what the endpoints do. - Corrected the
from_langgraph_jsonmodule docstring:store.uriandhttp.corsare consumed;http.app,auth, anduiare ignored with a warning (previously it wrongly listedstoreas ignored and omittedui). - Output-schema filtering now fails closed: when a graph's declared output schema cannot be introspected, all state values are dropped (and the event is logged) instead of being passed through, preventing internal pipeline fields from leaking to API clients via thread state, history, and streaming.
- A checkpoint-read failure when building a thread response now preserves the
thread's stored status and logs a full traceback, instead of masking every
failure as
status="error"with empty values. RunEnrichingCheckpointerno longer copies the inner saver's__dict__over its own initialised state; it now initialises a single saver over the shared connection and delegates reads to the base class, removing two savers sharing mutable connection state.- Streaming runs no longer replay already-sent output when a transient error occurs mid-stream; retries are now confined to the window before the first event reaches the client, preventing duplicated output and double model invocations.
- The
reject/rollback/interruptmultitask strategies are now enforced for streaming runs: the thread lock is acquired before the run row is created, closing a race where concurrent streaming requests could all start and persist orphanpendingrows. - Client disconnects during a streaming run (
CancelledError) are no longer swallowed by the retry loop; the run is markedinterruptedand the thread lock is released. - A failed run's error-state persistence is now best-effort and never masks the
original exception or prevents the client from receiving the
errorevent. - Token usage for synchronous runs is now read while the thread lock is held, so an enqueued run can no longer report another run's totals; checkpoint-read failures during usage accounting are logged at error level.
- Run failures now log a full traceback (
exc_info) instead of just the message. - Threaded the
ThreadIfExists/RunIfNotExists/RunStatusliteral types through the metadata-store protocol and both implementations instead of widening them to barestrat the boundary, so mypy now verifies these closed value sets end to end. Removed the duplicated_RUN_LIST_STATUSESshadow constant.
0.1.0 - 2026-06-06¶
Added¶
- Initial public release.
create_app(graphs={...}, settings=...)— assemble a FastAPI app exposing a LangGraph Studio-compatible REST surface over any user-supplied graph.from_langgraph_json("langgraph.json")— load alanggraph.jsonand build the app.SkeinoSettings— typed configuration (persistence, assistant identity, streaming, server presentation, CORS).GraphRegistry— multi-graph registry (single-graph routed in v1).- Pluggable checkpointer registry with Postgres and in-memory implementations.
- Endpoints: threads, runs (incl. streaming/SSE), assistants, health/info.