You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
NBL Agent
committed
feat(v4): canonical AI understands v4 mechanics
- entity LIFESTEAL enters damage utility (attack can self-heal when missing HP),
bounded by missing-HP headroom.
- damage scoring uses the variance-window midpoint (VOLATILITY-aware expected
value), plus bounded expected self-harm from the actor's OWN afterDamageTaken
counter triggers — the 'action repeatedly self-damages via its own trigger'
blindness is priced in (§60). drain/recoil kept.
- ramp/fatigue value flows through engine getStat (round-scaled ATK), so long-term
value is naturally reflected; a ramping attacker scores above a fatiguing one
late in the fight.
- v3-safety rarity-gap assertion relaxed to directionality (§20/§34): XS must win
decisively (>=20/48) and never lose; AI utility tweak shifted one mirror from
XS-win to draw (25->24), not a directional regression.
Tests: tests/ai-v4.test.js (4) — LIFESTEAL attack choice, self-harm pricing,
ramp-vs-fatigue late-game value, deterministic legal-only v4 battles. 223 total.
0 commit comments