Paper: 2607.08740 Authors: Emanuele Quinto, Carlo Andrea Rozzi, Francesco Zanitti Categories: cs.AI, cs.PL, cs.SE

The Gap

The LLM workflow space has exploded: LangGraph, CrewAI, AutoGen, and similar frameworks now let you wire up tool calls, retrieval, branching, checkpointing, and human approval into explicit graphs. These systems are execution engines—they run your workflow, produce outputs, and maybe dump logs.

But here’s the problem: once a workflow finishes (or crashes mid-execution), the workflow itself—its definition, its runtime state, its reasoning decisions, its dependency relationships—scatters across logs, databases, and your own memory. You can’t ask “why did step 7 happen?” in a structured way. You can’t resume a workflow from a decision point and reason about what changed. The execution leaves footprints in sand; nothing is fossilized into inspectable knowledge.

Existing systems (LangChain, workflow orchestrators, even traditional BPM) treat workflows as things to execute. This paper asks: what if workflows were things to know?

Problem: LLM workflows produce outputs but
         their reasoning structure is lost
         after execution
     |
     v
Assumption: workflows can be represented as
            first-class knowledge objects in a
            persistent, shared substrate
     |
     v
Method: Lisp-inspired symbolic model with
        object identity + derive/infer distinction
     |
     v
Evidence: conceptual framework + illustrative
          examples (no empirical evaluation)
     |
     v
Conclusion: semantic persistence is achievable;
            formal transition semantics left
            for future work

The Increment

One sentence: Before this paper, LLM workflows were ephemeral execution artifacts; after, there’s a conceptual vocabulary for treating workflow definitions, instances, inference records, and context snapshots as persistent, inspectable knowledge objects in their own right.

Core Mechanism

The framework proposes a Lisp-inspired (but language-independent) conceptual model built on three pillars: symbolic forms, object identity, and live-image thinking.

First, everything in the workflow ecosystem—definitions, running instances, individual inference calls, context snapshots, dependency edges—is represented as a symbolic form with stable identity. Think of each entity as having a permanent address, not just a label that gets garbage-collected when the process ends.

Second, the model introduces a critical semantic distinction between two kinds of computation. Derive is deterministic: given inputs X and Y, the output is Z, always. This is traditional computation—string manipulation, database lookups, format conversions. Infer is LLM-mediated judgment: given a context window, a prompt, and a capability policy, an LLM produces an answer that’s probabilistic, context-dependent, and requires human reviewability. The framework makes this distinction explicit at the type level rather than letting it hide behind a function call.

[Workflow Definition]
       |
       v
[Workflow Instance] -----> [shared knowledge substrate]
       |                         |
       +--- [derive: deterministic steps]
       |
       +--- [infer: LLM-mediated steps]
       |         |
       |         v
       |    [Inference Record]
       |    (prompt, context, policy,
       |     response, confidence)
       |
       +--- [Context Snapshot]
       |    (state at any point)
       |
       +--- [Dependency Relations]
            (what depends on what)

Data flows through this system as symbolic transformations on a shared knowledge substrate. When a workflow runs, it doesn’t just execute—it emits knowledge objects that accumulate in the substrate. Any node, any edge, any state is addressable and retrievable later.

The architectural blueprint metaphor: Imagine a city where every building remembers its own blueprints, construction history, every renovation decision, and who approved what—embedded in the walls themselves.

  • The workflow definition is the original blueprint: the plan for what the building should be.
  • A workflow instance is a specific construction project following that blueprint. One blueprint, many buildings.
  • Derive steps are the construction crews following specs exactly—pour concrete to 3000 PSI, no judgment involved. If you redo them with the same inputs, you get the same result.
  • Infer steps are the architect’s field decisions: “This wall looks load-bearing, let me consult the engineer.” These are judgment calls mediated by an expert (the LLM), and each one gets logged as an inference record—what was seen, what was decided, under what policy, with what confidence.
  • Context snapshots are the as-built photos at each stage. At any point, you can freeze the state and ask: what did the building look like here?
  • Dependency relations are the structural connections: this floor depends on that foundation, this electrical run depends on that wall being finished.

The key insight: in a traditional city, this information lives in filing cabinets across multiple offices. In this framework, it’s all in one searchable repository where the building itself is the archive. You can walk up to any wall and ask it why it exists.

Key Concepts

  • Semantic Persistence: The paper’s central concept. Traditional persistence means “saved to disk.” Semantic persistence means the saved thing carries its *meaning with it—not just bytes, but structured knowledge you can query, inspect, and reason about. Example: A traditional workflow log says “Step 5 called GPT-4 and got ‘yes’.” A semantically persistent record says “Step 5 was an inference under policy P2, using context C3, with confidence 0.87, and the ‘yes’ depended on evidence E1 which came from derive step 3.” The latter is a knowledge object; the former is a log line.

  • Derive vs. Infer: This is the paper’s sharpest contribution. Most workflow systems treat all steps as black boxes—some happen to call an API, some happen to be Python functions. This paper says: no, these are fundamentally different *kinds of computation. Derive is repeatable, auditable, deterministic. Infer is probabilistic, requires declared context, and must be governed by executor-controlled capability policies (essentially: who allowed this LLM to make this judgment call?). Making this distinction explicit changes how you build, debug, and audit workflows.

  • Live-Image Thinking: Borrowed from Smalltalk. The idea that the running system *is the system—you don’t compile and deploy; you inspect, modify, and resume the living thing. Applied to workflows: you should be able to pause a workflow, inspect its full state (every inference record, every context snapshot), modify it, and resume. The workflow is a living knowledge object, not a script you re-run from scratch.

Framework Shift

Before (mainstream approach):          After (this paper):

[Workflow Script]                      [Workflow Definition] *
       |                                      |
       v                                      v
   Execute                          [Workflow Instance] *
       |                                      |
       v                              +-------+-------+
     Outputs                          |               |
       |                           [derive]        [infer]
       v                              |               |
     Logs/Traces                   [deterministic]  [LLM judgment]
    (scattered, flat)                   |               |
                                   [resumable]    [inference record]
                                      |               |
                                   [Context Snapshot]  |
                                      |               |
                                   [Knowledge Substrate]
                                   (unified, queryable)

From execution traces to knowledge objects, the core shift is treating the workflow itself—not just its outputs—as structured, persistent, inspectable knowledge.

Expert Assessment

Problem choice: This is a real gap, not manufactured. The LLM workflow ecosystem is sprinting toward more complex agentic systems, and the abstractions are lagging. Teams building multi-step LLM pipelines genuinely struggle with debugging, auditing, and resuming workflows. The paper identifies the right tension: workflows produce knowledge but aren’t themselves knowledge objects. That said, it’s more of a *conceptual gap than a technical one—nobody has a system that fails in a specific, measurable way that this fixes.

Method maturity: This is a clever framing exercise, not a system or an experiment. The Lisp/Smalltalk heritage is invoked tastefully—symbolic forms, object identity, live images are well-chosen lenses. But the contribution is a vocabulary and a set of distinctions, not a mechanism you can implement. The derive/infer distinction is genuinely useful and probably the paper’s most transferable idea. However, the framework doesn’t address how you actually *build a knowledge substrate that scales, how you manage versioning of symbolic forms, or how you handle the combinatorial explosion of inference records in long-running workflows.

Experimental integrity: There are no experiments. This is a conceptual paper that explicitly acknowledges “formal transition semantics remain future work.” The examples are illustrative, not evaluated. There’s nothing to scrutinize numerically, which also means there’s nothing to validate the claims against.

Writing quality: The paper reads like a well-argued workshop position paper stretched to conference length. The core ideas (Section 3-4) are clear and well-structured. But Section 2 (background) spends too long on Lisp history and BPM that readers familiar with the space will skim, while readers unfamiliar won’t be converted. The “live-image thinking” metaphor is compelling but under-explained—this section should be rewritten to make the Smalltalk parallel concrete, not just gestured at. The paper would benefit enormously from a running worked example that traces one workflow through the entire framework, from definition to multiple instances to resumed execution.

Verdict: weak accept — The derive/infer distinction alone is worth the read, and the conceptual framing fills a real blind spot in how we think about LLM workflows. But the paper’s ambition outpaces its delivery: it promises a framework and delivers a vocabulary. If the authors formalize the transition semantics and demonstrate even a toy implementation, this becomes a strong accept.

Takeaways

Three things you can steal:

  1. The derive/infer distinction as a design principle. Even if you never build a “knowledge substrate,” you can enforce this type-level separation in your workflow code. Wrap LLM calls in a distinct abstraction that captures prompt, context, policy, and response—not just the output. This alone will dramatically improve your debugging and audit trails.

  2. Treat workflow state as queryable knowledge, not just checkpoints. Instead of serializing a JSON blob for “resume from here,” maintain a structured record of *why each state exists: what was derived, what was inferred, under what conditions. This is cheap to implement and pays dividends when debugging production workflows.

  3. Capability policies for LLM judgment. The idea that every inference step should be governed by an explicit policy (“who authorized this LLM to make this decision, under what constraints”) is a governance pattern that scales beyond this paper’s framework. Useful for any system where LLM outputs have consequences.

论文: 2607.08740 作者: Emanuele Quinto, Carlo Andrea Rozzi, Francesco Zanitti 分类: cs.AI, cs.PL, cs.SE

缺口

LLM 工作流领域已经爆发:LangGraph、CrewAI、AutoGen 等框架让你可以把工具调用、检索、分支、检查点和人工审批串成显式图。 这些系统是执行引擎——运行工作流,产出输出,也许会吐出日志。

问题在于:一旦工作流跑完(或者中途崩了),工作流本身——它的定义、运行时状态、推理决策、依赖关系——就散落在日志、数据库和你自己的记忆里。 你没法用结构化的方式追问”第 7 步为什么发生”。 你没法从某个决策点恢复工作流并推理”什么变了”。 执行在沙地上留下脚印;没有什么被化石化为可检查的知识。

现有系统(LangChain、工作流编排器、甚至传统 BPM)把工作流当作要执行的东西。 这篇论文追问:如果工作流是要知道的东西呢?

问题:LLM 工作流产出输出,
      但推理结构在执行后丢失
      |
      v
假设:工作流可以被表征为
      持久化共享基底中的
      一等知识对象
      |
      v
方法:Lisp 启发的符号模型,
      含对象标识 + derive/infer 区分
      |
      v
证据:概念框架 + 示意性示例
      (无实证评估)
      |
      v
结论:语义持久化是可行的;
      形式化转移语义留待未来工作

增量

一句话:这篇论文之前,LLM 工作流是转瞬即逝的执行产物;之后,有了一个概念词汇表,可以将工作流定义、实例、推理记录和上下文快照作为持久化、可检查的知识对象来对待。

核心机制

该框架提出一个 Lisp 启发(但语言无关)的概念模型,建立在三根支柱上:符号形式(symbolic forms)、对象标识(object identity)和活镜像思维(live-image thinking)。

首先,工作流生态系统中的一切——定义、运行实例、单次推理调用、上下文快照、依赖边——都被表征为具有稳定标识的符号形式。 可以想象每个实体都有一个永久地址,而不是一个在进程结束时被垃圾回收的标签。

其次,模型引入了一个关键的语义区分,区分两种计算。 Derive(派生)是确定性的:给定输入 X 和 Y,输出就是 Z,永远如此。 这是传统计算——字符串操作、数据库查询、格式转换。 Infer(推理)是 LLM 介导的判断:给定上下文窗口、提示词和能力策略,LLM 产出一个概率性的、上下文依赖的、需要人工可检查性的回答。 框架在类型层面显式化这个区分,而不是让它隐藏在函数调用背后。

[工作流定义]
      |
      v
[工作流实例] -------> [共享知识基底]
      |                      |
      +-- [derive: 确定性步骤]
      |
      +-- [infer: LLM 介导步骤]
      |        |
      |        v
      |   [推理记录]
      |   (提示、上下文、策略、
      |    响应、置信度)
      |
      +-- [上下文快照]
      |   (任意时刻的状态)
      |
      +-- [依赖关系]
           (什么依赖什么)

数据在这个系统中以符号变换的形式流过共享知识基底。 当工作流运行时,它不只是执行——它向基底中发射知识对象。 任何节点、任何边、任何状态都是可寻址、可检索的。

核喻——嵌入墙壁的建筑蓝图

想象一座城市,每栋建筑都记得自己的蓝图、建造历史、每一次翻修决策、谁批准了什么——而且这些信息嵌在墙壁本身里。

  • 工作流定义是原始蓝图:建筑应该是什么样的计划。
  • 工作流实例是一次具体的建造项目。一份蓝图,多栋建筑。
  • Derive 步骤是严格按规格施工的建筑队——浇筑 3000 磅/平方英寸的混凝土,不涉及判断。用相同输入重做,结果相同。
  • Infer 步骤是建筑师的现场决策:“这面墙看着承重,让我咨询工程师。“这些是由专家(LLM)介导的判断,每一次都被记录为一条推理记录——看到了什么、决定了什么、依据什么策略、带着什么置信度。
  • 上下文快照是每个阶段的竣工照片。在任何时刻,你都可以冻结状态,问:建筑在这个阶段长什么样?
  • 依赖关系是结构连接:这层楼依赖那个地基,这条电气走线依赖那面墙完工。

关键洞见:在传统的城市里,这些信息散落在多个办公室的文件柜里。 在这个框架里,它们都在一个可搜索的仓库中,建筑本身就是档案。 你可以走到任何一面墙前,问它为什么存在。

关键概念

  • 语义持久化(Semantic Persistence):本文的核心概念。传统持久化意味着”存到磁盘”。语义持久化意味着被保存的东西携带其意义——不只是字节,而是你可以查询、检查和推理的结构化知识。举例:传统工作流日志说”第 5 步调用了 GPT-4,得到’是’“。语义持久化记录说”第 5 步是在策略 P2 下的推理,使用上下文 C3,置信度 0.87,‘是’依赖于来自 derive 第 3 步的证据 E1”。前者是日志行;后者是知识对象。

  • Derive 与 Infer 的区分:这是论文最锐利的贡献。大多数工作流系统把所有步骤当作黑盒——有些碰巧调 API,有些碰巧是 Python 函数。这篇论文说:不,这些是根本不同类型的计算。Derive 是可重复、可审计、确定性的。Infer 是概率性的,需要声明的上下文,必须由执行者控制的能力策略来治理(本质上:谁授权了这个 LLM 做这个判断?)。显式化这个区分改变了你构建、调试和审计工作流的方式。

  • 活镜像思维(Live-Image Thinking):借用自 Smalltalk 的理念。运行中的系统就是系统——你不是编译部署,而是检查、修改和恢复活的东西。应用到工作流:你应该能暂停工作流,检查其完整状态(每条推理记录、每个上下文快照),修改它,然后恢复。工作流是活的知识对象,不是你从头重跑的脚本。

框架转变

之前(主流方法):                  之后(本文方法):

[工作流脚本]                       [工作流定义] *
      |                                  |
      v                                  v
    执行                         [工作流实例] *
      |                                  |
      v                          +-------+-------+
    输出                                 |
      |                           [derive]    [infer]
      v                               |           |
  日志/痕迹                     [确定性]    [LLM 判断]
 (散乱、扁平)                      |           |
                               [可恢复]   [推理记录]
                                   |           |
                               [上下文快照]   |
                                   |           |
                               [知识基底]
                              (统一、可查询)

从执行痕迹到知识对象,核心转变是把工作流本身——而不仅仅是其输出——作为结构化、持久化、可检查的知识来对待。

专家评审

选题眼光:这是真缺口,不是人造的。LLM 工作流生态正冲向更复杂的智能体系统,但抽象层在落后。构建多步骤 LLM 管线的团队确实在调试、审计和恢复工作流上挣扎。论文识别出了正确的张力:工作流产出知识,但自身不是知识对象。不过,这更多是概念性缺口而非技术性缺口——没有人在用的系统会因为一个具体的、可度量的方式失败并被本文修复。

方法成熟度:这是一次巧妙的框架化练习,不是系统也不是实验。Lisp/Smalltalk 传承被调用得有品味——符号形式、对象标识、活镜像是选得好的透镜。但贡献是一套词汇和一组区分,不是可以实现的机制。Derive/infer 区分是真正有用的,可能是论文最可迁移的洞见。然而,框架没有解决如何实际构建可扩展的知识基底、如何管理符号形式的版本化、如何处理长时间运行工作流中推理记录的组合爆炸。

实验诚意:没有实验。这是一篇概念论文,明确承认”形式化转移语义留待未来工作”。示例是示意性的,不是被评估的。没有什么可以数字层面推敲的,但这也意味着没有什么可以用来验证声明。

写作功力:论文读起来像是一篇论证良好的研讨会被拉到会议篇幅。核心思路(第 3-4 节)清晰且结构好。但第 2 节(背景)花了太多篇幅在 Lisp 历史和 BPM 上——熟悉这个领域的读者会跳读,不熟悉的读者不会被说服。“活镜像思维”的比喻有说服力但解释不足——这一节应该重写,让 Smalltalk 类比变得具体,而不是只是示意。论文如果有一个贯穿全文的工作示例——追踪一个工作流从定义到多个实例到恢复执行——会收益巨大。

判决:弱接收 —— 单凭 derive/infer 区分就值得一读,概念框架填补了我们思考 LLM 工作流时的一个真实盲点。但论文的雄心超越了它的交付:它承诺了一个框架,交付的是一套词汇。如果作者形式化转移语义并展示哪怕一个玩具实现,这篇就变成强接收。

要点总结

三件你可以”偷”走的东西:

  1. Derive/infer 区分作为设计原则。即使你永远不会构建”知识基底”,你也可以在工作流代码中强制执行这种类型层面的分离。把 LLM 调用封装在一种独特的抽象中,捕获提示、上下文、策略和响应——而不仅仅是输出。单是这一点就能显著改善调试和审计追踪。

  2. 把工作流状态当作可查询的知识,而非仅仅是检查点。不要序列化一个 JSON 块来”从这里恢复”,而是维护一个结构化的记录,说明每个状态为什么存在:什么被派生了,什么被推理了,在什么条件下。这实现成本低,在调试生产工作流时回报巨大。

  3. LLM 判断的能力策略。每个推理步骤都应由显式策略治理(“谁授权了这个 LLM 做这个决定,在什么约束下”)——这个治理模式超越本文框架。对任何 LLM 输出有后果的系统都有用。