Osy#betaRun it on Osyrin: osyrin.com

Reference / Agent

Osysharp.Privacy.Agents — what agents did for a person and about a person, under that person's request

`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.

previewagentsguidekit

Source on GitHub: Osysharp.Privacy.Agents — github.com/osysharp/privacy/agents ↗

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.

PackageOsysharp.Privacy.Agents, version 1.1.0
You add it withNothing. 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 usesIdentity — parts of the platform's own library
Its own test appA 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, VerifyTrace still 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 writeIt 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.

FunctionWhat it doesTests 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

Go deeper#

Related

The map of the kits — which sits on which, and what each one is for

The agents family is 29 kits. Two are under everything: `Osysharp.Llm` for every model call and `Osysharp.Agents` for…

Privacy for the agent family — agents, the model meter, assignments and work repositories under a person's request

An app that uses `Osysharp.Privacy` beside the agent kits gets a holder for each without writing one:…

The receipt and the record — what every piece of an agent's work leaves (Agents kit)

Every piece of work leaves one receipt, `AgentTask` — who asked, the account it ran as, what it cost against its limit…