You are here: Building with agents › The kits › Privacy.Agents
Summary#
Osysharp.Privacy.Agents makes every piece of agent work part of what a person can see, have kept out of use, or have erased — and keeps none of it past its time.
Two things are kept for different times: what the work said, a month by default; and that it happened, seven months by default. An erasure takes the words and keeps the chain, so the record still proves it was not changed.
| Package | Osysharp.Privacy.Agents, version 1.1.0 |
| You add it with | Nothing. It arrives by itself in an app that uses [[agent-kit-privacy|Privacy]] and [[agent-kit-agents|Agents]]; osy lock says so. without Osysharp.Privacy.Agents; in the manifest keeps it out. |
| It sits on | [[agent-kit-agents|Agents]], [[agent-kit-privacy|Privacy]] |
| It also uses | Identity — parts of the platform's own library |
| Its own test app | A town library whose desk is an AI agent — kits/privacy-agents/tests |
Description#
What do you get without writing anything?#
- Work done for a signed-in person is found by their account, with nothing written.
- After an erasure,
VerifyTracestill answers intact. - Corrections and instructions about a person are covered too.
When do you need it?#
Privacy and Agents together. It arrives by itself. You write one line for work about somebody: MarkAgentWorkAbout.
What does it expose?#
The tables below are generated from the kit itself, not written by hand: osy kits Osysharp.Privacy.Agents --surface lists each of
them with the code of the kit's own test app that uses it, and the tests that show it working.
Settings — one line in the app, each field with a default.
| You write | It says |
|---|---|
app.AgentsPrivacy = new AgentsPrivacySetup { KeepContentMonths, KeepRecordMonths, KeepCorrectionsMonths } | How long this app keeps what its agents did. |
Functions you call, those its own tests show most first.
| Function | What it does | Tests that show it |
|---|---|---|
MarkAgentWorkAbout(Guid task, DataSubject subject) | Say whose data a piece of an agent's work is: task — the id an AgentOutcome carries — is about subject. | 7 |
AgentWorkOf(DataSubject s) | The work an agent did for or about a person — the top piece of each, once: work their account asked for or was given for, and work the app marked as about them (by the account, an address or a nu… | 7 |
What to read next#
- Osysharp.Privacy — what the app holds about a person, and what their request does to it — what the app holds about a person, and what their request does to it
- Osysharp.Privacy.Llm — the model calls made for a person, under that person's request — the model calls made for a person, under that person's request
- What stays under people's control — ten promises, and where each is shown — what stays under people's control — ten promises, and where each is shown
Go deeper#
- Privacy for the agent family — agents, the model meter, assignments and work repositories under a person's request — whose data a piece of work is, what is held, what an erasure leaves
- [[agent-task-log#erasure]] — erasing what a record says