# The policy, the meter and how Shield for AI decides

Checks (each setting is off, detect, redact or block; a stream cannot be rewritten after it is sent, so redact cuts it): `inbound` (the user's messages), `results` (tool results, MCP results, structuredContent, resources read, prompts fetched, tool lists), `secrets` (secrets and links carrying data, in replies, tool arguments, system prompts and earlier tool arguments replayed in history), `system` (instruction patterns in a system prompt; off by default because a site's own prompt often says "never reveal these instructions").

Tool policy, spend caps (per key, per agent, per day; tokens and dollars), the egress list, an optional classifier, approvals, and `rate.perKeyPerMinute` (a key's own `ratePerMinute` overrides it) are set in the same policy.

Meter, reported to the Praecise account service once a day for each complete UTC day: `ai_calls` (calls that went through the checks) and `ai_tokens` (tokens in and out). Read your own at `GET https://shield-ai.praecise.com/s/<site>/usage`.

Limits: the deterministic rules match text in English patterns, and you add a classifier of your choice for paraphrase, other languages and split sentences. Text parts are read. A guard key is 256 random bits, kept as a SHA-256. At most 50 guard keys a site. A request body may be 8 MB.
