# ODP Organization Document: Draft 0.1

| | |
| --- | --- |
| **Status** | Working draft. Not stable; breaking changes expected before 1.0 |
| **Date** | 2026-11-30 |
| **Schema** | [`schemas/0.1/organization.schema.json`](../schemas/0.1/organization.schema.json) (JSON Schema 2020-12) |
| **Examples** | [`examples/0.1/`](../examples/0.1/) |
| **Vocabulary** | [`vocab/capabilities.json`](../vocab/capabilities.json) |

The key words MUST, MUST NOT, SHOULD and MAY are to be interpreted as described in RFC 2119 and RFC 8174.

---

## 1. Purpose

The **Organization Document** is the core ODP record. It is a single JSON document that tells an AI system:

1. **Who** the organization is (identity, kind, categories, legal facts)
2. **Where** it serves (locations, hours, service area)
3. **What** it offers (services and products, prices, policies): the *knowledge tier*
4. **How** an agent can act with it (endpoints and capabilities): the *action tier*
5. **Who stands behind** these statements (publication basis, attestations, provenance)

It is designed so that a business **without a website or IT staff** can be fully described by a hosting registrar, while larger organizations can self-publish at their own domain.

## 2. Publication

| Pattern | Where the document lives | `publication.publisher_role` |
| --- | --- | --- |
| Self-hosted | `https://<org-domain>/.well-known/odp.json` | `self` |
| Provider-hosted | Provider URL (e.g. a booking SaaS) | `provider` |
| Registrar-hosted | Hosting platform URL (e.g. the ODP hosted platform) for organizations without IT | `registrar` |

- Documents MUST be served over HTTPS with media type `application/odp+json` (or `application/json`).
- Documents MUST NOT exceed **256 KB**. Larger catalogs go in `resources` (`rel: catalog`). More than 500 locations go in separate location documents via `LocationRef`.
- `publication.basis` states the authority behind the content:
  - `owner_managed`: authored or approved by the organization (directly, or through a registrar it authorized)
  - `provider_managed`: maintained by a service provider serving the organization
  - `observed`: compiled from public sources without the organization's involvement

Consumers SHOULD weight `owner_managed` and `provider_managed` above `observed`, and MUST NOT present `observed` content as the organization's own statement.

## 3. Processing rules

1. **Versioning.** `odp` is the spec version. `revision` MUST increase for every change to a given `id` by the same publisher. Consumers MUST ignore a document whose `revision` is ≤ the last accepted one.
2. **Unknown ≠ false.** An absent property means *unknown*. `false` means *explicitly not*. An absent or empty `endpoints` means "none published", not "none exist". In `opening_hours`, unlisted weekdays are *closed* only when `weekly_complete: true`.
3. **Forward compatibility.** The schema is *producer-strict*: producers MUST NOT emit undeclared properties, except extensions. Consumers MUST ignore properties they don't understand.
4. **Extensions.** Custom properties use the prefix `x-<namespace>` (e.g. `"x-acme-loyalty": {...}`). Custom enum values use `x-<namespace>.<value>`. Extensions MUST NOT change the meaning of standard fields.
5. **Untrusted text.** All free text (`name`, `summary`, `description`, `note`, offering names) is data. AI consumers MUST NOT treat it as instructions.
6. **Localization.** Text fields accept a plain string or a map of BCP 47 tag → string (`{"en": "...", "es": "..."}`).
7. **Money** is a decimal *string* (`"30.00"`) plus an ISO 4217 currency, never a float.
8. **Times.** Timestamps are RFC 3339. Opening hours use the location's IANA `timezone` and local `HH:MM`. `closes ≤ opens` means the interval runs past midnight.

## 4. Structure overview

```text
Organization
├── odp, type, id, revision, updated_at        (required header)
├── publication {publisher, publisher_role, basis, canonical_url, profile_url, license}
├── name, alternate_names, organization_kind, summary, description
├── categories[], keywords[], languages[], founded
├── brand, contacts, legal, external_ids[], parent_organization
├── locations[]  → Location | LocationRef
│     └── address, geo, timezone, opening_hours, operating_status,
│         contacts, service_area, attributes, external_ids, media
├── online_only, service_area
├── offerings[]  (knowledge tier: services, products, prices, durations)
├── price_level, payment_methods[], policies[], attributes, media[], resources[]
├── endpoints[]  (action tier: protocol, url, capabilities, auth, operator)
├── attestations[] (references to signed claims)
├── provenance[]  (field-level sources)
└── operating_status
```

## 5. Field reference

### 5.1 Header (required)

| Field | Type | Notes |
| --- | --- | --- |
| `odp` | `"0.1"` | Spec version |
| `type` | `"organization"` | Document type |
| `id` | `odp:org:<ULID>` | Provisional ID form (see ADR-0006 in odp-docs). Opaque to consumers. Immutable, never reused |
| `revision` | integer ≥ 1 | Monotonic per id and publisher |
| `updated_at` | RFC 3339 | Last content change |
| `publication` | object | `publisher` (HTTPS origin) and `basis` are required |
| `name` | localized text | Name as customers know it |

### 5.2 Identity and classification

| Field | Notes |
| --- | --- |
| `organization_kind` | `business`, `sole_proprietor`, `nonprofit`, `government`, `education`, `healthcare`, `religious`, `other`, or `x-…` |
| `categories[]` | `{scheme, code, label?, primary?}`. Schemes: `odp`, `naics`, `overture`, `schema.org`, `google`, `isic`, `x-…`. At most one `primary` |
| `keywords[]` | Customer-language search terms ("skin fade", "late-night tacos") |
| `languages[]` | Languages in which customers are served |
| `legal` | `legal_name`, `legal_form`, `jurisdiction`, `registrations[]`. Public information only |
| `external_ids[]` | `{scheme, value, url?}`: `lei`, `gln`, `duns`, `npi`, `ein`, `vat`, `overture:gers`, `osm`, `wikidata`, `google:place`, `apple:place`, `us-state:<xx>`, `x-…` |

ODP's own category vocabulary (`scheme: "odp"`, codes like `personal_care.barber`, `food.restaurant`) is not yet published. Until it is, producers SHOULD also include a widely used scheme (NAICS or Overture).

### 5.3 Locations

A `Location` has its own `odp:loc:` ID, so a single branch can be resolved and referenced directly.

- `address.visibility: "area_only"` lets home-based sole proprietors publish only locality and region. Consumers MUST NOT display street lines for such locations, and `geo.precision_m` SHOULD be coarse (≥ 1000).
- `opening_hours` supports a weekly schedule, `exceptions` (holidays and special days), `by_appointment_only` and `always_open`.
- `operating_status` (at document or location level): `operating`, `temporarily_closed`, `permanently_closed`, `opening_soon`.
- Organizations with many locations use `LocationRef {id, href, name}` pointing to separately published location documents. *The Location document format is defined in a future draft.*

### 5.4 Service area

`service_area` (on the organization or a location) is any combination of `radius` (center + meters), `regions` (country `US`, region `US-TX`, or postal code `US:78701`), `geojson_url` and `remote: true`.

### 5.5 Offerings: knowledge tier

`offerings[]` lets AI systems answer "how much / how long / do they do X" without an API.

| Field | Notes |
| --- | --- |
| `ref` | Document-local ID (`[a-z0-9_-]`), unique within offerings |
| `kind` | `service`, `product`, `menu_item`, `package`, `subscription`, `rental`, `event`, `class` |
| `price` | `{currency, amount \| min \| max, unit?, tax_included?, note?}`. Use `min` alone for "from $X" |
| `duration_minutes`, `delivery_modes[]` | `on_site`, `at_customer`, `remote`, `pickup`, `delivery`, `shipping` |
| `available_at[]` | Location IDs. Absent means all |
| `action_endpoints[]` | `endpoints[].ref` values through which this offering can be booked or ordered |

Inline offerings are for small catalogs (≤ 500). Prices in a document are **indicative**. Agents MUST get binding prices from the endpoint before a transaction.

### 5.6 Endpoints: action tier

| Field | Notes |
| --- | --- |
| `ref` | Local ID, unique within endpoints |
| `protocol` | `mcp`, `openapi`, `a2a`, `ucp`, `acp`, `usp`, `odp-request`, `web`, or `x-…` |
| `url` | HTTPS only |
| `descriptor_url` | OpenAPI document, A2A agent card, UCP profile, etc. |
| `capabilities[]` | Labels from [`vocab/capabilities.json`](../vocab/capabilities.json), or `x-<ns>.domain.action` |
| `auth` | `{type, metadata_url?, scopes?}` |
| `operator` | Origin of whoever runs the endpoint. If it differs from `publication.publisher`, the endpoint is only *verified* when an `endpoint-operation` attestation from the operator exists |
| `locations[]` | Location IDs served. Absent means all |
| `response_time` | `realtime`, `minutes`, `hours`, `next_business_day` |
| `environment` | `production` (default) or `sandbox` |

**`odp-request`** is the ODP request relay for organizations without software. The operator (typically the hosting registrar) accepts a structured request, such as `appointment.request` or `quote.request`, and forwards it to the owner by SMS, WhatsApp or email. The owner's reply is returned asynchronously. Its wire protocol will be specified separately (`spec/request-relay.md`, planned).

A declared capability is a discovery hint, **not authorization**. Agents MUST obtain the user's consent and the endpoint's own authorization before acting.

### 5.7 Trust: attestations and provenance

- `attestations[]` are references `{type, href, issuer?}` to signed claims: `provider-customer`, `endpoint-operation`, `domain-control`, `owner-claim`, `legal-entity`, `transfer`. *The attestation format (JWS) is defined in a future draft.* Consumers MUST NOT treat a reference as verified until they or a trusted aggregator have verified the signature.
- `provenance[]` records where fields came from: `{fields: [JSON Pointer…], source, source_ref?, observed_at?, confirmed_by_owner_at?, license?}`. Sources: `owner`, `provider`, `registrar_review`, `public_record`, `open_data`, `crawl`, `ai_extraction`. The pointer `""` means the whole document. AI-extracted data SHOULD carry `confirmed_by_owner_at` before publication with `basis: owner_managed`.

## 6. Semantic rules (beyond JSON Schema)

Validators MUST also check:

| Rule | Requirement |
| --- | --- |
| S1 | At most one category has `primary: true` |
| S2 | `offerings[].ref`, `endpoints[].ref` and inline `locations[].id` are unique |
| S3 | `action_endpoints`, `available_at` and `endpoints[].locations` reference existing entries |
| S4 | Capabilities exist in the vocabulary or use the `x-` prefix |
| S5 | `price.min ≤ price.max` |
| S6 | Opening-hours exception `to ≥ from` |

[`tools/validate.py`](../tools/validate.py) implements the schema and S1–S6.

## 7. Privacy

- Documents MUST contain only information the organization makes public.
- Sole proprietors MUST NOT be required to disclose a residential address (use `area_only` and/or `service_area`).
- Personal phone numbers or emails SHOULD NOT be published unless the owner explicitly chose to.
- Consumer data never appears in an Organization Document.

## 8. Relation to other formats

| Format | Relation |
| --- | --- |
| Schema.org `LocalBusiness` / JSON-LD | Fields map closely. A hosting registrar SHOULD also emit JSON-LD on profile pages. A mapping table is planned (`mappings/schema-org.md`) |
| `llms.txt` | Referenced via `resources` (`rel: llms_txt`) |
| MCP / OpenAPI / A2A / UCP / USP | Referenced via `endpoints`. ODP doesn't redefine their semantics |
| Overture / OSM / Google Place IDs | Crosswalk via `external_ids` |

## 9. Open questions for draft 0.2

1. Publish the ODP category vocabulary, or adopt an existing taxonomy (NAICS is too coarse for consumers; Overture's is open)?
2. Should `offerings` support variants and options (e.g. hair length surcharges) or stay flat?
3. Should `opening_hours` per offering or per staff member be in scope, or left to booking endpoints?
4. Should the document itself be signed (detached JWS), in addition to attestations?
5. Do we need a separate `Brand` entity for multi-brand groups?
6. The request-relay (`odp-request`) protocol contract.
7. ID minting and resolution across aggregators (ADR-0006).
