Raw: https://promptreports.ai/docs/family-contract.md

# The family contract

A family product joins PromptReports by serving ten parts. A product that serves all ten shows up in the builder, the assistant and the family MCP with no change to the hub. Each part has a check in PromptCompute's contract kit, run on recorded fixtures in CI and on the live origin every week.

Version `v1`. The public text is this page, [promptreports.ai/docs/family-contract/](https://promptreports.ai/docs/family-contract/): the rule for each part below, and the check that proves it under Run the check. ContextFile is the worked example for each part; its agent guide is at [contextfile.ai/docs/mcp.md](https://contextfile.ai/docs/mcp.md).

## The ten parts

| Part | The rule |
|---|---|
| 1. Connector manifest | Serve `/.well-known/promptreports-connector.json` with a `sha256` digest over its RFC 8785 form, readable as a PromptReports connector. |
| 2. Tools | Every tool has an effect class; every write names a catalog action key or states a gap; tools carry their annotations and one to five input examples; the manifest lists every tool `tools/list` shows. |
| 3. Events | Events go out with Standard Webhooks headers (`webhook-id`, `webhook-timestamp`, `webhook-signature`) in a CloudEvents 1.0 envelope, and an API key can register for them. |
| 4. Settings API | Every setting a person can change can be read and written through the API, and each write names its catalog action key. |
| 5. ID agent tokens | Accept PromptReports ID agent tokens with DPoP, and say so in the manifest and the protected resource metadata. |
| 6. Health | `GET /healthz` answers `{"ok":true}` and `/status.json` answers JSON. |
| 7. Runs and idempotency | Read `X-PromptReports-Run` and keep the run id on the audit event; require `Idempotency-Key` on every write and answer `idempotency_conflict` for a reused key with a changed body. |
| 8. Inventory | Serve `/.well-known/promptreports-inventory.json`: every decision, action, approval and setting, in `promptreports-inventory/v1`. |
| 9. Agent front door | `llms.txt` and `llms-full.txt`, OpenAPI 3.1, Markdown docs, one typed error shape with a next step, a read-only MCP endpoint, a sandbox token with no human step, and a signed Agent Card. |
| 10. Entitlements and usage | Read `GET /v1/entitlements` and the provisioning push, and send usage to `POST /v1/family/usage`. |

## Run the check

```
# Live, against one product's origin
pnpm --filter @promptcompute/connector-sdk connector certify --contract v1 --product contextfile --live

# All six products, with the status table
pnpm --filter @promptcompute/connector-sdk connector certify --contract v1 --family --live
```

Some parts cannot be seen from outside a product: the events it sends, its calls to PromptCompute, and a write repeated with one key. The kit reads those from the product's recorded fixtures, so a live run shows them as partly.

## Where each product stands

The live run of 2026-11-12. `fail` means at least one problem; `partly` means the part passed what a live run can see. PromptCompute's weekly job keeps the newest table in its contract document.

| Product | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| PromptCompute | pass | partly | fail | pass | fail | fail | fail | pass | fail | partly |
| RepoOps | pass | partly | fail | fail | fail | fail | fail | pass | fail | partly |
| ContextFile | pass | pass | partly | pass | fail | pass | partly | pass | pass | partly |
| AI Source of Truth | pass | partly | fail | pass | fail | fail | fail | pass | fail | partly |
| Sales as Code | pass | partly | partly | pass | fail | fail | fail | pass | fail | partly |
| CommitOps | pass | fail | fail | pass | fail | fail | fail | pass | fail | partly |

A part that fails has a gap task in the plan `wp-35-family-contract`. Fixes merged after this run show here once each product deploys and the check runs again.
