Work
What Happens to Your Data When an Agent Reads a Personnel File
Follow one HR record through retrieval, prompt, model and logs to see every place a copy of personnel data is created and who can read each one.
Written by Sicherhaven
Someone asks an AI agent a simple question about a colleague's leave, and the agent answers. In that moment your personnel data has been copied to more places than most people expect. Following one HR record through retrieval, prompt, model and log shows where each copy lands and who can read it.
The short version: the original record stays put, and between three and six copies appear elsewhere. Most of them are temporary. At least one usually is not.
Following one record, step by step
Step one: retrieval
The agent needs the record before it can use it. Something goes to the HR system and asks for it.
Two things happen here that matter. First, the request itself is a copy of intent: a log somewhere now says this agent asked for this employee's file. Second, the system returns more than the question needed. Ask about leave and you often get the whole record, because that is how the interface works.
The permission question at this step is the one people skip. The agent is acting for a person, so the right check is whether that person is allowed to see the record. If the agent has broad access of its own, anyone who can talk to the agent effectively has that access too.
Step two: the prompt
The retrieved data is now assembled into a request for the model. This is the copy that surprises people, because it is a plain text version of the record sitting in a message.
That message exists in memory while the request runs. Depending on the system, it may also exist in a queue, a cache, a trace or an error report. Any of those may be retained.
The prompt is a plain text copy of whatever the agent retrieved. Wherever prompts are stored, traced or captured in error reports, personnel data is stored with them.
Ask your vendor or your own engineers a direct question: is the full prompt written anywhere on disk, and for how long? The answer is usually yes somewhere, and the retention is usually a default nobody chose.
Step three: the model
The prompt goes to a model. If that model runs inside your environment, the data has not left. If it runs somewhere else, it has.
Questions worth answering before this becomes routine:
- Where does the model run, and in which country?
- Is the request retained after the answer comes back?
- Is anything used to train or improve the service?
- Who at the provider can read request contents, and under what process?
Terms differ between providers and change over time, so read the current ones rather than relying on what was true when you signed. Companies in the Gulf have another layer to check, because UAE data rules bear on AI in HR workflows. SicherOne allows private models to be self hosted for exactly this category of data, which keeps this step inside your own environment.
Step four: the output
The answer is now a new document containing personal information, and it lives wherever the agent puts it. That might be a chat window, a summary attached to a project, or an email draft.
This is where quiet leaks happen. A leave date pulled into a project summary is now visible to everyone who can see the project, whether or not they can see the HR system. The agent did not break a rule. The output moved between two different permission worlds. Firms holding client files meet the same problem in sharper form, where client confidentiality draws the boundary.
Decide in advance what an agent may include in output that a wider group will see. That decision cannot be made after the fact.
Step five: the logs
Finally, the audit trail. A good one records what the agent read, what it produced and who approved it, which means the log contains the personnel data twice over. There is a related decision about what to record when an agent reads the wrong thing.
That is the right design for accountability and the wrong design for access control unless you handle it deliberately. Access to a log of HR actions should be at least as narrow as access to the HR system itself. In many companies it is wider, because logs are treated as an engineering concern.
Retention needs a decision too. Rules on holding personal data vary by country and by the kind of record, so set retention with advice rather than leaving the default.
The map, in one list
For a single question about one employee, copies typically exist in:
- The HR system's own access log
- The retrieved record, held in memory by the agent
- The prompt sent to the model, plus any trace or cache of it
- The model provider's side, if the model is not yours
- The output, wherever it was delivered
- The audit trail, holding both input and output
What to do about it
Three actions cover most of the risk. Retrieve narrowly, so the agent gets the field it needs rather than the file. Decide what output may contain before switching anything on. Give the audit trail the same access rules as the source system.
SicherOne runs project management, HR and AI agents on one set of records, which means the permission question is asked once rather than in three places that disagree. A human approves agent output before it ships, so the moment personnel data would move into wider view, a person decides.
← All postsWe're building the future of community events and financial wellness
See how Eventify and WealthWise change the way people find events and manage money.
Get Started
