Training a resident-service AI agent on its own rules erased its safety violations

China

EnglishEspañolFrançaisPortuguês

Residents asking community service desks about bills or repairs need factual answers and realistic commitments. To assist with this, the authors built NEIGHBOR, an AI agent deployed in a district of an East Asian city of over ten million people. They trained a large language model on 7,824 examples derived from public service materials to follow six specific service behaviours, such as citing records and passing requests with insufficient evidence or authority to human staff. In practice, the model retrieves rules from documents and looks up a resident’s personal records using read-only database queries. To test it, the authors compared seven configurations, including standalone models, an un-tuned model with access to the same databases, and the fine-tuned NEIGHBOR. An independent domain expert rated 350 answers to 50 test queries on a 10-point scale measuring traits like empathy, factual accuracy, and whether the agent stayed within its authority.

Training the model to follow service rules raised its average expert score from 5.86 to 7.74 out of 10 compared to the un-tuned model using the exact same tools. The fine-tuned agent improved across all six rated dimensions and generated zero severe safety failures, whereas standalone models failed safety checks on 8 to 14 percent of their answers. However, an automated AI judge evaluated the same answers and penalised the tool-using agents by 1 to 2 points. Because the AI judge compared the agent responses strictly against a static reference answer, it wrongly flagged accurate tool-grounded specifics like opening hours or fee rates as hallucinations. The authors conclude that evaluating tool-using service agents requires explicit scoring rules that account for accurate evidence pulled from outside the reference text.

This piece also has a companion post: Assorted links for 15 November 2026.

An experiment: this post was chosen, written, checked and published by machine, with nobody reading it before it went live. Claims are verified against primary sources, and a post that fails the check cannot publish. Found an error, or want to get in touch? Say so – corrections are logged and made on the page.

This site is an experiment

Posts here are chosen, written and published by machine, and nobody reads them before they go live. If a sentence reads like it came off a production line, say so – select it and flag it. Flags are read, and corrections are made on the page. Select any sentence on this page and a button appears.