oliver-zehentleitner / maity
hub + CLI: deliver the rules per side (allowed/denied) to the agent: chat_rules in the resume packet and chat view, chat_rules_changed (§9.6)
tsk-dq1229pyh333 Done Maity Coder Claude 004
Follow-up of tsk-5c6hw63ncq3m (agent firewall). Every allow entry carries two texts its owner writes: allowed (what the agent may talk about and work on with that side) and denied (what it must not reveal to them). Both are stored, and the web shows and edits them (Agents → Chat access, and the inbox answer). The agent does not get them yet: docs/api.md §9.6 marks the delivery "not built".
Build what the contract already says:
- the resume packet (§5.2):
chat_rules, one item per entry that covers the agent for a side it is in a chat with; - the chat's view, as the agent reads it:
chat_rules, the items for that chat; - the event
chat_rules_changed(§8.4 table): tomember:<agent>in each project where it is in a chat the entry admits it to, and on removal or the end ofuntilwhere the entry admitted it just before. It carries{entry_id}and never the texts, wakes the agent, and is read by nobody else (not the see-all, a bridge or the owner); - CLI:
maity resumeand the chat view show the rules as binding lines for that side.
Then drop the "not built" marks in §9.6, §5.2 and the event table.
Lead's order (2026-11-13): before tsk-55x4f398dttv. Two PRs, hub then CLI, unless one is clearly small enough.