RynthSuite/Plugins
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wallace 2e8258b079 RynthAi: a refused combat mode change is not a sent request
ChangeCombatModeFor called host.ChangeCombatMode, began a paced action only on
success, and then returned true either way. BuffManager and the Combat stance
paths read that true as a sent request: they advanced their attempt clocks,
counted a failed try and logged a retry. With the engine turning non-teardown
actions away around a teleport or a death, chained refusals could reach
NoWandFlipMaxFails and set _magicModeBlocked / _wandSwapExhausted.

- ChangeCombatModeFor returns false on a refusal, without Begin. The other
  *For helpers already return the host result. The no-ChangeCombatMode host
  case still returns true (nothing to send or pace).
- Callers stamp their bookkeeping only on true: BuffManager peace-for-kit
  paths (_lastCastAttempt, _healWaitKind); CorpseOpenController's peace
  before an open and MissileCraftingManager's peace before the first combine
  are asked again until accepted, inside their 2.5 s ceiling counted from the
  first ask; the stuck-stance clocks (BuffManager, CombatManager) start only
  once a stance request has gone out; ExpressionEngine's cast-stance flip
  throttle; the CombatManager stall-watchdog toggle, whose ladder step is
  taken back (CombatStallWatchdog.Unfire) when the toggle is refused.
- ActionPacer tracks a streak of consecutive engine refusals (one log line
  when it starts, one when an accepted call ends it). After
  EngineRefusalFailOpenMs (30 s) ChangeCombatModeFor returns true again, so a
  permanent refusal (missing hook, full ring) is counted by the callers' own
  failure paths instead of retrying forever. A gap of more than RefuseGapMs
  (10 s) starts a new streak; Reset() and Forget() end it.
- ActionPacer.LastEngineRefusalMs: a refusal newer than a stuck-stance
  clock's start restarts that clock, so a request accepted and then dropped
  by a teleport does not end in a re-equip UseObject on the wielded weapon.

Tests: FakeHost.CombatModeRefuse; ActionPacingTests (refusals burn no try or
backoff, streak, fail-open, expiry and Forget, stuck clock restart, 20 s
no-wand loop never reaches _magicModeBlocked, peace-before-open retry,
MissileCraftingManager), WeaponTests (equip pass keeps its backoff),
CombatHookTests, CombatStallWatchdogTests (Unfire).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 17:35:42 -07:00
..
RynthCore.Plugin.RynthAi RynthAi: a refused combat mode change is not a sent request 2026-10-12 17:35:42 -07:00
RynthCore.Plugin.RynthChat Snapshot for release 2026.10.12.1 (internal 8d252bd) 2026-10-12 00:33:13 -04:00
RynthCore.Plugin.RynthILT Snapshot for release 2026.10.11.1 (internal d20160b) 2026-10-11 15:00:56 -04:00
RynthCore.Plugin.RynthInventory Snapshot for release 2026.10.12.1 (internal 8d252bd) 2026-10-12 00:33:13 -04:00
RynthCore.Plugin.RynthLua RynthAi: stuck-cast breaker, no re-send into a busy server, recovery retry, HP failsafe 2026-10-12 17:35:42 -07:00
RynthCore.Plugin.RynthNav Snapshot for release 2026.10.8.1 (internal f3d67ec) 2026-10-08 17:29:51 -04:00
RynthCore.Plugin.RynthNet Snapshot for release 2026.10.6.1 (internal bd2f068) 2026-10-06 08:47:11 -04:00
RynthCore.Plugin.RynthOracle Snapshot for release 2026.10.12.1 (internal 8d252bd) 2026-10-12 00:33:13 -04:00
RynthCore.Plugin.RynthSort Snapshot for release 2026.10.12.1 (internal 8d252bd) 2026-10-12 00:33:13 -04:00
RynthCore.Plugin.RynthTracker Snapshot for release 2026.10.7.1 (internal 2a9c773) 2026-10-07 12:54:26 -04:00
RynthCore.Plugin.RynthVision RynthSuite as of 2026-10-05 evening (internal a078b8e): release 2026.10.5.20 - healing delay fixes, stuck-cast safeguards, buffs over items, slayers recognised and chosen first, recover my corpse, /ub give and /mt give, Mana Tap skips wands, dungeon floor-plan bake, heal latency log 2026-10-05 14:59:43 -04:00
Shared RynthAi: a refused combat mode change is not a sent request 2026-10-12 17:35:42 -07:00
Directory.Build.props RynthSuite as of 2026-10-05 evening (internal a078b8e): release 2026.10.5.20 - healing delay fixes, stuck-cast safeguards, buffs over items, slayers recognised and chosen first, recover my corpse, /ub give and /mt give, Mana Tap skips wands, dungeon floor-plan bake, heal latency log 2026-10-05 14:59:43 -04:00
Directory.Build.targets RynthSuite as of 2026-10-05 evening (internal a078b8e): release 2026.10.5.20 - healing delay fixes, stuck-cast safeguards, buffs over items, slayers recognised and chosen first, recover my corpse, /ub give and /mt give, Mana Tap skips wands, dungeon floor-plan bake, heal latency log 2026-10-05 14:59:43 -04:00