On the same set of 4,444 Java tasks and with the medium reasoning configuration, Terra generated shorter code and had fewer missing completions, but its cognitive complexity and bug/vulnerability and code smell densities were higher, making static analysis and testing essential.
Models: GPT-5.6 Sol, GPT-5.6 Terra, and GPT-5.5.
Language: Java.
Number of tasks: 4,444, sourced from HumanEval, MBPP, and ComplexCodeEval.
Reasoning setting: medium for all three models.
Analyzer: SonarQube algorithmic code analysis.
Metric units: complexity/code smell per kLOC; bugs/vulnerabilities and category breakdowns per mLOC.
SonarSource says the three models used the same tasks, the same quality analysis, and the same reasoning tier, and that GPT-5.5 was rerun in the same framework. The article does not disclose the prompt for each question, snapshots, sampling parameters, complete generated outputs, or a task-level failure list.
| Metric | GPT-5.5 | GPT-5.6 Sol | GPT-5.6 Terra |
|---|---|---|---|
| Total lines of code | 702,720 | 750,198 | 617,132 |
| Number of functions | 92,206 | 82,164 | 70,378 |
| Comment share | 2.0% | 1.5% | 0.9% |
| Cognitive complexity / kLOC | 151.27 | 143.23 | 161.53 |
| Functional skill pass rate | 78.66% | 81.99% | 79.96% |
| Missing completions | 0.27% | 0.25% | 0.18% |
| Bug density / mLOC | 504 | 724 | 763 |
| Vulnerability density / mLOC | 68 | 197 | 203 |
| Code smell density / kLOC | 17.05 | 17.60 | 23.31 |
Additional data: Terra produced approximately 8.37M output tokens, including approximately 3.66M reasoning tokens; input was approximately 1.32M tokens. Terra's blocker-level smell rate was 62/mLOC, lower than Sol's 72 and GPT-5.5's 78, but collection/generics issues rose to 11,843/mLOC. Concurrency/threading bugs were Terra's largest bug category, at approximately 350/mLOC.
Terra's 79.96% pass rate was slightly higher than GPT-5.5's but lower than Sol's 81.99%; production reliability cannot be judged by model price alone.
Terra completed the same task with 617,132 lines of code, substantially less than GPT-5.5 and Sol; this helps reduce review volume, but the problem density per kLOC was higher.
Cognitive complexity of 161.53/kLOC, bug density of 763/mLOC, vulnerability density of 203/mLOC, and smell density of 23.31/kLOC show that “shorter” does not mean “easier to maintain.”
Concurrency/threading, cryptographic configuration, and resource handling are risk areas that should receive priority in automated checks; manual read-through should not be the only gate.
All tasks were synthetic/standardized Java tasks and cannot represent real multilingual repositories.
SonarQube static analysis reflects detectable code issues; it is not equivalent to the true online defect rate and cannot measure the business correctness of a complete system.
The same medium setting enables a controlled comparison, but the article does not tell us Terra's quality-cost curve at low/high/max settings.
SonarSource published the article and controlled the analyzer and metric definitions; retain the original outputs and cross-validate with a second testing framework.
Fix the Java version, HumanEval/MBPP/ComplexCodeEval task versions, model aliases, and the medium reasoning tier.
Save the prompt, response, compilation/test logs, generated code line count, and tokens for each task; do not save only aggregate scores.
Analyze all three output groups with the same SonarQube version and rule set, calculating densities in the article's kLOC/mLOC units.
Report pass rate, missing completions, and bugs/vulnerabilities/smells separately, broken down by severity.
Manually sample concurrency, cryptography, and resource-handling issues to confirm whether static-rule hits constitute real defects.
The authors' summary of Terra is “Terra is the concise one”, but the same data shows that its cognitive complexity and problem density were the highest.
GPT-5.6 Terra