{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whenisbins-com/json-schema/whenisbins-com-lookup-schema.json",
  "title": "Lookup",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whenisbins-com-openapi.yaml#/components/schemas/Lookup",
  "type": "object",
  "required": [
    "id",
    "status",
    "created_at",
    "council",
    "expected_wait_seconds",
    "success_rate"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "description": "`partial` = a usable result is attached while fuller dates\n(ICS/PDF completion) are still being fetched — check each\ncollection's `dates_complete`.\n",
      "enum": [
        "queued",
        "running",
        "partial",
        "done",
        "failed"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "council": {
      "nullable": true,
      "description": "Collecting council. Null only for a retained legacy lookup that predates council identity storage.",
      "allOf": [
        {
          "$ref": "#/$defs/CouncilRef"
        }
      ]
    },
    "expected_wait_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Route-aware recent cold-visit p90, rounded up to seconds. Fast\ndeterministic routes supply the initial estimate when they serve\nat least half of recent cold visits; a deterministic miss promotes\nthe lookup to at least 120 for the browser handoff. Null until five\ntimed cold observations exist in the rolling 84-day window. While\nthe route maintainer's control plane holds the council's active\ndeterministic route healthy, the deterministic-stage estimate is\ninstead the p90 of recent cold successes on the fast routes alone\n(null below five such successes), whatever the blended history or\nsuccess rate says. A\nlookup parked for the residential worker after a council\nbot-blocked the web host is estimated from that worker's own\ndeterministic stage timing (pickup plus execution, p90) from its\nfirst recent sample; with none it shows the handoff.\n"
    },
    "success_rate": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "minimum": 0,
      "maximum": 1,
      "description": "Share of cold observations with outcome `success` in the same\nrolling window. Null until five eligible cold observations exist.\nCache hits are never included.\n"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "result": {
      "$ref": "#/$defs/LookupSchedule"
    },
    "problem": {
      "type": "string",
      "description": "Present when status is `failed` (same codes as Problem)."
    },
    "detail": {
      "type": "string",
      "description": "Citizen-actionable explanation when `failed`."
    },
    "candidates": {
      "type": "array",
      "description": "Present only on a failed `address_not_found` lookup, in two\ncases: the lookup discovered the council's candidate list while\nit was running and the citizen must now pick from it, or the\nlookup ended because the council's own list for the postcode\ndoes not include the typed property. Either way it is the\ncouncil's list for that postcode; clients can resubmit the\noriginal postcode with one selected `property_id`. The Lookup\nresource does not echo the postcode or typed address.\n",
      "items": {
        "$ref": "#/$defs/Candidate"
      }
    },
    "progress": {
      "type": "object",
      "description": "Safe, optional progress information for a non-final lookup.",
      "properties": {
        "stage": {
          "type": "string",
          "enum": [
            "deterministic",
            "browser",
            "opus"
          ]
        },
        "message": {
          "type": "string"
        },
        "steps": {
          "type": "array",
          "description": "The rungs this lookup has reached, oldest first, ending with\nthe one it is on. The ladder is a fallback chain, not a\npipeline — every rung does the same job — so a rung the lookup\nhas moved past was attempted and did not produce an answer\n(`missed`), never \"completed\". Rungs not yet reached are not\nlisted: a lookup served by the first rung reports exactly one\nstep. A refresh or legacy lookup is off the ladder and reports\nan empty list.\n",
          "items": {
            "type": "object",
            "required": [
              "stage",
              "state"
            ],
            "properties": {
              "stage": {
                "type": "string",
                "enum": [
                  "deterministic",
                  "browser",
                  "opus"
                ]
              },
              "state": {
                "type": "string",
                "description": "`missed` = attempted, produced no answer, escalated;\n`active` = running now; `waiting` = queued for the\nfallback worker and not yet started.\n",
                "enum": [
                  "missed",
                  "active",
                  "waiting"
                ]
              }
            }
          }
        },
        "queue_ahead": {
          "type": "integer",
          "minimum": 0,
          "description": "Citizen lookups queued ahead of this one for the fallback\nworkers — the same work-ahead set that informs\n`expected_wait_seconds`, counted rather than timed. Workers\ndrain several lookups at once, so it is a count of work ahead,\nnot a position in a single file. Present\nonly while a rung is `waiting` on a worker; absent for the\nweb pool's own deterministic path, and absent when no queue\nsnapshot could be read. A count of queued rows is a fact\nrather than a projection, so it needs no sample threshold.\n"
        }
      }
    }
  },
  "$defs": {
    "Candidate": {
      "type": "object",
      "required": [
        "id",
        "label"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Opaque service token — echo back as `property_id`; never parse it or assume it is a council UPRN."
        },
        "label": {
          "type": "string",
          "description": "The property exactly as the council's checker words it."
        }
      }
    },
    "Collection": {
      "type": "object",
      "description": "One waste service. Kerbside-sort councils genuinely run 6–8; never merged.",
      "required": [
        "name",
        "waste_type",
        "dates",
        "dates_complete",
        "bin_colour",
        "lid_colour",
        "colour_source",
        "bin_colour_source",
        "lid_colour_source",
        "container",
        "contents"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The service exactly as the council words it — never rewritten."
        },
        "waste_type": {
          "type": "string",
          "enum": [
            "refuse",
            "recycling",
            "garden",
            "food",
            "glass",
            "textiles",
            "electricals",
            "paper_card",
            "plastics_cans",
            "other"
          ]
        },
        "dates": {
          "type": "array",
          "description": "Upcoming dates from today through 92 days ahead, sorted. Normally council-published; a council-published normal weekday may be translated into its single next occurrence by the bounded deterministic projection rule and is labelled with schedule-level `date_confidence: council_projection`. Clients render weekday + date (\"Wednesday 12th August\") — derived, not shipped.",
          "items": {
            "type": "string",
            "format": "date"
          }
        },
        "schedule": {
          "type": "string",
          "description": "Council wording such as a weekday/time. Required when `date_completeness` is `weekday_only` and retained when it is the basis of a labelled weekday projection. Consumers must not expand it themselves."
        },
        "dates_complete": {
          "type": "boolean",
          "description": "False while a fuller calendar is being fetched, or whenever this service has no dates (including weekday_only answers). For a done lookup with missing dates, request a fresh lookup; polling the old lookup does not refresh it."
        },
        "bin_colour": {
          "type": "string",
          "description": "Legacy lookup colour field, else neutral `light_grey`. Historically includes overall wording such as blue bin. Prefer appearance for authoritative component distinctions and reviewed council profiles."
        },
        "lid_colour": {
          "type": "string",
          "description": "Defaults to the bin's colour when unstated."
        },
        "colour_source": {
          "type": "string",
          "enum": [
            "council",
            "default"
          ],
          "description": "Legacy combined flag; council means at least one component was stated. Use the component flags before describing or colouring a body or lid."
        },
        "bin_colour_source": {
          "type": "string",
          "enum": [
            "council",
            "default"
          ],
          "description": "Legacy provenance for bin_colour, which can describe an overall container rather than an explicit body. A default value is presentation only. Prefer appearance_occurrences for dated instructions."
        },
        "lid_colour_source": {
          "type": "string",
          "enum": [
            "council",
            "default"
          ],
          "description": "Whether the lid colour was independently council-stated. A lid inherited from the body colour is default."
        },
        "container": {
          "type": "string",
          "description": "Shape derived from the service label or an explicit container noun phrase from a gated deterministic browser route, otherwise wheelie_bin. Untrusted container_kind fields and contradictory descriptions are ignored. Colour provenance alone does not establish shape evidence.",
          "enum": [
            "wheelie_bin",
            "caddy",
            "box",
            "bag",
            "sack",
            "communal"
          ]
        },
        "appearance": {
          "$ref": "#/$defs/ContainerAppearance"
        },
        "contents": {
          "type": [
            "object",
            "null"
          ],
          "description": "Compact union of the council material labels in appearance_occurrences, with markup removed and whitespace trimmed. Null means no contents evidence is held, not that the service accepts nothing. Never inferred from colour, service name or waste type. The list is not exhaustive and does not say every container takes every material: occurrence items and their conditions remain authoritative. No separate not_accepted list is available in the source material type.",
          "required": [
            "accepted",
            "source",
            "varies_by_date"
          ],
          "properties": {
            "accepted": {
              "type": "array",
              "minItems": 1,
              "uniqueItems": true,
              "items": {
                "type": "string"
              },
              "description": "Council labels kept whole, not split or interpreted; may include qualifications or exclusions in the council wording."
            },
            "source": {
              "type": "string",
              "enum": [
                "council"
              ]
            },
            "varies_by_date": {
              "type": "boolean",
              "description": "True if material assignments, conditions or evidence coverage differ across dates or variants, including unknown occurrences. Consult the per-occurrence items before giving sorting instructions. False does not establish completeness."
            }
          }
        },
        "appearance_occurrences": {
          "type": "array",
          "description": "Preferred dated container projection. Each row belongs to an existing collection date or the existing single-weekday projection; null date means this service has no usable date. Never apply one row to another date. Missing rows are unknown. The legacy fields and appearance v1 retain their previous meanings. This field creates no dates or services.",
          "items": {
            "$ref": "#/$defs/ContainerOccurrence"
          }
        },
        "subscription_required": {
          "type": "boolean",
          "description": "Present and true when the council's own text says this service is\npaid or opt-in. Also true for garden waste on a representative\nanswer, because dates may transfer while the exact property's\nsubscription entitlement remains unproven.\n"
        }
      }
    },
    "CollectionDay": {
      "type": "object",
      "description": "One day on which at least one service is collected. A view over `Schedule.collections`, never a separate source of dates.",
      "required": [
        "date",
        "weekday",
        "collections"
      ],
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "description": "A local calendar date in Europe/London, exactly as it appears in the `dates` of each service listed here."
        },
        "weekday": {
          "type": "string",
          "enum": [
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday",
            "Saturday",
            "Sunday"
          ],
          "description": "The weekday of `date`, worked out by the service so that a client need not. It states nothing about the council's usual collection day."
        },
        "collections": {
          "type": "array",
          "minItems": 1,
          "description": "Every service due on `date`, in the order of `Schedule.collections`.",
          "items": {
            "type": "object",
            "required": [
              "name",
              "waste_type"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The service's `name` in `Schedule.collections`."
              },
              "waste_type": {
                "type": "string",
                "description": "The service's `waste_type` in `Schedule.collections`."
              },
              "subscription_required": {
                "type": "boolean",
                "description": "Present and `true` when the service carries `subscription_required` in `Schedule.collections`, so an answer built from this entry alone still names the subscription."
              }
            }
          }
        }
      }
    },
    "ContainerAppearance": {
      "type": "object",
      "description": "Compatible v1 appearance resolved conservatively across all dates from verified\nlookup wording or an applicable reviewed council profile. Overall colour\nis not proof of either body or lid colour. No unknown component is filled\nfrom a different source. The legacy collection colour/container fields\nremain compatibility fields and do not contain profile enrichment.\nProfile evidence must apply to every emitted date in the collection.\nSource dates are preserved; public content currently has no age expiry.\n",
      "required": [
        "schema_version",
        "origin",
        "container_kind",
        "lid_presence",
        "attributes",
        "profile_id",
        "checked_at",
        "sources"
      ],
      "properties": {
        "schema_version": {
          "type": "integer",
          "enum": [
            1
          ]
        },
        "origin": {
          "type": "string",
          "enum": [
            "lookup",
            "profile",
            "unknown"
          ]
        },
        "container_kind": {
          "type": "string",
          "enum": [
            "wheelie_bin",
            "bin",
            "caddy",
            "box",
            "bag",
            "sack",
            "communal",
            "unknown"
          ]
        },
        "description_kind": {
          "type": "string",
          "description": "Optional profile wording category; container when the profile does not establish a single shape."
        },
        "lid_presence": {
          "type": "string",
          "enum": [
            "present",
            "absent",
            "unknown"
          ]
        },
        "attributes": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "component",
              "attribute",
              "value",
              "qualifier"
            ],
            "properties": {
              "component": {
                "type": "string",
                "enum": [
                  "overall",
                  "body",
                  "lid"
                ]
              },
              "attribute": {
                "type": "string",
                "enum": [
                  "colour",
                  "transparency"
                ]
              },
              "value": {
                "type": "string"
              },
              "qualifier": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Qualified descriptions must not become definitive colour imagery."
              }
            }
          }
        },
        "profile_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "checked_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "Original profile evidence check timestamp; lookup observations instead use the schedule retrieval provenance."
        },
        "sources": {
          "type": "array",
          "description": "Public council guidance sources for profile evidence; lookup evidence remains attributed to the schedule source_url.",
          "items": {
            "type": "object",
            "required": [
              "url",
              "title",
              "publisher"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "title": {
                "type": "string"
              },
              "publisher": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "ContainerOccurrence": {
      "type": "object",
      "required": [
        "schema_version",
        "date",
        "status",
        "complete",
        "variants",
        "sources"
      ],
      "properties": {
        "schema_version": {
          "type": "integer",
          "enum": [
            1
          ]
        },
        "date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "status": {
          "type": "string",
          "enum": [
            "resolved",
            "conditional",
            "partial",
            "unknown"
          ],
          "description": "Resolved describes supported objects, not proof that all household containers are known."
        },
        "complete": {
          "type": "boolean",
          "description": "True only for an unconditional, reviewed exhaustive group. A directly observed object alone does not establish completeness."
        },
        "sources": {
          "$ref": "#/$defs/sources"
        },
        "variants": {
          "type": "array",
          "description": "Objects within a variant go together. Different variants are alternatives, never additions. Keep their conditions visible. Unknown has no variants.",
          "items": {
            "type": "object",
            "required": [
              "id",
              "condition",
              "complete",
              "items",
              "sources"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "condition": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "complete": {
                "type": "boolean"
              },
              "sources": {
                "$ref": "#/$defs/sources"
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "appearance",
                    "material",
                    "quantity"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Reviewed object identity; do not deduplicate by colour or shape."
                    },
                    "material": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "quantity": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 1,
                      "description": "Only an explicitly evidenced quantity; null does not imply one."
                    },
                    "appearance": {
                      "$ref": "#/$defs/OccurrenceContainerAppearance"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "CouncilRef": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "GSS code — the canonical, rename-proof council identity."
        },
        "name": {
          "type": "string"
        },
        "lookup_url": {
          "type": "string",
          "format": "uri",
          "description": "The council's own bin-day checker page, when known (https only).\nThe honest fallback for the citizen on every wait and failure —\nthe same page a served Schedule reports as `source_url`.\n"
        },
        "missed_bin_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Council-specific HTTPS operational missed-collection reporting page,\nfrom the approved verified reporting registry. Null when unavailable;\nnever substituted with the checker, broader problem or formal complaint\nroute. Returned on council discovery, lookup and schedule council objects.\nThe council's page sets its own reporting rules. WhenIsBins reads\ncollection dates only: it does not set reminders or report missed bins.\n"
        },
        "missed_bin_checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "Registry verification date (YYYY-MM-DD) for the published reporting\nroute, not the schedule retrieval time or a live availability check.\nNull when missed_bin_url is null. Approved links remain published until\nreviewed and withdrawn or updated, even when their review date has passed.\n"
        }
      }
    },
    "LookupSchedule": {
      "description": "The address-bearing answer attached only to a private, no-store\nLookup. `matched_address` lets the citizen verify that the council\nanswered for the property they selected; it is deliberately absent\nfrom the stable Schedule resource, calendar feeds and routine\nreminders.\n",
      "allOf": [
        {
          "$ref": "#/$defs/Schedule"
        },
        {
          "type": "object",
          "required": [
            "matched_address"
          ],
          "properties": {
            "matched_address": {
              "type": "string",
              "description": "The property as the council's own system lists it, verbatim."
            }
          }
        }
      ]
    },
    "OccurrenceContainerAppearance": {
      "type": "object",
      "description": "Same supported component semantics as appearance v1, with explicit shape evidence and the extended kind vocabulary. An overall colour may fill an identifying silhouette without becoming body/lid facts. Unknown shape is never a wheelie-bin fallback. Bare bag does not establish reusable handles.",
      "required": [
        "schema_version",
        "origin",
        "container_kind",
        "lid_presence",
        "attributes",
        "profile_id",
        "checked_at",
        "sources"
      ],
      "properties": {
        "schema_version": {
          "type": "integer",
          "enum": [
            1
          ]
        },
        "origin": {
          "type": "string",
          "enum": [
            "lookup",
            "profile",
            "unknown"
          ]
        },
        "container_kind": {
          "type": "string",
          "enum": [
            "wheelie_bin",
            "bin",
            "caddy",
            "box",
            "crate",
            "bag",
            "reusable_bag",
            "sack",
            "communal",
            "bank",
            "unknown"
          ]
        },
        "description_kind": {
          "type": "string"
        },
        "lid_presence": {
          "type": "string",
          "enum": [
            "present",
            "absent",
            "unknown"
          ]
        },
        "attributes": {
          "$ref": "#/$defs/attributes"
        },
        "profile_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "checked_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "sources": {
          "$ref": "#/$defs/sources"
        }
      }
    },
    "Schedule": {
      "type": "object",
      "description": "The stable address-free answer (dictionary section 2). Says how the property was matched and how much to trust the dates without publishing the exact address.",
      "required": [
        "property_id",
        "address_match",
        "council",
        "collections",
        "by_date",
        "date_confidence",
        "date_completeness",
        "evidence_granularity",
        "retrieved_at",
        "refresh_due_at"
      ],
      "properties": {
        "property_id": {
          "type": "string",
          "description": "Echo of the requested property id (mockup amendment 5) — clients should assert it matches what they asked for."
        },
        "address_match": {
          "type": "string",
          "description": "`exact` includes a citizen's own pick. `street`/`postcode`\n= council publishes at that granularity (notes explain).\n`postcode_representative` = a labelled same-postcode neighbour\nanswer. It may follow explicit consent, measured evidence that\npermits automatic serving, or the narrower `provisional` interim\ngate. It is never presented as an exact-property result.\n",
          "enum": [
            "exact",
            "street",
            "postcode",
            "postcode_representative"
          ]
        },
        "council": {
          "$ref": "#/$defs/CouncilRef"
        },
        "collections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Collection"
          }
        },
        "by_date": {
          "type": "array",
          "description": "The same dates as `collections[].dates`, regrouped: one entry per\nday on which anything is collected, soonest first, each naming its\nweekday and every service due. It adds no date, moves none and\nprojects none, so it carries exactly the evidence `dates` carries\nand the same `date_confidence` and `date_completeness` apply. Empty\nwhen no service has a concrete date (`weekday_only`). Use it to\nanswer \"what is collected on this day?\" without calendar\narithmetic.\n",
          "items": {
            "$ref": "#/$defs/CollectionDay"
          }
        },
        "date_confidence": {
          "type": "string",
          "description": "`published_calendar` = real dates the council publishes.\n`council_projection` = dates published by the council's own\nprojected calendar, or one next date calculated by the service's\nbounded normal-weekday rule (holiday changes may be missing).\nCouncil-published dates are retained through the 92-day horizon;\nonly the service's own calculation is limited to one occurrence.\n`next_collection_only` = nothing beyond the next date(s)\nexists — do not imply more is coming.\n",
          "enum": [
            "published_calendar",
            "council_projection",
            "next_collection_only"
          ]
        },
        "date_completeness": {
          "type": "string",
          "description": "Separate from validity: `next_only` is concrete next date(s),\n`limited_horizon` is a valid incomplete slice, `full_horizon`\nwas verified across the serving horizon, and `weekday_only`\ncontains council-published weekday wording that could not safely\nbe translated into dates. Weekday projections are\n`limited_horizon` and contain at most the next date for each\ncollection type. A nearby UK bank holiday does not suppress that\ndate; any explicit council exception the run saw takes precedence.\n",
          "enum": [
            "next_only",
            "limited_horizon",
            "full_horizon",
            "weekday_only"
          ]
        },
        "evidence_granularity": {
          "type": "string",
          "description": "The level at which the council publishes the schedule evidence; separate from how the requested address was matched.",
          "enum": [
            "property",
            "street",
            "postcode",
            "area",
            "round"
          ]
        },
        "retrieved_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "When we fetched this from the council (answers are cached). Null for historical cached lookups whose original retrieval time was not retained; never substitute the time the cache was read."
        },
        "refresh_due_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The instant this answer stops being fresh under the service's\nrefresh policy — `retrieved_at` plus 28 days, or plus 7 days while\ntoday is within a fortnight of a UK bank holiday. Before it, the\nanswer is an acceptable cache and no refresh is owed. After it, a\nread of the schedule resource queues a background refresh and\nstill returns the answer as it stands; a later read returns the\nrefreshed answer with a new `retrieved_at`, `refresh_due_at` and\n`ETag`. It is policy, not a promise of when the refresh runs. Null\nwhen `retrieved_at` is null.\n"
        },
        "source_revalidated_at": {
          "type": "string",
          "format": "date-time",
          "description": "When a shared source artifact was most recently conditionally revalidated."
        },
        "artifact_version": {
          "type": "string",
          "description": "Opaque content-hash and parser-version identity for a deterministic shared calendar."
        },
        "provisional": {
          "type": "boolean",
          "description": "Present and `true` only on an INTERIM answer: a same-postcode\nneighbour's schedule, served in under a second while the lookup for\nthis exact property is still running. It is always accompanied by\n`address_match: postcode_representative`, `dates_complete: false`\non every collection, and a `notes` caveat naming the neighbour.\nThe lookup carrying it is `partial`, never `done`.\n\nAn interim is never cached: it does not appear at\n`GET /v1/schedules/{property_token}`, in a calendar feed, in a\nreminder or in an email, and it is replaced in place by the exact\nanswer as soon as that arrives. A client that treats it as final\nis misreading it — keep polling the lookup.\n\nIt is fail-closed: the council must pass the measured zero-mismatch\ngate and the postcode's held comparable neighbours must also pass\nthe serve-time verification gate. See\ndocs/interim-then-upgrade-serving-2026-08-27.md for the internal\nevidence thresholds; clients must rely on `provisional`, not\nreproduce those policies.\n"
        },
        "notes": {
          "type": "string",
          "description": "Plain-English caveats written for the citizen (assisted collections, communal bins, granularity, …)."
        },
        "source_url": {
          "type": "string",
          "format": "uri",
          "description": "The council's own checker page (\"check on your council's site\"):\nthe page the serving run actually read, else the council's known\nchecker page from our council intel. https only.\n"
        },
        "uprn": {
          "type": "string",
          "description": "The property's Unique Property Reference Number, present only\nwhen the service has verified it against OS Open UPRN AND public\nfeeds are on (`PUBLIC_FEEDS=1`). It keys the shareable public\ncalendar `https://whenisbins.com/{uprn}.ics` and the\n`/schedules/uprn/{uprn}` form of this resource. Canonical digits,\nno zero padding.\n"
        },
        "council_id": {
          "type": "string",
          "description": "The council's own identifier for the property (the value its\naddress list uses), canonical form, present only when the service\ncaptured it from an exact match AND public feeds are on. Keys\n`https://whenisbins.com/{council.id}/{council_id}.ics` and the\n`/schedules/council/{gss}/{id}` form of this resource — the\npublic calendar for councils whose identifiers are not UPRNs.\n"
        },
        "calendar_url": {
          "type": "string",
          "format": "uri",
          "description": "The property's public, subscribable iCalendar feed, present only\nwhen public feeds are on AND the Schedule carries a `uprn` or a\n`council_id`. Always the `uprn` form when there is a `uprn`,\notherwise `https://whenisbins.com/{council.id}/{council_id}.ics`.\nUse this value as given rather than assembling a link. It is a\nwebsite resource, not a `/v1` route: collection dates only, no\naddress or personal details, one event per collection date\n(`?per=service` for one per service, `?download=1` for a one-off\nfile). Reading it never creates a lookup. Give it to a person to\nsubscribe to; its dates are this Schedule's dates, so read\n`date_confidence` and `date_completeness` here before describing\nhow far ahead it reaches. Absent means there is no public\ncalendar for this property; never build one from `property_id`.\n"
        }
      }
    }
  }
}