fix(engine): count non-tap combination mana toward castability and auto-pass - #2788
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
review-impl: PR #2788 — non-tap combination mana toward castability/auto-passVerdict: REQUEST CHANGES. The seam and CR grounding are correct and the bug fix is real and discriminating, but the new colored-shard solver (a) reintroduces an unbounded-exponential search in the auto-pass/castability hot path, (b) double-counts a single source across the independent colored-shard and generic-capacity checks, and (c) silently under-covers most of the flexible-mana class it claims to handle via a Gemini hit its daily quota and posted no findings — reviewed in a clean worktree at PR head Lens 1 — Correct seam (mostly good, one duplication)
Lens 2 — Idiomatic / PERF (the load-bearing concerns)
Lens 3 — Value / correctness
Net: correct intent and seam, but the perf cliff (Lens 2) and the single-source double-count (Lens 3) should be addressed, and the |
Fix CI fmt check failure on PR phase-rs#2788. Co-authored-by: Cursor <cursoragent@cursor.com>
Re-review (since 00:20Z) — PR #2788Reviewed at head Verdict: REQUEST CHANGES (still). Three of my five prior findings are addressed — the Prior findings — resolution status
#3 ADDRESSED. #4 ADDRESSED. #5 ADDRESSED. The doc on Findings on current head[MED] Castability is still unbounded-exponential on the non-tap path; nothing changed here. [MED] Still a parallel shard-assignment solver, not an extension of the existing one. [MED — NEW, introduced by this PR] [LOW] Global (not per-source) generic netting. As noted under #4 above — Net: the two MED architectural/perf findings from 00:20Z stand, and the new |
…to-pass Co-authored-by: Cursor <cursoragent@cursor.com>
… double-count
Filter mana profiles and feasible capacity by CR 106.6 spell restrictions,
group assignments per permanent, subtract shard-consumed pips from generic
capacity, and add a regression that power-2 Vivi cannot pay {U}{R}{1}.
Co-authored-by: Cursor <cursoragent@cursor.com>
Fix CI fmt check failure on PR phase-rs#2788. Co-authored-by: Cursor <cursoragent@cursor.com>
9e37ccf to
a1013c1
Compare
review-impl (independent, head
|
…er-3 Vivi test
Both reviews' blocker: requirements.is_empty() with leftover count
returned None, so an over-producing combination source (power-3 Vivi vs
{U}{R}) was falsely uncastable. Surplus mana is simply unused. New test
empirically fails on the PR head without this fix.
|
Maintainer note: pushed |
Summary
AnyCombinationproducers like Vivi Ornitier).CastSpellcandidate.Fixes #583
Test plan
cargo test -p engine --test integration issue_583