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

Move the method expansion check to findPlan #27

Closed pipex closed 1 year ago

pipex commented 1 year ago

A method could be expanded to a an action and further methods, before if one of the sub-method calls returned an empty array, that would cause the parent method to fail. Now we only consider the method failed if one of the expansion conditions failed or the method after the expansion is finshed, didn't add any new actions to the plan.

Change-type: patch

pipex commented 1 year ago

I self-certify!