Skip to content

fix(goap): fleet_incident_response re-dispatches for resolved conditions — needs cooldown/dedup #148

@mabry1985

Description

@mabry1985

Problem

The GOAP engine continues dispatching fleet_incident_response for fleet.no_agent_stuck even after the condition has been fully resolved. The auto-triage-sweep stuck loop generated 18 incidents (INC-003–INC-018), all now resolved. Fleet health currently shows 0 failures, 0 orphaned skills, 0 WIP — yet the goal keeps firing.

This is the same feedback loop documented in INC-015/INC-016: the GOAP engine doesn't check whether prior incidents for the same goal violation are already resolved before re-dispatching.

Expected behavior

  • GOAP should check if there are existing resolved incidents for the same goal+agent combination within a cooldown window (e.g. 1h)
  • If the underlying metric (failure rate, orphaned skill count) has returned to healthy, the goal should not re-fire
  • Dispatch dedup should prevent the same action from being dispatched when the world state no longer violates the goal

Current behavior

  • Goal fleet.no_agent_stuck fires repeatedly
  • fleet_incident_response is dispatched to Ava each time
  • Each dispatch generates a new incident, paging the operator again
  • The fleet health domain shows the condition is already resolved

Related

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