[KongchangAI]
Productstateguard-core

StateGuard

An open-source Python library that provides a transactional reliability layer on top of LangGraph. It supports pre-commit invariant validation, LIFO Saga compensation rollback, checkpoint wrapping, and audit capabilities, applying database transaction concepts to agent workflows.

Timeline (last 90 days)

Sep 27

StateGuard (stateguard-core) is an open-source library that provides reliability guarantees on top of LangGraph, bringing transactional concepts from the database domain into agent workflows.

Unverified50%
Sep 27

StateGuard's @guarded_node decorator subjects node state output to pre-commit invariant validation before returning it to the graph executor; upon validation failure, it aborts the checkpoint write, restores state to pre-validation status, and triggers Saga compensating actions.

Unverified50%
Sep 27

StateGuardCheckpointer is a wrapper around any standard LangGraph checkpoint that enforces centralized invariant rules on every put checkpoint call.

Unverified50%
Sep 27

StateGuard maintains a last-in-first-out (LIFO) undo stack; each time a node produces an API side effect, the corresponding compensating action is pushed onto the stack, and rollback executes the compensating actions in reverse order.

Unverified50%
Sep 27

StateGuard's drift detection uses rolling Z-score anomaly tracking, continuously monitoring the statistical distribution of state metrics to identify abnormal fluctuations.

Unverified50%
Sep 27

StateGuard's audit store records key events to SQLite and provides the stateguard log command-line tool for developers to inspect after the fact.

Unverified50%
Sep 27

StateGuard is open-sourced under the MIT license.

Unverified50%

All Facts (7)

Source Articles