Add relic stats for Blood Vial #137

Closed
opened 2026-04-27 18:38:27 -07:00 by nelsong6 · 6 comments
nelsong6 commented 2026-04-27 18:38:27 -07:00 (Migrated from github.com)

Parent inventory: #133

Goal

Port the RelicTracker stat behavior for Blood Vial into SpireLens.

RelicTracker source reference: https://github.com/rmac-silva/RelicTracker (Code/RelicPatches/BloodVial.cs). Use this as a behavior reference only; do not copy source code, structure, tooltip strings, or formatting.

Stats To Track

Track Blood Vial's combat-start healing:

  • HP healed at combat start

For the first pass, keep the behavior focused on the RelicTracker-facing stat. Do not expand the scope into broader attribution unless it is required to produce this stat.

Implementation Notes

  • Resolve the current STS2 relic id/name with MCP catalog or live game evidence before implementing.
  • Hook the current game behavior for Blood Vial's combat-start heal.
  • Persist the stat through the existing relic stats model, extending it only as needed.
  • Show the stat in the relic tooltip, following the existing relic tooltip pattern where appropriate.
  • Use the RelicTracker source only to understand the behavior and likely hook point.
  • The live test scenario should put the player below max HP before combat starts so the heal can be observed.

Acceptance Criteria

  • The relic tooltip shows Blood Vial's HP healed stat after it activates in combat.
  • The stat persists into run data using the current schema/update pattern.
  • Focused tests cover stat update, persistence, and presentation where practical.
  • Live in-run evidence includes get_game_state evidence for the resolved relic id/name and player HP state, plus at least one screenshot showing the relic tooltip stat working.
Parent inventory: #133 ## Goal Port the RelicTracker stat behavior for Blood Vial into SpireLens. RelicTracker source reference: https://github.com/rmac-silva/RelicTracker (Code/RelicPatches/BloodVial.cs). Use this as a behavior reference only; do not copy source code, structure, tooltip strings, or formatting. ## Stats To Track Track Blood Vial's combat-start healing: - HP healed at combat start For the first pass, keep the behavior focused on the RelicTracker-facing stat. Do not expand the scope into broader attribution unless it is required to produce this stat. ## Implementation Notes - Resolve the current STS2 relic id/name with MCP catalog or live game evidence before implementing. - Hook the current game behavior for Blood Vial's combat-start heal. - Persist the stat through the existing relic stats model, extending it only as needed. - Show the stat in the relic tooltip, following the existing relic tooltip pattern where appropriate. - Use the RelicTracker source only to understand the behavior and likely hook point. - The live test scenario should put the player below max HP before combat starts so the heal can be observed. ## Acceptance Criteria - The relic tooltip shows Blood Vial's HP healed stat after it activates in combat. - The stat persists into run data using the current schema/update pattern. - Focused tests cover stat update, persistence, and presentation where practical. - Live in-run evidence includes `get_game_state` evidence for the resolved relic id/name and player HP state, plus at least one screenshot showing the relic tooltip stat working.
github-actions[bot] commented 2026-04-27 21:59:34 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25034601051
github-actions[bot] commented 2026-04-27 22:11:01 -07:00 (Migrated from github.com)

Issue Agent Summary

Field Value
Issue 137
Run 25034601051
Artifact issue-agent artifacts for run 25034601051
PR None reported
Result status
Abort layer
Abort reason
Claude exit
Claude cost $2.0702
Claude turns 84
Tool calls 82
Failed tool calls 4
Head SHA 14963e15f0
Ref main
Persistent local logs C:\ProgramData\SpireLens\issue-agent-runs\25034601051

Phases

test_plan

Field Value
Status
Abort reason
Retryable
Human action
Markdown missing
Cost $0.3108
Turns 10
Tokens input 13, output 9050, cache create 31551, cache read 189099
Tool calls 9 calls, 9 results
Failed tool calls 0
Permission denials 0
Failure categories

implementation

Field Value
Status pass
Abort reason
Retryable false
Human action false
Markdown issue-agent-implementation.md
Cost $1.7594
Turns 74
Tokens input 6810, output 32754, cache create 75087, cache read 3220313
Tool calls 73 calls, 73 results
Failed tool calls 4
Permission denials 0
Failure categories Count: 1

verification

Field Value
Status
Abort reason
Retryable
Human action
Markdown missing
Cost $0.0000
Turns 0
Tokens input 0, output 0, cache create 0, cache read 0
Tool calls 0 calls, 0 results
Failed tool calls 0
Permission denials 0
Failure categories

Overall Evidence

Metric Value
Screenshot artifacts 0
Validation artifact files 8
Claude result events 2
Tool calls 82
Tool results 82
Failed tool calls 4
Permission denials 0
Input tokens 6823
Output tokens 41804
Cache creation tokens 106638
Cache read tokens 3409412
Unit tests passed
Live MCP validation passed
Screenshot validation passed
Card metadata discovery passed

Screenshot Files

None

Screenshot Previews

Screenshot publish warning: one or more screenshot previews could not be published. Use the uploaded artifacts as fallback evidence.
Screenshot directory not found: C:\actions-runner-card-utility-stats-implementation_work_temp\sts2-screenshots

Validation Artifact Files

  • claude-issue-agent-transcript.md
  • issue-agent-implementation.json
  • issue-agent-implementation.md
  • issue-agent-scenario-setup-input.json
  • issue-agent-scenario-setup.json
  • issue-agent-screenshot-previews.md
  • issue-agent-test-plan.json
  • issue-agent-test-plan.md
  • issue-agent-tool-metrics.json

Log Pointers

  • Event log: C:\actions-runner-card-utility-stats-implementation\_work\_temp\claude-issue-agent-events.jsonl
  • Summary log: C:\actions-runner-card-utility-stats-implementation\_work\_temp\claude-issue-agent-summary.log
  • Debug log: C:\actions-runner-card-utility-stats-implementation\_work\_temp\claude-issue-agent-debug.log
  • Persistent local directory: C:\ProgramData\SpireLens\issue-agent-runs\25034601051
## Issue Agent Summary | Field | Value | | --- | --- | | Issue | [137](https://github.com/nelsong6/spirelens/issues/137) | | Run | [25034601051](https://github.com/nelsong6/spirelens/actions/runs/25034601051) | | Artifact | [issue-agent artifacts for run 25034601051](https://github.com/nelsong6/spirelens/actions/runs/25034601051/artifacts) | | PR | _None reported_ | | Result status | | | Abort layer | | | Abort reason | | | Claude exit | | | Claude cost | $2.0702 | | Claude turns | 84 | | Tool calls | 82 | | Failed tool calls | 4 | | Head SHA | 14963e15f0ce197f25bb35e05465b2616d10a287 | | Ref | main | | Persistent local logs | `C:\ProgramData\SpireLens\issue-agent-runs\25034601051` | ### Phases #### test_plan | Field | Value | | --- | --- | | Status | | | Abort reason | | | Retryable | | | Human action | | | Markdown | _missing_ | | Cost | $0.3108 | | Turns | 10 | | Tokens | input 13, output 9050, cache create 31551, cache read 189099 | | Tool calls | 9 calls, 9 results | | Failed tool calls | 0 | | Permission denials | 0 | | Failure categories | | #### implementation | Field | Value | | --- | --- | | Status | pass | | Abort reason | | | Retryable | false | | Human action | false | | Markdown | `issue-agent-implementation.md` | | Cost | $1.7594 | | Turns | 74 | | Tokens | input 6810, output 32754, cache create 75087, cache read 3220313 | | Tool calls | 73 calls, 73 results | | Failed tool calls | 4 | | Permission denials | 0 | | Failure categories | Count: 1 | #### verification | Field | Value | | --- | --- | | Status | | | Abort reason | | | Retryable | | | Human action | | | Markdown | _missing_ | | Cost | $0.0000 | | Turns | 0 | | Tokens | input 0, output 0, cache create 0, cache read 0 | | Tool calls | 0 calls, 0 results | | Failed tool calls | 0 | | Permission denials | 0 | | Failure categories | | ### Overall Evidence | Metric | Value | | --- | ---: | | Screenshot artifacts | 0 | | Validation artifact files | 8 | | Claude result events | 2 | | Tool calls | 82 | | Tool results | 82 | | Failed tool calls | 4 | | Permission denials | 0 | | Input tokens | 6823 | | Output tokens | 41804 | | Cache creation tokens | 106638 | | Cache read tokens | 3409412 | | Unit tests passed | | | Live MCP validation passed | | | Screenshot validation passed | | | Card metadata discovery passed | | ### Screenshot Files _None_ ### Screenshot Previews > Screenshot publish warning: one or more screenshot previews could not be published. Use the uploaded artifacts as fallback evidence. > Screenshot directory not found: C:\actions-runner-card-utility-stats-implementation\_work\_temp\sts2-screenshots ### Validation Artifact Files - `claude-issue-agent-transcript.md` - `issue-agent-implementation.json` - `issue-agent-implementation.md` - `issue-agent-scenario-setup-input.json` - `issue-agent-scenario-setup.json` - `issue-agent-screenshot-previews.md` - `issue-agent-test-plan.json` - `issue-agent-test-plan.md` - `issue-agent-tool-metrics.json` ### Log Pointers - Event log: `C:\actions-runner-card-utility-stats-implementation\_work\_temp\claude-issue-agent-events.jsonl` - Summary log: `C:\actions-runner-card-utility-stats-implementation\_work\_temp\claude-issue-agent-summary.log` - Debug log: `C:\actions-runner-card-utility-stats-implementation\_work\_temp\claude-issue-agent-debug.log` - Persistent local directory: `C:\ProgramData\SpireLens\issue-agent-runs\25034601051`
github-actions[bot] commented 2026-04-27 22:27:21 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25035598229
github-actions[bot] commented 2026-04-28 00:14:35 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25039247982
github-actions[bot] commented 2026-04-28 00:18:38 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25039408241
nelsong6 commented 2026-07-05 15:26:15 -07:00 (Migrated from github.com)

Closing as implemented on main: relic aggregate/tracking, tooltip rows, schema coverage, and tests are present. Validation: full SpireLens.Core.Tests suite passed (467 tests) and Core hot-reload completed cleanly.

Closing as implemented on main: relic aggregate/tracking, tooltip rows, schema coverage, and tests are present. Validation: full SpireLens.Core.Tests suite passed (467 tests) and Core hot-reload completed cleanly.
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#137
No description provided.