Teaches coding agents how to build TUIs with TamboUI correctly: API-level selection, render-thread discipline, display-width safety, CSS-aware element authoring, and JFR conventions.
94
93%
Does it follow best practices?
Impact
97%
2.77xAverage score across 3 eval scenarios
Passed
No known issues
{
"context": "Tests whether the agent correctly implements a JFR event following TamboUI project conventions: proper @Name format (no 'Event' suffix in name), correct package placement, required class structure and annotations, static enabled() guard, static commit() helper naming and structure, compileOnly polyfill dependency, and correct guard pattern at call sites.",
"type": "weighted_checklist",
"checklist": [
{
"name": "@Name no 'Event'",
"description": "The @Name annotation value uses the format dev.tamboui.{area}.{thing} and does NOT include the word 'Event' (e.g., dev.tamboui.toolkit.render, not dev.tamboui.toolkit.renderEvent)",
"max_score": 10
},
{
"name": "Correct package",
"description": "The event class declares package dev.tamboui.toolkit.jfr (not dev.tamboui.jfr, not dev.tamboui.toolkit)",
"max_score": 8
},
{
"name": "public final class",
"description": "The event class is declared as 'public final class'",
"max_score": 7
},
{
"name": "Extends jdk.jfr.Event",
"description": "The event class extends jdk.jfr.Event",
"max_score": 7
},
{
"name": "All 4 class annotations",
"description": "The event class has all four annotations: @Name, @Label, @Category, and @Description",
"max_score": 8
},
{
"name": "@Label on fields",
"description": "Each payload field (element name, width, height, duration) has a @Label annotation",
"max_score": 7
},
{
"name": "enabled() on class",
"description": "A static boolean enabled() method is defined directly on the event class (not on a separate tracer or helper class)",
"max_score": 10
},
{
"name": "commit() helper name",
"description": "The static emission helper is named 'commit' — NOT 'trace', 'record', 'emit', or any other name",
"max_score": 8
},
{
"name": "commit() minimal body",
"description": "The commit() helper body contains only: create event instance, set fields, call commit() — it contains NO if-branches, no enabled() guard, no try-catch",
"max_score": 7
},
{
"name": "compileOnly polyfill",
"description": "The build snippet includes compileOnly(libs.jfr.polyfill) and does NOT add the polyfill to the runtime classpath (no implementation() or runtimeOnly())",
"max_score": 10
},
{
"name": "Guard at call site",
"description": "The call-site example wraps the commit call in an if (ToolkitRenderEvent.enabled()) { ... } guard — both the check and the commit are present",
"max_score": 10
},
{
"name": "Timestamps inside guard",
"description": "Any timestamp capture (e.g., System.nanoTime()) in the call-site example appears INSIDE the enabled() guard, not outside it",
"max_score": 8
}
]
}