← Latest papers
🤖 AI

Certified Purity for Cognitive Workflow Executors: From Static Analysis to Cryptographic Attestation

This paper introduces a certified purity architecture that strengthens cognitive workflow governance by replacing runtime conventions with structural boundaries through restricted WebAssembly compilation, cryptographic purity certificates, and remote attestation, thereby mathematically proving the elimination of adversarial bypasses while maintaining negligible runtime overhead.

Original authors: Alan L. McCann

Published 2026-05-06
📖 5 min read🧠 Deep dive

Original authors: Alan L. McCann

Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are running a high-stakes kitchen where a team of chefs (AI agents) prepares complex meals (cognitive workflows) for VIP guests. The rules are strict: the chefs can plan the meal and write down what ingredients they need, but they are strictly forbidden from actually touching the stove, opening the fridge, or calling the delivery driver. Only the Head Chef (the "Governance Pipeline") is allowed to perform those actions.

For a long time, the kitchen relied on a simple rule: "Trust the chefs to follow the rules." The kitchen managers would look at the chefs' recipe books (static analysis) to see if they had written down any forbidden instructions. If the recipe looked clean, the chef was allowed to work.

The Problem: The "Magic Trick" Loophole
The paper explains that this "trust the recipe" system has a fatal flaw. A determined, sneaky chef could use magic tricks to bypass the rules without writing them down in the recipe book. On the specific kitchen platform they use (called BEAM/Erlang), a chef could:

  1. Pretend to be someone else: Call a function by its name at the last second, hiding the fact that they are calling a dangerous tool.
  2. Write new rules on the fly: Type in a new command while cooking, effectively rewriting their own recipe mid-meal.
  3. Hire a bodyguard: Load a secret, pre-written tool (a "NIF") that can do anything, including opening the fridge.
  4. Send a runner: Spawn a separate person outside the kitchen to go get ingredients.
  5. Swap the recipe book: Load a completely different, dangerous recipe book while cooking.

Because these tricks happen while the chef is working, looking at the recipe book beforehand (static analysis) can't catch them. It's like trying to stop a magician by checking their pockets before the show; they might have a hidden card they pull out later.

The Solution: The "Certified Purity" Kitchen
This paper proposes a radical new kitchen design that makes these magic tricks physically impossible, not just against the rules.

1. The New Kitchen (WebAssembly Sandbox)
Instead of letting chefs work in the open kitchen, they now work inside a transparent, sealed glass box.

  • No Magic Tricks: Inside this box, the tools for "hiding," "rewriting," or "hiring bodyguards" simply do not exist. The box is built so that the only way to get out is through a single, locked door.
  • The Whitelist: The box only has a specific list of tools it can use (like a calculator, a notepad, and a "request form"). It cannot touch the stove or the fridge. If a tool isn't on the list, the box literally doesn't have the handle for it.

2. The ID Badge (Purity Certificate)
Before a chef enters the kitchen, they must get a special ID badge.

  • The Proof: A trusted authority looks at the chef's code (the "binary") and checks that it only uses the allowed tools.
  • The Seal: They sign the badge with a cryptographic seal (like a wax stamp). This seal proves that this specific version of the chef's code is clean.
  • The Anti-Tamper: If the chef tries to change their code even slightly (to add a secret tool), the seal breaks. The badge becomes invalid. You can't take a clean badge from Chef A and give it to a modified Chef B.

3. The Security Guard (Runtime Gate)
When a chef arrives at the kitchen door, a security guard checks the badge.

  • The Check: The guard verifies the seal, checks that the code matches the badge, and confirms the tools listed are still on the "allowed" list.
  • The Result: If the badge is valid, the chef enters. If not, they are turned away immediately. This happens every single time before the chef starts cooking.

4. The Cross-Kitchen Passport (Remote Attestation)
What if Chef A works in Kitchen A, but needs to hire Chef B from Kitchen B?

  • Chef B brings a "Passport" (an attestation record) that proves they were checked by their own kitchen's security guard and that their kitchen follows the same strict rules.
  • Kitchen A can read this passport and trust Chef B without needing to see Chef B's source code or sign a contract. It's a machine-readable proof of trust.

Why This Matters (The Results)
The paper proves that this system works mathematically:

  • No Loopholes: Because the "magic tricks" (bypass classes) are structurally absent from the new kitchen, a sneaky chef literally cannot perform them. It's not that they are caught; it's that they can't happen.
  • Fast: Checking the badge takes less than a blink of an eye (about 40 microseconds). The extra time it adds to cooking a meal is less than 0.4% of the time it takes to wait for a delivery truck.
  • Trustless: You don't have to trust the chef, the kitchen manager, or the other kitchen. You only have to trust the math behind the seal and the design of the glass box.

In Summary
The paper moves governance from a "Please don't steal" sign (which relies on people following rules) to a "You physically cannot steal" wall (which relies on the structure of the building). It turns a promise into a mathematical guarantee, ensuring that AI agents can plan and think, but they can never secretly act outside the rules.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →