Repository navigation
Description
Question
When an LLM needs a dot indicator in UI, does it correctly distinguish between XDSStatusDot and XDSBadge shape="dot"? Should Badge dot mode be consolidated into StatusDot?
Method
3 independent LLM agents (Claude Sonnet), each given the same 8 prompts and both component docs. No guidance on which to pick — just "go with your gut." Each agent wrote TSX and explained its reasoning.
Prompt Battery
| ID | Prompt | Design Intent |
|---|---|---|
| dot-01 | Show a red dot on a nav item to indicate unread notifications | Classic notification — ambiguous |
| dot-02 | Show a green dot next to a username to indicate they're online | Obvious status baseline |
| dot-03 | Colored dot next to each alert: green=resolved, yellow=warning, red=critical | Multi-variant status |
| dot-04 | Small blue dot on a tab label to indicate something new | "New content" attention flag |
| dot-05 | Red dot next to form fields that have errors | Validation state — could go either way |
| dot-06 | Table deployment status: green=live, gray=stopped, red=failed | Classic status column baseline |
| dot-07 | Pulsing green dot for live stream | Only StatusDot has isPulsing — feature awareness test |
| dot-08 | Notification badge on inbox icon — just a dot, no count | Uses the word "badge" — naming influence test |
Round 1: With Badge shape="dot" available
8/8 prompts: unanimous consensus across all 3 agents.
| Prompt | Agent 1 | Agent 2 | Agent 3 | Consensus |
|---|---|---|---|---|
| dot-01: Red dot on nav (unread) | Badge | Badge | Badge | Badge ✅ |
| dot-02: Green dot = online | StatusDot | StatusDot | StatusDot | StatusDot ✅ |
| dot-03: Alert severity dots | StatusDot | StatusDot | StatusDot | StatusDot ✅ |
| dot-04: Blue dot on tab (new) | Badge | Badge | Badge | Badge ✅ |
| dot-05: Red dot on error fields | StatusDot | StatusDot | StatusDot | StatusDot ✅ |
| dot-06: Table deployment status | StatusDot | StatusDot | StatusDot | StatusDot ✅ |
| dot-07: Pulsing green (live) | StatusDot | StatusDot | StatusDot | StatusDot ✅ |
| dot-08: Badge on inbox (dot) | Badge | Badge | Badge | Badge ✅ |
Overall: StatusDot 15/24 (62%) · Badge 9/24 (38%)
Emergent Heuristic
All 3 agents independently described the same decision rule:
StatusDot = the dot communicates the state of an entity ("what condition is this thing in?")
Badge dot = the dot is a notification/attention marker ("something here needs your eyes")
Round 2: Without Badge shape="dot"
Same 8 prompts, 3 new agents, but Badge docs stripped of shape="dot" — only pill mode.
| Metric | With Badge dot | Without Badge dot | Delta |
|---|---|---|---|
| Correct choices | 24/24 | 24/24 | Same |
| Avg reasoning (chars) | 331 | 169 | -49% |
| Deliberation prompts | 3 of 8 had tension | 0 | Gone |
All agents used StatusDot for every prompt. Nobody tried to hack Badge into a dot. Code was equally correct in half the reasoning tokens.
Conclusion
Deprecate shape="dot" on Badge. The status-vs-attention semantic distinction is real but not load-bearing — StatusDot handles both use cases equally well. Badge dot mode adds API surface and deliberation cost without improving outcomes. Badge should focus on its strength: visible text labels and counts.
Action Items
- Vibe test: Round 1 (with Badge dot)
- Vibe test: Round 2 (without Badge dot)
- Remove
shape="dot"from XDSBadge - Create codemod:
XDSBadge shape="dot"→XDSStatusDot - Dogfood codemod on XDS repo
Raw results: session 09eb0839-6864-4564-8825-7325aafa87f1
Activity
cixzhang commentedon Mar 28, 2026
Round 2: Without Badge
shape="dot"Same 8 prompts, 3 new agents, but Badge docs stripped of
shape="dot"— only pill mode with text/count labels. StatusDot docs unchanged.Choices
All agents used StatusDot for every prompt when Badge dot was unavailable. Nobody tried to hack Badge into a dot. The code was equally correct.
Reasoning Cost
Interpretation
Badge
shape="dot"does not change correctness — it only costs reasoning time. When it exists, LLMs correctly use it for "attention marker" prompts. When it doesn't, LLMs use StatusDot for the same prompts and produce equally valid code in half the tokens.The status-vs-attention semantic distinction is real but not load-bearing. StatusDot handles both use cases. Badge dot mode adds API surface and deliberation cost without improving outcomes.
Recommendation
Consider deprecating
shape="dot"on Badge. The escape hatch for notification dots would be StatusDot (which already works). Badge can focus on its strength: visible text labels and counts. This simplifies the component API and reduces LLM reasoning overhead by ~50% for dot-related prompts.feat(cli): add codemod to migrate Badge dot mode → StatusDot
feat(cli): codemod Badge dot mode → StatusDot
feat(cli): codemod Badge dot mode → StatusDot (#949)
feat(cli): codemod Badge dot mode → StatusDot (#949)
feat(cli): codemod Badge dot mode → StatusDot (#949)