A Building as a Repository: KIR, a Typed Intermediate Representation for Agent-Authored Building Information Models
Abstract
Autonomous agents that author building information models need more than access to a host API. They need a representation of what they intended, what a compiler decided on their behalf, what was refused, what was observed after execution and what remains unknown. We present KIR, a typed intermediate representation in which a building is authored as a program held in a versioned repository and lowered to host applications as build targets. KIR is organised around seven ways in which a generator writing into a stateful, partially observable host goes silently wrong, and gives each a representation in data: ambiguous selectors become typed refusals with candidates; defaults keep their provenance; obligations that will not be checked are named before execution; vacuous witnesses are rejected statically; a lost transaction response becomes the state UNCONFIRMED with a verify-before-retry rule; the reverse path obeys a census invariant; and decisions are bound by digest to the state they were made against. On a pinned snapshot with 83 operation contracts and Revit as the only backend, offline experiments refuse 29 of 42 stress-test programs with diagnostic codes and no uncaught exception, name 38 of 377 witness obligations as unwitnessable, admit 31 of 100 combinations of execution, witness and acceptance states under seven stated invariants, and find no vacuous witness in 219 certificate runs; a 60-storey tower is 11,263 characters as KIR against 3,709,235 characters of emitted C#. Native Revit runs are reported from project records and kept separate from reproduced results. A controlled comparison with agents that write host code directly is specified but not yet executed; it is the principal open question.
Create a lesson
Metadata
- Categories
- cs.CV, cs.SE
- Comments
- 13-page paper and 10-page supplement; 8 figures, 3 tables. Code: https://github.com/5vbkgsghhh-hash/kir
Related papers
Physically Typed and Geometry-Aware Representations for Earth Foundation Models
Shared title terminologycs.CVRajiv Ranjan
Tracking Any Point with Agentic Visual Reasoning
Shared title terminologycs.CVXuweiyi Chen, Jin Yao, Linzhan Mou et al.
Agentic LongLive: Asynchronous Agentic Memory for Long Video Generation
Shared title terminologycs.CVShaoteng Liu, Shuai Yang, Wei Huang et al.
Enhancing Maritime Domain Awareness using Latent Space Representations
Shared title terminologycs.CVRikard Vinge, Miguel A. Belenguer-Plomer, Isabelle Wittmann et al.
Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Shared title terminologycs.CVDezhi Luo, Fengyuan Yu, Haotian Zhang et al.
WorldExpand: Building Coherent 3D Worlds via Sparse Joint Panoramic Expansion
Shared title terminologycs.CVYuyang Yin, Chenjie Cao, Xuhui Zuo et al.