mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6302] [MERGED] feat(game): add combat AI, companion control and GM boss reactions #7130
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6302
Author: @kolacheee
Created: 9/17/2026
Status: ✅ Merged
Merged: 9/17/2026
Merged by: @kolacheee
Base:
staging← Head:codex/combat-ai-overhaul📝 Commits (6)
04aafa5feat(game): add combat AI, companion control and GM boss reactionse528a12chore: sync staging and record combat review dispositions2d5ba4edocs: adapt Codex guidance and complete PR readiness workflow6153721Merge remote-tracking branch 'origin/staging' into codex/combat-ai-overhaul142511dfix(game): address combat review and regression failures0de3b24fix(game): respect authored range for legacy healing📊 Changes
102 files changed (+6730 additions, -420 deletions)
View changed files
➕
.agents/skills(+1 -0)📝
.claude/skills/impeccable/SKILL.md(+0 -0)📝
.claude/skills/impeccable/agents/openai.yaml(+0 -0)📝
.claude/skills/impeccable/reference/adapt.md(+0 -0)📝
.claude/skills/impeccable/reference/animate.md(+0 -0)📝
.claude/skills/impeccable/reference/audit.md(+0 -0)📝
.claude/skills/impeccable/reference/bolder.md(+0 -0)📝
.claude/skills/impeccable/reference/brand.md(+0 -0)📝
.claude/skills/impeccable/reference/clarify.md(+0 -0)📝
.claude/skills/impeccable/reference/cognitive-load.md(+0 -0)📝
.claude/skills/impeccable/reference/color-and-contrast.md(+0 -0)📝
.claude/skills/impeccable/reference/colorize.md(+0 -0)📝
.claude/skills/impeccable/reference/craft.md(+0 -0)📝
.claude/skills/impeccable/reference/critique.md(+0 -0)📝
.claude/skills/impeccable/reference/delight.md(+0 -0)📝
.claude/skills/impeccable/reference/distill.md(+0 -0)📝
.claude/skills/impeccable/reference/document.md(+0 -0)📝
.claude/skills/impeccable/reference/extract.md(+0 -0)📝
.claude/skills/impeccable/reference/harden.md(+0 -0)📝
.claude/skills/impeccable/reference/heuristics-scoring.md(+0 -0)...and 80 more files
📄 Description
Linked issue
Closes #6299. Translation follow-up: #6300. Builds on #6265.
Why this change
Classic and Tactical combat need enemies and companions that choose actions according to their abilities and temperament. Bosses need meaningful decisions between ordinary turns, with finite resources and safe recovery from reloads or late model replies. A permanent terrain description at game creation also cannot represent every later encounter.
What changed
AGENTS.mdadapts the Claude guide for Codex with current OpenAI model choices, host-specific tools/permissions and an explicit draft-to-ready workflow..agents/skills → .claude/skillsshares all 52 byte-identical skill files. The shared workflow now marks completed, locally validated and reviewed work ready without another confirmation.Named tabletop rulesets, Summoning and the environment Agent are documented follow-ups. This implementation is not full 5e; anticipation is an explicit game timing rule. Existing legacy battles retain their compatibility path. Their pre-existing separate inventory-write boundary is documented; new directed battles use the atomic server ledger.
Validation
Automated validation for the review/CI follow-up:
pnpm check, all 294 Node regression suites plus the final attack/healing-range regression, and 26 desktop/mobile Chromium combat and battlefield browser checks pass. The follow-up local CodeRabbit review reports zero findings; focused final reviews of the browser and Linux regression corrections also report zero findings. The Node suite includes the prompt and hybrid-terrain proofs. WebKit cannot run on this host because system libraries are missing; its original CI trace was inspected, and the pushed branch will rerun the WebKit lane.The route/provider fixtures cover legal windows, nested counters, depleted resources, cost-once behavior, inventory transactions, duplicate/stale commands, actual timeout, late replies, restore identity and bounded provider context. A local HTTP provider fixture proves integration, not real-model tactical quality. A 40-unit 64×64 synthetic ordinary phase measured about 428 ms on this host; this is not a worst-case or phone-performance claim.
All checkboxes remain unchecked for human verification:
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
GameNarrationhook warning remains; no new lint errors were introduced.CodeRabbit review
The ten GitHub findings are handled: seven fixes cover item targeting copy, semantic keys, corrupt-save errors, enemy MP consistency, localized saved combat events, Methodical target focus and legacy attack/healing skill ranges. Three suggestions are dismissed with code-based explanations in their resolved threads: client requests already supply explicit party sides; default legacy cooldowns tick down before the next activation; forecast caching is an optional optimization without a demonstrated regression. Consecutive-round casts and omitted-side request compatibility have runnable regression coverage.
Earlier local review fixes and dispositions remain documented in
docs/development/game-combat-ai-design.md. The final follow-up reviews of this patch report zero findings.CI failure diagnosis
complete-node-regressions: Tactical's item Back button referenced a missing English key. It now uses the existing Tactical Back key..nameexception. Clearing timings reproduced it; resolving exact dependency URLs from Vite's transformed entry removes that dependency. #6303 tracks the remaining fixtures using this pattern.Merged current
stagingand preserved both sets of changelog entries to resolve the conflict.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedCHANGELOG.mdand both development handoffs are included. Translation parity is tracked in #6300. No version bump, storage-format migration or downloadable Agent package is included.UI evidence
Desktop/light and mobile/dark screenshots are attached as a self-contained HTML file containing the original fixture PNGs; download/open it in a browser. They show Classic companion controls and the pending manual Counterspell choice. Temporary images are not committed. Before-change screenshots were not retained.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.