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
{{ message }}
Repository navigation
agents: agent_poll is declared Risk::ReadOnly but mutates meta.json and deletes mailbox memories #300
AgentPollTool::risk() returns Risk::ReadOnly (crates/tole-core/src/agents.rs:744), but a successful poll calls clean_mailbox (uteke forget of the mailbox namespace) and write_meta (persists mailbox_consumed) (agents.rs:~878-882). jobs.rs:135-143 documents the opposite rule for job_poll: a ReadOnly poll must never mutate — the write-back was removed because 'the risk-tier invariant outweighs the convenience'.
Why it matters
AGENTS.md §6: non-ReadOnly tools must go through an Approver; the risk tier is what the gate and plan mode key on. A tool that writes and deletes while classified ReadOnly bypasses that classification (e.g. it still runs under plan mode).
Expected
Either reclassify agent_poll (Write, with the poll loop's friction handled via the trust preset/allowlist) or move the consume/cleanup side effects out of the poll (e.g. consume at agent_start's completion path / host-side). Decide explicitly and document the tier, with a test pinning it.
Found by
Architecture review 2026-10-07; verified by reading agents.rs and jobs.rs.
Activity
docs(changelog): record #293-#300 fixes and behavior changes under Un…