Metadata-Version: 2.5
Name: setrya
Version: 1.16.0
Summary: Find where your app and AI agents copy customer data, and prove deletion reaches the copies you test, including stale copies a background job writes back.
Project-URL: Repository, https://github.com/davidahma/setrya
Project-URL: Documentation, https://github.com/davidahma/setrya#readme
Project-URL: Issues, https://github.com/davidahma/setrya/issues
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.11
Provides-Extra: agent-claude
Requires-Dist: claude-agent-sdk<0.3,>=0.2.187; extra == 'agent-claude'
Provides-Extra: agent-openai
Requires-Dist: openai-agents<0.26,>=0.25; extra == 'agent-openai'
Provides-Extra: agentfs
Requires-Dist: agentfs-sdk<0.7,>=0.6.4; extra == 'agentfs'
Provides-Extra: answer-cache
Requires-Dist: celery<6,>=5.7; extra == 'answer-cache'
Requires-Dist: langchain-core<2,>=1.8.3; extra == 'answer-cache'
Requires-Dist: psycopg[binary]<4,>=3.3; extra == 'answer-cache'
Provides-Extra: case-yaml
Requires-Dist: pyyaml<7,>=6.0.3; extra == 'case-yaml'
Provides-Extra: celery-langchain
Requires-Dist: celery[redis]<6,>=5.7; extra == 'celery-langchain'
Requires-Dist: langchain-core<2,>=1.8.3; extra == 'celery-langchain'
Requires-Dist: pytest>=8; extra == 'celery-langchain'
Requires-Dist: redis<9,>=5; extra == 'celery-langchain'
Provides-Extra: conformance-adk
Requires-Dist: aiosqlite<0.23,>=0.22; extra == 'conformance-adk'
Requires-Dist: google-adk==2.15.1; extra == 'conformance-adk'
Requires-Dist: sqlalchemy[asyncio]<3,>=2; extra == 'conformance-adk'
Provides-Extra: conformance-cognee
Requires-Dist: cognee==1.6.10; extra == 'conformance-cognee'
Provides-Extra: conformance-crewai
Requires-Dist: crewai==1.15.45; extra == 'conformance-crewai'
Provides-Extra: conformance-mem0
Requires-Dist: mem0ai<2.3,>=2.2.1; extra == 'conformance-mem0'
Provides-Extra: crypto-aws
Requires-Dist: boto3<2,>=1.35; extra == 'crypto-aws'
Provides-Extra: erasure
Requires-Dist: langgraph-checkpoint-sqlite<4,>=3.1.3; extra == 'erasure'
Requires-Dist: langgraph>=1.2.24; extra == 'erasure'
Requires-Dist: opentelemetry-api<2,>=1; extra == 'erasure'
Requires-Dist: pytest>=8; extra == 'erasure'
Provides-Extra: erasure-elasticsearch
Requires-Dist: elasticsearch<9,>=8.19.3; extra == 'erasure-elasticsearch'
Provides-Extra: erasure-postgres
Requires-Dist: langgraph-checkpoint-postgres<4,>=3.2.1; extra == 'erasure-postgres'
Requires-Dist: psycopg[binary]<4,>=3.3; extra == 'erasure-postgres'
Provides-Extra: mcp
Requires-Dist: mcp<2,>=1.30; extra == 'mcp'
Provides-Extra: pgvector
Requires-Dist: psycopg[binary]<4,>=3.3; extra == 'pgvector'
Provides-Extra: pytest
Requires-Dist: pytest>=8; extra == 'pytest'
Provides-Extra: redis
Requires-Dist: redis<9,>=5; extra == 'redis'
Provides-Extra: traces-langfuse
Requires-Dist: langfuse<5.3,>=5.2; extra == 'traces-langfuse'
Description-Content-Type: text/markdown

# Setrya

**Prove deleted customer data stays out of your AI, even when a background job tries to write it back.**

Find where your app and agents copy customer data, and prove deletion reaches each copy you test.

Your app and its agents copy customer data into caches, vector indexes, memory and traces. Deleting the source can leave those copies behind, and a job that read the data before deletion can write it back afterward. Setrya finds copy sites in your code, runs your app's real deletion, and checks the stores, answers and background writers you declare. Each completed drill produces a replayable receipt you can sign for offline review. [Why deleted data comes back](https://github.com/davidahma/setrya/blob/v1.16.0/docs/write-back.md)

## 1. Find the copies

```sh
python -m pip install setrya
setrya discovery copy-scan .
```

You get the file and line of supported Python calls that write to files, object stores, vector databases, caches, agent memory, stateful model APIs or traces. The scan flags recognized background writes as write-back risks. The GitHub Action can comment on same-repository pull requests that add new copy sites. [Scan and PR setup](https://github.com/davidahma/setrya/blob/v1.16.0/docs/copy-coverage.md) · [GitHub Marketplace](https://github.com/marketplace/actions/setrya-erasure-drill)

## 2. Catch a write-back

```sh
setrya demo --output workspace
setrya replay workspace/broken    # FAIL: a job restored the deleted note
setrya replay workspace/guarded   # PASS: the job checked its sources first
```

A customer's support note is deleted while a handoff job is still running. In the broken app, the job writes the note back and two teammates can read it again. The guarded job checks its source revisions before writing. In both, the teammates can still read the team's launch date. [Connect your app](https://github.com/davidahma/setrya/blob/v1.16.0/docs/github-action.md#switch-from-the-sample-to-your-app) · [Test an HTTP app on any runtime](https://github.com/davidahma/setrya/blob/v1.16.0/docs/http-cases.md) · [Fix a write-back](https://github.com/davidahma/setrya/blob/v1.16.0/docs/fix-write-back.md)

## 3. Hand over the receipt

| Verdict | Exit | What a reviewer can conclude |
| --- | --- | --- |
| `PASS` | 0 | The tested stores and answers stayed clear of the erased data through the post-deletion checks, and the retained data survived. |
| `FAIL` | 1 | A copy survived or came back, or data that should have stayed was lost. |
| `ERROR` | 2 | The test or evidence could not be processed reliably. |
| `NOT TESTED` | 3 | Required evidence was missing or inconclusive. |

Drill receipts can record the Setrya version, checkout and test-file fingerprints, and deployment identity when captured. Provider follow-ups stay visible alongside the technical verdict. Reviewers can verify signed receipt exchanges and assessments in a browser with nothing installed. The CLI replays the full evidence and can compare a release with the last one they approved. [Receipt guide](https://github.com/davidahma/setrya/blob/v1.16.0/docs/receipt-format.md) · [Verify offline](https://github.com/davidahma/setrya/blob/v1.16.0/docs/assessment.md#verify-without-installing-tools) · [Compare releases](https://github.com/davidahma/setrya/blob/v1.16.0/docs/assessment.md) · [Attach evidence to a governance ticket](https://github.com/davidahma/setrya/blob/v1.16.0/docs/governance-handoff.md)

Export verified receipt observations as OSCAL Assessment Results for a governance review. [OSCAL export](https://github.com/davidahma/setrya/blob/v1.16.0/docs/oscal.md)

Check that a distinct record under hold survives deletion, consolidation, and summary regeneration. [Legal-hold case](https://github.com/davidahma/setrya/blob/v1.16.0/docs/legal-hold.md)

## What it checks today

- **Code scanning** covers Python. HTTP cases test deletion in apps written in other languages. [HTTP cases](https://github.com/davidahma/setrya/blob/v1.16.0/docs/http-cases.md)
- **Stores and memory** include PostgreSQL and pgvector, SQLite, Elasticsearch, Redis, LangGraph, Mem0, Graphiti, local files and Git history. [Agent and trace integrations](https://github.com/davidahma/setrya/blob/v1.16.0/docs/harnesses.md)
- **Hosted AI platforms** include readback adapters for OpenAI, Anthropic, Bedrock, Letta and Mem0. These checks cover what each API shows. This release validates the adapters against simulated responses. [Provider checks](https://github.com/davidahma/setrya/blob/v1.16.0/docs/provider-readback.md)
- **Memory vendors** have signed results with the recorded operator and tested surfaces. Review a linked rerun for changes or attach a vendor attestation to a governance ticket. [Vendor results](https://github.com/davidahma/setrya/blob/v1.16.0/docs/vendor-conformance.md)

Setrya reports only what it observed. Use the receipt's declared scope to see which copies and read paths were checked.

[Glossary](https://github.com/davidahma/setrya/blob/v1.16.0/docs/glossary.md) · [Examples and legacy workflows](https://github.com/davidahma/setrya/blob/v1.16.0/docs/examples-archive.md) · [Release schedule](https://github.com/davidahma/setrya/blob/v1.16.0/docs/releases.md) · [Contributing](https://github.com/davidahma/setrya/blob/v1.16.0/CONTRIBUTING.md) · [Apache 2.0 license](https://github.com/davidahma/setrya/blob/v1.16.0/LICENSE)
