Implement need-driven behavior prioritization #92

Open
opened 2025-12-17 03:22:28 +00:00 by siennathesane · 0 comments
siennathesane commented 2025-12-17 03:22:28 +00:00 (Migrated from github.com)

Description

Implement urgent needs interrupting schedule and utility-based behavior selection.

Acceptance Criteria

Scenario: Need prioritization works
  Given entity has urgent need
  When need exceeds threshold
  Then scheduled behavior is interrupted
  And need-satisfying behavior is selected
  And schedule resumes after need is met

Technical Notes

  • Need urgency thresholds trigger interruption
  • Utility function: urgency × satisfaction potential
  • Interrupt current behavior tree
  • Execute need-satisfying behavior
  • Resume interrupted behavior or move to next schedule block
  • Handle cascading needs (very hungry → eat → very tired → sleep)

Size: M (4 points)
Priority: P0
Phase: 4 - Behavior Tree System

## Description Implement urgent needs interrupting schedule and utility-based behavior selection. ## Acceptance Criteria ```gherkin Scenario: Need prioritization works Given entity has urgent need When need exceeds threshold Then scheduled behavior is interrupted And need-satisfying behavior is selected And schedule resumes after need is met ``` ## Technical Notes - Need urgency thresholds trigger interruption - Utility function: urgency × satisfaction potential - Interrupt current behavior tree - Execute need-satisfying behavior - Resume interrupted behavior or move to next schedule block - Handle cascading needs (very hungry → eat → very tired → sleep) **Size:** M (4 points) **Priority:** P0 **Phase:** 4 - Behavior Tree System
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/marathon#92