balena-io-modules / mahler

A automated task composer and HTN based planner for building autonomous system agents.
Apache License 2.0
7 stars 1 forks source link

Use only relevant state for Node id generation #24

Closed pipex closed 1 year ago

pipex commented 1 year ago

The state object may be pretty large, which means state changes may be common. Before this change, the Node ID would be calculated using the full state object, increasing the chances of false negative loop detection. This updates id calculation to only consider the part of the state relevant to the action (given by the action path), which should improve loop detection behavior.

Change-type: patch

pipex commented 1 year ago

I self-certify!