Kind registry and value conventions

Find the fixed Pigeon record schemas and rules for their fields.

On this page

Registered kinds

The body schema ID on the wire is exactly [email protected]. Select the kind from the record's kind and verify its schema. Each row below links to strict writer and tolerant reader JSON Schema. The schema index also lists the envelope, tombstone, requests and auxiliary formats.

Kind schema IDBodyWrite schemaRead schema
[email protected]Reusable training template with blocks and prescriptions.WriterReader
[email protected]An immutable workout body and its verified digest.WriterReader
[email protected]A training plan with phases, schedules and progression rules.WriterReader
[email protected]A person's execution of a training program.WriterReader
[email protected]A scheduled workout prescription.WriterReader
[email protected]Performed training, including individual sets.WriterReader
[email protected]Exercise definition, variants and catalog references.WriterReader
[email protected]Scoped changes to an exercise selection or prescription.WriterReader
[email protected]A scoped assignment of modifiers to training.WriterReader
[email protected]Exercise modifier definition.WriterReader
[email protected]Training tag.WriterReader
[email protected]Training category with a symbol and title.WriterReader
[email protected]Training chart definition.WriterReader
[email protected]Shared training settings such as units.WriterReader
[email protected]Account preferences for an app.WriterReader
[email protected]Preferences for one app installation.WriterReader
[email protected]An immutable app journal record.WriterReader
[email protected]A saved place with location and venue details.WriterReader
[email protected]Event, schedule, venue and ticket information.WriterReader
[email protected]Recipe ingredients, quantities, steps and nutrition.WriterReader
[email protected]Structured note with sections, links and entities.WriterReader
[email protected]Saved page and its context.WriterReader
[email protected]Recommendation for a book, show, music or other media.WriterReader
[email protected]Instrument tablature with chord voicings, measures and source timing.WriterReader
[email protected]A product recommendation with source price and seller observations.WriterReader
[email protected]Itinerary or recommendations with days and stops.WriterReader
[email protected]One planned meal and its ingredient snapshots.WriterReader
[email protected]Account grocery list with independently editable ingredient contributions.WriterReader
[email protected]Owner-only Pigeon account settings.WriterReader
[email protected]A submission and its extraction status and results.WriterReader
[email protected]A notice about a source update or restore.WriterReader

Modeled values

  • Modeled keys and known wire enum values use snake_case. Omit unknown or inapplicable modeled values. A patch can clear a modeled field with null. State and verbatim journal payloads keep their JSON, including null.
  • Readers should tolerate unknown fields and enum strings, including inside nested objects. Writers must use declared modeled fields. A descriptive enum such as cuisine or media medium keeps an unfamiliar string as supplied. Lifecycle and status fields use their validated values on write.
  • Money uses {amount, currency} with a nonnegative decimal-string amount, up to four fractional digits, and an uppercase currency from the schema registry. An event price range uses one currency and ordered endpoints. Product root price is the source mention. Offers and observations retain their own seller provenance.
  • Quantities use {value, max?, unit} with exact nonnegative decimal strings, an explicit unit and max at least value. Keep the source wording when a quantity cannot be represented. Grocery mapping carries only an opaque ingredient_id.
  • Use *_seconds for seconds. Training duration and distance fields use integer *_ms and distance_mm, including range bounds. The Hub derives mass_kg and checks it against any supplied mass.
  • Modeled instants use ISO 8601 with a UTC designator or numeric offset. Local dates use YYYY-MM-DD, zones are IANA names and wall clocks use HH:mm. A timed event with an instant requires a zone and a compatible offset. All-day events use dates and an exclusive end. Each schedule permits partial evidence. When both endpoints are present the end must follow the start. Derive an event's past phase from its schedule. Keep source-stated recipe total_seconds.
  • The schema's maxItems bounds each list. The part-addressability map shows which lists have stable IDs and which replace as a whole. Part IDs are unique within the record. Extraction gaps live on the envelope.

Typed references

Use public record IDs in the fields listed in the reference inventory. Some fields take a plain ID, such as meal.recipe_id, grocery_list.items[].meal_id, grocery_list.items[].recipe_id and guide.days[].stops[].ref. Others, such as training pins, take a reference object with record and its schema-defined selectors. venue_id is an opaque venue identity for deduplication and has no public lookup.

On write the Hub checks new links against live targets in the account and the caller's links. It checks the expected kind, selected part and part type or parent, and a pinned hash where the field requires it. Links broken by later deletion can survive with flags. Other writers' protected exercise operation lineage survives edits. The Hub does not revalidate those preserved private targets under the editing connector's scope.

A recipe's step ingredient_ids name local ingredient parts. Removing an ingredient strips existing step links to it. Adding a link to a missing ingredient fails validation. See runtime error codes for rejected references.