Class RiskScreenPlugin

java.lang.Object
com.axelor.ai.chat.plugin.RiskScreenPlugin
All Implemented Interfaces:
ChatPlugin

public class RiskScreenPlugin extends Object implements ChatPlugin
The third layer of the confused-deputy defence: before the target agent consumes a discussion containing other members' text, an internal risk-assessor agent screens the fresh span (the human messages since the agent's last reply) for manipulation attempts. Findings do two jobs: they surface to the summoner as a notify banner before any approval, and they append to the folded instruction as concrete distrust anchors for the model.

Advisory, never the gate: the screen fails open on any error or timeout — the deterministic mutation-approval guard (foreign text ⇒ approval) stays load-bearing. Solo owner↔agent chats never pay the cost: no fresh foreign text, no screen.