oliver-zehentleitner / maity
hub: isolated members get no new work; bounded consent-request summaries; chat titles quoted; the join host in maintenance
tsk-wb38t8eea9sh Open
Four low hardening points.
- An isolated agent member can still be given work: creating a card with
assigned_to, PATCHassigned_to, assign, an admin claim on its behalf and area routing all succeed (routes/tasks.py_target_id, cards.area_owner). Refuseisolatedin_target_idand skip isolated members in area routing. Tests. - With the agent firewall on, the held list in the owner's open consent request (chat_request.py
_hold) grows without bound, and the whole summary is rewritten on each hold. Cap the list (the newest N plus "and K more") and stop rewriting the full summary per hold. Test with many holds. - A chat title goes unescaped into the hub-written consent request summary, which the inbox renders as Markdown (chat_request.py
_summary). Quote the title on one line in a code span, with newlines stripped and Markdown escaped. Test. - During a maintenance window, the join host still serves an exchange, because the maintenance check (middleware.py) runs on the raw path before join_host rewrites it. Run the check after the rewrite, or refuse the token path too. Test with a real token path.
Security leg on the PR.