{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2609-14578","title":"A Building as a Repository: KIR, a Typed Intermediate Representation for Agent-Authored Building Information Models","arxiv_id":"2609.14578","date":"2026-09-13","proceeding":null,"authors":["Dmitry Kuklev"],"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.","url_abs":"https://arxiv.org/abs/2609.14578","url_pdf":"https://arxiv.org/pdf/2609.14578","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2609.14578","atlas_url":"https://app.syntology.ai/?focus=2609.14578","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2609.14578"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/5vbkgsghhh-hash/kir","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":12},"by_repo_kind":{"found_in_text":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"3066314eae4ce56e","entry":"cmd_demo","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/__main__.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/__main__.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3066314eae4ce56e"}},{"code_sha256_prefix":"ed6ea2f0b1032c41","entry":"cmd_ops","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/__main__.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/__main__.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ed6ea2f0b1032c41"}},{"code_sha256_prefix":"bf59a41734a93b3e","entry":"cmd_skill","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/__main__.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/__main__.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bf59a41734a93b3e"}},{"code_sha256_prefix":"ab292e20d6e2f479","entry":"collect_op_refusals","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/a5_live.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/a5_live.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ab292e20d6e2f479"}},{"code_sha256_prefix":"cfaf1170c843529e","entry":"count_ops_without_element","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/a5_live.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/a5_live.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cfaf1170c843529e"}},{"code_sha256_prefix":"8178a06bba0d6a52","entry":"expectation_digest","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/acceptance.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/acceptance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8178a06bba0d6a52"}},{"code_sha256_prefix":"d923825ef98edef3","entry":"prune_ground_snapshot","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/open_model.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/open_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d923825ef98edef3"}},{"code_sha256_prefix":"49d499ed39de9614","entry":"request_digest","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/a5_recovery.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/a5_recovery.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"49d499ed39de9614"}},{"code_sha256_prefix":"bc5e794b6a0ad71c","entry":"shifted_point","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/emit_core.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/emit_core.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bc5e794b6a0ad71c"}},{"code_sha256_prefix":"82dcd280ba695419","entry":"symbol_rows_from_snapshot","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/acceptance.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/acceptance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"82dcd280ba695419"}},{"code_sha256_prefix":"acbda702673f9121","entry":"tolerance","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/emit_model.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/emit_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"acbda702673f9121"}},{"code_sha256_prefix":"10683fdbda2e8c09","entry":"tolerances","repo":"5vbkgsghhh-hash/kir","repo_kind":"found_in_text","path":"kir/emit_model.py","file_url":"https://github.com/5vbkgsghhh-hash/kir/blob/HEAD/kir/emit_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"10683fdbda2e8c09"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_backlog_21d_20260915.json"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}