Make issue-agent workflow relic-aware after MCP relic catalog lands #129

Closed
opened 2026-04-27 15:51:57 -07:00 by nelsong6 · 0 comments
nelsong6 commented 2026-04-27 15:51:57 -07:00 (Migrated from github.com)

Goal

Update the SpireLens issue-agent workflow so relic-stat issues can be planned and implemented through the same workflow as card-stat issues.

This should happen after spire-lens-mcp exposes relic catalog tools. Upstream blocker: https://github.com/nelsong6/spire-lens-mcp/issues/3

Why

The Pen Nib test issue exposed the current failure mode: the test-plan phase tried lookup_card("Pen Nib"), got not_found, inferred it was a relic, and aborted with mcp_capability_missing because the prompt/tool surface had no relic catalog path.

Proposed changes

In .github/scripts/run-issue-agent-phases.ps1:

  • Add catalog tools to $CatalogMcpTools:
    • mcp__spire-lens-mcp__lookup_relic
    • mcp__spire-lens-mcp__list_relics
  • Update the shared prompt prefix to mention relic metadata discovery alongside cards and characters.
  • Update test-plan rules so the agent first classifies issue targets as:
    • card
    • relic
    • character
    • mixed card/relic
  • If target type is unclear, try both lookup_card and lookup_relic before aborting. A not_found in one domain should not abort if the other domain resolves.
  • Use list_relics / lookup_relic for support relics and scenario relics, add_relics, remove_relics fields.
  • Add relic fields to the test-plan artifact shape, including target_kind, relic, and relic_metadata_discovery.
  • Update implementation rules so issue-specified cards, relics, or characters are all resolved through MCP before editing.
  • Add specific relic-stat evidence guidance:
    • prefer deterministic scenario saves with the target relic in relics or add_relics
    • require get_game_state evidence showing the resolved relic id/name in player relics
    • require the strongest available relic-visible screenshot surface from get_validation_capabilities
    • if no forced relic-hover MCP tool exists, say so directly instead of pretending card tooltip tools prove relic text

Acceptance

  • A vague relic issue such as “Add stats to Pen Nib” no longer aborts solely because lookup_card returns not_found.
  • The planner uses lookup_relic("Pen Nib") once the MCP tool is available.
  • The generated test plan contains a relic scenario recipe and relic evidence contract.
  • Existing card-only issues still use lookup_card and keep the current validation shape.

Draft context

A scratch draft exists in D:\automation\scratch\relic-mcp-support\run-issue-agent-phases.ps1 with these prompt/tool-list changes.

## Goal Update the SpireLens issue-agent workflow so relic-stat issues can be planned and implemented through the same workflow as card-stat issues. This should happen after `spire-lens-mcp` exposes relic catalog tools. Upstream blocker: https://github.com/nelsong6/spire-lens-mcp/issues/3 ## Why The Pen Nib test issue exposed the current failure mode: the test-plan phase tried `lookup_card("Pen Nib")`, got `not_found`, inferred it was a relic, and aborted with `mcp_capability_missing` because the prompt/tool surface had no relic catalog path. ## Proposed changes In `.github/scripts/run-issue-agent-phases.ps1`: - Add catalog tools to `$CatalogMcpTools`: - `mcp__spire-lens-mcp__lookup_relic` - `mcp__spire-lens-mcp__list_relics` - Update the shared prompt prefix to mention relic metadata discovery alongside cards and characters. - Update test-plan rules so the agent first classifies issue targets as: - `card` - `relic` - `character` - `mixed card/relic` - If target type is unclear, try both `lookup_card` and `lookup_relic` before aborting. A `not_found` in one domain should not abort if the other domain resolves. - Use `list_relics` / `lookup_relic` for support relics and scenario `relics`, `add_relics`, `remove_relics` fields. - Add relic fields to the test-plan artifact shape, including `target_kind`, `relic`, and `relic_metadata_discovery`. - Update implementation rules so issue-specified cards, relics, or characters are all resolved through MCP before editing. - Add specific relic-stat evidence guidance: - prefer deterministic scenario saves with the target relic in `relics` or `add_relics` - require `get_game_state` evidence showing the resolved relic id/name in player relics - require the strongest available relic-visible screenshot surface from `get_validation_capabilities` - if no forced relic-hover MCP tool exists, say so directly instead of pretending card tooltip tools prove relic text ## Acceptance - A vague relic issue such as “Add stats to Pen Nib” no longer aborts solely because `lookup_card` returns `not_found`. - The planner uses `lookup_relic("Pen Nib")` once the MCP tool is available. - The generated test plan contains a relic scenario recipe and relic evidence contract. - Existing card-only issues still use `lookup_card` and keep the current validation shape. ## Draft context A scratch draft exists in `D:\automation\scratch\relic-mcp-support\run-issue-agent-phases.ps1` with these prompt/tool-list changes.
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#129
No description provided.