Open Brain
arXivPaperNeeds Review

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.

arXiv · Nov 20, 2026
Open Source Open MarkdownOpen JSON
Source Summary

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.

Practical Implication

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.

Agent-Ready Context
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.
Connected Context · Feed7 Judgment

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.

SWE-Serve: Benchmarking Agentic Engineering For Production Inference ServingBoth test beyond whether code appears to work locally: TEA-Bench-BR checks hidden branching cases and serialization, while SWE-Serve checks coordinated production behavior end to end. Their task domains differ, so the results support complementary evaluation gates.CompressionBench: How can your coding agents compress LLMs?Both use downstream or hidden checks to catch failures that a narrower local metric can miss: TEA-Bench-BR exposes referral and validation errors, while CompressionBench finds failures that perplexity misses.PAIChecker: Uncovering and Checking PR-Issue Misalignment in SWE-Bench-Like BenchmarksTEA-Bench-BR's generated tasks and hidden cases provide a controlled evaluation design, whereas PAIChecker shows that repository-derived benchmarks can contain issue–patch misalignment. The contrast highlights different benchmark risks without establishing that either design is universally valid.Change2Task: From Repository Changes to Executable Coding Agent Tasks and EnvironmentsChange2Task offers renewable repository-derived tasks but leaves prompt–oracle alignment and coverage as open checks; TEA-Bench-BR demonstrates a separate synthetic task source with explicit branching cases, while remaining bounded to its clinical domain and language.
Context Map
benchmarkcodingdata#agent-evals#benchmark-integrity#coding-agents
Uncertainty
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.