{
  "at": "2026-10-30T12:26:36.581918+00:00",
  "layer": "Read-only database assertions for saved UI state",
  "stage": "final-browser",
  "businesses": {
    "oak": {
      "counts": {
        "customers": 3,
        "jobs": 3,
        "quotes": 0,
        "payments": 0,
        "operations": 45,
        "assets": 0,
        "site": 1,
        "site_history": 1,
        "audit": 42,
        "storage_identity": 1,
        "invoices": 1,
        "quote_links": 0,
        "document_events": 3,
        "document_counters": 2,
        "payment_stages": 0,
        "payment_allocations": 0,
        "payment_reversals": 0,
        "payment_details": 0,
        "customer_changes": 0,
        "customer_links": 0,
        "materials_catalogue": 0,
        "job_materials": 0,
        "material_audit": 0,
        "team_resources": 6,
        "time_entries": 2,
        "workforce_audit": 10,
        "calendar_bookings": 14,
        "calendar_audit": 24,
        "setup_progress": 1,
        "staff_updates": 0,
        "photo_blobs": 0,
        "job_photos": 0,
        "photo_history": 0,
        "gallery_projects": 0,
        "gallery_history": 0,
        "field_logs": 1,
        "field_log_history": 1,
        "field_sessions": 1,
        "field_intervals": 1,
        "field_resource_locks": 0,
        "field_history": 4,
        "field_time_links": 2,
        "field_material_links": 0,
        "document_sources": 1,
        "source_history": 2,
        "recurring_contracts": 5,
        "recurrence_rules": 8,
        "recurrence_blocks": 2,
        "recurrence_occurrences": 14,
        "recurrence_history": 60,
        "recurrence_runs": 18,
        "portal_accounts": 0,
        "portal_tokens": 0,
        "portal_events": 0,
        "portal_migrations": 1,
        "sales_settings": 1,
        "sales_settings_history": 0,
        "quote_responses": 0,
        "payment_request_snapshots": 0,
        "feedback_requests": 0,
        "feedback_tokens": 0,
        "feedback_responses": 0,
        "feedback_consents": 0,
        "feedback_publications": 0,
        "feedback_history": 0,
        "job_workflow": 3,
        "job_workflow_history": 4,
        "opportunity_settings": 1,
        "opportunity_settings_history": 0,
        "opportunity_reviews": 0,
        "opportunity_history": 0,
        "customer_records": 3,
        "customer_record_history": 3,
        "customer_pair_decisions": 0,
        "customer_pair_history": 0,
        "customer_transfers": 0,
        "customer_transfer_jobs": 0,
        "customer_completion_runs": 0,
        "enquiry_intakes": 0,
        "enquiry_photo_sources": 0
      },
      "work_finance_job_customer_rows_unchanged": true,
      "contracts": [
        {
          "id": "ec0a006df51f75f20bb1dc34871bc969",
          "kind": "job",
          "job_id": "030a91e3f84c5b96395ab6649ba51b36",
          "customer_id": "7a4a1b492c16afceaf700002374004a9",
          "name": "Protected history QA",
          "service_label": "",
          "note": "",
          "state": "active",
          "version": 4,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:24:07+00:00"
        },
        {
          "id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "kind": "job",
          "job_id": "d2e0305544b4716f2f44a1417667c758",
          "customer_id": "80fef0eb330a39fae1ee3dddbaa25ff5",
          "name": "Weekly garden QA",
          "service_label": "Garden care",
          "note": "PRIVATE REPEAT NOTE: retain after validation and leave checks.",
          "state": "active",
          "version": 12,
          "created_at": "2026-10-30T12:12:46+00:00",
          "updated_at": "2026-10-30T12:23:25+00:00"
        },
        {
          "id": "2f6a2036d0dc07b448b693ba911c6d89",
          "kind": "job",
          "job_id": "255893a8db40b5ebf8c05e152ac711b9",
          "customer_id": "ea30e5b280a34e54aaf5aaeed048acfc",
          "name": "Month-end QA",
          "service_label": "",
          "note": "",
          "state": "paused",
          "version": 3,
          "created_at": "2026-10-30T12:24:26+00:00",
          "updated_at": "2026-10-30T12:25:29+00:00"
        },
        {
          "id": "0a0d06d692fe0f99f64c18782ee0a44a",
          "kind": "unavailable",
          "job_id": null,
          "customer_id": null,
          "name": "Clock-change QA",
          "service_label": "",
          "note": "",
          "state": "retired",
          "version": 3,
          "created_at": "2026-10-30T12:24:39+00:00",
          "updated_at": "2026-10-30T12:25:20+00:00"
        },
        {
          "id": "62e89c52f5a9070fa2c061b566f0f028",
          "kind": "unavailable",
          "job_id": null,
          "customer_id": null,
          "name": "Archived-person QA",
          "service_label": "",
          "note": "",
          "state": "active",
          "version": 1,
          "created_at": "2026-10-30T12:25:30+00:00",
          "updated_at": "2026-10-30T12:25:30+00:00"
        }
      ],
      "rules": [
        {
          "id": "1cffa17a357d062a543d267cab6bfc5f",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "revision": 1,
          "effective_from": "2026-10-19",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "5b58837333ae4d4c3f4137491126548c",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "revision": 1,
          "effective_from": "2026-10-30",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:12:46+00:00"
        },
        {
          "id": "d4b5e6af13ad07067c1a8292e4a50bd2",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "revision": 8,
          "effective_from": "2026-11-16",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"10:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:22:38+00:00"
        },
        {
          "id": "2b15d86a73db5f5c13c10dcc0235f648",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "revision": 3,
          "effective_from": "2026-11-02",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"12:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:23:52+00:00"
        },
        {
          "id": "27f6311a9a332bbdf602991a93dd5030",
          "contract_id": "2f6a2036d0dc07b448b693ba911c6d89",
          "revision": 1,
          "effective_from": "2026-10-30",
          "content": "{\"frequency\": \"monthly\", \"anchor_date\": \"2027-01-31\", \"until_date\": \"2027-03-31\", \"weekdays\": [], \"month_day\": 31, \"month_policy\": \"last_day\", \"resource_ids\": [\"fd360a618287955dc105e33b3f56252f\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"11:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:24:26+00:00"
        },
        {
          "id": "88d125eb94168662ff3eb56b10d9614b",
          "contract_id": "0a0d06d692fe0f99f64c18782ee0a44a",
          "revision": 1,
          "effective_from": "2026-10-30",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2027-03-28\", \"until_date\": \"2027-03-28\", \"weekdays\": [6], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"b26b7d7f6cdb02fae9182081385a190e\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"01:30\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:24:39+00:00"
        },
        {
          "id": "2e678cca9e592e159f952af52d732189",
          "contract_id": "0a0d06d692fe0f99f64c18782ee0a44a",
          "revision": 2,
          "effective_from": "2027-03-28",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2027-03-28\", \"until_date\": \"2027-03-28\", \"weekdays\": [6], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"b26b7d7f6cdb02fae9182081385a190e\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"01:30\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"skip\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:25:12+00:00"
        },
        {
          "id": "a9f971288e772c236b65be11143a87de",
          "contract_id": "62e89c52f5a9070fa2c061b566f0f028",
          "revision": 1,
          "effective_from": "2026-10-30",
          "content": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-02\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"b26b7d7f6cdb02fae9182081385a190e\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"15:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "author_id": "oak",
          "membership_id": "f59e5ceb8e859053f3cfd0f1e24e9ddc",
          "created_at": "2026-10-30T12:25:30+00:00"
        }
      ],
      "blocks": [
        {
          "id": "2ed38db68b8ff15eb5b063f78066f0ed",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "start_date": "2026-11-16",
          "end_date": "2026-11-23",
          "reason": "Fictional holiday A: 16\u201323 November inclusive.",
          "active": 0,
          "version": 2,
          "created_at": "2026-10-30T12:22:03+00:00",
          "updated_at": "2026-10-30T12:22:22+00:00"
        },
        {
          "id": "1889374e3b885c70565a3beed048e916",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "start_date": "2026-11-23",
          "end_date": "2026-11-30",
          "reason": "Fictional holiday B overlaps A on 23 November.",
          "active": 1,
          "version": 1,
          "created_at": "2026-10-30T12:22:08+00:00",
          "updated_at": "2026-10-30T12:22:08+00:00"
        }
      ],
      "occurrences": [
        {
          "id": "5512fbe201d259330f526897bd2d975b",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "nominal_date": "2026-10-19",
          "original_rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "f7fb432cba1e9e2e6b25e7469e8f87ff",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "b87815d20c591f6c085c58c418b0b7aa",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "nominal_date": "2026-10-26",
          "original_rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "bc4c119d17e234579b43342254d671d6",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "9dd27223d5da30d67d6c959b5100bc8e",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "nominal_date": "2026-11-02",
          "original_rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_id": "2b15d86a73db5f5c13c10dcc0235f648",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"12:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "c51ee014fa0a0e0b1af140336507782f",
          "state": "cancelled",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Individually reviewed future unstarted visit; retain completed work and issued invoice on the original job.",
          "version": 2,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:24:07+00:00"
        },
        {
          "id": "254b5a038f2af3ab67dfaff4d11ad656",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "nominal_date": "2026-11-09",
          "original_rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "82b2f79c0fec7080a5af9adb1a370ca4",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "1d342bed53d9ef82a330172778bab269",
          "contract_id": "ec0a006df51f75f20bb1dc34871bc969",
          "nominal_date": "2026-11-16",
          "original_rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_id": "1cffa17a357d062a543d267cab6bfc5f",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-10-19\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"887fbd90fbca760147743caae28ba075\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "3848038877f2d01fff3eb605e5f59e8a",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "4a90c9af1cf82368e7333ea9fabb86fb",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "nominal_date": "2026-11-02",
          "original_rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "011e20ecec6c86815ecf31544de3eaca",
          "state": "active",
          "overridden": 1,
          "exclusion_ids": "[]",
          "reason": "Fictional owner requested Tuesday afternoon for this one unstarted visit.",
          "version": 2,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:21:22+00:00"
        },
        {
          "id": "bc995ed1cff253ef174864a517ec72b6",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "nominal_date": "2026-11-09",
          "original_rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"09:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "9d95e469c2525d863e9dd619372337a3",
          "state": "cancelled",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Fictional customer cancels this unstarted visit; do not recreate it.",
          "version": 2,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:21:44+00:00"
        },
        {
          "id": "971c7d3f417c59a4f2f0beee31b5de72",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "nominal_date": "2026-11-16",
          "original_rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_id": "d4b5e6af13ad07067c1a8292e4a50bd2",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"10:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "b908ccc8cad2b5bfb2fccc7ffcc7352d",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed revise",
          "version": 4,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:22:38+00:00"
        },
        {
          "id": "9c52a2382e2a80d0f724e20ef8c30866",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "nominal_date": "2026-11-23",
          "original_rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_id": "d4b5e6af13ad07067c1a8292e4a50bd2",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"10:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "3761b231e6190c8f98fe22914ea8f0ef",
          "state": "excluded",
          "overridden": 0,
          "exclusion_ids": "[\"1889374e3b885c70565a3beed048e916\"]",
          "reason": "Covered by active contract date exclusions.",
          "version": 5,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:22:38+00:00"
        },
        {
          "id": "65a407fa6f71db73631fa78393903c7d",
          "contract_id": "29240f5cdb8346bb7e46c2ce1279c1b7",
          "nominal_date": "2026-11-30",
          "original_rule_id": "5b58837333ae4d4c3f4137491126548c",
          "rule_id": "d4b5e6af13ad07067c1a8292e4a50bd2",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2026-11-02\", \"until_date\": \"2026-11-30\", \"weekdays\": [0], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"4f1c08062af36f32094ebee6eb0b1fe4\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"10:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "97655bdae6bce1c78ccb76304fbb0966",
          "state": "excluded",
          "overridden": 0,
          "exclusion_ids": "[\"1889374e3b885c70565a3beed048e916\"]",
          "reason": "Covered by active contract date exclusions.",
          "version": 3,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:22:38+00:00"
        },
        {
          "id": "206e285b0761825dfbf83e3b64d6cd94",
          "contract_id": "2f6a2036d0dc07b448b693ba911c6d89",
          "nominal_date": "2027-01-31",
          "original_rule_id": "27f6311a9a332bbdf602991a93dd5030",
          "rule_id": "27f6311a9a332bbdf602991a93dd5030",
          "rule_snapshot": "{\"frequency\": \"monthly\", \"anchor_date\": \"2027-01-31\", \"until_date\": \"2027-03-31\", \"weekdays\": [], \"month_day\": 31, \"month_policy\": \"last_day\", \"resource_ids\": [\"fd360a618287955dc105e33b3f56252f\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"11:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "d3aa88e067b6a35420d639ee5f3f3e35",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:24:37+00:00",
          "updated_at": "2026-10-30T12:24:37+00:00"
        },
        {
          "id": "0bd7b6eaf34254718eef4e81327e2b88",
          "contract_id": "2f6a2036d0dc07b448b693ba911c6d89",
          "nominal_date": "2027-02-28",
          "original_rule_id": "27f6311a9a332bbdf602991a93dd5030",
          "rule_id": "27f6311a9a332bbdf602991a93dd5030",
          "rule_snapshot": "{\"frequency\": \"monthly\", \"anchor_date\": \"2027-01-31\", \"until_date\": \"2027-03-31\", \"weekdays\": [], \"month_day\": 31, \"month_policy\": \"last_day\", \"resource_ids\": [\"fd360a618287955dc105e33b3f56252f\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"11:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "4abe7f73eb716e6cc0ddab4d20c54c8b",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:24:37+00:00",
          "updated_at": "2026-10-30T12:24:37+00:00"
        },
        {
          "id": "5d5cc269f970513b59e46bce33af6fd9",
          "contract_id": "2f6a2036d0dc07b448b693ba911c6d89",
          "nominal_date": "2027-03-31",
          "original_rule_id": "27f6311a9a332bbdf602991a93dd5030",
          "rule_id": "27f6311a9a332bbdf602991a93dd5030",
          "rule_snapshot": "{\"frequency\": \"monthly\", \"anchor_date\": \"2027-01-31\", \"until_date\": \"2027-03-31\", \"weekdays\": [], \"month_day\": 31, \"month_policy\": \"last_day\", \"resource_ids\": [\"fd360a618287955dc105e33b3f56252f\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"11:00\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"require_review\", \"rolling_weeks\": 4}",
          "booking_id": "5f130be553ca734509df7dea16c526fb",
          "state": "active",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Owner-reviewed generate",
          "version": 1,
          "created_at": "2026-10-30T12:24:37+00:00",
          "updated_at": "2026-10-30T12:24:37+00:00"
        },
        {
          "id": "6b0eeb065b9a24e67ade5bc988f94827",
          "contract_id": "0a0d06d692fe0f99f64c18782ee0a44a",
          "nominal_date": "2027-03-28",
          "original_rule_id": "2e678cca9e592e159f952af52d732189",
          "rule_id": "2e678cca9e592e159f952af52d732189",
          "rule_snapshot": "{\"frequency\": \"weekly\", \"anchor_date\": \"2027-03-28\", \"until_date\": \"2027-03-28\", \"weekdays\": [6], \"month_day\": null, \"month_policy\": null, \"resource_ids\": [\"b26b7d7f6cdb02fae9182081385a190e\"], \"whole_team\": false, \"all_day\": false, \"start_time\": \"01:30\", \"duration_minutes\": 60, \"duration_days\": null, \"start_fold\": null, \"end_fold\": null, \"gap_policy\": \"skip\", \"rolling_weeks\": 4}",
          "booking_id": null,
          "state": "excluded",
          "overridden": 0,
          "exclusion_ids": "[]",
          "reason": "Explicit clock-gap skip: 2027-03-28 01:30 does not exist in UK time because the clocks move forward. Choose another time.",
          "version": 1,
          "created_at": "2026-10-30T12:25:12+00:00",
          "updated_at": "2026-10-30T12:25:12+00:00"
        }
      ],
      "calendar": [
        {
          "id": "1fd05324fb36839f6e25a1eefab981b9",
          "kind": "unavailable",
          "job_id": null,
          "title": "Alex QA unavailable",
          "resource_ids": "[\"4f1c08062af36f32094ebee6eb0b1fe4\"]",
          "resource_snapshot": "[{\"id\": \"4f1c08062af36f32094ebee6eb0b1fe4\", \"name\": \"Alex QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-09",
          "end_date": "2026-11-09",
          "start_time": "12:00",
          "end_time": "13:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-09T12:00:00+00:00",
          "end_utc": "2026-11-09T13:00:00+00:00",
          "note": "Second editor changed this absence after the recurrence preview.",
          "version": 3,
          "archived": 0,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:14:53+00:00"
        },
        {
          "id": "f7fb432cba1e9e2e6b25e7469e8f87ff",
          "kind": "job",
          "job_id": "030a91e3f84c5b96395ab6649ba51b36",
          "title": "Protected history QA",
          "resource_ids": "[\"887fbd90fbca760147743caae28ba075\"]",
          "resource_snapshot": "[{\"id\": \"887fbd90fbca760147743caae28ba075\", \"name\": \"Worker 0\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-10-19",
          "end_date": "2026-10-19",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-10-19T08:00:00+00:00",
          "end_utc": "2026-10-19T09:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "bc4c119d17e234579b43342254d671d6",
          "kind": "job",
          "job_id": "030a91e3f84c5b96395ab6649ba51b36",
          "title": "Protected history QA",
          "resource_ids": "[\"887fbd90fbca760147743caae28ba075\"]",
          "resource_snapshot": "[{\"id\": \"887fbd90fbca760147743caae28ba075\", \"name\": \"Worker 0\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-10-26",
          "end_date": "2026-10-26",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-10-26T09:00:00+00:00",
          "end_utc": "2026-10-26T10:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "c51ee014fa0a0e0b1af140336507782f",
          "kind": "job",
          "job_id": "030a91e3f84c5b96395ab6649ba51b36",
          "title": "Protected history QA",
          "resource_ids": "[\"887fbd90fbca760147743caae28ba075\"]",
          "resource_snapshot": "[{\"id\": \"887fbd90fbca760147743caae28ba075\", \"name\": \"Worker 0\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-02",
          "end_date": "2026-11-02",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-02T09:00:00+00:00",
          "end_utc": "2026-11-02T10:00:00+00:00",
          "note": "",
          "version": 2,
          "archived": 1,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:24:07+00:00"
        },
        {
          "id": "82b2f79c0fec7080a5af9adb1a370ca4",
          "kind": "job",
          "job_id": "030a91e3f84c5b96395ab6649ba51b36",
          "title": "Protected history QA",
          "resource_ids": "[\"887fbd90fbca760147743caae28ba075\"]",
          "resource_snapshot": "[{\"id\": \"887fbd90fbca760147743caae28ba075\", \"name\": \"Worker 0\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-09",
          "end_date": "2026-11-09",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-09T09:00:00+00:00",
          "end_utc": "2026-11-09T10:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "3848038877f2d01fff3eb605e5f59e8a",
          "kind": "job",
          "job_id": "030a91e3f84c5b96395ab6649ba51b36",
          "title": "Protected history QA",
          "resource_ids": "[\"887fbd90fbca760147743caae28ba075\"]",
          "resource_snapshot": "[{\"id\": \"887fbd90fbca760147743caae28ba075\", \"name\": \"Worker 0\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-16",
          "end_date": "2026-11-16",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-16T09:00:00+00:00",
          "end_utc": "2026-11-16T10:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:11:25+00:00",
          "updated_at": "2026-10-30T12:11:25+00:00"
        },
        {
          "id": "011e20ecec6c86815ecf31544de3eaca",
          "kind": "job",
          "job_id": "d2e0305544b4716f2f44a1417667c758",
          "title": "Weekly garden QA",
          "resource_ids": "[\"4f1c08062af36f32094ebee6eb0b1fe4\"]",
          "resource_snapshot": "[{\"id\": \"4f1c08062af36f32094ebee6eb0b1fe4\", \"name\": \"Alex QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-03",
          "end_date": "2026-11-03",
          "start_time": "13:00",
          "end_time": "14:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-03T13:00:00+00:00",
          "end_utc": "2026-11-03T14:00:00+00:00",
          "note": "PRIVATE REPEAT NOTE: retain after validation and leave checks.",
          "version": 2,
          "archived": 0,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:21:22+00:00"
        },
        {
          "id": "9d95e469c2525d863e9dd619372337a3",
          "kind": "job",
          "job_id": "d2e0305544b4716f2f44a1417667c758",
          "title": "Weekly garden QA",
          "resource_ids": "[\"4f1c08062af36f32094ebee6eb0b1fe4\"]",
          "resource_snapshot": "[{\"id\": \"4f1c08062af36f32094ebee6eb0b1fe4\", \"name\": \"Alex QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-09",
          "end_date": "2026-11-09",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-09T09:00:00+00:00",
          "end_utc": "2026-11-09T10:00:00+00:00",
          "note": "PRIVATE REPEAT NOTE: retain after validation and leave checks.",
          "version": 2,
          "archived": 1,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:21:44+00:00"
        },
        {
          "id": "b908ccc8cad2b5bfb2fccc7ffcc7352d",
          "kind": "job",
          "job_id": "d2e0305544b4716f2f44a1417667c758",
          "title": "Weekly garden QA",
          "resource_ids": "[\"4f1c08062af36f32094ebee6eb0b1fe4\"]",
          "resource_snapshot": "[{\"id\": \"4f1c08062af36f32094ebee6eb0b1fe4\", \"name\": \"Alex QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-16",
          "end_date": "2026-11-16",
          "start_time": "10:00",
          "end_time": "11:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-16T10:00:00+00:00",
          "end_utc": "2026-11-16T11:00:00+00:00",
          "note": "PRIVATE REPEAT NOTE: retain after validation and leave checks.",
          "version": 4,
          "archived": 0,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:22:38+00:00"
        },
        {
          "id": "3761b231e6190c8f98fe22914ea8f0ef",
          "kind": "job",
          "job_id": "d2e0305544b4716f2f44a1417667c758",
          "title": "Weekly garden QA",
          "resource_ids": "[\"4f1c08062af36f32094ebee6eb0b1fe4\"]",
          "resource_snapshot": "[{\"id\": \"4f1c08062af36f32094ebee6eb0b1fe4\", \"name\": \"Alex QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-23",
          "end_date": "2026-11-23",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-23T09:00:00+00:00",
          "end_utc": "2026-11-23T10:00:00+00:00",
          "note": "PRIVATE REPEAT NOTE: retain after validation and leave checks.",
          "version": 2,
          "archived": 1,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:22:03+00:00"
        },
        {
          "id": "97655bdae6bce1c78ccb76304fbb0966",
          "kind": "job",
          "job_id": "d2e0305544b4716f2f44a1417667c758",
          "title": "Weekly garden QA",
          "resource_ids": "[\"4f1c08062af36f32094ebee6eb0b1fe4\"]",
          "resource_snapshot": "[{\"id\": \"4f1c08062af36f32094ebee6eb0b1fe4\", \"name\": \"Alex QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2026-11-30",
          "end_date": "2026-11-30",
          "start_time": "09:00",
          "end_time": "10:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2026-11-30T09:00:00+00:00",
          "end_utc": "2026-11-30T10:00:00+00:00",
          "note": "PRIVATE REPEAT NOTE: retain after validation and leave checks.",
          "version": 2,
          "archived": 1,
          "created_at": "2026-10-30T12:15:06+00:00",
          "updated_at": "2026-10-30T12:22:08+00:00"
        },
        {
          "id": "d3aa88e067b6a35420d639ee5f3f3e35",
          "kind": "job",
          "job_id": "255893a8db40b5ebf8c05e152ac711b9",
          "title": "Month-end QA",
          "resource_ids": "[\"fd360a618287955dc105e33b3f56252f\"]",
          "resource_snapshot": "[{\"id\": \"fd360a618287955dc105e33b3f56252f\", \"name\": \"Blair QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2027-01-31",
          "end_date": "2027-01-31",
          "start_time": "11:00",
          "end_time": "12:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2027-01-31T11:00:00+00:00",
          "end_utc": "2027-01-31T12:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:24:37+00:00",
          "updated_at": "2026-10-30T12:24:37+00:00"
        },
        {
          "id": "4abe7f73eb716e6cc0ddab4d20c54c8b",
          "kind": "job",
          "job_id": "255893a8db40b5ebf8c05e152ac711b9",
          "title": "Month-end QA",
          "resource_ids": "[\"fd360a618287955dc105e33b3f56252f\"]",
          "resource_snapshot": "[{\"id\": \"fd360a618287955dc105e33b3f56252f\", \"name\": \"Blair QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2027-02-28",
          "end_date": "2027-02-28",
          "start_time": "11:00",
          "end_time": "12:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2027-02-28T11:00:00+00:00",
          "end_utc": "2027-02-28T12:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:24:37+00:00",
          "updated_at": "2026-10-30T12:24:37+00:00"
        },
        {
          "id": "5f130be553ca734509df7dea16c526fb",
          "kind": "job",
          "job_id": "255893a8db40b5ebf8c05e152ac711b9",
          "title": "Month-end QA",
          "resource_ids": "[\"fd360a618287955dc105e33b3f56252f\"]",
          "resource_snapshot": "[{\"id\": \"fd360a618287955dc105e33b3f56252f\", \"name\": \"Blair QA\", \"colour\": \"#245648\"}]",
          "whole_team": 0,
          "all_day": 0,
          "start_date": "2027-03-31",
          "end_date": "2027-03-31",
          "start_time": "11:00",
          "end_time": "12:00",
          "start_fold": null,
          "end_fold": null,
          "start_utc": "2027-03-31T10:00:00+00:00",
          "end_utc": "2027-03-31T11:00:00+00:00",
          "note": "",
          "version": 1,
          "archived": 0,
          "created_at": "2026-10-30T12:24:37+00:00",
          "updated_at": "2026-10-30T12:24:37+00:00"
        }
      ],
      "history_count": 60,
      "confirmed_reviews": 18
    },
    "harbour": {
      "counts": {
        "customers": 0,
        "jobs": 0,
        "quotes": 0,
        "payments": 0,
        "operations": 0,
        "assets": 0,
        "site": 1,
        "site_history": 1,
        "audit": 1,
        "storage_identity": 1,
        "invoices": 0,
        "quote_links": 0,
        "document_events": 0,
        "document_counters": 2,
        "payment_stages": 0,
        "payment_allocations": 0,
        "payment_reversals": 0,
        "payment_details": 0,
        "customer_changes": 0,
        "customer_links": 0,
        "materials_catalogue": 0,
        "job_materials": 0,
        "material_audit": 0,
        "team_resources": 0,
        "time_entries": 0,
        "workforce_audit": 0,
        "calendar_bookings": 0,
        "calendar_audit": 0,
        "setup_progress": 1,
        "staff_updates": 0,
        "photo_blobs": 0,
        "job_photos": 0,
        "photo_history": 0,
        "gallery_projects": 0,
        "gallery_history": 0,
        "field_logs": 0,
        "field_log_history": 0,
        "field_sessions": 0,
        "field_intervals": 0,
        "field_resource_locks": 0,
        "field_history": 0,
        "field_time_links": 0,
        "field_material_links": 0,
        "document_sources": 0,
        "source_history": 0,
        "recurring_contracts": 0,
        "recurrence_rules": 0,
        "recurrence_blocks": 0,
        "recurrence_occurrences": 0,
        "recurrence_history": 0,
        "recurrence_runs": 0,
        "portal_accounts": 0,
        "portal_tokens": 0,
        "portal_events": 0,
        "portal_migrations": 1,
        "sales_settings": 1,
        "sales_settings_history": 0,
        "quote_responses": 0,
        "payment_request_snapshots": 0,
        "feedback_requests": 0,
        "feedback_tokens": 0,
        "feedback_responses": 0,
        "feedback_consents": 0,
        "feedback_publications": 0,
        "feedback_history": 0,
        "job_workflow": 0,
        "job_workflow_history": 0,
        "opportunity_settings": 1,
        "opportunity_settings_history": 0,
        "opportunity_reviews": 0,
        "opportunity_history": 0,
        "customer_records": 0,
        "customer_record_history": 0,
        "customer_pair_decisions": 0,
        "customer_pair_history": 0,
        "customer_transfers": 0,
        "customer_transfer_jobs": 0,
        "customer_completion_runs": 0,
        "enquiry_intakes": 0,
        "enquiry_photo_sources": 0
      },
      "work_finance_job_customer_rows_unchanged": true,
      "contracts": [],
      "rules": [],
      "blocks": [],
      "occurrences": [],
      "calendar": [],
      "history_count": 0,
      "confirmed_reviews": 0
    }
  }
}
