Call-Level Revision Contracts for LLM-Authored Workflows
Abstract
Durable execution engines replay a recorded history and do not compare activity payloads. When a model repairs a workflow that failed partway through, it must either pay again for calls that succeeded or accept a recorded result whose payload changed. We define a revision contract for workflows whose orchestration code is written by a model. Each capability call carries a structural identity built from its callsite, its fanout position, and its occurrence count, and the identity stays stable under rewrites that leave the call in place, so committed identities form a frozen prefix. The frozen unit is the call expression, and the surrounding code stays writable. A static gate rejects a rewrite that would change a committed call before a container starts. A runtime digest stops a changed payload at a committed identity, and an occurrence ledger names a repeated paid payload. Under three assumptions, a candidate the gate accepts replays every committed call it invokes, executes only new work, and reports the identities it skips. No local identity is both relocation-invariant and free of wrong reuse, so callsite identity turns a relocation into a pre-spend stop. On media workflows, 22 gate-passed repairs replay 258 committed identities with no duplicate, and a live six-way fanout makes seven paid calls instead of twelve. A 12-task customer-support study applies the same identity, replay, and boundary checks on two models.
Create a lesson
Metadata
- Comments
- 19 pages, 12 tables, 6 figures
Related papers
Shuttle: Dependency-Attributed Workflow Evolution for Smart Contract Auditing
Shared title terminologycs.SEYue Xue, Yi Rong, Ziqiao Kong et al.
Energy as a Service-Level Objective: Transaction-Level Energy Attribution
Shared title terminologycs.SEJulian Legler
DesignEvo: Recovering and Tracking Repository-Level Implemented Design Systems Across Commits
Shared title terminologycs.SEMingyue Yuan, Jinbo Yang, Jieshan Chen et al.
Decision Models for Definition-Driven GitHub Actions Workflow Smell Detection
Shared title terminologycs.SERohit Gheyi, Anderson Uchôa, Wesley Assunção et al.
RepoClean: Evaluating Coding Agents on Repository-Level Obsolete Code Cleanup
Shared title terminologycs.SEHongyixuan Yuan, Qixing Zhou, Pengcheng Huang et al.
LLM-Assisted Software Migration: from Module-Level Transformation to Repository-Level Integration
Shared title terminologycs.SEYanan Zhang, Shengqi Liu, Tao Zhang et al.