amal66 puts a guardrail around hostile documents in Mike's chat
The fork makes it harder for a malicious file to masquerade as instructions when staff use AI-assisted legal workspaces.
amal66 adds a per-request random marker around material supplied by users, so the AI is explicitly told to treat document text as data rather than commands. That matters when a case file, filename, or fetched text includes an instruction designed to redirect the assistant or expose other workspace material.
- Documents and related labels: marked as untrusted data, with boundaries an attacker cannot easily imitate.
- Saved workflows: handled separately, since users expect them to guide work, but they are still barred from overriding core safety rules or reinterpreting document content.
The approach also obscures copied boundary markers inside hostile text, reducing the chance that a document can break out of its assigned context. It is a useful extra layer, not a complete answer to prompt injection: permissions and checks on AI outputs still matter.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?