Lab & Impact
Checking building models against Indonesian regulations
A proof of concept where an LLM agent reads building regulations in Bahasa Indonesia and picks the checks a building model needs, while a rule engine does the measuring and decides what passes.
Problem
A building information model (BIM) describes every stair, door and wall as an object with dimensions. That makes it tempting to check a design against the building code automatically, before anything is built. The hard part has always been the rules: codes are written as prose, and in Indonesia they are written in Bahasa Indonesia. Each requirement had to be found, interpreted and turned into code by hand.
Collaborators
Independent work by Caleb Tutty, Mokotahi’s founder, building on problems he first investigated as CTO of a construction-tech company. Full write-up on caleb-tutty.com.
Approach
The work is split between what a language model is good at and what it is not:
- The agent lists the building elements in view and decides which topics apply (stairs, headroom, handrails, doors, corridors).
- It searches the regulations in Indonesian (for example tinggi anak tangga, riser height) over a corpus of 483 passages from Permen PUPR 14/2017, SNI 03-1746-2000 and Pergub DKI Jakarta 72/2021, combining vector and keyword search.
- It runs the executable rules that apply. Each rule is a small file with a measurement function, a constraint such as
riser_height_max <= 180 mm, and the citation it comes from. Only this step produces a verdict, and it is ordinary, testable code. - It writes a report that can only reference rule results that were actually executed. Numbers are copied from the rule result, never from the model’s text. The agent cannot mark its own homework.
Artefacts
An interactive write-up with a 3D viewer: pick a viewpoint, replay a recorded agent run, and see failing components turn red, with the measurement drawn on the model and a link to the regulation it breaks. Two rulebooks (national and DKI Jakarta) can be compared on the same building.
Results
On a public two-storey sample house (the buildingSMART Duplex model), the checker found 194 mm stair risers against limits of 180 mm (national) and 178 mm (Jakarta), 250 mm treads against minimums of 300 mm and 280 mm, and four doors below the 800 mm minimum. Each recorded check took 54–71 seconds and cost 31–52 US cents in model usage.
It also caught bad data: the sample file stores stair attributes in feet while declaring metres. Every stair measurement is therefore taken twice (from the properties and from the geometry), and a disagreement lowers the confidence so the result becomes review, not fail.
Limitations
This is a proof of concept, not a certified checker. It covers stairs, doors, corridors and headroom, not structure or services, and it checks the part of the building in view rather than the whole model. The regulation values were extracted from primary documents and still need checking by someone qualified to read them. Some findings, such as whether a small house’s internal stair counts as a fire stair, need a person to decide whether the rule applies.
Next step
Validate the extracted rules with a qualified reviewer, then test on real Indonesian building models with a partner who works with them.