You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET /stats?namespace=<name> returns {"error":"Not found"} even when the namespace has memories. Without the parameter, GET /stats returns global stats correctly.
Steps to Reproduce
# Start server
uteke-serve --port 8767
# Store a memory in a namespace
curl -s -X POST http://127.0.0.1:8767/remember \
-H "Content-Type: application/json" \
-d '{"content":"test","tags":["t"],"namespace":"hermes"}'# → {"id":"..."}# Global stats works
curl -s http://127.0.0.1:8767/stats
# → {"total_memories":78,"unique_tags":133,...}# Namespace-scoped stats fails
curl -s "http://127.0.0.1:8767/stats?namespace=hermes"# → {"error":"Not found"}
Expected Behavior
GET /stats?namespace=hermes should return stats scoped to the hermes namespace:
The /namespaces endpoint exists (returns available namespaces), and the CLI uteke stats --namespace hermes works correctly via the direct store. The bug is only in the HTTP server's /stats route handler not parsing the namespace query parameter.
Related docs reference: Hermes integration guide shows GET /stats?namespace=hermes as the intended usage pattern.
Activity
fix: /stats namespace query (#382) + init --agent hermes (#384) (#391)
ajianaz commentedon Jun 19, 2026
Fixed in #391 (merged to develop). GET /stats now parses ?namespace= query parameter and passes it to uteke.stats() for scoped results.
fix: /stats namespace query (#382) + init --agent hermes (#384) (#391)