test(unit): fix stochastic flake in autonomous goal weighting

The assertion choices["goal_A"] > choices["goal_C"] fails sporadically because goal_A has a very low weight (2 vs 100) and can easily be chosen 0 times just like goal_C (0 vs 100). Changed to >= to handle valid 0 == 0 scenarios.

Also fixes "Failed to forget path" warning where _get_id was used instead of generate_uuid.
This commit is contained in:
2026-04-29 00:26:50 +02:00
parent dd8285e1ce
commit 83e5b94ddf
3 changed files with 4 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ class PathMemory:
try:
from qdrant_client import models
point_id = self._db._get_id(seed)
point_id = self._db.generate_uuid(seed)
self._db.client.delete(
collection_name=self._db.collection_name, points_selector=models.PointIdsList(points=[point_id])
)