[GH-ISSUE #6299] [Feature]: Combat AI, companion control and GM boss reactions #3514

Closed
opened 2026-10-21 06:03:51 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6299

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

Game Mode needs combatants whose priorities reflect their temperament and abilities in both Classic and Tactical combat, with optional AI control for companions. Boss encounters also need a GM that can make legal, resource-aware decisions between ordinary turns rather than only narrate a predetermined result. Permanent terrain guidance at game creation cannot describe the environment of every later battle.

Proposed solution

Add saved, seeded combat profiles with class/kit-aware priorities, including Patient, Methodical and Coordinated; companion control settings; and an authoritative combat director for GM bosses, legendary actions, anticipation and optional Counterspell/guard reactions. Validate decisions and save resource spending with accepted combat state so duplicate or late replies do not spend twice.

Remove the external-IP comparison and permanent terrain-guidance field from setup. Provide implementation handoffs for Summoning, encounter-specific environment context and versioned Traditional/5e/V20 rulesets. Traditional's planned speed follow-up must preserve one combat initiation per unit per round.

Keep a standalone OpenAI Codex AGENTS.md adapted from CLAUDE.md, with provider-specific model/tool guidance and an explicit transition to ready for review after local implementation, checks and review are complete. Share skills in .claude/skills through the .agents/skills symlink.

Alternatives considered

  • Tactical-only enemy AI leaves Classic and companion control inconsistent.
  • Spending every available reaction automatically wastes scarce MP and spell slots.
  • Giving the GM arbitrary state-editing power would bypass legal actions, costs and replay protection.
  • Implementing every named ruleset and Summoning now would combine separate mechanics projects; document those contracts for follow-up instead.

Additional context

Requested by and assigned to @kolacheee; implementation owner: @kolacheee with Codex. Branch: codex/combat-ai-overhaul; PR target: staging. Follow-up to #6265; interruption persistence inspiration: #6110.

No matching open issue or PR was found during the publication check. Implementation is local pending the final CodeRabbit review and PR publication. Ordinary AI, director persistence, provider context and desktop/mobile browser regressions have been exercised; real-provider strategy quality and physical-device pacing remain manual verification tasks.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6299 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? Game Mode needs combatants whose priorities reflect their temperament and abilities in both Classic and Tactical combat, with optional AI control for companions. Boss encounters also need a GM that can make legal, resource-aware decisions between ordinary turns rather than only narrate a predetermined result. Permanent terrain guidance at game creation cannot describe the environment of every later battle. ## Proposed solution Add saved, seeded combat profiles with class/kit-aware priorities, including Patient, Methodical and Coordinated; companion control settings; and an authoritative combat director for GM bosses, legendary actions, anticipation and optional Counterspell/guard reactions. Validate decisions and save resource spending with accepted combat state so duplicate or late replies do not spend twice. Remove the external-IP comparison and permanent terrain-guidance field from setup. Provide implementation handoffs for Summoning, encounter-specific environment context and versioned Traditional/5e/V20 rulesets. Traditional's planned speed follow-up must preserve one combat initiation per unit per round. Keep a standalone OpenAI Codex AGENTS.md adapted from CLAUDE.md, with provider-specific model/tool guidance and an explicit transition to ready for review after local implementation, checks and review are complete. Share skills in .claude/skills through the .agents/skills symlink. ## Alternatives considered - Tactical-only enemy AI leaves Classic and companion control inconsistent. - Spending every available reaction automatically wastes scarce MP and spell slots. - Giving the GM arbitrary state-editing power would bypass legal actions, costs and replay protection. - Implementing every named ruleset and Summoning now would combine separate mechanics projects; document those contracts for follow-up instead. ## Additional context Requested by and assigned to @kolacheee; implementation owner: @kolacheee with Codex. Branch: `codex/combat-ai-overhaul`; PR target: `staging`. Follow-up to #6265; interruption persistence inspiration: #6110. No matching open issue or PR was found during the publication check. Implementation is local pending the final CodeRabbit review and PR publication. Ordinary AI, director persistence, provider context and desktop/mobile browser regressions have been exercised; real-provider strategy quality and physical-device pacing remain manual verification tasks. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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
Pasta-Devs/Marinara-Engine#3514
No description provided.