# Declared agents, the report and the limits

## Declared agents

An agent that signs its requests can be told apart from one that does not. Your server passes the request's method, authority, path and the three signature headers:

```js
const res = await fetch("https://shield.praecise.com/verify-agent", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    site: "ps_...", secret: process.env.SHIELD_SECRET,
    method: "GET", authority: "shop.example", path: "/prices",
    headers: { signature, "signature-input": signatureInput, "signature-agent": signatureAgent },
  }),
});
// { ok: true, class: "declared_agent", agent: "<host>", keyid }  or  { ok: false, class: "undeclared", reason }
```

The check has not met a real agent yet.

## The report

With the site secret, `GET /counts?site=ps_...` and `GET /report?site=ps_...` (`Authorization: Bearer <site secret>`) give the counts kept per site and UTC day: challenges, people, people by touch, below the line, failed, verified, refused, declared agents, unsigned or bad agents. The report puts the last seven days in plain sentences, with what to do next.

Metered: two meters are reported to the Praecise account service, per UTC day, for a site linked to a Praecise account: `checks` (people plus people by touch plus below the line plus failed) and `agent_checks` (declared agents plus unsigned or bad agents). Challenges, verified and refused are not metered. A site that is not linked is counted here and not reported.

## What Shield does not do

- It is early and unproven.
- A touch is not proof of a human: the device is not attested yet.
- An agent driving a real browser passes as a person.
- The signature check for declared agents has not met a real agent yet.
- The agent owner check (a signature over an Ethereum-style address) has not met a real network identity yet.
- There are no edge rules and no certificates.
- One instance; counts are kept on its disk.
