[Submitted on 1 Aug 2026 ( v1 ), last revised 25 Nov 2026 (this version, v2)]
Title: AiFlow: Construction-to-Retirement Conformance for Versioned LLM Services
Abstract: A live update can preserve the topology and output of a large language model (LLM) workflow while bypassing a filter's queue and concurrency limits. A background task can use the old version after its caller returns. AiFlow links construction, invocation and retirement through an executable contract. Each admitted request captures an action bound to the checked operators. The service certifies the call's terminal outcome and the release of its registered work. Once new calls can no longer capture the version, the owner checks these certificates and remaining local resources before retirement. Strict publication pauses admission while old calls drain. Deferred publication can admit calls to the successor before its predecessor retires. We evaluated two stateless linear workflows in one Java virtual machine. Under strict publication, we repeated three injected fault scenarios three times per check configuration. An observation counted as contained if neither unguarded execution nor premature replacement occurred. With construction or completion checking alone, six of nine fault observations met this criterion. With both checks, all nine did. A separately implemented coordinator matched AiFlow on the lifecycle outcome, service call count and reclamation decision in all 24 tested pairs. With updates every 400 ms, deferred publication met the 500 ms deadline more often at both loads. We measured the share of all offered requests that met the deadline on the latest scheduled version due at return. Strict publication led at 80 requests/s and deferred publication at 20 requests/s. Both policies use the same local evidence for retirement.
| Subjects: | Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI) |
| Comments: | 14 pages, 2 figures, 9 tables |
| Cite as: | arXiv:2608.00558 [cs.CV] |