Fiducia

Trusted agentic development, continuously verified.

Code, formalise, verify, repair. Then build.

An agent writes. fic checks, verifies and runs.

Asked for a debug tap that would let the Low side read High data, a coding agent adds it. fic rejects it, and the agent backs out and logs on the High side instead. Then every build derives the system model from the program itself: fire verify proves the C contracts and checks the model, and fire run boots the image in QEMU, where the frames cross the diode.

demo/datadiode

        

A real Claude Code session (Sonnet 5.5) with fic 2.81.3 on its demo/datadiode. Prompts and the agent's messages are shortened; file reads, warnings, repeated lines and two runs that logged to a mistyped path are left out; nothing is added.

Security and correctness, built in.

Fiducia closes the trust gap between the formally verified seL4 kernel and the applications built on top. It catches entire classes of bugs at compile time that would be invisible at runtime.

The language

Process-Oriented Programming

Each protection domain is a CSP-style process that orchestrates channel communication and computation events, calls into C, with guarded choice. Clear, composable and verifiable.

Secure by Design

A two-level security type system (Low/High) statically enforces that sensitive data never leaks to lower-security domains. No runtime checks needed.

Deadlock-Free by Design

Every well-formed system, with acyclic communication dependencies and guarded choices that partition the state space, is deadlock-free and deterministic.

The verification story

Design by Contract

Computation stays in C or Pancake. Its ACSL or Viper contracts are proved with Frama-C or Viper, and each contract becomes the event's specification in the system model.

Continuous Verification

Every build is also a verification run: fic derives a UPPAAL model of the whole system directly from your program (autoformalisation), so the model never drifts from the code that ships.

Proved Infrastructure

The system runs on seL4 Microkit, a formally verified microkernel. CoreFi's semantics, deadlock freedom and determinism are mechanised in Lean 4, in the open-source fidus project, and certified compilation of fic is in progress.

Code, formalise, verify, repair. Then build.

Every check that fails produces a counterexample, and the counterexample drives the next repair. Only a system where every check holds is compiled to an image.


              
Code + contract. The system in .fis, each protection domain in .fi, computation in C or Pancake under ACSL or Viper contracts.
Autoformalisation. fic derives a UPPAAL model of the whole system from the program itself, so the model and the image come from the same source.
Code verification. Each call into foreign code carries a contract on its implementation, proved with Frama-C or Viper.
System verification. fic checks information flow and channels; the UPPAAL model checker checks the generated model.
Counterexample, repair & synthesis. A failed check yields a concrete trace, used to fix the code or contract, or synthesise the missing piece.
Executable image. What holds is compiled to a bootable seL4 Microkit image.

Example

A data diode, all the way through.

Frames enter on the Low side, cross one forwarding domain, and leave on the High side, never the reverse. These are the files a developer writes; everything else is generated. Pick one to read it.

host eth_outer · Low dd eth_inner · Highhost
Try to break it:
demo/datadiode/datadiode.fissystem declaration
// Data diode: eth_outer → dd → eth_inner, one-way Low → High.

// A frame crosses the diode by copy, as the channels' value; `data` holds
// a virtio-net buffer (`VIRTIO_NET_BUF_SIZE`).
struct Frame {
    len: uint16;
    // The NIC the frame came in on (ORIGIN_*), which the model tracks for
    // secrecy; the bytes stay in the C.
    origin: uint8;
    data: uint8[2048];
}

// A frame's origin: the outer (Low) or inner (High) network. Neither is 0,
// so a zeroed frame has no origin.
const ORIGIN_OUTER: uint8 = 1;
const ORIGIN_INNER: uint8 = 2;

// The channels' rings, mapped into both endpoints of their channel.
Low MemoryRegion eth_outer_output(0x200000, 0x200000);
High MemoryRegion eth_inner_input(0x200000, 0x200000);

// One 4 KiB page of QEMU virt's virtio-mmio slots 24..31, where both NICs
// sit; each eth PD binds a different device in it.
MemoryRegion virtio_window(0x1000, 0x1000, 0xa003000);

// Virtio rings + buffers; physically contiguous, paddr patched by the tool.
Low MemoryRegion outer_dma(0x200000, 0x200000);
High MemoryRegion inner_dma(0x200000, 0x200000);

// IRQ = 48 + mmio slot. QEMU puts the first -device in slot 31 (IRQ 79),
// the second in slot 30 (IRQ 78).
ProtectionDomain eth_outer(99, 79);
ProtectionDomain dd(150);
ProtectionDomain eth_inner(199, 78);

Chan o2d = eth_outer --> dd via eth_outer_output<Frame>;
Chan d2i = dd --> eth_inner via eth_inner_input<Frame>;

System = eth_outer ||| dd ||| eth_inner;
UPPAAL model of dd, generated by fire buildbuild/datadiode.xta
Automaton for dd: Init, ready, Notified, take a frame from the o2d queue, L2, forward, L3, put it on the d2i queue or drop it if d2i is full, then back to Notified. Init Notified L2 L3 ready o2d? forward d2i! · or drop, if d2i is full

fire verify demo/datadiode/ first proves the contracts in eth.h and util.h on eth.c and util.c with Frama-C, taking the virtio-net driver's contracts as assumed, then checks the model of all three domains against the seven queries in datadiode.q, both in the file list above.

Walk through it in the tutorial, or run it yourself with fire run demo/datadiode/ (fire run in the manual).

NRL Pump MLS Email Guard Clipboard Guard More examples →

Partners Trustworthy Systems Skykraft