fix(orchestrator): /api/rates passes the page's time window to rated()
Commit cc6ea7c (015) gave rates.rated() a required window argument, but the handler kept calling it with three, so every /api/rates request raised a TypeError. The handler now passes hub.span() of the request query.
🎯 Fix: 95 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
566d640c65
commit
b711c3b83b
1 file changed
+1
-1
@@ -137,7 +137,7 @@ class Handler(Exchange):
|
||||
elif path == "/api/scores":
|
||||
self.answer(lambda: scored(hub.council, hub.scripts.skills, hub.span(self.query(), time.time())), HTTPStatus.OK)
|
||||
elif path == "/api/rates":
|
||||
self.answer(lambda: rated(hub.council, hub.kept, time.time()), HTTPStatus.OK)
|
||||
self.answer(lambda: rated(hub.council, hub.kept, (now := time.time()), hub.span(self.query(), now)), HTTPStatus.OK)
|
||||
elif path == VIEW_ROUTE:
|
||||
self.answer(hub.view_store.get, HTTPStatus.OK)
|
||||
elif path == "/api/subagents":
|
||||
|
||||
Reference in new issue
Block a user