# Checklist

> What to check before your app's AI features reach real people.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://ai.docs.sypnia.com/security/checklist/

For agents: Checklist: secret key only in server env; AI keys with call scope and a daily cap; browser routes have end_user limits + moderation input + origins set; instructions in routes not in client code; tools allowlisted, side effects confirmed by a person; no secrets/others' data in prompts; structured outputs where possible; Sypnia-End-User set (stable id, never e-mail); each call names its case; project and case caps set; store off unless needed, shortest days; DELETE /end-users wired to your account deletion; spans reaching Telemetry; alerts on budget_exceeded/provider_unavailable; route changes reviewed in pull requests.

- [ ] The secret key lives only in your server's environment, never in code or in a page.
- [ ] Each server job has its own key with the `call` scope and a daily cap.
- [ ] Every task that browsers may call has a per-person limit, `moderation: input` and your sites in the allowed origins.
- [ ] Instructions are in the route, not in your app's code.
- [ ] Tools are allowed by name, and any tool that changes something asks the person first.
- [ ] No secrets and no other people's data in what you send.
- [ ] Answers your code acts on are structured, with a schema.
- [ ] Each call says the person of your app (`Sypnia-End-User`, a stable id, never an e-mail) and its use case.
- [ ] The project and its busiest cases have caps in credits.
- [ ] Routes keep questions and answers only if you need them, for the fewest days.
- [ ] Deleting an account in your app also calls `DELETE /v1/end-users/{id}`.
- [ ] Spans reach Telemetry, and you get an alert on `budget_exceeded` and `provider_unavailable`.
- [ ] Changes to the `[ai]` table of `sypnia.toml` go through a pull request.
