← Latest papers
🤖 AI

NormCode Canvas: Making LLM Agentic Workflows Development Sustainable via Case-Based Reasoning

The paper introduces NormCode Canvas, a deployed system that ensures sustainable LLM agentic workflow development by employing a semi-formal planning language with compiler-verified scope rules to enable reliable, two-level Case-Based Reasoning for retrieval, revision, and recursive self-improvement across diverse multi-step tasks.

Original authors: Xin Guan, Yunshan Li, Ze Wang

Published 2026-03-17
📖 5 min read🧠 Deep dive

Original authors: Xin Guan, Yunshan Li, Ze Wang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.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 trying to teach a very smart, but slightly forgetful, assistant (an AI) how to build a complex house.

In most current AI systems, you give the assistant a long list of instructions. As the assistant works, it keeps a running "mental note" of everything it has done so far. If it makes a mistake halfway through building the kitchen, you have to tell it to "go back." But because its mental notes are a messy jumble of everything from the foundation to the roof, it often gets confused about exactly what went wrong. It might accidentally change the foundation while trying to fix the kitchen, or it might forget why it was building the kitchen in the first place.

NormCode Canvas is a new system that solves this mess by changing how the AI "thinks" and "remembers." It uses a method called Case-Based Reasoning, which is like teaching the AI by showing it specific, perfect examples of how to do things, rather than just giving it a vague list of rules.

Here is how it works, broken down into simple concepts:

1. The "Snapshot" Rule (The Magic Camera)

Imagine the AI is building a LEGO castle.

  • Old Way: The AI just keeps adding bricks. If it messes up, you have to look at the whole pile of bricks to find the bad one.
  • NormCode Way: Every time the AI finishes a specific step (like "build the tower"), the system takes a perfect, isolated snapshot of just that tower. It puts that snapshot in a box and seals it. The box contains only the tower and the instructions for that tower. It doesn't contain the foundation or the roof.

This is called Scope Isolation. Because every step is in its own sealed box, if the tower falls over, you know exactly which box to open to fix it. You don't have to worry about accidentally breaking the roof.

2. The Two-Level Library (The Recipe Book vs. The Cooking)

The system works on two levels, like a library and a kitchen:

  • Level 1: The "Cooking" (Concrete Cases)
    This is the actual work happening right now. Every time the AI finishes a step, it saves a "snapshot" (a case) into a database.

    • The Superpower: If the AI gets stuck or makes a mistake, you can look at the snapshot, see exactly what ingredients (data) were used, and swap one out. Then, you tell the AI, "Start again from this specific step, but use the new ingredient." The AI doesn't have to rebuild the whole house; it just rebuilds the part that broke. This is called Selective Re-execution.
  • Level 2: The "Recipe Book" (Abstract Cases)
    This is the plan itself. Instead of just a list of steps, the plan is a reusable "recipe" that can be edited and improved.

    • The Superpower: If you realize the recipe for "Building a Tower" is flawed, you can fix the recipe book. Now, every future time you build a tower, you use the new, better recipe. The system learns from its mistakes and updates its master plan automatically.

3. The "Pre-Flight Check" (Reading the Script)

Before the AI even starts building, the system translates its complex code into a simple, human-readable story (like a script for a play).

  • Why it matters: A human expert can read this story before the AI spends any money or time. They can say, "Wait, you're going to build the roof before the walls? That's a bad idea," and fix the plan immediately. This prevents the AI from wasting time on a broken plan.

4. The Self-Improving Ecosystem

The paper describes four specific tools built with this system that help each other:

  1. PPT Generator: Makes slide decks automatically.
  2. Code Assistant: Writes and fixes computer code.
  3. Compiler: Turns human ideas into the "Recipe Books" (plans) for the other tools.
  4. Canvas Assistant: A detective that watches the other tools, finds mistakes, and fixes them automatically.

The Magic Loop: The Compiler creates plans. The Code Assistant uses those plans to build software. If the software breaks, the Canvas Assistant fixes it. The Compiler then learns from those fixes to make better plans next time. It's a self-sustaining cycle where the tools get smarter together.

Summary: Why is this a big deal?

Current AI tools are like driving a car with a foggy windshield and no rearview mirror. If you crash, you don't know why, and fixing it is a nightmare.

NormCode Canvas gives the AI:

  1. Clear Windows: You can see exactly what data it is using at every step.
  2. A Rearview Mirror: You can jump back to any specific moment in the past without losing the rest of the journey.
  3. A Repair Manual: You can fix just the broken part without rebuilding the whole car.
  4. A Learning Brain: It saves every "snapshot" of success and failure to build a better library of recipes for the future.

It turns AI development from a chaotic guessing game into a structured, reliable, and self-improving engineering process.

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 →