Reversibility-aware execution for AI agents. Rubicon runs what can be taken back first, checks what can't, asks once, and only then crosses the point of no return. If anything fails, is refused or is interrupted before that point, every step that already ran is undone.
plan from the model what Rubicon runs ------------------- ------------------------------------------------ 1. cancel old booking -> 1. search flights (undoable) 2. search flights 2. hold new seat (undoable) 3. hold new seat -- check every permanent step, ask once -- 4. email customer 3. cancel old booking (PERMANENT) 4. email customer (PERMANENT) It works with:
The core is one file with no dependencies beyond the Python standard library.
Status: beta (0.x). The behaviour described here is tested heavily (see Testing), but names and signatures may still change before 1.0. See the changelog.
Agent frameworks treat every tool call the same. A model that writes "cancel the booking, then look for a new flight" will cancel first, find no seats, and leave the user with nothing.
The ideas that prevent this are old: compensating actions (undo steps, as in the saga pattern), dry runs, and one confirmation before anything irreversible. Rubicon puts them into the place where agent tool calls actually run.
flowchart LR Plan["Model Plan (Mixed Undoable & Permanent Steps)"] --> Validate["1. Signature & Dependency Validation"] Validate --> Reorder["2. Topological Reordering (Undoable First, Permanent Last)"] Reorder --> Undoable["3. Execute Undoable Steps (Journaled)"] Undoable -->|"Any Error / Ctrl+C"| Rollback["Reverse-Order Compensating Undo & Journal Recovery"] Undoable -->|"All Succeed"| Precheck["4. Run Pre-Checks & Previews for Permanent Steps"] Precheck -->|"Check Fails"| Rollback Precheck --> Gate["5. Single Human/Policy Confirmation Gate"] Gate -->|"Declined"| Rollback Gate -->|"Approved"| Perm["6. Point of No Return: Execute Permanent Steps"] When to use it, and when not Use Rubicon when an agent mixes actions you can take back (holds, drafts, reservations, reads) with actions you can't (payments, emails, deletions, cancellations), and a half-done plan is worse than none.
pip install rubicon-agents or from a clone, for development:
git clone https://github.com/Ashin-06/rubicon.git cd rubicon pip install -e . The package is called rubicon-agents; you import it as rubicon (plus rubicon_llm, rubicon_mcp, rubicon_otel and rubicon_langgraph). The core needs nothing else. Optional extras add the integrations:
For example pip install "rubicon-agents[gemini,mcp]".
The import name rubicon is also used by BeeWare's rubicon-objc (used by Toga and Briefcase on macOS and iOS). Don't install both into the same environment.
Requires Python 3.10 or newer, on Linux, macOS or Windows.
Copy this into a file and run it. Nothing real is booked.
from rubicon import NOOP, PlanFailed, run, tool seats = {"AI101": 1} bookings = {"OLD1"} @tool(undo=NOOP) # read-only: nothing to undo def search_flights(route: str) -> list: return [flight for flight, free in seats.items() if free] def release(hold): # the undo gets the step's result seats[hold["flight"]] += 1 @tool(undo=release) # undoable def hold_seat(flight: str) -> dict: if not seats.get(flight): raise RuntimeError(f"no seats on {flight}") seats[flight] -= 1 return {"flight": flight} def booking_exists(ref): # the check: raise to block, return text to preview if ref not in bookings: raise LookupError(f"no booking {ref}") return f"Booking {ref} will be cancelled for good" @tool(check=booking_exists) # no undo: permanent def cancel_booking(ref: str) -> str: bookings.remove(ref) return "cancelled" plan = [ # the order a careless model might write {"id": "cancel", "tool": "cancel_booking", "args": {"ref": "OLD1"}}, {"id": "find", "tool": "search_flights", "args": {"route": "BLR-DEL"}}, {"id": "hold", "tool": "hold_seat", "args": {"flight": "AI101"}}, ] def ask(steps): for s in steps: print(f"about to run {s['tool']}{s['args']}: {s['preview']}") return input("Commit? [y/N] ") == "y" # only True approves try: print(run(plan, confirm=ask)) # runs find, hold, then checks cancel, asks, cancels except PlanFailed as e: print("nothing permanent happened:", e) print(seats, bookings) Answer n and the held seat is released: {'AI101': 1} {'OLD1'}. Set seats = {"AI101": 0} and hold_seat fails, so the booking is never touched.
Permanent steps never run without a yes. With no confirm=, run(), arun() and Transaction refuse them: the plan fails at step "confirm" and everything undoable is rolled back. Only a confirm that returns exactly True approves; any other value, an exception or a failed await declines. For unattended runs, opt in with confirm=APPROVE_ALL. Plans with only undoable steps need no confirm. (agent() asks on the terminal by default.)
After anything starts, every failure raises PlanFailed with:
For example, with a plan of hold (hold seat AI101), cancel (cancel booking OLD1) and mail (send the confirmation): if mail fails, OLD1 is already gone, so releasing the AI101 seat would leave the user with no flight at all. Rubicon keeps the seat, reports committed=["cancel"] and not_run=["mail"], and you can retry the email.
Hand Rubicon a complete plan, written by you or by a model, and it runs it as shown above.
Most agent frameworks call tools one at a time and decide the next call from the last result. Transaction guards that loop:
from rubicon import Transaction from rubicon_llm import ask_human with Transaction(confirm=ask_human) as tx: tools = tx.wrap_all() # a list of guarded functions: same names, docs, signatures my_agent.run(goal, tools=tools) # your agent loop # commits here; an exception inside the block rolls everything back Wrapped tools take positional and keyword arguments like the originals, and are async when the tool or its check is async. Pass them wherever your framework accepts plain Python functions. You can also call tools directly with tx.call("hold_seat", "AI101") and finish with tx.commit() or tx.rollback(). Each call gets a step id of the form - (hold_seat-1, cancel_booking-2). These ids appear in tx.results, the confirmation, the journal and dead letters. tx.id identifies the transaction in the journal (you need it for acknowledge()). tx.undone, tx.undo_failed, tx.committed and tx.results say what happened. You can commit in stages: call tx.commit() in the middle, and keep going. Everything up to that point becomes final; a later failure only rolls back what came after. A permanent tool's real result only exists after commit. Design the agent so it doesn't need that result to choose its next step, or commit in stages.
Plans are plain JSON so a model can write them:
[ {"id": "hold", "tool": "hold_seat", "args": {"flight": "AI101"}}, {"id": "mail", "tool": "send_email", "args": {"to": "me@example.com", "body": "Moved to $hold.flight"}, "after": ["hold"]} ] Field Meaning id Unique step name. Starts with a letter or _, then letters, digits, _ or - tool A registered tool name args Keyword arguments for the tool (optional). Checked against the tool's signature after Step ids that must run first (optional) References let a step use an earlier step's result:
from rubicon import tool @tool( undo=lambda result, args: delete_file(args["path"]), # undo(result) or undo(result, args) retries=0, # extra attempts for the tool itself; only for tools safe to repeat undo_retries=2, # extra attempts for the undo, with backoff (the default) timeout=30, # seconds per attempt; async functions only ) def put_file(path: str, content: str) -> str: ... def preview_cancel(ref): booking = find(ref) # raise to block the commit return f"Cancel {ref} ({booking.route}), fee {booking.fee}" @tool(check=preview_cancel) # its return value is shown when confirming def cancel_booking(ref: str): ... An undo with a second required parameter (or one named args) gets the call's arguments as well as its result, for tools that only return "ok". A second parameter with a default, such as undo(result, force=False), is left alone. Make every undo idempotent. If the process dies after an undo but before it is journaled, recover() runs it again; the same is true of any compensation-based system. A check receives the tool's arguments (with defaults filled in), limited to the parameters it declares, so def must_exist(ref) works for def cancel(ref, reason="user"). confirm(steps) receives a list with each permanent step's id, tool, resolved args and preview. Return true to go ahead. Use UNSET as the default of an optional parameter that should be left out of the call entirely (not passed, not shown at confirmation, not journaled), for example so a remote API applies its own default. MCP tools use it for every optional parameter. timeout= only applies to async functions; a sync function can't be interrupted safely. Registering a sync tool with a timeout logs a warning. Registering a name again replaces the earlier tool in that registry. MCP servers import asyncio from mcp import ClientSession, StdioServerParameters from mcp.client.stdio import stdio_client from rubicon import arun from rubicon_mcp import register_mcp async def main(): server = StdioServerParameters(command="python", args=["my_server.py"]) async with stdio_client(server) as (read, write), ClientSession(read, write) as session: await session.initialize() call = await register_mcp( session, trust_readonly=True, # see "Security and limitations" undo={"create_issue": lambda r: call("delete_issue", id=r["id"])}, ) plan = [{"id": "i", "tool": "create_issue", "args": {"title": "Seat moved"}}] print(await arun(plan)) asyncio.run(main()) register_mcp accepts an SDK 1.x or 2.x ClientSession, or an SDK 2.x mcp.Client. It labels each tool:
A runnable end-to-end example with a real stdio server: examples/mcp_agent_demo.
rubicon_langgraph.Guard puts one Transaction behind a LangGraph agent. Its tools go into a ToolNode; undoable ones run at once, permanent ones are checked and scheduled. A commit node at the end of the graph asks for confirmation as a human-in-the-loop interrupt, then commits.
from langgraph.types import Command from rubicon_langgraph import Guard guard = Guard(registry) builder.add_node("tools", ToolNode(guard.tools(), handle_tool_errors=True)) builder.add_node("commit", guard.commit_node) # acommit_node for ainvoke (3.11+) graph = builder.compile(checkpointer=MemorySaver()) # interrupts need a checkpointer with guard: # an error in the graph rolls back out = graph.invoke(inputs, config) # out["__interrupt__"][0].value["steps"] graph.invoke(Command(resume=True), config) # only True approves print(guard.results or guard.failure) The interrupt's value is {"rubicon": "confirm", "steps": [...]}, with each step's id, tool, resolved arguments and check preview. Any resume value other than True rolls back. The Transaction lives in the process that runs the graph, so resume there. examples/langgraph_agent.py runs offline with a stub model: python examples/langgraph_agent.py (or --no to decline).
from functools import partial from rubicon_llm import agent, plan_with_claude, plan_with_openai agent("Move my booking OLD1 to AI101 and email me@example.com") # Gemini (default) agent("...", planner=plan_with_claude) # Claude agent("...", planner=partial(plan_with_openai, model="gpt-5.1")) # OpenAI agent("...", planner=partial(plan_with_openai, model="llama3.3", # Ollama, LM Studio, base_url="http://localhost:11434/v1")) # vLLM, Groq, OpenRouter, ... Planner Extra Key Default model plan_with_gemini gemini GEMINI_API_KEY or GOOGLE_API_KEY gemini-3.5-flash plan_with_claude claude ANTHROPIC_API_KEY claude-opus-5-5 plan_with_openai openai OPENAI_API_KEY (not needed for local servers) none, pass model= Override the default models with the GEMINI_MODEL and CLAUDE_MODEL environment variables, or pass model=. They are read each time a planner runs. (Only demo.py reads a .env file; in your own code set the variables, or load the file yourself, for example with python-dotenv.)
agent() asks for confirmation on the terminal by default (ask_human), which answers no when no terminal is attached. Pass confirm= to decide another way.
Before rejecting a plan, parse_plan() fixes small mistakes locally when there is exactly one right answer, so they cost no extra model call:
References ("$step...") are never changed, and nothing ambiguous is guessed: an answer with two different plans in it is rejected. Every repair is logged; pass repairs=[] to collect them, or repair=False for strict parsing.
If a plan is still rejected (bad JSON, unknown tool, wrong argument names, bad ids), agent() sends the model its previous plan and the error and asks for a corrected one, up to attempts=2 plans in total. A final rejection raises PlanRejected, a ValueError whose text is what the model wrote. Other errors, such as a missing API key, are raised at once.
plan_with_openai sends a strict JSON Schema by default. Use json_mode="object" for servers that only have a JSON mode, and json_mode="none" for servers with neither.
agent() passes parallel=, on_event= and journal= through to run().
To use any other model or framework:
from rubicon import run from rubicon_llm import parse_plan, planning_request req = planning_request(goal) # {"system", "prompt", "schema"} text = my_model(req["system"], req["prompt"], json_schema=req["schema"]) run(parse_plan(text)) The model sees every registered tool with its JSON Schema parameters (from type hints, including Optional, Literal, enums and typed lists, or from MCP) and whether it can be undone.
In short: pass journal=, call recover() when your service starts, and alert on dead letters.
from rubicon import recover, run run(plan, journal="rubicon.jsonl") # every step is recorded durably recover("rubicon.jsonl", on_dead_letter=page) # after a restart: undo what a crash left half-done How recovery decides:
Each report is {"tx", "undone", "undo_failed", "committed", "uncertain", "needs_attention", "kept"}. Only one recover() runs per journal at a time; a second one raises JournalBusy.
recover() is safe to run while other workers use the same journal. Every record says which process and machine runs the transaction, and recover() leaves alone any transaction whose process is still alive on this machine, or that belongs to another machine (it can't check from here). Run recover() on each machine, or pass include_live=True when you know the other processes are gone.
from rubicon import FileJournal, PostgresJournal, SQLiteJournal run(plan, journal="rubicon.jsonl") # same as FileJournal("rubicon.jsonl") run(plan, journal=SQLiteJournal("rubicon.db")) # many processes and threads on one machine run(plan, journal=PostgresJournal("postgresql://app@db/app")) # several machines Journal Use it for FileJournal(path) One machine. JSON lines, each write flushed and fsynced; writers in several processes take turns through an OS file lock (the empty .lock file next to the journal stays on disk by design). SQLiteJournal(path) One machine, many processes or threads. Standard library only (WAL mode, full sync). PostgresJournal(conninfo, table="rubicon_journal") Several machines sharing one PostgreSQL database. Needs the postgres extra. Writes take a transaction-level advisory lock, so record order is commit order; lock() is a session advisory lock the server releases if the holder dies. Your own object Another shared store (Redis, a queue). See below. Your own journal needs append(records) (store a list of JSON-serializable dicts, in order, atomically) and records() (return them all, oldest first). Optionally:
Some steps need a person: an undo that kept failing, a crash in the middle of a step, or a permanent step whose outcome is unknown. These are dead letters. They stay in the journal until someone resolves them, so nothing gets lost between restarts.
from rubicon import acknowledge, dead_letters, recover recover(journal, on_dead_letter=page_on_call) # called once for each dead letter for letter in dead_letters(journal): # {"tx", "step", "kind", "reason", "time"} ... acknowledge(journal, letter["tx"], letter["step"], note="fixed by hand") acknowledge(journal, letter["tx"], note="the payment went through") kind is "undo_failed", "uncertain" (a crash during an undoable step) or "in_flight_permanent" (a crash during a permanent step). on_dead_letter is called once for each dead letter, including those a rollback in run() or a Transaction recorded itself, the next time recover() runs with it. For a crash during a permanent step: if the step did not happen, acknowledge just that step, and the next recover() undoes the steps it was keeping. If it did happen, acknowledge the whole transaction, which settles what recovery kept and found in flight. Acknowledging a whole transaction never settles undos still owed from an earlier rollback (they keep being retried, or acknowledge them by name), nor a stage the worker started after the crash report. acknowledge() raises ValueError for a transaction or step the journal doesn't contain, so a typo can't leave the real dead letter open. Keeping the journal small compact(journal) removes settled transactions and keeps everything that is unfinished, owes an undo or has an unresolved dead letter. Run it on a schedule or at startup. It is safe to run while workers write: records written after it read the journal are kept.
run(plan, on_event=print) # structured events run(plan, parallel=True) # independent undoable steps at the same time run(plan, log=print) # progress messages somewhere other than logging on_event receives dicts such as {"event": "step_done", "step": "hold", "tool": "hold_seat", "duration_ms": 12.3, "tx": "...", "time": ...}. Events: step_started, step_done, step_failed, check_passed, gate_confirmed, gate_declined, step_committed, step_undone, undo_failed, tx_failed (with the failing step, the error and what did not run) and tx_settled (status committed, rolled_back or step_failed, once per commit or rollback). Forward them to your logger, or to OpenTelemetry with rubicon_otel. If an on_event or log callback raises, the error is logged as a warning and execution carries on unchanged. The library logs to the standard logging module under the name "rubicon": progress at INFO, problems at WARNING. It never prints, apart from ask_human, the terminal prompt. parallel=True runs undoable steps in waves of steps that don't depend on each other. If one fails, or the run is cancelled or interrupted, the rest of the wave is stopped first and then everything completed is undone, so no step can finish after the rollback. Permanent steps always run one at a time, in order. A step cancelled mid-flight never recorded a result, so it is not undone: run only steps that are safe to cancel (local or idempotent work) in parallel. OpenTelemetry rubicon_otel.tracing() is an on_event callback that records each transaction as a span tree, under whatever span is current when it starts:
from rubicon_otel import tracing run(plan, confirm=ask, on_event=tracing()) # uses the globally configured tracer provider Span Covers Attributes (all rubicon.*) rubicon.transaction one plan, or one stage of a Transaction tx, status, undo_failed rubicon.step a step, from start to done, committed or failed step, tool, permanent, outcome, duration_ms rubicon.check a check that passed step, tool, preview rubicon.gate the confirmation steps, confirmed rubicon.undo an undo that ran or failed step, tool rubicon.failure the failure that started a rollback step, error, not_run Failed steps and undos, a declined gate, and a transaction that failed or still owes an undo get status ERROR. Previews and errors become span attributes, so keep secrets out of them.
Everything has an async form, and tools, undo, check and confirm functions can be async def.
Every function takes registry=. Pass your own dict to keep tool sets apart:
billing = {} @tool(check=validate, registry=billing) def charge(amount: int): ... run(plan, registry=billing) Without registry=, tools go into the shared default registry, rubicon.TOOLS.
The demo plans a real booking change with a real model, against fake in-memory travel tools, so nothing is booked or sent.
pip install -e ".[gemini]" # or [claude], [openai] cp .env.example .env # then put your key in .env (Windows: copy .env.example .env) python demo.py # Gemini python demo.py claude # Claude python demo.py openai # OpenAI-compatible: set OPENAI_MODEL (and OPENAI_BASE_URL) in .env python demo.py claude --yes # approve the permanent steps unattended (APPROVE_ALL) API reference rubicon Name Description tool(fn=None, *, undo=None, check=None, name=None, registry=None, retries=0, undo_retries=2, timeout=None) Register a tool. See Tools. NOOP Undo function for read-only tools. UNSET Default for optional parameters that should be left out of the call entirely. run(plan, registry=None, confirm=None, log=None, *, parallel=False, on_event=None, journal=None), arun(...) Run a plan and return {step_id: result}. Without confirm, permanent steps are refused. APPROVE_ALL confirm=APPROVE_ALL approves permanent steps with nobody asked, for unattended runs. order(plan, registry=None) Validate a plan and return the order it would run in. Raises ValueError. Transaction(registry=None, confirm=None, log=None, *, on_event=None, journal=None) Guard an agent loop. Methods: call/acall, commit/acommit, rollback/arollback, wrap(name), wrap_all() (a list). Attributes: id, results, committed, undone, undo_failed. A sync or async context manager. PlanFailed Raised after rollback. Attributes: step, cause, undone, committed, not_run, undo_failed, results. recover(journal, registry=None, log=None, *, on_dead_letter=None, include_live=False), arecover(...) Undo what crashes left unfinished, leaving running transactions alone. Returns one report per transaction it worked on. dead_letters(journal) Steps that need a person, oldest first. acknowledge(journal, tx, step=None, note="") Mark a dead letter, or a whole transaction, as handled. compact(journal) Remove settled transactions; returns how many. FileJournal(path), SQLiteJournal(path), PostgresJournal(conninfo, table=...) Built-in journals. journal= also accepts a path or your own object. JournalBusy Raised when another process holds the journal's lock. tools_for_llm(registry=None) Tools as {name, description, reversible, parameters}, with JSON Schema parameters. Tool A registered tool (fn, undo, check, retries, undo_retries, timeout, reversible). TOOLS The default registry. rubicon_mcp Name Description await register_mcp(session, *, prefix="", trust_readonly=False, undo=None, checks=None, registry=None) Register every tool of an MCP server. Returns an async call(name, **args) for calling server tools directly, for example from an undo. await list_all_tools(session) All tools, following pagination. rubicon_llm Name Description agent(goal, planner=plan_with_gemini, client=None, registry=None, confirm=ask_human, log=None, *, attempts=2, **run_kwargs), aagent(...) Plan with a model (repairing small mistakes, retrying rejected plans with the error), then run the plan. plan_with_gemini, plan_with_claude, plan_with_openai Turn a goal into a validated plan. Signature (goal, client=None, registry=None, ...); pass client= to reuse or customise an SDK client. planning_request(goal, registry=None) {"system", "prompt", "schema"} for any model. parse_plan(text, registry=None, *, repair=True, repairs=None) Turn model output into a validated plan, repairing small unambiguous mistakes first. plan_schema(registry=None) The plan's JSON Schema. SYSTEM The system prompt the planners use. PlanRejected ValueError raised for a plan that fails parsing or validation; .text is the model's output. GEMINI_MODEL, CLAUDE_MODEL Default models, overridable with environment variables of the same name. ask_human(steps) Terminal confirmation with previews. Returns False when no terminal is attached. How it compares Rubicon Saga libraries Durable workflow engines (Temporal, DBOS, ...) Human-in-the-loop interrupts in agent frameworks Reorders a plan so undoable steps come first Yes No No No Undoes completed steps on failure Yes Yes You write it No One confirmation before anything permanent Yes No You write it Yes, per interrupt Checks arguments against tools before running Yes No No Partly Survives a crash Undoes the interrupted work Varies Resumes the workflow Resumes from a checkpoint Infrastructure None (a file or SQLite) Varies A server Your framework Rubicon is a small, in-process executor built for model-written plans. It complements a durable workflow engine rather than replacing one: use the engine when work must resume, and Rubicon around the tool calls an agent makes.
To report a vulnerability, see SECURITY.md.
The suite has 239 pytest tests with 91% line coverage, grouped by feature under tests/. No API keys or network are needed. The PostgreSQL tests are skipped unless RUBICON_PG_DSN points at a database (RUBICON_FUZZ_PG sets their fuzz count, default 100). Rollback correctness under injected failures: docs/BENCHMARK.md.
Reproducible via python tools/rollback_benchmark.py --trials 300 --seed 1:
pip install -e ".[all,dev]" pytest --cov # everything, with coverage pytest tests/test_confirm.py # one area: the fail-closed confirmation gate File Covers tests/test_core.py ordering, checks, the gate, rollback, Transaction, journals, recovery, dead letters, compaction tests/test_confirm.py missing, raising, truthy-but-not-True and async-failing confirms never run a permanent step tests/test_sync_loop.py sync calls reuse one event loop per thread, stay fast and still unwind on Ctrl+C tests/test_otel.py OpenTelemetry spans, checked with the in-memory exporter tests/test_langgraph.py the LangGraph guard: interrupt, approve, decline, errors, async graphs, the example tests/test_mcp.py MCP adapter against an in-memory MCP server tests/test_llm.py planners and agent() with stub clients tests/test_failure_injection.py end state after rollback and recovery under real injected HTTP and SQLite failures tests/test_mcp_agent_demo.py the MCP agent demo, end to end tests/test_postgres.py PostgresJournal contract and fuzz; skipped unless RUBICON_PG_DSN is set tests/test_fuzz.py randomised invariants, below Every test starts from a fresh world, so the suite passes in any order; CI also runs it shuffled with pytest-randomly. The Gemini planner tests skip when the gemini extra is not installed.
tests/test_fuzz.py adds randomised invariant tests. They generate random plans and agent loops with tool failures, failing checks, declined confirmations, undo outages, parallel runs and process deaths at every possible point, including in the middle of a recovery. Some scenarios have another worker run recover(), compact() and acknowledge() on the same journal while a transaction is running, including in the middle of an undo. After each one, a simulated operator resolves the dead letters and recovery runs until done. Then the tests check the rules that must always hold:
pytest tests/test_fuzz.py # 400 of each scenario, as in CI RUBICON_FUZZ=20000 pytest tests/test_fuzz.py # deep run RUBICON_FUZZ_SEED=1234 pytest tests/test_fuzz.py # replay a reported failure (On Windows PowerShell, set variables first: $env:RUBICON_FUZZ=20000; pytest tests/test_fuzz.py.)
CI runs the core tests with only pytest and pytest-timeout installed, then the full suite on Python 3.10 to 3.14 on Linux, Python 3.12 on Windows and macOS, and MCP SDK 1.x and 2.x. It also builds the package and runs the suite against the installed wheel.
rubicon.py core: registry, ordering, validation, gate, rollback, Transaction, journals rubicon_mcp.py MCP adapter rubicon_llm.py Gemini, Claude and OpenAI-compatible planners, plus bring-your-own-model helpers rubicon_otel.py OpenTelemetry spans and events rubicon_langgraph.py LangGraph guard for tool nodes demo.py live demo with fake travel tools examples/ LangGraph example and the MCP agent demo tools/ rollback_benchmark.py (results in docs/BENCHMARK.md) tests/ pytest suite, including the randomised invariant tests Contributing Issues and pull requests are welcome; see CONTRIBUTING.md. Bugs with a small script that reproduces them get fixed fastest. Maintainers release as described in RELEASING.md.
Both files in this release have provenance metadata.
mcp gemini claude openai postgres otel langgraph all dev
agents llm mcp safety rollback saga planning transactions
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 23, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance




