Karma: A Composable Framework for Evaluating LLM Agents on Stateful Kubernetes Operations

Junhan Ouyang, Shaw Liu, Jinlang Wang, Jiawei Zhou


Abstract
Large language model (LLM) agents are increasingly used for infrastructure operations on Kubernetes, yet how to test them efficiently and accurately remains unresolved. Realistic long-horizon evaluations are time-consuming and sometimes error-prone to build, since test cases are usually written from scratch even though components such as setup, state management, and verification logic are duplicated across them. We present KARMA, an open-source framework that composes reusable, parameterized operational cases into stateful, multi-stage Kubernetes workflows. Each case textually specifies a task and a required cluster state, and contains a deterministic oracle. The cluster state is preserved across stages, so long-horizon tasks can be constructed with little additional effort. KARMA also provides controls that add further complexity, namely alternating prompt modes and adversary injection. For cross-stage testing, a regression sweep reruns all previous cases and an LLM judge adjudicates the results, detecting execution inconsistencies or conflicts introduced by agents. Alongside the framework, we release a corpus of 89 cases, 38 adversaries, and 327 workflows across eight systems.
Anthology ID:
2026.emnlp-demos.55
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: System Demonstrations
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Sweta Agrawal, Alberto Abad
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
570–581
Language:
URL:
https://aclanthology.org/2026.emnlp-demos.55/
DOI:
Bibkey:
Cite (ACL):
Junhan Ouyang, Shaw Liu, Jinlang Wang, and Jiawei Zhou. 2026. Karma: A Composable Framework for Evaluating LLM Agents on Stateful Kubernetes Operations. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 570–581, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Karma: A Composable Framework for Evaluating LLM Agents on Stateful Kubernetes Operations (Ouyang et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-demos.55.pdf