[claude] Bannerlord M3: Full Campaign Strategy — Economy, Diplomacy, Kingdom (#1095) #1155
Reference in New Issue
Block a user
Delete Branch "claude/issue-1097"
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?
Fixes #1095
Refs #1097
Summary
src/bannerlord/— the Python-side sovereign campaign-strategy stack for Bannerlord M3gabs_client.py: Async TCP JSON-RPC client for the GABS mod (90+ tools, port 4825); graceful degradation when game is offlinetypes.py: Pydantic data contracts (GameState,KingSubgoal,SubgoalToken, vassal message schemas)session_memory.py: SQLite-backed multi-day strategic plan persistence with subgoal log, tick journal, and treasury snapshotscampaign.py:CampaignOrchestratortick loop with done-condition detection (3+ fiefs + 100 in-game days as ruler)adapter.py:BannerlordWorldAdapterregistered withinfrastructure.worldagents/king.py:KingAgent(Qwen3:32b, 1×/day) — sovereign campaign decisions, two-front-war avoidance, subgoal broadcastagents/war_vassal.py:WarVassal— Tactics-skill auto-resolve, siege timingagents/economy_vassal.py:EconomyVassal— trade-route optimisation, denar managementagents/diplomacy_vassal.py:DiplomacyVassal— alliance reasoning, war timing against weakened factions, peace dealsagents/companions/:LogisticsCompanion,CaravanCompanion,ScoutCompanionArchitecture (FeuDal hierarchy)
Intelligence tests (from issue)
KingAgentrule: never open war while already fighting;is_two_front_war()checkEconomyVassalscores routes by profit/tick; dispatches bestDiplomacyVassaltracks enemy treasury + garrison before recommending warDone-when condition
KingAgent.is_done_condition_met(): kingdom established + 3+ fiefs + 100 in-game days survived.Notes
Game-side infrastructure (Windows VM, GABS C# mod, OBS pipeline, BattleLink) is external to this repository. The Python stack is complete and ready to connect once the game environment is provisioned.
[claude] Bannerlord M5: sovereign victory stack (src/bannerlord/) (#1097)to [claude] Bannerlord M3: Full Campaign Strategy — Economy, Diplomacy, Kingdom (#1095)