# Poppy 1.0 Company kit schemas (vendored, unmodified)

The JSON Schemas from the Personal Agent Protocol's Company implementation kit, copied unchanged from
`implement-personal-agent-protocol.zip` (`schemas/`), downloaded from
https://personalagentprotocol.org/kit/company on 2026-11-20. The individual files are also served at
`https://personalagentprotocol.org/kit/company/schemas/<name>.schema.json`. The site licenses them under
the Apache License 2.0; the copyright is the Personal Agent Protocol's, not ours.

They are here so that the documents this repository emits can be checked against upstream's own
descriptions, in `tests/test_poppy.py` with `jsonschema`, and in CI with `ajv`:

| Upstream schema | What we check against it |
|---|---|
| `poppy.schema.json` | the reference Company's `/.well-known/poppy.json` |
| `protected-resource-metadata.schema.json`, `authorization-server-metadata.schema.json` | the Company's two OAuth metadata documents |
| `client-metadata.schema.json` | Pim's client metadata document at its `client_id` |
| `delegation.schema.json`, `session-jwt.schema.json` | the delegations and Session JWTs Pim signs (decoded header and payload) |
| `token-response.schema.json`, `oauth-error.schema.json` | the Company's token endpoint answers |
| `error.schema.json` | the Company's `invalid_session`, `session_ended`, `version_unsupported`, `extension_required` bodies |
| `operation.schema.json`, `approval.schema.json`, `approval-declined.schema.json` | the Operations v3 objects the Company returns and Pim sends |

Upstream's validator (`validate/` in the same kit, Node 22.18 or later, HTTPS only) acts as a test
Personal Agent against a deployed Company. It is not run in this repository's tests: it refuses plain
HTTP and loopback origins without TLS, and this machine's Node is 22.13. Running it against
`company.forget.stellarminds.ai` once that domain is live is listed for phase 4.

ForgetMe (`stellarminds.ai/forget-me`) is a third-party extension proposal targeting Poppy 1.0. It is
not approved, adopted or reviewed by the protocol's authors; validating against their schemas shows
only that our documents have the shapes they describe.
