Beyond Prompt Engineering: Architecting a Hybrid Rule-LLM Decision System for AWS Agentic Football Cup
This article explores decision-making design in the AWS Agentic Football Cup and discusses how a combination of deterministic rules, LLM reasoning, and validation mechanisms can improve the efficiency and reliability of real-time multi-agent systems.
Introduction
AWS Agentic Football Cup is a real-time multi-agent football simulation environment built around autonomous player agents. During the AWS Agentic Football Cup workshop, teams actively iterated on their agents, experimenting with prompt adjustments and observing how different instructions influenced agent behavior.
While prompt optimization improves agent behavior, another optimization perspective is the decision pipeline itself. In real-time multi-agent systems, how decisions are routed and executed can significantly influence latency, reasoning efficiency, and action reliability.
In the current architecture, each player agent independently invokes an LLM-based decision process at a fixed interval (every 2 seconds). LLM inference is the primary decision mechanism for every decision cycle.
The current decision pipeline can be summarized as:

Each agent receives the current game state, performs LLM reasoning, and returns an action command (one of MOVE_TO, PASS, SHOOT, SLIDE_TACKLE, GK_DISTRIBUTE ...) controlling the corresponding player.
This architecture enables flexible tactical reasoning, but it also introduces several challenges in a real-time environment:
- Every decision requires an LLM inference cycle.
- Time-critical reactions depend on LLM latency.
- Deterministic situations consume unnecessary reasoning resources.
- LLM-generated actions may require additional validation before execution.
This article explores an architectural optimization approach: improving the agent decision pipeline through a hybrid architecture that combines deterministic rules, selective LLM reasoning, and validation control.
The design principle behind this architecture is:
Rules handle certainty. LLMs handle uncertainty. Validation ensures reliability.
1. Proposed Hybrid Architecture
The proposed architecture introduces a hybrid decision pipeline with three core layers: a Fast Decision Layer for deterministic scenarios, an LLM Reasoning Layer for ambiguous tactical decisions, and a Validation Layer for ensuring command reliability.
A decision router selects the appropriate path based on the uncertainty of each decision scenario.

2. Decision Routing
The Decision Router evaluates the current game situation against predefined deterministic conditions. When a situation matches a known rule pattern, the corresponding fast decision path is executed directly. Otherwise, the decision is delegated to the LLM reasoning layer for further tactical analysis.

3. Fast Decision Layer
The Fast Decision Layer avoids unnecessary LLM reasoning in deterministic scenarios and eliminates generation uncertainty when the optimal action can already be derived from explicit game-state constraints.
The layer evaluates structured game variables such as possession state, player positions, distances, angles, and role constraints. When predefined conditions are satisfied, the corresponding action command is generated directly.
Only scenarios requiring tactical interpretation remain delegated to the LLM Reasoning Layer.
Example Scenarios
Clear Shooting Opportunity

Situation:
Player has possession + Clear shooting angle + Suitable shooting distance
Emergency Interception
Situation:
Opponent shot detected + Ball trajectory threatens goal + Defender can interceptThe Fast Decision Layer can immediately execute:
INTERCEPT
4. LLM Reasoning Layer
Purpose
While the Fast Decision Layer handles high-confidence deterministic scenarios, the LLM Reasoning Layer handles situations requiring interpretation and tactical reasoning.
Examples:
Should I press or retreat?
Should I pass or carry the ball?
How should I respond to coach instructions?The LLM provides:
- Tactical interpretation.
- Context-aware decisions.
- Adaptive responses.
5. Validation Control Layer
Purpose
The Validation Control Layer performs post-LLM command verification before execution.
The current system already contains fallback handling for invalid command formats or parsing failures.
However, command parsing validation does not guarantee that the generated action is physically executable under the current game state.
The proposed Validation Control Layer adds semantic and environment-level validation.
It enforces deterministic constraints such as:
- possession requirements.
- player role constraints.
- action feasibility.
- game state consistency.
Example Scenario: Environment Constraint Validation
Observed failure scenario:
A goalkeeper agent generated a PASS command while the player did not have ball possession.
Raw Log Observation:

Summarized State Summary:
YOUR PLAYER (GK, id=0): pos=(-5.5,0.0) distBall=4.6 hasBall=False
Ball: (-0.9,0.1) held by MY player 4LLM generated command:
[{"commandType":"PASS","target_player_id":4,"type":"GROUND"}]Validation Check Logic
Rule: Actions PASS, SHOOT require the executing player to hold possession (hasBall=True).
Validation result:
Reject command
Reason: Goalkeeper (id=0) does not possess the ball; PASS cannot be executed.The existing fallback mechanism only handles syntactic failures. Since the command format is valid, the existing fallback mechanism is not triggered. The command proceeds to execution despite violating game-state constraints.
6. Key Architectural Benefits
Benefit | Contribution |
|---|---|
⚡ Real-Time Responsiveness | Deterministic scenarios bypass LLM inference latency and receive immediate responses. |
🧠 Decision Quality | Rules handle high-confidence situations, while LLM reasoning focuses on contextual tactical decisions. |
🛡 Execution Reliability | Validation ensures generated commands are executable under current game state and role constraints. |
💰 Resource Efficiency | Avoiding unnecessary LLM calls reduces token consumption and inference overhead. |
7. Conclusion
Improving multi-agent systems requires exploring multiple dimensions. Different optimization approaches address different challenges, from reasoning quality to decision efficiency and execution reliability.
In real-time environments, not every decision requires the same level of intelligence. Some situations benefit from fast and deterministic responses, while others require contextual reasoning from LLMs.
The AWS Agentic Football Cup provides a practical environment for exploring these trade-offs. Rethinking the decision pipeline itself can reveal new opportunities for building more efficient and reliable multi-agent systems.
Keep exploring, keep experimenting, and have fun building smarter agents.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article