A workload submitted to a federation of Kubernetes clusters often comes with requirements its owner can state but not map onto clusters: where its data may reside, how fast it must respond, how much it may cost. A language-model agent can turn such intent into a placement by fetching live evidence about the federation and reasoning over it, but every decision then spends model calls, tokens and seconds before the workload can start. How much depends on the composition behind the decision: how many agents run, which of them fetch their own evidence, and whether the model emits a reasoning pass on every call. Agent frameworks scatter that composition across prompts, code and configuration, so it is seldom measured as one thing. We built a placement middleware that makes it measurable: it triggers a stateless decision layer for each request through a message broker, serves its evidence through a Model Context Protocol (MCP) server, declares its composition as a Kubernetes custom resource, and records every model call beneath the agent framework. We profiled three compositions on the same requests with Qwen3.5-122B-A10B. With per-call reasoning off, a single model call over evidence fetched in advance spent ∼3k tokens per decision, an agent that fetches its own evidence fell in between, and a five-agent crew spent 8 calls, ∼26k tokens and, at the median, about ten times as long. The step that lets the model fetch its own evidence added almost all of the extra tokens the model reads; the step that splits the work across agents added most of the extra tokens it writes and of the extra seconds, and decision time tracked what the model writes. Per-call reasoning added on average about a thousand reasoning tokens per call, so the composition decides how often it is paid. The framework's own usage counters missed part of what a decision spent.
Making Agentic Composition Measurable: Experience from a Kubernetes-Native Placement Backend / Scaffidi Militone, G., Apiletti, D., Malnati, G.. - STAMPA. - (In corso di stampa). (Workshop on AI and Serverless at Middleware '26 Tarragona 14 - 18 Dicembre 2026).
Making Agentic Composition Measurable: Experience from a Kubernetes-Native Placement Backend
Scaffidi Militone, Gabriele;Apiletti, Daniele;Malnati, Giovanni
In corso di stampa
Abstract
A workload submitted to a federation of Kubernetes clusters often comes with requirements its owner can state but not map onto clusters: where its data may reside, how fast it must respond, how much it may cost. A language-model agent can turn such intent into a placement by fetching live evidence about the federation and reasoning over it, but every decision then spends model calls, tokens and seconds before the workload can start. How much depends on the composition behind the decision: how many agents run, which of them fetch their own evidence, and whether the model emits a reasoning pass on every call. Agent frameworks scatter that composition across prompts, code and configuration, so it is seldom measured as one thing. We built a placement middleware that makes it measurable: it triggers a stateless decision layer for each request through a message broker, serves its evidence through a Model Context Protocol (MCP) server, declares its composition as a Kubernetes custom resource, and records every model call beneath the agent framework. We profiled three compositions on the same requests with Qwen3.5-122B-A10B. With per-call reasoning off, a single model call over evidence fetched in advance spent ∼3k tokens per decision, an agent that fetches its own evidence fell in between, and a five-agent crew spent 8 calls, ∼26k tokens and, at the median, about ten times as long. The step that lets the model fetch its own evidence added almost all of the extra tokens the model reads; the step that splits the work across agents added most of the extra tokens it writes and of the extra seconds, and decision time tracked what the model writes. Per-call reasoning added on average about a thousand reasoning tokens per call, so the composition decides how often it is paid. The framework's own usage counters missed part of what a decision spent.| File | Dimensione | Formato | |
|---|---|---|---|
|
woais26-paper78.pdf
accesso riservato
Tipologia:
1. Preprint / submitted version [pre- review]
Licenza:
Non Pubblico - Accesso privato/ristretto
Dimensione
461.79 kB
Formato
Adobe PDF
|
461.79 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
Pubblicazioni consigliate
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/11583/3017081
