good question, and the honest answer has two layers.
first layer is not AI at all, it’s cryptography. everything lives in spaces. a space has its own encryption key and a member list. if the developer is not a member of the HR space, their device and their agent don’t have the key, so there’s nothing to leak – it’s not a permission check on some server that the model could talk its way around, the data is simply not readable for them. same for the agent’s own memory: it lives in your private space, which can’t be shared at all.
second layer is the agent of the HR person, who is a member of both the HR space and the vacations project. here it’s the same problem as with a human who sits in both rooms. what we do have: the agent can’t act outside of its sandbox, every read and every write is recorded, so you can always see what it took from where and what it wrote. and since all side effects go through one boundary we control, per-space rules (“nothing from this space leaves it”) are something we can enforce in the runtime, not ask the model nicely in a prompt. that part is not finished yet, i won’t pretend it is.
On a technical level, something we are currently working on currently is a convenient and flexible system of API capabilities on db (anyproto/any) side and CapBAC-like system of signed capabilities for sandboxed programs on agent/automations side(anyproto/anybao).
Agent is also a sandboxed program which extends itself writing other programs and saving them in space(s) as any other object, e.g. Page in our database. You can ask your agent to extend itself for yourself or your team.
To compare to OS programs we can judge on a much higher level what our code does. You can disallow accessing a certain subset of objects, urls, etc, we can control the level of abstraction here and lift it much higher than it is usually achievable in OS programs and scripts.
so, tldr: we have fundamentals in place and battle-tested on millions of spaces and hundreds of thousands of users over the course of last couple of years, we have secure audit, we are open source. We don’t have today our dream model of super flexible and extremely granular permission control from both sides (db, harness), but it is something we will have soon.
soory, it looks my answer went a little bit outside haha