Runtime Verification of Dimensional Semantics in Checkpointed Large Language Model Tool Workflows

Aditya Mazumdar


Abstract
Tool schemas can validate each language-model-generated call while still allowing quantity identity to disappear during a longer workflow. A model may read 250 milliseconds, checkpoint a bare scalar, and later pass 250 to a destination expecting seconds. We call this loss of executable unit and identity metadata semantic scalarization. We present DIMLOCK, a small runtime that carries quantities as opaque references, resolves exact compatible conversions, and rejects cross-dimensional references before destination execution. We also introduce a frozen stress protocol with logical checkpoint save/load, same- and cross- dimension distractors, and receipt-backed scoring. Across 36 workflows and 540 controlled fault trials, DIMLOCK contains all 108 primary faults while prose and structured scalar handoffs contain none. A same- dimension identity swap defeats every interface, confirming the boundary of dimension-only enforcement. Native MCP pilots cover 216 Codex trajectories and a balanced 36-trajectory Claude Sonnet replication; tested models usually rejected explicit traps, so we make no prevalence claim. The result is a focused runtime invariant and a reproducible test for a failure class that local tool schemas do not express.
Anthology ID:
2026.realm-1.54
Volume:
Proceedings of the Second Workshop for REsearch on Agent Language Models (REALM 2026)
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Ehsan Kamalloo, Nicolas Gontier, Nikolai Rozanov, Maryam Hashemzadeh, Akhil Arora
Venues:
REALM | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
800–806
Language:
URL:
https://aclanthology.org/2026.realm-1.54/
DOI:
Bibkey:
Cite (ACL):
Aditya Mazumdar. 2026. Runtime Verification of Dimensional Semantics in Checkpointed Large Language Model Tool Workflows. In Proceedings of the Second Workshop for REsearch on Agent Language Models (REALM 2026), pages 800–806, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Runtime Verification of Dimensional Semantics in Checkpointed Large Language Model Tool Workflows (Mazumdar, REALM 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.realm-1.54.pdf