Repository navigation
Replies: 1 comment
|
Planned tentatively for 2.0.6 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
GOAP Stuck State Diagnostic System
Feature Request Summary
Overview
A comprehensive diagnostic system that automatically analyzes GOAP (Goal-Oriented Action
Planning) planner failures and provides developers with precise root cause analysis and
explicit corrective actions.
Please refer to issue: #179
Problem Statement
When GOAP planners got stuck, developers currently face:
preconditions
Solution Benefits
For Developers
For Teams
Diagnostic Categories
Problem: Action cannot execute due to unsatisfied conditions
Guidance: Specific conditions to fix and how to satisfy them
Problem: Multiple actions with identical parameters confuse the planner
Guidance: Add discriminating preconditions to distinguish actions
Problem: Goal requires conditions no available action can produce
Guidance: Split complex goals or add intermediate actions
Problem: Action A needs B, but B needs A
Guidance: Identify dependency loops and suggest breaking points
Problem: Required object types not available in blackboard
Guidance: Show which actions should produce missing types
Example Diagnostic Output
🚫 GOAP PLANNER STUCK: MISSING_PRECONDITIONS
📋 ROOT CAUSE:
Action 'decideOnFlight' cannot execute because condition 'travelFlightCondition'
is FALSE but action requires TRUE.
🔧 EXPLICIT FIX:
📝 CODE CHANGE REQUIRED:
@action(post = {"travelFlightCondition", "travelItineraryCondition"})
Option classify(UserInput input, OperationContext context) {
Option result = // ... LLM call
}
💡 WHY THIS WORKS:
The planner needs explicit condition values to determine which actions
can execute next. @condition methods alone may not be evaluated
automatically after each action.
Implementation Approach
Success Metrics
This diagnostic system transforms GOAP debugging from an art into a science, making complex
planning systems accessible to all developers.
All reactions