Skerry/ Guides

Praecise Shield: agents as customers

Agents as customers: one switch, a plain weekly report, a rule per declared agent, and a verified owner for money.

Skerry moves money for people, businesses and their agents, and an agent is always tied to a human. Praecise Shield adds one thing: a signed request from a declared agent is checked against the rules you set for it, and a request that moves money or changes a mandate also needs an agent whose owner Shield has verified. This sits beside Skerry's own agent credentials, agent mandates and spend policies. It never replaces or loosens them, and the way Skerry authenticates its own agents is unchanged.

What it does not do (read this first)

  • It is early and unproven: Shield has not yet met a real agent in production.
  • A signature proves control of a key directory, not good intent.
  • An agent that does not declare itself is not covered. An unsigned request is handled exactly as before.
  • An agent driving a real browser passes as a person.
  • An owner of kind organisation is self-declared and is never "verified". Only a verified owner (a network identity whose signature Shield checked, or a Praecise account) satisfies the money check.
  • When Shield cannot be reached, requests go on as before and are counted as unchecked in your report. Protection never takes your API down.

One switch and a plain weekly report

CallScopeWhat it does
GET /shieldshield:readWhether it is on, this week in plain words (checked, let through, refused, unchecked, each agent by name and the rule that applied), what needs doing, the limits above.
PUT /shieldshield:write{ enabled?: boolean, default?: "welcome" | "read_only" | "refuse" | "accountable_only" }. First switch-on makes your Shield site; its secret is kept as key-store ciphertext.
GET /shield/agentsshield:readThe rule per named agent, with its owner shown beside its name: verified, not verified or none.
PUT /shield/agentsshield:write{ agents: { "<host>": { mode: "welcome" | "read_only" | "ceiling" | "refuse", perMinute?, note? } } }. The full list: a rule left out is removed.

An agent's own credential may not change any of this. Sandbox and live are separate switches.

Enforcement

After Skerry has authenticated the key and checked its scope, a request carrying Signature, Signature-Input and Signature-Agent is passed to Shield's verify-agent with intent read (GET, HEAD) or act (anything else). A refusal is a 403:

  • agent_refused: your rule for this agent does not allow it.
  • owner_not_verified: the request moves money or changes a mandate (writes under /payments, /agent-payments, /payouts, /payment-runs, /refunds, /conversions, /settlements, /draws, /mandates, /personal-mandates, /spend-policies, /subscriptions, /wallet, /deposits, /to-pay, /disputes, /machine-payments, /checkout-sessions, /payment-links, /approvals) and the agent has no verified accountable owner. The agent's operator proves its owner at Shield (POST /agent-owners, then /agent-owners/prove).

The human check

The approval page (/approve/{token}) and the pay-link button (POST /pay-link/{id}/session, header Praecise-Shield-Token) carry the quiet check when SKERRY_SHIELD_HUMAN=on. A person sees nothing; if the device is unsure it asks for one touch. A failed check on the approval page burns nothing: the link is spent only afterwards.

Settings

SKERRY_SHIELD_ORIGIN, SKERRY_SHIELD_ADMIN_KEY_SEALED (a vault:v1 ciphertext), SKERRY_SHIELD_PLATFORM_SITE, SKERRY_SHIELD_PLATFORM_SECRET_SEALED, SKERRY_SHIELD_HUMAN, and optionally SKERRY_API_ORIGIN (the origin registered on each Shield site). Migration db/094_shield.sql.

Written and kept by Skerry. Read from https://api.skerry.xyz/guides/shield.md.

This page as Markdown