Whitepaper · submitted to USENIX SAIS '27
Monotonic Trajectory Pre-Order Concurrency and Mechanical Recovery for Autonomous Multi-Agent Swarms
The research behind XORAS: stop asking the model to fix its own mistakes, and make shared agent state impossible to silently rewrite.
Figures as reported in the paper's clean-room CI evaluation. Independent replication is welcome — everything needed is in the repository.
The problem in plain English
When several AI agents share the same files, memory or databases, today's frameworks handle mistakes in one of two bad ways. They either lock everything while a model "thinks" (which stalls the whole team for seconds to minutes), or they throw the work away and ask the model to try again. When something breaks, they usually ask the model to fix its own error — which is slow, burns tokens, and sometimes never converges.
Worse, when an agent "takes back" a belief, most systems overwrite history. Nothing crashes, but the record of what happened quietly changes. That's context drift.
The Sovereign Triad
- MARS — Model-Agnostic Reversible State. A strict wall between the plane where models reason (untrusted) and the plane where actions actually execute (deterministic). Proposed actions are tagged as speculative and must pass a validator before they're allowed to touch real state.
- MTPO — Monotonic Trajectory Pre-Order. Undoing something never erases history; it appends an exact inverse step. The timeline only ever moves forward, so it can always be audited and recovered mechanically — no prompt loop needed.
- REASONS — structured delivery contracts. Every mission states what "done" means up front, so success is checked against a contract rather than an agent's say-so.
§ Claim / evidence ledger
We audited our own agents' stress test.
What they claimed vs. what the code did.
The orchestration wasn't broken — that test bypassed it. That gap between report and reality is what XORAS exists to catch.
§ Operating rules
Four rules that stop agents from lying to you.
Receipts, not reports
Every claim links to the run that produced it: inputs, code path, outputs, hash.
No self-grading
The agent that did the work never approves it. An independent validator checks against a contract.
Frozen source of truth
A known-good snapshot to fall back to. Retrace from it, then go forward.
Drift is measured
Each handoff is compared to the original intent. Drift becomes a number, not a vibe.
§ Audit → enforce → prove
Atlas finds it. Sentry fixes it. The Gauntlet proves it.
Atlas
xoras.info · cloud
Reads how your agents work and returns a risk score, attack paths and a fix plan.
Sentry
your machine · local
Runs locally. Today it blocks leaked keys at commit time; next it pulls your Atlas fix plan and applies the boundaries.
UPGP v5.0 Gauntlet
your machine · local
Fires the 15 boundary vectors and compiled exploit binaries, then writes a signed receipt of what held.
Sources: xoras-sentry · upgp-proving-ground. The Atlas-to-Sentry handoff is on the roadmap, not shipped.
§ UPGP v5.0 Ultra — 15-vector boundary suite
What the Gauntlet actually attacks.
| Vector | Defense surface | Pass criteria |
|---|---|---|
| V-01 | Microarchitectural cache isolation | Welch's t-test < 1.96 across cache timings |
| V-02 | Shared-memory pointer protection | Zero exposed heap/pointer addresses in trace buffers |
| V-03 | Dynamic import / exec intercept | eval, execSync, process.binding blocked |
| V-04 | Environment secret isolation | Process environment unreachable |
| V-05 | Filesystem traversal rejection | ../ escapes and sensitive dirs refused |
| V-06 | Outbound network intercept | Zero unauthorized sockets |
| V-07 | Heap allocation ceiling | Heap growth capped per run |
| V-08 | Binary payload scanning | Entropy scan for hidden executables |
| V-09 | State ordering | SHA-256 Merkle chain; replays rejected |
| V-10 | Prototype reflection lock | __proto__ / reflection mutation frozen |
| V-11 | Constructor bypass wall | Function("return process")() intercepted |
| V-12 | /proc/self/root symlink lock | Root symlink escape blocked |
| V-13 | File-descriptor exhaustion barrier | Handle leaks capped with prlimit |
| V-14 | Signal trap immutability | SIGSYS trap cannot be ignored |
| V-15 | Atomic double-buffering | Lock-free shared memory, no lock stalls |
Plus native Seccomp-BPF with 19 kill rules and 5 compiled exploit binaries (ptrace, /proc/self/mem, unshare, raw socket, bpf), all reported contained. Kernel enforcement needs Linux; macOS and Windows run the emulated checks. Results as reported in the repository — run it yourself to reproduce.
MTPO + MARS
Change the state. Keep the history. MARS controls how a proposal becomes an action. MTPO constrains how the recorded trajectory advances—even when an action is undone.
The mathematical structure
A pre-order is a relation ≼ on a set X of admissible trajectories. It is reflexive and transitive; unlike a partial order, it need not be antisymmetric.
MTPO: accepted trajectory transitions preserve this ordering. A recovery is another recorded transition, not a rewrite of the previous trajectory.
In the public Lean model, n is the number of committed entries: the log cannot shrink, and every old entry must remain unchanged. This is the Monotone definition and its reflexivity/transitivity lemmas, written here in mathematical notation.
MARS: separates model proposals from controlled state transitions. For a reversible operation Δ, its inverse restores the affected state when the inverse’s preconditions still hold.
Notation: s = affected state; τ = trajectory; H = event history; Δ = reversible change; ⧺ = append. Only the history-preservation relation above is transcribed from the linked Lean definition; the action and recovery equations are explanatory. Appending a log entry alone does not validate an action.
One proposal, four controlled steps
- 01 / Reasoning plane · untrusted
Propose
An agent proposes a structured change: target, expected version, intended effect and evidence. A proposal is not permission to execute.
- 02 / Boundary · before execution
Validate
The deterministic gate checks the proposal against the allowed transition relation, ownership, version and policy. A rejected proposal leaves committed state unchanged.
- 03 / Execution plane · controlled
Apply & record
For an accepted reversible change, capture its inverse and apply it with a durable receipt. The implementation must keep the state update and its recovery record consistent.
- 04 / Recovery · no erased history
Recover by appending
If a check detects a failure, validate and apply the recorded inverse. Append a recovery event rather than delete the original event or ask the model to invent a repair.
A small, reversible example
An agent proposes changing a counter from 41 to 42. The gate checks the expected version and write permission. After applying the change, a separate acceptance check fails.
The counter goes back; the record does not. If another agent has changed the counter since, a blind inverse could overwrite that work. Recovery must check versions and dependencies first; an unsafe inverse is blocked or escalated.
Instead of a prompt-retry loop
Detect → ask the model to repair → regenerate → recheck → repeat. Each attempt may add latency, tokens and another uncertain result.
For a recorded reversible change
Detect → validate recorded inverse → apply → append receipt. Recovery does not need a new model call to reconstruct the previous state.
Boundary of the guarantee: this is not universal undo. Sent emails, leaked secrets and other irreversible effects cannot be erased by an inverse. They need prevention, explicit approval or a separate compensation workflow. Mechanical recovery also does not solve the original reasoning error; a new proposal may still be needed.
Evidence scope: the linked Lean model covers an abstract append-only log, not concurrent writers, crashes or irreversible side effects. The separate inverse-recovery model assumes an exact inverse exists. The original paper link was unavailable when this guide was checked; MARS is explained using this site’s terminology, not presented as an independently verified formal definition.
How it's verified
The paper shows, in the Z3 solver, that classic 1985 AGM belief contraction lets execution histories reorder, and that MTPO's append-only rule rules this out. The same result is proved in Lean 4 for single steps and for sequences of any length, and a differential checker confirms the Lean and Z3 results agree. A "non-vacuity" gate feeds in a deliberately false theorem to make sure the proof system actually rejects it.
Limitations
The paper includes its own threats-to-validity section. The proofs cover the formal model of the protocol; real-world deployments still need the runtime to faithfully implement that model. That's exactly why XORAS tooling focuses on receipts and independent validation rather than claims.
Authors
Anthony Oxendine and the XORAS Lead 9 Council · XORAS Systems / Sovereign Research Group.