feat: phase transition waits for all goals

ref: N25B-429
This commit is contained in:
2026-01-08 13:36:03 +01:00
parent b88758fa76
commit 625ef0c365

View File

@@ -172,8 +172,9 @@ class AgentSpeakGenerator:
)
context = [from_phase_ast]
if from_phase and from_phase.goals:
context.append(self._astify(from_phase.goals[-1], achieved=True))
if from_phase:
for goal in from_phase.goals:
context.append(self._astify(goal, achieved=True))
body = [
AstStatement(StatementType.REMOVE_BELIEF, from_phase_ast),