Inspiration

What happens when an AI agent makes the right decision based on information that is no longer true?

As autonomous agents become increasingly capable of executing consequential actions, we believe reliability must extend beyond generating accurate responses.

Consider an agent preparing a financial settlement. Everything appears valid until the underlying approval is revoked moments before execution. The agent's reasoning may have been correct when it was generated, but its proposed action is now invalid.

Restarting the entire workflow wastes valid work. Continuing without revalidation creates risk.

We built RETRACT to explore a different approach: infrastructure that understands why decisions were made, recognizes when their supporting evidence changes, and selectively repairs the resulting consequences.

Our guiding principle is simple:

When facts change, intelligence must change with them.

What it does

RETRACT is an open-source, graph-native causal recovery engine for autonomous agents.

It maintains explicit relationships between facts, evidence, justifications, decisions and proposed actions.

When information changes, RETRACT identifies affected decisions, blocks stale actions and searches for valid recovery alternatives while preserving unrelated work.

Its interactive Mission Control demonstrates a simulated financial settlement:

  1. An agent workflow prepares a $100 settlement.
  2. The primary approval is revoked.
  3. RETRACT identifies three affected decisions and blocks the stale settlement.
  4. Three unrelated decisions remain valid.
  5. The recovery engine selects a five-credit alternative justification from its declared repair catalog.
  6. All six decisions become valid again.
  7. The original stale authorization remains blocked, while a fresh authorization permits the simulated settlement.

RETRACT also provides persistent decision history, independent replay, isolated counterfactual branches, revision-gated branch promotion, provenance tracking and independently verifiable recovery proofs.

The system can reject modified proofs, providing a way to inspect whether recovery evidence remains consistent.

How we built it

We built RETRACT using Python and Relate as its authoritative embedded graph database.

Relate is fundamental to the application rather than an auxiliary storage layer.

Facts, decisions, versions and justifications are connected through explicit graph relationships. RETRACT reads these relationships from the native database to evaluate causal dependencies and determine the consequences of corrected or revoked evidence.

The architecture combines:

  • Versioned facts and explicit decision justifications.
  • Dependency-aware invalidation.
  • A deterministic recovery engine.
  • Minimum-cost repair selection within a declared recovery catalog.
  • Revision-bound execution guards.
  • Transactional event journaling.
  • Persistent native Relate databases.
  • Independent replay and proof verification.
  • A transport-neutral provenance middleware.
  • Browser-based Mission Control, Time Machine and Policy Lab experiences.

The graph is persisted in native Relate database files that can be reopened and inspected through Cypher queries.

We deliberately separated model-driven proposal selection from deterministic authorization and recovery. An AI model can suggest an action, but it cannot bypass the execution guards.

The default demonstration runs with a deterministic policy agent and requires no API keys, cloud database or external model service. Optional live model adapters are available separately.

We used AI-assisted development, automated tests, browser acceptance testing, native database verification and continuous integration throughout development.

Challenges we ran into

One of the most difficult challenges was determining how changes in evidence should propagate through interconnected decisions without unnecessarily invalidating unrelated work.

We needed to distinguish between a decision that has genuinely lost its justification and one that remains supported through an alternative.

Another challenge was preventing stale actions from being executed after recovery. Restoring a decision to a valid state must not automatically restore an outdated execution authorization.

We addressed this through revision-bound execution certificates and deterministic execution guards.

Maintaining consistency between the native graph, transactional history, recovery proofs and replayed state introduced additional engineering challenges.

We also wanted the recovery evidence to be independently inspectable rather than relying solely on the application claiming that a recovery succeeded.

Finally, we had to communicate a complex infrastructure problem through a simple, reproducible demonstration. Mission Control was designed around a concrete incident so users can immediately understand the problem, the affected dependencies and the recovery outcome.

Accomplishments that we're proud of

  • Building a functional causal recovery engine backed by native Relate graph storage.
  • Demonstrating selective invalidation while preserving unrelated valid decisions.
  • Preventing stale simulated actions from executing after their evidence changes.
  • Implementing deterministic recovery and alternative justification selection.
  • Producing independently verifiable recovery proofs with tamper detection.
  • Reopening the exact persistent Relate database generated during browser execution and independently inspecting its relationships.
  • Supporting event replay, counterfactual branches and revision-gated promotion.
  • Passing 279 automated tests with zero failures or skips in both the checkout and unpacked source distribution during final pre-merge verification.
  • Verifying all 12 native benchmark samples and their persisted database reopening.
  • Delivering a reproducible, open-source demonstration without requiring paid AI APIs or external infrastructure.

Most importantly, we demonstrated that an agent workflow can recover from changed evidence without treating every previously completed decision as disposable.

What we learned

We learned that reliable autonomous systems require more than capable language models.

They need explicit representations of evidence, dependencies, authorization and the conditions under which previous decisions remain valid.

Graph databases provide a natural foundation for representing these relationships and reasoning about the consequences of change.

We also learned that recovery is not simply rollback. In many workflows, the appropriate response is to preserve valid decisions, replace invalid justifications and establish fresh authorization.

Independent verification is equally important. A recovery system should provide inspectable evidence of what changed, why it changed and which decisions remained unaffected.

Building RETRACT reinforced our belief that deterministic infrastructure and probabilistic AI models can complement each other.

What's next for RETRACT

RETRACT is currently an open-source research preview operating on synthetic local workflows.

Our next objective is to extend its recovery semantics toward practical agent infrastructure.

Future directions include:

  • MCP-compatible provenance and execution middleware.
  • Integrations with existing agent orchestration frameworks.
  • External evidence revalidation and source-change detection.
  • Distributed execution guards and recovery coordination.
  • Enterprise procurement, compliance and approval workflows.
  • Larger-scale performance evaluation.
  • Additional independently verifiable recovery formats.
  • Human approval and intervention mechanisms.

Our long-term vision is to make causal recovery a foundational capability for autonomous systems.

Agents should not merely know what to do.

They should know when their reasons for doing it are no longer valid.

Built With

Share this project:

Updates

Submission history