fix: make DOS from other agents impossible

There were some missing value checks. Other agents could cause errors in the User Interrupt agent or the Program Manager agent by sending malformed messages.

ref: N25B-453
This commit is contained in:
Twirre Meulenbelt
2026-01-26 19:51:14 +01:00
parent 650050fa0f
commit 4f927bc025
2 changed files with 20 additions and 1 deletions

View File

@@ -335,6 +335,8 @@ class UserInterruptAgent(BaseAgent):
belief_name = f"force_{asl}"
else:
self.logger.warning("Tried to send belief with unknown type")
return
belief = Belief(name=belief_name, arguments=None)
self.logger.debug(f"Sending belief to BDI Core: {belief_name}")
# Conditional norms are unachieved by removing the belief