SpireLens rename: post-rename Azure cleanup + relic-tracking follow-up #72
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#72
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?
Tracking issue for picking up where we left off after the CardUtilityStats → SpireLens rename session on 2026-04-24.
✅ Done (this session)
1f86c77on main): full mechanical rename (CardUtilityStats→SpireLens+ lowercase variants), 18 file/dir renames, deletedinfra/opentofu/azure-vmss/(7 files), deletedinfra/ansible/(8 files), deleted 4 dead workflows (ansible-validate, bootstrap-azure-builder-ansible, bootstrap-azure-builder-winrm, deploy-aks-ansible-control-runner), deleted 2 dead docs, deleted 2 dead ops scripts. Keptops/windows-worker/Register-LocalIssueAgentRunner.ps1(active laptop-runner registration).nelsong6/card-utility-stats→nelsong6/spirelens. Both self-hosted runners (issue-agent-NELSONPC,sts2-side-a) confirmed online post-rename.D:\repos\CardUtilityStats→D:\repos\spirelens, remote URL updated tohttps://github.com/nelsong6/spirelens.git, local main ref synced to1f86c77.mods/SpireLens/populated (Loader + Core + manifest + Mono.Cecil), oldmods/CardUtilityStats/removed. Game restart shows[BaseLib] Applied 138 patches successfully, 0 failed,Loaded 3 mods (3 total), SpireLens Core + Loader init complete, 167 Harmony-patched methods.idchange toSpireLens(no migration code per design); orphaned save data at%APPDATA%/SlayTheSpire2/CardUtilityStats/deleted.fix/baselib-3.0.9branch): bumpsAlchyr.Sts2.BaseLibpin inSpireLens.csprojfrom3.0.8→3.0.9. The build had silently regressed BaseLib to 3.0.8 because the csproj was hard-pinned; 3.0.8 still has the brokenSelfApplyDebuffPatchagainst game v0.104.0. Manually copied 3.0.9 intomods/BaseLib/to unblock the running game; PR is the durable fix so future builds don't regress.🔄 Pending (blocked on
az login)All three of these need an authed Azure CLI session. One
az loginunblocks everything.1. Federated identity credential update (highest priority — blocks all OIDC workflows)
The Entra app
a9c457ac-128a-40a0-abc9-fd8214a8a462(workflow varARM_CLIENT_ID) has a federated identity credential whosesubjectis encoded against the old repo slug:After the rename, workflow OIDC tokens present
repo:nelsong6/spirelens:ref:refs/heads/mainand Entra rejects them withAADSTS700213. Confirmed via the failed run ofkeyvault-secret-alias.yml(run 24903278120).Fix: add a new federated credential (or update existing) covering the new slug. Add a corresponding entry for any other refs your OIDC-using workflows target — at minimum
refs/heads/main, plus whatever pull-request / branch trigger patterns are in use.(List existing first with
az ad app federated-credential list --id a9c457ac-128a-40a0-abc9-fd8214a8a462to see what other patterns to mirror.)Until this is done, the
issue-agent.ymlworkflow will fail at the Azure login step on every run.2. Key Vault secret copy (
card-utility-stats→spirelens)The renamed
issue-agent.ymlreads secretspirelensfrom Key Vaultromaine-kv. The current Key Vault still only has the old namecard-utility-stats. After (1) is fixed, re-running thekeyvault-secret-alias.ymlworkflow with these inputs handles it:source_secret_name:card-utility-statstarget_secret_name:spirelens(default)disable_source:false(leave the old name around for now in case any other system reads it)Or do it manually via
az:3. Delete Azure RG
rg-card-utility-stats-devThe VMSS Terraform was deleted in PR #69, but the Azure resources it managed are still live (RG, gallery
cardutilitystatsdevgallery, any VMSS instances). Small ongoing cost.🔮 Next phase: broaden to relic tracking
After the rename is fully closed out, the next workstream is extending SpireLens beyond per-card to relic stats (the renaming was preparation for going broad). Decisions already made in the planning conversation:
BSchneppe/relic-stats-sts2which has a coverage table for 183/290 relics. No LICENSE file = all rights reserved — we can read for design inspiration (which relics, what stat per relic, hover-tooltip integration approach) but cannot copy code. Original implementation needed.Highest-leverage RL addition while we're touching the event log
Capture decision-point state at each card-play event (hand, energy, enemy intents, current relics/potions/HP) — not just the outcome. Already-tracked outcomes + new state-before snapshot turn each event into a proper
(s, a, r)triple. Invisible to the UI, unlocks imitation learning / offline RL on the run archive. Consider also: per-run JSONL on the event-log side so notebooks canpd.read_json(... lines=True)overruns/*.jsonwithout per-file ceremony.Quick links
D:\repos\spirelensD:\SteamLibrary\steamapps\common\Slay the Spire 2\Closed out — final status
All blocked items completed (Azure CLI was authed in the new session, so no
az loginblocker).✅ Done
spirelenscreated inromaine-kvwith the same value ascard-utility-stats(byte-equal, verified). Source secret kept enabled per the plan.card-utility-stats-github-actions-mainandcard-utility-stats-github-actions-prwere already migrated torepo:nelsong6/spirelens:...subjects (someone migrated them earlier in the session). The third credential,card-utility-stats-github-actions-prod, was unused (no remaining workflow usesenvironment: prod— that was tied to the deleted ansible/AKS workflows), so it was deleted rather than re-pointed.rg-card-utility-stats-dev:az group delete --no-waitdispatched; currently inDeletingstate. Contained 5 leftovers (vnet, NSG, public IP, NIC, orphaned OS disk — VM/VMSS already gone)..github/workflows/opentofu-azure-vmss.ymlremoved in #73 (merged as0adb175). The workflow's working dirinfra/opentofu/azure-vmss/was deleted in #69, so the job could never have succeeded — missed in the rename PR.🔮 Next up (separate issue)
Closing this issue. The relic-tracking workstream from the "Next phase" section of this issue should get its own tracking issue when it's picked up.