Issue-agent smoke 04: live validation lower value than unit validation #86
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens#86
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Smoke Test
This is smoke test 04 for #81.
Goal
Test whether the issue-agent can choose unit-level validation when live validation adds little value, without overstating weak live evidence.
Task
Investigate the existing Make It So tooltip tests and report whether the current unit tests are sufficient evidence for the trigger-progress / triggered-count wording behavior. Do not make code changes unless you find an actual regression.
Expected Behavior Under Observation
The agent should:
Evidence Required
Relay Handoff
When finished, remove
issue-agentfrom this issue and add eitherissue-agent-completeorissue-agent-blockedaccording to the result. Then addissue-agentto #85.Issue-agent run started: 24935702734
Investigation Report: Make It So Tooltip Wording Tests
Summary
Conclusion: Unit-level validation is sufficient. Live validation adds little value for this wording-focused case. No regression found.
Game State Before Any Action
Inspected via MCP before taking any live action:
Unit Test Evidence
File:
Tests/SpireLens.Core.Tests/MakeItSoTooltipTests.csThe 3 existing tests call the private
AppendMakeItSoStats(StringBuilder, CardAggregate, bool, int?, int)overload directly via reflection. They exercise the exact rendering logic:AppendMakeItSoStats_RendersLiveSkillCounter"Skill counter"and"[b]2/3[/b]"AppendMakeItSoStats_FullViewRendersSummonedCount"Summoned to hand"and"[b]2[/b]"AppendMakeItSoStats_CompactViewSkipsSummonedCount"Summoned to hand"whencompact=trueTest run result (just now):
The tests assert on the exact string output of the rendering method, including label text and BBCode bold markers. This directly proves the wording behavior being asked about.
Why Live Validation Adds Little Value Here
The wording behavior in question is:
"Skill counter"label with[b]N/threshold[/b]formatting"Summoned to hand"label with[b]N[/b]formattingLive validation cannot improve on this because:
The game renders BBCode, not raw strings. A screenshot shows rendered text in the game's Kreon font. It cannot confirm
"Skill counter"vs."skill counter"or"[b]2/3[/b]"vs. some other format — those details live in the source string, which the unit tests verify directly.Setup cost is disproportionate. To see Make It So tooltip wording in-game, you'd need to: start a run as a character that has Make It So, play enough skills to advance the counter, hover the card, and take a screenshot. That proves the tooltip appears — not that the wording matches a specific label.
The unit tests already provide complete coverage. They call the exact private method that generates the tooltip body, with deterministic inputs, and assert on the exact string produced. There is no additional confidence a live screenshot could add about the wording.
No regression found. The production code in
CardHoverTooltipPatch.cs(lines 671–683) matches what the tests verify —"Skill counter"and"Summoned to hand"are the labels, bold formatting is[b]N[/b].Code vs. Test Alignment Check
Verified that the test fixture signature matches the current production overload:
AppendMakeItSoStats(StringBuilder, CardAggregate, bool compact, int? currentCounter, int threshold)"Skill counter"(line 679),"Summoned to hand"(line 682) — ✅ Both asserted in testsDecision
Unit tests are sufficient evidence for the trigger-progress / triggered-count wording behavior. Live validation was intentionally skipped — not because of a blocker, but because it would add no meaningful evidence beyond what the 3 passing unit tests already provide.
Closing as completed cleanup.
Relevant takeaway: this ticket established that some wording/rendering checks are better proven by deterministic unit tests than live STS2 screenshots. Future validation issues should say when live proof adds real value versus when unit-level evidence is the stronger signal.