Issue-agent smoke 04: live validation lower value than unit validation #86

Closed
opened 2026-04-25 09:13:33 -07:00 by nelsong6 · 3 comments
nelsong6 commented 2026-04-25 09:13:33 -07:00 (Migrated from github.com)

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:

  1. Read this issue and comments.
  2. Inspect current game state through MCP before any live action.
  3. Run or inspect the relevant focused tests.
  4. Clearly explain whether live validation is lower value than unit-level validation for this wording-focused case.
  5. Avoid claiming that a generic game screenshot proves tooltip wording.
  6. Still use approved MCP only if it chooses to do live validation.

Evidence Required

  • Final issue comment with focused test result or reason tests were not run.
  • Clear separation of unit evidence, live evidence, and any blocker.

Relay Handoff

When finished, remove issue-agent from this issue and add either issue-agent-complete or issue-agent-blocked according to the result. Then add issue-agent to #85.

## 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: 1. Read this issue and comments. 2. Inspect current game state through MCP before any live action. 3. Run or inspect the relevant focused tests. 4. Clearly explain whether live validation is lower value than unit-level validation for this wording-focused case. 5. Avoid claiming that a generic game screenshot proves tooltip wording. 6. Still use approved MCP only if it chooses to do live validation. ## Evidence Required - Final issue comment with focused test result or reason tests were not run. - Clear separation of unit evidence, live evidence, and any blocker. ## Relay Handoff When finished, remove `issue-agent` from this issue and add either `issue-agent-complete` or `issue-agent-blocked` according to the result. Then add `issue-agent` to #85.
github-actions[bot] commented 2026-04-25 09:46:26 -07:00 (Migrated from github.com)

Issue-agent run started: 24935702734

Issue-agent run started: [24935702734](https://github.com/nelsong6/spirelens/actions/runs/24935702734)
github-actions[bot] commented 2026-04-25 09:48:45 -07:00 (Migrated from github.com)

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:

  • State: Main menu (no run in progress)
  • The baseline is clean and usable, but no Make It So card is available to hover without starting a full run.

Unit Test Evidence

File: Tests/SpireLens.Core.Tests/MakeItSoTooltipTests.cs

The 3 existing tests call the private AppendMakeItSoStats(StringBuilder, CardAggregate, bool, int?, int) overload directly via reflection. They exercise the exact rendering logic:

Test What it asserts Wording behavior covered
AppendMakeItSoStats_RendersLiveSkillCounter Output contains "Skill counter" and "[b]2/3[/b]" Trigger-progress label and bold N/threshold formatting
AppendMakeItSoStats_FullViewRendersSummonedCount Output contains "Summoned to hand" and "[b]2[/b]" Triggered-count label and bold value formatting
AppendMakeItSoStats_CompactViewSkipsSummonedCount Output does NOT contain "Summoned to hand" when compact=true Compact-mode suppression of triggered-count row

Test run result (just now):

Passed  AppendMakeItSoStats_RendersLiveSkillCounter              [< 1 ms]
Passed  AppendMakeItSoStats_FullViewRendersSummonedCount          [1 s]
Passed  AppendMakeItSoStats_CompactViewSkipsSummonedCount         [< 1 ms]

Test Run Successful. Total tests: 3 / Passed: 3

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:

  • Trigger-progress: the "Skill counter" label with [b]N/threshold[/b] formatting
  • Triggered-count: the "Summoned to hand" label with [b]N[/b] formatting

Live validation cannot improve on this because:

  1. 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.

  2. 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.

  3. 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.

  4. 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:

  • Test invokes: AppendMakeItSoStats(StringBuilder, CardAggregate, bool compact, int? currentCounter, int threshold)
  • Production signature (line 671–683): ✅ Exact match
  • Label strings in production: "Skill counter" (line 679), "Summoned to hand" (line 682) — ✅ Both asserted in tests

Decision

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.

## 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: - **State:** Main menu (no run in progress) - The baseline is clean and usable, but no Make It So card is available to hover without starting a full run. --- ### Unit Test Evidence **File:** `Tests/SpireLens.Core.Tests/MakeItSoTooltipTests.cs` The 3 existing tests call the private `AppendMakeItSoStats(StringBuilder, CardAggregate, bool, int?, int)` overload directly via reflection. They exercise the exact rendering logic: | Test | What it asserts | Wording behavior covered | |------|----------------|--------------------------| | `AppendMakeItSoStats_RendersLiveSkillCounter` | Output contains `"Skill counter"` and `"[b]2/3[/b]"` | Trigger-progress label and bold N/threshold formatting | | `AppendMakeItSoStats_FullViewRendersSummonedCount` | Output contains `"Summoned to hand"` and `"[b]2[/b]"` | Triggered-count label and bold value formatting | | `AppendMakeItSoStats_CompactViewSkipsSummonedCount` | Output does NOT contain `"Summoned to hand"` when `compact=true` | Compact-mode suppression of triggered-count row | **Test run result (just now):** ``` Passed AppendMakeItSoStats_RendersLiveSkillCounter [< 1 ms] Passed AppendMakeItSoStats_FullViewRendersSummonedCount [1 s] Passed AppendMakeItSoStats_CompactViewSkipsSummonedCount [< 1 ms] Test Run Successful. Total tests: 3 / Passed: 3 ``` 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: - **Trigger-progress**: the `"Skill counter"` label with `[b]N/threshold[/b]` formatting - **Triggered-count**: the `"Summoned to hand"` label with `[b]N[/b]` formatting **Live validation cannot improve on this because:** 1. **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. 2. **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. 3. **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. 4. **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: - **Test invokes:** `AppendMakeItSoStats(StringBuilder, CardAggregate, bool compact, int? currentCounter, int threshold)` - **Production signature (line 671–683):** ✅ Exact match - **Label strings in production:** `"Skill counter"` (line 679), `"Summoned to hand"` (line 682) — ✅ Both asserted in tests --- ### Decision 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.
nelsong6 commented 2026-04-27 15:56:23 -07:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens#86
No description provided.