TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?
TEA-Bench-BR tests whether coding agents implement branching clinical rules correctly, including referral and FHIR export. Its results show why hidden cases should cover validation as well as domain decisions.
TEA-Bench-BR uses **144 generated tasks** and **6,798 hidden cases** based on fictitious screening instruments and referral rules, with FHIR R4 export. The 31B Gemma 4 agent solves **78.7% of level 3 tasks** and passes over 99% of hidden cases; the 12B misses 10.10% of cases calling for referral.
For agents implementing specifications, test branching behavior with generated cases and mutation-based checks, including serialization and input validation. The paper’s English version also changed level 3 performance for the 31B model, underscoring that language can affect results.
TEA-Bench-BR uses **144 generated tasks** and **6,798 hidden cases** based on fictitious screening instruments and referral rules, with FHIR R4 export. The 31B Gemma 4 agent solves **78.7% of level 3 tasks** and passes over 99% of hidden cases; the 12B misses 10.10% of cases calling for referral. For agents implementing specifications, test branching behavior with generated cases and mutation-based checks, including serialization and input validation. The paper’s English version also changed level 3 performance for the 31B model, underscoring that language can affect results. The benchmark is a synthetic, Portuguese clinical pathway and does not establish performance across other domains. The 31B model’s remaining failures were mostly input validation, while the 12B and 31B differed on referral misses.
This benchmark adds evidence that coding agents can implement branching specifications when correctness is checked across many hidden cases, including referral behavior and FHIR export. It complements broader repository and production benchmarks with a controlled clinical task, while its synthetic Portuguese scope and language-dependent results limit claims of general coding ability.