Skip to content

fix(goap): investigate_orphaned_skills dispatched when orphanedSkillCount = 0 — goal already satisfied #147

@mabry1985

Description

@mabry1985

Summary

The GOAP engine is repeatedly dispatching investigate_orphaned_skills to Ava even when agent_fleet_health.orphanedSkillCount is 0 — meaning the goal fleet.no_skill_orphaned is already satisfied.

Evidence

Expected behavior

GOAP should not dispatch an action when the goal it targets is already satisfied. The planner should evaluate the current world state against the goal predicate before dispatching.

Likely cause

Either:

  1. The goal predicate for fleet.no_skill_orphaned is not checking orphanedSkillCount correctly (stale snapshot?)
  2. The planner lacks a "goal already satisfied" short-circuit
  3. A queued/in-flight dispatch from a previous tick is executing late

Related

Labels: bug, goap, fleet-health

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions