Auditing an agentic AI system for automated nuclear fusion research with a local LLM: what I fixed, what I reduced and what I measured
An agentic AI system, in which AI agents built on language models carry out a study, needs rules that block shortcuts. The expected answer must not reach the agents, the acceptance criteria must be fixed before the run, and every decision must be recorded. In this study, I check whether the first architecture of such a system could be fixed and reduced without losing those rules. The system was built for automated research in nuclear fusion and uses a local LLM, that is, a language model that runs on the project's own server. I also measure the cost of the process in time and in human interventions. The audit grouped the errors it found into nine themes and fixed the faults, nearly every one with a test that failed before and passed after. It also moved the code that executes a run, that is, a full execution of the research by the agents, into a separate and smaller copy. That copy completed a real run on December 2, 2026. The process was measured before and after the change of architecture, with the same measures. In the examined records, long pauses without a recorded reason disappeared, and this was the only process target met. The exchanges of messages between the AI assistants that carried out the audit were counted with different criteria before and after, so the numbers do not show a reduction. I still had to intervene often, and the reduced code stayed above the size target. It was also not possible to measure the process time without the waits for human actions. The scientific result of the run is not part of this text. The procedure was designed to deliver it only to me, as the person responsible for the project, so that it would reach neither the agents nor the assistants. Português. Auditoria de um sistema de IA agêntica para pesquisa automatizada em fusão nuclear, com LLM local: o que corrigi, o que reduzi e o que medi. Um sistema de IA agêntica, em que agentes de IA baseados em modelos de linguagem conduzem uma pesquisa, precisa de regras que impeçam atalhos. A resposta esperada não pode chegar aos agentes, os critérios de aceite precisam estar fixos antes da execução e cada decisão precisa ficar registrada. Neste estudo, verifico se a primeira arquitetura de um sistema desse tipo podia ser corrigida e reduzida sem perder essas regras. O sistema foi construído para pesquisa automatizada em fusão nuclear e usa um LLM local, isto é, um modelo de linguagem executado no próprio servidor do projeto. Também meço o custo do processo em tempo e em intervenções humanas. A auditoria agrupou os erros encontrados em nove temas e corrigiu as falhas, quase todas com um teste que falhava antes e passava depois. Ela também levou o código que executa uma corrida, isto é, uma execução completa da pesquisa pelos agentes, para uma cópia separada e menor. Essa cópia fez uma corrida real até o fim em 2 de dezembro de 2026. A medição do processo foi feita antes e depois da mudança de arquitetura, com as mesmas medidas. Nos registros examinados, as pausas longas sem motivo registrado desapareceram, e essa foi a única meta de processo cumprida. As idas e voltas de mensagens entre os assistentes de IA que conduziram a auditoria foram contadas com critérios diferentes antes e depois, e por isso os números não mostram uma redução. As minhas intervenções no processo continuaram altas, e o código reduzido ficou acima da meta de tamanho. Também não foi possível medir o tempo do processo sem as esperas por ações humanas. O resultado científico da corrida não faz parte deste texto. O procedimento foi desenhado para entregá-lo só a mim, como responsável pelo projeto, para que ele não chegasse aos agentes nem aos assistentes. Files. English and Portuguese versions, as PDF and as the exact Markdown text approved by the author (SHA-256: EN ccfa40d5af3cbf840e26a540fb18fe3463220984a916d443054e9363a04424dc; PT 6ef26c881579fc101ab56a23310796cd4d62f9f907c1ecdacd2d86faa1b9dab3). Use of artificial intelligence. The audit, the texts and the programs were produced with the assistance of Claude (Anthropic) and Codex (OpenAI), under the direction and with the approval of the author.
Authors
- Jorge Yuri dos Santos Correa (ORCID: https://orcid.org/0009-0006-7378-4098)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24785070
- Primary Topic
- Ethics and Social Impacts of AI
- Type
- preprint