NormCode Canvas: Making LLM Agentic Workflows Development Sustainable via Case-Based Reasoning
Organizations: Psylens AI, China · Shenzhen University, China · University College London, United Kingdom
Abstract
We present NormCode Canvas (v1.1.3), a deployed system realizing Case-Based Reasoning at two levels for multi-step LLM workflows. The foundation is NormCode, a semi-formal planning language whose compiler-verified scope rule ensures every execution checkpoint is a genuinely self-contained case -- eliminating the implicit shared state that makes retrieval unreliable and failure non-localizable in standard orchestration frameworks. Level 1 treats each checkpoint as a concrete case (suspended runtime); Fork implements retrieve-and-reuse, Value Override implements revision with automatic stale-boundary propagation. Level 2 treats each compiled plan as an abstract case; the compilation pipeline is itself a NormCode plan, enabling recursive case learning. Three structural properties follow: (C1) direct checkpoint inspection; (C2) pre-execution review via compiler-generated narrative; (C3) scope-bounded selective re-execution. Four deployed plans serve as structured evidence: PPT Generation produces presentation decks at ~40s per slide on commercial APIs; Code Assistant carries out multi-step software-engineering tasks spanning up to ten reasoning cycles; NC Compilations converts natural-language specifications into executable NormCode plans; and Canvas Assistant, when connected to an external AI code editor, automates plan debugging. Together these plans form a self-sustaining ecosystem in which plans produce, debug, and refine one another -- realizing cumulative case-based learning at system scale.
Figures & tables
| Plan | Workflow and scale | Control-flow pattern | Operational status |
|---|---|---|---|
| PPT Generation | Slide-deck generation; inferences; 6 layouts, 14 component types | Nested dual-output loop (HTML + PPTX per slide) | Runs on qwen-turbo / qwen-plus commercial APIs with negligible cost; produces a full presentation at s per slide. |
| Code Assistant | Software-engineering workflow; inferences | ReAct outer loop with parallel Explore | Executes up to 10-step reasoning cycles to carry out complex code editing tasks with scoped explore, plan, implement, and verify stages. |
| NC Compilations | Self-hosted compilation; inferences | Sequential pipeline (Derivation Activation) | With qwen-plus / GLM-4.7 , produces within steps executable plans for report writing, paper drafting, and contract review that run directly as new NormCode plans. |
| Canvas Assistant | Built-in chat controller; inferences | Interactive command-dispatch loop | Handles a wide range of canvas tasks; when connected to an AI code editor (Cursor, Claude Code), enables automated plan debugging by overtaking the canvas interface on the user’s behalf. |
Agentic Workflows
Agentic workflows coordinate AI agents, tools, and humans across multi-step tasks, emphasizing reliable execution, efficiency, and oversight.
See all 218 papersRunAgent: Interpreting Natural-Language Plans with Constraint-Guided Execution
IF, GOTO, FORALL). Beyond verifying syntactic and semantic verification of the step output, which is performed based on the specific instruction of each step, RunAgent autonomously derives and validates constraints based on the description of the task and its instance at each step. RunAgent also dynamically selects among LLM-based reasoning, tool usage, and code generation and execution (e.g., in Python), and incorporates error correction mechanisms to ensure correctness. Finally, RunAgent filters the context history by retaining only relevant information during the execution of each step. Evaluations on Natural-plan and SciBench Datasets demonstrate that RunAgent outperforms baseline LLMs and state-of-the-art PlanGEN methods.